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
	{}
	percent=.1*(diffY-lastScrollY);
	if(percent>0)percent=Math.ceil(percent);
	else percent=Math.floor(percent);
	document.getElementById("LeftAd").style.top=parseInt(document.getElementById("LeftAd").style.top)+percent+"px";
	document.getElementById("RightAd").style.top=parseInt(document.getElementById("RightAd").style.top)+percent+"px";
	lastScrollY=lastScrollY+percent;
}


suspendcode12="<div id='RightAd' style='right:0px;POSITION:absolute;TOP:66px;'><div id='rightvid1' style='position:absolute;display:none;right:0; width:100px; height:250px;' onmouseout='suoright()'><a href='http://jy.86516.com/web2012/weishi/' target='_blank' ><img src='2012gg/ws_b.jpg'  border='0'></a></div><div id='rightvid2' style='position:absolute;right:0; width:25px; height:250px;' onmouseover='fangright()'><a href='http://jy.86516.com/web2012/weishi/' target='_blank' ><img src='2012gg/ws_x.jpg'  border='0'></a></div><div onmousedown='closeright()' style='padding-top:250px'><img src='js/float_close.gif' border='0'></div></div>"

suspendcode14="<div id='LeftAd' style='left:0px;POSITION:absolute;TOP:66px;'><div id='leftvid1' style='position:absolute;display:none;left:0; width:100px; height:250px;' onmouseout='suoleft()'><a href='http://lady.86516.com/web2011/icbc/' target='_blank' ><img src='2011gg/gsyh02.jpg'  border='0'></a></div><div id='leftvid2' style='position:absolute;left:0; width:25px; height:250px;' onmouseover='fangleft()'><a href='http://lady.86516.com/web2011/icbc/' target='_blank' ><img src='2011gg/gsyh01.jpg'  border='0'></a></div><div onmousedown='closeleft()' style='padding-top:250px'><img src='js/float_close.gif' border='0'></div></div>"

document.write(suspendcode12);
document.write(suspendcode14);

window.setInterval("heartBeat()",1);

function suoleft()
{
	document.getElementById("leftvid1").style.display = "none";
	document.getElementById("leftvid2").style.display = "block";
}

function fangleft()
{
	document.getElementById("leftvid1").style.display = "block";
	document.getElementById("leftvid2").style.display = "none";
}

function suoright()
{
	document.getElementById("rightvid1").style.display = "none";
	document.getElementById("rightvid2").style.display = "block";
}

function fangright()
{
	document.getElementById("rightvid1").style.display = "block";
	document.getElementById("rightvid2").style.display = "none";
}

function closeright()
{
	document.getElementById("RightAd").style.display = "none";
}

function closeleft()
{
	document.getElementById("LeftAd").style.display = "none";
}
