
    var adLeftSrc = "http://www.bjsrb.com/zixun.png"
    var adLeftFlash = ""
    var adLeftHref = "#"
    var adLeftWidth = 118
    var adLeftHeight = 166
    var adRightSrc = ""//"http://www.bjsrb.com/20-attention.gif"
    var adRightFlash = ""
    var adRightHref = "#"
    var adRightWidth = 126
    var adRightHeight = 233
    var marginTop = 170 //在这里更改距离浏览器底端的高度
    var marginLeft = 10//在这里更改距离浏览器右端的高度
    var navUserAgent = navigator.userAgent
    function load(){
        judge();
        move();
    }
    function move() {
        judge();
        setTimeout("move();",80)
    }
    function judge(){
        if (navUserAgent.indexOf("Firefox") >= 0 || navUserAgent.indexOf("Opera") >= 0) {
            if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adLeftHeight - marginTop + 'px';}
            if (adRightSrc != "") {
                document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adRightHeight - marginTop + 'px';
                document.getElementById("adRightFloat").style.left = ((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
            } 
        }
        else{
            if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adLeftHeight - marginTop + 'px';}
            if (adRightSrc != "") {
                document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adRightHeight - marginTop + 'px';
                document.getElementById("adRightFloat").style.left = ((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
            }
        }
        if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.left = marginLeft + 'px';}
    }
    if (adLeftSrc != "") {
        if (adLeftFlash == "flash") {
        document.write("<div id=\"adLefttFloat\" style=\"position: absolute;width:" + adLeftWidth + ";height:100px; font-size:12px;\"><img src=\"http://www.zj.com/ad/cha.gif\" width=\"12\" border=\"0\" height=\"12\" onMousedown=\"javascript:close_float_left();void(0);\";>");
            document.write("<div id=\"Float\" style=\"width:" + adLeftWidth + ";\"><a href=\"" + adLeftHref +"\"><embed src=\"" + adLeftSrc + "\" quality=\"high\"  width=\"" + adLeftWidth + "\" height=\"" + adLeftHeight + "\" type=\"application/x-shockwave-flash\"></embed></a></div>");
            document.write("</div>");
        }
        else{
        document.write("<div id=\"adLeftFloat\" style=\"position: absolute;width:" + adLeftWidth + ";height:100px; font-size:12px;\">");
            document.write("<div id=\"Float\" style=\"width:" + adLeftWidth + ";\"><img style=\"cursor:pointer;\" onclick=\"javascript:window.open('http://b3.qq.com/webc.htm?new=0&sid=800019300&o=www.bjsrb.com&q=1', '_blank', 'height=502,width=644,toolbar=no,scrollbars=no,menubar=no,status=no');\" alt=\"在线咨咨\" src=\"" + adLeftSrc + "\"></div>");
            document.write("</div>");
        }
    }
    if (adRightSrc != "") {
        if (adRightFlash == "flash") {
        document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth + ";height:100px; font-size:12px;text-align:right;\"><img src=\"http://www.zj.com/ad/cha.gif\" width=\"12\" border=\"0\" height=\"12\" onMousedown=\"javascript:close_float_right();void(0);\";>");
            document.write("<div id=\"Float\" style=\"position: absolute;width:" + adRightWidth + ";\"><a href=\"" + adRightHref +"\"><embed src=\"" + adRightSrc + "\" quality=\"high\"  width=\"" + adLeftWidth + "\" height=\"" + adRightHeight + "\" type=\"application/x-shockwave-flash\"></a></embed></div>");
            document.write("</div>");
        }
        else{
        document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth + ";height:100px; font-size:12px;text-align:right;\"><img src=\"http://www.zj.com/ad/cha.gif\" width=\"12\" border=\"0\" height=\"12\" onMousedown=\"javascript:close_float_right();void(0);\";>");
            document.write("<div id=\"Float\" style=\"width:" + adRightWidth + ";\"><a href=\"" + adRightHref +"\" ><img src=\"" + adRightSrc + "\"   width=\"" + adLeftWidth + "\" height=\"" + adRightHeight + "\"  border=\"0\"  \></a></div>");
            document.write("</div>");
        }
    }
    function close_float_right(){
    document.getElementById("adRightFloat").style.display="none";}    
    function close_float_left(){
    document.getElementById("adLeftFloat").style.display="none";}
    load();