<!--
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
NS4 = (document.layers) ? true : false;
IEmac = ((document.all)&&(isMac)) ? true : false;
IE4plus = (document.all) ? true : false;
IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
ver4 = (NS4 || IE4plus) ? true : false;
NS6 = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;
var inc = 51;
function getdate() {
	var UTCstring;
    Today = new Date();
	nomilli=Date.parse(Today);
 	UTCstring = Today.toUTCString();
	return UTCstring;
}
function init()
{
	var val = getcookie();
	if( ! val  )
    {
		val = 566852550;
        setcookie(val);
	}

}
function increment()
{
	var val = getcookie();
	if( ! val  )
    {
		val = 566852550;
        setcookie(val);
	}
    else
    {
    	val = parseInt(val) + inc;
    }
    setcookie(val);
	
	if (IE4plus)
	{
		document.all.spot.innerHTML = outputComma(val) + "";
	}
	else if (NS4)
	{
		document.spot.open();
		document.spot.write(outputComma(val) + "");
		document.spot.close();
	}
	else if (document.getElementById)
	{
    		document.getElementById("spot").innerHTML =  outputComma(val) + "";
	}

}
function getexpirydate(nodays) {
	var UTCstring;
	Today = new Date();
	nomilli=Date.parse(Today);
	Today.setTime(nomilli+nodays*24*60*60*1000);
	UTCstring = Today.toUTCString();
	return UTCstring;
}
function getcookie() {
	var cookiestring=""+document.cookie;
	var index1=cookiestring.indexOf("counter");
	if (index1==-1) return "";
	var index2=cookiestring.indexOf(';',index1);
 	if (index2==-1) index2=cookiestring.length;
 	return unescape(cookiestring.substring(index1+"counter".length+1,index2));
}
function setcookie(value) {
	cookiestring="counter"+"="+escape(value)+";EXPIRES="+getexpirydate(90);
	document.cookie=cookiestring;
	if(!getcookie("counter")) {
		return false;
	} else {
		return true;
	}
}
function reWrite()
{
	increment();
	window.setTimeout('reWrite()',60000)
}
function outputComma(number) {
    number = '' + number
    if (number.length > 3) {
        var mod = number.length%3;
        var output = (mod > 0 ? (number.substring(0,mod)) : '');
        for (i=0 ; i < Math.floor(number.length/3) ; i++) {
            if ((mod ==0) && (i ==0))
                output+= number.substring(mod+3*i,mod+3*i+3);
            else
                output+= ',' + number.substring(mod+3*i,mod+3*i+3);
        }
        return (output);
    }
    else return number;
}
//-->