var showStat = {
	
	url : '',
	
	// ********* online ************
	visitorsOnline : function (current) {
		this.url = './ajax/online_next.php?id=' + __GET().id + '&next=' + current;
		this.makeRequest('onlinearea');
		},

	// ******** user params *******
	hitsUserParams : function (current, param_id) {
		this.url = './ajax/userParamsAjax.php?action=hitsUserParams&id=' + __GET().id + '&param=' + param_id + '&current=' + current;
		this.makeRequest('userParams');
		},

	// **********geography**********
	visitorsGeoCities : function (current, country_id) {
		this.url = './ajax/visitorsAjax.php?action=visitorsGeoCities&id=' + __GET().id + '&country=' + country_id + '&current=' + current + '&stype=' + __GET().stype + '&key=' + __GET().key;
		this.makeRequest('visitorsGeoCities');
		},

	hitsGeoCities : function (current, country_id) {
		this.url = './ajax/hitsAjax.php?action=hitsGeoCities&id=' + __GET().id + '&country=' + country_id + '&current=' + current + '&stype=' + __GET().stype + '&key=' + __GET().key;
		this.makeRequest('visitorsGeoCities');
		},

	// **********pages**********
	pagesDomain : function (current) {
		this.url = './ajax/pagesAjax.php?action=pagesDomain&id=' + __GET().id + '&current=' + current
		this.makeRequest('pagesDomain');
		},

	pagesPage : function (current, domain_id) {
		__O('pagesParam').innerHTML = '';
		__O('pagesValue').innerHTML = '';
		this.url = './ajax/pagesAjax.php?action=pagesPage&id=' + __GET().id + '&domain=' + domain_id + '&current=' + current
		this.makeRequest('pagesPage');
		},

	pagesParam : function (current, page_id) {
		__O('pagesValue').innerHTML = '';
		this.url = './ajax/pagesAjax.php?action=pagesParam&id=' + __GET().id + '&page=' + page_id + '&current=' + current
		this.makeRequest('pagesParam');
		},
	
	pagesValue : function (current, param_id) {
		this.url = './ajax/pagesAjax.php?action=pagesValue&id=' + __GET().id + '&param=' + param_id + '&current=' + current
		this.makeRequest('pagesValue');
		},

	// ********referers*********
	referersDomain : function (current) {
		this.url = './ajax/referersAjax.php?action=referersDomain&id=' + __GET().id + '&current=' + current
		this.makeRequest('referersDomain');
		},

	referersPage : function (current, domain_id) {
		__O('referersQs').innerHTML = '';
		this.url = './ajax/referersAjax.php?action=referersPage&id=' + __GET().id + '&domain=' + domain_id + '&current=' + current
		this.makeRequest('referersPage');
		},

	referersQs : function (current, page_id) {
		this.url = './ajax/referersAjax.php?action=referersQs&id=' + __GET().id + '&page=' + page_id + '&current=' + current
		this.makeRequest('referersQs');
		},

	// ********queries*********
	queriesQuery : function (current, searcher_id) {
		this.url = './ajax/queriesAjax.php?action=queriesQuery&id=' + __GET().id + '&searcher=' + searcher_id + '&current=' + current
		this.makeRequest('queriesQuery');
		},

	groupedQuery : function (current) {
		this.url = './ajax/queriesAjax.php?action=groupedQuery&id=' + __GET().id + '&current=' + current
		this.makeRequest('groupedQuery');
		},

	groupedReferer : function (query_id) {
		this.url = './ajax/queriesAjax.php?action=groupedReferer&id=' + __GET().id + '&query=' + query_id
		this.makeRequest('groupedReferer');
		},

	// **********page rank*************
	pageRank : function () {
		this.url = './ajax/pr.php?id=' + __GET().id;
		this.makeRequest('search_egnines');
		},

	
	// ********ajax request**********
	makeRequest : function (div) {
		__O(div).innerHTML = '<img src="./img/loading_images.gif">'; 
		var Obj = new Ajax();
		Obj.onLoad = function () { 
			if (Obj.responseText == 'redirect') { window.location = 'http://' + document.domain; }
				else { __O(div).innerHTML = Obj.responseText; }
			}
		Obj.sendGet(this.url);
		}
	}