if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=A[C].split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.register=function(A,E,D){};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.ua=function(){var C={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0};return C;}();(function(){YAHOO.namespace("util","widget","example");})();YAHOO.lang=YAHOO.lang||{};(function(){var A=YAHOO.lang,C=["toString","valueOf"],B={isString:function(D){return typeof D==="string";},isUndefined:function(D){return typeof D==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(F,E){for(var D=0;D<C.length;D=D+1){var H=C[D],G=E[H];if(A.isFunction(G) && G !=Object.prototype[H]){F[H]=G;}}}:function(){},extend:function(H,I,G){if(!I||!H){throw new Error("extend failed,please check that "+"all dependencies are included.");}var E=function(){};E.prototype=I.prototype;H.prototype=new E();H.prototype.constructor=H;H.superclass=I.prototype;if(I.prototype.constructor==Object.prototype.constructor){I.prototype.constructor=I;}if(G){for(var D in G){if(A.hasOwnProperty(G,D)){H.prototype[D]=G[D];}}A._IEEnumFix(H.prototype,G);}},augmentObject:function(H,G){if(!G||!H){throw new Error("Absorb failed,verify dependencies.");}var D=arguments,F,I,E=D[2];if(E && E !==true){for(F=2;F<D.length;F=F+1){H[D[F]]=G[D[F]];}}else{for(I in G){if(E||!(I in H)){H[I]=G[I];}}A._IEEnumFix(H,G);}},augmentProto:function(G,F){if(!F||!G){throw new Error("Augment failed,verify dependencies.");}var D=[G.prototype,F.prototype];for(var E=2;E<arguments.length;E=E+1){D.push(arguments[E]);}A.augmentObject.apply(this,D);}};A.hasOwnProperty=(Object.prototype.hasOwnProperty)?function(D,E){return D && D.hasOwnProperty(E);}:function(D,E){return!A.isUndefined(D[E]) && D.constructor.prototype[E] !==D[E];};B.augmentObject(A,B,true);YAHOO.util.Lang=A;A.augment=A.augmentProto;YAHOO.augment=A.augmentProto;YAHOO.extend=A.extend;})();(function(){var B=YAHOO.util,F=YAHOO.lang,L,J,K={},G={},N=window.document;YAHOO.env._id_counter=YAHOO.env._id_counter||0;var C=YAHOO.env.ua.opera,M=YAHOO.env.ua.webkit,A=YAHOO.env.ua.gecko,H=YAHOO.env.ua.ie;YAHOO.util.Dom={get:function(S){if(S){if(S.nodeType||S.item){return S;}if(typeof S==="string"){return N.getElementById(S);}if("length"in S){var T=[];for(var R=0,Q=S.length;R<Q;++R){T[T.length]=B.Dom.get(S[R]);}return T;}return S;}return null;}};})();YAHOO.util.CustomEvent=function(D,B,C,A){this.type=D;this.scope=B||window;this.silent=C;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var E="_YUICEOnSubscribe";if(D !==E){this.subscribeEvent=new YAHOO.util.CustomEvent(E,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,A){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,A);}this.subscribers.push(new YAHOO.util.Subscriber(B,C,A));},fire:function(){this.lastError=null;var K=[],E=this.subscribers.length;if(!E && this.silent){return true;}var I=[].slice.call(arguments,0),G=true,D,J=false;if(!this.silent){}var C=this.subscribers.slice(),A=YAHOO.util.Event.throwErrors;for(D=0;D<E;++D){var M=C[D];if(!M){J=true;}else{if(!this.silent){}var L=M.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var B=null;if(I.length>0){B=I[0];}try{G=M.fn.call(L,B,M.obj);}catch(F){this.lastError=F;if(A){throw F;}}}else{try{G=M.fn.call(L,this.type,I,M.obj);}catch(H){this.lastError=H;if(A){throw H;}}}if(false===G){if(!this.silent){}break;}}}return(G !==false);},toString:function(){return "CustomEvent:"+"'"+this.type+"',"+"scope:"+this.scope;}};YAHOO.util.Subscriber=function(B,C,A){this.fn=B;this.obj=YAHOO.lang.isUndefined(C)?null:C;this.override=A;};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.override){if(this.override===true){return this.obj;}else{return this.override;}}return A;};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var H=false;var I=[];var J=[];var G=[];var E=[];var C=0;var F=[];var B=[];var A=0;var D={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};var K=YAHOO.env.ua.ie?"focusin":"focus";var L=YAHOO.env.ua.ie?"focusout":"blur";return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){var M=this;var N=function(){M._tryPreloadAttach();};this._interval=setInterval(N,this.POLL_INTERVAL);}},_addListener:function(O,M,X,S,N,a){if(!X||!X.call){return false;}if(this._isValidCollection(O)){var Y=true;for(var T=0,V=O.length;T<V;++T){Y=this._addListener(O[T],M,X,S,N,a) && Y;}return Y;}else{if(YAHOO.lang.isString(O)){var R=this.getEl(O);if(R){O=R;}else{this.onAvailable(O,function(){YAHOO.util.Event._addListener(O,M,X,S,N,a);});return true;}}}if(!O){return false;}if("unload"==M && S !==this){J[J.length]=[O,M,X,S,N,a];return true;}var b=O;if(N){if(N===true){b=S;}else{b=N;}}var P=function(c){return X.call(b,YAHOO.util.Event.getEvent(c,O),S);};var Z=[O,M,X,P,b,S,N,a];var U=I.length;I[U]=Z;if(this.useLegacyEvent(O,M)){var Q=this.getLegacyIndex(O,M);if(Q==- 1||O !=G[Q][0]){Q=G.length;B[O.id+M]=Q;G[Q]=[O,M,O["on"+M]];E[Q]=[];O["on"+M]=function(c){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(c),Q);};}E[Q].push(Z);}else{try{this._simpleAdd(O,M,P,a);}catch(W){this.lastError=W;this._removeListener(O,M,X,a);return false;}}return true;},addListener:function(O,Q,N,P,M){return this._addListener(O,Q,N,P,M,false);},addFocusListener:function(O,N,P,M){return this._addListener(O,K,N,P,M,true);},removeFocusListener:function(N,M){return this._removeListener(N,K,M,true);},addBlurListener:function(O,N,P,M){return this._addListener(O,L,N,P,M,true);},removeBlurListener:function(N,M){return this._removeListener(N,L,M,true);},useLegacyEvent:function(M,N){return(this.webkit && this.webkit<419 &&("click"==N||"dblclick"==N));},_removeListener:function(N,M,V,Y){var Q,T,X;if(typeof N=="string"){N=this.getEl(N);}else{if(this._isValidCollection(N)){var W=true;for(Q=N.length - 1;Q>-1;Q--){W=(this._removeListener(N[Q],M,V,Y) && W);}return W;}}if(!V||!V.call){return this.purgeElement(N,false,M);}if("unload"==M){for(Q=J.length - 1;Q>-1;Q--){X=J[Q];if(X && X[0]==N && X[1]==M && X[2]==V){J.splice(Q,1);return true;}}return false;}var R=null;var S=arguments[4];if("undefined"===typeof S){S=this._getCacheIndex(N,M,V);}if(S>=0){R=I[S];}if(!N||!R){return false;}if(this.useLegacyEvent(N,M)){var P=this.getLegacyIndex(N,M);var O=E[P];if(O){for(Q=0,T=O.length;Q<T;++Q){X=O[Q];if(X && X[this.EL]==N && X[this.TYPE]==M && X[this.FN]==V){O.splice(Q,1);break;}}}}else{try{this._simpleRemove(N,M,R[this.WFN],Y);}catch(U){this.lastError=U;return false;}}delete I[S][this.WFN];delete I[S][this.FN];I.splice(S,1);return true;},removeListener:function(N,O,M){return this._removeListener(N,O,M,false);},_isValidCollection:function(N){try{return(N && typeof N !=="string" && N.length && !N.tagName && !N.alert && typeof N[0] !=="undefined");}catch(M){return false;}},elCache:{},getEl:function(M){return(typeof M==="string")?document.getElementById(M):M;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(N){if(!H){H=true;var M=YAHOO.util.Event;M._ready();M._tryPreloadAttach();}},_ready:function(N){var M=YAHOO.util.Event;if(!M.DOMReady){M.DOMReady=true;M.DOMReadyEvent.fire();M._simpleRemove(document,"DOMContentLoaded",M._ready);}},_tryPreloadAttach:function(){if(F.length===0){C=0;clearInterval(this._interval);this._interval=null;return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var S=!H;if(!S){S=(C>0 && F.length>0);}var R=[];var T=function(V,W){var U=V;if(W.override){if(W.override===true){U=W.obj;}else{U=W.override;}}W.fn.call(U,W.obj);};var N,M,Q,P,O=[];for(N=0,M=F.length;N<M;N=N+1){Q=F[N];if(Q){P=this.getEl(Q.id);if(P){if(Q.checkReady){if(H||P.nextSibling||!S){O.push(Q);F[N]=null;}}else{T(P,Q);F[N]=null;}}else{R.push(Q);}}}for(N=0,M=O.length;N<M;N=N+1){Q=O[N];T(this.getEl(Q.id),Q);}C--;if(S){for(N=F.length - 1;N>-1;N--){Q=F[N];if(!Q||!Q.id){F.splice(N,1);}}this.startInterval();}else{clearInterval(this._interval);this._interval=null;}this.locked=false;},_unload:function(S){var M=YAHOO.util.Event,P,O,N,R,Q,T=J.slice();for(P=0,R=J.length;P<R;++P){N=T[P];if(N){var U=window;if(N[M.ADJ_SCOPE]){if(N[M.ADJ_SCOPE]===true){U=N[M.UNLOAD_OBJ];}else{U=N[M.ADJ_SCOPE];}}N[M.FN].call(U,M.getEvent(S,N[M.EL]),N[M.UNLOAD_OBJ]);T[P]=null;N=null;U=null;}}J=null;if(I){for(O=I.length - 1;O>-1;O--){N=I[O];if(N){M._removeListener(N[M.EL],N[M.TYPE],N[M.FN],N[M.CAPTURE],O);}}N=null;}G=null;M._simpleRemove(window,"unload",M._unload);},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(O,P,N,M){O.addEventListener(P,N,(M));};}else{if(window.attachEvent){return function(O,P,N,M){O.attachEvent("on"+P,N);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(O,P,N,M){O.removeEventListener(P,N,(M));};}else{if(window.detachEvent){return function(N,O,M){N.detachEvent("on"+O,M);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;EU.onFocus=EU.addFocusListener;EU.onBlur=EU.addBlurListener;if(EU.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}else{if(EU.webkit && EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E);}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,override:E});}},fireEvent:function(E,D,A,C){this.__yui_events=this.__yui_events||{};var G=this.__yui_events[E];if(!G){return null;}var B=[];for(var F=1;F<arguments.length;++F){B.push(arguments[F]);}return G.fire.apply(G,B);},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true;}}return false;}};YAHOO.util.KeyListener=function(A,F,B,C){if(!A){}else{if(!F){}else{if(!B){}}}if(!C){C=YAHOO.util.KeyListener.KEYDOWN;}var D=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof A=="string"){A=document.getElementById(A);}if(typeof B=="function"){D.subscribe(B);}else{D.subscribe(B.fn,B.scope,B.correctScope);}};

$D=YAHOO.util.Dom;$E=YAHOO.util.Event;$=$D.get;TB={};TB.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=A[C].split(".");E=TB;for(B=(D[0]=="TB")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};TB.namespace("env");TB.env={hostname:"taobao.com",debug:false,lang:"zh-cn"};TB.namespace("locale");TB.locale={Messages:{},getMessage:function(A){return TB.locale.Messages[A]||A;},setMessage:function(A,B){TB.locale.Messages[A]=B;}};$M=TB.locale.getMessage;TB.trace=function(A){if(!TB.env.debug){return}if(window.console){window.console.debug(A)}else{alert(A)}};TB.init=function(){this.namespace("widget","dom","bom","util","form","anim");if(location.hostname.indexOf("taobao.com")==- 1){TB.env.hostname=location.hostname;TB.env.debug=true}var A=document.getElementsByTagName("script");var C=/tbra(?:[\w\.\-]*?)\.js(?:$|\?(.*))/;var E;for(var B=0;B<A.length;++B){if(E=C.exec(A[B].src)){TB.env["path"]=A[B].src.substring(0,E.index);if(E[1]){var D=E[1].toQueryParams();for(n in D){if(n=="t"||n=="timestamp"){TB.env["timestamp"]=parseInt(D[n]);continue}TB.env[n]=D[n];}}}} 

TB.locale.Messages={loading:"Loading...",pleaseWait:"Please waiting...",ajaxError:"System Error",prevPageText:"Next Page",nextPageText:"Previous Page",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",timeoutText:"Timeout"}};TB.init();TB.common={trim:function(A){return A.replace(/(^\s*)|(\s*$)/g,"");},applyIf:function(C,A){if(C && A && typeof A=="object"){for(var B in A){if(!YAHOO.lang.hasOwnProperty(C,B)){C[B]=A[B];}}}return C;},apply:function(C,A){if(C && A && typeof A=="object"){for(var B in A){C[B]=A[B];}}return C;}};TB.applyIf=TB.common.applyIf;TB.apply=TB.common.apply;(function(){var E=navigator.userAgent.toLowerCase();var B=E.indexOf("opera") !=- 1,G=E.indexOf("safari") !=- 1,A=!B && !G && E.indexOf("gecko")>-1,C=!B && E.indexOf("msie") !=- 1,F=!B && E.indexOf("msie 6") !=- 1,D=!B && E.indexOf("msie 7") !=- 1;TB.bom={}})();TB.dom={insertAfter:function(B,A){return $D.insertAfter(B,A);},setFormAction:function(E,C){E=$(E);var B=E.elements["action"];var D;if(B){var A=E.removeChild(B);D=function(){E.appendChild(A)}}E.action=C;if(D){D()}return true;}};TB.anim.Highlight=function(B,A){if(!B){return}this.init(B,A)};TB.anim.Highlight.defConfig={startColor:"#ff9",duration:0.5,keepBackgroundImage:true};TB.anim.Highlight.prototype.init=function(E,D){var G=YAHOO.util;D=TB.applyIf(D||{},TB.anim.Highlight.defConfig);var A={backgroundColor:{from:D.startColor}};var F=new G.ColorAnim(E,A,D.duration);var B=F.getAttribute("backgroundColor");F.attributes["backgroundColor"]["to"]=B;if(D.keepBackgroundImage){var C=$D.getStyle(E,"background-image");F.onComplete.subscribe(function(){$D.setStyle(E,"background-image",C)})}this.onComplete=F.onComplete;this.animate=function(){$D.setStyle(E,"background-image","none");F.animate()}};(function(){var A=YAHOO.util;TB.widget.Slide=function(B,C){this.init(B,C)};TB.widget.Slide.defConfig={slidesClass:"Slides",triggersClass:"SlideTriggers",currentClass:"Current",eventType:"click",autoPlayTimeout:5,disableAutoPlay:false};TB.widget.Slide.prototype={init:function(B,C){this.container=$(B);this.config=TB.applyIf(C||{},TB.widget.Slide.defConfig);try{this.slidesUL=$D.getElementsByClassName(this.config.slidesClass,"ul",this.container)[0];this.slides=$D.getChildren(this.slidesUL);if(this.slides.length==0){throw new Error()}}catch(D){throw new Error("can't find slides!")}this.delayTimeId=null;this.autoPlayTimeId=null;this.curSlide=- 1;this.sliding=false;this.pause=false;this.onSlide=new A.CustomEvent("onSlide",this,false,A.CustomEvent.FLAT);if(YAHOO.lang.isFunction(this.config.onSlide)){this.onSlide.subscribe(this.config.onSlide,this,true)}this.initSlides();this.initTriggers();if(this.slides.length>0){this.play(1)}if(!this.config.disableAutoPlay){this.autoPlay()}if(YAHOO.lang.isFunction(this.config.onInit)){this.config.onInit.call(this)}},initTriggers:function(){var D=document.createElement("ul");this.container.appendChild(D);for(var C=0;C<this.slides.length;C++){var B=document.createElement("li");B.innerHTML=C+1;D.appendChild(B)}D.className=this.config.triggersClass;this.triggersUL=D;if(this.config.eventType=="mouse"){$E.on(this.triggersUL,"mouseover",this.mouseHandler,this,true);$E.on(this.triggersUL,"mouseout",function(E){clearTimeout(this.delayTimeId);this.pause=false;},this,true)}else{$E.on(this.triggersUL,"click",this.clickHandler,this,true)}},initSlides:function(){$E.on(this.slides,"mouseover",function(){this.pause=true;},this,true);$E.on(this.slides,"mouseout",function(){this.pause=false;},this,true);$D.setStyle(this.slides,"display","none")},clickHandler:function(D){var C=$E.getTarget(D);var B=parseInt(TB.common.stripTags(C.innerHTML));while(C !=this.container){if(C.nodeName.toUpperCase()=="LI"){if(!this.sliding){this.play(B,true)}break}else{C=C.parentNode;}}},mouseHandler:function(E){var D=$E.getTarget(E);var B=parseInt(TB.common.stripTags(D.innerHTML));while(D !=this.container){if(D.nodeName.toUpperCase()=="LI"){var C=this;this.delayTimeId=setTimeout(function(){C.play(B,true);C.pause=true;},(C.sliding?0.5:0.1) * 1000);break}else{D=D.parentNode;}}},play:function(E,C){E=E - 1;if(E==this.curSlide){return}var B=this.curSlide>=0?this.curSlide:0;if(C && this.autoPlayTimeId){clearInterval(this.autoPlayTimeId)}var D=this.triggersUL.getElementsByTagName("li");D[B].className="";D[E].className=this.config.currentClass;this.slide(E);this.curSlide=E;if(C && !this.config.disableAutoPlay){this.autoPlay()}},slide:function(C){var B=this.curSlide>=0?this.curSlide:0;this.sliding=true;$D.setStyle(this.slides[B],"display","none");$D.setStyle(this.slides[C],"display","block");this.sliding=false;this.onSlide.fire(C)},autoPlay:function(){var B=this;var C=function(){if(!B.pause && !B.sliding){var D=(B.curSlide+1) % B.slides.length+1;B.play(D,false)}};this.autoPlayTimeId=setInterval(C,this.config.autoPlayTimeout * 1000);}};TB.widget.ScrollSlide=function(B,C){this.init(B,C)};YAHOO.extend(TB.widget.ScrollSlide,TB.widget.Slide,{initSlides:function(){TB.widget.ScrollSlide.superclass.initSlides.call(this);$D.setStyle(this.slides,"display","")},slide:function(E){var B=this.curSlide>=0?this.curSlide:0;var C={scroll:{by:[0,this.slidesUL.offsetHeight *(E - B)]}};var D=new A.Scroll(this.slidesUL,C,0.5,A.Easing.easeOutStrong);D.onComplete.subscribe(function(){this.sliding=false;this.onSlide.fire(E)},this,true);D.animate();this.sliding=true;}});TB.widget.FadeSlide=function(B,C){this.init(B,C)};YAHOO.extend(TB.widget.FadeSlide,TB.widget.Slide,{initSlides:function(){TB.widget.FadeSlide.superclass.initSlides.call(this);$D.setStyle(this.slides,"position","absolute");$D.setStyle(this.slides,"top",this.config.slideOffsetY||0);$D.setStyle(this.slides,"left",this.config.slideOffsetX||0);$D.setStyle(this.slides,"z-index",1)},slide:function(D){if(this.curSlide==- 1){$D.setStyle(this.slides[D],"display","block")}else{var B=this.slides[this.curSlide];$D.setStyle(B,"display","block");$D.setStyle(B,"z-index",10);var C=new A.Anim(B,{opacity:{to:0}},0.5,A.Easing.easeNone);C.onComplete.subscribe(function(){$D.setStyle(B,"z-index",1);$D.setStyle(B,"display","none");$D.setStyle(B,"opacity",1);this.sliding=false;this.onSlide.fire(D)},this,true);$D.setStyle(this.slides[D],"display","block");C.animate();this.sliding=true;}}})})();


TB.widget.SimpleScroll=new function(){var Y=YAHOO.util;var defConfig={delay:5,speed:20,startDelay:2,scrollItemCount:1}
this.decorate=function(container,config){container=$(container);config=TB.applyIf(config||{},defConfig);var handle={};var scrollTimeId=null,pause=false;var onScrollEvent=new Y.CustomEvent("onScroll",handle,false,Y.CustomEvent.FLAT);if(config.onScroll){onScrollEvent.subscribe(config.onScroll);}else{onScrollEvent.subscribe(function(){for(var i=0;i<config.scrollItemCount;i++){container.appendChild(container.getElementsByTagName('li')[0]);}});}
var scroll=function(){if(pause)return;container.scrollTop+=2;var lh=config.lineHeight||container.getElementsByTagName('li')[0].offsetHeight;if(container.scrollTop%lh<=1){clearInterval(scrollTimeId);onScrollEvent.fire();container.scrollTop=0;setTimeout(start,config.delay*1000);}}
var start=function(){var lh=config.lineHeight||container.getElementsByTagName('li')[0].offsetHeight;if(container.scrollHeight-container.offsetHeight>=lh)
scrollTimeId=setInterval(scroll,config.speed);}
$E.on(container,'mouseover',function(){pause=true;});$E.on(container,'mouseout',function(){pause=false;});setTimeout(start,config.startDelay*1000);TB.apply(handle,{subscribeOnScroll:function(func,override){if(override===true&&onScrollEvent.subscribers.length>0)
onScrollEvent.unsubscribeAll();onScrollEvent.subscribe(func);}});handle.onScroll=handle.subscribeOnScroll;return handle;}};



var AE={};AE.widget=TB.widget;AE.browse=TB.bom;AE.bom=TB.bom;AE.common=TB.common;AE.dom=TB.dom;AE.namespace=function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=a[i].split(".");o=AE;for(j=(d[0]=="AE")?1:0;j<d.length;j=j+1){o[d[j]]=o[d[j]]||{};o=o[d[j]];}}
return o;};

var YL=YAHOO.lang;var YUD=YAHOO.util.Dom;var YUE=YAHOO.util.Event;YUD.setCookie=TB.bom.setCookie;YUD.getCookie=TB.bom.getCookie;YUD.deleteCookie=TB.bom.removeCookie;function vd(p){}




floatDiv=function(){var oComponent=this;var oTarget,oContent,aExcursion;var hiddenDelayTimer;var showDelayTimer;var contentAnimShow,contentAnimHidden;var canClose=true;var oDefaultConfig={showConfig:{opacity:{to:1}},hiddenConfig:{opacity:{to:0}},showTime:0.8,hiddenTime:0.3,sFireEvent:"mouseover",needMask:false,oAppliedFunction:YAHOO.util.Easing.easeOut}
var afterShowAnim=function(){if(maskIframe){maskIframe.style.width=oContent.offsetWidth+"px";maskIframe.style.height=oContent.offsetHeight+"px";}}
oComponent.showContent=function(e){try{YUE.stopEvent(e);}catch(E){}
(showDelayTimer!=null)?clearTimeout(showDelayTimer):false;showDelayTimer=setTimeout(showContentDelay,200);}
oComponent.hiddenContent=function(e){(hiddenDelayTimer!=null)?clearTimeout(hiddenDelayTimer):false;hiddenDelayTimer=setTimeout(oComponent.hiddenContentDelay,200);}}

if(!AE.widget.itemViewer){AE.widget.itemViewer=function(){var oComponent=this;var oDefConfig={itemSize:[0,0],itemNum:6,showenItemNum:0,step:3,animTime:1,orientation:"h",toward:-1,fireFunction:YAHOO.util.Easing.easeBothStrong,itemContainerId:"itemViewerContainer",itemClassName:"itemViewerItem",preBtnId:"itemViewerPre",nextBtnId:"itemViewerNext",navContainerId:"itemViewerNav",getDataUrl:false,dataFormId:false,upFront:2,btnFireEvent:"click",navFireEvent:"click",autoCycleTimes:false,cycleDelay:2000,loadTextLength:50,navCurrentClass:"current"}
var config;var preBtn,nextBtn,navContainer,itemContainer;var anim;var isInited=false;var basePoint=[0,0];var currentIndex=0;var pageNum,loadedItemNum;var loadDataForm,canGetData=true,loadDataLength;var cycleTimer,cycleTimes=0;oComponent.onDisablePre=new YAHOO.util.CustomEvent("disablePre",oComponent);oComponent.onEnablePre=new YAHOO.util.CustomEvent("enablePre",oComponent);oComponent.onDisableNext=new YAHOO.util.CustomEvent("disableNext",oComponent);oComponent.onEnableNext=new YAHOO.util.CustomEvent("enableNext",oComponent);oComponent.init=function(oConfig){if(isInited)return false;config=AE.cpAttribute(oConfig,oDefConfig);if(config.itemNum<0){isInited=true;return false;}
try{preBtn=get(config.preBtnId);nextBtn=get(config.nextBtnId);}catch(E){preBtn=false;nextBtn=false;}
if(iIndex>=pageNum){iIndex=pageNum-1}
currentIndex=iIndex;if(setPointTo(currentIndex)){setCurrentNavClass(currentIndex);anim.animate();}};oComponent.showDirectly=function(e,iPageNum){if(e)YUE.stopEvent(e);if(anim.isAnimated())return false;if(!YL.isNumber(iPageNum))return false;var iIndex=iPageNum-1;if(iIndex<0){iIndex=0}
if(iIndex>=pageNum){iIndex=pageNum-1}
currentIndex=iIndex;if(setPointTo(currentIndex)){setCurrentNavClass(currentIndex);anim.animate();anim.stop(true);}};oComponent.getIndex=function(){return currentIndex;}
var setPointTo=function(targetIndex){if(targetIndex<=0){disablePre();if(targetIndex<0){currentIndex=0;return false;}}else{enablePre();}
if(targetIndex>=pageNum-1){disableNext();if(targetIndex>=pageNum){currentIndex=pageNum-1;return false;}}else{enableNext();}
if(config.dataFormId)getItems(targetIndex+1);basePoint=YUD.getXY(itemContainer.parentNode);var x=targetIndex*config.step*config.toward*config.itemSize[0]+basePoint[0];var y=targetIndex*config.step*config.toward*config.itemSize[1]+basePoint[1];switch(config.orientation){case"h":{anim.attributes.points.to=[basePoint[0],y];break;}
case"w":{anim.attributes.points.to=[x,basePoint[1]];break;}};return true;}
var getItems=function(iPageNum){if(!canGetData)return false;var currentRequestLength=iPageNum*config.step;if(currentRequestLength<=loadedItemNum-(config.step*config.upFront)||loadedItemNum>=config.itemNum)return false;var getItemsCallback={success:getItemsSuccess,failure:getItemsFailure,argument:[]};if(!config.getDataUrl)return false;canGetData=false;loadDataForm.startIndex.value=loadedItemNum;YAHOO.util.Connect.setForm(loadDataForm.id);var request=YAHOO.util.Connect.asyncRequest('POST',config.getDataUrl,getItemsCallback);};var getItemsSuccess=function(o){if(o.responseText!==undefined){itemContainer.innerHTML+=o.responseText;loadedItemNum=YUD.getElementsByClassName(config.itemClassName,'*',itemContainer).length;}
canGetData=true;};var getItemsFailure=function(o){if(o.responseText!==undefined){}
canGetData=true;};}}



function checkInstallEnaliint(){var tempInstall="-1";try{var wwx=new ActiveXObject("aliimx.atmx");var tempVer=wwx.GetWangWangVersion();if(wwx!=null){tempInstall="1";wwx=null;return tempInstall;}
wwx=null;}catch(e){}
tempInstall=OnlyCheckOldAlitalkInstalled();return tempInstall;}
var hasBeenInstancePlugIn=false;function hasBeeninstancedFireFox(){if(checkFirefoxIsBigThan15()){var mimetype=navigator.mimeTypes["application/ww-plugin"];if(mimetype){hasBeenInstancePlugIn=true;var plugin=mimetype.enabledPlugin
if(plugin){if(!document.getElementById("chk_ww")){var dDiv=document.createElement('DIV');dDiv.style.Height='0px';dDiv.style.width='0px';dDiv.style.overflow='hidden';dDiv.innerHTML="<embed id=\"chk_ww\" name=\"chk_ww\" type=\"application/ww-plugin\" width=1 height=1 hidden=\"true\" >";document.body.appendChild(dDiv);}
try{hasBeeninstanced=document.getElementById("chk_ww").isInstalled(2);}catch(e){hasBeeninstanced=false;};}}}else{hasBeeninstanced=false;}}
