doc.js
Upload User: phc688
Upload Date: 2021-04-01
Package Size: 61k
Code Size: 32k
Category:

OS Develop

Development Platform:

DOS

  1. 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(/(^[stxa0u3000]+)/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("^getx24","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("^postx24","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){return B+".0.0";break}}catch(C){}}}}};baidu.swf.createHTML=function(Q){Q=Q||{};var I=baidu.swf.getVersion(),P=1;var F=Q.ver||"6.0.0",E,C;if(I){I=I.split(".");F=F.split(".");for(var D=0;D<3;D++){E=parseInt(I[D],10);C=parseInt(F[D],10);if(C<E){break}else{if(C>E){P=0;break}}}}else{P=0}if(!P){return""}var K=Q.vars;var D,B,H,O;var J=["classid","codebase","id","width","height","align"];Q.align=Q.align||"middle";Q.classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";Q.codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0";Q.movie=Q.url||"";delete Q.vars;delete Q.url;if(baidu.isString(K)){Q.flashvars=K}else{var M=[];for(B in K){O=K[B];if(O){M.push(B+"="+encodeURIComponent(O))}}Q.flashvars=M.join("&")}var L=["<object "];for(D=0,H=J.length;D<H;D++){O=J[D];L.push(" ",O,'="',Q[O],'"')}L.push(">");var A={wmode:1,scale:1,quality:1,play:1,loop:1,menu:1,salign:1,bgcolor:1,base:1,allowscriptaccess:1,allownetworking:1,allowfullscreen:1,seamlesstabbing:1,devicefont:1,swliveconnect:1,flashvars:1,movie:1};for(B in Q){O=Q[B];if(A[B]&&O){L.push('<param name="'+B+'" value="'+O+'" />')}}Q.src=Q.movie;Q.name=Q.id;delete Q.id;delete Q.movie;delete Q.classid;delete Q.codebase;Q.type="application/x-shockwave-flash";Q.pluginspage="http://www.macromedia.com/go/getflashplayer";L.push("<embed");var N;for(B in Q){O=Q[B];if(O){if((new RegExp("^salignx24","i")).test(B)){N=O;continue}L.push(" ",B,'="',O,'"')}}if(N){L.push(' salign="',N,'"')}L.push("></embed></object>");return L.join("")};baidu.swf.create=function(A,D){A=A||{};var B=baidu.swf.createHTML(A);var C=true;if(D&&baidu.isString(D)){D=document.getElementById(D)}if(B.length<=0){B=A.errorMessage||"";C=false}if(D){D.innerHTML=B}else{document.write(B)}return C};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(/(^[stxa0u3000]+)/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("^getx24","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("^postx24","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){return B+".0.0";break}}catch(C){}}}}};baidu.swf.createHTML=function(Q){Q=Q||{};var I=baidu.swf.getVersion(),P=1;var F=Q.ver||"6.0.0",E,C;if(I){I=I.split(".");F=F.split(".");for(var D=0;D<3;D++){E=parseInt(I[D],10);C=parseInt(F[D],10);if(C<E){break}else{if(C>E){P=0;break}}}}else{P=0}if(!P){return""}var K=Q.vars;var D,B,H,O;var J=["classid","codebase","id","width","height","align"];Q.align=Q.align||"middle";Q.classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";Q.codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0";Q.movie=Q.url||"";delete Q.vars;delete Q.url;if(baidu.isString(K)){Q.flashvars=K}else{var M=[];for(B in K){O=K[B];if(O){M.push(B+"="+encodeURIComponent(O))}}Q.flashvars=M.join("&")}var L=["<object "];for(D=0,H=J.length;D<H;D++){O=J[D];L.push(" ",O,'="',Q[O],'"')}L.push(">");var A={wmode:1,scale:1,quality:1,play:1,loop:1,menu:1,salign:1,bgcolor:1,base:1,allowscriptaccess:1,allownetworking:1,allowfullscreen:1,seamlesstabbing:1,devicefont:1,swliveconnect:1,flashvars:1,movie:1};for(B in Q){O=Q[B];if(A[B]&&O){L.push('<param name="'+B+'" value="'+O+'" />')}}Q.src=Q.movie;Q.name=Q.id;delete Q.id;delete Q.movie;delete Q.classid;delete Q.codebase;Q.type="application/x-shockwave-flash";Q.pluginspage="http://www.macromedia.com/go/getflashplayer";L.push("<embed");var N;for(B in Q){O=Q[B];if(O){if((new RegExp("^salignx24","i")).test(B)){N=O;continue}L.push(" ",B,'="',O,'"')}}if(N){L.push(' salign="',N,'"')}L.push("></embed></object>");return L.join("")};baidu.swf.create=function(A,D){A=A||{};var B=baidu.swf.createHTML(A);var C=true;if(D&&baidu.isString(D)){D=document.getElementById(D)}if(B.length<=0){B=A.errorMessage||"";C=false}if(D){D.innerHTML=B}else{document.write(B)}return C};function G(A){return baidu.G(A)}baidu.preventDefault=function(A){A=A||window.event;if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}};baidu.stopPropagation=function(A){A=A||window.event;if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}};baidu.GT=function(A,B){var C=B||document;return C.getElementsByTagName(A)};baidu.ges=function(B,C,H){var I=(H)?G(H):document;var E=baidu.GT(B,I);var F=[];for(var D=0;D<E.length;D++){for(var A in C){if(!(E[D][A]&&C[A]==E[D][A])){break}F.push(E[D])}}if(F.length==0){return false}else{if(F.length==1){return F[0]}}return F};baidu.loadJS=function(A,D){if(!A){return }var B=baidu.GT("head")[0];var C=document.createElement("script");C.type="text/javascript";C.src=A;if(D){if(D.id){if(G(D.id)&&G(D.id).tagName.toLowerCase()=="script"){baidu.rm(D.id)}C.id=D.id}}B.appendChild(C);C=null};baidu.proxy=function(){var C=[];for(var B=0,A=arguments.length;B<A;B++){C[B]=arguments[B]}var D=C[0];C.shift();return function(){D.apply(null,C)}};baidu.breakWord=function(A,B){baidu.each(A,function(F){if(F.offsetWidth>B){var C=1,E=F.innerHTML;while(F.offsetWidth>B){var D="";D+=E.substr(0,E.length-C)+"<br>";D+=E.substr(E.length-C,E.length);F.innerHTML=D;C++}}})};baidu.insertWbr=function(D,A){if(D.length<=A){return D}var B=document.createElement("textarea");try{B.innerHTML=D}catch(E){B.value=D}var C=B.value;C=C.replace(new RegExp("(\S{"+A+"})","img"),"$1<wbr>");C=C.replace(/<wbr>/img,"u0001").replace(/<br>/img,"u0002").replace(/</img,"&lt;").replace(/>/img,"&gt;").replace(/u0002/img,"<br>").replace(/u0001/img,"<wbr>");return C};baidu.C=function(C,B){var A=document.createElement(C);for(p in B){A[p]=B[p]}return A};baidu.rm=function(){baidu.each(arguments,function(A){if(A=baidu.G(A)){A.parentNode.removeChild(A)}})};baidu.sug=function(A){sug_opt.getdata(A.q,A.s);return{query:A.q,arr:A.s}};String.prototype.byteLength=function(){return this.replace(/[^u0000-u007f]/g,"u0061u0061").length};String.prototype.trim=function(){return this.replace(/(^[stxa0u3000]+)|([u3000xa0st]+$)/g,"")};function $(A){if(/^#/.test(A)){}}document.write("<style>#shadowDiv{display:none;width:100%;height:100%;position:absolute;top:0:left:0;background:#000;filter: alpha(opacity=25);opacity:0.25;z-index:65534}#popDiv{display:none;position:absolute;width:450px;height:300px;z-index:65535;background:#fff;line-height:20px}#popBody{display:none;text-align:center;padding:20px;font-size:14px}.pop_r1,.pop_r2,.pop_r3,.pop_r4{width:10px;height:5px;display:bolck;overflow:hidden;background:url(http://img.baidu.com/img/iknow/bg_popup.gif)}.pop_r1{background-position:0 -62px;float:left;margin-top:-3px}.pop_r2{background-position:-10px -62px;float:right;margin-top:-3px}.pop_r3{height:10px;background-position:0 -67px;float:left}.pop_r4{height:10px;background-position:-10px -67px;float:right}.pop_bottom{background:url(http://img.baidu.com/img/iknow/bg_popup.gif) repeat-x 0 -82px}.pop_bg1{width:10px;background:url(http://img.baidu.com/img/iknow/bg_popup2.gif) repeat-y}.pop_bg2{width:10px;background:url(http://img.baidu.com/img/iknow/bg_popup2.gif) repeat-y right center}.pop_holder1{width:100%;height:100%;background:#fff;border:2px solid #68995a;position:absolute;top:0;left:0;z-index:1}.pop_holder2{width:100%;height:100%;background:#000;position:absolute;left:7px;top:7px;filter:alpha(opacity=25);opacity:0.25}.pop_title{height:33px;line-height:33px;padding:0 10px;color:#2f5124;font-size:14px;font-weight:bold;background:url(http://img.baidu.com/img/iknow/bg_popup.gif) repeat-x}.pop_close{width:19px;height:19px;display:block;float:right;background:url(http://img.baidu.com/img/iknow/bg_popup.gif) no-repeat 0 -38px;border:0;margin:5px 0 0 0;padding:0;cursor:pointer}.tasknote{padding-left:10px;position:absolute;z-index:100;}.tasknote .arrow{background:url(http://img.baidu.com/img/iknow/task/arrow.gif) 0 0 no-repeat;overflow:hidden;position:absolute;top:9px;left:0;z-index:1;}.tasknote .side{width:11px;height:21px;}.tasknote .up{top:0;left:40px;width:21px;height:11px;}.tasknote .down{bottom:2px;top:auto;left:40px;width:21px;height:11px;background-position:0 -10px}.tasknotebody{background:#FFF9E3; border:1px solid #FBE5A3; width:100px; padding-left:4px; font-size:12px; }.noticeInfo{background:url(http://img.baidu.com/img/iknow/task/note.gif) no-repeat 0 center; padding-left:20px; margin:8px 8px 0; line-height:22px; }.noticelist{ margin:0;padding:0; margin-left:26px; }.noticelist li{ margin:0;padding:0; line-height:22px; }.tasknote .close{width:13px;height:13px;background:url(http://img.baidu.com/img/iknow/task/close.gif) no-repeat  0 0;overflow:hidden;position:absolute;top:2px;right:2px;cursor:pointer;z-index:2};</style>");var pop={onOk:function(){},onclosed:function(){},create:function(){if(!G("popDiv")){var B=document.createElement("div");B.id="shadowDiv";var C=document.createElement("div");C.id="popDiv";C.style.width=C.style.height="500px";var A=document.createElement("iframe");A.id="shadowIframe";A.style.filter="alpha(opacity=0)";A.style.opacity="0";A.style.position="absolute";var D="";D+='<div class="pop_holder1">';D+='<table border="0" cellspacing="0" cellpadding="0" style="width:100%;height:100%">';D+='<tr><td height="35" colspan="3"><div class="pop_title"><input type="button" id="dialogBoxClose" onclick="pop.hide();return false" title="关闭" class="pop_close"><span id="dialogBoxTitle">提示</span></div><div><div class="pop_r1"></div><div class="pop_r2"></div></div></td></tr>';D+='<tr><td class="pop_bg1">&nbsp;</td><td id="popContent">';D+='<div id="popBody"></div>';D+='<div id="ifrDiv" style="height:100%"><iframe id="popIframe" name="popIframe" width="100%" frameborder="0" height="100%" scrolling="no" src="about:blank"></iframe></div>';D+='</td><td class="pop_bg2">&nbsp;</td></tr>';D+='<tr><td height="10" colspan="3" class="pop_bottom"><div><div class="pop_r3"></div><div class="pop_r4"></div></div></td></tr>';D+="</table>";D+="</div>";D+='<div id="pop_holder2" class="pop_holder2"></div>';C.innerHTML=D;document.body.insertBefore(A,document.body.firstChild);document.body.insertBefore(C,document.body.firstChild);document.body.insertBefore(B,document.body.firstChild)}},resize:function(B,A,L){pop.create();var D=baidu.body();var P=D.scrollTop;var M=D.documentWidth||500;var E=D.documentHeight||500;var O=G("shadowDiv");var J=G("popDiv");var C=G("popContent");var I=G("shadowIframe");var N=A||parseInt(J.style.width,10)||500;var F=L||parseInt(J.style.height,10)||500;O.style.width=M+"px";O.style.height=E+"px";O.style.left=O.style.top="0px";I.style.width=(M-20)+"px";I.style.height=(E-20)+"px";I.style.top=I.style.left="5px";var K=(D.viewWidth-N)/2;var H=(D.viewHeight-F)/2+P;if(K<1){K=P}if(H<1){H="20"}J.style.left=K+"px";J.style.top=H+"px";J.style.width=N+"px";J.style.height=F+"px";C.style.height=(F-45)+"px";G("pop_holder2").style.height=F+"px"},hide:function(){pop.onclosed();try{baidu.hide("popDiv","shadowDiv","shadowIframe");G("shadowIframe").style.width="0px";G("shadowIframe").style.height="0px"}catch(B){}try{G("popIframe").src="about:blank"}catch(A){try{document.frames.popIframe.location="about:blank"}catch(A){}}if(G("readerContainer")){G("readerContainer").style.visibility="visible"}baidu.un(window,"resize",pop.resize);baidu.un(document,"onkeydown",pop.keyListener)},keyListener:function(B){B=window.event||B;var A=B.which||B.keyCode;if(27==A){pop.hide()}},config:function(F,A){if(F){G("dialogBoxTitle").innerHTML=F}pop.onclosed=A.onclosed||function(){};if(A.url){if(A.url!=true){try{G("popIframe").src=A.url}catch(D){try{document.frames.popIframe.location=A.url}catch(D){}}}G("ifrDiv").style.display="block";baidu.hide("popBody")}else{if(A.info){baidu.hide("ifrDiv");G("popBody").style.display="block";G("popBody").innerHTML=A.info}}var B=A.width||450;var E=A.height||400;var C=G("popDiv");C.style.width=B+"px";C.style.height=E+"px"},show:function(B,A){pop.create();pop.config(B,A);pop.resize();G("popDiv").style.display="block";G("shadowDiv").style.display="block";G("shadowIframe").style.display="";baidu.on(window,"resize",pop.resize);baidu.on(document,"onkeydown",pop.keyListener);if(G("readerContainer")){G("readerContainer").style.visibility="hidden"}},confirm:function(C,B){pop.onOk=baidu.proxy(function(D){pop.onclosed=function(){};pop.hide();D()},B.ok||pop.hide);var A="<span class='f14'>$2$</span><br><br><p align='center'><input type='button'value='$0$' onclick='pop.onOk();'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='button'value='$1$' onclick='pop.hide()'></p>";A=A.format(B.okInfo||"确定",B.cancelInfo||"取消",C);pop.show(B.title||"信息确认",{info:A,width:(B.width||300),height:(B.height||150),onclosed:B.cancel})}};var log={};log.imageReq=function(A){var C="doclog_"+(new Date()).getTime();var B=window[C]=new Image();B.onload=B.onerror=function(){window[C]=null};B.src=A;B=null};log.send=function(D,B,A){var C=(new Date()).getTime();var E=["http://"+location.host+"/tongji/"+D+".html?type="+B,"t="+C];if(A){baidu.each(A,function(H,F){E.push(F+"="+H)})}log.imageReq(E.join("&"))};login={onLoginSuccess:function(){window.location.reload(true)},onLoginFailed:function(){window.location="http://passport.baidu.com/?login&tpl=ik&u="+escape("http://zhidao.baidu.com/")},defalutLoginSuccess:function(){window.location.reload(true)},check:function(hasLogin,notLogin,patchment){function onOk(req,hasLogin,notLogin){var res=eval("("+req.responseText+")");if(res[0]["isLogin"]=="1"){if(hasLogin){hasLogin()}return true}if(notLogin){notLogin()}else{login.log(hasLogin,patchment)}return false}baidu.ajax.get("/login?_t="+(new Date()).getTime(),function(req){onOk(req,hasLogin,notLogin)})},log:function(B,A){if(B){login.onLoginSuccess=B}else{login.onLoginSuccess=login.defalutLoginSuccess}A="?"+(A?A+"&":"")+"t="+(new Date()).getTime();pop.show("登录",{url:"/static/html/userlogin.html"+A,width:400,height:360})}};var cookie={defaultExpires:new Date(Date.parse("Jan 1, 2026")),defaultPath:"/",defaultDomain:location.host.replace(/:d+/,""),set:function(F,H,B,C,A,E){var D=F+"="+encodeURIComponent(H);if(B){D+="; expires="+B.toGMTString()}if(C){D+="; path="+C}if(A){D+="; domain="+A}if(E){D+="; secure"}document.cookie=D},get:function(C){var B="(?:; )?"+C+"=([^;]*);?";var A=new RegExp(B);if(A.test(document.cookie)){return decodeURIComponent(RegExp["$1"])}else{return null}},del:function(A){cookie.set(A,"",new Date(0))}};function classTable(){var B="classTable";var C=null;function F(L){L=L||B;B=L;if(typeof class_level_1=="undefined"){return }var M="";for(var K=1;K<=3;K++){var N=(K==0)?"short":"long";if(K>1){M+='<span class="class_arr icon"></span>'}M+='<select id="classTableLevel'+K+'" name="class_table_level_'+K+'" size="9" class="'+N+'">';M+="</select>"}baidu.G(L).innerHTML=M;A(class_level_1,false,1,G("classTableLevel1"));A(J(class_level_1[0][0],1),true,2,G("classTableLevel2"));A(J(class_level_2[0][1],2),true,3,G("classTableLevel3"));C=baidu.GT("span",G("classTable"))[1];baidu.hide("classTableLevel3");baidu.hide(C);H("classTableLevel1","classTableLevel2","classTableLevel3");sug_opt.getSugTag()}function A(L,M,Q,P){var O=0;if(M){P.options[0]=new Option("不选","0-"+Q);O++}for(var N=0;N<L.length;N++){var K=L[N];P.options[O]=new Option(K[K.length-1],K[K.length-2]+"-"+Q);O++}P.length=O;P.options[0].selected=true}function H(){var K=arguments;baidu.each(K,function(L){baidu.on(L,"change",function(){E(this.value)})})}function E(K){if(K==""){baidu.hide(N,C);sug_opt.getSugTag();return false}var P=K.replace(/-d+/,"");var O=K.replace(/d+-/,"");if(O==3){sug_opt.getSugTag();return false}var L=parseInt(O)+1;var N=G("classTableLevel"+L);var M=J(P,O);if(M&&M.length!=0){A(M,true,L,N);if(L==3){baidu.show("classTableLevel3",C)}else{G("classTableLevel3").options[0].selected=true;baidu.hide("classTableLevel3",C)}}else{G("classTableLevel3").options[0].selected=true;baidu.hide(N,C)}sug_opt.getSugTag()}function J(O,M){if(M==3){return false}var K=[];var N=(M==1)?class_level_2:class_level_3;for(var L=0;L<N.length;L++){if(O==N[L][0]){K.push(N[L])}}return K}function D(){var K=[];for(var L=1;L<4;L++){var N=G("classTableLevel"+L);var M=(N.value!="")?N.value.replace(/-d+/,""):0;K.push(M)}return K}function I(O){var K=O.split("-");for(var M=1;M<=K.length;M++){var N=baidu.GT("option",G("classTableLevel"+M));for(var L=0;L<N.length;L++){if(N[L].value==K[M-1]+"-"+M){N[L].selected=true;E(N[L].value)}}}}this.create=F;this.get=D;this.set=I}var global={};global.myiknow=(function(){var C,B,A=0;return function(){C=C||baidu.G("usrbar");B=B||baidu.G("nav_extra");var E=baidu.G("my_home"),F=C.scrollHeight,D=0;do{D+=E.offsetLeft}while(E=E.offsetParent);D=D-6;B.style.display="block";B.style.left=D+"px";B.style.top=A+"px"}})();global.statusMsg=function(A){var B="http://msg.baidu.com/ms?ct=18&cm=3&tn=bmSelfUsrStat&mpn=13227114&un="+A;if(typeof redmsg!="undefined"){if(!redmsg||redmsg.length<1){return }baidu.G("mnum").innerHTML=redmsg}else{baidu.loadJS(B);setTimeout(function(){global.statusMsg(A)},100)}};global.checkSearchBoxQuery=function(){var B=["topSearchBox","bottomSearchBox"];for(var A=0;A<B.length;A++){if(baidu.G(B[A])){baidu.on(baidu.G(B[A]),"submit",function(C){if(document[this.name].word.value.trim()==""){pop.show("提示",{url:"/static/html/emptySearchQuery.html?form="+this.name,width:440,height:270})}else{this.submit()}baidu.preventDefault(C)})}}};global.go=function(E,D){if(document.ftop.word.value.length>0){var C=E.href;var B=encodeURIComponent(document.ftop.word.value);if(C.indexOf("q=")!=-1){E.href=C.replace(new RegExp("q=[^&$]*"),"q="+B)}else{var A=D?"&":"?";E.href=E.href+A+"q="+B}}};