function MoveQuickMenu() { if(IE) { diffY = document.body.scrollTop; diffX = 0; } if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; } if(diffY != lastScrollY) { percent = .1 * (diffY - lastScrollY); if(percent > 0) percent = Math.ceil(percent); else percent = Math.floor(percent); if(IE) document.all.quick.style.pixelTop += percent; if(NS) document.quick.top += percent; lastScrollY = lastScrollY + percent; } if(diffX != lastScrollX) { percent = .1 * (diffX - lastScrollX); if(percent > 0) percent = Math.ceil(percent); else percent = Math.floor(percent); if(IE) document.all.quick.style.pixelLeft += percent; if(NS) document.quick.top += percent; lastScrollY = lastScrollY + percent; } } if(NS || IE) action = window.setInterval("MoveQuickMenu()",1);