// Copyright © 1992-2007 华南师范大学《师大青年》版权所有
var IsDebug=true;
function $(){
  var I=null;
  if(typeof arguments[0]!="string"){
    if(!arguments[0]){
      return null;
    }
    I=arguments[0];
    if(!I["version"]){
      $._Method.Element.apply(I);
      if($._appendMethod){
        $._appendMethod.apply(I);
      }
    }
    return I;
  }
  var B=arguments[0].trim();
  if(B.indexOf(" ")==-1&&B.indexOf(",")==-1&&B.indexOf(".")==-1&&B.indexOf("[")==-1){
    I=document.getElementById(B.replace("#",""));
    if(!I){
      return null;
    }
    if(!I["version"]){
      $._Method.Element.apply(I);
      if($._appendMethod){
        $._appendMethod.apply(I);
      }
    }
    return I;
  }
  var M=B.replace(/(^,*)|(,*$)/g,"").split(","),_=[];
  for(var F=0,C;C=M[F];F++){
    var L=C=M[F].trim().replace(/ +/g," ").split(" ");
    for(var H=0,K;K=L[H];H++){
      if(K.indexOf("#")==0){
        I=$(K.substring(1));
        continue ;
      }
      var G=[],N=[];
      if(K.indexOf(".")!=-1){
        var A=K.replace(/\[.*?\]/gi,function($){
          G.push($.replace(/\[|\]/g,""));
          return "";
        }),E=A.split(".")[0],J=A.split(".")[1];
        if(I==null){
          N=$._find(E,J,document);
        }else {
          if(I instanceof Array){
            var D=[];
            I.each(function(_){
              $._find(E,J,_).each(function(){
                D.push(arguments[0]);
              });
            });
            N=D;
          }else {
            N=$._find(E,J,I);
          }
        }
        I=$._attributeSelector(G,N);
        continue ;
      }else {
        E=K.replace(/\[.*?\]/gi,function($){
          G.push($.replace(/\[|\]/g,""));
          return "";
        });
        if(I==null){
          N=$A(document.getElementsByTagName(E)).each(function(_){
            $(_);
          });
        }else {
          if(I instanceof Array){
            D=[];
            I.each(function(_){
              $A(_.getElementsByTagName(E)).each(function(_){
                D.push($(_));
              });
            });
            N=D;
          }else {
            N=$A(I.getElementsByTagName(E)).each(function(_){
              $(_);
            });
          }
        }
        I=$._attributeSelector(G,N);
      }
    }
    if(I.constructor==Array){
      I.each(function($){
        _.push($);
      });
    }else {
      _.push(I);
    }
    I=null;
  }
  return _;
}
$.extend=function(_,$){
  if(arguments.length>1&&($===null||$==undefined)){
    return _;
  }
  for(var A in $){
    _[A]=$[A];
  }
  return _;
};
$.version="0.2.0.0";
$._find=function(D,C,A){
  var B=A.getElementsByTagName(D||"*"),_=[];
  for(var F=0,E;E=$(B[F]);F++){
    if(E.className.hasSubString(C," ")){
      _.push(E);
    }
  }
  return _;
};
$._attributeSelector=function(A,_){
  for(var B=0;B<A.length;B++){
    var $=[],C=A[B].split(/=|!=/g);
    if(C.length==1){
      _.each(function(_){
        if(_.getAttribute(C[0].trim())){
          $.push(_);
        }
      });
    }else {
      if(C.length>1){
        _.each(function(_){
          if(A[B].indexOf("!=")!=-1){
            if(_.getAttribute(C[0].trim())!=C[1].trim()){
              $.push(_);
            }
          }else {
            if(_.getAttribute(C[0].trim())==C[1].trim()){
              $.push(_);
            }
          }
        });
      }
    }
    _.length=0;
    _=$;
  }
  return _;
};
function NameSpace(){
}
function StringBuffer(){
  this.data=[];
}
$._Method={Element:function(){
    this.version=$.version;
    this.getStyle=function(_){
      var A=this.style[$.FixCss[_]||_.camelize()];
      if(!A){
        if(this.currentStyle){
          A=this.currentStyle[_.camelize()];
        }else {
          if(document.defaultView&&document.defaultView.getComputedStyle){
            var B=document.defaultView.getComputedStyle(this,null);
            A=B?B.getPropertyValue(_):null;
          }
        }
      }
      return A;
    };
    this.setStyle=function(A){
      if(typeof A=="object"){
        for(C in A){
          this.style[$.FixCss[C]||C.camelize()]=A[C];
        }
      }else {
        var _=A.split(";");
        for(var E=0,B;B=_[E];E++){
          var C=B.split(/:(?!\/\/)/g),D=C[0].trim();
          D=$.FixCss[D]||D.camelize();
          this.style[D]=C[1].trim();
        }
      }
      return this;
    };
    this.show=function(){
      this.style.display="block";
      return this;
    };
    this.hide=function(){
      this.style.display="none";
      return this;
    };
    this.toggle=function(){
      this.getStyle("display")=="none"?this.show():this.hide();
      return this;
    };
    this.hasClassName=function($){
      return this.className.hasSubString($," ");
    };
    this.addClassName=function($){
      if(!this.hasClassName($)){
        this.className+=" "+$;
      }
      return this;
    };
    this.removeClassName=function($){
      if(this.hasClassName($)){
        this.className=(" "+this.className+" ").replace(" "+$+" "," ").trim();
        return this;
      }
    };
    this.toggleClassName=function($){
      if(this.hasClassName($)){
        this.removeClassName($);
      }else {
        this.addClassName($);
      }
      return this;
    };
    this.getElementsByClassName=function($){
      return this.getElementsByAttribute("className",$);
    };
    this.getElementsByAttribute=function(A,$){
      var C=(typeof document.all!="undefined")?document.all:this.getElementsByTagName("*"),B=[];
      for(var E=0,D;D=C[E];E++){
        var _=D[A]||D.getAttribute(A);
        if(_==$){
          B.push(D);
        }
      }
      return B;
    };
    this.subTag=function(){
      return $A(this.getElementsByTagName(arguments[0])).each(function(_){
        $(_);
      });
    };
    this.parentIndex=function($){
      if(this==$){
        return 0;
      }
      for(var A=1,_=this;_=_.parentNode;A++){
        if(_==$){
          return A;
        }
        if(_==document.documentElement){
          return -1;
        }
      }
    };
    this.remove=function(){
      return this.parentNode.removeChild(this);
    };
    this.nextElement=function(){
      var _=this;
      for(var A=0,_;_=_.nextSibling;A++){
        if(_.nodeType==1){
          return $(_);
        }
      }
      return null;
    };
    this.previousElement=function(){
      var _=this;
      for(var A=0,_;_=_.previousSibling;A++){
        if(_.nodeType==1){
          return $(_);
        }
      }
      return null;
    };
    this.cleanWhiteSpace=function(){
      return cleanWhiteSpace(this);
    };
    this.clearChildNodes=function(){
      return clearChildNodes(this);
    };
  },Array:function(){
    this.indexOf=function(){
      for(i=0;i<this.length;i++){
        if(this[i]==arguments[0]){
          return i;
        }
      }
      return -1;
    };
    this.each=function(_){
      for(var A=0,$=this.length;A<$;A++){
        _(this[A],A);
      }
      return this;
    };
    this.uniqStr=function(){
      var _=[],$=[],A=0;
      for(var B=0,A=0;B<this.length;B++){
        if(!_[this[B]]){
          _[this[B]]=1;
        }else {
          if(_[this[B]]++==1){
            $[A++]=this[B];
          }
          this.splice(B,1);
        }
      }
      return $;
    };
  },String:function(){
    this.trim=function(){
      var _,$=arguments[0]||" ";
      typeof ($)=="string"?($==" "?_=/(^\s*)|(\s*$)/g:_=new RegExp("(^"+$+"*)|("+$+"*$)","g")):_=$;
      return this.replace(_,"");
    };
    this.stripTags=function(){
      return this.replace(/<\/?[^>]+>/gi,"");
    };
    this.cint=function(){
      return this.replace(/\D/g,"")*1;
    };
    this.camelize=function(){
      return this.replace(/(-\S)/g,function($){
        return $.toUpperCase().substring(1,2);
      });
    };
    this.hasSubString=function(_,$){
      if(!$){
        $="";
      }
      return ($+this+$).indexOf($+_+$)==-1?false:true;
    };
    this.hasSubStrInArr=function(){
      for(var $=0;$<arguments[0].length;$++){
        if(this.hasSubString(arguments[0][$])){
          return true;
        }
      }
      return false;
    };
  },StringBuffer:function(){
    this.append=function(){
      this.data.push(arguments[0]);
      return this;
    };
    this.toString=function(){
      return this.data.join(arguments[0]||"");
    };
    this.length=function(){
      return this.data.length;
    };
    this.clear=function(){
      this.data.length=0;
      return this;
    };
  },NameSpace:function(){
    this.copyChild=function($){
      for(var _ in $){
        this[_]=$[_];
      }
      return this;
    };
  }};
$._Method.Array.apply(Array.prototype);
$._Method.String.apply(String.prototype);
$._Method.StringBuffer.apply(StringBuffer.prototype);
$._Method.NameSpace.apply(NameSpace.prototype);
$.EventListener={add:function(_,B,A,$){
    $=$||false;
    if(typeof _.addEventListener!="undefined"){
      _.addEventListener(B,A,$);
    }else {
      if(typeof _.attachEvent!="undefined"){
        _.attachEvent("on"+B,A);
      }
    }
  },remove:function(_,B,A,$){
    $=$||false;
    if(typeof _.removeEventListener!="undefined"){
      _.removeEventListener(B,A,$);
    }else {
      if(typeof _.detachEvent!="undefined"){
        _.detachEvent("on"+B,A);
      }
    }
  },stopDefaultAction:function($){
    $.returnValue=false;
    if(typeof $.preventDefault!="undefined"){
      $.preventDefault();
    }
  },stopEvent:function($){
    if(typeof $.stopPropagetion!="undefined"){
      $.stopPropagetion();
    }else {
      $.cancelBubble=true;
    }
  }};
$.Load={ready:function($){
    this.bindReady();
    if(this.isReady){
      $.apply(document);
    }else {
      this.readyList.push(function(){
        return $.apply(this);
      });
    }
    return this;
  },isReady:false,readyList:[],_ready:function(){
    var _=$.Load;
    if(!_.isReady){
      _.isReady=true;
      if(_.readyList){
        _.readyList.each(function($){
          $.apply(window);
        });
        _.readyList=null;
      }
      if($.Browser.mozilla||$.Browser.opera){
        document.removeEventListener("DOMContentLoaded",_._ready,false);
      }
      if($.Browser.msie&&!window.frames.length){
        $.EventListener.add(window,"load",function(){
          $("#__ie_init").remove();
        });
      }
    }
  },readyBound:false,bindReady:function(){
    if(this.readyBound){
      return ;
    }
    this.readyBound=true;
    if($.Browser.mozilla||$.Browser.opera){
      document.addEventListener("DOMContentLoaded",this._ready,false);
    }else {
      if($.Browser.msie){
        var B=document.createElement("script");
        B.id="__ie_init";
        B.defer=true;
        B.src="//:";
        document.getElementsByTagName("head")[0].appendChild(B);
        var A=$("__ie_init");
        if(A){
          var _=this;
          A.onreadystatechange=function(){
            if(this.readyState!="complete"){
              return ;
            }
            _._ready();
          };
        }
        A=null;
      }else {
        if($.Browser.safari){
          _=this;
          this.safariTimer=setInterval(function(){
            if(document.readyState=="loaded"||document.readyState=="complete"){
              clearInterval(_.safariTimer);
              _.safariTimer=null;
              _._ready();
            }
          },10);
        }
      }
    }
    $.EventListener.add(window,"load",this._ready);
  }};
function loadScript(_){
  var $=document.createElement("script");
  $.type="text/javascript";
  if(_.charset){
    $.charset=_.charset;
  }
  if(_.init){
    _.init();
  }
  if(_.callback){
    $.onload=$.onreadystatechange=function(){
      if($.readyState&&$.readyState!="loaded"&&$.readyState!="complete"){
        return ;
      }
      $.onreadystatechange=$.onload=null;
      _.callback();
    };
  }
  $.src=_.src;
  document.getElementsByTagName("head")[0].appendChild($);
}
var loadCounter=function(){
  loadScript({src:"http://ww.50bang.com/click.js?user_id=306964&l=501",charset:"gb2312",init:function(){
      document._write=document.write;
      document._open=document.open;
      document._close=document.close;
      document.write=function($){
        if($.indexOf("<script")==0){
          var _=$.match(/src\s*=\s*(['"]+)([^'"]*)\1+/i);
          loadScript({src:_[2]});
        }
      };
      document.open=function(){
        return true;
      };
      document.close=function(){
        return true;
      };
    },callback:function(){
      document.write=document._write;
      document.open=document._open;
      document.close=document._close;
      loadCounter=null;
    }});
};
function cleanWhiteSpace($){
  for(var A=$.childNodes.length-1;A>=0;A--){
    var _=$.childNodes[A];
    if(_.nodeType==3&&!/\S/.test(_.nodeValue)){
      $.removeChild(_);
    }
  }
  return $;
}
function clearChildNodes($){
  for(var _=$.childNodes.length-1;_>=0;_--){
    $.removeChild($.childNodes[_]);
  }
  return $;
}
function insertAfterNode($,_){
  if($==$.parentNode.lastChild){
    $.parentNode.appendChild(_);
  }else {
    $.parentNode.insertBefore(_,$.nextSibling);
  }
}
var userAgent=navigator.userAgent.toLowerCase();
$.Browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};
var styleFloat=$.Browser.msie?"styleFloat":"cssFloat";
$.FixCss={"for":"htmlFor","class":"className","float":styleFloat,"cssFloat":styleFloat,"styleFloat":styleFloat,"readonly":"readOnly"};
$.Cookies={get:function(_){
    var $=document.cookie.match(new RegExp("(^| )"+_+"=([^;]*)(;|$)"));
    if($!=null){
      return unescape($[2]);
    }
    return null;
  },set:function(E,F,D,G,H,_){
    var J=D*24*60*60*1000,A=new Date();
    A.setTime(A.getTime()+J);
    var C=D?"; expires="+A.toGMTString():"",B="; path="+(G||"/"),$=H?"; domain="+H:"",I=(_?"; secure":"");
    document.cookie=E+"="+escape(F)+C+$+B+I;
  },del:function(_){
    var $=new Date();
    $.setTime($.getTime()-1);
    var A=this.get(_);
    if(A!=null){
      document.cookie=_+"="+A+";expires="+$.toGMTString();
    }
  }};
$.Form=function(_){
  $.Form._Method.apply(document.forms[_]);
  return document.forms[_];
};
$.Form._Method=function(){
  this.serialize=function(C){
    var B=this.elements,_={};
    for(var E=0,D;D=B[E];E++){
      if(!D.name){
        continue ;
      }
      if(D.type&&D.type.toLowerCase().hasSubStrInArr(["radio","checkbox"])&&!D.checked){
        continue ;
      }
      var A=D.name.toLowerCase();
      if(typeof _[A]=="undefined"){
        _[A]=[];
      }
      _[A].push($E(D.value));
    }
    return $.Form.serialize(C,_);
  };
};
$.Form.serialize=function(B){
  var $=arguments[1]||{};
  for(var D in B){
    var _=D.toLowerCase();
    if(typeof $[_]=="undefined"){
      $[_]=[];
    }
    $[_].push($E(B[D]));
  }
  var C=new StringBuffer();
  for(var A in $){
    for(var E=0;E<$[A].length;E++){
      C.append(A+"="+$[A][E]);
    }
  }
  return C.toString("&");
};
$.Request=function(_){
  var A=location.search;
  if(!A.hasSubString("?")){
    return "";
  }else {
    A=A.substring(1);
  }
  var $={};
  A.split("&").each(function(_){
    var B=_.split("="),A=B[0].toLowerCase();
    if(typeof $[A]=="undefined"){
      $[A]=[];
    }
    $[A].push(B[1]||"");
  });
  return $[_.toLowerCase()];
};
$.Ajax={SendRequest:function(I,C,E,F,H){
    var $=null,J=null,G=function(){
      switch($.readyState){
      case 1:
        if(J){
          clearTimeout(J);
        }
        J=null;
        J=setTimeout(K,12*1000);
        break ;
      case 2:
        clearTimeout(J);
        J=null;
        J=setTimeout(K,5*1000);
        break ;
      case 3:
        clearTimeout(J);
        J=null;
        J=setTimeout(K,2*1000);
        break ;
      case 4:
        clearTimeout(J);
        J=null;
        if(200<=$.status&&$.status<300){
          if(typeof H=="object"){
            checkXmlResult({"objXMLhttp":$,"onSuccess":H.onSuccess});
          }else {
            H($);
          }
        }else {
          if($.status==404){
            Message.show("Requested URL is not found.");
          }else {
            if($.status==403){
              Message.show("Access denied.");
            }else {
              Message.show("\u8bbf\u95ee\u7684\u7f51\u9875\u53d1\u751f\u5f02\u5e38\uff08status\uff1a"+$.status+"\uff09.");
              if(IsDebug){
                var _=window.open("","_blank");
                _.document.write($.responseText);
                _.onclick=function(){
                  _.close();
                };
                _.focus();
              }
            }
          }
        }
      }
    },A=C.indexOf("?");
    if(A!=-1){
      C=C.replace("?","?sRandom="+Math.random()+"&");
    }else {
      C+="?sRandom="+Math.random();
    }
    if(window.ActiveXObject){
      var B=new Array("Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP");
      for(var D=0;D<B.length;D++){
        try{
          $=new ActiveXObject(B[D]);
          if(null!=$){
            break ;
          }
        }
        catch(_){
        }
      }
    }else {
      if(window.XMLHttpRequest){
        $=new XMLHttpRequest();
        if($.overrideMimeType){
          $.overrideMimeType("text/xml");
        }
      }
    }
    if(!$){
      Message.show("\u672a\u80fd\u521b\u5efaXMLHttpRequest\u5bf9\u8c61\u5b9e\u4f8b");
      return null;
    }
    if(F.toLowerCase()=="text"){
      $.onreadystatechange=G;
    }else {
      if(F.toLowerCase()=="xml"){
        $.onreadystatechange=G;
      }else {
        Message.show("\u54cd\u5e94\u7c7b\u522b\u53c2\u6570\u9519\u8bef");
        return null;
      }
    }
    if(I.toLowerCase()=="get"){
      $.open(I,C,true);
    }else {
      if(I.toLowerCase()=="post"){
        $.open(I,C,true);
        $.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
      }else {
        Message.show("\u8bf7\u6c42\u53c2\u6570\u9519\u8bef");
        return null;
      }
    }
    $.send(E);
    return $;
    function K(){
      J=null;
      $.abort();
      Message.show("\u670d\u52a1\u5668\u54cd\u5e94\u8d85\u65f6\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5");
    }
  },CreateXMLDOM:function($){
    var _=null;
    if(window.ActiveXObject){
      _=new ActiveXObject("Msxml2.FreeThreadedDOMDocument");
    }else {
      if(document.implementation&&document.implementation.createDocument){
        _=document.implementation.createDocument("","doc",null);
      }
    }
    _.async=false;
    _.resolveExternals=false;
    _.preserveWhiteSpace=true;
    _.load($+"?sRandom="+Math.random());
    return _;
  },XSL:function(C,_,B){
    if(document.all){
      var $=new ActiveXObject("Msxml2.XSLTemplate");
      $.stylesheet=_;
      var A=$.createProcessor();
      A.input=B;
      A.transform();
      C.innerHTML=A.output;
    }else {
      A=new XSLTProcessor();
      A.importStylesheet(_);
      clearChildNodes(C);
      C.appendChild(A.transformToFragment(B,document));
    }
  }};
function $A(_){
  var $=[];
  for(var B=0,A=_.length;B<A;B++){
    $[B]=_[B];
  }
  return $;
}
function $D($){
  return decodeURIComponent($);
}
function $E($){
  return encodeURIComponent($);
}
function $V(_){
  return $(_)?($($(_)).tagName.hasSubStrInArr(["INPUT","TEXTAREA","SELECT","BUTTON"])?$(_).value:$(_).innerHTML):"";
}
function $XmlV($){
  return $.text||$.textContent||"";
}
$.isFunction=function($){
  return !!$&&typeof $!="string"&&!$.nodeName&&$.constructor!=Array&&/function/i.test($+"");
};
function getScrollPosition(){
  var $=[0,0];
  if(typeof window.pageYOffset!="undefined"){
    $=[window.pageXOffset,window.pageYOffset];
  }else {
    if(typeof document.documentElement.scrollTop!="undefined"&&document.documentElement.scrollTop>0){
      $=[document.documentElement.scrollLeft,document.documentElement.scrollTop];
    }else {
      if(typeof document.body.scrollTop!="undefined"){
        $=[document.body.scrollLeft,document.body.scrollTop];
      }
    }
  }
  return $;
}
function getViewportSize(){
  var $=[0,0];
  if(typeof window.innerWidth!="undefined"){
    $=[window.innerWidth,window.innerHeight];
  }else {
    if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){
      $=[document.documentElement.clientWidth,document.documentElement.clientHeight];
    }else {
      $=[document.getElementsByTagName("body")[0].clientWidth,document.getElementsByTagName("body")[0].clientHeight];
    }
  }
  return $;
}
function getCoveringSize(){
  var _=document.documentElement.clientWidth,A=document.documentElement.scrollWidth,B=document.documentElement.clientHeight,$=document.documentElement.scrollHeight;
  return [Math.max(_,A),Math.max(B,$)];
}
function getPosition($){
  var _=0,A=0;
  while($!=null){
    _+=$.offsetLeft;
    A+=$.offsetTop;
    $=$.offsetParent;
  }
  return [_,A];
}
function hideCovering(){
  $.EventListener.remove(window,"resize",resizeCovering);
  $.EventListener.remove(window,"scroll",resizeCovering);
  $("covering").hide();
}
function showCovering(){
  if(!$("covering")){
    initCovering();
  }
  resizeCovering().show();
  $.EventListener.add(window,"resize",resizeCovering);
  $.EventListener.add(window,"scroll",resizeCovering);
}
function resizeCovering(){
  var _=getCoveringSize();
  return $("covering").setStyle({width:_[0]+"px",height:_[1]+"px"});
}
function initCovering(){
  var A=document.getElementsByTagName("body").item(0),_=document.createElement("div");
  _.setAttribute("id","covering");
  var $=document.createElement("iframe");
  $.setAttribute("id","coverall");
  _.appendChild($);
  $=null;
  A.appendChild(_);
  _=null;
}
var Message={messageBox:null,_isOn:false,__onDelay:false,init:function(){
    var E=document.getElementsByTagName("body").item(0),D=document.createElement("div");
    D.setAttribute("id","tipswindow");
    var _=document.createElement("div");
    _.setAttribute("id","titlebar");
    _.onmousedown=function($){
      beginDrag($,this.parentNode);
    };
    _.onmouseover=function(){
      this.style.cursor="move";
    };
    _.appendChild(document.createTextNode("\u64cd\u4f5c\u63d0\u793a"));
    D.appendChild(_);
    _=null;
    var B=document.createElement("div");
    B.setAttribute("id","windowcontent");
    D.appendChild(B);
    B=null;
    var F=document.createElement("div");
    F.className="buttontd";
    var C=document.createElement("input");
    C.setAttribute("value","\u786e \u5b9a");
    C.setAttribute("type","button");
    C.setAttribute("id","ok");
    F.appendChild(C);
    C=null;
    F.appendChild(document.createTextNode("\u3000"));
    var A=document.createElement("input");
    A.setAttribute("value","\u53d6 \u6d88");
    A.setAttribute("type","button");
    A.setAttribute("id","no");
    A.onclick=Message.hide;
    F.appendChild(A);
    A=null;
    D.appendChild(F);
    F=null;
    E.appendChild(D);
    Message.messageBox=$(D);
    D=null;
  },hide:function(_){
    var A=Message;
    if(typeof _=="number"){
      A.__onDelay=true;
      setTimeout(A.hide,_);
    }else {
      if(!A.__onDelay){
        $.EventListener.remove(window,"resize",A.resizeMessageBox);
        A.messageBox.hide();
        hideCovering();
        A._isOn=false;
      }else {
        A.__onDelay=false;
      }
    }
  },resizeMessageBox:function(){
    var C=Message,B=getScrollPosition(),A=getViewportSize(),_=Math.round((A[0]-parseInt(C.messageBox.style.width))*0.5);
    if(_<0){
      _=0;
    }
    _+=B[0];
    var $=B[1]+Math.round(A[1]*0.3);
    C.messageBox.setStyle({left:_+"px",top:$+"px"});
  },show:function(B,E){
    if(!this.messageBox){
      this.init();
    }
    var _=true;
    if(B!=null&&B!=""){
      $("windowcontent").innerHTML=B;
    }
    switch(E){
    case undefined:
      try{
        $("ok").disabled=false;
        $("no").disabled=true;
        $("ok").onclick=Message.hide;
      }
      catch(C){
      }
      break ;
    case 0:
      try{
        $("ok").disabled=true;
        _=false;
        $("no").disabled=true;
      }
      catch(C){
      }
      break ;
    default:
      try{
        $("ok").disabled=false;
        $("no").disabled=false;
        var G=2,A=arguments.length-G,H=null,D=new Array();
        for(var I=0;I<A;I++){
          D[I]=arguments[G+I];
        }
        switch(A){
        case 1:
          H=function(){
            E(D[0]);
          };
          break ;
        case 2:
          H=function(){
            E(D[0],D[1]);
          };
          break ;
        case 3:
          H=function(){
            E(D[0],D[1],D[2]);
          };
          break ;
        case 4:
          H=function(){
            E(D[0],D[1],D[2],D[3]);
          };
          break ;
        default:
          H=function(){
            E();
          };
        }
        $("ok").onclick=H;
      }
      catch(C){
      }
      break ;
    }
    if(!this._isOn){
      this._isOn=true;
      var F=Math.round(window.screen.availWidth*0.36);
      this.messageBox.style.width=F+"px";
      this.resizeMessageBox();
      showCovering();
      this.messageBox.show();
      $.EventListener.add(window,"resize",this.resizeMessageBox);
    }
    if(_){
      $("ok").focus();
    }else {
      this.messageBox.focus();
    }
  }};
function beginDrag(A,C){
  A=A||window.event;
  var C=$(C||A.target||A.srcElement);
  document.currentDragTarget=C;
  C.style.position="absolute";
  C.onselectstart=function($){
    return false;
  };
  if(typeof A.pageX=="undefined"){
    var B=getScrollPosition();
    A.pageX=A.clientX+B[0];
    A.pageY=A.clientY+B[1];
  }
  if(typeof A.offsetX=="undefined"){
    A.offsetX=A.layerX;
    A.offsetY=A.layerY;
  }
  C.clickOriginX=A.pageX;
  C.clickOriginY=A.PageY;
  C.diffX=A.offsetX;
  C.diffY=A.offsetY;
  if(typeof C.setCapture!="undefined"){
    C.setCapture();
    $.EventListener.add(C,"mousemove",_);
    $.EventListener.add(C,"mouseup",D);
  }else {
    if(window.captureEvents){
      window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);
      $.EventListener.add(window,"mousemove",_);
      $.EventListener.add(window,"mouseup",D);
    }
  }
  $.EventListener.stopDefaultAction(A);
  $.EventListener.stopEvent(A);
  return false;
  function _(_){
    _=_||window.event;
    if(typeof _.pageX=="undefined"){
      var A=getScrollPosition();
      _.pageX=_.clientX+A[0];
      _.pageY=_.clientY+A[1];
    }
    var B=getCoveringSize(),E=_.pageX-C.diffX,D=_.pageY-C.diffY;
    if(E>0&&D>0&&B[0]>E+C.offsetWidth&&B[1]>D+C.offsetHeight){
      C.style.left=E+"px";
      C.style.top=D+"px";
    }
    $.EventListener.stopEvent(_);
  }
  function D(A){
    A=A||window.event;
    $.EventListener.stopEvent(A);
    C.onselectstart=null;
    if(typeof C.releaseCapture!="undefined"){
      C.releaseCapture();
      $.EventListener.remove(C,"mouseup",D);
      $.EventListener.remove(C,"mousemove",_);
    }else {
      if(typeof window.releaseEvents!="undefined"){
        window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);
        $.EventListener.remove(window,"mouseup",D);
        $.EventListener.remove(window,"mousemove",_);
      }
    }
  }
}
function displayMenu($){
  $.className="menuover";
}
function hideMenu($){
  $.className="";
}
function writeFlashHtml(E){
  var A=$.extend({version:"9,0,28,0",quality:"high",align:"middle",menu:"false"},E||null),G=["width","height","hspace","vspace","align","align","class","id","name","style"],_=["allowScriptAccess","quality","loop","bgcolor","play","menu","scale","salign","wmode","base"],C="flashvars",B=new StringBuffer();
  B.append("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+A["version"]+"'");
  for(var H=0,F;F=G[H++];){
    if(typeof A[F]!="undefined"){
      B.append(" "+F+"='"+A[F].toString()+"'");
    }
  }
  if(typeof A["declare"]!="undefined"){
    B.append(" "+declare);
  }
  B.append(">");
  if(typeof A["src"]!="undefined"){
    B.append("<param name='movie' value='"+A["src"]+"'>");
  }
  for(var H=0,D;D=_[H++];){
    if(typeof A[D]!="undefined"){
      B.append("<param name='"+D+"' value='"+A[D].toString()+"'>");
    }
  }
  if(typeof A[C]!="undefined"){
    B.append("<param name='"+C+"' value='"+A[C].toString().replace(/\'/g,"\\'")+"'>");
  }
  B.append("<embed pluginspage='http://www.macromedia.com/go/getflashplayer'");
  for(H=0,F;F=G[H++];){
    if(typeof A[F]!="undefined"){
      B.append(" "+F+"='"+A[F].toString()+"'");
    }
  }
  B.append(" type='application/x-shockwave-flash'");
  if(typeof A["declare"]!="undefined"){
    B.append(" "+declare);
  }
  for(H=0,D;D=_[H++];){
    if(typeof A[D]!="undefined"){
      B.append(" "+D+"='"+A[D].toString()+"'");
    }
  }
  if(typeof A[C]!="undefined"){
    B.append(" "+C+"='"+A[C].toString().replace(/\'/g,"\\'")+"'");
  }
  if(typeof A["src"]!="undefined"){
    B.append(" src='"+A["src"]+"'");
  }
  B.append("></embed>");
  B.append("</object>");
  document.write(B.toString());
}
function bindEnterSubmit(_){
  _.title="[ENTER \u63d0\u4ea4]";
  _.form.onkeydown=function(A){
    var A=A||window.event;
    if(A.keyCode==13){
      _.click();
      $.EventListener.stopDefaultAction(A);
      $.EventListener.stopEvent(A);
      return false;
    }
  };
}
function GeneralSearch(){
  var _=$V("keyword"),$=$V("searchtype");
  if($==""){
    Message.show("\u8bf7\u5148\u9009\u62e9\u641c\u7d22\u7c7b\u578b");
    return ;
  }
  if($.indexOf("?")!=-1){
    $+=("&Title="+$E(_));
  }else {
    $+=("?Title="+$E(_));
  }
  location.href=$;
}
$.Load.ready(function(){
  var A=$("input.normalinput, textarea.normalinput, select.normalinput");
  A.each(function($){
    $.onfocus=function(){
      this.className="specialinput";
    };
    $.onblur=function(){
      this.className="normalinput";
    };
  });
  var B=$("quicksearchnow");
  if(B!=null){
    $("keyword").focus();
    B.onclick=GeneralSearch;
    bindEnterSubmit(B);
  }
  var _=$("searchnow");
  if(_!=null){
    _.onclick=getSearchData;
    bindEnterSubmit(_);
    JumpPage();
  }
});
function openWindow(A){
  var $;
  $=window.open(A.url);
  window.setTimeout(function(){
    _($);
  },300);
  function _($){
    if($==null){
      Message.show(A.error);
    }else {
      $.focus();
    }
  }
}