function run_cheatclock(){
	cheatclock(1, 48, 58, "GMT", "london", 4);
	cheatclock(17, 48, 58, "PST", "sanfran", 3);
	cheatclock(20, 48, 58, "EST", "newyork", 3);
	cheatclock(12, 48, 58, "GMT", "sydney", 4);
	cheatclock(9, 48, 58, "GMT", "manila", 4);
	cheatclock(10, 48, 58, "KST", "korea", 4);
}
cheatdays=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun");
function cheatclock(chthour, chtmin, chtsec, chtzone, chtid, chtday)
{
    chtsec=chtsec+1;
    if(chtsec>59){chtsec=0; chtmin=chtmin+1;}
    if(chtmin>59){chtmin=0; chthour=chthour+1;}
    if(chthour==0){chthour=24;}
    if(chthour>24){chthour=1;}
    if(chthour<12 || chthour==24){ap="am";} else {ap="pm";}
    outhour=chthour
        if(outhour>12){outhour=outhour-12;}
        if(chtsec<10){secz="0";}else{secz="";}
        if(chtmin<10){minz="0";}else{minz="";}
        if(chtday==0){chtday=7;}
        if(chthour>23 && chtmin==0 && chtsec==0 && chtday>0){chtday++;}
        if(chtday>7){chtday=1;}
        if(chtday>0){outday=cheatdays[chtday]+" ";}else{outday="";}
        document.getElementById(chtid).innerHTML=outday+outhour+":"+minz+chtmin+":"+secz+chtsec+" "+ap+" "+chtzone;
        setTimeout('cheatclock('+chthour+', '+chtmin+', '+chtsec+', "'+chtzone+'", "'+chtid+'", "'+chtday+'")',1000);
}
var prevonload=window.onload;
if(typeof(prevonload)=="function"){window.onload=function(){prevonload();run_cheatclock()}; }else{ window.onload=function(){run_cheatclock()}; }
