if(typeof KISSY==="undefined"||!KISSY){function KISSY(b){var a=this;if(!(a instanceof arguments.callee)){return new arguments.callee(b)}a._init();a._config(b);a._setup();return a}}(function(a){var d=window,c="undefined",e=Array.prototype.slice,b=function(k,j,h,n){if(!j||!k){return k}if(typeof h===c){h=true}var g,m,f;if(n&&(f=n.length)){for(g=0;g<f;g++){m=n[g];if(m in j){if(h||!(m in k)){k[m]=j[m]}}}}else{for(m in j){if(h||!(m in k)){k[m]=j[m]}}}return k};b(a.prototype,{add:function(g,i,f,h){a.Env.mods[g]={name:g,fn:i,version:f,details:h||{}};return this},_init:function(){var f=this;f.version="@VERSION@";f.Env={mods:{},_used:{},_attached:{}};f.config={debug:true}},_config:function(f){b(this.config,f)},_setup:function(){this.use("kissy-core")},use:function(){var j=this,s=e.call(arguments,0),u=a.Env.mods,v=j.Env._used,m=s.length,t=s[m-1],p,n,h,g=[];if(typeof t==="function"){s.pop()}else{t=null}if(s[0]==="*"){s=[];for(n in u){s.push(n)}if(t){s.push(t)}return j.use.apply(j,s)}function q(k){if(v[k]){return}var f=u[k],i,o,l;if(f){v[k]=true;l=f.details.submodules}g.push(k);if(l){if(typeof l==="string"){l=[l]}for(i=0,o=l.length;i<o;i++){q(l[i])}}}for(p=0;p<m;p++){q(s[p])}j._attach(g);if(t){t(j)}return j},_attach:function(o){var n=a.Env.mods,k=this.Env._attached,j,g=o.length,h,f;for(j=0;j<g;j++){h=o[j];f=n[h];if(!k[h]&&f){k[h]=true;if(f.fn){f.fn(this)}}}},mix:b,merge:function(){var g=arguments,j={},h,f=g.length;for(h=0;h<f;++h){b(j,g[h],true)}return j},extend:function(j,i,g,m){if(!i||!j){return j}var f=Object.prototype,l=function(p){function n(){}n.prototype=p;return new n()},k=i.prototype,h=l(k);j.prototype=h;h.constructor=j;j.superclass=k;if(i!==Object&&k.constructor===f.constructor){k.constructor=i}if(g){b(h,g)}if(m){b(j,m)}return j},augment:function(h,g,f,i){return b(h.prototype,g.prototype,f,i)},each:function(f,j,k){var g=(f&&f.length)||0,h;for(h=0;h<g;h++){j.call(k||this,f[h],h,f)}return this},ready:function(){},weave:function(h,g,i,j){var f=[i[j],h];if(g==="before"){f.reverse()}i[j]=function(){for(var l=0,k=e.call(arguments,0);l<2;l++){f[l].apply(this,k)}};return this},cloneTo:function(f){function g(h){if(!(this instanceof g)){return new g(h)}g.superclass.constructor.call(this,h)}a.extend(g,a,null,a);return(d[f]=g)},namespace:function(){var g=arguments,f=g.length,n=this,k,h,m;if(typeof n==="object"){n=n.constructor}for(k=0;k<f;k++){m=(""+g[k]).split(".");for(h=(d[m[0]]===n)?1:0;h<m.length;h++){n[m[h]]=n[m[h]]||{};n=n[m[h]]}}return n},log:function(h,f,g){var i=this.config;if(i.debug){g&&(h=g+": "+h);if(typeof console!==c&&console.log){console[f&&console[f]?f:"log"](h)}}return this}});b(a,a.prototype);a._init()})(KISSY);KISSY.add("basic-util",function(c){var f=window,e=document,d=decodeURIComponent,b=navigator.userAgent.toLowerCase(),g=/msie/.test(b)&&!/opera/.test(b),a=function(h){return typeof(h)!=="string"?h:e.getElementById(h)};c.BasicUtil={get:a,getElementsByClassName:function(q,h,k){var m=[],o=(a(k)||e).getElementsByTagName(h||"*"),p=new RegExp("(^| )"+q+"( |$)","i");for(var n=0,j=o.length;n<j;n++){if(p.test(o[n].className)){m.push(o[n])}}return m},hasClass:function(i,h){i=a(i);if(!h||!i.className){return false}return(" "+i.className+" ").indexOf(" "+h+" ")>-1},addClass:function(i,h){if(!h){return}i=a(i);if(this.hasClass(i,h)){return}i.className+=" "+h},removeClass:function(i,h){i=a(i);if(!this.hasClass(i,h)){return}i.className=(" "+i.className+" ").replace(" "+h+" "," ");if(this.hasClass(i,h)){this.removeClass(i,h)}},addEvent:function(){if(f.addEventListener){return function(k,j,i,h){a(k).addEventListener(j,i,!!h)}}else{if(f.attachEvent){return function(j,i,h){a(j).attachEvent("on"+i,function(){h.apply(j)})}}}}(),removeEvent:function(){if(f.removeEventListener){return function(k,j,i,h){k.removeEventListener(j,i,!!h)}}else{if(f.detachEvent){return function(j,i,h){j.detachEvent("on"+i,h)}}}}(),getCookie:function(i){var h=e.cookie.match("(?:^|;)\\s*"+i+"=([^;]*)");return(h&&h[1])?d(h[1]):""},trim:function(h){return h.replace(/^\s+|\s+$/g,"")},parseQueryParams:function(q){var o={},j=q.split("&"),h,r,l,s;for(var m=0,n=j.length;m<n;++m){h=j[m];r=h.indexOf("=");l=h.slice(0,r);s=h.slice(r+1);o[d(l)]=d(s)}return o},pickDomain:function(j,k){k=k||location.hostname;var i=k.split("."),h=i.length;if(h<=2){return k}j=j||1;if(j>h-2){j=h-2}return i.slice(j).join(".")},getScript:function(h,k,j){var i=e.createElement("script");i.charset=j||e.charset||e.characterSet;i.src=h;if(typeof k==="function"){if(g){i.onreadystatechange=function(){var l=i.readyState;if(l==="loaded"||l==="complete"){i.onreadystatechange=null;k()}}}else{i.onload=k}}e.getElementsByTagName("head")[0].appendChild(i)},onReady:function(i){if(g){var h=setInterval(function(){try{e.documentElement.doScroll("left");clearInterval(h);i()}catch(j){}},50)}else{window.addEventListener("load",i,false)}}}});KISSY.cloneTo("TB");TB.add("login-info",function(e){var g=e.BasicUtil,a=g.getCookie("_nk_"),d=g.getCookie("_l_g_")&&a,c=g.parseQueryParams(g.getCookie("uc1")),f=parseInt(c._msg_)||0,b=new Date().getTime();e.LoginInfo={write:function(l){l=l||{};var s=this,m=l.memberServer||"http://member1.taobao.com",j=l.loginServer||m,p=l.loginUrl||j+"/member/login.jhtml?f=top";var i=location.href;if(i.indexOf("/member/login.jhtml")>-1){i=""}var h=l.redirectUrl||i;if(h){p+="&redirectURL="+encodeURIComponent(h)}var o=l.logoutUrl||j+"/member/logout.jhtml?f=top",n=m+"/member/newbie.htm",q=m+"/message/list_private_msg.htm?t="+b,r="http://jianghu.taobao.com/admin/home.htm?t="+b;var k="";if(d){k='\u60a8\u597d\uff0c<a class="user-nick" href="'+r+'" target="_top">'+unescape(a.replace(/\\u/g,"%u"))+"</a>\uff01";k+='<a id="J_Logout" href="'+o+'" target="_top">[\u9000\u51fa]</a>';k+='<a href="'+q+'" target="_top">\u7ad9\u5185\u4fe1';if(f){k+="("+f+")"}k+="</a>"}else{k='\u60a8\u597d\uff0c\u6b22\u8fce\u6765\u6dd8\u5b9d\uff01<a href="'+p+'" target="_top">[\u8bf7\u767b\u5f55]</a>';k+='<a href="'+n+'" target="_top">[\u514d\u8d39\u6ce8\u518c]</a>'}document.write(k);setTimeout(function(){s.fixLogout()},100)},fixLogout:function(){var h=g.get("J_Logout");if(!h){return}g.addEvent(h,"click",function(){var i=h.href;h.href="javascript:;";new Image().src="http://taobao.alipay.com/user/logout.htm";setTimeout(function(){location.href=i},20)})}}});
g_tb=TB().use("*");