//Code by John B. Wilson - enjoy!
dow=new Array("Sun'sDay","Moon'sDay","Tyr'sDay","Woden'sDay","Thor'sDay","Freya'sDay","Sateara'sDay");
m=new Array("SnowMoon","Horning","Lenting","Ostara","MerryMoon","Fallow","HayMoon","Harvest","Shedding","Hunting","FogMoon","WolfMoon");
date=new Date();basetime=date.getTime();year=date.getYear();if(year<2000){year=year+1900};//Y2K fix?
yearre=year+250;//Convert to Runic Era
today=dow[date.getDay()]+" "+date.getDate()+" "+m[date.getMonth()]+" "+yearre+" RunicEra * ";
col=new Array("FF0000","FF0000","990000","4444FF","44FF44","BBBB00");
msg=new Array("···","····","·····","123456789ABC",today," ");//h,m,s,face,date,digital
scl=new Array(1,1,1,5.4,7.2,0.4);
ClkX=80;ClkY=0;ClkSize=10;
LetFont="Arial";LetSize=1;
fltspeed=0.5;rotrate=0.1;//rots per sec
//===========================
amp=new Array();ang=new Array();
rot=0;d=document;ie=(d.all);ns=(d.layers);
for(i=0;i<scl.length;i++){scl[i]=scl[i]*ClkSize};
if(msg[3].length>msg[4].length){arrlen=msg[3].length}else{arrlen=msg[4].length}
x=new Array();y=new Array();X=new Array();Y=new Array();for(i=-1;i<arrlen;i++){x[i]=0;y[i]=0;X[i]=0;Y[i]=0;}
tag=(ns)?"layer":"div";scrl=0;
sty=(ns)?"":"style=position:absolute;height:16px;width:16px;font-family:"+LetFont+";font-size:16px;";
{d.write("<div id=divid style=position:absolute>")};
for(j=0;j<msg.length;j++){for(i=0;i<msg[j].length;i++)
{ch=msg[j].charAt(i);
 if(j==3){ch=i;if(ch=="0"){ch="12"};};//cheat for face
 if(j<3){FSize=4}else{FSize=LetSize};//make hands bigger
 d.write('<'+tag+' id=lr'+j+i+' top=0 left=0 height=16px width=16px '+sty+'><center><font face='+LetFont+' size='+FSize+' color=#'+col[j]+'>'+ch+'</font></center></'+tag+'>')};};
{d.write("</div>")};
//===========================
xmouse=0;ymouse=0;
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){xmouse=(ns)?evnt.pageX+ClkX:event.x+ClkX;ymouse=(ns)?evnt.pageY+ClkY-window.pageYOffset:event.y+ClkY;}
(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
//===========================
function MoveEm(){
if(ie){divid.style.top=window.document.body.scrollTop};scrl=(ns)?window.pageYOffset:0;
time=new Date();rot=(basetime-time.getTime())/500*Math.PI*rotrate;
secs=time.getSeconds();sec=Math.PI*secs/30;
mins=time.getMinutes();min=Math.PI*mins/30;
hrs=time.getHours();hr=Math.PI*(hrs/6+parseInt(mins)/360);
x[-1]=xmouse;y[-1]=ymouse;//floating function
for(i=0;i<arrlen;i++){x[i]=Math.round(X[i]+=(x[i-1]-X[i])*fltspeed);y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*fltspeed);};
if(ie){
cmin=(mins<10)?"0":"";csec=(secs<10)?"0":"";am_pm=(hrs<12)?"a":"p";if(hrs>12){hrs-=12};
d.all.lr50.innerHTML="<div style=font-size:9;color="+col[5]+">"+hrs+":"+cmin+mins+":"+csec+secs+am_pm+"</div>";
};
ang[0]=hr;ang[1]=min;ang[2]=sec;ang[5]=Math.PI*1.25;
for(j=0;j<msg.length;j++)
{for(i=0;i<msg[j].length;i++)
 {
  amp[j]=(j<=2)?scl[j]*i:scl[j];
  ang[3]=i*2*Math.PI/msg[3].length;ang[4]=i*2*Math.PI/msg[4].length+rot;
  ch=(ns)?document.layers['lr'+j+i]:eval('lr'+j+i).style;
  ch.left=x[i]+amp[j]*Math.sin(ang[j]);
  ch.top=y[i]-amp[j]*Math.cos(ang[j])+scrl;
 };//for i
};//for j
setTimeout('MoveEm()',5);};//MoveEm
//===========================
if(ie||ns)window.onload=MoveEm;