/*
* Eligion e-site stats info
*/

function stat(siteid, siteurl, contentnr, contentid, contentcode, languagecode, contentname, typecode, userid, basketguid){
	
    //--- initialize
    // url where the page is submitted to
    // change this to the address the script resides on
	var srv="/sys/logstats.aspx";
	var iconsize = 1;		//--- esite info	// site id	var url=srv+"?es="+escape(siteid);
	url += "&url=" + escape(siteurl) + "&enr=" + escape(contentnr) + "&eid=" + escape(contentid) + "&ecd=" + escape(contentcode) + 		"&elc=" + escape(languagecode) + "&enm=" + escape(contentname) + "&eu=" + escape(userid) +		"&ebg=" + escape(basketguid) + "&etc=" + escape(typecode); 	//--- browser info	// screen size	var s=screen.width + "x" + screen.height;
	// screen colordepth
	var c=screen.colorDepth	// browser	var n=navigator.appName + " " + navigator.appVersion + "." + navigator.appMinorVersion
	// platform
	var p=navigator.platform;	// random, to prevent the browser from taking a cached image and not do a call to the server	var rnd=Math.random();
			url+="&bs="+escape(s)+"&bc="+escape(c)+"&bn="+escape(n)+"&bp="+escape(p)+"&br="+escape(rnd);
	var imgsrc = '<img src="'+url+'" border=0 width='+iconsize+' height='+iconsize+' alt="Statistics">';
	
	//alert('img=' + imgsrc);
	document.write(imgsrc);

//	// where did he come from?//	var r=document.referrer;
//	// where is he now?//	var d=document.location;
//	// cpu class, most likely is x86
//	var cpu=navigator.cpuClass;
}
