var cP;
var bP=23317560;
var gP,bD=new Date(2000,06,01),dstO = 1;

gP=bP * 0.0296;

var timerID = null;
var timerRunning = false;
function stopclock () {
  if(timerRunning) cleartimeout(timerID);
  timerRunning=false;
}
function startclock () {
  stopclock();
  showtime();
}
function showtime () {
  var tD,cPs,cPt,ts,nT=new Date(),tf;
  tD=(nT - bD)/1000;
  tf=(tD/31536000);
  wP=parseInt(6080141683 + (77258877 * tf),10);
  cP= parseInt(bP + (gP * tf),10);
  cPt = "Uganda:<b> " + fstr(cP.toString(),",") + "</b><br>World:<b> " + fstr(wP.toString(),",")+"</b>";
  cPs = cPt.toString();
  MM_setTextOfLayer('popLayer','',cPs);   
  timerID = setTimeout("showtime()",1000);
  timerRunning = true;
}
function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_setTextOfLayer(objName,x,newText) 
{ //v3.0
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (navigator.appName=='Netscape') 
       {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}
function fstr(n,t){var nf,l=n.length,p; if (l>3) {p = (l % 3);
   if (p==0) p=3; nf= n.substr(0,p);
   do {nf = nf + t + n.substr(p,3); p+=3;} while (p<l);}return nf;}
