suspendcode13	="<DIV id=LeftAda style='Z-INDEX: 10;left:20px;POSITION:absolute;TOP:175px; width:80px; height:240px;'>";
suspendcode13	+="<a href='http://Topic.boke28.com/Index.aspx?fkid=146' target='_blank'>";
suspendcode13	+="<img src='../Images/purepoison/c_1.gif'  width='80' height='220' border='0' />";
suspendcode13	+="</a>";
suspendcode13	+="<a style='text-align:left; cursor: hand; display:block; background:#eee; width:80px;' onclick='javascript:ClosedivLeft1()' hidefocus='true'><img src='../Images/purepoison/c_3.gif'  width='80' height='20' border='0' /></a>";
suspendcode13	+="</div>";
//右边
suspendcode15="<DIV id=RightAda style='Z-INDEX: 10;right:20px;POSITION:absolute;TOP:175px; width:80px; height:240px;'><a href='http://www.goodideacn.com/openCenter/coursesShow.aspx?pkid=476&isopen=true' target='_blank'><img alt='js浮动对联广告代码[支持flash]'  src='../Images/purepoison/c_2.gif'  width='80' height='220' border='0' /></a><a style='text-align:right; cursor: hand; display:block; background:#efefef; width:80px;' onclick='javascript:ClosedivLeft1()' hidefocus='true'><img src='../Images/purepoison/c_3.gif'  width='80' height='20' border='0' /></a></div>";

document.write(suspendcode13);
document.write(suspendcode15);
window.setInterval("heartBeatt()",1);

lastScrollY=0;

function heartBeatt() {
	var diffYy;
	if(document.documentElement && document.documentElement.scrollTop) {
		diffYy = document.documentElement.scrollTop;
	}
	else if (document.body) {
		diffYy = document.body.scrollTop;
	}
	else {
		/*Netscape stuff*/
	}
		//alert(diffYy);
	percent=.1*(diffYy-lastScrollY);
	if(percent>0) {
		percent=Math.ceil(percent);
	}
	else {
		percent=Math.floor(percent);
	}
	document.getElementById("LeftAda").style.top=parseInt(document.getElementById("LeftAda").style.top)+percent+"px";
	document.getElementById("RightAda").style.top=parseInt(document.getElementById("LeftAda").style.top)+percent+"px";
	
	lastScrollY=lastScrollY+percent;
	//alert(lastScrollY);
}

function ClosedivLeft1() {
	LeftAda.style.visibility="hidden";
	RightAda.style.visibility="hidden";
}

/*
function ClosedivLeft2() {
	LeftAda.style.visibility="hidden";
	RightAda.style.visibility="hidden";
}
*/
