lastScrollYChat=0;
function floatDiv(){ 
	var diffY;
	if (document.documentElement && document.documentElement.scrollTop)
		diffY = document.documentElement.scrollTop;
	else if (document.body)
		diffY = document.body.scrollTop
	else{/*Netscape stuff*/}
		
	percent=.1*(diffY-lastScrollYChat); 
	if(percent>0)percent=Math.ceil(percent); 
	else percent=Math.floor(percent);
	document.getElementById("floatChat").style.top=parseInt(document.getElementById("floatChat").style.top)+percent+"px";
	lastScrollYChat=lastScrollYChat+percent;
}
setTimeout(function(){window.setInterval("floatDiv()",1);}, 1500);

