/* create by Tran Vu Bao version 1.0; upgrade counter speed */
_xyloo_rtimeId=null;
_xyloo_iActStatus=false;
_xyloo_home="http://www.xyloo.fr/";

function _xyloo_inspect() {
	c_="";l_=""+screen.width;d_=document.referrer;
	if (self != top){try {r_=""+encodeURIComponent(parent.document.referrer);}catch(e_r) {r_=""+encodeURIComponent(d_);}}
	else {r_=""+encodeURIComponent(d_);};
	if(navigator.appName!="Netscape"){c_=screen.colorDepth}
	else{c_=screen.pixelDepth};
	v_=navigator;
	h_="&H="+encodeURIComponent(window.location.href);
	k_="&CK="+(v_.cookieEnabled?"Y":"N");
	js_="&JS=Y";	
	plg_="";
	try {
		if(typeof _xyloo_inspect_plugin != "undefined") {
			plg_ = _xyloo_inspect_plugin();
			plg_ = "&PLG="+plg_;
		}   
	}catch(err) {}
		_xyloo_jsexec(_xyloo_home + "js/inspect/ec8956637a99787bd197eacd77acce5e?" + "REFER="+r_+"&COLOR="+c_+"&SIZE="+l_+h_+k_+js_+plg_, "48e87cdbe1a5e10bd24cf900c11036b0");
};
function _xyloo_addEvent(target,eventName,handlerName) { 
	if ( target.addEventListener ) { target.addEventListener(eventName, handlerName, false); } else if ( target.attachEvent ) { target.attachEvent("on" + eventName, handlerName);
	} else { 
		var originalHandler = target["on" + eventName]; 
		if ( originalHandler ) { target["on" + eventName] = function(e){originalHandler(e);}; 
		} else { target["on" + eventName] = handlerName; } 
	} 
};
function _xyloo_jsexec(url, _id) {
	ojs = document.getElementById(_id);	
	if (ojs!=null) document.getElementsByTagName("head")[0].removeChild(ojs);
	var njs = document.createElement("script");
	njs.id= _id;
	njs.type = "text/javascript";
	njs.src = url;
	if (navigator.userAgent.indexOf("Safari")) njs.charset = "utf-8";
	njs = document.getElementsByTagName("head")[0].appendChild(njs);
	return njs;
};
function _xyloo_init_user_interactive() {
	_xyloo_addEvent(document,"mousemove",_xyloo_uInteractive);
	_xyloo_addEvent(document,"mousedown",_xyloo_uInteractive);
	_xyloo_addEvent(document,"keypress",_xyloo_uInteractive);
	_xyloo_addEvent(document,"mousewheel",_xyloo_uInteractive); 
};
function _xyloo_uInteractive() { _xyloo_iActStatus = true; };
function _xyloo_uIActSubmit() {
	if(_xyloo_iActStatus) {
		_xyloo_jsexec (_xyloo_home+"js/tcount/ec8956637a99787bd197eacd77acce5e?H="+encodeURIComponent(window.location.href),"e261890eea66d1284806c93f64e0c7b3"); 
		_xyloo_iActStatus = false;
	}
};
function _xyloo_init_load() {
	_xyloo_inspect();
	_xyloo_init_user_interactive();		
	_xyloo_rtimeId = setInterval("_xyloo_uIActSubmit()", 1000 * 5);	
};
_xyloo_addEvent(window, "load", _xyloo_init_load);
