var thistime,hours,minutes,seconds
var ie=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var ns4=document.layers?1:0
var whichcorner=1
var imgwidth=9
var imgheight=5
var hpadding=3
var vpadding=3
var watchwidth=2*hpadding+imgwidth
var watchheight=12*vpadding+8*imgheight

imga=new Image()
imga.src="../images/img/1.gif"
imgb=new Image()
imgb.src="../images/img/2.gif"
imgc=new Image()
imgc.src="../images/img/3.gif"
imgd=new Image()
imgd.src="../images/img/4.gif"
imge=new Image()
imge.src="../images/img/5.gif"
imgf=new Image()
imgf.src="../images/img/6.gif"
imgg=new Image()
imgg.src="../images/img/7.gif"
imgh=new Image()
imgh.src="../images/img/8.gif"
imgi=new Image()
imgi.src="../images/img/9.gif"

function initclock() {

clockon()
}

function clockon() {
thistime= new Date()
hours=""+thistime.getHours()
minutes=""+thistime.getMinutes()
seconds=""+thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var h1=hours.substring(0,1)+".gif"
var h2=hours.substring(1,2)+".gif"
var m1=minutes.substring(0,1)+".gif"
var m2=minutes.substring(1,2)+".gif"
var s1=seconds.substring(0,1)+".gif"
var s2=seconds.substring(1,2)+".gif"

if (ie || ns4) {
document.sec2.src="../images/img/"+s2
document.sec1.src="../images/img/"+s1
document.min2.src="../images/img/"+m2
document.min1.src="../images/img/"+m1
document.hou2.src="../images/img/"+h2
document.hou1.src="../images/img/"+h1
}

if (ns6) {
document.cornerclock.document.sec2.src="../images/img/"+s2
document.cornerclock.document.sec1.src="../images/img/"+s1
document.cornerclock.document.min2.src="../images/img/"+m2
document.cornerclock.document.min1.src="../images/img/"+m1
document.cornerclock.document.hou2.src="../images/img/"+h2
document.cornerclock.document.hou1.src="../images/img/"+h1
}
var timer=setTimeout("clockon()",1000)
}

if (ie || ns4 || ns6) {
window.onload=initclock
}

