function Footer_inc(chk) {
    var	int_h = 25;
	var int_w = 10;
	if (chk == 1){
	
	    int_h = 50;
		int_w = 0;
	    pageWidth = 1000;
	    adLeft = window.screen.width/2-pageWidth/2-125;
	    adRight = window.screen.width/2+pageWidth/2;

	    document.write("<div id='floater' name='duiLian' style='Z-INDEX: 1; LEFT:" +  adRight +"px; TOP: 95px; POSITION: absolute; visibility: visible;'>");
        document.write("<table width='151' border='0' cellspacing='0' cellpadding='0'>");
	    document.write("<tr><td><a href='http://www.dlymgz.com/newsdisplay.do?id=1734' target='_blank'><img src='/wz/images/ad20110506.jpg' alt='大连育明高中初升高咨询方式,书记室：0411-84759236,副校长室：0411-84759335,教务处：0411-84759193,政教处：0411-84759866,校办公室：0411-84759232,科研处：0411-84759359' border='0'/></a></td></tr>");
        document.write("</table>");
	    document.write("</div>");
/*
		document.write("<div id='floaterLeftTop' name='duiLian' style='Z-INDEX: 1; LEFT:" +  adLeft +"px; TOP: 5px; POSITION: absolute; visibility: visible;'>");
		document.write("<a href='http://124.93.228.226/XSZJ/index.htm' target='_blank'><img src=/images/p_04.jpg' border='0'></a>");
		document.write("</div>");

		document.write("<div id='floaterLeftBottom' name='duiLianBottom' style='Z-INDEX: 1; LEFT:" +  adLeft +"px; TOP: 205px; POSITION: absolute; visibility: visible;'>");
		document.write("<img src='/ftzone/images/index/ad20100501.gif' border='0'>");
		document.write("</div>");
		document.write("<div id='floaterRight' name='duiLian' style='Z-INDEX: 1; LEFT:" +  adRight +"px; TOP: 5px; POSITION: absolute; visibility: visible;'>");
		document.write("<a href='/ftzone/tiles/specialSubject_20090908/index.html' target='_blank'><img src='/ftzone/images/index/ad_20090908.jpg' border='0'></a>");
		document.write("</div>");
		document.write("<div id='floaterRight' name='duiLianBottom' style='Z-INDEX: 1; LEFT:" +  adRight +"px; TOP: 205px; POSITION: absolute; visibility: visible;'>");
		document.write("<img src='/ftzone/images/index/ad20100501.gif' border='0'>");
		document.write("</div>");
		*/
		window.setInterval("heartBeat()",1);
    }
}
lastScrollY = 0;
function heartBeat() {
	diffY = document.documentElement.scrollTop;
	if(diffY != lastScrollY) {
		percent = .1 * (diffY - lastScrollY);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		$("div[name='duiLian']").css('top',parseInt($("div[name='duiLian']").css('top'))+percent);
		//$("div[name='duiLianBottom']").css('top',parseInt($("div[name='duiLianBottom']").css('top'))+percent);
		lastScrollY = lastScrollY + percent;
	}
}


