(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(g){}}finally{try{c[f]()}catch(g){}}};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(t,v){var r=t.q.parentNode;TB.Suggest.prototype._setContainerRegion=function(){var H=c.getRegion(r);var J=H.left,G=H.right-J-2,I=H.bottom-1;if(d){if(d==8){J++}if(d==7){J-=2}if(d==6){I++}}else{J++}this.container.style.left=J+"px";this.container.style.top=I+"px";this.container.style.width=G+"px"};var D=t.q.sug=new TB.Suggest(t.q,"http://suggest.taobao.com/sug",{showCloseBtn:true,resultFormat:"\u7ea6%result%\u4ef6\u5b9d\u8d1d",useShim:false});var q=TB.Suggest.prototype.show;TB.Suggest.prototype.show=function(){var G=t.q.curTab;if(G&&c.getAttribute(G,"_autoSuggest")==="false"){return}q.call(this)};var E=false;var B=false;var x=TB.Suggest.prototype.hide;TB.Suggest.prototype.hide=function(){if(!E){x.call(this);if(B){p.removeListener(document.body,"mouseover",y);B=false}}};var A=TB.Suggest.prototype.show;TB.Suggest.prototype.show=function(){if(typeof z=="function"){z.call(this)}A.call(this)};var y=function(K){var H=c.get("J_MultiSearch_Item");if(!H){return}var J=p.getTarget(K);var I=p.getRelatedTarget(K);if(H==J||c.isAncestor(H,J)){E=true;D._removeSelectedItem()}else{if(H==I||c.isAncestor(H,I)){E=false;D.textInput.focus();if(D.textInput.createTextRange){var G=D.textInput.createTextRange();G.moveEnd("character",D.textInput.value.length);G.collapse(false);G.select()}}}};var C=D.container.onmousedown;D.container.onmousedown=function(I){I=I||window.event;var H=I.target||I.srcElement;var G=c.get("J_MultiSearch_Item");if(!G||(G!=H&&!c.isAncestor(G,H))){return C.call(D,I)}};var F=[];var s=function(){this.value=this.value.trim();c.removeClass(this,"blur");if(this.value==c.getAttribute(this,"_default")){this.value=""}};var u=function(G){this.value=this.value.trim();if(this.value==c.getAttribute(this,"_default")||this.value==""){c.addClass(this,"blur");this.value=c.getAttribute(this,"_default")||"";if(G){F[c.getAttribute(this,"index")]=null}}else{F[c.getAttribute(this,"index")]=this.value}};p.on(D.container,"focusin",function(H){var G=p.getTarget(H);if(G.tagName.toUpperCase()=="INPUT"){s.call(G,true)}});p.on(D.container,"focusout",function(H){var G=p.getTarget(H);if(G.tagName.toUpperCase()=="INPUT"){u.call(G,true)}});p.on(D.container,"click",function(H){var G=p.getTarget(H);if(c.hasClass(G,"ms-entry-btn")&&G.tagName.toUpperCase()=="BUTTON"){w=2;z();p.removeListener(D.container,"click",arguments.callee)}});var w=1;var z=function(){var J=c.get("J_Step"+w);if(!J){return false}var I=c.get("J_MultiSearch_Item");if(!I){var K=D.container.lastChild;I=document.createElement("div");I.className="multi-search";I.id="J_MultiSearch_Item";K&&c.hasClass(K,"suggest-bottom")?c.insertBefore(I,K):ct.appendChild(I)}I.innerHTML='<div class="msWrapper step'+w+'">'+J.innerHTML+"</div>";if(w==2){var H=c.getElementsByClassName("input","input",I);for(var M=0,G=H.length;M<G;M++){var L=H[M];c.setAttribute(L,"index",M);u.call(L);if(M==0||F[M]){L.value=M==0?D.textInput.value:F[M];s.call(L)}}var N=I.getElementsByTagName("form");p.on(N,"submit",function(T){var S=[];for(var R=0,P=H.length;R<P;R++){var Q=H[R];s.call(Q);if(c.hasClass(Q,"input")&&Q.value!=""){S.push(Q.value)}}var O=c.getAttribute(this,"_fieldname");if(O&&this[O]){this[O].value=S.join(" + ")}})}if(!B){p.on(document.body,"mouseover",y);B=true}}}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="\u8bf7\u8f93\u5165\u8981\u641c\u7d22\u7684\u5185\u5bb9";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)}else{if(u=="daogou"){g(this,"t","0")}else{if(u=="web"){g(this,"t","5")}}}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){}}var x=c.get(z.tab),w=c.get(z.catBox),C=w&&v.cat;setTimeout(function(){p.on(u,"focus",r);p.on(u,"click",r);p.on(u,"blur",s);p.on(v,"submit",t);if(z.autoSuggest){f(v,w)}},0);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("Login",function(h){var e=YAHOO.util,q=e.Dom,p=e.Event;var j,s,n,m=document.body,d,g=false,l={};l={width:360,height:260,offsetLeft:(q.getViewportWidth()-360)/2,offsetTop:(q.getViewportHeight()-260)/2,loginUrl:"http://login.taobao.com/member/new_mini_login.htm?style=search",redirectTo:window.location.href,stopEvent:true};l.onLogined=function(){window.location.reload(l.redirectTo)};l.onLoginStart=function(){p.on(n,"click",function(x){if(l.stopEvent){p.stopEvent(x)}o()})};var c=new e.CustomEvent("Logined"),v=new e.CustomEvent("LoginStart");var i={setStyle:function(z,x){for(var y in x){q.setStyle(z,y,x[y])}},randomId:function(x,y){var y=y||"SRP_";d=y+ +new Date();x.id=d}};var r=function(){return e.Cookie.get("_l_g_")&&e.Cookie.get("_nk_")};var w=function(){j=setInterval(function(){if(r()){clearTimeout(j);u();c.fire()}},10)};var t=function(){s=document.createElement("div");var x=document.createElement("div"),y=document.createElement("div");q.addClass(x,"loginBox");q.addClass(s,"loginShadow");q.addClass(y,"closeBtn");m.appendChild(s);i.randomId(s);s.appendChild(x);x.appendChild(y);p.on(y,"click",u);f();return x};var u=function(){clearTimeout(j);if(g){m.removeChild(s);g=false}};var f=function(){if(!s){return}q.setStyle(s,"left",l.offsetLeft+"px");q.setStyle(s,"top",l.offsetTop+"px")};var o=function(){u();var x=t(),y=document.createElement("iframe");y.frameBorder=0;y.width=l.width;y.height=l.height;y.src=l.loginUrl;x.appendChild(y);c.subscribe(l.onLogined);w();g=true};h.Login={isLogin:r,showLoginFrame:o,adjustFrame:f,isLogining:g,destroy:u,config:l,init:function(y,x){if(!q.get(y)){return}if(!r()){l=YAHOO.lang.merge(l,x||{});n=y;h.Login.loginButton=y;v.subscribe(l.onLoginStart);v.fire()}}}});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|_60x60|_80x80)\.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,y=YAHOO.lang,G=YAHOO.env.ua,C=p.Anim,i=p.Easing;var K=document,z,l,f;var v=(0<G.ie),u=(6==G.ie),o=(0<G.webkit);var d=false,B=null;var n=function(){if(true===o){n=function(){return l}}else{n=function(){return K.documentElement}}return n()};var x=function(D,E){var M=document.createElement("div");t.addClass(M,"closeFloat");var L=document.createElement("a");L.title=L.innerHTML="\u5173\u95ed\u6d6e\u52a8\u6548\u679c";L.href="#";D.appendChild(M);M.appendChild(L);t.setAttribute(D,"closeHandler",M);r.on(L,"click",function(N){r.stopEvent(N);TB.bom.setCookie("_nflt_",1,365,"taobao.com","/");r.removeListener(window,"scroll",E);t.removeClass(D,"sticky");t.setStyle(M,"display","none")})};var J=function(){if(TB.bom.getCookie("_nflt_")=="1"){return}var D=t.getAncestorByClassName(H.lstToolbar,"toolbarWrapper");if(!D){return}var L=false;var E=function(){var N=t.getY(B),M=n().scrollTop;if(true===L&&N>=M){t.removeClass(D,"sticky");L=false}else{if(false===L&&N<=M){t.addClass(D,"sticky");L=true}}if(L&&u){t.setStyle(D,"top",M+"px")}};r.on(window,"scroll",E);B=K.createElement("div");B.id="filterplaceholder";t.insertBefore(B,D);B.appendChild(D);x(D,E)};var H={};var F=function(M){if(y.isArray(M)){for(var O=M.length-1;O>=0;O--){F(M[O])}return}var D=t.getElementsByClassName("item-list","ul",M)[0];var L=t.getElementsByClassName("select-item","span",M)[0];var P=t.getElementsByClassName("selected","li",M)[0];if(D&&L){L=L.getElementsByTagName("span")[0];var N=H.divFilter[t.getAttribute(D,"_frmfield")];if(N){N.checkItem=function(S,R){var U=t.getAttribute(S.getElementsByTagName("a")[0],"_val");if(R){if(N.value==U){return}var T=S.getElementsByTagName("a")[0]}else{if(N.value!=U){return}var Q=D.getElementsByTagName("a"),T=Q[Q.length-1]}if(!T){return}a(N,"input");N.value=t.getAttribute(T,"_val")||"";L.innerHTML=t.getAttribute(T,"_txt")||T.innerHTML;t.removeClass(P,"selected");t.addClass(P=T.parentNode,"selected")}}r.on(M,"click",function(R){var Q=r.getTarget(R);if(Q.tagName.toLowerCase()!="a"){return}r.stopEvent(R);if(!N||t.getAncestorByClassName(Q,"selected")==P){return}a(N,"input");N.value=t.getAttribute(Q,"_val")||"";L.innerHTML=t.getAttribute(Q,"_txt")||Q.innerHTML;t.removeClass(P,"selected");t.addClass(P=Q.parentNode,"selected");t.removeClass(M,"hover");t.setStyle(D,"display","none");setTimeout(function(){t.setStyle(D,"display","")},0)})}var E=y.later(0,this,function(){});r.on(M,"mouseover",function(Q){E.cancel();E=y.later(200,this,function(){t.addClass(this,"hover")})});r.on(M,"mouseout",function(Q){E.cancel();E=y.later(200,this,function(){t.removeClass(this,"hover")})})};var e=function(){var M=H.divFilter.getElementsByTagName("input");var E=function(){t.addClass(H.submitBtn,"highlight")};var N=v?function(P,O){r.on(P,"propertychange",O)}:function(P,O){r.on(P,"click",O);r.on(P,"input",O)};for(var L=0,D=M.length;L<D;L++){N(M[L],E)}};var c=function(D){var M=c.focusEvt=function(){t.removeClass(this,"blur");if(this.value==t.getAttribute(this,"_default")){this.value=""}};var N=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 L=t.get(D[E]);if(!L||!t.getAttribute(L,"_default")){continue}r.on(L,"focus",M);r.on(L,"blur",N);(function(O){r.on(O.form,"submit",function(P){r.stopEvent(P);M.call(O);this.submit()})})(L);N.call(L)}};var s=function(){var E=H.linkOrderSelector,D=H.ulOrderOptions;r.on(E,"click",function(L){r.stopEvent(L)});r.on(D,"click",function(M){var L=r.getTarget(M);if("a"!==L.tagName.toLowerCase()){return}if(t.hasClass(L.parentNode,"selected")){r.stopEvent(M)}else{t.removeClass(D,"show")}})};var A=function(){var O=H.divFilter;if(t.hasClass(O,"ms-filter")){return}d=t.getAttribute(O,"expand")=="true"?true:false;var P="_xpnd_",D=function(Q){K.cookie=P+"="+Q+"; expires ="+(new Date(+new Date()+2592000000)).toGMTString()+"; path=/; domain=.taobao.com"};if(0<K.cookie.length){var M=K.cookie.match(new RegExp("(^| )"+P+"=([^;]*)(;|$)"));if(null!==M){if("1"===M[2]){d=true}else{d=false}}}if(d){t.addClass(O,"expanded")}else{t.removeClass(O,"expanded")}var L=K.createElement("a");L.id="filterToggle";L.href="#";var N=K.createTextNode((true===d)?"\u6536\u8d77":"\u66f4\u591a");L.appendChild(N);if(true===v){L.hideFocus=true}var E=H.divFilterOptions;E.appendChild(L);r.on(L,"click",function(Q){r.preventDefault(Q);if(true===d){t.removeClass(O,"expanded");N.nodeValue="\u66f4\u591a"}else{t.addClass(O,"expanded");N.nodeValue="\u6536\u8d77"}d=!d;D((true===d)?"1":"0")})};var m=function(){var M=null,L=H.divFilterPrice,E=L.getElementsByTagName("form")[0];var D=t.getElementsBy(function(N){if(N.type==="text"){r.on(N,"focus",function(){M&&M.cancel();t.addClass("J_FilterPrice","price-selected")});r.on(N,"blur",function(){M=y.later(300,null,function(){t.removeClass("J_FilterPrice","price-selected")})});r.on(N,"keyup",function(){var O=this.value;if(!/^\d+\.?\d*$/.test(O)){O=Math.abs(parseFloat(O));this.value=isNaN(O)?"":O}});return true}},"input","J_FilterPrice");r.on(E,"submit",function(Q){var R=D[0].value,O=D[1].value,N="reserve_price";if(!R&&O>0){N+="[0,"+O+"]"}else{if(R>0&&!O){N+="["+R+",]"}else{if(R>=0&&O>=0){if(+R>+O){N+="["+O+","+R+"]"}else{N+="["+R+","+O+"]"}}}}if(N!=="reserve_price"){if(!this["filter"]){var P=document.createElement("input");P.type="hidden";P.id="filter";P.name="filter";this.appendChild(P)}t.get("filter").value=N}else{if(t.get("filter")){t.get("filter").parentNode.removeChild(t.get("filter"))}}})};var w=function(){var L=H.divFilterPrice,E=L.getElementsByTagName("form")[0];var D=t.getElementsBy(function(M){if(M.type=="text"){return true}},"input",L);r.on(H.divComboPrice,"click",function(P){r.stopEvent(P);var O=r.getTarget(P);if(O.tagName.toUpperCase()!="A"||t.hasClass(O,"selected")){return}var N=t.getAttribute(O,"_value");if(N){var M=N.split(",");D[0].value=parseFloat(M[0]);D[1].value=parseFloat(M[1]);a(E,"submit")}})};var I=function(){var M=H.divFilterLocation,D=t.getElementsByClassName("item-list","div",M);var L=t.get("filterCity"),E=L.form;r.on(D,"click",function(O){var N=r.getTarget(O);if(N.tagName.toLowerCase()!="a"){return}r.stopEvent(O);L.value=t.getAttribute(N,"_val")==null?N.innerText||N.textContent||"":t.getAttribute(N,"_val");E.submit()})};var q=function(){var N=H.divFilter,M=N.elements;var O=0;if(H.ulFilterTabBar){var ae=H.ulFilterTabBar.getElementsByTagName("LI");for(var ad=ae.length-1;0<=ad;ad--){var X=ae[ad];if(true===t.hasClass(X,"selected")&&""!==X.getAttribute("data-idx")){O=X.getAttribute("data-idx");break}}}var L=false;var W=M.isnew;if(undefined===W){W=document.createElement("input");W.type="hidden";W.name="isnew";W.value="";N.appendChild(W)}var P=t.get("filterServiceBehalf"),af=t.get("filterServiceCOD"),U=t.get("filterServiceAutoDeliver"),V=t.get("filterServiceTao1Site"),Z=t.get("filterProtectionTruth"),aa=t.get("filterProtectionReturn"),S=t.get("filterProtectionAuthentic"),R=t.get("filterProtectionThunder"),T=t.get("filterProtectionGuarantee"),ab=t.get("filterProtectionQuality");var ac=t.get("filterFinenessNew"),D=t.get("filterFinenessOld"),E=t.get("filterFinenessIdle"),Y=t.get("filterTypeBid"),Q=t.get("filterTypeBuy");r.on([ac,D,E,Y,Q],"click",function(){var ag=this;setTimeout(function(){var ai=ag.id;if(/^filterFineness/.test(ai)){if(t.hasClass(ag,"selected")){if("filterFinenessOld"===ai){if(null!==P){P.checked=false}if(null!==V){V.checked=false}}else{if("filterFinenessIdle"===ai){if(null!==P){P.checked=false}}}}}else{if(/^filterType/.test(ai)){if(t.hasClass(ag,"selected")){if("filterTypeBid"===ai){if(null!==af){af.checked=false}if(null!==U){U.checked=false}if(null!==V){V.checked=false}var aj=g("filterPromotionCoupon"),ah=g("filterPromotionVIP");if(null!==aj){aj.checked=false}if(null!==ah){ah.checked=false}}}}}},0)});r.on(H.divFilterOptions,"click",function(ag){var ak=r.getTarget(ag);if("INPUT"!==ak.nodeName){return}var ah=ak.id;var ai=M.filterFineness,aj=M.atype;switch(true){case /^filterService/.test(ah):if(true===ak.checked){if("filterServiceBehalf"===ah){if(null!==D){ai.checkItem(D)}if(null!==E){ai.checkItem(E)}}else{if(true===/^filterService[CO|Au]/.test(ah)){if(null!==Y){aj.checkItem(Y)}}else{if("filterServiceTao1Site"===ah){if(null!==D){ai.checkItem(D)}if(null!==Y){aj.checkItem(Y)}}}}}break;case /^filterProtection/.test(ah):if("10"===O){r.preventDefault(ag)}else{if("1"===O||"7"===O){if(true===ak.checked){if("filterProtectionQuality"===ah){if(null!==Z){Z.checked=true}if(null!==aa){aa.checked=true}if(null!==S){S.checked=false}if(null!==R){R.checked=false}if(null!==T){T.checked=false}}else{if(true===/^filterProtection[Au|Th|Gu]/.test(ah)){if(null!==ab){ab.checked=false}}}}else{if(true===/^filterProtection[Tr|Re]/.test(ah)){if(null!==ab){ab.checked=false}}}}}break}if(Q&&ak.checked&&/^filterPromotionCoupon|filterPromotionVIP|filterServiceTao1Site$/.test(ah)){aj.checkItem(Q,true)}});r.on(N,"submit",function(ah){r.stopEvent(ah);if(true===L){return}for(var ai=M.length-1;0<=ai;ai--){var ak=M[ai];if("hidden"===ak.type){var aj=M[ak.name];if(undefined!==aj&&undefined!==aj.length){ak.parentNode.removeChild(ak);ak=null}}}var al=M.filterFineness,ag=[];if(""===W.value&&undefined===al){W.parentNode.removeChild(W);W=null}else{if(undefined!==al){if(""!==W.value){ag=W.value.split(",")}if(undefined!==al.length){for(var ai=al.length-1;0<=ai;ai--){var ak=al[ai];if(true===ak.checked&&-1===ag.indexOf(ak.value)){ag.unshift(ak.value)}else{if(false===ak.checked&&-1!==ag.indexOf(ak.value)){ag.splice(ag.indexOf(ak.value),1)}}}}else{if(true===al.checked&&-1===ag.indexOf(al.value)){ag.push(al.value)}else{if(false===al.checked&&-1!==ag.indexOf(al.value)){ag.splice(ag.indexOf(al.value),1)}}}if(0===ag.length){W.parentNode.removeChild(W);W=null}else{W.value=ag.valueOf()}}}N.submit();L=true})};var j=function(){H={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"),divComboPrice:g("J_Combo_Price")};l=K.body,f=K.forms;z=K.documentElement||l;if(z.clientHeight!==z.scrollHeight&&H.lstToolbar){J()}c(["filterSearchKeyWord","filterExclude","filterCity"]);if(H.FilterWrapper){F(t.getElementsByClassName("hoverMenu","li",H.FilterWrapper));r.on(H.FilterWrapper,"click",function(E){var D=r.getTarget(E);if("filterServiceWWOnline"==D.id){if(D.checked){t.addClass(D.nextSibling,"online")}else{t.removeClass(D.nextSibling,"online")}}})}if(H.divFilter&&H.submitBtn){e()}if(H.linkOrderSelector&&H.ulOrderOptions){s()}if(H.divFilter&&H.divFilterOptions){q();A()}if(H.divFilterPrice){m()}if(H.divFilterLocation){I()}if(H.divComboPrice){w()}};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.getPreviousSiblingBy(p,function(r){return d.hasClass(r,"attr-wrapper")})){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="\u6536\u8d77";d.replaceClass(h.toggleLink,"close","open");d.removeClass(h.container,l);d.addClass(h.container,g)},close:function(){h.toggleSpan.innerHTML="\u663e\u793a\u5168\u90e8\u5206\u7c7b";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="\u66f4\u591a";c.replaceClass(t,"open","close");c.setStyle(t.wrapper,"display","none")};var i=function(t){t.innerHTML="\u6536\u8d77";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="\u6536\u8d77";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="\u66f4\u591a";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 t=YAHOO.util.Dom,s=YAHOO.util.Event;var r=YAHOO.util,y=YAHOO.lang,C=YAHOO.env.ua;var F=false,A=false;var u,c,v,o,l;var i;var B=C.ie&&C.ie<7,j=C.ie==8;var q=function(){if(u){var I=t.getRegion(u).top+72;var G=500,E=0,H=false,J;var D=new YAHOO.util.Anim(u,{opacity:{to:1}},0.2,YAHOO.util.Easing.easeIn);t.setStyle(u,"top",I+t.getDocumentScrollTop())}s.on(window,"scroll",function(){if(u){E=t.getDocumentScrollTop();if(!H){D.isAnimated()&&D.stop();t.setStyle(u,"opacity",0);H=true}else{clearTimeout(J);J=setTimeout(function(){if(t.getDocumentScrollTop()==E){t.setStyle(u,"top",I+t.getDocumentScrollTop());D.animate();H=false}},G)}}if(F){c.style.top=g[1]+t.getDocumentScrollTop()+"px"}});if(u){s.on(u,"mouseover",function(){t.setStyle(u,"left","2px")});s.on(u,"mouseout",function(){t.setStyle(u,"left","0")})}l=document.createElement("div");l.className="shadowDiv";c.appendChild(l)};window.feedCallback=function(D){var E=[{msg:"\u60a8\u7684\u63d0\u4ea4\u6ca1\u6709\u6210\u529f\uff0c\u8bf7\u91cd\u65b0\u63d0\u4ea4\uff0c\u8c22\u8c22\uff01"},{msg:"\u611f\u8c22\u60a8\u7684\u53cd\u9988\uff01",success:true},{msg:"\u60a8\u63d0\u4ea4\u7684\u8fc7\u4e8e\u9891\u7e41\uff0c\u611f\u8c22\u60a8\u7684\u53cd\u9988\uff01"}];var D=E[parseInt(D)||0];alert(D.msg);if(D.success){w()}};var x=function(){var H=t.get("J_inputTip"),E=t.get("J_maxLength"),G=1000;if(!H){return}if(E){G=parseInt(E.innerHTML)||1000}var D=function(){if(this.value.length>G){this.value=this.value.replace(/[\n\s]+$/,"").substr(0,G)}H.innerHTML=this.value.length};s.on("J_AdviseInput",C.ie?"propertychange":"input",D);if(C.ie){s.on("J_AdviseInput","keyup",D);s.on("J_AdviseInput","mouseup",D)}};var g=[0,0],n=[475,375];var z=function(){A=false;F=true;c.style.cssText=c.style.cssText.replace(/(width:|height:|filter:)[^;$]+/ig,"");if(B){o.style.display="block";l.style.display="block"}else{t.addClass(c,"shadow")}};var f=function(){t.getElementsBy(function(E){return E.name=="causes[]"&&(E.checked=false)},"input",c);c.getElementsByTagName("form")[0]["content"].value="";t.get("J_inputTip").innerHTML="0";var D=YAHOO.util.Region.getRegion(i);c.style.left=D.left+"px";c.style.top=D.top+"px";c.style.width=D.width+"px";c.style.height=D.height+"px";!j&&t.setStyle(c,"opacity","0.2");if(!B){c.style.top=D.y-t.getDocumentScrollTop()+"px"}c.style.display="block";A=true};var m=function(){A=true;if(B){o.style.display="none";l.style.display="none"}else{t.removeClass(c,"shadow")}};var d=function(){A=false;F=false;c.style.display="none"};var w=function(){var G=YAHOO.util.Region.getRegion(i);var E={width:{to:G.width},height:{to:G.height},top:{to:G.y},left:{to:G.x}};if(!j){E.opacity={to:0.2}}if(!B){E.top={to:G.y-t.getDocumentScrollTop()}}var D=new YAHOO.util.Anim(c,E,0.3,YAHOO.util.Easing.easeBoth);D.onStart.subscribe(m);D.onComplete.subscribe(d);D.animate()};var e=function(D){i=D;g=[Math.max((t.getViewportWidth()-n[0])/2,0),Math.max((t.getViewportHeight()-n[1])/2,0)];var G={width:{to:n[0]},height:{to:n[1]},top:{to:g[1]},left:{to:g[0]}};if(!j){G.opacity={to:1}}if(B){G.top={to:g[1]+t.getDocumentScrollTop()}}var E=new YAHOO.util.Anim(c,G,0.3,YAHOO.util.Easing.easeBoth);E.onStart.subscribe(f);E.onComplete.subscribe(z);E.animate()};var p=function(D){document.domain="taobao.com";this.form.action+="?nk="+(unescape(decodeURIComponent(YAHOO.util.Cookie.get("_nk_")||"").replace(/\\u/g,"%u")));if(!y.trim(this.form.content.value)){alert("\u8bf7\u8f93\u5165\u60a8\u5bf9\u6dd8\u5b9d\u641c\u7d22\u7684\u5efa\u8bae\uff01");s.stopEvent(D)}s.removeListener(this,"click",arguments.callee);s.on(this,"click",function(E){if(!y.trim(this.form.content.value)){alert("\u8bf7\u8f93\u5165\u60a8\u5bf9\u6dd8\u5b9d\u641c\u7d22\u7684\u5efa\u8bae\uff01");s.stopEvent(E)}})};h.UserAdvise={init:function(){c=t.get("J_adviseForm");v=t.get("J_advise");u=t.get("J_advise_side");if(!c||(!u&&!v)){return}o=c.getElementsByTagName("iframe")[0];document.body.appendChild(c);if(u){u=t.getAncestorByClassName(u,"talk");document.body.appendChild(u)}if(B){q()}x();s.on(c.getElementsByTagName("button")[0],"click",p);s.on([u,v],"click",function(D){s.stopEvent(D);if(A){return}F?w():e(this)});s.on("J_closeForm","click",function(D){s.stopEvent(D);if(!F||A){return}w()})}}});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="\u6298\u6263\u4fe1\u606f\u8bfb\u53d6\u4e2d...";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">\u9650\u65f6\u6253\u6298</span></li><li style="color:black;">'+D[1]+" \u6298 "+D[2]+" \u5143</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=["\u9ec4\u91d1\u5361","\u767d\u91d1\u5361","\u94bb\u77f3\u5361"],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]+"\uff1a</span> <span>"+t[0]+"</span> \u6298 <span>"+t[1]+"</span> \u5143</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+"\u5143\u62b5\u4ef7\u5238</span> \u652f\u6301"+t+"\u5143\u62b5\u4ef7\u5238</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">\u642d\u914d\u8d2d\u4e70</span>\u642d\u914d\u8d2d\u4e70\u4eab\u53d7\u6298\u6263'}}}if(""!==s){f.innerHTML=s}else{f.innerHTML="\u6298\u6263\u4fe1\u606f\u8bfb\u53d6\u51fa\u9519\uff01"}}})}}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");n.addClass(v,"split_mask_level");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(x){r();var H=[];if(!j.isArray(x)){x=[x]}for(var L=0,A;L<x.length;L++){if(A=n.getRegion(x[L])){H.push(A)}}if(!H.length){return}o(H,"top");var v=[];var N=[],P=n.getDocumentWidth(),F=n.getDocumentHeight(),K=H.length;var C=[],J=[],I=[],Q=[];for(var L=0;L<K-1;L++){var w=H[L],G;G=H[L+1];Q.push(w);if(G.top>w.bottom){C.push(w)}else{while(H[L]&&H[L+1]&&H[L+1]["top"]<H[L]["bottom"]){I.push(H[L]);I.push(H[++L])}J.push(I);I=[]}}if(K===C.length+1){C.push(H[H.length-1]);Q.push(H[H.length-1])}N.push([0,0,P,H[0]["top"]]);N.push([0,H[K-1]["bottom"],P,F-H[K-1]["bottom"]]);for(var L=0,K=C.length;L<K;L++){var w=C[L];N.push([0,w.top,w.left,w.bottom-w.top]);N.push([w.right,w.top,P-w.right,w.bottom-w.top])}for(var E=0,y=J.length;E<y;E++){var M=J[E];o(M,"left");var D=M[0];N.push([0,D.top,D.left,D.bottom-D.top]);for(var L=0,K=M.length;L<K;L++){var w=M[L];var R=M[L+1]?M[L+1]["left"]:P;N.push([w.right,w.top,R-w.right,w.bottom-w.top])}}for(var L=0,K=Q.length;L<K-1;L++){var w=Q[L];N.push([0,w.bottom,P,Q[L+1]["top"]-w.bottom])}for(var L=0,K=N.length;L<K;L++){var O=N[L];var B={left:O[0]+"px",top:O[1]+"px",width:O[2]+"px",height:O[3]+"px"};c(B)}l.on(c({"z-index":99999,opacity:0},true),"click",function(){l.removeListener(this,"click",arguments.callee);r()});i(x,99999);e()}g.Help={removeHelp:r,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(){var F=w.get("J_No_Gotop");if(F){return}t=D.createElement("div");t.className="go-top";var G=D.createElement("a");var H=D.createElement("span");A();G.appendChild(H);t.appendChild(G);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(G,"click",function(I){v.preventDefault(I);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.add("multiSearch",function(i){var c=YAHOO.util.Dom,o=YAHOO.util.Event,m=YAHOO.lang;var e,n,d=0,h=5;var f=function(){this.value=this.value.trim();c.removeClass(this,"blur");if(this.value==c.getAttribute(this,"_default")){this.value=""}};var g=function(){this.value=this.value.trim();if(this.value==c.getAttribute(this,"_default")||this.value==""){c.addClass(this,"blur");this.value=c.getAttribute(this,"_default")||""}};var l=function(){o.on(e,"focusin",function(r){var q=o.getTarget(r);if(q.tagName.toUpperCase()=="INPUT"){f.call(q)}});o.on(e,"focusout",function(r){var q=o.getTarget(r);if(q.tagName.toUpperCase()=="INPUT"){g.call(q)}});var p=e.getElementsByTagName("form");o.on(p,"submit",function(x){var w=[];var t=c.getElementsByClassName("input","input",e);for(var v=0,s=t.length;v<s;v++){var u=t[v];f.call(u);if(c.hasClass(u,"input")&&u.value!=""){w.push(u.value)}}var r=c.getAttribute(this,"_fieldname");if(r&&this[r]){this[r].value=w.join(" + ")}})};var j=function(){var p="<input type='text' class='input' _default='\u53e6\u4e00\u5b9d\u8d1d' />";var q="<em>+</em>";o.on(n,"click",function(s){o.stopEvent(s);if(++d>h){return}var r=document.createElement("span");r.innerHTML=p;if(d<h){r.innerHTML+=q}else{c.setStyle(n,"display","none")}c.insertBefore(r,n);g.call(r.getElementsByTagName("input")[0])})};i.multiSearch={init:function(r){var q=m.merge({maxCount:5},r||{});e=c.get(q.container);n=c.get(q.addHandler);h=parseInt(q.maxCount);if(!e){return}var p=c.getElementsByClassName("input","input",e);d=p.length;for(var s=0;s<d;s++){g.call(p[s])}l();if(n){j()}}}});TB.SRP.add("ScoreSummary",function(e){var g=YAHOO.util.Dom,f=YAHOO.util.Event,d=YAHOO.lang;var c=function(m){if(!g.get(m)){return}var r=g.getElementsByClassName("score","A",m);if(0===r.length){return}var s=document,p=s.body,o=g.get;var t="hidden",l='<span class="c-value-no c-value-{class}" title="{score}/5.0"></span>{score}';var h=s.createElement("div");h.id="score-popup";h.className=t;h.innerHTML='<h4>\u5e97\u94fa\u52a8\u6001\u8bc4\u5206</h4><ul><li><span>\u5b9d\u8d1d\u4e0e\u63cf\u8ff0\u76f8\u7b26\uff1a</span><a href="#" target="_blank" id="J_ScoreFacticity">0</a></li><li><span>\u5356\u5bb6\u7684\u670d\u52a1\u6001\u5ea6\uff1a</span><a href="#" target="_blank" id="J_ScoreAttitude">0</a></li><li><span>\u5356\u5bb6\u53d1\u8d27\u7684\u901f\u5ea6\uff1a</span><a href="#" target="_blank" id="J_ScoreDelivery">0</a></li></ul>';p.appendChild(h);var q=[o("J_ScoreFacticity"),o("J_ScoreAttitude"),o("J_ScoreDelivery")];var j=d.later(0,this,function(){});f.on(h,"mouseover",function(i){var u=f.getRelatedTarget(i);if(u!==h&&true!==g.isAncestor(h,u)){j.cancel();j=d.later(200,this,function(){g.removeClass(h,t)})}});f.on(h,"mouseout",function(i){var u=f.getRelatedTarget(i);if(u!==h&&true!==g.isAncestor(h,u)){j.cancel();j=d.later(200,this,function(){g.addClass(h,t)})}});for(var n=r.length-1;0<=n;n--){if(null===r[n].getAttribute("data-score")){continue}(function(){var w=n,v=r[w],i=v.getAttribute("href"),u=v.getAttribute("data-score"),x=u.match(/(\d{1}\.\d{1})/g),z=(g.getX(v)-128).toString()+"px",y=(g.getY(v)+5).toString()+"px";f.on(v,"mouseover",function(A){var B=f.getRelatedTarget(A);if(B!==v&&true!==g.isAncestor(v,B)){j.cancel();j=d.later(200,this,function(){g.setStyle(h,"left",z);g.setStyle(h,"top",y);for(var C=0;C<=2;C++){q[C].href=i;q[C].innerHTML=l.replace("{class}",x[C].replace(".0","").replace(".","d")).replace(/\{score\}/g,x[C])}g.removeClass(h,t)})}});f.on(v,"mouseout",function(A){var B=f.getRelatedTarget(A);if(B!==v&&true!==g.isAncestor(v,B)){j.cancel();j=d.later(200,this,function(){g.addClass(h,t)})}});f.on(v,"click",function(A){f.preventDefault(A)})})()}};e.ScoreSummary={init:c}});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.multiSearch.init({container:"J_MS_Form",addHandler:"J_AddItem",maxCount:5});c.ScoreSummary.init("list:content");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_CustomFilter","J_CombineProduct"]);c.GoTopTrigger.init();c.Login.init(["J_CustomFilter","storeFav","storeBuy"],{loginUrl:"http://login.taobao.com/member/new_mini_login.htm?style=search",onLoginStart:function(){var e=YAHOO.util.Event;e.on(c.Login.loginButton,"click",function(f){e.stopEvent(f);c.Login.showLoginFrame()})}});if(typeof p4pVar!="undefined"){TB.p4p.Express.load(p4pVar)}})})();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="\u70b9\u6b64\u53ef\u4ee5\u76f4\u63a5\u548c\u5356\u5bb6\n\u4ea4\u6d41\u9009\u597d\u7684\u5b9d\u8d1d\uff0c\u6216\n\u76f8\u4e92\u4ea4\u6d41\u7f51\u8d2d\u4f53\u9a8c\uff0c\n\u8fd8\u652f\u6301\u8bed\u97f3\u89c6\u9891\u5662\u3002";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>\u65fa\u65fa\u5728\u7ebf</span>"}else{if(y==4||y==5){c.addClass(A,"ww-mobile");A.innerHTML="<span>\u624b\u673a\u5728\u7ebf</span>"}else{if(y==0||y==2||y==3||y==6){c.addClass(A,"ww-offline");A.innerHTML="<span>\u65fa\u65fa\u79bb\u7ebf</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})();
