
function changeDiv(currentDiv,NextDiv)
{
	if (document.images)
	{
		document.getElementById(currentDiv).style.display = "none";
		document.getElementById(NextDiv).style.display = "block";
	}
}
function lightup(imgName,srcIntro)
 {
   if (document.images)
    {
 	var logoon= srcIntro+"images/apm.gif";
      document[imgName].src= logoon;
    }
 }

function turnoff(imgName,srcIntro)
 {
   if (document.images)
    {
  	 var logooff= srcIntro+"images/logo.png";
    document[imgName].src= logooff;
    }
 }
 function startclock()
{
var thetime=new Date();

var nhours=thetime.getHours();
var nmins=thetime.getMinutes();
var nsecn=thetime.getSeconds();
var AorP=" ";

if (nhours>=12)
    AorP="P.M.";
else
    AorP="A.M.";

if (nhours>=13)
    nhours-=12;

if (nhours==0)
 nhours=12;

if (nsecn<10)
 nsecn="0"+nsecn;

if (nmins<10)
 nmins="0"+nmins;

if (document.all && !document.getElementById) {
     //IE 4 supports doucment.all but NOT document.getElementById
//     (scripting goes here);
} else if (document.layers) {
     //Netscape 4 only browser that supports document.layers
	oLayer = document.layers['clockspot'].document;
	oLayer.open();
	oLayer.write(nhours+":"+nmins+":"+nsecn+" "+AorP);
	oLayer.close();
	//myObj = eval('document.' + clockspot);
     //myObj.innerHTML =  nhours+":"+nmins+":"+nsecn+" "+AorP;
	 //document.write(nhours+":"+nmins+":"+nsecn+" "+AorP);
} else if (document.getElementById) {
     //Works for Netscape 6 and IE 5
document.getElementById('clockspot').innerHTML = nhours+":"+nmins+":"+nsecn+" "+AorP;
} else {
     //If browser is none of the above (this section is optional, if left off script will do nothing when activated)      (scripting goes here);
}

setTimeout('startclock()',1000);

} 


