function TrowOn(src,OnColor){src.style.cursor = 'hand'; src.background = OnColor;} 
function TrowOff(src,OffColor){src.style.cursor = 'default'; src.background = OffColor;}

function funClock() {
if (!document.layers && !document.all)
return;
var month_names = new Array('Jan','Feb','Mar','Apr','May','Jun', 'Jul','Aug','Sep','Oct','Nov','Dec');
var week_days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

var runTime = new Date();
var year = runTime.getYear();
var month = runTime.getMonth();
var date = runTime.getDate();
var day = runTime.getDay();
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
var dn = "AM";
var suffix="th";
if((date=="1")||(date=="21")||(date=="31")){suffix="st";}
if((date=="2")||(date=="22")){suffix="nd";}
if((date=="3")||(date=="23")){suffix="rd";}

if (hours >= 12) {
dn = "PM";
hours = hours - 12;
}
if (hours == 0) {
hours = 12;
}
if (minutes <= 9) {
minutes = "0" + minutes;
}
if (seconds <= 9) {
seconds = "0" + seconds;
}
movingtime = "<b>"+ week_days[day] +"  "+ date + suffix +"  "+ month_names[month] +"  "+ year +"  "+ hours + ":" + minutes + ":" + seconds + " " + dn + "</b>";
if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingtime;
}
setTimeout("funClock()", 1000)
}
window.onload = funClock;
