﻿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("p1").style.top=parseInt(document.getElementById("p1").style.top)+percent+"px";
document.getElementById("p2").style.top=parseInt(document.getElementById("p2").style.top)+percent+"px";
//document.getElementById("p3").style.top=parseInt(document.getElementById("p3").style.top)+percent+"px";
//document.getElementById("p4").style.top=parseInt(document.getElementById("p4").style.top)+percent+"px";
lastScrollY=lastScrollY+percent; 
}
//suspendcode12="<DIV id=\"lovexin\" style='left:12px;POSITION:absolute;TOP:6px;width:110px;height:260px;'><table width=\"110\" height=\"260\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"260\"><EMBED src='adv/c1.swf' quality=high  WIDTH=110 HEIGHT=260 TYPE='application/x-shockwave-flash'  ></EMBED></td></tr><tr><td height=\"1\" style='font-size: 1px;color: #FFFFFF;HEIGHT: 1px;'>.</td></tr></table></div>"
//suspendcode14="<DIV id=\"lovexin\" style='right:4px;POSITION:absolute;TOP:6px;width:100px;height:300px;'><table width=\"90\" height=\"181\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"180\"><EMBED src='adv/index-c2.swf' quality=high  WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash'  ></EMBED></td></tr><tr><td height=\"1\" style='font-size: 1px;color: #FFFFFF;HEIGHT: 1px;'>.</td></tr></table></div>"
//suspendcode11="<DIV id=\"lovexin\" style='left:12px;POSITION:absolute;TOP:6px;width:110px;height:300px;'><table width=\"110\" height=\"300\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"300\"><EMBED src='adv/rw.swf' quality=high  WIDTH=110 HEIGHT=300 TYPE='application/x-shockwave-flash'  ></EMBED></td></tr><tr><td height=\"1\" style='font-size: 1px;color: #FFFFFF;HEIGHT: 1px;'>.</td></tr></table></div>"
//suspendcode13="<DIV id=\"lovexin\" style='right:4px;POSITION:absolute;TOP:6px;width:110px;height:260px;'><table width=\"110\" height=\"260\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"260\"><EMBED src='adv/c2.swf' quality=high  WIDTH=110 HEIGHT=260 TYPE='application/x-shockwave-flash'  ></EMBED></td></tr><tr><td height=\"1\" style='font-size: 1px;color: #FFFFFF;HEIGHT: 1px;'>.</td></tr></table></div>"

//suspendcode15="<DIV id=\"myright\" style='right:4px;POSITION:absolute;TOP:450px;width:110px;height:110px;display:none ;'><table width=\"110\" height=\"110\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"110\"><EMBED src='http://auto.ks.js.cn/adv/lamu.swf' quality=high  WIDTH=110 HEIGHT=110 TYPE='application/x-shockwave-flash'  ></EMBED></td></tr><tr><td height=\"1\" style='font-size: 9pt;color: #FFFFFF;HEIGHT: 10px;'><center><a class=floattxt href='javascript:changediv()'><b>重播</b></a></center></td></tr></table></div>"

//漂
suspendcode21="<DIV id=\"p1\" style='left:12px;POSITION:absolute;TOP:260px;width:110px;height:110px;display:none'><table width=\"110\" height=\"111\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"300\"><img src='images/baoma.gif'</td></tr><tr><td height=\"1\" style='font-size: 1px;color: #FFFFFF;HEIGHT: 1px;'>.</td></tr></table></div>"
suspendcode22="<DIV id=\"p2\" style='right:4px;POSITION:absolute;TOP:260px;width:110px;height:110px;'><table width=\"110\" height=\"111\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"300\"><EMBED src='swf/c4.swf' quality=high  WIDTH=110 HEIGHT=110 TYPE='application/x-shockwave-flash'  ></EMBED></td></tr><tr><td height=\"1\" style='font-size: 1px;color: #FFFFFF;HEIGHT: 1px;'>.</td></tr></table></div>"
//suspendcode31="<DIV id=\"p3\" style='left:12px;POSITION:absolute;TOP:320px;width:110px;height:110px;'><table width=\"110\" height=\"111\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"300\"><EMBED src='adv/c5.swf' quality=high  WIDTH=110 HEIGHT=110 TYPE='application/x-shockwave-flash'  ></EMBED></td></tr><tr><td height=\"1\" style='font-size: 1px;color: #FFFFFF;HEIGHT: 1px;'>.</td></tr></table></div>"
//suspendcode32="<DIV id=\"p4\" style='right:4px;POSITION:absolute;TOP:320px;width:110px;height:110px;'><table width=\"110\" height=\"111\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"300\"><EMBED src='adv/c6.swf' quality=high  WIDTH=110 HEIGHT=110 TYPE='application/x-shockwave-flash'  ></EMBED></td></tr><tr><td height=\"1\" style='font-size: 1px;color: #FFFFFF;HEIGHT: 1px;'>.</td></tr></table></div>"
//漂

if(document.body.offsetWidth>800){
//document.write(suspendcode12); 
//document.write(suspendcode14); 
//document.write(suspendcode11); 
//document.write(suspendcode13); 
//if(BigShow){
//document.write(suspendcode15);
//}
document.write(suspendcode21); 
document.write(suspendcode22); 
//document.write(suspendcode31); 
//document.write(suspendcode32); 
window.setInterval("heartBeat()",1);
}
//调过来,暂时关闭
//if(BigShow){
//showfull();
//}