//REFERENCE PAGE TAG
// CONSTANTS
//alert(document.location.protocol);
var ct = "<img style='display:none' src=";
//var cd = document.location.protocol + "//" + document.location.hostname;    
var cd = "";    
    //this should contain the domain of the 
    //web site that will host the page tag

var cu = "/statistics/zag.gif?Log=1"; 
                                 //this should contain the full path to
                                 //the zag.gif file (excluding domain) and
                                 //include the query string of log=1

var ce = ">";

var c = {};
c["sw"] = screen.width;
c["sh"] = screen.height;
c["cd"] = screen.colorDepth;
var co = "";

for ( cKey in c ) {
	co = co+"&"+cKey+"="+escape(c[cKey]);
}
document.write(ct,cd,cu,co,ce);

var d = {};
d["dt"] = document.title.replace("&", "");
d["dr"] = document.referrer;
d["cb"] = new Date().getTime();
var vo = "";

if (typeof v != "undefined") {
	for ( vKey in v ) {
		vo = vo+"&"+vKey+"="+escape(v[vKey]);
	}
}
for ( dKey in d ) {
	if(typeof encodeURI!='undefined')
	{
		vo = vo+"&"+dKey+"="+encodeURI(d[dKey]);	
	} 
	else 
	{
    	vo = vo+"&"+dKey+"="+escape(d[dKey]);	
	}
}
document.write(ct,cd,cu,vo,ce);
//END REFERENCE PAGE TAG

