/**
 * Copyright 2007 SK Communications. All rights reserved
 * @since 2007.10.22
 * @author okjungsoo
 * @requires js/ui/Popup.js
 */
if(typeof(Egloos) == "undefined")
	Egloos = {};

Egloos.Counter = {
	URL_TRACKBACK_VIEW: 'http://valley.egloos.com/trbview_exec_xml.php',
	URL_THEME_VIEW: 'http://valley.egloos.com/themeview_exec_xml.php',
	
	/**
	 * @param params = {'eid':eid, 'srl':serial, 'trbsrl':trbSerial, 'rtnurl':returnURL}
	 */
	countTrackback: function(params) {
		new Ajax.Request(this.URL_TRACKBACK_VIEW, {
			method:"post", 
			parameters: params
		});
	}, 
	
	/**
	 * @param params = {'tagid':tagid, 'pbeid':pbeid, 'pbsrl':pbsrl}
	 */
	countTheme: function(params) {
		new Ajax.Request(this.URL_THEME_VIEW, {
			method:"post", 
			parameters: params
		});		
	}
}