 // Common clock script
 // Don't even ask me where I've toke the numbers 53 and 85
 
 
 
 fCol='000000';//face colour.
 dCol='ff0000';//dot colour.
 hCol='ff0000';//hours colour.
 mCol='000000';//minutes colour.
 sCol='7788ff';//seconds colour.
 ClockHeight=35;
 ClockWidth=35;
 ClockFromMouseY=80;
 ClockFromMouseX=5;

 //Alter nothing below! Alignments will be lost!
 big_x = 0;
 big_y = 0;
 secAngle = 0;
 minAngle = 0;
 hrsAngle = 0;
 ns=1;
// ie=(document.all);
 h=3;
 m=4;
 s=5;
 face='1 2 3 4 5 6 7 8 9 10 11 12';
 face=face.split(' ');
 n=face.length;
 speed=0.6;
 ymouse=0;
 xmouse=0;
 scrll=0;
 p="<font face=Arial size=1 color="+fCol+">";
 e=360/n;
 HandHeight=ClockHeight/4;
 HandWidth=ClockWidth/4;
 HandY=0;
 HandX=0;
 scrll=0;
 y=new Array();x=new Array();Y=new Array();X=new Array();
 for (i=0; i < 37; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
 Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
 for (i=0; i < n; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}

 ClockAndAssign();

 function ClockAndAssign(){
 time = new Date ();

 secs = time.getSeconds();
 secAngle = (360 * (secs+1))/60; 

 mins = time.getMinutes();
 minAngle = ((360 * (mins+1))/60) + 85; 

 hrs = time.getHours();
 hrsAngle = ((360 * (hrs+1))/12 + 53) + (30 * (minAngle+1))/360; 

 // var angleView = document.getElementById('angelView');
 }
 function Delay(){
 y[0]=Math.round(Y[0]+=(Y[0])*speed);
 x[0]=Math.round(X[0]+=(X[0])*speed);
 for (i=1; i < 37; i++){
 y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
 x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
 }
 ClockAndAssign();
 setTimeout('Delay()',20);
 eval("$('#seki').rotate("+secAngle+")");
 eval("$('#mine').rotate("+minAngle+")");
 eval("$('#hrse').rotate("+hrsAngle+")");
 //angleView.innerHTML=secAngle;
 }

 if (ns||ie)window.onload=Delay;


