﻿            var adLeftSrc = "";
            var adLeftFlash = "flash";
            var adLeftHref = "news_detail.php?nid=57";
            var adLeftWidth = 78;
            var adLeftHeight = 239;
            var adRightSrc = "";
            var adRightFlash = "";
            var adRightHref = "";
            var adRightWidth = 101;
            var adRightHeight = 237;
            var marginTop = 230;
            var marginLeft = 1;
            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 (adLeftSrc != "") { 有左边广告
                if (adLeftFlash == "flash") {
                    document.write("<div id=\"adLeftFloat\" style=\"position: absolute;width:" + adLeftWidth + ";\"><a href=\"" + adLeftHref +"\"><embed src=\"" + adLeftSrc + "\" quality=\"high\"  width=\"" + adLeftWidth + "\" height=\"" + adLeftHeight + "\" type=\"application/x-shockwave-flash\"></embed></a></div>");
                }
                else{
                    document.write("<div id=\"adLeftFloat\" style=\"position: absolute;width:" + adLeftWidth + ";\"><a href=\"" + adLeftHref +"\"><img src=\"" + adLeftSrc + "\"  width=\"" + adLeftWidth + "\" height=\"" + adLeftHeight + "\"  border=\"0\" \></a></div>");
                }
            }
            if (adRightSrc != "") {
                if (adRightFlash == "flash") {
                    document.write("<div id=\"adRightFloat\" 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>");
                }
                else{
                    document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth + ";\"><a href=\"" + adRightHref +"\"><img src=\"" + adRightSrc + "\"   width=\"" + adLeftWidth + "\" height=\"" + adRightHeight + "\"  border=\"0\"  \></a></div>");
                }
            }
            else {
                document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth + ";\"><div id=\"float_panel\" style=\"width:101px;overflow:hidden\"><img src=\"img/top.gif\" width=\"101\" height=\"50\" style=\"display:block\" /><div style=\"background: url(img/bg.jpg) repeat-y;text-align:center;\"><a href=\"msnim:chat?contact=atape0512@hotmail.com\" target=\"_blank\"><img src=\"img/support_msn.gif\" width=\"49\" height=\"51\" vspace=\"5\" border=\"0\" alt=\"MSN.\" /></a><br><a href=\"skype:atape0512\"><img src=\"img/support_skype.gif\" alt=\"SKYPE.\" width=\"44\" height=\"64\" vspace=\"5\" border=\"0\" /></a><br><a href=\"Yahoo:atape0512\" target=\"_blank\"><img src=\"img/support_qq2.gif\" width=\"47\" height=\"57\" vspace=\"5\" border=\"0\" alt=\"Yahoo.\" /></a><br><a href=\"http://wpa.qq.com/msgrd?V=1&amp;Uin=735602182\" target=\"_blank\"><img src=\"img/support_qq1.gif\" width=\"47\" height=\"57\" vspace=\"5\" border=\"0\" alt=\"QQ.\" /></a></div><img src=\"img/support_bottom.gif\" width=\"101\" height=\"63\" style=\"display:block\" /></div></div>");
            }
            load();
