﻿// JavaScript Document
<!--
lastScrollY=0;
function heartBeat(){ 
var diffY;
var gd_ad_c1 = "";
var gd_ad_c2 = "";
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("gundongAd11").style.top=(document.documentElement.scrollTop+document.documentElement.clientHeight-document.getElementById("gundongAd11").offsetHeight)-20+"px";
document.getElementById("gundongAd12").style.top=parseInt(document.getElementById("gundongAd11").style.top)+percent+"px";

lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}

var bottom_H = document.documentElement.clientHeight;

var d11 = new Date('2010/5/20');if(Date.parse(d11) - Date.parse(d2)>=0){gd_ad_c1 = "<a href='\/GunDongID.asp?ID=12' target='_blank'><img src='\/MedAdPic\/0_2010420210345.gif' border='0' width='60' height='200' alt='滚动广告位招商'><\/a><br><a href=\"JavaScript:void(0);\" onclick=\"document.getElementById('gundongAd11').style.display = 'none';\"><img border='0' src='\/MedAdPic\/Close.gif'><\/a>";}else{gd_ad_c1 = '';}
var d12 = new Date('2010/5/21');if(Date.parse(d12) - Date.parse(d2)>=0){gd_ad_c2 = "<a href='\/GunDongID.asp?ID=13' target='_blank'><img src='\/MedAdPic\/3421_2010421110933.gif' border='0' width='60' height='200' alt='创建专题'><\/a><br><a href=\"JavaScript:void(0);\" onclick=\"document.getElementById('gundongAd12').style.display = 'none';\"><img border='0' src='\/MedAdPic\/Close.gif'><\/a>";}else{gd_ad_c2 = '';}

suspendcode1="<DIV id=\"gundongAd11\" style='left:22px;POSITION:absolute;TOP:"+ (bottom_H-200-25) +"px;'>"+ gd_ad_c1 +"</div>"
suspendcode2="<DIV id=\"gundongAd12\" style='right:22px;POSITION:absolute;TOP:"+ (bottom_H-200-25) +"px;'>"+ gd_ad_c2 +"</div>"

document.write(suspendcode1); 
document.write(suspendcode2); 
window.setInterval("heartBeat()",1);
//-->
/* UpDate:2010-5-18 17:34:08 */
