ROOT/js/floatMenu.js
// This comment and the 4 lines above may not be removed from the code.

This comment and the 4 lines above may not be removed from the code.
This comment and the 4 lines above may not be removed from the code .
function adjust() {
if (self.pageYOffset) { 
if (lastX==-1 || delayspeed==0)
{
lastX=floatX;
lastY=self.pageYOffset + floatY;
}
else
{
var dx=Math.abs(0);
var dy=Math.abs(self.pageYOffset+floatY-lastY);
var d=Math.sqrt(dx*dx+dy*dy);
var c=Math.round(d/10);
if (self.pageYOffset+floatY>lastY) {lastY=lastY+delayspeed+c;}
if (self.pageYOffset+floatY<lastY) {lastY=lastY-delayspeed-c;}
}
if (NS4){
document.layers['floatlayer'].pageX = floatX +'px';
document.layers['floatlayer'].pageY = lastY +'px';
}
if (NS6){
document.getElementById('floatlayer').style.left=floatX +'px';
document.getElementById('floatlayer').style.top=lastY +'px';
}
}
else if (document.documentElement && document.documentElement.scrollTop)
{
if (lastX==-1 || delayspeed==0)
{
lastX=floatX;
lastY=document.documentElement.scrollTop + floatY;
}
else
{
var dx=Math.abs(0);
var dy=Math.abs(document.documentElement.scrollTop+floatY-lastY);
var d=Math.sqrt(dx*dx+dy*dy);
var c=Math.round(d/10);
if (document.documentElement.scrollTop+floatY>lastY) {lastY=lastY+delayspeed+c;}
if (document.documentElement.scrollTop+floatY<lastY) {lastY=lastY-delayspeed-c;}
}
document.all['floatlayer'].style.left = floatX +'px';
document.all['floatlayer'].style.top = lastY +'px';
}
setTimeout('adjust()',50);
}
function adjust ( ) { if ( self . pageYOffset ) { if ( lastX == - 1 || delayspeed == 0 ) { lastX = floatX ; lastY = self . pageYOffset + floatY ; } else { var dx = Math . abs ( 0 ) ; var dy = Math . abs ( self . pageYOffset + floatY - lastY ) ; var d = Math . sqrt ( dx * dx + dy * dy ) ; var c = Math . round ( d / 10 ) ; if ( self . pageYOffset + floatY > lastY ) { lastY = lastY + delayspeed + c ; } if ( self . pageYOffset + floatY < lastY ) { lastY = lastY - delayspeed - c ; } } if ( NS4 ) { document . layers [ 'floatlayer' ] . pageX = floatX + 'px' ; document . layers [ 'floatlayer' ] . pageY = lastY + 'px' ; } if ( NS6 ) { document . getElementById ( 'floatlayer' ) . style . left = floatX + 'px' ; document . getElementById ( 'floatlayer' ) . style . top = lastY + 'px' ; } } else if ( document . documentElement && document . documentElement . scrollTop ) { if ( lastX == - 1 || delayspeed == 0 ) { lastX = floatX ; lastY = document . documentElement . scrollTop + floatY ; } else { var dx = Math . abs ( 0 ) ; var dy = Math . abs ( document . documentElement . scrollTop + floatY - lastY ) ; var d = Math . sqrt ( dx * dx + dy * dy ) ; var c = Math . round ( d / 10 ) ; if ( document . documentElement . scrollTop + floatY > lastY ) { lastY = lastY + delayspeed + c ; } if ( document . documentElement . scrollTop + floatY < lastY ) { lastY = lastY - delayspeed - c ; } } document . all [ 'floatlayer' ] . style . left = floatX + 'px' ; document . all [ 'floatlayer' ] . style . top = lastY + 'px' ; } setTimeout ( 'adjust()' , 50 ) ; }
This comment and the 4 lines above may not be removed from the code.
This comment and the 4 lines above may not be removed from the code .
// all except Explorer
 // below lines removed so horiz. scrolling won't happen
 //if (window.pageXOffset+floatX>lastX) {lastX=lastX+delayspeed+c;}
 //if (window.pageXOffset+floatX<lastX) {lastX=lastX-delayspeed-c;}
 // Explorer 6 Strict
 // below lines removed so horiz. scrolling won't happen
 //if (document.body.scrollLeft+floatX>lastX) {lastX=lastX+delayspeed+c;}
 //if (document.body.scrollLeft+floatX<lastX) {lastX=lastX-delayspeed-c;}
