﻿suspendcode = "<DIV id=lovexin1 style='Z-INDEX: 10; LEFT: 5px; POSITION: absolute; top:10px; width: 90; height: 16px;'></DIV>"
document.write(suspendcode);
suspendcode = "<DIV id=lovexin2 style='Z-INDEX: 10; left: 5px; POSITION: absolute; TOP: 8px; width:90px; height: 16px;'><img src='../images/uctu/close2.gif' style='cursor: Hand' onClick='javascript:window.hideFun(1)' width='184' height='14' border='0' alt=close></br><img src='../images/tel.gif' style='cursor: Hand' width='186' height='88' border='0' ><br></DIV>"
document.write(suspendcode);



suspendcode1 = "<DIV id=lovexin3 style='Z-INDEX: 10; LEFT: 5px; POSITION: absolute; top:240px; width: 90; height: 16px;'></DIV>"
document.write(suspendcode1);
suspendcode1 = "<DIV id=lovexin4 style='Z-INDEX: 10; right: 40px!important;rigth: 10px; POSITION: absolute; TOP: 240px; width:100px; height: 250px;'><img src='../images/uctu/close.gif' onClick='javascript:window.hideFun(3)' width='120' height='14' border='0' vspace='3' alt=close></br><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='130' height='250' ><param name='movie' value='../images/right01.swf' /><param name='quality' value='high' /><param name='wmode' value='transparent' /><embed src='../images/right01.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='130' height='250' ></embed></object></DIV>"
document.write(suspendcode1);



suspendcode2 = "<DIV id=lovexin5 style='Z-INDEX: 10; LEFT: 5px; POSITION: absolute; top:240px; width: 90; height: 16px;'></DIV>"
document.write(suspendcode2);
suspendcode2 = "<DIV id=lovexin6 style='Z-INDEX: 10; left: 10px; POSITION: absolute; TOP: 240px; width:100px; height: 250px;'><img src='../images/uctu/close.gif' onClick='javascript:window.hideFun(5)' width='120' height='14' border='0' vspace='3' alt=close></br><a href='../uc/notice.html' target='_blank'><img src='../images/uctu/left01.gif' width='130' height='250' border='0' ></a></DIV>"
document.write(suspendcode2);



//flash格式调用方法
//<EMBED src='flash.swf' quality=high  WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=ad wmode=opaque></EMBED>

lastScrollY = 0;
lastScrollY1 = 0
lastScrollY2 = 0
lastScrollY3 = 0
function heartBeat() {
    diffY = document.documentElement.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;
}
function heartBeat2() {
    diffY = document.documentElement.scrollTop;
    percent = .3 * (diffY - lastScrollY2);
    if (percent > 0) percent = Math.ceil(percent);
    else percent = Math.floor(percent);
    document.all.lovexin5.style.pixelTop += percent;
    document.all.lovexin6.style.pixelTop += percent;
    lastScrollY2 = lastScrollY2 + percent;
}
function heartBeat1() {
    if (percent > 0) percent = Math.ceil(percent);
    else percent = Math.floor(percent);
    document.all.lovexin3.style.pixelTop += percent;
    document.all.lovexin4.style.pixelTop += percent;
    lastScrollY1 = lastScrollY1 + percent;
}
function heartBeat3() {
    diffY = document.documentElement.scrollTop;
    percent = .3 * (diffY - lastScrollY3);
    if (percent > 0) percent = Math.ceil(percent);
    else percent = Math.floor(percent);
    document.all.lovexin7.style.pixelTop += percent;
    document.all.lovexin8.style.pixelTop += percent;
    lastScrollY3 = lastScrollY3 + percent;
}
function hideFun(i) {
    var hidestyle = "lovexin" + i;
    // hidestyle = lovexin5;
    var j = i + 1;
    var hidestyle2 = "lovexin" + j;
    document.getElementById(hidestyle).style.visibility = "hidden";

    document.getElementById(hidestyle2).style.visibility = "hidden";
}
window.setInterval("heartBeat()", 1);
window.setInterval("heartBeat1()", 1);
window.setInterval("heartBeat2()", 1);
window.setInterval("heartBeat3()", 1);
function Addcollect() {
    url = "http://www.gsgx.net";
    title = "股色股香经济论坛";

    window.external.AddFavorite(url, unescape(title));
}

function AddHome() {
    if (document.all) {
        document.body.style.behavior = 'url(#default#homepage) ';
        document.body.setHomePage('http://www.gsgx.net ');
    }

}
function GoToURL() {
    window.location.href = "../uc/UC.html";
}

