//function initEcAd() { 
//document.getElementById("AdLayer1").style.posTop = -200; 
//document.getElementById("AdLayer1").style.visibility = 'visible' 
//document.getElementById("AdLayer2").style.posTop = -200; 
//document.getElementById("AdLayer2").style.visibility = 'visible' 
//MoveLeftLayer('AdLayer1'); 
//MoveRightLayer('AdLayer2');
//} 
//function MoveLeftLayer(layerName) { 
//var x = 5; 
//var y = 100;
//var diff = (getScrollTop() + y - document.getElementById("AdLayer1").style.posTop)*.40; 
//var y = getScrollTop() + y - diff; 
//eval("document.getElementById('" + layerName + "').style.posTop =y"); 
//eval("document.getElementById('" + layerName + "').style.left =x"); 
//setTimeout("MoveLeftLayer('AdLayer1');", 20); 
//} 
//function MoveRightLayer(layerName) { 
//var x = 5; 
//var y = 100; 
//var dw=document.documentElement.clientWidth;
//var lw=document.getElementById(layerName).clientWidth;
//var diff = (getScrollTop() + y - document.getElementById("AdLayer2").style.posTop)*.40; 
//var y = getScrollTop() + y - diff; 
//eval("document.getElementById('" + layerName + "').style.posTop = y"); 
//eval("document.getElementById('" + layerName + "').style.left = dw-x-lw"); 
//setTimeout("MoveRightLayer('AdLayer2');", 20); 
//} 
//function getScrollTop()
//{
//return document.documentElement.scrollTop|| document.body.scrollTop;
//}
//document.write("<div id=AdLayer1 style='position: absolute;visibility:hidden;z-index:1'><img src='js/tul.gif' width=90 height=284 border=0></div>" 
//+"<div id=AdLayer2 style='position: absolute;visibility:hidden;z-index:1'><img src='js/tur.gif' width=90 height=284 border=0></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*/}
    
//alert(diffY);
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; 
//alert(lastScrollY);
}

//var theFloaters  = new floaters();
var strImgSrc1    = "js/tul.gif";   //广告1图片地址
var strImgWidth1  = "100";   //广告1图片宽度
var strImgHeight1 = "250";   //广告1图片高度
//var strImgLink1   = "http://www.wxhongqiao.com/";   //广告1图片链接地址
//var strImgSrc2    = "/js/tul.gif";   //广告2图片地址
//var strImgWidth2  = "100";   //广告2图片宽度
//var strImgHeight2 = "250";   //广告2图片高度
//var strImgLink2   = "http://www.wxhongqiao.com/";   //广告2图片链接地址
var strCloseSrc   = "js/close.gif";   //关闭按钮图片地址

//var theFloaters  = new floaters();
var strImgSrc3    = "js/tur.gif";   //广告1图片地址
var strImgWidth3  = "100";   //广告1图片宽度
var strImgHeight3 = "250";   //广告1图片高度
//var strImgLink3   = "http://bbs.wst.cn/dispbbs.php?boardid=355&Id=1106975";   //广告1图片链接地址
//var strImgSrc4    = "/js/tur.gif";   //广告2图片地址
//var strImgWidth4  = "100";   //广告2图片宽度
//var strImgHeight4 = "250";   //广告2图片高度
//var strImgLink4   = "http://bbs.wst.cn/dispbbs.php?boardid=355&Id=1106975";   //广告2图片链接地址
var strCloseSrc   = "js/close.gif";   //关闭按钮图片地址

suspendcode12="<DIV id=\"lovexin12\" style='left:5px;POSITION:absolute;TOP:69px;'><img border=0 src='"+strImgSrc1+"' width='"+strImgWidth1+"' height='"+strImgHeight1+"'><br><a href='JavaScript:;' onclick=\"lovexin12.style.visibility='hidden'\"><img border=0 src='"+strCloseSrc+"'></a></div>"
////<br><br><a href='"+strImgLink3+"' target='_blank'><img border=0 src='"+strImgSrc3+"' width='"+strImgWidth3+"' height='"+strImgHeight3+"'>
suspendcode14="<DIV id=\"lovexin14\" style='right:5px;POSITION:absolute;TOP:69px;'><img border=0 src='"+strImgSrc3+"' width='"+strImgWidth3+"' height='"+strImgHeight3+"'><br><a href='JavaScript:;' onclick=\"lovexin14.style.visibility='hidden'\"><img border=0 src='"+strCloseSrc+"'></a></div>"
////<br><br><a href='"+strImgLink4+"' target='_blank'><img border=0 src='"+strImgSrc4+"' width='"+strImgWidth4+"' height='"+strImgHeight4+"'>

suspendcode12="<DIV id=\"lovexin12\" style='left:5px;POSITION:absolute;TOP:69px;text-align:center'>";
suspendcode12+="  <param name=\"movie\" value=\"js/tul.gif\">";
suspendcode12+="  <param name=\"quality\" value=\"high\">";
suspendcode12+="  <img src=\"js/tul.gif\" quality=\"high\" width=\"90\" height=\"284\">";
suspendcode12+="</object><br><a href='JavaScript:;' onclick=\"lovexin12.style.visibility='hidden'\"><img border=0 src='"+strCloseSrc+"'></a></div>";
//<br><br><a href='"+strImgLink3+"' target='_blank'><img border=0 src='"+strImgSrc3+"' width='"+strImgWidth3+"' height='"+strImgHeight3+"'>
suspendcode14="<DIV id=\"lovexin14\" style='right:5px;POSITION:absolute;TOP:69px;text-align:center'>"; 
suspendcode14+="  <param name=\"movie\" value=\"js/tur.gif\">";
suspendcode14+="  <param name=\"quality\" value=\"high\">";
suspendcode14+="  <img src=\"js/tur.gif\" quality=\"high\" width=\"90\" height=\"284\">";
suspendcode14+="</object><br><a href='JavaScript:;' onclick=\"lovexin14.style.visibility='hidden'\"><img border=0 src='"+strCloseSrc+"'></a></div>"
//<br><br><a href='"+strImgLink4+"' target='_blank'><img border=0 src='"+strImgSrc4+"' width='"+strImgWidth4+"' height='"+strImgHeight4+"'>
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);

//var showad = true;
//var Toppx = 60;   //上端位置
//var AdDivW = 100;  //宽度
//var AdDivH = 360;  //高度
//var PageWidth = 800; //页面多少宽度象素下正好不出现左右滚动条
////by www.qpsh.com
//var MinScreenW = 1024; //显示广告的最小屏幕宽度象素 
//var ClosebuttonHtml = '<div align="right" style="position: absolute;top:0px;right:0px;margin:2px;padding:2px;z-index:2000;"><a href="JavaScript:;" onclick="hidead()" style="color:red;text-decoration:none;font-size:12px;">关闭</a></div>'
//var AdContentHtml1 = '<div align="center" style="color:green;font-size:23pt;font-family:黑体;"><img src="../wcj/tul.gif"></div>';
//var AdContentHtml2 = '<div align="center" style="color:green;font-size:23pt;font-family:黑体;"><img src="../wcj/tur.gif"></div>';
//document.write ('<div id="JavaScript.LeftDiv" style="position: absolute;border: 1px solid #cccccc;background-color:#f7f7f7;z-index:1000;width:'+AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml1+'</div></div>');
//document.write ('<div id="JavaScript.RightDiv" style="position: absolute;border: 1px solid #cccccc;background-color:#f7f7f7;z-index:1000;width:'+AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml2+'</div></div>');
//function scall(){
// if(!showad){return;}
// if (window.screen.width<MinScreenW){
//  alert("临时提示：\n\n显示器分辨率宽度小于"+MinScreenW+",不显示广告");
//  showad = false;
//  document.getElementById("JavaScript.LeftDiv").style.display="none";
//  document.getElementById("Javascript.RightDiv").style.display="none";
//  return;
// }
// var Borderpx = ((window.screen.width-PageWidth)/2-AdDivW)/2;
// document.getElementById("Javascript.LeftDiv").style.display="";
// document.getElementById("Javascript.LeftDiv").style.top=document.body.scrollTop+Toppx;
// document.getElementById("Javascript.LeftDiv").style.left=document.body.scrollLeft+Borderpx;
// document.getElementById("Javascript.RightDiv").style.display="";
// document.getElementById("Javascript.RightDiv").style.top=document.body.scrollTop+Toppx;
// document.getElementById("Javascript.RightDiv").style.left=document.body.scrollLeft+document.body.clientWidth-document.getElementById("Javascript.RightDiv").offsetWidth-Borderpx;
//}
//function hidead()
//{
// showad = false;
// document.getElementById("Javascript.LeftDiv").style.display="none";
// document.getElementById("Javascript.RightDiv").style.display="none";
//}
//window.onscroll=scall;
//window.onresize=scall;
//window.onload=scall;