(function(){var a=function(c,f){try{c.fireEvent("on"+f)}catch(d){try{var g=document.createEvent("HTMLEvents");g.initEvent(f,false,true);c.dispatchEvent(g)}catch(d){c[f]&&c[f]()}}};function b(d){var c=YAHOO.util.Dom;if(!(d=c.get(d))){return}d.onmouseenter=function(){c.addClass(this,"hover")};d.onmouseleave=function(){c.removeClass(this,"hover")}}TB.SRP.add("SearchUtil",function(i){var e=YAHOO.util,c=e.Dom,p=e.Event;var j=YAHOO.env.ua,m=YAHOO.lang;var d=j.ie,h=(d===6);var n=j.webkit;var g=function(t,q,s){var r=t[q];if(!r){r=document.createElement("input");r.type="hidden";r.name=q;t.appendChild(r)}r.value=s;return r};function f(r,s){var q=r.q.parentNode;TB.Suggest.prototype._setContainerRegion=function(){var u=c.getRegion(q);var x=u.left,t=u.right-x-2,v=u.bottom-1;if(s){t=t-s.offsetWidth}if(d){if(d==8){x++}if(d==7){x-=2}if(d==6){v++}}else{if(n){x++}else{x+=2}}this.container.style.left=x+"px";this.container.style.top=v+"px";this.container.style.width=t+"px"};r.q.sug=new TB.Suggest(r.q,"http://suggest.taobao.com/sug",{showCloseBtn:true,resultFormat:"约%result%件宝贝",useShim:false})}function o(v,t){if(d&&d<7){b(v)}var w=v.getElementsByTagName("ul")[0];var r=t.relbox=v.getElementsByTagName("span")[0];p.on(w.getElementsByTagName("a"),"click",function(y){p.stopEvent(y);var x=[r.innerHTML,t.value,r.title];r.innerHTML=this.innerHTML;t.value=this.getAttribute("val")||"";r.title=this.title||"";if(d&&d<7){c.removeClass(v,"hover")}else{w.style.display="none";setTimeout(function(){w.style.display=""},0)}this.innerHTML=x[0];this.setAttribute("val",x[1]);this.title=x[2]});if(t.value!=""){var q=w.getElementsByTagName("a");for(var s=q.length-1;s>=0;s--){var u=q[s];if(c.getAttribute(u,"val")==t.value){t.value="";g(t.form,"scat","");a(u,"click")}}}}var l=(function(){var q="请输入要搜索的内容";var s=function(){if(!this.value.trim()){this.value=q;c.addClass(this,"blur")}};var r=function(){if(c.hasClass(this,"blur")){this.value="";c.removeClass(this,"blur")}};var t=function(){var y=this["q"];if(c.hasClass(y,"blur")){y.value=""}if(!y.curTab){return}var w=y.curTab.getElementsByTagName("a")[0],x=w.href,v=c.getAttribute(w,"emptyAction"),z=y.value=="";var u=c.getAttribute(y.curTab,"rel");if(y.cat&&y.cat.value){g(this,"scat","y");if(y.cat.relbox){g(this,"catName",y.cat.relbox.getAttribute("title"))}z=false}if(u=="shop"){g(this,"stat",40)}this.action=z?v:x};return function(B){var z={form:"J_searchForm",tab:"J_SearchTab",catBox:"J_ShowCate",autoSuggest:true,autoFocus:true};z=m.merge(z,B||{});var v=c.get(z.form);if(!v){return}var u=v.q;if(u.value.trim()==q){u.value=""}if(c.get("q_value")){u.value=c.get("q_value").value}s.call(u);if(z.autoFocus){p.on(u,"keydown",function(){p.removeListener(this,"keydown",arguments.callee);r.call(this)});a(u,"focus");try{u.setSelectionRange(0,0)}catch(A){}}setTimeout(function(){p.on(u,"focus",r);p.on(u,"click",r);p.on(u,"blur",s);p.on(v,"submit",t)},0);var x=c.get(z.tab),w=c.get(z.catBox),C=w&&v.cat;if(z.autoSuggest){f(v,w)}if(C){u.cat=C;o(w,C)}if(x){var y=c.getAttribute(x,"redirect")=="true";u.curTab=c.getElementsByClassName("selected","li",x)[0];p.on(x.getElementsByTagName("li"),"click",function(D){p.stopEvent(D);if(this==u.curTab){return}c.removeClass(u.curTab,"selected");c.addClass(u.curTab=this,"selected");if(y){return a(v,"submit")}u.focus()})}}})();i.SearchUtil={init:l}});TB.SRP.add("Small2Big",function(c){var e=YAHOO.util.Dom;var f=220;var d="http://pics.taobao.com/bao/album/sys/blank.gif";c.Small2Big={init:function(){var n=e.get("list:content");if(!n||!e.hasClass(n,"small-list")){return}var j="";j+=".bigpic {position:absolute;z-index:2007;padding-left:6px;display:none}";j+=".bigpic .arrow{width:7px;height:13px;position:absolute;left:0px;top:10px;background-position:-8px -1045px;}";j+=".bigpic div{border:1px #666 solid;background:#fff;}";j+=".bigpic a {display: table-cell;vertical-align:middle;width:250px;height:250px;text-align:center;*display:block;*font-size:186px;border:4px #e8e8e8 solid;background:#fff;}";j+=".bigpic a.loading {background: url(http://img02.taobaocdn.com/tps/i2/T1.c8rXnXbXXXXXXXX-185-16.gif) no-repeat center center;}";j+=".bigpic a img{border:1px #b6b6b6 solid;max-width:220px;max-height:220px;vertical-align:middle;}";TB.dom.addCSS(j);var l=document.createElement("div");e.addClass(l,"bigpic");l.innerHTML='<div><span class="arrow"></span><a href="javascript:void(0);" target="_blank" class="loading"><img oncontextmenu="return(false)" src="about:blank" border="0" /></a></div>';e.insertAfter(l,n);var h=l.getElementsByTagName("img")[0];var g=l.getElementsByTagName("span")[0];var m=e.getElementsByClassName("hesper:small2big","img",n);m.forEach(function(p){p.alt=""});var i=null;TB.widget.SimplePopup.decorate(m,l,{position:"right",width:250,height:250,offset:[-5,0],disableClick:false,autoFit:true,eventType:"mouse",onShow:function(){var o=this.trigger;e.setXY(l,[e.getX(o)+82,e.getY(o)-2]);if(e.getY(l)+l.offsetHeight>e.getViewportHeight()+e.getDocumentScrollTop()){e.setY(l,e.getViewportHeight()+e.getDocumentScrollTop()-l.offsetHeight)}e.addClass(h.parentNode,"loading");h.style.display="none";h.src="";h.parentNode.setAttribute("href",o.parentNode.parentNode.getAttribute("href"));g.style.top=e.getY(o)-e.getY(l)+34+"px";var p=new Image();p.src=o.src.replace(/_sum\.jpg/,"");var q=function(){if(p.complete){clearInterval(i);h.style.width=h.style.height="";h.src=p.src;iImg=null;var r=p.width;var s=p.height;if(r>=s&&r>f){h.style.width=f+"px"}else{if(s>=r&&s>f){h.style.height=f+"px"}}h.style.display="";e.removeClass(h.parentNode,"loading")}};i=setInterval(q,10)},onHide:function(){clearInterval(i);h.src=d}})}}});TB.SRP.add("FilterBar",function(h){var t=YAHOO.util.Dom,r=YAHOO.util.Event,g=t.get;var p=YAHOO.util,x=YAHOO.lang,F=YAHOO.env.ua,B=p.Anim,i=p.Easing;var J=document,y,l,f;var v=(0<F.ie),u=(6==F.ie),o=(0<F.webkit);var d=false,A=null;var n=function(){if(true===o){n=function(){return l}}else{n=function(){return J.documentElement}}return n()};var w=function(D,E){var L=document.createElement("div");t.addClass(L,"closeFloat");var K=document.createElement("span");K.title=K.innerHTML="关闭浮动效果";D.appendChild(L);L.appendChild(K);t.setAttribute(D,"closeHandler",L);r.on(K,"click",function(){TB.bom.setCookie("_nflt_",1,365,"taobao.com","/");alert("成功关闭浮动效果");r.removeListener(window,"scroll",E);t.removeClass(D,"sticky");t.setStyle(L,"display","none")})};var I=function(){if(TB.bom.getCookie("_nflt_")=="1"){return}var D=t.getAncestorByClassName(G.lstToolbar,"toolbarWrapper");if(!D){return}var K=false;var E=function(){var M=t.getY(A),L=n().scrollTop;if(true===K&&M>=L){t.removeClass(D,"sticky");K=false}else{if(false===K&&M<=L){t.addClass(D,"sticky");K=true}}if(K&&u){t.setStyle(D,"top",L+"px")}};r.on(window,"scroll",E);A=J.createElement("div");A.id="filterplaceholder";t.insertBefore(A,D);A.appendChild(D);w(D,E)};var G={};var C=function(L){if(x.isArray(L)){for(var N=L.length-1;N>=0;N--){C(L[N])}return}var D=t.getElementsByClassName("item-list","ul",L)[0];var K=t.getElementsByClassName("select-item","span",L)[0];var O=t.getElementsByClassName("selected","li",L)[0];if(D&&K){K=K.getElementsByTagName("span")[0];var M=G.divFilter[t.getAttribute(D,"_frmfield")];if(M){M.checkItem=function(R,Q){var T=t.getAttribute(R.getElementsByTagName("a")[0],"_val");if(Q){if(M.value==T){return}var S=R.getElementsByTagName("a")[0]}else{if(M.value!=T){return}var P=D.getElementsByTagName("a"),S=P[P.length-1]}if(!S){return}a(M,"input");M.value=t.getAttribute(S,"_val")||"";K.innerHTML=t.getAttribute(S,"_txt")||S.innerHTML;t.removeClass(O,"selected");t.addClass(O=S.parentNode,"selected")}}r.on(L,"click",function(Q){var P=r.getTarget(Q);if(P.tagName.toLowerCase()!="a"){return}r.stopEvent(Q);if(!M||t.getAncestorByClassName(P,"selected")==O){return}a(M,"input");M.value=t.getAttribute(P,"_val")||"";K.innerHTML=t.getAttribute(P,"_txt")||P.innerHTML;t.removeClass(O,"selected");t.addClass(O=P.parentNode,"selected");t.removeClass(L,"hover");t.setStyle(D,"display","none");setTimeout(function(){t.setStyle(D,"display","")},0)})}var E=x.later(0,this,function(){});r.on(L,"mouseover",function(P){E.cancel();E=x.later(200,this,function(){t.addClass(this,"hover")})});r.on(L,"mouseout",function(P){E.cancel();E=x.later(200,this,function(){t.removeClass(this,"hover")})})};var e=function(){var L=G.divFilter.getElementsByTagName("input");var E=function(){t.addClass(G.submitBtn,"highlight")};var M=v?function(O,N){r.on(O,"propertychange",N)}:function(O,N){r.on(O,"click",N);r.on(O,"input",N)};for(var K=0,D=L.length;K<D;K++){M(L[K],E)}};var c=function(D){var L=c.focusEvt=function(){if(this.value==t.getAttribute(this,"_default")){t.removeClass(this,"blur");this.value=""}};var M=function(){if(this.value==t.getAttribute(this,"_default")||this.value==""){t.addClass(this,"blur");this.value=t.getAttribute(this,"_default")}};for(var E=D.length-1;E>=0;E--){var K=t.get(D[E]);if(!K||!t.getAttribute(K,"_default")){continue}r.on(K,"focus",L);r.on(K,"blur",M);(function(N){r.on(N.form,"submit",function(O){r.stopEvent(O);L.call(N);this.submit()})})(K);M.call(K)}};var s=function(){var E=G.linkOrderSelector,D=G.ulOrderOptions;r.on(E,"click",function(K){r.stopEvent(K)});r.on(D,"click",function(L){var K=r.getTarget(L);if("a"!==K.tagName.toLowerCase()){return}if(t.hasClass(K.parentNode,"selected")){r.stopEvent(L)}else{t.removeClass(D,"show")}})};var z=function(){var N=G.divFilter;d=t.getAttribute(N,"expand")=="true"?true:false;var O="_xpnd_",D=function(P){J.cookie=O+"="+P+"; expires ="+(new Date(+new Date()+2592000000)).toGMTString()+"; path=/; domain=.taobao.com"};if(0<J.cookie.length){var L=J.cookie.match(new RegExp("(^| )"+O+"=([^;]*)(;|$)"));if(null!==L){if("1"===L[2]){d=true}else{d=false}}}if(d){t.addClass(N,"expanded")}else{t.removeClass(N,"expanded")}var K=J.createElement("a");K.id="filterToggle";K.href="#";var M=J.createTextNode((true===d)?"收起":"更多");K.appendChild(M);if(true===v){K.hideFocus=true}var E=G.divFilterOptions;E.appendChild(K);r.on(K,"click",function(P){r.preventDefault(P);if(true===d){t.removeClass(N,"expanded");M.nodeValue="更多"}else{t.addClass(N,"expanded");M.nodeValue="收起"}d=!d;D((true===d)?"1":"0")})};var m=function(){var L=null,K=G.divFilterPrice,E=K.getElementsByTagName("form")[0];var D=t.getElementsBy(function(M){if(M.type==="text"){r.on(M,"focus",function(){L&&L.cancel();t.addClass("J_FilterPrice","price-selected")});r.on(M,"blur",function(){L=x.later(300,null,function(){t.removeClass("J_FilterPrice","price-selected")})});r.on(M,"keyup",function(){var N=this.value;if(!/^\d+\.?\d*$/.test(N)){N=Math.abs(parseFloat(N));this.value=isNaN(N)?"":N}});return true}},"input","J_FilterPrice");r.on(E,"submit",function(P){var Q=D[0].value,N=D[1].value,M="reserve_price";if(!Q&&N>0){M+="[0,"+N+"]"}else{if(Q>0&&!N){M+="["+Q+",]"}else{if(Q>=0&&N>=0){if(+Q>+N){M+="["+N+","+Q+"]"}else{M+="["+Q+","+N+"]"}}}}if(M!=="reserve_price"){if(!this["filter"]){var O=document.createElement("input");O.type="hidden";O.id="filter";O.name="filter";this.appendChild(O)}t.get("filter").value=M}else{if(t.get("filter")){t.get("filter").parentNode.removeChild(t.get("filter"))}}})};var H=function(){var L=G.divFilterLocation,D=t.getElementsByClassName("item-list","div",L);var K=t.get("filterCity"),E=K.form;r.on(D,"click",function(N){var M=r.getTarget(N);if(M.tagName.toLowerCase()!="a"){return}r.stopEvent(N);K.value=t.getAttribute(M,"_val")==null?M.innerText||M.textContent||"":t.getAttribute(M,"_val");E.submit()})};var q=function(){var M=G.divFilter,L=M.elements;var N=0;if(G.ulFilterTabBar){var ad=G.ulFilterTabBar.getElementsByTagName("LI");for(var ac=ad.length-1;0<=ac;ac--){var W=ad[ac];if(true===t.hasClass(W,"selected")&&""!==W.getAttribute("data-idx")){N=W.getAttribute("data-idx");break}}}var K=false;var V=L.isnew;if(undefined===V){V=document.createElement("input");V.type="hidden";V.name="isnew";V.value="";M.appendChild(V)}var O=t.get("filterServiceBehalf"),ae=t.get("filterServiceCOD"),T=t.get("filterServiceAutoDeliver"),U=t.get("filterServiceTao1Site"),Y=t.get("filterProtectionTruth"),Z=t.get("filterProtectionReturn"),R=t.get("filterProtectionAuthentic"),Q=t.get("filterProtectionThunder"),S=t.get("filterProtectionGuarantee"),aa=t.get("filterProtectionQuality");var ab=t.get("filterFinenessNew"),D=t.get("filterFinenessOld"),E=t.get("filterFinenessIdle"),X=t.get("filterTypeBid"),P=t.get("filterTypeBuy");r.on([ab,D,E,X,P],"click",function(){var af=this;setTimeout(function(){var ah=af.id;if(/^filterFineness/.test(ah)){if(t.hasClass(af,"selected")){if("filterFinenessOld"===ah){if(null!==O){O.checked=false}if(null!==U){U.checked=false}}else{if("filterFinenessIdle"===ah){if(null!==O){O.checked=false}}}}}else{if(/^filterType/.test(ah)){if(t.hasClass(af,"selected")){if("filterTypeBid"===ah){if(null!==ae){ae.checked=false}if(null!==T){T.checked=false}if(null!==U){U.checked=false}var ai=g("filterPromotionCoupon"),ag=g("filterPromotionVIP");if(null!==ai){ai.checked=false}if(null!==ag){ag.checked=false}}}}}},0)});r.on(G.divFilterOptions,"click",function(af){var aj=r.getTarget(af);if("INPUT"!==aj.nodeName){return}var ag=aj.id;var ah=L.filterFineness,ai=L.atype;switch(true){case /^filterService/.test(ag):if(true===aj.checked){if("filterServiceBehalf"===ag){if(null!==D){ah.checkItem(D)}if(null!==E){ah.checkItem(E)}}else{if(true===/^filterService[CO|Au]/.test(ag)){if(null!==X){ai.checkItem(X)}}else{if("filterServiceTao1Site"===ag){if(null!==D){ah.checkItem(D)}if(null!==X){ai.checkItem(X)}}}}}break;case /^filterProtection/.test(ag):if("10"===N){r.preventDefault(af)}else{if("1"===N||"7"===N){if(true===aj.checked){if("filterProtectionQuality"===ag){if(null!==Y){Y.checked=true}if(null!==Z){Z.checked=true}if(null!==R){R.checked=false}if(null!==Q){Q.checked=false}if(null!==S){S.checked=false}}else{if(true===/^filterProtection[Au|Th|Gu]/.test(ag)){if(null!==aa){aa.checked=false}}}}else{if(true===/^filterProtection[Tr|Re]/.test(ag)){if(null!==aa){aa.checked=false}}}}}break}if(P&&aj.checked&&/^filterPromotionCoupon|filterPromotionVIP|filterServiceTao1Site$/.test(ag)){ai.checkItem(P,true)}if("filterServiceWWOnline"==ag){if(aj.checked){t.addClass(aj.nextSibling,"online")}else{t.removeClass(aj.nextSibling,"online")}}});r.on(M,"submit",function(ag){r.stopEvent(ag);if(true===K){return}for(var ah=L.length-1;0<=ah;ah--){var aj=L[ah];if("hidden"===aj.type){var ai=L[aj.name];if(undefined!==ai&&undefined!==ai.length){aj.parentNode.removeChild(aj);aj=null}}}var ak=L.filterFineness,af=[];if(""===V.value&&undefined===ak){V.parentNode.removeChild(V);V=null}else{if(undefined!==ak){if(""!==V.value){af=V.value.split(",")}if(undefined!==ak.length){for(var ah=ak.length-1;0<=ah;ah--){var aj=ak[ah];if(true===aj.checked&&-1===af.indexOf(aj.value)){af.unshift(aj.value)}else{if(false===aj.checked&&-1!==af.indexOf(aj.value)){af.splice(af.indexOf(aj.value),1)}}}}else{if(true===ak.checked&&-1===af.indexOf(ak.value)){af.push(ak.value)}else{if(false===ak.checked&&-1!==af.indexOf(ak.value)){af.splice(af.indexOf(ak.value),1)}}}if(0===af.length){V.parentNode.removeChild(V);V=null}else{V.value=af.valueOf()}}}M.submit();K=true})};var j=function(){G={FilterWrapper:g("J_Filter"),ulFilterTabBar:g("J_FilterTabBar"),lstToolbar:g("J_FilterToolbar"),linkOrderSelector:g("J_OrderSelector"),ulOrderOptions:g("J_OrderByList"),divFilter:g("filterForm"),divFilterOptions:g("J_FilterOptions"),divFilterPrice:g("J_FilterPrice"),divFilterLocation:g("filterLocation"),submitBtn:g("J_SubmitBtn")};l=J.body,f=J.forms;y=J.documentElement||l;if(y.clientHeight!==y.scrollHeight&&G.lstToolbar){I()}c(["filterSearchKeyWord","filterExclude","filterCity"]);if(G.FilterWrapper){C(t.getElementsByClassName("hoverMenu","li",G.FilterWrapper))}if(G.divFilter&&G.submitBtn){e()}if(G.linkOrderSelector&&G.ulOrderOptions){s()}if(G.divFilter&&G.divFilterOptions){q();z()}if(G.divFilterPrice){m()}if(G.divFilterLocation){H()}};h.FilterBar={init:j}});TB.SRP.add("ToggleCate",function(j){var f=YAHOO.util,d=f.Dom,o=f.Event,m=YAHOO.lang;var h={},g="expand",l="collapse";var c=[];var n=function(q){if(!d.get("J_AllCates")){return}var p=d.getAncestorByClassName("J_AllCates","cat-wrapper");if(!d.get("J_toggleCates")){return p?"":d.addClass("J_AllCates","onlyAllCate")}if(!d.get("auto-recommend")&&!p){d.addClass("J_AllCates","onlyAllCate")}h={toggler:d.get("J_toggleCates"),allCates:d.get("J_AllCates").getElementsByTagName("dl")[0]};h=m.merge(h,{defaultLines:d.getAttribute(h.toggler,"defaultLines")||0,count:d.getAttribute(h.toggler,"count")||0,toggleLink:h.toggler.getElementsByTagName("a")[0],mixType:d.getAncestorByClassName("J_AllCates","mixed-type"),container:p});h.count=h.count||(h.defaultLines?(h.defaultLines*4-(h.mixType?1:0)):0);h.toggleSpan=h.toggleLink.getElementsByTagName("span")[0];if(h.count%4==0){l="expand"}if(h.allCates.getElementsByTagName("dd").length%4!=0){g="collapse"}q?this.close():this.open();d.setStyle(h.allCates,"height","");o.on(h.toggler,"click",function(r){o.stopEvent(r);d.hasClass(h.toggleLink,"close")?this.open():this.close()},this,true)};var e=function(p){c.push(p);p.style.display="none"};var i=function(){while(c.length){c.pop().style.display=""}};j.ToggleCate={open:function(){i();h.toggleSpan.innerHTML="收起";d.replaceClass(h.toggleLink,"close","open");d.removeClass(h.container,l);d.addClass(h.container,g)},close:function(){h.toggleSpan.innerHTML="显示全部分类";if(h.count){var r=h.allCates.getElementsByTagName("dd");for(var q=h.count,p=r.length;q<p;q++){e(r[q])}}else{e(h.allCates)}d.replaceClass(h.toggleLink,"open","close");d.removeClass(h.container,g);d.addClass(h.container,l)},init:n}});TB.SRP.add("ToggleAttr",function(h){var d=YAHOO.util,c=d.Dom,s=d.Event;var m=YAHOO.env.ua;var r=function(t){t.innerHTML="更多";c.replaceClass(t,"open","close");c.setStyle(t.wrapper,"display","none")};var i=function(t){t.innerHTML="收起";c.replaceClass(t,"close","open");c.setStyle(t.wrapper,"display","")};var e,g,j,l,p=m.webkit;var o,n,q;var f=h.ToggleAttr={init:function(){var t=c.get("auto-recommend");if(!t){return}c.batch(c.getElementsByClassName("more","a",t),function(v){f.bindList(v)});var u=t.getElementsByTagName("table")[0];if(!u){return c.setStyle(t,"border-bottom","none")}f.fixedWidth(u);o=(function(v){return v&&v.length?v[v.length-1]:null})(u.getElementsByTagName("tr"));c.addClass(o,"last");e=c.get("J_moreProp");if(!e){return}g=c.get("J_ShowMore");if(g&&e){if(e.getElementsByTagName("tr").length==0){c.setStyle([g,e],"display","none");return}f.initAnim();f.bindAnim()}},fixedWidth:function(t,x){if(!p){return}x=x||"";if(!t.tBodies[0]||f[t+x]){return}var w=t.tBodies[0].rows[0].cells[0].clientWidth;if(w==0){return}var v=c.getElementsByClassName("attr-list","div","auto-recommend");var y=(v?677:695)-w;var u=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(u);u.innerText=".cat-panel "+x+" td ul{width:"+y+"px !important}";f[t+x]=true},initAnim:function(){j=g.getElementsByTagName("a")[0];l=j.getElementsByTagName("span")[0];n=(function(t){return t[t.length-1]})(e.getElementsByTagName("tr"));if(f.isOpened()){q=e.offsetHeight;c.removeClass(o,"last");c.addClass(n,"last");f.fixedWidth(e.getElementsByTagName("table")[0],"#J_moreProp")}else{c.setStyle(e,"display","");q=e.offsetHeight;c.setStyle(e,"display","none");c.setStyle(e,"height",0)}this.openAnim=new YAHOO.util.Anim(e,{height:{to:q}},0.3,YAHOO.util.Easing.easeIn);this.openAnim.onStart.subscribe(function(){c.setStyle(e,"display","");this.attributes.height.to=q;c.removeClass(o,"last");c.addClass(n,"last");f.fixedWidth(e.getElementsByTagName("table")[0],"#J_moreProp")});this.openAnim.onComplete.subscribe(function(){l.innerHTML="收起";c.replaceClass(j,"close","open");c.setStyle(e,"height","auto")});this.closeAnim=new YAHOO.util.Anim(e,{height:{to:0}},0.3,YAHOO.util.Easing.easeIn);this.closeAnim.onComplete.subscribe(function(){c.removeClass(n,"last");c.addClass(o,"last");l.innerHTML="更多";c.replaceClass(j,"open","close");c.setStyle(e,"display","none")})},bindAnim:function(){s.on(j,"click",function(t){s.stopEvent(t);if(f.isOpened()){f.closeAnim.animate()}else{f.openAnim.animate()}},this)},bindList:function(t){t.wrapper=c.getElementsByClassName("moreValue","li",t.parentNode)[0];s.on(t,"click",function(u){s.stopEvent(u);(f.isItemOpened(this)?r:i)(this);if(f.isOpened()){q=e.offsetHeight}})},isItemOpened:function(t){return c.hasClass(t,"open")},isOpened:function(){return c.hasClass(j,"open")}}});TB.SRP.add("UserAdvise",function(h){var s=YAHOO.util.Dom,r=YAHOO.util.Event;var q=YAHOO.util,w=YAHOO.lang,A=YAHOO.env.ua;var B=false,y=false;var t,c,n,j;var z=A.ie&&A.ie<7,i=A.ie==8;var p=function(){var G=s.getRegion(t).top+72;var E=500,D=0,F=false,H;var C=new YAHOO.util.Anim(t,{opacity:{to:1}},0.2,YAHOO.util.Easing.easeIn);s.setStyle(t,"top",G+s.getDocumentScrollTop());r.on(window,"scroll",function(){D=s.getDocumentScrollTop();if(!F){C.isAnimated()&&C.stop();s.setStyle(t,"opacity",0);F=true}else{clearTimeout(H);H=setTimeout(function(){if(s.getDocumentScrollTop()==D){s.setStyle(t,"top",G+s.getDocumentScrollTop());C.animate();F=false}},E)}if(B){c.style.top=g[1]+s.getDocumentScrollTop()+"px"}});r.on(t,"mouseover",function(){s.setStyle(t,"left","2px")});r.on(t,"mouseout",function(){s.setStyle(t,"left","0")});j=document.createElement("div");j.className="shadowDiv";c.appendChild(j)};window.feedCallback=function(C){var D=[{msg:"您的提交没有成功，请重新提交，谢谢！"},{msg:"感谢您的反馈！",success:true},{msg:"您提交的过于频繁，感谢您的反馈！"}];var C=D[parseInt(C)||0];alert(C.msg);if(C.success){u()}};var v=function(){var F=s.get("J_inputTip"),D=s.get("J_maxLength"),E=1000;if(!F){return}if(D){E=parseInt(D.innerHTML)||1000}var C=function(){if(this.value.length>E){this.value=this.value.replace(/[\n\s]+$/,"").substr(0,E)}F.innerHTML=this.value.length};r.on("J_AdviseInput",A.ie?"propertychange":"input",C);if(A.ie){r.on("J_AdviseInput","keyup",C);r.on("J_AdviseInput","mouseup",C)}};var g=[0,0],m=[475,375];var x=function(){y=false;B=true;c.style.cssText=c.style.cssText.replace(/(width:|height:|filter:)[^;$]+/ig,"");if(z){n.style.display="block";j.style.display="block"}else{s.addClass(c,"shadow")}};var f=function(){s.getElementsBy(function(D){return D.name=="causes[]"&&(D.checked=false)},"input",c);c.getElementsByTagName("form")[0]["content"].value="";s.get("J_inputTip").innerHTML="0";var C=YAHOO.util.Region.getRegion(t);c.style.left=C.left+"px";c.style.top=C.top+"px";c.style.width=C.width+"px";c.style.height=C.height+"px";!i&&s.setStyle(c,"opacity","0.2");if(!z){c.style.top=C.y-s.getDocumentScrollTop()+"px"}c.style.display="block";y=true};var l=function(){y=true;if(z){n.style.display="none";j.style.display="none"}else{s.removeClass(c,"shadow")}};var d=function(){y=false;B=false;c.style.display="none"};var u=function(){var E=YAHOO.util.Region.getRegion(t);var D={width:{to:E.width},height:{to:E.height},top:{to:E.y},left:{to:E.x}};if(!i){D.opacity={to:0.2}}if(!z){D.top={to:E.y-s.getDocumentScrollTop()}}var C=new YAHOO.util.Anim(c,D,0.3,YAHOO.util.Easing.easeBoth);C.onStart.subscribe(l);C.onComplete.subscribe(d);C.animate()};var e=function(){g=[Math.max((s.getViewportWidth()-m[0])/2,0),Math.max((s.getViewportHeight()-m[1])/2,0)];var D={width:{to:m[0]},height:{to:m[1]},top:{to:g[1]},left:{to:g[0]}};if(!i){D.opacity={to:1}}if(z){D.top={to:g[1]+s.getDocumentScrollTop()}}var C=new YAHOO.util.Anim(c,D,0.3,YAHOO.util.Easing.easeBoth);C.onStart.subscribe(f);C.onComplete.subscribe(x);C.animate()};var o=function(C){document.domain="taobao.com";this.form.action+="?nk="+(unescape(decodeURIComponent(YAHOO.util.Cookie.get("_nk_")||"").replace(/\\u/g,"%u")));if(!w.trim(this.form.content.value)){alert("请输入您对淘宝搜索的建议！");r.stopEvent(C)}r.removeListener(this,"click",arguments.callee);r.on(this,"click",function(D){if(!w.trim(this.form.content.value)){alert("请输入您对淘宝搜索的建议！");r.stopEvent(D)}})};h.UserAdvise={init:function(){c=s.get("J_adviseForm");t=s.get("J_advise");if(!c||!t){return}t=t.parentNode;n=c.getElementsByTagName("iframe")[0];document.body.appendChild(c);document.body.appendChild(t);if(z){p()}v();r.on(c.getElementsByTagName("button")[0],"click",o);r.on(t,"click",function(C){r.stopEvent(C);if(y){return}B?u():e()});r.on("J_closeForm","click",function(C){r.stopEvent(C);if(!B||y){return}u()})}}});TB.SRP.add("Popup",function(d){function c(){var i=YAHOO.util,m=i.Dom,l=i.Event;var e=function(o){var p=-1,n=o.length;while(o.charCodeAt(--n)<33){}while(o.charCodeAt(++p)<33){}return o.slice(p,n+1)};var h=m.getElementsByClassName("discount","A","list:content");if(0<h.length){l.on(h,"click",function(n){l.stopEvent(n)});var g=document.createElement("div");g.className="favorable-popup";g.id="promotion_popup";g.style.display="none";var f=document.createElement("div");f.className="favorable-popup-content";f.id="promotion_popup_content";f.innerHTML="折扣信息读取中...";var j=document.createElement("s");j.className="favorable-popup-arrow";j.innerHTML="<s></s>";g.appendChild(f);g.appendChild(j);document.body.appendChild(g);TB.widget.SimplePopup.decorate(h,"promotion_popup",{eventType:"mouse",disableClick:false,offset:[-17,18],autoFit:false,onShow:function(){var s="",w=this.trigger.getAttribute("data-vip"),r=this.trigger.getAttribute("data-discount"),v=this.trigger.getAttribute("data-combo"),z=this.trigger.getAttribute("data-limit");if(this.trigger.className.indexOf("J_LimitPromotion")>-1){var u,A;u=this.trigger.getAttribute("data-auctionid");A=this.trigger.getAttribute("data-userid");if(A&&u){var o="http://tbskip."+TB.bom.pickDocumentDomain(2)+"/limit_promotion_item.htm?auctionId="+u+"&userId="+A;if(typeof TESTURL!=="undefined"){o=TESTURL}YAHOO.util.Get.script(o,{onSuccess:function(){var B=TB["LimitPromotion_"+u+"_"+A];if(typeof B!=="undefined"){var D=B.split(";");var C='<ul><li><span style="float:right;color:#f60;padding-right:48px;">'+D[0]+'</span><span class="fav-card-icon favcard-limit favcard-small favcard-small-long-v2">限时打折</span></li><li style="color:black;">'+D[1]+" 折 "+D[2]+" 元</li></ul>";f.innerHTML=C}},timeout:10000,autopurge:true,charset:document.charset||document.characterSet||"gb2312"})}}else{if(null!==w){w=e(w);if(""!==w){var n=["金　卡","白金卡","钻石卡"],q=w.split(";");var p=n.length;if(p===q.length){s+='<p><span class="fav-card-icon favcard-vip favcard-small">VIP</span></p><ul>';for(var x=0;x<p;x++){var t=q[x].split(":");s+="<li><span>"+n[x]+"：</span> <span>"+t[0]+"</span> 折 <span>"+t[1]+"</span> 元</li>"}s+="</ul>"}}}if(null!==r){r=e(r);if(""!==r){if(""!==s){s+="<hr />"}var y=r.split(";");var p=y.length;if(0<p){s+="<ul>";for(var x=0;x<p;x++){var t=y[x];if(t!==""&&t!==null&&t!==undefined){s+='<li><span class="fav-card-icon favcard-cash-'+t+' favcard-small favcard-small-long">'+t+"元抵价券</span> 支持"+t+"元抵价券</li>"}}s+="</ul>"}}}if(null!==v){v=e(v);if("true"===v){if(""!==s){s+="<hr />"}s+='<span class="fav-card-icon favcard-combo favcard-small favcard-small-medium">搭配购买</span>搭配购买享受折扣'}}}if(""!==s){f.innerHTML=s}else{f.innerHTML="折扣信息读取出错！"}}})}}d.Popup={init:function(){c()}}});TB.SRP.add("Help",function(g){var n=YAHOO.util.Dom,l=YAHOO.util.Event;var m=YAHOO.env.ua,j=YAHOO.lang;var p=m.ie,h=(p===6);function o(C,x){for(var A=C.length>>1;A>0;A>>=1){for(var z=0;z<A;++z){for(var y=z+A;y<C.length;y+=A){var w=y,B=C[y],v=B[x];while(w>=A&&C[w-A][x]>v){C[w]=C[w-A];w-=A}C[w]=B}}}}function f(w,x){for(var v in x){n.setStyle(w,v,x[v])}}var s=[],u=false;function c(w,y){var x=j.merge({position:"absolute","z-index":90000,top:0,overflow:"hidden",left:0,opacity:0.5,background:"#000",width:n.getDocumentWidth()+"px",height:n.getDocumentHeight()+"px"},w||{});var v=document.createElement("div");f(v,x);s.push(v);if(y&&h){var z=document.createElement("iframe");f(z,j.merge(x,{"z-index":x["z-index"]-1,opacity:0}));s.push(z)}return v}var t=['<div class="tip-container {pos}" id="tips-{i}" style="position:absolute;z-index:{zIndex};top:{top}px;left:{left}px">','<span class="l"></span>','<span class="r"></span>',"<h3>{title}</h3>","<p>{detail}</p>","<i></i>","</div>"].join("");function i(w,C){var B=document.createElement("div");B.id="J_Tip_Container";for(var v=0;v<w.length;v++){if(!n.get(w[v])){continue}var x=w[v],y=n.getRegion(x),A=n.getAttribute(x,"_pos")||"top",z={title:n.getAttribute(x,"_title")||"",detail:n.getAttribute(x,"_detail")||"",zIndex:++C,top:(A=="top"?y.top:y.bottom),left:y.left,pos:A,i:v};B.innerHTML+=t.replace(/{([^}]+)}/ig,function(D,E){return z[E]})}s.push(B);return B}function d(){var A=n.get("J_Tip_Container");if(!A){return}for(var z=0,B=n.getElementsByClassName("tip-container","div",A),w=B.length;z<w;z++){var v=B[z],E=v.offsetHeight,C=n.hasClass(v,"top");var D=v.getElementsByTagName("i")[0];var y=D.offsetHeight;var x=C?parseInt(n.getStyle(D,"bottom"))-E:-parseInt(n.getStyle(D,"top"));n.setStyle(v,"top",parseInt(n.getStyle(v,"top"))+x+"px");n.setStyle(v,"left",parseInt(n.getStyle(v,"left"))-parseInt(n.getStyle(D,"left"))+"px")}}function e(){var w=document.createDocumentFragment();for(var x=0,v=s.length;x<v;x++){w.appendChild(s[x])}document.body.appendChild(w);d();u=true}function r(){var v;while(v=s.pop()){document.body.removeChild(v)}u=false}function q(A){r();var w=[];if(!j.isArray(A)){A=[A]}for(var B=0,x;B<A.length;B++){if(x=n.getRegion(A[B])){w.push(x)}}if(!w.length){return}o(w,"top");var E=[];var v=[],F=n.getDocumentWidth(),z=n.getDocumentHeight();for(var B=0,y=w.length;B<y;B++){var D=w[B];if(B==0){v.push([0,0,F,D.top])}v.push([0,D.top,D.left,D.bottom-D.top]);v.push([D.right,D.top,F-D.right,D.bottom-D.top]);if(B==y-1){v.push([0,D.bottom,F,z-D.bottom])}else{v.push([0,D.bottom,F,w[B+1]["top"]-D.bottom])}}for(var B=0,y=v.length;B<y;B++){var G=v[B];var C={left:G[0]+"px",top:G[1]+"px",width:G[2]+"px",height:G[3]+"px"};c(C)}l.on(c({"z-index":99999,opacity:0},true),"click",function(){l.removeListener(this,"click",arguments.calee);r()});i(A,99999);e()}g.Help={init:function(w,v){if(!n.get(w)){return}l.on(w,"click",function(x){l.stopEvent(x);q(v);l.on(window,"resize",function(){if(!u){return}q(v)})})}}});TB.SRP.add("GoTopTrigger",function(f){var n=YAHOO.util,s=YAHOO.lang,B=YAHOO.env.ua,y=n.Anim,w=n.Dom,v=n.Event;var D=document,l=D.body;var r=(0<B.ie),q=(6==B.ie),d=(+new Date).toString();var C={},t=null,h=true,z,g,c;var m=function(){return B.webkit?l:D.documentElement};var p=950,x=5,o=w.getViewportHeight(),e=w.getDocumentHeight(),u=w.getViewportWidth(),j=Math.floor((u-p)/2)+960;var A=null;if(q){A=function(F){c=m().scrollTop;var E=Math.floor(0.4*o)+c;if(F){w.setStyle(t,"top",E+"px");return}w.setStyle(t,"left",j+"px");w.setStyle(t,"top",E+"px")}}else{A=function(){w.setStyle(t,"left",j+"px")}}var i=function(){t=D.createElement("div");t.className="go-top";var F=D.createElement("a");var G=D.createElement("span");A();F.appendChild(G);t.appendChild(F);l.appendChild(t);anime=new y(t,{opacity:{from:0,to:1}},0.5);scrollTimer=s.later(0,this,function(){});isHidden=true;if(q){v.on(window,"scroll",function(){scrollTimer.cancel();if(!isHidden){w.setStyle(t,"opacity","0");isHidden=true}scrollTimer=s.later(1000,this,function(){A(true);if(c&&isHidden){w.setStyle(t,"opacity","1");isHidden=false}else{w.setStyle(t,"opacity","0");isHidden=true}})})}else{v.on(window,"scroll",function(){if(isHidden){anime.animate();isHidden=false}scrollTimer.cancel();scrollTimer=s.later(500,this,function(){if(!isHidden&&!m().scrollTop){w.setStyle(t,"opacity","0");isHidden=true}})})}var E=s.later(0,this,function(){});v.on(window,"resize",function(){E.cancel();E=s.later(0,this,A)});v.on(F,"click",function(H){v.preventDefault(H);m().scrollTop=0})};f.GoTopTrigger={init:i}});TB.SRP.add("MoreIcons",function(e){var h=YAHOO.util.Dom,g=YAHOO.util.Event,c=YAHOO.lang;var i=function(j){clearTimeout(this.scrollTimer);h.setStyle(j,"display","block")};var d=function(j){this.scrollTimer=setTimeout(function(){h.setStyle(j,"display","none")},500)};var f=function(){var j=h.getElementsByClassName("icon-trigger","span","list:content");if(0<j.length){g.on(j,"mouseover",function(m){var l=h.getPreviousSiblingBy(this,function(o){return h.hasClass(o,"icon-wrapper")});if(!l){return}i.call(this,l);g.removeListener(this,"mouseover",arguments.callee);g.on(this,"mouseover",function(){i.call(this,l)});g.on(this,"mouseout",function(){d.call(this,l)});var n=this;g.on(l,"mouseover",function(o){i.call(n,this)});g.on(l,"mouseout",function(p){var o=g.getRelatedTarget(p);if(this!=o&&!h.isAncestor(this,o)){d.call(n,this)}})})}};e.MoreIcons={init:f}});TB.SRP.add("TabSelector",function(c){var e=YAHOO.util.Dom,d=YAHOO.util.Event;c.TabSelector={init:function(i,f){if(!e.get(i)){return}var g=e.get(i).getElementsByTagName("ul");if(g.length==0||g[0].getElementsByTagName("li").length==0){return}d.on(g[0],"click",function(j){d.stopEvent(j)});var h=TB.widget.SimpleTab.decorate(i,{eventType:"mouse",tabPanelClass:f,autoSwitchToFirst:true,currentClass:"selected"})}}});TB.SRP.ready(function(){var d=YAHOO.util.Dom,c=TB.SRP;c.TabSelector.init("Rank:Tab","rank-list");c.SearchUtil.init({autoFocus:d.getAttribute("title","autofocus")!="false"});c.ToggleCate.init(true);c.ToggleAttr.init();c.Small2Big.init();c.FilterBar.init();KISSY.ImageLazyload("list:content",{mod:"manual",diff:1000});c.UserAdvise.init();c.MoreIcons.init();c.Popup.init();c.SearchUtil.init({form:"J_searchForm2",tab:"J_SearchTab2",catBox:"",autoSuggest:false,autoFocus:false});c.Help.init("J_TipHandler",["J_Nav","J_RankLink","J_combine","J_bySale"]);c.GoTopTrigger.init()})})();TB.namespace("ww");(function(){var e=YAHOO.util,c=e.Dom,t=e.Event,i=e.Lang;var n="J_WangWangScript";var s=/tbww_v1.2(\.source)?\.js(\??[^#]*)/;var p="http://web2.im.alisoft.com";var h="http://amos.im.alisoft.com";var f="http://webwwtb.im.alisoft.com";var j="http://a.tbcdn.cn";var m=h+"/muliuserstatus.aw?beginnum=0&site=cntaobao&charset=utf-8&uids=";var o=h+"/online.aw?v=2&site=cntaobao&charset=utf-8&uid=";var l=p+"/GetData/GetTribeInfoByKeywords?site=cntaobao&v=2";var d=p+"/GetData/GetTribeInfoByUid?site=cntaobao&v=2";var b=j+"/sys/wangwang/website.js?t=20090319.js";var q="chrome://wangwangapi/content/api.js";window.online=[];window.tracenick=window.tracenick||"";window.clearWW=function(){var u=c.get("webWWFrame");if(u){u.parentNode.removeChild(u)}};var a="点此可以直接和卖家\n交流选好的宝贝，或\n相互交流网购体验，\n还支持语音视频噢。";var g=100;var r={};r.installed=false;r.version="";r._onStatusDataLoadEvent=new e.CustomEvent("statusDataLoad",r,false,e.CustomEvent.FLAT);r.light=function(v,u){var w=r.getParamsFromData(v);v.appendChild(r._buildWWLink(w,u))};r.lightByIcon=function(u,w){var z=r.getParamsFromData(u);var y=o+encodeURIComponent(z.nick);y+="&s="+((z.icon&&z.icon.toLowerCase()=="small")?2:1);if(z&&z.nick){var v='<img src="'+y+'" border="0" />';var x=r._buildWWLink(z);x.innerHTML=v;u.innerHTML="";u.appendChild(x)}};r.getParamsFromData=function(u){var v={};if(c.hasClass(u,"J_WangWang")){v.nick=u.getAttribute("data-nick");if(u.getAttribute("data-item")){v.item=u.getAttribute("data-item")}v.display=u.getAttribute("data-display");v.icon=u.getAttribute("data-icon");if(!v.tnick){v.tnick=v.nick}}else{if(c.hasClass(u,"ww:token")){v=u.getAttribute("ww:params").toQueryParams()}}i.augmentObject(v,r._scriptParams,false);return v};r._buildWWLink=function(x,y){var B=x.icon?x.icon.toLowerCase():"large";var z=x.display?x.display.toLowerCase():"block";var u=x.nick||"";var D=x.tnick||"";var C=x.item||window._item||"";var w=x.oid||"";var A=document.createElement("a");A.href="javascript: void(0);";A.setAttribute("target","_blank");if(y==1){c.addClass(A,"ww-online");A.title=a;A.innerHTML="<span>旺旺在线</span>"}else{if(y==4||y==5){c.addClass(A,"ww-mobile");A.innerHTML="<span>手机在线</span>"}else{if(y==0||y==2||y==3||y==6){c.addClass(A,"ww-offline");A.innerHTML="<span>旺旺离线</span>"}}}if(typeof y!="undefined"){c.addClass(A,"ww-"+B);c.addClass(A,"ww-"+z)}if(r.installed){if(window.onlinewangWangSend){A.onclick=function(){var E="nick="+u+"&uid_t="+D+"&status="+y+"&gid="+C+"&suid="+window.tracenick;if(w){E+="&oid="+w}onlinewangWangSend("cntaobao",window.tracenick,"cntaobao",u,y,E);return false}}else{if(YAHOO.env.ua.gecko){var v;if(r.installed&1){v="aliim:sendmsg?touid=cntaobao"+u+"&uid="+window.tracenick+"&gid="+C}else{if(r.installed&2){v="wangwang:SendIM?uid="+u+"&uid_t="+D+"&suid="+window.tracenick+"&gid="+C}else{if(r.installed&4){v="alitalk:SendIM?uid="+u+"&AliLoginID="+window.tracenick+"&gid="+C}}}A.target="_self";t.on(A,"click",function(E){window.location=v;t.preventDefault(E)})}}}else{A.target="_blank";A.href=f+"/wangwang/ww1.htm?t="+new Date().getTime()+"&uid="+escape(window.tracenick)+"&tid="+escape(u);if(YAHOO.env.ua.gecko){A.onclick=function(E){E.target.target="_blank";return true}}else{A.onclick=function(E){window.open(A.href,"","width=0,height=0,left=0,top=0,location=yes,menubar=yes,toolbar=yes,status=yes,resizable=yes,scrollbars=yes");return false}}}return A};r.login=function(v){if(i.isString(v)&&v.trim().length>1&&r.installed){try{var w="wangwang:login?suid="+v+"&autologin=1&auto=1";var u=window.frames.aliwangwangSendmsgShowFrame;if(!u){u=document.createElement("iframe");document.body.appendChild(u);iframe.setAttribute("target","_blank");iframe.setAttribute("src",w)}else{u.location=w}}catch(x){}}};r.talk=function(u,v){v=v||{};if(i.isString(u)&&u.trim().length>1&&r.installed){var w="nick="+u+"&suid="+window.tracenick;for(k in v){w+="&"+k+"="+v[k]}onlinewangWangSend("cntaobao",window.tracenick,"cntaobao",u,v.status||1,w)}};r.loadTribes=function(u){var w="";if(u.keywords){w=l+"&keywords="+u.keywords}else{if(u.uid){w=d+"&uid="+u.uid+"&type="+u.type}else{return}}if(u.count){w+="&count="+u.count}var v=c.generateId(null,"tribe");window["display_"+v]=function(){u.callback(window[v+"Obj"])};w+="&name="+v;var x=(document.charset||document.characterSet).toLowerCase();e.Get.script(w,{onSuccess:function(){},varName:v+"Obj",charset:x})};r.buildTribeLink=function(x,w){var u=w;if(w.length>9){u=w.substr(0,7)+"..."}var y="http://www2.im.alisoft.com/webim/tribe/tribe_detail.htm?userId=cntaobao&tribeId="+x;var v="window.open('"+y+"', '_blank', 'height=400, width=500, top=60, left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no'); return false;";return'<a href="#" onclick="'+v+'" target="_blank" title="'+w+'">'+u+"</a>"};r._statusMap={};r.lightAll=function(F,J){if(J){this._scriptParams=i.merge(this._scriptParams,J)}var G=c.getElementsByClassName("ww:token","span",c.get(F));var I=c.getElementsByClassName("J_WangWang","span",c.get(F));G=G.concat(I);if(G.length==0){return}var B=[],O,N;for(var K=0;K<G.length;K++){N=r.getParamsFromData(G[K]);O=N.nick||"";G[K].setAttribute("ww:nick",O);B.push(O)}var z=function(R){var S=R.data.nicks,Q=R.data.tokens;for(var P=0;P<S.length;P++){r._statusMap[S[P]]=window.online[P]}r._onStatusDataLoadEvent.fire(Q);if(r.doAfterStatusDataLoad){r.doAfterStatusDataLoad(window.online||[])}window.online.length=0;if(R.data.next){R.data.next()}};var A=function(Q,S,R){var P=m;P+=encodeURIComponent(Q.join(";"));e.Get.script(P,{onSuccess:z,varName:"online",data:{tokens:S,nicks:Q,next:R},charset:"utf-8"})};var v=1800;var u=[];var w=[];var D="",C=0,E=0;for(var H=0,L=B.length;H<L;++H){if(x(D+B[H])||H>g-1||H==L-1){var y=(H==L-1)?L:H;u[E]=B.slice(C,y);w[E]=G.slice(C,y);D="";C=H;E++}D+=B[H]+";"}M(0);function M(P){A(u[P],w[P],function(){E--;if(E){M(P+1)}})}function x(P){if(YAHOO.env.ua.ie){return encodeURIComponent(P).length>v}return false}};r._autoLight=function(){r.lightAll(document.body)};r._init=function(){(function(y,A){A=A||document;var z=A.createElement("style");z.type="text/css";A.getElementsByTagName("head")[0].appendChild(z);if(z.styleSheet){z.styleSheet.cssText=y}else{z.appendChild(A.createTextNode(y))}})(".ww-online,.ww-offline,.ww-mobile{background-image:url(http://a.tbcdn.cn/sys/wangwang/wangwang_v2.gif)!important;background-repeat:no-repeat;text-decoration:none!important;zoom:1;}.ww-online span,.ww-offline span,.ww-mobile span{visibility:hidden!important;*text-indent:-9999em!important;white-space:nowrap!important;}.ww-online{background-position-y:0;}.ww-offline{background-position-y:-20px;}.ww-mobile{background-position-y:-40px;}html>body .ww-online.ww-large{background-position:0 0;}html>body .ww-online.ww-small{background-position:100% 0;}html>body .ww-offline.ww-large{background-position:0 -20px;}html>body .ww-offline.ww-small{background-position:100% -20px;}html>body .ww-mobile.ww-large{background-position:0 -40px;}html>body .ww-mobile.ww-small{background-position:100% -40px;}.ww-large{width:67px;height:20px;background-position-x:0;}.ww-small{width:20px;height:20px;background-position-x:100%;}.ww-block{display:block;overflow:hidden;margin-top:3px;}.ww-inline{display:inline-block;vertical-align:text-bottom;overflow:hidden;}");if(YAHOO.env.ua.ie){e.Get.script(b,{onSuccess:function(){try{if(-1!=checkIMVersionNoMsg("cntaobao")){r.installed=true}}catch(y){}}})}else{if(YAHOO.env.ua.gecko){e.Get.script(q,{onSuccess:function(){try{r.installed=0;if("undefined"!==typeof AliIM&&Object===AliIM.constructor){r.installed+=1}if("undefined"!==typeof WangWang&&Object===WangWang.constructor){r.installed+=2}if("undefined"!==typeof AliTalk&&Object===AliTalk.constructor){r.installed+=4}}catch(y){}}})}}var u;try{u=document.createElement('<iframe name="aliwangwangSendmsgShowFrame" frameborder="0" src="javascript:false">')}catch(x){u=document.createElement("iframe");u.setAttribute("frameBorder","0");u.name="aliwangwangSendmsgShowFrame";u.src="about:blank"}u.id="aliwangwangSendmsgShowFrame";u.className="hidden";u.style.width=u.style.height=0;c.setStyle(u,"display","none");try{c.insertBefore(u,document.body.firstChild)}catch(x){t.on(window,"load",function(){document.body.appendChild(u)})}var v=function(){var H,y,K="",I;try{I=c.get(n)}catch(J){}var C=I?[I]:document.getElementsByTagName("script");for(var G=0,z=C.length;G<z;++G){y=C[G].getAttribute("src");if(y&&(H=y.match(s))!=null){K=H.length>2?H[2].slice(1):""}}var B={},F=K.split("&"),E;for(var D=0,A=F.length;D<A;++D){if(!F[D]){continue}E=F[D].split("=");B[E[0]]=E[1]}return B};var w=v();if(w.auto!="false"){t.onDOMReady(r._autoLight)}r._scriptParams=w;r._onStatusDataLoadEvent.subscribe(function(z){for(var y=0;y<z.length;y++){r.light(z[y],r._statusMap[z[y].getAttribute("ww:nick")]);z[y].removeAttribute("ww:nick")}})};r._init();TB.ww=r})();