ver=navigator.appVersion.charAt(0);

function time() {
if (ver >= 4) {
dd = new Date();
y=dd.getFullYear();
y1=Math.floor(y/1000);
y2=0;
y3=Math.floor((y-2000)/10);
y4=(y-2000)-(y3*10);

/*document.write (y1);
document.write (y2);
document.write (y3);
document.write (y4);
m=dd.getMonth();
m1=Math.floor(m/10);
m2=m%10+1;
document.write (m1);
document.write (m2);*/

//test=3;
//yea2=(new Date().getFullYear()%1000);
//yea2=1;
//yea3=(new Date().getFullYear()%100);
//yea4=(new Date().getFullYear()%10);
//yea4=(256%10)

dat1=Math.floor(new Date().getDate() / 10);
dat2=new Date().getDate() % 10;

hou1=Math.floor(new Date().getHours() / 10);
hou2=new Date().getHours() % 10;

min1=Math.floor(new Date().getMinutes() / 10);
min2=new Date().getMinutes() % 10;

sec1=Math.floor(new Date().getSeconds() / 10);
sec2=new Date().getSeconds() % 10;

mon1=(new Date().getMonth()+1);
mon11=Math.floor(mon1/10);
mon2=new Date().getMonth()+1;
mon22=mon2%10;

document.year1.src="clock/"+y1+".gif";
document.year2.src="clock/"+y2+".gif";
document.year3.src="clock/"+y3+".gif";
document.year4.src="clock/"+y4+".gif";

document.month1.src="clock/"+mon11+".gif";
document.month2.src="clock/"+mon22+".gif";

document.date1.src="clock/"+dat1+".gif";
document.date2.src="clock/"+dat2+".gif";

document.hour1.src="clock/"+hou1+".gif";
document.hour2.src="clock/"+hou2+".gif";

document.mini1.src="clock/"+min1+".gif";
document.mini2.src="clock/"+min2+".gif";

document.seco1.src="clock/"+sec1+".gif";
document.seco2.src="clock/"+sec2+".gif";

setTimeout("time()", 1000);
}
}
// -->

