//function killErrors() { 
//return true; 
//} 
//window.onerror = killErrors; 
//
//function winload() 
//{ 
//duilian2.style.top=35; 
//duilian2.style.left=10; 
////duilian2.style.left=70; 
//duilian3.style.top=35;
//duilian3.style.right=10;
////duilian3.style.right=70; 
//duilian4.style.top=300; 
//duilian4.style.left=10; 
//duilian5.style.top=300; 
//duilian5.style.right=10;
//} 
//if(document.body.offsetWidth>800)
//{ 
//{ 
//document.write("<div id=duilian3 style='position: absolute;visibility:visible;z-index:1'><a href='http://www.endi.com.cn/lailu.asp' target='_blank'><img src='http://www.endi.com.cn/xiao.gif' border=0></a></div>"
//+"<div id=duilian2 style='position: absolute;visibility:visible;z-index:1'><a href='http://www.endi.com.cn/lailu.asp' target='_blank'><img src='http://www.endi.com.cn/xiao.gif' border=0></a></div>"); 
//} 
//winload() 
//}
/*


function initEcAd() {
document.all.AdLayer1.style.posTop = -200;
document.all.AdLayer1.style.visibility = 'visible'
document.all.AdLayer2.style.posTop = -200;
document.all.AdLayer2.style.visibility = 'visible'
MoveLeftLayer('AdLayer1');
MoveRightLayer('AdLayer2');
}
function MoveLeftLayer(layerName) {
var x = 5;
var y = 100;// 左侧广告距离页首高度
var diff = (document.body.scrollTop + y - document.all.AdLayer1.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = parseInt(y)");
eval("document.all." + layerName + ".style.posLeft = x");
setTimeout("MoveLeftLayer('AdLayer1');", 20);
}
function MoveRightLayer(layerName) {
var x = 5;
var y = 100;// 右侧广告距离页首高度
var diff = (document.body.scrollTop + y - document.all.AdLayer2.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posRight = x");
setTimeout("MoveRightLayer('AdLayer2');", 20);
}

var strs1="";

if (typeof(strs) != 'undefined')
{
    strs1=strs;
}

document.write("<div id=AdLayer1 style='position: absolute;visibility:hidden;z-index:1'>"+strs1+"</div>"
+"<div id=AdLayer2 style='position: absolute;visibility:hidden;z-index:1'><a href='http://www.endi.com.cn/lailu.asp' target='_blank'><img src=http://www.endi.com.cn/xiao.gif border='0'></a></div>");
initEcAd()

// 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*/}
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("lovexin12").style.top=parseInt(document.getElementById
("lovexin12").style.top)+percent+"px";
document.getElementById("lovexin14").style.top=parseInt(document.getElementById
("lovexin12").style.top)+percent+"px";
lastScrollY=lastScrollY+percent; 
}

var strs1="";
if (typeof(strs) != 'undefined')strs1=strs;

suspendcode12="<DIV id=\"lovexin12\" style='left:2px;POSITION:absolute;TOP:120px;width:113px;height:230px;'>"+strs1+"</div>"
suspendcode14="<DIV id=\"lovexin14\" style='right:2px;POSITION:absolute;TOP:120px;width:95px;height:200px;'><a href='http://www.endi.com.cn/lailu.asp' target='_blank'><img src=http://www.endi.com.cn/xiao.gif border='0'></a></div>"
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",50);