suspendcode="<DIV id=lovexin1 style='Z-INDEX: 10; LEFT: 6px; POSITION: absolute; TOP: 140px; width: 96; height: 300px;'><img src='images/close.gif' onClick='javascript:window.hide2()' width='96' height='14' border='0' vspace='3' alt='关闭' style='cursor:pointer;'><img src='hf_pic/2010_6_1.gif' width='120' height='380' border='0'></DIV>"
document.write(suspendcode);

suspendcode="<DIV id=lovexin2 style='Z-INDEX: 10; right:2px; POSITION: absolute; TOP:140px; width: 96; height: 330px;'><img src='images/close.gif' onClick='javascript:window.hide()' width='96' height='14' border='0' vspace='3' alt='关闭' style='cursor:pointer;'><img src='hf_pic/2010_6_3.gif' width='120' height='380' border='0'></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>
function showinfo(htmUrl)
{
    var url=htmUrl; //要打开的窗口
    var winName="信息显示"; //给打开的窗口命名
    var awidth=screen.availWidth/6*2; //窗口宽度,需要设置
    var aheight=screen.availHeight/5*3; //窗口高度,需要设置 
    var atop=(screen.availHeight - aheight)/2; //窗口顶部位置,一般不需要改
    var aleft=(screen.availWidth - awidth)/2; //窗口放中央,一般不需要改
    var param0="scrollbars=0,status=0,menubar=0,resizable=0,location=0"; //新窗口的参数

    //新窗口的左部位置，顶部位置，宽度，高度
    var params="top=" + atop + ",left=" + aleft + ",width=" + awidth + ",height=" + aheight + "," + param0 ;
    win=window.open(url,winName,params); //打开新窗口
    win.focus(); //新窗口获得焦点
}
function hide()  
{   
lovexin2.style.visibility="hidden";
}
function hide2()  
{   
lovexin1.style.visibility="hidden"; 
}
lastScrollY=0;
function heartBeat(){
diffY=document.body.scrollTop;
percent=.3*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.lovexin1.style.pixelTop+=percent;
document.all.lovexin2.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat()",1);
