self.onError=null;
currentX = currentY = 0; 
whichIt = null; 
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
/* --------------------------------------------------------------
 * menu focut out -> back color set
 * ----------------------------------------------------------- */
function menuMouseOut(n) {
	menuChange(0);
	menu_1.style.backgroundColor = "";
	menu_2.style.backgroundColor = "";
	menu_3.style.backgroundColor = "";
	menu_4.style.backgroundColor = "";
}

/* --------------------------------------------------------------
 * top menu change
 * ----------------------------------------------------------- */
function menuChange(n) {
  menu01.style.visibility = "hidden";
  menu02.style.visibility = "hidden";
  menu03.style.visibility = "hidden";
  menu04.style.visibility = "hidden";
	
  switch(n) {
    case 1:
		if(NS || IE) 
		//alert("asdf");
		heartBeat();
		menu01.style.visibility = "visible"; 
		break;
    case 2: 
    	if(NS || IE) 
		//alert("asdf");
		heartBeat();
		menu02.style.visibility = "visible"; 
		break;
    case 3: 
    	if(NS || IE) 
		//alert("asdf");
		heartBeat();
		menu03.style.visibility = "visible"; 
		break;
    case 4: 
    	if(NS || IE) 
		//alert("asdf");
		heartBeat();
		menu04.style.visibility = "visible"; 
		break;
  }
}
<!-- STALKER CODE -->
function heartBeat() {
	var obj = document.all;
	
	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.floater.style.pixelTop = 100;
	
		if(NS) 
			//document.floater.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)
		
			obj.menu01.style.pixelLeft += percent;
			obj.menu02.style.pixelLeft += percent;
			obj.menu03.style.pixelLeft += percent;
			obj.menu04.style.pixelLeft += percent;
		if(NS) 
		
			document.menu01.top += percent;
			document.menu02.top += percent;
			document.menu03.top += percent;
			document.menu04.top += percent;
		lastScrollY = lastScrollY + percent;
	} 
} 