var pn; // Page the landed on
var rf; // Page they were referred from
var mydata; // My datastring

// Set the page we're on, the page we came from, and write html for a small image
pn=location.pathname;
rf=document.referrer;
mydata='pg=' +escape(pn)+ '&rf=' +escape(rf);
document.write('<img src="http://www.hatcraze.com/stats/dorecord.php?' +mydata+ '">');


/*
// The pageName variable can be customized if needed
pageName=location.pathname;

rf=document.referrer;   // where we came from
sr=window.location.search;  // Contains page arguments
if(top.window.location==document.referrer || (document.referrer == '' && top.window.location != ''))
{
	rf=top.document.referrer;
	sr=top.window.location.search
}





//document.cookie='__shane_check=1';
document.cookie="name=_shanetest; path=/; domain=hatcraze.com;"
nhp='http';
ntz=new Date();
if(location.href.substr(0,6).toLowerCase()=='https:')
nhp='https';
data='&an='+escape(navigator.appName)+ 
'&sr='+escape(sr)+'&ck='+document.cookie.length+
'&rf='+escape(rf)+'&sl='+escape(navigator.systemLanguage)+
'&av='+escape(navigator.appVersion)+'&l='+escape(navigator.language)+
'&pf='+escape(navigator.platform)+'&pg='+escape(pageName);


ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write(data);
document.write('<BR>Referring page: '+rf + '<BR>');
document.write('Date: '+ntz + '<BR>');
document.write('Cookie Length: '+document.cookie.length + '<BR>');
document.write('navigator.systemLanguage: ' +navigator.systemLanguage + '<BR>');
document.write('navigator.appVersion: ' +navigator.appVersion + '<BR>');
document.write('navigator.language: ' +navigator.language + '<BR>');
document.write('navigator.platform: ' +navigator.platform + '<BR>');
var x=document.cookie;
document.write('cookie retrieved: ' +x + '<BR>');
document.write('x.cookieid: ' +x.cookieid + '<BR>');
*/
