<!-- JustUs.ca Thanks To The JavaScript Source!! http://javascript.internet.com For the Basis of This Code-->

function syeClock() {
if (!document.layers && !document.all)
return;
HexLeft = new Array;
HexRight = new Array;
timePortion = new Array;
maxLength = new Array;
var runTime = new Date();
timePortion[0] = runTime.getHours();
timePortion[1] = runTime.getMinutes();
timePortion[2] = runTime.getSeconds();
maxLength[0] = 5;
maxLength[1] = 6;
maxLength[2] = 6;
var decValue = 0;
var decMod = 0;
var temp = "";
var hoursBackground = "#FFFFFF";
var minutesBackground = "#FFFFFF";
var secondsBackground = "#FFFFFF";
var colonBackground = "#FFFFFF";
var textColor = "#000080";

for (curPor=0; curPor<3; curPor++) {

HexRight[curPor] = "";
HexLeft[curPor] = "";

HexRight[curPor] = timePortion[curPor] % 16;
if ( (timePortion[curPor] % 16) <10 ) { HexRight[curPor] = timePortion[curPor] % 16; }
if ( (timePortion[curPor] % 16) == 10 ) { HexRight[curPor] = "A"; }
if ( (timePortion[curPor] % 16) == 11 ) { HexRight[curPor] = "B"; }
if ( (timePortion[curPor] % 16) == 12 ) { HexRight[curPor] = "C"; }
if ( (timePortion[curPor] % 16) == 13 ) { HexRight[curPor] = "D"; }
if ( (timePortion[curPor] % 16) == 14 ) { HexRight[curPor] = "E"; }
if ( (timePortion[curPor] % 16) == 15 ) { HexRight[curPor] = "F"; }

HexLeft[curPor] = Math.floor(timePortion[curPor] / 16);
}
		
movingtime = '<table border="0" cellpadding="0" cellspacing="0"><tr><td bgcolor='+ hoursBackground  +'><font size ="6" color='+ textColor +'>' + HexLeft[0] + HexRight[0] + '</font></td><td bgcolor='+ colonBackground +'><font size="6">&nbsp;:&nbsp;</font></td><td bgcolor='+ minutesBackground +'><font size="6" color='+ textColor +'>' + HexLeft[1] + HexRight[1] + '</font></td><td bgcolor='+ colonBackground +'><font size="6">&nbsp;:&nbsp;</font></td><td bgcolor='+ secondsBackground +'><font size="6" color='+ textColor +'>' + HexLeft[2] + HexRight[2] + '</font></td></tr></table>';

if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingtime;
}
setTimeout("syeClock()", 1000)
}
window.onload = syeClock;
