/**********************************/
/** SiteSpider.co.uk :: count.js **/
/**********************************/

var element = document.getElementById("SiteSpiderCounter");
var url = element.src;

if (url.indexOf("&debug") != -1){
	var debug = true;
	var site = url.substring(url.indexOf("site=")+5, url.indexOf("&debug"));
} else {
	var debug = false;
	var site = url.substring(url.indexOf("site=")+5, url.length);
}

// url where the page is submitted to
var srv="http://www.sitespider.co.uk/counter/";

var u=srv+"count.php?site="+escape(site);
// where did he come from?
var r=document.referrer;
// where is he now?
 var d=document.location;
// screen size
var s=screen.width + "x" + screen.height;
// screen colordepth
var c=screen.colorDepth
// browser
var n=navigator.appName + " " + navigator.appVersion + "." + navigator.appMinorVersion
// cpu class, most likely is x86
var cpu=navigator.cpuClass;
// 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();
	
u+="&d="+escape(d)+"&r="+escape(r)+"&s="+escape(s)+"&c="+escape(c)+"&n="+escape(n)+"&cpu="+escape(cpu)+"&p="+escape(p)+"&rnd="+escape(rnd);

if (debug == true){
		document.write('<img src="'+u+'" border=0 width=10 height=10></a>');
} else {
		document.write('<img src="'+u+'" border=0 width=0 height=0></a>');
}