window.baidu=window.baidu||{version:"1-0-0",emptyFn:function(){}};baidu.isString=function(A){return(typeof A=="object"&&A&&A.constructor==String)||typeof A=="string"};baidu.G=function(){for(var A=[],B=arguments.length-1;B>-1;B--){var C=arguments[B];A[B]=null;if(typeof C=="object"&&C&&C.dom){A[B]=C.dom}else{if((typeof C=="object"&&C&&C.tagName)||C==window||C==document){A[B]=C}else{if(baidu.isString(C)&&(C=document.getElementById(C))){A[B]=C}}}}return A.length<2?A[0]:A};baidu.each=function(F,B){if(typeof B!="function"){return F}if(F){var A;if(F.length===undefined){for(var C in F){if(C in {}){continue}A=B.call(F[C],F[C],C);if(A=="break"){break}}}else{for(var D=0,E=F.length;D<E;D++){A=B.call(F[D],F[D],D);if(A=="break"){break}}}}return F};baidu.hide=function(){baidu.each(arguments,function(A){if(A=baidu.G(A)){A.style.display="none"}})};baidu.show=function(){baidu.each(arguments,function(A){if(A=baidu.G(A)){A.style.display=""}})};baidu.trim=function(B,A){if(A=="left"){return B.replace(/(^[\s\t\xa0\u3000]+)/g,"")}if(A=="right"){return B.replace(new RegExp("[\\u3000\\xa0\\s\\t]+\x24","g"),"")}return B.replace(new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+\x24)","g"),"")};baidu.addClass=function(A,B){if(!(A=baidu.G(A))){return null}B=baidu.trim(B);if(!new RegExp("(^| )"+B.replace(/(\W)/g,"\\\x241")+"( |\x24)").test(A.className)){A.className=baidu.trim(A.className.split(/\s+/).concat(B).join(" "))}};baidu.ac=baidu.addClass;baidu.removeClass=function(A,B){if(!(A=baidu.G(A))){return }B=baidu.trim(B);var C=A.className.replace(new RegExp("(^| +)"+B.replace(/(\W)/g,"\\\x241")+"( +|\x24)","g"),"\x242");if(A.className!=C){A.className=baidu.trim(C)}};baidu.rc=baidu.removeClass;baidu.on=function(I,F,E,H){if(!(I=baidu.G(I))||typeof E!="function"){return I}F=F.replace(/^on/i,"").toLowerCase();function B(J){return J||window.event}var D=function(J){E.call(D.src,B(J))};D.src=I;var C=baidu.on._listeners;var A=[I,F,E,D];C[C.length]=A;if(I.attachEvent){I.attachEvent("on"+F,D)}else{if(I.addEventListener){I.addEventListener(F,D,false)}}return I};baidu.on._listeners=[];baidu.un=function(B,F,K){if(!(B=this.G(B))||typeof K!="function"){return B}F=F.replace(/^on/i,"").toLowerCase();var H=baidu.on._listeners;if(!K){var I;for(var C=0,E=H.length;C<E;C++){I=H[C];if(I&&I[0]===B&&I[1]===F){baidu.un(B,F,I[2])}}return B}function A(O,N,Q){for(var P=0,M=H.length;P<M;++P){var L=H[P];if(L&&L[2]===K&&L[0]===B&&L[1]===F){return P}}return -1}var D=A(B,F,K);var J=null;if(D>=0){J=H[D]}else{return B}if(B.detachEvent){B.detachEvent("on"+F,J[3])}else{if(B.removeEventListener){B.removeEventListener(F,J[3],false)}}delete J[3];delete J[2];H.splice(D,1);return B};baidu.body=function(){var A=0,J=0,E=0,C=0,B=0,K=0;var F=window,D=document,I=D.documentElement;A=I.clientWidth||D.body.clientWidth;J=F.innerHeight||I.clientHeight||D.body.clientHeight;C=D.body.scrollTop||I.scrollTop;E=D.body.scrollLeft||I.scrollLeft;B=Math.max(D.body.scrollWidth,I.scrollWidth||0);K=Math.max(D.body.scrollHeight,I.scrollHeight||0,J);return{scrollTop:C,scrollLeft:E,documentWidth:B,documentHeight:K,viewWidth:A,viewHeight:J}};baidu.browser=baidu.browser||{};(function(){var A=navigator.userAgent;baidu.firefox=baidu.browser.firefox=/firefox\/(\d+\.\d)/i.test(A)?parseFloat(RegExp["\x241"]):0;baidu.ie=baidu.browser.ie=/msie (\d+\.\d)/i.test(A)?parseFloat(RegExp["\x241"]):0;baidu.opera=baidu.browser.opera=/opera\/(\d+\.\d)/i.test(A)?parseFloat(RegExp["\x241"]):0;baidu.safari=baidu.browser.safari=(/(\d+\.\d)(\.\d)?\s+safari/i.test(A)&&!/chrome/i.test(A))?parseFloat(RegExp["\x241"]):0;try{baidu.browser.maxthon=/(\d+\.\d)/.test(external.max_version)?parseFloat(RegExp["\x241"]):0}catch(B){baidu.browser.maxthon=0}baidu.maxthon=baidu.browser.maxthon;baidu.isGecko=baidu.browser.isGecko=/gecko/i.test(A)&&!/like gecko/i.test(A);baidu.isStrict=baidu.browser.isStrict=document.compatMode=="CSS1Compat";baidu.isWebkit=baidu.browser.isWebkit=/webkit/i.test(A)})();baidu.getCurrentStyle=function(A,C){var E=null;if(!(A=baidu.G(A))){return null}if(E=A.style[C]){return E}else{if(A.currentStyle){E=A.currentStyle[C]}else{var D=A.nodeType==9?A:A.ownerDocument||A.document;if(D.defaultView&&D.defaultView.getComputedStyle){var B=D.defaultView.getComputedStyle(A,"");if(B){E=B[C]}}}}return E};baidu.dom=baidu.dom||{};baidu.isElement=function(A){if(A===undefined||A===null){return false}return A&&A.nodeName&&A.nodeType==1};baidu.isDocument=function(A){if(A===undefined||A===null){return false}return A&&A.nodeType==9};baidu.dom.getDocument=function(A){if(baidu.isElement(A)||baidu.isDocument(A)){return A.nodeType==9?A:A.ownerDocument||A.document}else{throw new Error("[baidu.dom.getDocument] param must be Element or Document")}};baidu.isElement=function(A){return A&&A.nodeType==1};baidu.dom.getPosition=function(D){D=baidu.G(D);if(!baidu.isElement(D)){throw new Error("[baidu.dom.getPosition] param must be Element")}var H=baidu.dom.getDocument(D);var F=baidu.isGecko>0&&H.getBoxObjectFor&&baidu.getCurrentStyle(D,"position")=="absolute"&&(D.style.top===""||D.style.left==="");var I={left:0,top:0};var B=(baidu.ie&&!baidu.isStrict)?H.body:H.documentElement;if(D==B){return I}var C=null;var E;if(D.getBoundingClientRect){E=D.getBoundingClientRect();I.left=E.left+Math.max(H.documentElement.scrollLeft,H.body.scrollLeft);I.top=E.top+Math.max(H.documentElement.scrollTop,H.body.scrollTop);I.left-=H.documentElement.clientLeft;I.top-=H.documentElement.clientTop;if(baidu.ie&&!baidu.isStrict){I.left-=2;I.top-=2}}else{if(H.getBoxObjectFor&&!F){E=H.getBoxObjectFor(D);var A=H.getBoxObjectFor(B);I.left=E.screenX-A.screenX;I.top=E.screenY-A.screenY}else{C=D;do{I.left+=C.offsetLeft;I.top+=C.offsetTop;if(baidu.isWebkit>0&&baidu.getCurrentStyle(C,"position")=="fixed"){I.left+=H.body.scrollLeft;I.top+=H.body.scrollTop;break}C=C.offsetParent}while(C&&C!=D);if(baidu.opera>0||(baidu.isWebkit>0&&baidu.getCurrentStyle(D,"position")=="absolute")){I.top-=H.body.offsetTop}C=D.offsetParent;while(C&&C!=H.body){I.left-=C.scrollLeft;if(!baidu.opera||C.tagName!="TR"){I.top-=C.scrollTop}C=C.offsetParent}}}return I};baidu.ajax=baidu.ajax||{};baidu.ajax.request=function(E,Q){Q=Q||{};var L=Q.data||"";var I=!(Q.async===false);var K=Q.username||"";var O=Q.password||"";var B=Q.method||"GET";var H=Q.headers||{};var D={};var J;for(J in Q){if(J.indexOf("on")===0){D[J]=Q[J]}}H["X-Request-By"]="baidu.ajax";try{var P=C();if((new RegExp("^get\x24","i")).test(B)){var A=(E.indexOf("?")>=0?"&":"?")+"b"+(new Date()).getTime()+"=1";E+=A}if(K){P.open(B,E,I,K,O)}else{P.open(B,E,I)}if(I){P.onreadystatechange=M}if((new RegExp("^post\x24","i")).test(B)){P.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}else{}for(J in H){if(H.hasOwnProperty(J)){P.setRequestHeader(J,H[J])}}F("beforerequest");P.send(L);if(!I){M()}}catch(N){F("failure")}return P;function M(){if(P.readyState==4){try{var S=P.status}catch(R){F("failure");return }F("status");F(S);if((S>=200&&S<300)||S==304||S==1223){F("success")}else{F("failure")}window.setTimeout(function(){P.onreadystatechange=new Function();if(I){P=null}},0)}}function C(){return window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()}function F(S){S="on"+S;var R=D[S];var T=baidu.ajax[S];if("function"==typeof R){if(S!="onstatus"){R(P)}else{R(P,P.status)}}else{if("function"==typeof T){if(S=="onsuccess"){return }if(S!="onstatus"){T(P)}else{T(P,P.status)}}}}};baidu.ajax.get=function(B,A){return baidu.ajax.request(B,{onsuccess:A})};baidu.ajax.post=function(B,C,A){return baidu.ajax.request(B,{onsuccess:A,method:"POST",data:C})};baidu.swf=baidu.swf||{};baidu.swf.getMovie=function(A){return document[A]||window[A]};baidu.swf.getVersion=function(){var E=navigator;if(E.plugins&&E.mimeTypes.length){var A=E.plugins["Shockwave Flash"];if(A&&A.description){return A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")+".0"}}else{if(window.ActiveXObject&&!window.opera){for(var B=10;B>=2;B--){try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);if(D
评论0