

/*
Cross browser revolver cursor script
By Brian Caputo (bcaputo@icdc.com)
Visit Dynamic Depot @ www.dynamic-depot.com
*/

V5=document.getElementById;B=document.all;C=document.layers;D=document.all&&window.print;E=V5&&!document.all;cC=new Array();
theta=0;
radius=20;
rate=.125;
rate2=35;
MouseX=0;MouseY=0;
createCell("Rot",0,0,20,20,"","<img src=images/cursors/flyCurS.gif>");
setInterval("Rotate()",rate2);
function Rotate(){
moveCell("Rot",MouseX+(radius*Math.cos(theta)),MouseY+50+(radius*Math.sin(theta)));
theta+=rate;}
function ChaseMouse(e){
MouseX=(B)?event.clientX+document.body.scrollLeft:e.pageX;
MouseY=(B)?event.clientY+document.body.scrollTop:e.pageY};
if(document.layers)document.captureEvents(Event.MOUSEMOVE);
if (B)document.body.onscroll=ChaseMouse;
document.onmousemove=ChaseMouse;
function createCell(N, Xp, Yp,W,H,A,Ht,BG,O,S){with(document){(C)?write("<layer name='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H+"; z-index:1;" ):write("<div id='"+N+"' style='position:absolute; left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; z-index:17;");if (BG){X=(C)?" BGColor=":"; background-color:";write(X+BG)}if(S)write((C)?" style=' "+S+"'":"; "+S+"'");if(B&&!S)write("'");write((A)?" "+A+">":">");write(Ht)}if(!O)closeCell();cC[cC.length]=N;XX=getObject2(N);if(B){XX.moveTo=moveTo;XX.moveBy=moveBy}else{XX.innerHTML=Ht}XX.refresh=refresh};
function moveCell(N,Xp,Yp){D=getCell(N);D.left=Xp;D.top=Yp};
function closeCell(){document.write((B)?"</div>":"</layer>")};
function getCell(N){D=(C)?C[N]:B[N].style;if(D==null&&C){rr=C.length;for (i=0;i<rr;i++){D=C[i].document.layers;if(D)D=D[N];if(D)return D}}return D}
function refresh(){if(B){document.all[this.id].innerHTML=this.innerHTML}else{changeContent(this.id,this.innerHTML)}}
function getObject2(N){e=(C)?C[N]:B[N];if(!e&&C){rr=C.length;for (i=0;i<rr;i++){e=C[i].document.layers;if(e)e=e[N];if(e) return e;}}return e}

