﻿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("ALayer1").style.top=parseInt(document.getElementById("ALayer1").style.top)+percent+"px";
document.getElementById("ALayer2").style.top=parseInt(document.getElementById("ALayer1").style.top)+percent+"px";

lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
suspendcode12="<DIV id=\"ALayer1\" style='left:5px;PosITION:absolute;TOP:172px;FILTER: alpha(opacity=85);'><div align=left><img src='/Images/public/close.gif' border=0 onclick='closeBanner();' /></div><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"115\" height=\"400\"><param name=\"movie\" value=\"http://www.mmtz.net/show/nav/duilian.swf\"><param name=\"quality\" value=\"high\"><embed src=\"http://www.mmtz.net/show/nav/duilian.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"97\" height=\"233\"></embed></object></div>"
suspendcode14="<div id=\"ALayer2\" style='right:5px;PosITION:absolute;TOP:172px;FILTER: alpha(opacity=85);'><div align=right><img src='/Images/public/close.gif' border=0 onclick='closeBanner();' /></div><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"115\" height=\"400\"><param name=\"movie\" value=\"http://www.mmtz.net/show/nav/duilian2.swf\"><param name=\"quality\" value=\"high\"><embed src=\"http://www.mmtz.net/show/nav/duilian2.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"97\" height=\"233\"></embed></object></div>"
document.write(suspendcode12);
document.write(suspendcode14);
window.setInterval("heartBeat()",1);
function closeBanner()
{
document.getElementById("ALayer1").style.display= 'none';
document.getElementById("ALayer2").style.display= 'none';
}
//setTimeout("closeBanner()",6000);