﻿//
//   var adLeftSrc = "images/gundong_2.jpg"   //图片地址
//   var adLeftFlash = "img"
//   var adLeftHref = ""
//   var adLeftWidth = 71
//   var adLeftHeight = 126
//   var adRightSrc = "images/gundong_2.jpg"//图片地址
//   var adRightFlash = "img"
//   var adRightHref = ""
//   var adRightWidth = 71
//   var adRightHeight = 126
//   var marginTop = 280 //在这里更改距离浏览器底端的高度
//   var marginLeft = 15//在这里更改距离浏览器右端的高度
//   var navUserAgent = navigator.userAgent
//   function load(){
//    judge();
//    move();
//   }
//   function move() {
//    judge();
//    setTimeout("move();",80)
//   }
//   function judge(){
//    if (navUserAgent.indexOf("Firefox") >= 0 || navUserAgent.indexOf("Opera") >= 0) {
//     if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adLeftHeight - marginTop + 'px';}
//     if (adRightSrc != "") {
//      document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adRightHeight - marginTop + 'px';
//      document.getElementById("adRightFloat").style.left = ((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
//     } 
//    }
//    else{
//     if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adLeftHeight - marginTop + 'px';}
//     if (adRightSrc != "") {
//      document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adRightHeight - marginTop + 'px';
//      document.getElementById("adRightFloat").style.left = ((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
//     }
//    }
//    if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.left = marginLeft + 'px';}
//   }
//   if (adLeftSrc != "") {
//    if (adLeftFlash == "flash") {
//    document.write("<div id=\"adLeftFloat\" style=\"position: absolute;width:" + adLeftWidth + ";height:100px; font-size:12px;\">");
//    
//     document.write("<div id=\"Float\" style=\"width:" + adLeftWidth + ";\"><embed src=\"" + adLeftSrc + "\" quality=\"high\" width=\"" + adLeftWidth + "\" height=\"" + adLeftHeight + "\" type=\"application/x-shockwave-flash\"></embed></div>");
//     document.write("</div>");
//    }
//    else{
//    document.write("<div id=\"adLeftFloat\" style=\"position: absolute;width:" + adLeftWidth + ";height:100px; font-size:12px;\">");
//    
//     document.write("<div id=\"Float\" style=\"width:" + adLeftWidth + ";\"><a href=\"" + adLeftHref +"\" target=_blank><img src=\"" + adLeftSrc + "\" width=\"" + adLeftWidth + "\" height=\"" + adLeftHeight + "\" border=\"0\" \></a></div>");
//     document.write("</div>");
//    }
//   }
//   
//   if (adRightSrc != "") {
//    if (adRightFlash == "flash") {
//    document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth + ";height:100px; font-size:12px;text-align:right;\">");
//    
//     document.write("<div id=\"Float\" style=\"width:" + adRightWidth + ";\"><embed src=\"" + adRightSrc + "\" quality=\"high\" width=\"" + adLeftWidth + "\" height=\"" + adRightHeight + "\" type=\"application/x-shockwave-flash\"></embed></div>");
//     document.write("</div>");
//    }
//    else{
//    document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth + ";height:100px; font-size:12px;text-align:right;\">");
//    
//     document.write("<div id=\"Float\" style=\"width:" + adRightWidth + ";\"><a href=\"" + adRightHref +"\" target=_blank><img src=\"" + adRightSrc + "\"   width=\"" + adLeftWidth + "\" height=\"" + adRightHeight + "\" border=\"0\" \></a></div>");
//     document.write("</div>");
//    }
//   }
//   
//   
//   
//   
//   load();
//
//function close_float_right(){
//document.getElementById("adRightFloat").style.display="none";} 
//function close_float_left(){
//document.getElementById("adLeftFloat").style.display="none";}




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; 
}
suspendcode12="<DIV id=\"lovexin12\" style='left:2px;POSITION:absolute;TOP:120px;'><a href=online.asp target=_blank><img src=images/gundong_1.jpg border=0></a></div>"
suspendcode14="<DIV id=\"lovexin14\" style='right:2px;POSITION:absolute;TOP:120px;'><a target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=958143162 &Site=在线咨询&Menu=no' title='在线即时交谈'><img src=images/gundong_2.jpg border=0></a></div>"
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);