var baidu=baidu||{version:"1-3-3"};baidu.guid="$BAIDU$";window[baidu.guid]=window[baidu.guid]||{};baidu.browser=baidu.browser||{};baidu.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent);baidu.browser.isStrict=document.compatMode=="CSS1Compat";if((/(\d+\.\d)(\.\d)?\s+safari/i.test(navigator.userAgent)&&!/chrome/i.test(navigator.userAgent))){baidu.browser.safari=parseFloat(RegExp["\x241"])}if(/opera\/(\d+\.\d)/i.test(navigator.userAgent)){baidu.browser.opera=parseFloat(RegExp["\x241"])}if(/chrome\/(\d+\.\d)/i.test(navigator.userAgent)){baidu.browser.chrome=parseFloat(RegExp["\x241"])}if(/msie (\d+\.\d)/i.test(navigator.userAgent)){baidu.browser.ie=baidu.ie=document.documentMode||parseFloat(RegExp["\x241"])}try{if(/(\d+\.\d)/.test(external.max_version)){baidu.browser.maxthon=parseFloat(RegExp["\x241"])}}catch(e){}baidu.browser.isWebkit=/webkit/i.test(navigator.userAgent);if(/firefox\/(\d+\.\d)/i.test(navigator.userAgent)){baidu.browser.firefox=parseFloat(RegExp["\x241"])}baidu.number=baidu.number||{};baidu.number.comma=function(B,A){if(!A||A<1){A=3}B=String(B).split(".");B[0]=B[0].replace(new RegExp("(\\d)(?=(\\d{"+A+"})+$)","ig"),"$1,");return B.join(".")};baidu.url=baidu.url||{};baidu.url.escapeSymbol=function(A){return String(A).replace(/\%/g,"%25").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/\ /g,"%20").replace(/\//g,"%2F").replace(/\#/g,"%23").replace(/\=/g,"%3D")};baidu.string=baidu.string||{};baidu.string.escapeReg=function(A){return String(A).replace(new RegExp("([.*+?^=!:\x24{}()|[\\]/\\\\])","g"),"\\\x241")};baidu.url.getQueryValue=function(B,C){var D=new RegExp("(^|&|\\?|#)"+baidu.string.escapeReg(C)+"=([^&]*)(&|\x24)","");var A=B.match(D);if(A){return A[2]}return null};baidu.url.jsonToQuery=function(E,D){var B=[],A=0,C,G,F;D=D||function(H){return baidu.url.escapeSymbol(H)};for(C in E){if(E.hasOwnProperty(C)){G=E[C];if(Object.prototype.toString.call(G)=="[object Array]"){F=G.length;while(F--){B[A++]=C+"="+D(G[F],C)}}else{B[A++]=C+"="+D(G,C)}}}return B.join("&")};baidu.url.queryToJson=function(A){var F=A.substr(A.indexOf("?")+1),C=F.split("&"),E=C.length,J={},D=0,H,G,I,B;for(;D<E;D++){B=C[D].split("=");H=B[0];G=B[1];I=J[H];if("undefined"==typeof I){J[H]=G}else{if(Object.prototype.toString.call(I)=="[object Array]"){I.push(G)}else{J[H]=[I,G]}}}return J};baidu.cookie=baidu.cookie||{};baidu.cookie._isValidKey=function(A){return(new RegExp('^[^\\x00-\\x20\\x7f\\(\\)<>@,;:\\\\\\"\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+\x24')).test(A)};baidu.cookie.setRaw=function(C,D,B){if(!baidu.cookie._isValidKey(C)){return }B=B||{};var A=B.expires;if("number"==typeof B.expires){A=new Date();A.setTime(A.getTime()+B.expires)}document.cookie=C+"="+D+(B.path?"; path="+B.path:"")+(A?"; expires="+A.toGMTString():"")+(B.domain?"; domain="+B.domain:"")+(B.secure?"; secure":"")};baidu.cookie.getRaw=function(B){if(baidu.cookie._isValidKey(B)){var C=new RegExp("(^| )"+B+"=([^;]*)(;|\x24)"),A=C.exec(document.cookie);if(A){return A[2]||null}}return null};baidu.cookie.get=function(A){var B=baidu.cookie.getRaw(A);if("string"==typeof B){B=decodeURIComponent(B);return B}return null};baidu.cookie.set=function(B,C,A){baidu.cookie.setRaw(B,encodeURIComponent(C),A)};baidu.cookie.remove=function(B,A){A=A||{};A.expires=new Date(0);baidu.cookie.setRaw(B,"",A)};baidu.json=baidu.json||{};baidu.json.parse=function(A){return(new Function("return "+A))()};baidu.json.stringify=(function(){var B={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function A(F){if(/["\\\x00-\x1f]/.test(F)){F=F.replace(/["\\\x00-\x1f]/g,function(G){var H=B[G];if(H){return H}H=G.charCodeAt();return"\\u00"+Math.floor(H/16).toString(16)+(H%16).toString(16)})}return'"'+F+'"'}function D(K){var G=["["],H=K.length,F,I,J;for(I=0;I<H;I++){J=K[I];switch(typeof J){case"undefined":case"function":case"unknown":break;default:if(F){G.push(",")}G.push(baidu.json.stringify(J));F=1}}G.push("]");return G.join("")}function C(F){return F<10?"0"+F:F}function E(F){return'"'+F.getFullYear()+"-"+C(F.getMonth()+1)+"-"+C(F.getDate())+"T"+C(F.getHours())+":"+C(F.getMinutes())+":"+C(F.getSeconds())+'"'}return function(J){switch(typeof J){case"undefined":return"undefined";case"number":return isFinite(J)?String(J):"null";case"string":return A(J);case"boolean":return String(J);default:if(J===null){return"null"}else{if(J instanceof Array){return D(J)}else{if(J instanceof Date){return E(J)}else{var G=["{"],I=baidu.json.stringify,F,H;for(key in J){if(J.hasOwnProperty(key)){H=J[key];switch(typeof H){case"undefined":case"unknown":case"function":break;default:if(F){G.push(",")}F=1;G.push(I(key)+":"+I(H))}}}G.push("}");return G.join("")}}}}}})();baidu.json.encode=function(A){return baidu.json.stringify(A)};baidu.json.decode=function(A){return baidu.json.parse(A)};baidu.date=baidu.date||{};baidu.date.format=function(A,F){if("string"!=typeof F){return A.toString()}function D(L,K){F=F.replace(L,K)}var B=baidu.number.pad,G=A.getFullYear(),E=A.getMonth()+1,J=A.getDate(),H=A.getHours(),C=A.getMinutes(),I=A.getSeconds();D(/yyyy/g,B(G,4));D(/yy/g,B(G.toString().slice(2),2));D(/MM/g,B(E,2));D(/M/g,E);D(/dd/g,B(J,2));D(/d/g,J);D(/HH/g,B(H,2));D(/H/g,H);D(/hh/g,B(H%12,2));D(/h/g,H%12);D(/mm/g,B(C,2));D(/m/g,C);D(/ss/g,B(I,2));D(/s/g,I);return F};baidu.date.parse=function(C){var A=new RegExp("^\\d+(\\-|\\/)\\d+(\\-|\\/)\\d+\x24");if("string"==typeof C){if(A.test(C)||isNaN(Date.parse(C))){var E=C.split(/ |T/),B=E.length>1?E[1].split(/[^\d]/):[0,0,0],D=E[0].split(/[^\d]/);return new Date(D[0]-0,D[1]-1,D[2]-0,B[0]-0,B[1]-0,B[2]-0)}else{return new Date(C)}}return new Date()};baidu.dom=baidu.dom||{};baidu.dom._styleFilter=baidu.dom._styleFilter||[];baidu.dom._styleFilter[baidu.dom._styleFilter.length]={get:function(C,D){if(/color/i.test(C)&&D.indexOf("rgb(")!=-1){var E=D.split(",");D="#";for(var B=0,A;A=E[B];B++){A=parseInt(A.replace(/[^\d]/gi,""),10).toString(16);D+=A.length==1?"0"+A:A}D=D.toUpperCase()}return D}};baidu.dom._styleFilter.filter=function(B,E,F){for(var A=0,D=baidu.dom._styleFilter,C;C=D[A];A++){if(C=C[F]){E=C(B,E)}}return E};baidu.dom._styleFilter[baidu.dom._styleFilter.length]={set:function(A,B){if(B.constructor==Number&&!/zIndex|fontWeight|opacity|zoom|lineHeight/i.test(A)){B=B+"px"}return B}};baidu.dom._styleFixer=baidu.dom._styleFixer||{};baidu.dom._styleFixer.display=baidu.browser.ie&&baidu.browser.ie<8?{set:function(A,B){A=A.style;if(B=="inline-block"){A.display="inline";A.zoom=1}else{A.display=B}}}:baidu.browser.firefox&&baidu.browser.firefox<3?{set:function(A,B){A.style.display=B=="inline-block"?"-moz-inline-box":B}}:null;baidu.dom._styleFixer["float"]=baidu.browser.ie?"styleFloat":"cssFloat";baidu.dom._styleFixer.opacity=baidu.browser.ie?{get:function(A){var B=A.style.filter;return B&&B.indexOf("opacity=")>=0?(parseFloat(B.match(/opacity=([^)]*)/)[1])/100)+"":"1"},set:function(A,C){var B=A.style;B.filter=(B.filter||"").replace(/alpha\([^\)]*\)/gi,"")+(C==1?"":"alpha(opacity="+C*100+")");B.zoom=1}}:null;baidu.dom._styleFixer.textOverflow=(function(){var B={};function A(E){var F=E.length;if(F>0){F=E[F-1];E.length--}else{F=null}return F}function C(E,F){E[baidu.browser.firefox?"textContent":"innerText"]=F}function D(L,H,Q){var J=baidu.browser.ie?L.currentStyle||L.style:getComputedStyle(L,null),P=J.fontWeight,O="font-family:"+J.fontFamily+";font-size:"+J.fontSize+";word-spacing:"+J.wordSpacing+";font-weight:"+((parseInt(P)||0)==401?700:P)+";font-style:"+J.fontStyle+";font-variant:"+J.fontVariant,E=B[O];if(!E){J=L.appendChild(document.createElement("div"));J.style.cssText="float:left;"+O;E=B[O]=[];for(var M=0;M<256;M++){M==32?(J.innerHTML="&nbsp;"):C(J,String.fromCharCode(M));E[M]=J.offsetWidth}C(J,"一");E[256]=J.offsetWidth;C(J,"一一");E[257]=J.offsetWidth-E[256]*2;E[258]=E[".".charCodeAt(0)]*3+E[257]*3;L.removeChild(J)}for(var K=L.firstChild,N=E[256],G=E[257],F=E[258],S=[],Q=Q?F:0;K;K=K.nextSibling){if(H<Q){L.removeChild(K)}else{if(K.nodeType==3){for(var M=0,R=K.nodeValue,I=R.length;M<I;M++){J=R.charCodeAt(M);S[S.length]=[H,K,M];H-=(M?G:0)+(J<256?E[J]:N);if(H<Q){break}}}else{J=K.tagName;if(J=="IMG"||J=="TABLE"){J=K;K=K.previousSibling;L.removeChild(J)}else{S[S.length]=[H,K];H-=K.offsetWidth}}}}if(H<Q){while(J=A(S)){H=J[0];K=J[1];J=J[2];if(K.nodeType==3){if(H>=F){K.nodeValue=K.nodeValue.substring(0,J)+"...";return true}else{if(!J){L.removeChild(K)}}}else{if(D(K,H,true)){return true}else{L.removeChild(K)}}}L.innerHTML=""}}return{get:function(F,G){var E=baidu.browser;return(E.opera?G.OTextOverflow:E.firefox?F._baiduOverflow:G.textOverflow)||"clip"},set:function(F,H){var E=baidu.browser;if(F.tagName=="TD"||F.tagName=="TH"||E.firefox){F._baiduHTML&&(F.innerHTML=F._baiduHTML);if(H=="ellipsis"){F._baiduHTML=F.innerHTML;var I=document.createElement("div"),G=F.appendChild(I).offsetWidth;F.removeChild(I);D(F,G)}else{F._baiduHTML=""}}I=F.style;E.opera?(I.OTextOverflow=H):E.firefox?(F._baiduOverflow=H):(I.textOverflow=H)}}})();baidu.dom.g=function(A){if("string"==typeof A||A instanceof String){return document.getElementById(A)}else{if(A&&A.nodeName&&(A.nodeType==1||A.nodeType==9)){return A}}return null};baidu.g=baidu.G=baidu.dom.g;baidu.dom._NAME_ATTRS=(function(){var A={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};if(baidu.browser.ie<8){A["for"]="htmlFor";A["class"]="className"}else{A.htmlFor="for";A.className="class"}return A})();baidu.dom.setAttr=function(B,A,C){B=baidu.dom.g(B);if("style"==A){B.style.cssText=C}else{A=baidu.dom._NAME_ATTRS[A]||A;B.setAttribute(A,C)}return B};baidu.setAttr=baidu.dom.setAttr;baidu.dom.setAttrs=function(C,A){C=baidu.dom.g(C);for(var B in A){baidu.dom.setAttr(C,B,A[B])}return C};baidu.setAttrs=baidu.dom.setAttrs;baidu.dom.getAttr=function(B,A){B=baidu.dom.g(B);if("style"==A){return B.style.cssText}A=baidu.dom._NAME_ATTRS[A]||A;return B.getAttribute(A)};baidu.getAttr=baidu.dom.getAttr;baidu.dom._matchNode=function(A,C,D){A=baidu.dom.g(A);for(var B=A[D];B;B=B[C]){if(B.nodeType==1){return B}}return null};baidu.dom.prev=function(A){return baidu.dom._matchNode(A,"previousSibling","previousSibling")};(function(){var A=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+\x24)","g");baidu.string.trim=function(B){return String(B).replace(A,"")}})();baidu.trim=baidu.string.trim;baidu.dom.addClass=function(A,B){A=baidu.dom.g(A);A.className+=" "+B;return A};baidu.addClass=baidu.dom.addClass;baidu.dom.hasClass=function(C,D){C=baidu.dom.g(C);var B=baidu.string.trim(D).split(/\s+/),A=B.length;D=C.className.split(/\s+/).join(" ");while(A--){if(!(new RegExp("(^| )"+B[A]+"( |\x24)")).test(D)){return false}}return true};baidu.dom._g=function(A){if("string"==typeof A||A instanceof String){return document.getElementById(A)}return A};baidu._g=baidu.dom._g;baidu.dom.contains=function(A,B){var C=baidu.dom._g;A=C(A);B=C(B);return A.contains?A!=B&&A.contains(B):!!(A.compareDocumentPosition(B)&16)};baidu.dom.getDocument=function(A){A=baidu.dom.g(A);return A.nodeType==9?A:A.ownerDocument||A.document};baidu.dom.removeClass=function(D,E){D=baidu.dom.g(D);var B=D.className.split(/\s+/).sort(),F=E.split(/\s+/).sort(),C=B.length,A=F.length;for(;C&&A;){if(B[C-1]==F[A-1]){B.splice(--C,1)}else{if(B[C-1]<F[A-1]){A--}else{C--}}}D.className=B.join(" ");return D};baidu.removeClass=baidu.dom.removeClass;baidu.dom.children=function(B){B=baidu.dom.g(B);for(var A=[],C=B.firstChild;C;C=C.nextSibling){if(C.nodeType==1){A.push(C)}}return A};baidu.string.toCamelCase=function(A){if(A.indexOf("-")<0&&A.indexOf("_")<0){return A}return A.replace(/[-_][^-_]/g,function(B){return B.charAt(1).toUpperCase()})};baidu.dom.setStyle=function(C,B,D){var E=baidu.dom,A;C=E.g(C);B=baidu.string.toCamelCase(B);if(A=E._styleFilter){D=A.filter(B,D,"set")}A=E._styleFixer[B];(A&&A.set)?A.set(C,D):(C.style[A||B]=D);return C};baidu.setStyle=baidu.dom.setStyle;baidu.dom.setStyles=function(B,C){B=baidu.dom.g(B);for(var A in C){baidu.dom.setStyle(B,A,C[A])}return B};baidu.setStyles=baidu.dom.setStyles;baidu.dom.q=function(H,E,B){var I=[],D=baidu.string.trim,G,F,A,C;if(!(H=D(H))){return null}if("undefined"==typeof E){E=document}else{E=baidu.dom.g(E);if(!E){return I}}B&&(B=D(B).toUpperCase());if(E.getElementsByClassName){A=E.getElementsByClassName(H);G=A.length;for(F=0;F<G;F++){C=A[F];if(B&&C.tagName!=B){continue}I[I.length]=C}}else{H=new RegExp("(^|\\s)"+baidu.string.escapeReg(H)+"(\\s|\x24)");A=B?E.getElementsByTagName(B):(E.all||E.getElementsByTagName("*"));G=A.length;for(F=0;F<G;F++){C=A[F];H.test(C.className)&&(I[I.length]=C)}}return I};baidu.q=baidu.Q=baidu.dom.q;baidu.dom.getStyle=function(C,B){var F=baidu.dom;C=F.g(C);B=baidu.string.toCamelCase(B);var E=C.style[B];if(!E){var A=F._styleFixer[B],D=C.currentStyle||(baidu.browser.ie?C.style:getComputedStyle(C,null));if("string"==typeof A){E=D[A]}else{if(A&&A.get){E=A.get(C,D)}else{E=D[B]}}}if(A=F._styleFilter){E=A.filter(B,E,"get")}return E};baidu.getStyle=baidu.dom.getStyle;baidu.dom.getPosition=function(B){B=baidu.dom.g(B);var K=baidu.dom.getDocument(B),E=baidu.browser,H=baidu.dom.getStyle,D=E.isGecko>0&&K.getBoxObjectFor&&H(B,"position")=="absolute"&&(B.style.top===""||B.style.left===""),I={left:0,top:0},G=(E.ie&&!E.isStrict)?K.body:K.documentElement,L,C;if(B==G){return I}if(B.getBoundingClientRect){C=B.getBoundingClientRect();I.left=Math.floor(C.left)+Math.max(K.documentElement.scrollLeft,K.body.scrollLeft);I.top=Math.floor(C.top)+Math.max(K.documentElement.scrollTop,K.body.scrollTop);I.left-=K.documentElement.clientLeft;I.top-=K.documentElement.clientTop;var J=K.body,M=parseInt(H(J,"borderLeftWidth")),F=parseInt(H(J,"borderTopWidth"));if(E.ie&&!E.isStrict){I.left-=isNaN(M)?2:M;I.top-=isNaN(F)?2:F}}else{if(K.getBoxObjectFor&&!D){C=K.getBoxObjectFor(B);var A=K.getBoxObjectFor(G);I.left=C.screenX-A.screenX;I.top=C.screenY-A.screenY}else{L=B;do{I.left+=L.offsetLeft;I.top+=L.offsetTop;if(E.isWebkit>0&&H(L,"position")=="fixed"){I.left+=K.body.scrollLeft;I.top+=K.body.scrollTop;break}L=L.offsetParent}while(L&&L!=B);if(E.opera>0||(E.isWebkit>0&&H(B,"position")=="absolute")){I.top-=K.body.offsetTop}L=B.offsetParent;while(L&&L!=K.body){I.left-=L.scrollLeft;if(!E.opera||L.tagName!="TR"){I.top-=L.scrollTop}L=L.offsetParent}}}return I};baidu.dom.intersect=function(H,G){var F=baidu.dom.g,E=baidu.dom.getPosition,A=Math.max,C=Math.min;H=F(H);G=F(G);var D=E(H),B=E(G);return A(D.left,B.left)<=C(D.left+H.offsetWidth,B.left+G.offsetWidth)&&A(D.top,B.top)<=C(D.top+H.offsetHeight,B.top+G.offsetHeight)};baidu.dom.last=function(A){return baidu.dom._matchNode(A,"previousSibling","lastChild")};baidu.dom.ready=function(){var C=false,E=false,D=[];function A(){if(!C){C=true;for(var G=0,F=D.length;G<F;G++){D[G]()}}}function B(){if(E){return }E=true;var I=document,G=window,F=baidu.browser.opera;if(I.addEventListener&&!F){I.addEventListener("DOMContentLoaded",F?function(){if(C){return }for(var J=0;J<I.styleSheets.length;J++){if(I.styleSheets[J].disabled){setTimeout(arguments.callee,0);return }}A()}:A,false)}else{if(baidu.browser.ie&&G==top){(function(){if(C){return }try{I.documentElement.doScroll("left")}catch(J){setTimeout(arguments.callee,0);return }A()})()}else{if(baidu.browser.safari){var H;(function(){if(C){return }if(I.readyState!="loaded"&&I.readyState!="complete"){setTimeout(arguments.callee,0);return }if(H===undefined){H=0;var M=I.getElementsByTagName("style"),K=I.getElementsByTagName("link");if(M){H+=M.length}if(K){for(var L=0,J=K.length;L<J;L++){if(K[L].getAttribute("rel")=="stylesheet"){H++}}}}if(I.styleSheets.length!=H){setTimeout(arguments.callee,0);return }A()})()}}}G.attachEvent?G.attachEvent("onload",A):G.addEventListener("load",A,false)}return function(F){B();C?F():(D[D.length]=F)}}();baidu.dom.getAncestorByTag=function(B,A){B=baidu.dom.g(B);A=A.toUpperCase();while((B=B.parentNode)&&B.nodeType==1){if(B.tagName==A){return B}}return null};baidu.dom.getWindow=function(A){A=baidu.dom.g(A);var B=baidu.dom.getDocument(A);return B.parentWindow||B.defaultView||null};baidu.dom.getAncestorBy=function(A,B){A=baidu.dom.g(A);while((A=A.parentNode)&&A.nodeType==1){if(B(A)){return A}}return null};baidu.dom.hide=function(A){A=baidu.dom.g(A);A.style.display="none";return A};baidu.hide=baidu.dom.hide;baidu.dom.next=function(A){return baidu.dom._matchNode(A,"nextSibling","nextSibling")};baidu.dom.show=function(A){A=baidu.dom.g(A);A.style.display="";return A};baidu.show=baidu.dom.show;baidu.dom.toggle=function(A){A=baidu.dom.g(A);A.style.display=A.style.display=="none"?"":"none";return A};baidu.dom.insertAfter=function(D,C){var B,A;B=baidu.dom._g;D=B(D);C=B(C);A=C.parentNode;if(A){A.insertBefore(D,C.nextSibling)}return D};baidu.dom.first=function(A){return baidu.dom._matchNode(A,"nextSibling","firstChild")};baidu.dom.insertBefore=function(D,C){var B,A;B=baidu.dom._g;D=B(D);C=B(C);A=C.parentNode;if(A){A.insertBefore(D,C)}return D};baidu.dom.insertHTML=function(D,A,C){D=baidu.dom.g(D);var B,E;if(D.insertAdjacentHTML){D.insertAdjacentHTML(A,C)}else{B=D.ownerDocument.createRange();A=A.toUpperCase();if(A=="AFTERBEGIN"||A=="BEFOREEND"){B.selectNodeContents(D);B.collapse(A=="AFTERBEGIN")}else{E=A=="BEFOREBEGIN";B[E?"setStartBefore":"setEndAfter"](D);B.collapse(E)}B.insertNode(B.createContextualFragment(C))}return D};baidu.insertHTML=baidu.dom.insertHTML;baidu.dom.remove=function(A){A=baidu.dom._g(A);var B=A.parentNode;B&&B.removeChild(A)};baidu.dom.getAncestorByClass=function(A,B){A=baidu.dom.g(A);B=new RegExp("(^|\\s)"+baidu.string.trim(B)+"(\\s|\x24)");while((A=A.parentNode)&&A.nodeType==1){if(B.test(A.className)){return A}}return null};baidu.lang=baidu.lang||{};window[baidu.guid]._instances=window[baidu.guid]._instances||{};baidu.lang.instance=function(A){return window[baidu.guid]._instances[A]||null};baidu.lang.isNumber=function(A){return"[object Number]"==Object.prototype.toString.call(A)};baidu.lang.guid=function(){return"TANGRAM__"+(window[baidu.guid]._counter++).toString(36)};window[baidu.guid]._counter=window[baidu.guid]._counter||1;baidu.lang.Class=function(A){this.guid=A||baidu.lang.guid();window[baidu.guid]._instances[this.guid]=this};window[baidu.guid]._instances=window[baidu.guid]._instances||{};baidu.lang.Class.prototype.dispose=function(){delete window[baidu.guid]._instances[this.guid];for(var A in this){if(typeof this[A]!="function"){delete this[A]}}this.disposed=true};baidu.lang.Class.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"};baidu.lang.inherits=function(G,E,D){var C,F,A=G.prototype,B=new Function();B.prototype=E.prototype;F=G.prototype=new B();for(C in A){F[C]=A[C]}G.prototype.constructor=G;G.superClass=E.prototype;if("string"==typeof D){F._className=D}};baidu.inherits=baidu.lang.inherits;baidu.lang.isElement=function(A){return !!(A&&A.nodeName&&A.nodeType==1)};baidu.lang.module=function(name,module,owner){var packages=name.split("."),len=packages.length-1,packageName,i=0;if(!owner){try{if(!(new RegExp("^[a-zA-Z_\x24][a-zA-Z0-9_\x24]*\x24")).test(packages[0])){throw""}owner=eval(packages[0]);i=1}catch(e){owner=window}}for(;i<len;i++){packageName=packages[i];if(!owner[packageName]){owner[packageName]={}}owner=owner[packageName]}if(!owner[packages[len]]){owner[packages[len]]=module}};baidu.lang.decontrol=function(B){var A=window[baidu.guid];A._instances&&(delete A._instances[B])};baidu.lang.isArray=function(A){return"[object Array]"==Object.prototype.toString.call(A)};baidu.lang.Event=function(A,B){this.type=A;this.returnValue=true;this.target=B||null;this.currentTarget=null};baidu.lang.Class.prototype.addEventListener=function(D,C,B){if(typeof C!="function"){return }!this.__listeners&&(this.__listeners={});var A=this.__listeners,E;if(typeof B=="string"&&B){if(/[^\w\-]/.test(B)){throw ("nonstandard key:"+B)}else{C.hashCode=B;E=B}}D.indexOf("on")!=0&&(D="on"+D);typeof A[D]!="object"&&(A[D]={});E=E||baidu.lang.guid();C.hashCode=E;A[D][E]=C};baidu.lang.Class.prototype.removeEventListener=function(C,B){if(typeof B=="function"){B=B.hashCode}else{if(typeof B!="string"){return }}!this.__listeners&&(this.__listeners={});C.indexOf("on")!=0&&(C="on"+C);var A=this.__listeners;if(!A[C]){return }A[C][B]&&delete A[C][B]};baidu.lang.Class.prototype.dispatchEvent=function(D,A){if("string"==typeof D){D=new baidu.lang.Event(D)}!this.__listeners&&(this.__listeners={});A=A||{};for(var C in A){D[C]=A[C]}var C,B=this.__listeners,E=D.type;D.target=D.target||this;D.currentTarget=this;E.indexOf("on")!=0&&(E="on"+E);typeof this[E]=="function"&&this[E].apply(this,arguments);if(typeof B[E]=="object"){for(C in B[E]){B[E][C].apply(this,arguments)}}return D.returnValue};baidu.lang.isObject=function(A){return"function"==typeof A||!!(A&&"object"==typeof A)};baidu.isObject=baidu.lang.isObject;baidu.lang.isString=function(A){return"[object String]"==Object.prototype.toString.call(A)};baidu.isString=baidu.lang.isString;baidu.event=baidu.event||{};baidu.event.getPageX=function(B){var A=B.pageX,C=document;if(!A&&A!==0){A=(B.clientX||0)+(C.documentElement.scrollLeft||C.body.scrollLeft)}return A};baidu.event.getPageY=function(B){var A=B.pageY,C=document;if(!A&&A!==0){A=(B.clientY||0)+(C.documentElement.scrollTop||C.body.scrollTop)}return A};baidu.event.stopPropagation=function(A){if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}};baidu.event.preventDefault=function(A){if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}};baidu.event.stop=function(A){var B=baidu.event;B.stopPropagation(A);B.preventDefault(A)};baidu.event.getTarget=function(A){return A.target||A.srcElement};baidu.event.EventArg=function(C,E){E=E||window;C=C||E.event;var D=E.document;this.target=C.target||C.srcElement;this.keyCode=C.which||C.keyCode;for(var A in C){var B=C[A];if("function"!=typeof B){this[A]=B}}if(!this.pageX&&this.pageX!==0){this.pageX=(C.clientX||0)+(D.documentElement.scrollLeft||D.body.scrollLeft);this.pageY=(C.clientY||0)+(D.documentElement.scrollTop||D.body.scrollTop)}this._event=C};baidu.event.EventArg.prototype.preventDefault=function(){if(this._event.preventDefault){this._event.preventDefault()}else{this._event.returnValue=false}return this};baidu.event.EventArg.prototype.stopPropagation=function(){if(this._event.stopPropagation){this._event.stopPropagation()}else{this._event.cancelBubble=true}return this};baidu.event.EventArg.prototype.stop=function(){return this.stopPropagation().preventDefault()};baidu.event._unload=function(){var C=baidu.event._listeners,A=C.length,B=!!window.removeEventListener,E,D;while(A--){E=C[A];if(E[1]=="unload"){continue}D=E[0];if(D.removeEventListener){D.removeEventListener(E[1],E[3],false)}else{if(D.detachEvent){D.detachEvent("on"+E[1],E[3])}}}if(B){window.removeEventListener("unload",baidu.event._unload,false)}else{window.detachEvent("onunload",baidu.event._unload)}};if(window.attachEvent){window.attachEvent("onunload",baidu.event._unload)}else{window.addEventListener("unload",baidu.event._unload,false)}baidu.event._listeners=baidu.event._listeners||[];baidu.event.on=function(B,E,G){E=E.replace(/^on/i,"").toLowerCase();B=baidu.dom._g(B);var F=function(I){G.call(B,I)},A=baidu.event._listeners,D=baidu.event._eventFilter,H,C=E;if(D&&D[E]){H=D[E](B,E,F);C=H.type;F=H.listener}if(B.addEventListener){B.addEventListener(C,F,false)}else{if(B.attachEvent){B.attachEvent("on"+C,F)}}A[A.length]=[B,E,G,F,C];return B};baidu.on=baidu.event.on;baidu.event.get=function(A,B){return new baidu.event.EventArg(A,B)};baidu.event.un=function(C,F,B){C=baidu.dom._g(C);F=F.replace(/^on/i,"");var I=baidu.event._listeners,D=I.length,E=!B,H,G,A;while(D--){H=I[D];if(H[1]===F&&H[0]===C&&(E||H[2]===B)){G=H[4];A=H[3];if(C.removeEventListener){C.removeEventListener(G,A,false)}else{if(C.detachEvent){C.detachEvent("on"+G,A)}}I.splice(D,1)}}return C};baidu.un=baidu.event.un;baidu.event.getKeyCode=function(A){return A.which||A.keyCode};baidu.ajax=baidu.ajax||{};baidu.ajax.request=function(D,O){O=O||{};var I=O.data||"",G=!(O.async===false),H=O.username||"",M=O.password||"",A=(O.method||"GET").toUpperCase(),F=O.headers||{},C={},L,N;function J(){if(N.readyState==4){try{var Q=N.status}catch(P){E("failure");return }E(Q);if((Q>=200&&Q<300)||Q==304||Q==1223){E("success")}else{E("failure")}window.setTimeout(function(){N.onreadystatechange=new Function();if(G){N=null}},0)}}function B(){if(window.ActiveXObject){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(P){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(P){}}}if(window.XMLHttpRequest){return new XMLHttpRequest()}}function E(Q){Q="on"+Q;var P=C[Q],R=baidu.ajax[Q];if(P){if(Q!="onsuccess"){P(N)}else{P(N,N.responseText)}}else{if(R){if(Q=="onsuccess"){return }R(N)}}}for(L in O){C[L]=O[L]}F["X-Request-With"]="XMLHttpRequest";try{N=B();if(A=="GET"){D+=(D.indexOf("?")>=0?"&":"?");if(I){D+=I+"&";I=null}if(O.noCache){D+="b"+(new Date()).getTime()+"=1"}}if(H){N.open(A,D,G,H,M)}else{N.open(A,D,G)}if(G){N.onreadystatechange=J}if(A=="POST"){N.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}for(L in F){if(F.hasOwnProperty(L)){N.setRequestHeader(L,F[L])}}E("beforerequest");N.send(I);if(!G){J()}}catch(K){E("failure")}return N};baidu.ajax.post=function(B,C,A){return baidu.ajax.request(B,{onsuccess:A,method:"POST",data:C})};baidu.ajax.get=function(B,A){return baidu.ajax.request(B,{onsuccess:A})};baidu.ajax.form=function(A,C){C=C||{};var F=A.elements,M=F.length,B=A.getAttribute("method"),E=A.getAttribute("action"),S=C.replacer||function(U,T){return U},P={},R=[],K,O,Q,L,D,G,H,J,I;function N(T,U){R.push(T+"="+U)}for(K in C){if(C.hasOwnProperty(K)){P[K]=C[K]}}for(K=0;K<M;K++){O=F[K];L=O.name;if(!O.disabled&&L){Q=O.type;D=O.value;switch(Q){case"radio":case"checkbox":if(!O.checked){break}case"textarea":case"text":case"password":case"hidden":case"select-one":N(L,S(D,L));break;case"select-multiple":G=O.options;J=G.length;for(H=0;H<J;H++){I=G[H];if(I.selected){N(L,S(I.value,L))}}break}}}P.data=R.join("&");P.method=A.getAttribute("method")||"POST";return baidu.ajax.request(E,P)};baidu.sio=baidu.sio||{};baidu.sio._removeScriptTag=function(B){if(B.clearAttributes){B.clearAttributes()}else{for(var A in B){if(B.hasOwnProperty(A)){delete B[A]}}}if(B&&B.parentNode){B.parentNode.removeChild(B)}B=null};baidu.sio.callByBrowser=function(D,G,C){C=C||{};var E=document.createElement("SCRIPT"),B=0,A,F=C.charset;E.onload=E.onreadystatechange=function(){if(B){return }var H=E.readyState;if("undefined"==typeof H||H=="loaded"||H=="complete"){B=1;try{("function"==typeof G)&&G()}finally{baidu.sio._removeScriptTag(E)}}};E.setAttribute("type","text/javascript");F&&E.setAttribute("charset",F);E.setAttribute("src",D);document.getElementsByTagName("head")[0].appendChild(E)};baidu.sio.callByServer=function(A,I,J){J=J||{};var F=document.createElement("SCRIPT"),E="bd__cbs__",D=typeof I,H,G,B=J.charset,C=J.queryField||"callback";if("string"==D){H=I}else{if("function"==D){while(1){H=E+Math.floor(Math.random()*2147483648).toString(36);if(!window[H]){window[H]=function(){try{I.apply(window,arguments)}finally{baidu.sio._removeScriptTag(F);window[H]=null}};break}}}}if("string"==typeof H){A=A.replace((new RegExp("(\\?|&)callback=[^&]*")),"\x241"+C+"="+H);if(A.search(new RegExp("(\\?|&)"+C+"=/"))<0){A+=(A.indexOf("?")<0?"?":"&")+C+"="+H}}F.setAttribute("type","text/javascript");B&&F.setAttribute("charset",B);F.setAttribute("src",A);document.getElementsByTagName("head")[0].appendChild(F)};baidu.swf=baidu.swf||{};baidu.swf.version=(function(){var F=navigator;if(F.plugins&&F.mimeTypes.length){var C=F.plugins["Shockwave Flash"];if(C&&C.description){return C.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 E=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);if(E){var A=E.GetVariable("$version");return A.replace(/WIN/g,"").replace(/,/g,".")}}catch(D){}}}}})();baidu.string.encodeHTML=function(A){return String(A).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")};baidu.encodeHTML=baidu.string.encodeHTML;baidu.swf.createHTML=function(Q){Q=Q||{};var I=baidu.swf.version,G=Q.ver||"6.0.0",F,D,E,C,H,P,A={},M=baidu.string.encodeHTML;for(C in Q){A[C]=Q[C]}Q=A;if(I){I=I.split(".");G=G.split(".");for(E=0;E<3;E++){F=parseInt(I[E],10);D=parseInt(G[E],10);if(D<F){break}else{if(D>F){return""}}}}else{return""}var K=Q.vars,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("string"==typeof K){Q.flashvars=K}else{var N=[];for(C in K){P=K[C];if(P){N.push(C+"="+encodeURIComponent(P))}}Q.flashvars=N.join("&")}var L=["<object "];for(E=0,H=J.length;E<H;E++){P=J[E];L.push(" ",P,'="',M(Q[P]),'"')}L.push(">");var B={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(C in Q){P=Q[C];C=C.toLowerCase();if(B[C]&&P){L.push('<param name="'+C+'" value="'+M(P)+'" />')}}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 O;for(C in Q){P=Q[C];if(P){if((new RegExp("^salign\x24","i")).test(C)){O=P;continue}L.push(" ",C,'="',M(P),'"')}}if(O){L.push(' salign="',M(O),'"')}L.push("></embed></object>");return L.join("")};baidu.array=baidu.array||{};baidu.array.remove=function(C,D){var A=C.length,B=D;if("function"!=typeof D){B=function(E){return D===E}}while(A--){if(true===B.call(C,C[A],A)){C.splice(A,1)}}return C};baidu.lang.isFunction=function(A){return"[object Function]"==Object.prototype.toString.call(A)};baidu.lang.toArray=function(B){if(B===null||B===undefined){return[]}if(baidu.lang.isArray(B)){return B}if(typeof B.length!=="number"||typeof B==="string"||baidu.lang.isFunction(B)){return[B]}if(B.item){var A=B.length,C=new Array(A);while(A--){C[A]=B[A]}return C}return[].slice.call(B)};baidu.swf.getMovie=function(C){var A=document[C],B;return baidu.browser.ie==9?A&&A.length?(B=baidu.array.remove(baidu.lang.toArray(A),function(D){return D.tagName.toLowerCase()!="embed"})).length==1?B[0]:B:A:A||window[C]};baidu.swf.create=function(A,C){A=A||{};var B=baidu.swf.createHTML(A)||A.errorMessage||"";if(C&&"string"==typeof C){C=document.getElementById(C)}if(C){C.innerHTML=B}else{document.write(B)}};baidu.object=baidu.object||{};baidu.object.extend=function(C,A){for(var B in A){if(A.hasOwnProperty(B)){C[B]=A[B]}}return C};baidu.extend=baidu.object.extend;baidu.object.each=function(E,C){var B,A,D;if("function"==typeof C){for(A in E){if(E.hasOwnProperty(A)){D=E[A];B=C.call(E,D,A);if(B===false){break}}}}return E};baidu.object.keys=function(D){var A=[],C=0,B;for(B in D){if(D.hasOwnProperty(B)){A[C++]=B}}return A};baidu.object.values=function(D){var A=[],C=0,B;for(B in D){if(D.hasOwnProperty(B)){A[C++]=D[B]}}return A};baidu.object.clone=(function(A){return function(F){var C=F,D,B;if(!F||F instanceof Number||F instanceof String||F instanceof Boolean){return C}else{if(F instanceof Array){C=[];var E=0;for(D=0,B=F.length;D<B;D++){C[E++]=baidu.object.clone(F[D])}}else{if("object"==typeof F){if(A[Object.prototype.toString.call(F)]){return C}C={};for(D in F){if(F.hasOwnProperty(D)){C[D]=baidu.object.clone(F[D])}}}}}return C}})({"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1});baidu.string.getByteLength=function(A){return String(A).replace(/[^\x00-\xff]/g,"ci").length};baidu.string.decodeHTML=function(A){var B=String(A).replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");return B.replace(/&#([\d]+);/g,function(D,C){return String.fromCharCode(parseInt(C,10))})};baidu.decodeHTML=baidu.string.decodeHTML;baidu.string.format=function(C,A){C=String(C);var B=Array.prototype.slice.call(arguments,1),D=Object.prototype.toString;if(B.length){B=B.length==1?(A!==null&&(/\[object Array\]|\[object Object\]/.test(D.call(A)))?A:B):B;return C.replace(/#\{(.+?)\}/g,function(E,G){var F=B[G];if("[object Function]"==D.call(F)){F=F(G)}return("undefined"==typeof F?"":F)})}return C};baidu.format=baidu.string.format;baidu.string.wbr=function(A){return String(A).replace(/(?:<[^>]+>)|(?:&#?[0-9a-z]{2,6};)|(.{1})/gi,"$&<wbr>").replace(/><wbr>/g,">")};baidu.string.subByte=function(B,A){B=String(B);if(A<0||baidu.string.getByteLength(B)<=A){return B}B=B.substr(0,A).replace(/([^\x00-\xff])/g,"\x241 ").substr(0,A).replace(/[^\x00-\xff]$/,"").replace(/([^\x00-\xff]) /g,"\x241");return B};baidu.string.toHalfWidth=function(A){return String(A).replace(/[\uFF01-\uFF5E]/g,function(B){return String.fromCharCode(B.charCodeAt(0)-65248)}).replace(/\u3000/g," ")};baidu.page=baidu.page||{};baidu.page.getHeight=function(){var D=document,A=D.body,C=D.documentElement,B=D.compatMode=="BackCompat"?A:D.documentElement;return Math.max(C.scrollHeight,A.scrollHeight,B.clientHeight)};baidu.page.loadCssFile=function(B){var A=document.createElement("link");A.setAttribute("rel","stylesheet");A.setAttribute("type","text/css");A.setAttribute("href",B);document.getElementsByTagName("head")[0].appendChild(A)};baidu.page.getScrollLeft=function(){var A=document;return window.pageXOffset||A.documentElement.scrollLeft||A.body.scrollLeft};baidu.page.getViewWidth=function(){var B=document,A=B.compatMode=="BackCompat"?B.body:B.documentElement;return A.clientWidth};baidu.page.loadJsFile=function(B){var A=document.createElement("script");A.setAttribute("type","text/javascript");A.setAttribute("src",B);A.setAttribute("defer","defer");document.getElementsByTagName("head")[0].appendChild(A)};baidu.page.getWidth=function(){var D=document,A=D.body,C=D.documentElement,B=D.compatMode=="BackCompat"?A:D.documentElement;return Math.max(C.scrollWidth,A.scrollWidth,B.clientWidth)};baidu.page.getScrollTop=function(){var A=document;return window.pageYOffset||A.documentElement.scrollTop||A.body.scrollTop};baidu.page.getViewHeight=function(){var B=document,A=B.compatMode=="BackCompat"?B.body:B.documentElement;return A.clientHeight};baidu.array.filter=function(G,E){var C=[],B=0,A=G.length,F,D;if("function"==typeof E){for(D=0;D<A;D++){F=G[D];if(true===E.call(G,F,D)){C[B++]=F}}}return C};baidu.array.unique=function(E,F){var B=E.length,A=E.slice(0),D,C;if("function"!=typeof F){F=function(H,G){return H===G}}while(--B>0){C=A[B];D=B;while(D--){if(F(C,A[D])){A.splice(B,1);break}}}return A};baidu.array.indexOf=function(D,E,B){var A=D.length,C=E;B=Number(B)||0;B=B<0?Math.ceil(B):Math.floor(B);B=Math.min(Math.max(B,0),A);if("function"!=typeof E){C=function(F){return E===F}}for(;B<A;B++){if(true===C.call(D,D[B],B)){return B}}return -1};baidu.array.each=function(F,D){var C,E,B,A=F.length;if("function"==typeof D){for(B=0;B<A;B++){E=F[B];C=D.call(F,E,B);if(C===false){break}}}return F};baidu.each=baidu.array.each;baidu.array.find=function(E,C){var D,B,A=E.length;if("function"==typeof C){for(B=0;B<A;B++){D=E[B];if(true===C.call(E,D,B)){return D}}}return null};baidu.array.lastIndexOf=function(C,D){var A=C.length,B=D;if("function"!=typeof D){B=function(E){return D===E}}while(A--){if(true===B.call(C,C[A],A)){return A}}return -1};baidu.array.removeAt=function(B,A){return B.splice(A,1)[0]};baidu.lang.createClass=function(G,B){B=B||{};var F=B.superClass||baidu.lang.Class;var E=function(){if(F!=baidu.lang.Class){F.apply(this,arguments)}else{F.call(this)}G.apply(this,arguments)};E.options=B.options||{};var I=function(){},H=G.prototype;I.prototype=F.prototype;var A=E.prototype=new I();for(var D in H){A[D]=H[D]}typeof B.className=="string"&&(A._className=B.className);A.constructor=H.constructor;E.extend=function(J){for(var C in J){E.prototype[C]=J[C]}return E};return E};baidu.lang.createSingle=function(B){var C=new baidu.lang.Class();for(var A in B){C[A]=B[A]}return C};baidu.string.filterFormat=function(C,A){var B=Array.prototype.slice.call(arguments,1),D=Object.prototype.toString;if(B.length){B=B.length==1?(A!==null&&(/\[object Array\]|\[object Object\]/.test(D.call(A)))?A:B):B;return C.replace(/#\{(.+?)\}/g,function(F,I){var K,H,G,E,J;if(!B){return""}K=I.split("|");H=B[K[0]];if("[object Function]"==D.call(H)){H=H(K[0])}for(G=1,E=K.length;G<E;++G){J=baidu.string.filterFormat[K[G]];if("[object Function]"==D.call(J)){H=J(H)}}return(("undefined"==typeof H||H===null)?"":H)})}return C};baidu.string.filterFormat.escapeJs=function(E){if(!E||"string"!=typeof E){return E}var D,A,B,C=[];for(D=0,A=E.length;D<A;++D){B=E.charCodeAt(D);if(B>255){C.push(E.charAt(D))}else{C.push("\\x"+B.toString(16))}}return C.join("")};baidu.string.filterFormat.js=baidu.string.filterFormat.escapeJs;baidu.string.filterFormat.escapeString=function(A){if(!A||"string"!=typeof A){return A}return A.replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;").replace(/>/g,"&#62;").replace(/\\/g,"&#92;").replace(/\//g,"&#47;").replace(/`/g,"&#96;")};baidu.string.filterFormat.e=baidu.string.filterFormat.escapeString;baidu.string.filterFormat.toInt=function(A){return parseInt(A,10)||0};baidu.string.filterFormat.i=baidu.string.filterFormat.toInt;(function(){baidu.page.getMousePosition=function(){return{x:baidu.page.getScrollLeft()+A.x,y:baidu.page.getScrollTop()+A.y}};var A={x:0,y:0};baidu.event.on(document,"onmousemove",function(B){B=window.event||B;A.x=B.clientX;A.y=B.clientY})})();(function(){var K,J,F,D,N,G,O,A,M,E=baidu.lang.isFunction,C;baidu.dom.drag=function(Q,P){M=A=null;if(!(K=baidu.dom.g(Q))){return false}J=baidu.object.extend({autoStop:true,capture:true,interval:20},P);N=parseInt(baidu.dom.getStyle(K,"top"))||0;G=parseInt(baidu.dom.getStyle(K,"left"))||0;if(J.mouseEvent){F=baidu.page.getScrollLeft()+J.mouseEvent.clientX;D=baidu.page.getScrollTop()+J.mouseEvent.clientY}else{var R=baidu.page.getMousePosition();F=R.x;D=R.y}C=setInterval(B,J.interval);J.autoStop&&baidu.event.on(document,"mouseup",L);baidu.event.on(document.body,"selectstart",H);if(J.capture&&K.setCapture){K.setCapture()}else{if(J.capture&&window.captureEvents){window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP)}}O=document.body.style.MozUserSelect;document.body.style.MozUserSelect="none";if(E(J.ondragstart)){J.ondragstart(K,J)}return{stop:L,dispose:L,update:I}};function I(P){baidu.extend(J,P)}function L(){clearTimeout(C);if(J.capture&&K.releaseCapture){K.releaseCapture()}else{if(J.capture&&window.releaseEvents){window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP)}}document.body.style.MozUserSelect=O;baidu.event.un(document.body,"selectstart",H);J.autoStop&&baidu.event.un(document,"mouseup",L);if(E(J.ondragend)){J.ondragend(K,J)}}function B(T){var P=J.range,S=baidu.page.getMousePosition(),Q=G+S.x-F,R=N+S.y-D;if(typeof P=="object"&&P&&P.length==4){Q=Math.max(P[3],Q);Q=Math.min(P[1]-K.offsetWidth,Q);R=Math.max(P[0],R);R=Math.min(P[2]-K.offsetHeight,R)}K.style.top=R+"px";K.style.left=Q+"px";if((A!==Q||M!==R)&&(A!==null||M!==null)){if(E(J.ondrag)){J.ondrag(K,J)}}A=Q;M=R}function H(P){return baidu.event.preventDefault(P,false)}})();baidu.dom.draggable=function(B,J){J=baidu.object.extend({toggle:function(){return true}},J||{});J.autoStop=true;B=baidu.dom.g(B);J.handler=J.handler||B;var A,H=["ondragstart","ondrag","ondragend"],C=H.length-1,D,I,F={dispose:function(){I&&I.dispose();baidu.event.un(J.handler,"onmousedown",G);baidu.lang.Class.prototype.dispose.call(F)}},E=this;if(A=baidu.dom.ddManager){for(;C>=0;C--){D=H[C];J[D]=(function(K){var L=J[K];return function(){baidu.lang.isFunction(L)&&L.apply(E,arguments);A.dispatchEvent(K,{DOM:B})}})(D)}}if(B&&baidu.dom.getStyle(B,"position")!="static"){function G(K){J.mouseEvent=window.event||K;if(typeof J.toggle=="function"&&!J.toggle()){return }I=baidu.dom.drag(B,J);F.stop=I.stop;F.update=I.update}baidu.event.on(J.handler,"onmousedown",G)}return{cancel:function(){F.dispose()}}};(function(){var O=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,I=0,D=Object.prototype.toString,N=false,H=true;[0,0].sort(function(){H=false;return 0});var B=function(V,Q,Y,Z){Y=Y||[];Q=Q||document;var b=Q;if(Q.nodeType!==1&&Q.nodeType!==9){return[]}if(!V||typeof V!=="string"){return Y}var W=[],S,d,h,R,U=true,T=B.isXML(Q),a=V,c,g,f,X;do{O.exec("");S=O.exec(a);if(S){a=S[3];W.push(S[1]);if(S[2]){R=S[3];break}}}while(S);if(W.length>1&&J.exec(V)){if(W.length===2&&E.relative[W[0]]){d=G(W[0]+W[1],Q)}else{d=E.relative[W[0]]?[Q]:B(W.shift(),Q);while(W.length){V=W.shift();if(E.relative[V]){V+=W.shift()}d=G(V,d)}}}else{if(!Z&&W.length>1&&Q.nodeType===9&&!T&&E.match.ID.test(W[0])&&!E.match.ID.test(W[W.length-1])){c=B.find(W.shift(),Q,T);Q=c.expr?B.filter(c.expr,c.set)[0]:c.set[0]}if(Q){c=Z?{expr:W.pop(),set:A(Z)}:B.find(W.pop(),W.length===1&&(W[0]==="~"||W[0]==="+")&&Q.parentNode?Q.parentNode:Q,T);d=c.expr?B.filter(c.expr,c.set):c.set;if(W.length>0){h=A(d)}else{U=false}while(W.length){g=W.pop();f=g;if(!E.relative[g]){g=""}else{f=W.pop()}if(f==null){f=Q}E.relative[g](h,f,T)}}else{h=W=[]}}if(!h){h=d}if(!h){B.error(g||V)}if(D.call(h)==="[object Array]"){if(!U){Y.push.apply(Y,h)}else{if(Q&&Q.nodeType===1){for(X=0;h[X]!=null;X++){if(h[X]&&(h[X]===true||h[X].nodeType===1&&B.contains(Q,h[X]))){Y.push(d[X])}}}else{for(X=0;h[X]!=null;X++){if(h[X]&&h[X].nodeType===1){Y.push(d[X])}}}}}else{A(h,Y)}if(R){B(R,b,Y,Z);B.uniqueSort(Y)}return Y};B.uniqueSort=function(R){if(C){N=H;R.sort(C);if(N){for(var Q=1;Q<R.length;Q++){if(R[Q]===R[Q-1]){R.splice(Q--,1)}}}}return R};B.matches=function(Q,R){return B(Q,null,null,R)};B.find=function(X,Q,Y){var W;if(!X){return[]}for(var T=0,S=E.order.length;T<S;T++){var V=E.order[T],U;if((U=E.leftMatch[V].exec(X))){var R=U[1];U.splice(1,1);if(R.substr(R.length-1)!=="\\"){U[1]=(U[1]||"").replace(/\\/g,"");W=E.find[V](U,Q,Y);if(W!=null){X=X.replace(E.match[V],"");break}}}}if(!W){W=Q.getElementsByTagName("*")}return{set:W,expr:X}};B.filter=function(b,a,f,U){var S=b,h=[],Y=a,W,Q,X=a&&a[0]&&B.isXML(a[0]);while(b&&a.length){for(var Z in E.filter){if((W=E.leftMatch[Z].exec(b))!=null&&W[2]){var R=E.filter[Z],g,d,T=W[1];Q=false;W.splice(1,1);if(T.substr(T.length-1)==="\\"){continue}if(Y===h){h=[]}if(E.preFilter[Z]){W=E.preFilter[Z](W,Y,f,h,U,X);if(!W){Q=g=true}else{if(W===true){continue}}}if(W){for(var V=0;(d=Y[V])!=null;V++){if(d){g=R(d,W,V,Y);var c=U^!!g;if(f&&g!=null){if(c){Q=true}else{Y[V]=false}}else{if(c){h.push(d);Q=true}}}}}if(g!==undefined){if(!f){Y=h}b=b.replace(E.match[Z],"");if(!Q){return[]}break}}}if(b===S){if(Q==null){B.error(b)}else{break}}S=b}return Y};B.error=function(Q){throw"Syntax error, unrecognized expression: "+Q};var E=B.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Q){return Q.getAttribute("href")}},relative:{"+":function(W,R){var T=typeof R==="string",V=T&&!/\W/.test(R),X=T&&!V;if(V){R=R.toLowerCase()}for(var S=0,Q=W.length,U;S<Q;S++){if((U=W[S])){while((U=U.previousSibling)&&U.nodeType!==1){}W[S]=X||U&&U.nodeName.toLowerCase()===R?U||false:U===R}}if(X){B.filter(R,W,true)}},">":function(W,R){var U=typeof R==="string",V,S=0,Q=W.length;if(U&&!/\W/.test(R)){R=R.toLowerCase();for(;S<Q;S++){V=W[S];if(V){var T=V.parentNode;W[S]=T.nodeName.toLowerCase()===R?T:false}}}else{for(;S<Q;S++){V=W[S];if(V){W[S]=U?V.parentNode:V.parentNode===R}}if(U){B.filter(R,W,true)}}},"":function(T,R,V){var S=I++,Q=P,U;if(typeof R==="string"&&!/\W/.test(R)){R=R.toLowerCase();U=R;Q=M}Q("parentNode",R,S,T,U,V)},"~":function(T,R,V){var S=I++,Q=P,U;if(typeof R==="string"&&!/\W/.test(R)){R=R.toLowerCase();U=R;Q=M}Q("previousSibling",R,S,T,U,V)}},find:{ID:function(R,S,T){if(typeof S.getElementById!=="undefined"&&!T){var Q=S.getElementById(R[1]);return Q?[Q]:[]}},NAME:function(S,V){if(typeof V.getElementsByName!=="undefined"){var R=[],U=V.getElementsByName(S[1]);for(var T=0,Q=U.length;T<Q;T++){if(U[T].getAttribute("name")===S[1]){R.push(U[T])}}return R.length===0?null:R}},TAG:function(Q,R){return R.getElementsByTagName(Q[1])}},preFilter:{CLASS:function(T,R,S,Q,W,X){T=" "+T[1].replace(/\\/g,"")+" ";if(X){return T}for(var U=0,V;(V=R[U])!=null;U++){if(V){if(W^(V.className&&(" "+V.className+" ").replace(/[\t\n]/g," ").indexOf(T)>=0)){if(!S){Q.push(V)}}else{if(S){R[U]=false}}}}return false},ID:function(Q){return Q[1].replace(/\\/g,"")},TAG:function(R,Q){return R[1].toLowerCase()},CHILD:function(Q){if(Q[1]==="nth"){var R=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Q[2]==="even"&&"2n"||Q[2]==="odd"&&"2n+1"||!/\D/.test(Q[2])&&"0n+"+Q[2]||Q[2]);Q[2]=(R[1]+(R[2]||1))-0;Q[3]=R[3]-0}Q[0]=I++;return Q},ATTR:function(U,R,S,Q,V,W){var T=U[1].replace(/\\/g,"");if(!W&&E.attrMap[T]){U[1]=E.attrMap[T]}if(U[2]==="~="){U[4]=" "+U[4]+" "}return U},PSEUDO:function(U,R,S,Q,V){if(U[1]==="not"){if((O.exec(U[3])||"").length>1||/^\w/.test(U[3])){U[3]=B(U[3],null,null,R)}else{var T=B.filter(U[3],R,S,true^V);if(!S){Q.push.apply(Q,T)}return false}}else{if(E.match.POS.test(U[0])||E.match.CHILD.test(U[0])){return true}}return U},POS:function(Q){Q.unshift(true);return Q}},filters:{enabled:function(Q){return Q.disabled===false&&Q.type!=="hidden"},disabled:function(Q){return Q.disabled===true},checked:function(Q){return Q.checked===true},selected:function(Q){Q.parentNode.selectedIndex;return Q.selected===true},parent:function(Q){return !!Q.firstChild},empty:function(Q){return !Q.firstChild},has:function(S,R,Q){return !!B(Q[3],S).length},header:function(Q){return(/h\d/i).test(Q.nodeName)},text:function(Q){return"text"===Q.type},radio:function(Q){return"radio"===Q.type},checkbox:function(Q){return"checkbox"===Q.type},file:function(Q){return"file"===Q.type},password:function(Q){return"password"===Q.type},submit:function(Q){return"submit"===Q.type},image:function(Q){return"image"===Q.type},reset:function(Q){return"reset"===Q.type},button:function(Q){return"button"===Q.type||Q.nodeName.toLowerCase()==="button"},input:function(Q){return(/input|select|textarea|button/i).test(Q.nodeName)}},setFilters:{first:function(R,Q){return Q===0},last:function(S,R,Q,T){return R===T.length-1},even:function(R,Q){return Q%2===0},odd:function(R,Q){return Q%2===1},lt:function(S,R,Q){return R<Q[3]-0},gt:function(S,R,Q){return R>Q[3]-0},nth:function(S,R,Q){return Q[3]-0===R},eq:function(S,R,Q){return Q[3]-0===R}},filter:{PSEUDO:function(S,X,W,Y){var Q=X[1],R=E.filters[Q];if(R){return R(S,W,X,Y)}else{if(Q==="contains"){return(S.textContent||S.innerText||B.getText([S])||"").indexOf(X[3])>=0}else{if(Q==="not"){var T=X[3];for(var V=0,U=T.length;V<U;V++){if(T[V]===S){return false}}return true}else{B.error("Syntax error, unrecognized expression: "+Q)}}}},CHILD:function(Q,T){var W=T[1],R=Q;switch(W){case"only":case"first":while((R=R.previousSibling)){if(R.nodeType===1){return false}}if(W==="first"){return true}R=Q;case"last":while((R=R.nextSibling)){if(R.nodeType===1){return false}}return true;case"nth":var S=T[2],Z=T[3];if(S===1&&Z===0){return true}var V=T[0],Y=Q.parentNode;if(Y&&(Y.sizcache!==V||!Q.nodeIndex)){var U=0;for(R=Y.firstChild;R;R=R.nextSibling){if(R.nodeType===1){R.nodeIndex=++U}}Y.sizcache=V}var X=Q.nodeIndex-Z;if(S===0){return X===0}else{return(X%S===0&&X/S>=0)}}},ID:function(R,Q){return R.nodeType===1&&R.getAttribute("id")===Q},TAG:function(R,Q){return(Q==="*"&&R.nodeType===1)||R.nodeName.toLowerCase()===Q},CLASS:function(R,Q){return(" "+(R.className||R.getAttribute("class"))+" ").indexOf(Q)>-1},ATTR:function(V,T){var S=T[1],Q=E.attrHandle[S]?E.attrHandle[S](V):V[S]!=null?V[S]:V.getAttribute(S),W=Q+"",U=T[2],R=T[4];return Q==null?U==="!=":U==="="?W===R:U==="*="?W.indexOf(R)>=0:U==="~="?(" "+W+" ").indexOf(R)>=0:!R?W&&Q!==false:U==="!="?W!==R:U==="^="?W.indexOf(R)===0:U==="$="?W.substr(W.length-R.length)===R:U==="|="?W===R||W.substr(0,R.length+1)===R+"-":false},POS:function(U,R,S,V){var Q=R[2],T=E.setFilters[Q];if(T){return T(U,S,R,V)}}}};var J=E.match.POS,F=function(R,Q){return"\\"+(Q-0+1)};for(var L in E.match){E.match[L]=new RegExp(E.match[L].source+(/(?![^\[]*\])(?![^\(]*\))/.source));E.leftMatch[L]=new RegExp(/(^(?:.|\r|\n)*?)/.source+E.match[L].source.replace(/\\(\d+)/g,F))}var A=function(R,Q){R=Array.prototype.slice.call(R,0);if(Q){Q.push.apply(Q,R);return Q}return R};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(K){A=function(U,T){var R=T||[],S=0;if(D.call(U)==="[object Array]"){Array.prototype.push.apply(R,U)}else{if(typeof U.length==="number"){for(var Q=U.length;S<Q;S++){R.push(U[S])}}else{for(;U[S];S++){R.push(U[S])}}}return R}}var C;if(document.documentElement.compareDocumentPosition){C=function(R,Q){if(!R.compareDocumentPosition||!Q.compareDocumentPosition){if(R==Q){N=true}return R.compareDocumentPosition?-1:1}var S=R.compareDocumentPosition(Q)&4?-1:R===Q?0:1;if(S===0){N=true}return S}}else{if("sourceIndex" in document.documentElement){C=function(R,Q){if(!R.sourceIndex||!Q.sourceIndex){if(R==Q){N=true}return R.sourceIndex?-1:1}var S=R.sourceIndex-Q.sourceIndex;if(S===0){N=true}return S}}else{if(document.createRange){C=function(T,R){if(!T.ownerDocument||!R.ownerDocument){if(T==R){N=true}return T.ownerDocument?-1:1}var S=T.ownerDocument.createRange(),Q=R.ownerDocument.createRange();S.setStart(T,0);S.setEnd(T,0);Q.setStart(R,0);Q.setEnd(R,0);var U=S.compareBoundaryPoints(Range.START_TO_END,Q);if(U===0){N=true}return U}}}}B.getText=function(Q){var R="",T;for(var S=0;Q[S];S++){T=Q[S];if(T.nodeType===3||T.nodeType===4){R+=T.nodeValue}else{if(T.nodeType!==8){R+=B.getText(T.childNodes)}}}return R};(function(){var R=document.createElement("div"),S="script"+(new Date()).getTime();R.innerHTML="<a name='"+S+"'/>";var Q=document.documentElement;Q.insertBefore(R,Q.firstChild);if(document.getElementById(S)){E.find.ID=function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?T.id===U[1]||typeof T.getAttributeNode!=="undefined"&&T.getAttributeNode("id").nodeValue===U[1]?[T]:undefined:[]}};E.filter.ID=function(V,T){var U=typeof V.getAttributeNode!=="undefined"&&V.getAttributeNode("id");return V.nodeType===1&&U&&U.nodeValue===T}}Q.removeChild(R);Q=R=null})();(function(){var Q=document.createElement("div");Q.appendChild(document.createComment(""));if(Q.getElementsByTagName("*").length>0){E.find.TAG=function(R,V){var U=V.getElementsByTagName(R[1]);if(R[1]==="*"){var T=[];for(var S=0;U[S];S++){if(U[S].nodeType===1){T.push(U[S])}}U=T}return U}}Q.innerHTML="<a href='#'></a>";if(Q.firstChild&&typeof Q.firstChild.getAttribute!=="undefined"&&Q.firstChild.getAttribute("href")!=="#"){E.attrHandle.href=function(R){return R.getAttribute("href",2)}}Q=null})();if(document.querySelectorAll){(function(){var Q=B,S=document.createElement("div");S.innerHTML="<p class='TEST'></p>";if(S.querySelectorAll&&S.querySelectorAll(".TEST").length===0){return }B=function(W,V,T,U){V=V||document;if(!U&&V.nodeType===9&&!B.isXML(V)){try{return A(V.querySelectorAll(W),T)}catch(X){}}return Q(W,V,T,U)};for(var R in Q){B[R]=Q[R]}S=null})()}(function(){var Q=document.createElement("div");Q.innerHTML="<div class='test e'></div><div class='test'></div>";if(!Q.getElementsByClassName||Q.getElementsByClassName("e").length===0){return }Q.lastChild.className="e";if(Q.getElementsByClassName("e").length===1){return }E.order.splice(1,0,"CLASS");E.find.CLASS=function(R,S,T){if(typeof S.getElementsByClassName!=="undefined"&&!T){return S.getElementsByClassName(R[1])}};Q=null})();function M(R,W,V,Z,X,Y){for(var T=0,S=Z.length;T<S;T++){var Q=Z[T];if(Q){Q=Q[R];var U=false;while(Q){if(Q.sizcache===V){U=Z[Q.sizset];break}if(Q.nodeType===1&&!Y){Q.sizcache=V;Q.sizset=T}if(Q.nodeName.toLowerCase()===W){U=Q;break}Q=Q[R]}Z[T]=U}}}function P(R,W,V,Z,X,Y){for(var T=0,S=Z.length;T<S;T++){var Q=Z[T];if(Q){Q=Q[R];var U=false;while(Q){if(Q.sizcache===V){U=Z[Q.sizset];break}if(Q.nodeType===1){if(!Y){Q.sizcache=V;Q.sizset=T}if(typeof W!=="string"){if(Q===W){U=true;break}}else{if(B.filter(W,[Q]).length>0){U=Q;break}}}Q=Q[R]}Z[T]=U}}}B.contains=document.compareDocumentPosition?function(R,Q){return !!(R.compareDocumentPosition(Q)&16)}:function(R,Q){return R!==Q&&(R.contains?R.contains(Q):true)};B.isXML=function(Q){var R=(Q?Q.ownerDocument||Q:0).documentElement;return R?R.nodeName!=="HTML":false};var G=function(Q,X){var T=[],U="",V,S=X.nodeType?[X]:X;while((V=E.match.PSEUDO.exec(Q))){U+=V[0];Q=Q.replace(E.match.PSEUDO,"")}Q=E.relative[Q]?Q+"*":Q;for(var W=0,R=S.length;W<R;W++){B(Q,S[W],T)}return B.filter(U,T)};baidu.dom.query=B})();baidu.page.createStyleSheet=function(A){var F=A||{},D=F.document||document,C;if(baidu.browser.ie){if(!F.url){F.url=""}return D.createStyleSheet(F.url,F.index)}else{C="<style type='text/css'></style>";F.url&&(C="<link type='text/css' rel='stylesheet' href='"+F.url+"'/>");baidu.dom.insertHTML(D.getElementsByTagName("HEAD")[0],"beforeEnd",C);if(F.url){return null}var B=D.styleSheets[D.styleSheets.length-1],E=B.rules||B.cssRules;return{self:B,rules:B.rules||B.cssRules,addRule:function(G,I,H){if(B.addRule){return B.addRule(G,I,H)}else{if(B.insertRule){isNaN(H)&&(H=E.length);return B.insertRule(G+"{"+I+"}",H)}}},removeRule:function(G){if(B.removeRule){B.removeRule(G)}else{if(B.deleteRule){isNaN(G)&&(G=0);B.deleteRule(G)}}}}}};baidu.dom.create=function(B,A){A=A||{};var C=document.createElement(B);return baidu.dom.setAttrs(C,A)};baidu.dom.empty=function(A){A=baidu.dom.g(A);while(A.firstChild){A.removeChild(A.firstChild)}return A};baidu.dom.getText=function(D){var B="",E,C=0,A;D=baidu._g(D);if(D.nodeType===3||D.nodeType===4){B+=D.nodeValue}else{if(D.nodeType!==8){E=D.childNodes;for(A=E.length;C<A;C++){B+=baidu.dom.getText(E[C])}}}return B};baidu.dom.hasAttr=function(C,B){C=baidu.g(C);var A=C.attributes.getNamedItem(B);return !!(A&&A.specified)};baidu.dom.toggleClass=function(A,B){if(baidu.dom.hasClass(A,B)){baidu.dom.removeClass(A,B)}else{baidu.dom.addClass(A,B)}};baidu.e=baidu.element=function(B){var A=baidu._g(B);if(!A&&baidu.dom.query){A=baidu.dom.query(B)}return new baidu.element.Element(A)};baidu.fn=baidu.fn||{};baidu.fn.methodize=function(B,A){return function(){return B.apply(this,[(A?this[A]:this)].concat([].slice.call(arguments)))}};baidu.fn.multize=function(C,A){var B=function(){var J=arguments[0],G=A?B:C,E=[],I=[].slice.call(arguments,0),F=0,D,H;if(J instanceof Array){for(D=J.length;F<D;F++){I[0]=J[F];H=G.apply(this,I);E.push(H)}return E}else{return C.apply(this,arguments)}};return B};baidu.element._wrapFunction=function(C,B){return baidu.fn.methodize(A(baidu.fn.multize(C),baidu.element.Element,B),"_dom");function A(E,F,D){D=D|0;return function(){var G=E.apply(this,arguments);if(D>0){return new F(arguments[D-1])}if(!D){return new F(G)}return G}}};baidu.element.Element=function(B){if(!baidu.element._init){baidu.element._initChain();baidu.element._init=true}var A=this;A._dom=[];if(baidu.lang.isArray(B)){baidu.each(B,function(D,C){A._dom[C]=D})}else{A._dom[0]=B}};baidu.element.Element.prototype={each:function(A){baidu.array.each(this._dom,function(B){A.call(this,(new baidu.element.Element(B)))})}};baidu.element._initChain=function(){var C=baidu.element.Element.prototype,A=baidu.element._wrapFunction;baidu.each(("draggable droppable resizable").split(" "),function(D){C[D]=A(baidu.dom[D],1)});baidu.each(("remove getText contains getAttr getPosition getStyle hasClass intersect hasAttr").split(" "),function(D){C[D]=C[D.replace(/^get[A-Z]/g,B)]=A(baidu.dom[D],-1)});baidu.each(("addClass empty hide show insertAfter insertBefore insertHTML removeClass setAttr setAttrs setStyle setStyles show toggleClass toggle children next first getAncestorByClass getAncestorBy getAncestorByTag getDocument getParent getWindow last next prev g q query removeStyle setOuter setOuterWidth setOuterHeight setPosition").split(" "),function(D){C[D]=C[D.replace(/^get[A-Z]/g,B)]=A(baidu.dom[D],0)});baidu.each(("on un").split(" "),function(D){C[D]=A(baidu.event[D],0)});baidu.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error").split(" "),function(D){C[D]=function(E){return this.on(D,E)}});function B(D){return D.charAt(3).toLowerCase()}};baidu.lang.Class.prototype.addEventListeners=function(C,D){if(typeof D=="undefined"){for(var B in C){this.addEventListener(B,C[B])}}else{C=C.split(",");var B=0,A=C.length,E;for(;B<A;B++){this.addEventListener(baidu.trim(C[B]),D)}}};baidu.array.hash=function(E,B){var F={},D=B&&B.length,C=0,A=E.length;for(;C<A;C++){F[E[C]]=(D&&D>C)?B[C]:true}return F};baidu.dom.ddManager=baidu.lang.createSingle({_targetsDroppingOver:{}});baidu.dom.droppable=function(D,B){B=B||{};var C=baidu.dom.ddManager,F=baidu.dom.g(D),E=function(H){var G=C._targetsDroppingOver;if(baidu.dom.intersect(F,H.DOM)){if(!G[F]){(typeof B.ondropover=="function")&&B.ondropover.call(F,H.DOM);C.dispatchEvent("ondropover",{trigger:H.DOM,reciever:F});G[F]=true}}else{if(G[F]){(typeof B.ondropout=="function")&&B.ondropout.call(F,H.DOM);C.dispatchEvent("ondropout",{trigger:H.DOM,reciever:F})}delete G[F]}},A=function(G){if(baidu.dom.intersect(F,G.DOM)){typeof B.ondrop=="function"&&B.ondrop.call(F,G.DOM);C.dispatchEvent("ondrop",{trigger:G.DOM,reciever:F})}delete C._targetsDroppingOver[F]};C.addEventListener("ondrag",E);C.addEventListener("ondragend",A);return{cancel:function(){C.removeEventListener("ondrag",E);C.removeEventListener("ondragend",A)}}};baidu.dom.removeStyle=function(){var B=document.createElement("DIV"),A,C=baidu.dom._g;if(B.style.removeProperty){A=function(E,D){E=C(E);E.style.removeProperty(D);return E}}else{if(B.style.removeAttribute){A=function(E,D){E=C(E);E.style.removeAttribute(baidu.string.toCamelCase(D));return E}}}B=null;return A}();baidu.dom.resizable=function(E,P){var I,J,G,A,M={},B,O,N,F={},D,H={Width:{offset:"offsetWidth",style:["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"]},Height:{offset:"offsetHeight",style:["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"]}},K=baidu.dom.getStyle;if(!(I=baidu.dom.g(E))){return false}G=baidu.object.extend({handle:["e","s","se"],minWidth:16,minHeight:16,resizeContainer:true,classPrefix:"tangram"},P);if(!(G.container&&(J=baidu.dom.g(G.container)))){J=I;G.resizeContainer=false}D=[[I,"Width","","offsetWidth"],[I,"Height","","offsetHeight"],[J,"Width","c","offsetWidth"],[J,"Height","c","offsetHeight"]];if(K(I,"position")=="static"&&K(J,"position")=="static"){return }baidu.each(["minheight","minwidth","maxheight","maxwidth"],function(Q){G[Q]&&(G[Q]=parseInt(G[Q]))});B={e:{right:"-5px",top:"0px",width:"7px",height:"100%"},s:{left:"0px",bottom:"-5px",height:"7px",width:"100%"},se:{right:"1px",bottom:"1px",height:"16px",width:"16px"}};baidu.each(G.handle,function(T){var R=G.classPrefix.split(" ");R[0]=R[0]+"-resizable-"+T;var U=baidu.dom.create("div",{className:R.join(" ")}),S=B[T],Q;S.cursor=T+"-resize";S.position="absolute";baidu.setStyles(U,S);J.appendChild(U);M[T]=U;baidu.on(U,"mousedown",function(){N=C(T);Q={e:[0,G.maxWidth?G.maxWidth:Number.POSITIVE_INFINITY,F.orgcHeight.offset,G.minWidth],s:[G.minHeight,F.orgcWidth.offset,G.maxHeight?G.maxHeight:Number.POSITIVE_INFINITY,0],se:[G.minHeight,G.maxWidth?G.maxWidth:Number.POSITIVE_INFINITY,G.maxHeight?G.maxHeight:Number.POSITIVE_INFINITY,G.minWidth]};baidu.dom.drag(U,{ondragstart:function(){baidu.object.each(F,function(X,V){if(isNaN(X.v)){var W=X.target[H[X.direction].offset];baidu.each(H[X.direction].style,function(Y){W-=(parseFloat(K(X.target,Y))||0)});F[V].value=W}});typeof (G.onresizestart)==="function"&&G.onresizestart(arguments)},ondrag:function(){var V={width:parseInt(U.style.left)-N.left,height:parseInt(U.style.top)-N.top};baidu.setStyles(I,{width:V.width+F.orgWidth.value,height:V.height+F.orgHeight.value});if(G.resizeContainer){baidu.setStyles(J,{width:V.width+F.orgcWidth.value,height:V.height+F.orgcHeight.value})}M.e&&baidu.setStyle(M.e,"height",J.offsetHeight);typeof (G.onresize)==="function"&&G.onresize(arguments)},ondragend:function(){L();baidu.object.each(M,function(W,V){baidu.each(["top","left","right","bottom"],function(X){baidu.setStyle(W,X,"")});baidu.setStyles(W,B[V])});M.e&&baidu.setStyle(M.e,"height",J.offsetHeight);typeof (G.onresizeend)==="function"&&G.onresizeend(arguments)},range:Q[T]})})});function C(R){var S={right:"",bottom:""},T=M[R],Q=B[R];L();S.top=parseInt(Q.top);S.left=parseInt(Q.left);if(R.indexOf("e")>=0){S.left=F.orgcWidth.value-parseInt(Q.width)-parseInt(Q.right)+(parseFloat(K(J,"paddingLeft"))||0)+(parseFloat(K(J,"paddingRight"))||0)}if(R.indexOf("s")>=0){S.top=F.orgcHeight.value-parseInt(Q.height)-parseInt(Q.bottom)+(parseFloat(K(J,"paddingTop"))||0)+(parseFloat(K(J,"paddingBottom"))||0)}baidu.setStyles(T,S);return S}function L(){function Q(S,T){T=T.toLowerCase();var R=K(S,T);if(R=="auto"||R.indexOf("%")>0){return R}return parseFloat(K(S,T))||0}baidu.each(D,function(R){F["org"+R[2]+R[1]]={value:Q(R[0],R[1]),direction:R[1],target:R[0],offset:R[0][R[3]]}})}};baidu.fn.bind=function(B,A){var C=arguments.length>2?[].slice.call(arguments,2):null;return function(){var E=baidu.lang.isString(B)?A[B]:B,D=(C)?C.concat([].slice.call(arguments,0)):arguments;return E.apply(A||E,D)}};baidu.lang.isBoolean=function(A){return typeof A==="boolean"};baidu.lang.isDate=function(A){return{}.toString.call(A)==="[object Date]"&&A.toString()!=="Invalid Date"&&!isNaN(A)};baidu.event._eventFilter=baidu.event._eventFilter||{};baidu.event._eventFilter._crossElementBoundary=function(A,D){var C=D.relatedTarget,B=D.currentTarget;if(typeof C=="undefined"){return A.call(B,D)}if(C===false||B==C||C.prefix=="xul"||baidu.dom.contains(B,C)){return }return A.call(B,D)};baidu.event._eventFilter.mouseenter=window.attachEvent?null:function(A,B,C){return{type:"mouseover",listener:baidu.fn.bind(baidu.event._eventFilter._crossElementBoundary,this,C)}};baidu.event._eventFilter.mouseleave=window.attachEvent?null:function(A,B,C){return{type:"mouseout",listener:baidu.fn.bind(baidu.event._eventFilter._crossElementBoundary,this,C)}};(function(){var D=baidu.browser,K={keydown:1,keyup:1,keypress:1},A={click:1,dblclick:1,mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1},H={abort:1,blur:1,change:1,error:1,focus:1,load:D.ie?0:1,reset:1,resize:1,scroll:1,select:1,submit:1,unload:D.ie?0:1},F={scroll:1,resize:1,reset:1,submit:1,change:1,select:1,error:1,abort:1},J={KeyEvents:["bubbles","cancelable","view","ctrlKey","altKey","shiftKey","metaKey","keyCode","charCode"],MouseEvents:["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget"],HTMLEvents:["bubbles","cancelable"],UIEvents:["bubbles","cancelable","view","detail"],Events:["bubbles","cancelable"]};baidu.object.extend(F,K);baidu.object.extend(F,A);function C(Q,O){var N=0,M=Q.length,P={};for(;N<M;N++){P[Q[N]]=O[Q[N]];delete O[Q[N]]}return P}function E(O,N,M){M=baidu.object.extend({},M);var P=baidu.object.values(C(J[N],M)),Q=document.createEvent(N);P.unshift(O);if("KeyEvents"==N){Q.initKeyEvent.apply(Q,P)}else{if("MouseEvents"==N){Q.initMouseEvent.apply(Q,P)}else{if("UIEvents"==N){Q.initUIEvent.apply(Q,P)}else{Q.initEvent.apply(Q,P)}}}baidu.object.extend(Q,M);return Q}function B(M){var N;if(document.createEventObject){N=document.createEventObject();baidu.object.extend(N,M)}return N}function G(P,M){M=C(J.KeyEvents,M);var Q;if(document.createEvent){try{Q=E(P,"KeyEvents",M)}catch(O){try{Q=E(P,"Events",M)}catch(N){Q=E(P,"UIEvents",M)}}}else{M.keyCode=M.charCode>0?M.charCode:M.keyCode;Q=B(M)}return Q}function L(N,M){M=C(J.MouseEvents,M);var O;if(document.createEvent){O=E(N,"MouseEvents",M);if(M.relatedTarget&&!O.relatedTarget){if("mouseout"==N.toLowerCase()){O.toElement=M.relatedTarget}else{if("mouseover"==N.toLowerCase()){O.fromElement=M.relatedTarget}}}}else{M.button=M.button==0?1:M.button==1?4:baidu.lang.isNumber(M.button)?M.button:0;O=B(M)}return O}function I(O,M){M.bubbles=F.hasOwnProperty(O);M=C(J.HTMLEvents,M);var Q;if(document.createEvent){try{Q=E(O,"HTMLEvents",M)}catch(P){try{Q=E(O,"UIEvents",M)}catch(N){Q=E(O,"Events",M)}}}else{Q=B(M)}return Q}baidu.event.fire=function(N,O,M){var P;O=O.replace(/^on/i,"");N=baidu.dom._g(N);M=baidu.object.extend({bubbles:true,cancelable:true,view:window,detail:1,screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false,keyCode:0,charCode:0,button:0,relatedTarget:null},M);if(K[O]){P=G(O,M)}else{if(A[O]){P=L(O,M)}else{if(H[O]){P=I(O,M)}else{throw (new Error(O+" is not support!"))}}}if(P){if(N.dispatchEvent){N.dispatchEvent(P)}else{if(N.fireEvent){N.fireEvent("on"+O,P)}}}}})();baidu.event.once=function(A,B,C){A=baidu.dom._g(A);function D(E){C.call(A,E);baidu.event.un(A,B,D)}baidu.event.on(A,B,D);return A};(function(){var C=/^\#[\da-f]{6}$/i,B=/^rgb\((\d+), (\d+), (\d+)\)$/,A={black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff0",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff"};baidu.string.formatColor=function(E){if(C.test(E)){return E}else{if(B.test(E)){for(var I,H=1,E="#";H<4;H++){I=parseInt(RegExp["\x24"+H]).toString(16);E+=("00"+I).substr(I.length)}return E}else{if(/^\#[\da-f]{3}$/.test(E)){var G=E.charAt(1),F=E.charAt(2),D=E.charAt(3);return"#"+G+G+F+F+D+D}else{if(A[E]){return A[E]}}}}return""}})();baidu.array.map=function(E,D){var C=[],B=0,A=E.length;for(;B<A;B++){C[B]=D(E[B],B)}return C};baidu.dom.getParent=function(A){A=baidu.dom._g(A);return A.parentElement||A.parentNode||null};baidu.dom.setOuter=function(A,B){function C(D){return parseFloat(baidu.getStyle(A,D))||0}if(baidu.browser.isStrict){if(B.width){B.width-=C("paddingLeft")+C("paddingRight")+C("borderLeftWidth")+C("borderRightWidth")}if(B.height){B.height-=C("paddingTop")+C("paddingBottom")+C("borderTopWidth")+C("borderBottomWidth")}}return baidu.dom.setStyles(A,B)};baidu.dom.setOuterHeight=function(B,A){return baidu.dom.setOuter(B,{height:A})};baidu.dom.setOuterWidth=function(A,B){return baidu.dom.setOuter(A,{width:B})};baidu.dom.setPosition=function(B,A){return baidu.dom.setStyles(B,{left:A.left-parseFloat(baidu.dom.getStyle(B,"margin-left"))||0,top:A.top-parseFloat(baidu.dom.getStyle(B,"margin-top"))||0})};baidu.element.extend=function(A){var B=baidu.element;baidu.object.each(A,function(D,C){B.Element.prototype[C]=B._wrapFunction(D,-1)})};baidu.number.randomInt=function(B,A){return Math.floor(Math.random()*(A-B+1)+B)};baidu.object.map=function(D,C){var B={};for(var A in D){if(D.hasOwnProperty(A)){B[A]=C(D[A],A)}}return B};
