// JavaScript Document
lastScrollY=0;
function heartBeat()
{ 
	var diffY;
	if (document.documentElement && document.documentElement.scrollTop)
		diffY = document.documentElement.scrollTop;
	else if (document.body)
		diffY = document.body.scrollTop
	else
		{/*Netscape stuff*/}
		
	//alert(diffY);
	percent=.1*(diffY-lastScrollY); 

	if(percent>0)percent=Math.ceil(percent); 
	else percent=Math.floor(percent); 
	document.getElementById("AD_Left").style.top=parseInt(document.getElementById
	
	("AD_Left").style.top)+percent+"px";
	document.getElementById("AD_Right").style.top=parseInt(document.getElementById
	
	("AD_Right").style.top)+percent+"px";
	
	lastScrollY=lastScrollY+percent; 
	//alert(lastScrollY);
}

if (screen.width>1024)
{
	suspendcode12="<DIV id=\"AD_Left\" style='left:2px;POSITION:absolute;TOP:20px;'><a href=http://www.ebookslife.com/survey/index.htm target=_blank><img src=http://www.ebookslife.com/ad/survey.jpg width=100 height=329 border=0></a></div>"
	suspendcode14="<DIV id=\"AD_Right\" style='right:2px;POSITION:absolute;TOP:20px;'><a href=http://www.ebookslife.com/freecar target=_blank><img src=http://www.ebookslife.com/ad/car6.gif width=100 height=329 border=0></a></div>"

	document.write(suspendcode12); 
	document.write(suspendcode14); 

	window.setInterval("heartBeat()",10);
}
