//suspendcode="<DIV id=expo1 style='Z-INDEX: 10; POSITION: absolute; LEFT: 20px; TOP: 20px; width: 90px; height: 414px;'><img src='dt/zhuanti/expo2010/images/close.gif' onClick='javascript:window.hide()' width='47' height='14' border='0' vspace='0' alt='关闭对联'><EMBED src='dt/zhuanti/expo2010/images/expo.swf' quality=high  WIDTH=90 HEIGHT=400 TYPE='application/x-shockwave-flash' id=f1 wmode=opaque></EMBED></DIV>"
//document.write(suspendcode);

suspendcode="<DIV id=expo2 style='Z-INDEX: 10; POSITION: absolute; RIGHT: 20px; TOP: 20px; width: 90px; height: 414px;'><img src='dt/zhuanti/expo2010/images/close.gif' onClick='javascript:window.hide()' width='47' height='14' border='0' vspace='0' alt='关闭对联'><EMBED src='dt/zhuanti/expo2010/images/expo.swf' quality=high  WIDTH=90 HEIGHT=400 TYPE='application/x-shockwave-flash' id=f1 wmode=opaque></EMBED></DIV>"
document.write(suspendcode);

//flash格式调用方法
//<EMBED src='flash.swf' quality=high  WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=ad wmode=opaque></EMBED>

lastScrollY=0;
function SetScroll(){
diffY=document.body.scrollTop;
percent=.3*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
//document.all.expo1.style.pixelTop+=percent;
document.all.expo2.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
function hide()  
{   
//expo1.style.visibility="hidden"; 
expo2.style.visibility="hidden";
}
window.setInterval("SetScroll()",1);
