
Ypos = document.body.scrollTop+event.y;
}
document.onmousemove = MoveHandler;
}
else if (document.layers)
{
function xMoveHandler(evnt){
Xpos = evnt.pageX;
Ypos = evnt.pageY;
}
window.onMouseMove = xMoveHandler;
}
function animateLogo() {
if (document.all)
{
yBase = window.document.body.offsetHeight/4;
xBase = window.document.body.offsetWidth/4;
}
else if (document.layers)
{
yBase = window.innerHeight/4 ;
xBase = window.innerWidth/4;
}
if (document.all)
{
var totaldivs=document.all.starsDiv.all.length
for ( i = 0 ; i < totaldivs ; i++ )
{
var tempdiv=document.all.starsDiv.all[i].style
tempdiv.top = ypos + math.cos((20*math.sin(currstep/20))+i*70)*ybase*(math.sin(10+currstep/10)+0.2)*math.cos((currstep + i*25)/10);
tempdiv.left = xpos + math.sin((20*math.sin(currstep/20))+i*70)*xbase*(math.sin(10+currstep/10)+0.2)*math.cos((currstep + i*25)/10);
}
}
else if (document.layers)
{
for ( j = 0 ; j < 7 ; j++ )
{
var templayer="a"+j
document.layers[templayer].top = ypos + math.cos((20*math.sin(currstep/20))+j*70)*ybase*(math.sin(10+currstep/10)+0.2)*math.cos((currstep + j*25)/10);
document.layers[templayer].left =Xpos + math.sin((20*math.sin(currstep/20))+j*70)*xbase*(math.sin(10+currstep/10)+0.2)*math.cos((currstep + j*25)/10);
}
}
currstep += step;
setTimeout("animateLogo()", 15);
}
animatelogo();
// -->
Copyright Centerstage Dancesport 2007