var i;
var dow=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun");
var moy=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
function udt()
{ // 6
	var x=0,y=0;
	var r=0;
	var t=new Date();
	var o;
	o=document.getElementById("clockhandc");
	if(o)
	{
		y=o.style.top;
		x=o.style.left;
	}
	o=document.getElementById("clock12");
	if(o)
	{
		r=o.style.top-y;
	}
	x=100;y=100;
	r=100;
	o=document.getElementById("clockhandh");
	if(o)
	{
		var i,j;
		var s,q;
		q=(t.getHours()+t.getMinutes()/60)*2*Math.PI/12;
		i=x+3*r/8*Math.sin(q);
		j=y-3*r/8*Math.cos(q);
		//alert(i.toString());
		o.style.left=i.toString()+"px";
		o.style.top=j.toString()+"px";
	}
	o=document.getElementById("clockhandm");
	if(o)
	{
		var i,j;
		var s,q;
		q=t.getMinutes()*2*Math.PI/60;
		i=x+5*r/8*Math.sin(q);
		j=y-5*r/8*Math.cos(q);
		o.style.left=i.toString()+"px";
		o.style.top=j.toString()+"px";
	}
	o=document.getElementById("clockhands");
	if(o)
	{
		var i,j;
		var s,q;
		q=t.getSeconds()*2*Math.PI/60;
		i=x+7*r/8*Math.sin(q);
		j=y-7*r/8*Math.cos(q);
		o.style.left=i.toString()+"px";
		o.style.top=j.toString()+"px";
	}
}
function init()
{
	i=setInterval("udt()",250);
}
