// MODIFIED CODE TO INCLUDE AD-HOC HTTPS
function sE()
{
	return true;
}

function WebStatRun(pageName)
{
	var page_name = pageName;
	var invisible = '';

	window.onError=sE;
	var base=document;
	var ui='peice';
	var al='counter stats';
	var framed='no';
	if(framed=='yes')
	{
		base=top.document;
	}
	var rn=Math.random();
	var qry=ui+':2::'+escape(base.referrer)+'::'+screen.width+'x'+screen.height+'::'+screen.colorDepth+'::'+escape(page_name)+'::'+invisible+'::'+rn+'::'+escape(base.URL);
	if((location.href.substr(0,6)=='https:') || (location.href.substr(0,6)=='HTTPS:'))
	{
		document.write('<img src="https://www.web-stat.com/count.pl?');
		document.write(qry+'" style="padding: 0px; border: 0px; position: absolute; left: 0px; top: 0px" alt="'+al+'"/>');
	}
	else
	{
		document.write('<img src="http://server3.web-stat.com/count.pl?');
		document.write(qry+'" style="padding: 0px; border: 0px; position: absolute; left: 0px; top: 0px" alt="'+al+'"/>');
	}
}

/* BELOW IS ORIGINAL CODE FROM WEB-STAT
var page_name = '';
var invisible = '';
function sE()
{
	return true;
}
window.onError=sE;
var base=document;
var ui='peice';
var al='counter stats';
var framed='no';
if(framed=='yes')
{
	base=top.document;
}
var rn=Math.random();
var qry=ui+':2::'+escape(base.referrer)+'::'+screen.width+'x'+screen.height+'::'+screen.colorDepth+'::'+escape(page_name)+'::'+invisible+'::'+rn+'::'+escape(base.URL);
document.write('<a href="http://www.web-stat.com/stats/');
document.write(ui+'.htm"><img src="http://server3.web-stat.com/count.pl?');
document.write(qry+'" border="0" alt="'+al+'"/><\/a>');
*/