﻿
   //<![CDATA[
   var adLeftSrc = "/ads/left.swf"
   var adLeftFlash = "flash"
   var adLeftHref = ""
   var adLeftWidth = 110
   var adLeftHeight = 250

   var adRightSrc = "/ads/right.swf"
   var adRightFlash = "flash"
   var adRightHref = ""
   var adRightWidth = 110
   var adRightHeight = 250
   
   var marginTop = 160
   var marginLeft = 3
   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) + marginTop + 'px';}

     if (adRightSrc != "") {
      document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) +  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=\"adLeftFloat\" style=\"position: absolute;width:" + adLeftWidth + ";\"><a href=\"" + adLeftHref +"\" target='_blank'><embed src=\"" + adLeftSrc + "\" quality=\"high\"  width=\"" + adLeftWidth + "\" height=\"" + adLeftHeight + "\" type=\"application/x-shockwave-flash\" id=\"sinadl\"></embed></a><br><div align=\"right\" style=\"padding: 2px;\"><a href='javascript:void(0)' style=\"text-decoration: none;color:#000000;font-size:12px\" title=\"关闭广告\" onClick=\"adLeftFloat.style.display='none';adRightFloat.style.display='none';\">关闭 <span style=\"height: 12px;width: 15px;border: 1px solid #000000;padding: 0px;\">×</span></a></div></div>");
    }
    else{
     document.write("<div id=\"adLeftFloat\" style=\"position: absolute;width:" + adLeftWidth + ";\"><a href=\"" + adLeftHref +"\" target='_blank'><img src=\"" + adLeftSrc + "\"  width=\"" + adLeftWidth + "\" height=\"" + adLeftHeight + "\"  border=\"0\" \></a><br><div align=\"right\" style=\"padding: 2px;\"><a href='javascript:void(0)' style=\"text-decoration: none;color:#000000;font-size:12px\" title=\"关闭广告\" onClick=\"adLeftFloat.style.display='none';adRightFloat.style.display='none';\">关闭 <span style=\"height: 12px;width: 15px;border: 1px solid #000000;padding: 0px;\">×</span></a></div></div>");
    }
   }
   if (adRightSrc != "") {
    if (adRightFlash == "flash") {
     document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth + ";\"><a href=\"" + adRightHref +"\" target='_blank'><embed src=\"" + adRightSrc + "\" quality=\"high\"  width=\"" + adLeftWidth + "\" height=\"" + adRightHeight + "\" type=\"application/x-shockwave-flash\"  id=\"sinadl\"></a></embed><br><div align=\"right\" style=\"padding: 2px;\"><a href='#2' style=\"text-decoration: none;color:#000000;font-size:12px\" title=\"关闭广告\" onClick=\"adLeftFloat.style.display='none';adRightFloat.style.display='none';\">关闭 <span style=\"height: 12px;width: 15px;border: 1px solid #000000;padding: 0px;\">×</span></a></div></div>");
    }
    else{
     document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth + ";\"><a href=\"" + adRightHref +"\" target='_blank'><img src=\"" + adRightSrc + "\"   width=\"" + adLeftWidth + "\" height=\"" + adRightHeight + "\"  border=\"0\"  \></a><br><div align=\"right\" style=\"padding: 2px;\"><a href='#2' style=\"text-decoration: none;color:#000000;font-size:12px\" title=\"关闭广告\" onClick=\"adLeftFloat.style.display='none';adRightFloat.style.display='none';\">关闭 <span style=\"height: 12px;width: 15px;border: 1px solid #000000;padding: 0px;\">×</span></a></div></div>");
    }
   }
   load();
   //]]>

