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