(function(){if(window.NTES)return;var Q,A=window.NTES=window.$=function($,B){if(null==$||$.$)return $;var C;if("string"===typeof $){B=B||(this.alert?document:this);C=T.query($,B)}else C=$;if(C&&!C.$)if(C.nodeType){if("unknown"!==typeof C.getAttribute)C=D(C,A.element)}else C=D(_(C),A.element);return C};A.version="1.1.1 Build 090918";var T={SPACE:/\s*([\s>~+,])\s*/g,ISSIMPLE:/^#?([\w\u00c0-\uFFFF_-]+)$/,IMPLIEDALL:/([>\s~\+,]|^)([#\.\[:])/g,ATTRVALUES:/=(["'])([^'"]*)\1]/g,ATTR:/\[\s*([\w\u00c0-\uFFFF_-]+)\s*(?:(\S?\=)\s*(.*?))?\s*\]/g,BEGINIDAPART:/^(?:\*#([\w\u00c0-\uFFFF_-]+))/,STANDARD:/^[>\s~\+:]/,STREAM:/[#\.>\s\[\]:~\+]+|[^#\.>\s\[\]:~\+]+/g,ISINT:/^\d+$/,tempAttrValues:[],tempAttrs:[],idName:"uniqueidforntes",id:0,query:function($,J){var A,H,F,C,B,K,L,G,I,M,D=this;$=$.trim();if(""===$)return;if(D.ISSIMPLE.test($))if(0===$.indexOf("#")&&typeof J.getElementById!=="undefined")return D.getElemById(J,$.substr(1));else if(typeof J.getElementsByTagName!=="undefined")return _(J.getElementsByTagName($));if(!S(J))J=J.nodeType?[J]:_(J);H=$.replace(D.SPACE,"$1").replace(D.ATTRVALUES,D.analyzeAttrValues).replace(D.ATTR,D.analyzeAttrs).replace(D.IMPLIEDALL,"$1*$2").split(",");F=H.length;C=-1;A=[];while(++C<F){K=J;$=H[C];if(D.BEGINIDAPART.test($))if(typeof J[0].getElementById!=="undefined"){K=[D.getElemById(J[0],RegExp.$1)];if(!K[0])continue;$=RegExp.rightContext}else $=H[C];if($!==""){if(!D.STANDARD.test($))$=" "+$;L=$.match(D.STREAM)||[];G=L.length;B=0;while(B<G){I=L[B++];M=L[B++];K=D.operators[I]?D.operators[I](K,M):[];if(0===K.length)break}}E(A,K)}D.tempAttrValues.length=D.tempAttrs.length=0;return A.length>1?D.unique(A):A},analyzeAttrs:function(_,B,A,$){return"[]"+(T.tempAttrs.push([B,A,$])-1)},analyzeAttrValues:function($,A,_){return"="+(T.tempAttrValues.push(_)-1)+"]"},generateId:function(_){var B=this.idName,$;try{$=_[B]=_[B]||++this.id}catch(A){$=_.getAttribute(B);if(!$){$=++this.id;_.setAttribute(B,$)}}return $},unique:function(C){var A=[],D=0,B={},_,$;while(_=C[D++])if(1===_.nodeType){$=this.generateId(_);if(!B[$]){B[$]=true;A.push(_)}}return A},attrMap:{"class":"className","for":"htmlFor"},getAttribute:function($,A){var _=this.attrMap[A]||A,B=$[_];if("string"!==typeof B)if("undefined"!==typeof $.getAttributeNode){B=$.getAttributeNode(A);B=Q==B?B:B.value}else if($.attributes)B=String($.attributes[A]);return null==B?"":B},getElemById:function(A,$){var _=A.getElementById($);if(_&&_.id!==$&&A.all){_=A.all[$];if(_){for(var B=0;B<_.length;B++)if(this.getAttribute(_[B],"id")===$)return _[B];_=Q}}return _},getElemsByTagName:function(F,H,E,D,_){var A=[],I=-1,G=F.length,$,C,B;if(D!=="*")B=D.toUpperCase();while(++I<G){$=F[I][H];C=0;while($&&(!_||C<_)){if($.nodeName.toUpperCase()===B||(!B&&1===$.nodeType)){A.push($);C++}$=$[E]}}return A},getElemsByAttribute:function(B,D){var _=[],$,E=0,A=this.attrOperators[D[1]||""],C="~="===D[1]?" "+D[2]+" ":D[2];while($=B[E++])A(this.getAttribute($,D[0]),C)&&_.push($);return _},operators:{"#":function(_,$){return T.getElemsByAttribute(_,["id","=",$])}," ":function(A,_){var B=A.length;if(1===B)return A[0].getElementsByTagName(_);else{var $=[],C=-1;while(++C<B)E($,A[C].getElementsByTagName(_))}return $},".":function($,_){return T.getElemsByAttribute($,["class","~=",_])},">":function(_,$){return T.getElemsByTagName(_,"firstChild","nextSibling",$)},"[]":function($,_){_=T.tempAttrs[_];if(_){if(T.ISINT.test(_[2]))_[2]=T.tempAttrValues[_[2]];return T.getElemsByAttribute($,_)}else return $}},attrOperators:{"":function($){return $!==""},"=":function(_,$){return $===_},"~=":function(_,$){return(" "+_+" ").indexOf($)>=0},"!=":function(_,$){return $!==_}}};A.element={$:function($){return A($,this)},addCss:function($){return A.style.addCss(this,$)},removeCss:function($){return A.style.removeCss(this,$)},addEvent:function(_,B,$){return A.event.addEvent(this,_,B,$)},removeEvent:function($,_){return A.event.removeEvent(this,$,_)},attr:function(_,B){var $=this;if(B!==Q)return A.dom.eachNode($,function($,_){this[$]=A.util.isFunction(_)?_.call(this):_},arguments);else return S($)?($[0]?$[0][_]:Q):$[_]}};window.addEvent=document.addEvent=A.element.addEvent;window.removeEvent=document.removeEvent=A.element.removeEvent;var F={},R=Object.prototype.toString;A.util={isArray:function($){return R.call($)==="[object Array]"},isFunction:function($){return R.call($)==="[object Function]"},toArray:function($){if(S($))return $;else if($.toArray)return $.toArray();else{var _=[],A=$.length;while(A)_[--A]=$[A];return _}},merge:function(_,$){var B=$.length,A=_.length;while(--B>=0)_[A+B]=$[B];return _},parseTpl:function(B,$,A){var C=F[B];$=null==$?{}:$;if(!C){var _="var _=[];with(obj){_.push('"+B.replace(/[\r\t\n]/g," ").replace(/'(?=[^#]*#>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<#=(.+?)#>/g,"',$1,'").split("<#").join("');").split("#>").join("_.push('")+"');}return _.join('');";C=new Function("obj",_);if(null==A||true===A)F[B]=C}return C($)},extend:function($,A){for(var _ in A)$[_]=A[_];return $}};A.dom={eachNode:function(_,A,$){if(!_)return;if(_.nodeType||_.alert)A.apply(_,$);else{var C=-1,B=_.length;while(++C<B)A.apply(_[C],$)}return _}};var S=A.util.isArray,_=A.util.toArray,E=A.util.merge,D=A.util.extend,L=document.createElement("div"),O=/\-([a-z])/gi,H=L.style.styleFloat!==Q?"styleFloat":"cssFloat",$=/([^:;]+)/g,M=/[^\s]+/g,C=/\s*([:;\s])\s*/g,J=/([^:;]+?)(?=:)/g,I=/^float$/i;function P($,_){return _.toUpperCase()}function G($,_){return I.test(_)?H:_.replace(O,P)}A.style={parse:function(B){var A=B.indexOf(";")>=0,_=B.indexOf(":")>=0;if(A||_){B=B.trim().replace(C,"$1").replace(_?J:$,G).match($);if(_&&B.length%2!==0)throw"invalid inline style";B.styleType="style"}else{B=B.match(M);B.styleType="class"}return B},addCss:function($,_){_=A.style.parse(_);return A.dom.eachNode($,"class"===_.styleType?function($,A){var _=" "+this.className+" ";for(var B=0;B<A;B++)if(-1===_.indexOf(" "+$[B]+" "))_+=($[B]+" ");this.className=_.trim()}:function($,_){var A=0;while(A<_)this.style[$[A++]]=$[A++].replace(/^NULL$/i,"")},[_,_.length])},removeCss:function($,_){_=A.style.parse(_);return A.dom.eachNode($,"class"===_.styleType?function($,A){var _=" "+this.className+" ";for(var B=0;B<A;B++)_=_.replace(" "+$[B]+" "," ");this.className=_.trim()}:function($,_){for(var A=0;A<_;A++)if(this.style[$[A]]!==Q)this.style[$[A]]=""},[_,_.length])}};A.event={idName:"eventIdForNTES",eventsWrapper:"eventsForNTES",eventId:0,addEvent:function(B,_,C,$){return A.dom.eachNode(B,function(_,B){B=A.event.delegate(this,_,B,$);if(this.attachEvent)this.attachEvent("on"+_,B);else if(this.addEventListener)this.addEventListener(_,B,false)},[_,C])},removeEvent:function(_,$,B){return A.dom.eachNode(_,function($,_){_=A.event.getDelegate(this,$,_);if(this.detachEvent)this.detachEvent("on"+$,_);else if(this.removeEventListener)this.removeEventListener($,_,false)},[$,B])},delegate:function(_,E,G,D){var B=A.event,C=_[B.eventsWrapper]=_[B.eventsWrapper]||{},$=G[B.idName]=G[B.idName]||++B.eventId;C[E]=C[E]||{};var F=C[E][$];if(!F){F=function($){$=A.event.fix($);false===G.call(_,$,D||{})&&$.preventDefault()};C[E][$]=F}return F},getDelegate:function($,C,D){var B=A.event;try{return $[B.eventsWrapper][C][D[B.idName]]}catch(_){}return D},fix:function(_){_.preventDefault=_.preventDefault||function(){_.returnValue=false};if(Q===_.pageX&&Q!==_.clientX){var A=document.documentElement,$=document.body;_.pageX=_.clientX+(A.scrollLeft||$.scrollLeft||0)-(A.clientLeft||0);_.pageY=_.clientY+(A.scrollTop||$.scrollTop||0)-(A.clientTop||0)}return _}};var B=navigator.userAgent.toLowerCase();A.browser={version:(B.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(B),opera:/opera/.test(B),msie:/msie/.test(B)&&!/opera/.test(B),mozilla:/mozilla/.test(B)&&!/(compatible|webkit)/.test(B)};A.ajax={createXhr:function(){var _;try{_=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()}catch($){}if(!_)throw"failed to create an XMLHttpRequest object";return _},send:function(H,D,C,I,B){B=B||A.ajax.createXhr();var F;D=D.toUpperCase();D=D!=="GET"&&D!=="POST"?"GET":D;I=I||{};I.async="boolean"===typeof I.async?I.async:true;var _;if(C){_=[];for(var $ in C)if($!=null)_.push($+"="+encodeURIComponent(C[$]));_=_.join("&").replace(/%20/g,"+")}if(I.async&&!isNaN(I.timeout)&&I.timeout>0)setTimeout(function(){if(!F){B.abort();if(I.onTimeout)I.onTimeout(B)}},I.timeout);B.onreadystatechange=function(){if(4==B.readyState){F=true;var $=200==B.status?"onSuccess":"onError";I[$]&&I[$](B)}};if(_&&"GET"===D){H+=("?"+_);_=null}B.open(D,H,I.async,I.username,I.password);var E=[];if("POST"===D)E.push("application/x-www-form-urlencoded");if(I.headers)for(var G in I.headers)if("content-type"===G.toLowerCase())E.push(I.headers[G]);else B.setRequestHeader(G,I.headers[G]);if(E.length)B.setRequestHeader("Content-Type",E.join(";").replace(/;+/g,";").replace(/;$/,""));B.send(_);return B},importJs:function(B,$,_){var A=document.createElement("script");A.language="javascript";A.type="text/javascript";if(_)A.charset=_;A.onload=A.onreadystatechange=function(){var _=this;if(!_.readyState||"loaded"==_.readyState||"complete"==_.readyState){$&&$(_);_.parentNode.removeChild(_);_.onload=_.onreadystatechange=null}};A.src=B;document.getElementsByTagName("head")[0].appendChild(A)}};A.cookie={encoder:window.encodeURIComponent,decoder:window.decodeURIComponent,get:function(C,E){var _=A.cookie;C=_.encoder(C)+"=";var $=document.cookie,B=$.indexOf(C),D;if(-1===B)return E?Q:"";B+=C.length;D=$.indexOf(";",B);if(D===-1)D=$.length;return _.decoder($.substring(B,D))},set:function(C,G,_,F,E,D){var $=A.cookie,B=[$.encoder(C)+"="+$.encoder(G)];if(_){var H;if(!isNaN(_)){H=new Date();H.setTime(H.getTime()+_*60*1000)}else H=_;B.push("expires="+H.toUTCString())}E!=null&&E!==""&&B.push("path="+E);F&&B.push("domain="+F);D&&B.push("secure");document.cookie=B.join(";")},del:function($,B,_){document.cookie=A.cookie.encoder($)+"="+(_!=null&&_!==""?";path="+_:"")+(B?";domain="+B:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}};A.ui={};var N=function(_,$){return(_+1)%$};A.ui.Slide=function(_,C,F,E,B){if(!arguments.length)return;var $=this;$.total=C.length;if(_&&$.total!==_.length)throw"can not match ctrls("+_.length+") and contents("+$.total+")";$.constructor=arguments.callee;$._curIndex=-1;$._ctrls=_;$._contents=C;$._css=F;$._eventName=E;$.interval=B;$.playMode=N;if($._ctrls&&$._ctrls.length&&$._eventName){var D=function(_,$){this.show($);_.preventDefault()}.bind($);for(var G=$.total-1;G>=0;G--)A.event.addEvent($._ctrls[G],E,D,new Number(G))}$.interval&&$.play()};A.ui.Slide.prototype={show:function(_){var B=this;_=_<0?0:_>=B.total?B.total-1:_;var C=B._ctrls?B._ctrls[_]:null,$=B._contents[_];if(-1===B._curIndex)B._curIndex=0;A.style.removeCss(B._ctrls,B._css);A.style.removeCss(B._contents,B._css);A.style.addCss(C,B._css);A.style.addCss($,B._css);B.onShow&&B.onShow(_,C,$);B._curIndex=_},showNext:function(){this.show(this.playMode(this._curIndex,this.total))},play:function(B){var _=this;if(!isNaN(B))_.interval=parseInt(B);if(Q===_._timerId){if(!_._hasEvent){var $=_.pause.bind(_),C=_.play.bind(_);A.event.addEvent(_._ctrls,"mouseover",$);A.event.addEvent(_._ctrls,"mouseout",C);A.event.addEvent(_._contents,"mouseover",$);A.event.addEvent(_._contents,"mouseout",C);_._hasEvent=1}_._timerId=setInterval(_.showNext.bind(_),_.interval)}},pause:function(){var _=this;if(_._timerId!==Q){clearInterval(_._timerId);_._timerId=Q;if(_.onStop){var $=_._curIndex;_.onStop($,_._ctrls[$],_._contents[$])}}}};var K=/^\s+|\s+$/g;String.prototype.trim=function($){return this.replace(null==$?K:new RegExp("^"+$+"+|"+$+"+$","g"),"")};String.format=function($){var _=arguments,A=new RegExp("%([1-"+_.length+"])","g");return String($).replace(A,function($,A){return _[A]})};Array.prototype.indexOf=Array.prototype.indexOf||function($,_){var B=isNaN(_)||_<0?-1:_-1,A=this.length;while(++B<A)if(this[B]===$)return B;return-1};Function.prototype.bind=function(){if(!arguments.length)return this;var _=this,$=Array.prototype.slice.call(arguments),A=$.shift();return function(){return _.apply(A,$.concat(Array.prototype.slice.call(arguments)))}};L=null})()
