self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; 
lastScrollY = 0;

NS = navigator.userAgent.toLowerCase().indexOf('gecko') > 0 ? 1 : 0;
IE = navigator.userAgent.toLowerCase().indexOf('ie') > 0 ? 1 : 0;

function heartBeat() {
	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 += percent;
			alert(percent);
			alert(document.all.floater.style.pixelTop);
		}

//		if(NS) {
//			rslt = parseInt(document.getElementById("floater").style.top) + parseInt(percent);
//			document.getElementById("floater").style.top = rslt;
//		}
		
		lastScrollY = lastScrollY + percent;
		//alert(lastScrollY);
	}
}
if(NS || IE) {
	action = window.setInterval("heartBeat()",1);
}