www.gusucode.com > 黑色通用织梦博客模板源码程序 > 黑色通用织梦博客模板/dede58/css/tbtx.js

     /* 2014-04-10 15:08:22 */
!function(t,e){function n(t,e){for(var n in e)t[n]=e[n]}var r=t.console&&console.log,i=function(){},o=function(t){var e=0;return t?function(){return t+e++}:function(){return e++}};e=t[e]=t[e]||{},n(e,{log:r?function(t,e,n){return n&&(t=n+": "+t),console[e&&console[e]?e:"log"](t),this}:i,staticUrl:"http://static.tianxia.taobao.com/tbtx/",global:t,noop:i,uniqueCid:o(),generateCid:o,$:t.jQuery})}(this,"tbtx"),function(){var t,e,n,r;!function(){var i={},o={};t=function(t,e,n){i[t]={deps:e,callback:n}},r=n=e=function(t){function n(e){if("."!==e.charAt(0))return e;for(var n=e.split("/"),r=t.split("/").slice(0,-1),i=0,o=n.length;o>i;i++){var a=n[i];if(".."===a)r.pop();else{if("."===a)continue;r.push(a)}}return r.join("/")}if(r._eak_seen=i,o[t])return o[t];if(o[t]={},!i[t])throw new Error("Could not find module "+t);for(var a,s=i[t],u=s.deps,c=s.callback,f=[],l=0,p=u.length;p>l;l++)"exports"===u[l]?f.push(a={}):f.push(e(n(u[l])));var h=c.apply(this,f);return o[t]=a||h}}(),t("promise/all",["./utils","exports"],function(t,e){"use strict";function n(t){var e=this;if(!r(t))throw new TypeError("You must pass an array to all.");return new e(function(e,n){function r(t){return function(e){o(t,e)}}function o(t,n){s[t]=n,0===--u&&e(s)}var a,s=[],u=t.length;0===u&&e([]);for(var c=0;c<t.length;c++)a=t[c],a&&i(a.then)?a.then(r(c),n):o(c,a)})}var r=t.isArray,i=t.isFunction;e.all=n}),t("promise/asap",["exports"],function(t){"use strict";function e(){return function(){process.nextTick(i)}}function n(){var t=0,e=new u(i),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function r(){return function(){c.setTimeout(i,1)}}function i(){for(var t=0;t<f.length;t++){var e=f[t],n=e[0],r=e[1];n(r)}f=[]}function o(t,e){var n=f.push([t,e]);1===n&&a()}var a,s="undefined"!=typeof window?window:{},u=s.MutationObserver||s.WebKitMutationObserver,c="undefined"!=typeof global?global:this,f=[];a="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?e():u?n():r(),t.asap=o}),t("promise/cast",["exports"],function(t){"use strict";function e(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=this;return new e(function(e){e(t)})}t.cast=e}),t("promise/config",["exports"],function(t){"use strict";function e(t,e){return 2!==arguments.length?n[t]:(n[t]=e,void 0)}var n={instrument:!1};t.config=n,t.configure=e}),t("promise/polyfill",["./promise","./utils","exports"],function(t,e,n){"use strict";function r(){var t="Promise"in window&&"cast"in window.Promise&&"resolve"in window.Promise&&"reject"in window.Promise&&"all"in window.Promise&&"race"in window.Promise&&function(){var t;return new window.Promise(function(e){t=e}),o(t)}();t||(window.Promise=i)}var i=t.Promise,o=e.isFunction;n.polyfill=r}),t("promise/promise",["./config","./utils","./cast","./all","./race","./resolve","./reject","./asap","exports"],function(t,e,n,r,i,o,a,s,u){"use strict";function c(t){if(!_(t))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof c))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._subscribers=[],f(t,this)}function f(t,e){function n(t){v(e,t)}function r(t){m(e,t)}try{t(n,r)}catch(i){r(i)}}function l(t,e,n,r){var i,o,a,s,u=_(n);if(u)try{i=n(r),a=!0}catch(c){s=!0,o=c}else i=r,a=!0;d(e,i)||(u&&a?v(e,i):s?m(e,o):t===P?v(e,i):t===N&&m(e,i))}function p(t,e,n,r){var i=t._subscribers,o=i.length;i[o]=e,i[o+P]=n,i[o+N]=r}function h(t,e){for(var n,r,i=t._subscribers,o=t._detail,a=0;a<i.length;a+=3)n=i[a],r=i[a+e],l(e,n,r,o);t._subscribers=null}function d(t,e){var n,r=null;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(x(e)&&(r=e.then,_(r)))return r.call(e,function(r){return n?!0:(n=!0,e!==r?v(t,r):g(t,r),void 0)},function(e){return n?!0:(n=!0,m(t,e),void 0)}),!0}catch(i){return n?!0:(m(t,i),!0)}return!1}function v(t,e){t===e?g(t,e):d(t,e)||g(t,e)}function g(t,e){t._state===A&&(t._state=C,t._detail=e,w.async(y,t))}function m(t,e){t._state===A&&(t._state=C,t._detail=e,w.async(b,t))}function y(t){h(t,t._state=P)}function b(t){h(t,t._state=N)}var w=t.config,x=(t.configure,e.objectOrFunction),_=e.isFunction,O=(e.now,n.cast),j=r.all,E=i.race,S=o.resolve,T=a.reject,k=s.asap;w.async=k;var A=void 0,C=0,P=1,N=2;c.prototype={constructor:c,_state:void 0,_detail:void 0,_subscribers:void 0,then:function(t,e){var n=this,r=new this.constructor(function(){});if(this._state){var i=arguments;w.async(function(){l(n._state,r,i[n._state-1],n._detail)})}else p(this,r,t,e);return r},"catch":function(t){return this.then(null,t)}},c.all=j,c.cast=O,c.race=E,c.resolve=S,c.reject=T,u.Promise=c}),t("promise/race",["./utils","exports"],function(t,e){"use strict";function n(t){var e=this;if(!r(t))throw new TypeError("You must pass an array to race.");return new e(function(e,n){for(var r,i=0;i<t.length;i++)r=t[i],r&&"function"==typeof r.then?r.then(e,n):e(r)})}var r=t.isArray;e.race=n}),t("promise/reject",["exports"],function(t){"use strict";function e(t){var e=this;return new e(function(e,n){n(t)})}t.reject=e}),t("promise/resolve",["exports"],function(t){"use strict";function e(t){var e=this;return new e(function(e){e(t)})}t.resolve=e}),t("promise/utils",["exports"],function(t){"use strict";function e(t){return n(t)||"object"==typeof t&&null!==t}function n(t){return"function"==typeof t}function r(t){return"[object Array]"===Object.prototype.toString.call(t)}var i=Date.now||function(){return(new Date).getTime()};t.objectOrFunction=e,t.isFunction=n,t.isArray=r,t.now=i}),e("promise/polyfill").polyfill()}(),function(t){t.fail=t["catch"],t.done=function(t){return this.then(t)},t.always=function(t){return this.then(t,t)}}(Promise.prototype),"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(t){return 10>t?"0"+t:t}function quote(t){return escapable.lastIndex=0,escapable.test(t)?'"'+t.replace(escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var n,r,i,o,a,s=gap,u=e[t];switch(u&&"object"==typeof u&&"function"==typeof u.toJSON&&(u=u.toJSON(t)),"function"==typeof rep&&(u=rep.call(e,t,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(u)){for(o=u.length,n=0;o>n;n+=1)a[n]=str(n,u)||"null";return i=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,i}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;o>n;n+=1)"string"==typeof rep[n]&&(r=rep[n],i=str(r,u),i&&a.push(quote(r)+(gap?": ":":")+i));else for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(i=str(r,u),i&&a.push(quote(r)+(gap?": ":":")+i));return i=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,i}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof JSON.stringify&&(JSON.stringify=function(t,e,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;n>r;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(t,e){var n,r,i=t[e];if(i&&"object"==typeof i)for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r=walk(i,n),void 0!==r?i[n]=r:delete i[n]);return reviver.call(t,e,i)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(t,e){function n(t){this.name=t,this.cid=r(),this.cache={}}var r=t.generateCid("cache-");n.prototype={set:function(t,e){return this.cache[t]=e,this},get:function(t){return t===e?this.getAll():this.cache[t]},getAll:function(){return t.deepCopy(this.cache)},remove:function(t){return delete this.cache[t],this},clear:function(){return delete this.cache,this.cache={},this}};var i=new n("data");t.data=function(t,n){return n===e?i.get(t):(i.set(t,n),this)},t.removeData=function(t){return i.remove(t),this},t.Cache=n}(tbtx,void 0),function(t,e,n){function r(){}function i(t){t=q(t);var e=this.prototype||this;return t.forEach(function(t){H(e,t.prototype||t,["prototype"])}),this}function o(t){return t.Implements=i,t}function a(t,e){return f.hasOwnProperty.call(t,e)}function s(t){var e=typeof t;return null===t||"object"!==e&&"function"!==e}function u(t){return"object"==typeof t}var c=Array.prototype,f=Object.prototype,l=String.prototype,p=Function.prototype,h=f.toString,d=c.slice,v=!1,g=!0,m="function",y=" ";if(typeof Object.keys!=m){var b=!{toString:1}.propertyIsEnumerable("toString"),w=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","toLocaleString","valueOf"];Object.keys=function(t){var e,n,r=[];for(e in t)r.push(e);if(b)for(n=w.length-1;n>=0;n--)e=w[n],a(t,e)&&r.push(e);return r}}e.keys=Object.keys,typeof p.bind!=m&&(p.bind=function(t){var e=d.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&t?this:t,e.concat(d.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),e.bind=function(t,e){return t.bind(e)},typeof Date.now!=m&&(Date.now=function(){return+new Date}),e.Now=function(){return Date.now()};var x="	\n\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!l.trim||x.trim()){x="["+x+"]";var _=new RegExp("^"+x+x+"*"),O=new RegExp(x+x+"*$");l.trim=function(){return String(this).replace(_,"").replace(O,"")}}e.trim=function(t){return t.trim()},typeof c.forEach!=m&&(c.forEach=function(t,e){for(var n=0,r=this.length;r>n;n++)t.call(e,this[n],n,this)}),typeof c.map!=m&&(c.map=function(t,e){for(var n=[],r=0,i=this.length;i>r;r++)n.push(t.call(e,this[r],r,this));return n}),typeof c.filter!=m&&(c.filter=function(t,e){for(var n,r=[],i=0,o=this.length;o>i;i++)n=this[i],t.call(e,n,i,this)&&r.push(n);return r}),typeof c.some!=m&&(c.some=function(t,e){for(var n=0,r=this.length;r>n;n++)if(t.call(e,this[n],n,this))return g;return v}),typeof c.every!=m&&(c.every=function(t,e){for(var n=0,r=this.length;r>n;n++)if(!t.call(e,this[n],n,this))return v;return g}),typeof c.indexOf!=m&&(c.indexOf=function(t,e){var n,r=-1,i=this.length;for(e=1*e||0,n=e,n=n>=0?n:Math.max(0,i+n);i>n;n++)if(this[n]===t)return n;return r}),typeof c.lastIndexOf!=m&&(c.lastIndexOf=function(t,e){var n=-1,r=this.length,i=r-1;for(e=1*e||r-1,i=Math.min(i,e);i>-1;i--)if(this[i]===t)return i;return n}),typeof c.reduce!=m&&(c.reduce=function(t,e){var r=e,i=0,o=this.length;for(e===n&&(r=this[0],i=1);o>i;i++)r=t(r,this[i],i,this);return r}),typeof c.reduceRight!=m&&(c.reduceRight=function(t,e){var r=this.length,i=r-1,o=e;for(e===n&&(o=this[r-1],i--);i>-1;i--)o=t(o,this[i],i,this);return o}),"forEach map filter every some".split(y).forEach(function(t){e[t]=function(e,n,r){if(!e)return e;if(E(e))return e[t](n,r);var i,o=Object.keys(e),a=o.map(function(t){return e[t]}),s=a[t](function(a,s){var u=o[s],c=n.call(r,a,u,e);return e.length||("filter"===t&&c&&(i=i||{},i[u]=a),"map"===t&&(i=i||{},i[u]=c)),c});return i||s}});e.each=function(t,e,r){if(t){var i,o,a,s=0,u=t.length,c=u===n||S(t);if(r=r||null,c)for(a=Object.keys(t),u=a.length;u>s&&(i=a[s],e.call(r,t[i],i,t)!==v);s++);else for(o=t[0];u>s&&e.call(r,o,s,t)!==v;o=t[++s]);}return t};"reduce reduceRight".split(y).forEach(function(t){e[t]=function(e,r,i){return i===n?e[t](r):e[t](r,i)}}),"indexOf lastIndexOf".split(y).forEach(function(t){e[t]=function(e,n,r){return e[t](n,r)}});var j={};"Boolean Number String Function Array Date RegExp Object".split(y).forEach(function(t,n){j["[object "+t+"]"]=n=t.toLowerCase(),e["is"+t]=function(t){return P(t)===n}});var E=Array.isArray=e.isArray=Array.isArray||e.isArray,S=e.isFunction,T=e.isObject,k=e.isString,A="",C=function(t,e){var n;return function(){return n||(n=t.apply(e,arguments))}},P=function(t){return null===t?String(t):j[h.call(t)]||"object"},N=function(t,e){return t.indexOf(e)>-1},I=function(t){return null!=t&&t==t.window},D=function(t){if(!t||!T(t)||t.nodeType||I(t))return v;var e,r;try{if((r=t.constructor)&&!a(t,"constructor")&&!a(r.prototype,"isPrototypeOf"))return v}catch(i){return v}for(e in t);return e===n||a(t,e)},q=function(t){var e=[];if(null==t)return e;if(E(t))return t;var n=typeof t.length,r=typeof t;if("number"!==n||"string"==typeof t.nodeName||null!=t&&t==t.window||"string"===r||"function"===r&&!("item"in t&&"number"===n))return[t];for(var i=0,o=t.length;o>i;i++)e[i]=t[i];return e},M=function(t){if(!t||!u(t))return t;var e,n=E(t)?[]:{};for(e in t)a(t,e)&&(n[e]=u(t)?M(t[e]):t[e]);return n},F=function(t,e){var n,r;return E(t)&&(n=t,t=0,e=n.length),t>e&&(t=[e,e=t][0]),r=Math.floor(Math.random()*(e-t)+t),n?n[r]:r},z=function(t){if(!E(t))return[];var n,r,i=t.length,o=i;if(0===i)return[];for(t=e.deepCopy(t);--o;)r=F(0,o+1),n=t[o],t[o]=t[r],t[r]=n;return t},R={"&amp;":"&","&gt;":">","&lt;":"<","&#x60;":"`","&#x2F;":"/","&quot;":'"',"&#x27;":"'"},B={},L=C(function(){var t=A;return e.forEach(R,function(e){t+=e+"|"}),t=t.slice(0,-1),new RegExp(t,"g")}),U=C(function(){var t=A;return e.forEach(B,function(e){t+=e+"|"}),t+="&#(\\d{1,5});",new RegExp(t,"g")}),W=function(t){return String(t).replace(L(),function(t){return B[t]})},J=function(t){return String(t).replace(U(),function(t){return R[t]})};for(var V in R)B[R[V]]=V;var $=function(t,n){if(!this instanceof $)return new $(t,n);e.isFunction(t)||(n=t,t=null),n=n||{};var r=function(){t&&t.apply(this,arguments),this.constructor===r&&this.init&&this.init.apply(this,arguments)};if(t){var i=G(t.prototype);H(i,r.prototype),r.prototype=i,r.superclass=t.prototype}return r.fn=r.prototype,r.fn.constructor=r,H(r,$.Mutators),r.fn.proxy=r.proxy,r.include(n)},G=Object.__proto__?function(t){return{__proto__:t}}:function(t){return r.prototype=t,new r};$.Mutators={extend:function(t){return H(this,t),this},include:function(t){var e,n,r=this.prototype,i=$.Mutators;for(e in t)n=t[e],a(i,e)?i[e].call(this,n):r[e]=n;return this},proxy:function(t){return t.bind(this)},Implements:i};var H=e.mix=function(t,e,n,r,i){var o;if(!t||t===e)return t;e||(e=t,t=this),"boolean"!=typeof r&&(r=g),n=n||[];for(o in e)N(n,o)||!r&&o in t||(t[o]=i?M(e[o]):e[o]);return t};e.mix({mix:H,Class:$,classify:o,isNotEmptyString:function(t){return k(t)&&t!==A},isEmptyObject:function(t){return 0===e.keys(t).length},pluck:function(t,n){var r=n.split(".");return e.map(t,function(t){for(var e=0;e<r.length;e++)t=t[r[e]];return t})},isWindow:I,isPlainObject:D,inArray:N,type:P,makeArray:q,makeResult:function(t){var e=d.call(arguments,1);return S(t)?t.apply(null,e):t},deepCopy:M,isPending:function(t){return t&&S(t.state)?"pending"===t.state():v},ucfirst:function(t){return t.charAt(0).toUpperCase()+t.substring(1)},lcfirst:function(t){return t.charAt(0).toLowerCase()+t.substring(1)},later:function(t,n,r,i,o){n=n||0;var a,s,u=t,c=q(o);return"string"==typeof t&&(u=i[t]),u||e.log("method undefined","error","later"),a=function(){u.apply(i,c)},s=r?setInterval(a,n):setTimeout(a,n),{id:s,interval:r,cancel:function(){this.interval?clearInterval(s):clearTimeout(s)}}},singleton:C,unique:function(t){var e={};return t.filter(function(t){var n=typeof t+t;return 1!==e[n]?(e[n]=1,g):v})},sizeof:function(t){return String(t).replace(/[^\x00-\xff]/g,"aa").length},namespace:function(){var e,n,r,i=q(arguments),o=i.length,a=this;for(e=0;o>e;e++)for(r=(A+i[e]).split("."),n=t[r[0]]===a?1:0;n<r.length;++n)a=a[r[n]]=a[r[n]]||{};return a},startsWith:function(t,e){return 0===t.lastIndexOf(e,0)},endsWith:function(t,e){var n=t.length-e.length;return n>=0&&t.indexOf(e,n)==n},choice:F,shuffle:z,throttle:function(t,n,r){if(r=r||this,n=n||150,-1===n)return function(){t.apply(r,arguments)};var i=e.Now();return function(){var o=e.Now();o-i>n&&(i=o,t.apply(r,arguments))}},debounce:function(t,n,r){if(r=r||this,n=n||150,-1===n)return function(){t.apply(r,arguments)};var i=null,o=function(){o.stop(),i=e.later(t,n,0,r,arguments)};return o.stop=function(){i&&(i.cancel(),i=0)},o},curry:function(t,e){var n=d.call(arguments,1);return function(){return t.apply(e,n.concat(d.call(arguments)))}},substitute:function(t,r,i){return e.isNotEmptyString(t)?D(r)||E(r)?t.replace(i||/\\?\{\{\s*([^{}\s]+)\s*\}\}/g,function(t,e){return"\\"===t.charAt(0)?t.slice(1):r[e]===n?"":r[e]}):t:t},param:function(t,e,r,i){e=e||"&",r=r||"=",i===n&&(i=g);var o,a,u,c,f,l=[],p=encodeURIComponent;for(o in t)if(f=t[o],o=p(o),s(f))l.push(o),f!==n&&l.push(r,p(f+A)),l.push(e);else if(E(f)&&f.length)for(a=0,c=f.length;c>a;++a)u=f[a],s(u)&&(l.push(o,i?p("[]"):A),u!==n&&l.push(r,p(u+A)),l.push(e));return l.pop(),l.join(A)},unparam:function(t,r,i){if(!e.isNotEmptyString(t))return{};r=r||"&",i=i||"=";for(var o,a,s,u={},c=decodeURIComponent,f=t.split(r),l=0,p=f.length;p>l;++l){if(o=f[l].indexOf(i),-1==o)a=c(f[l]),s=n;else{a=c(f[l].substring(0,o)),s=f[l].substring(o+1);try{s=c(s)}catch(h){e.log(h+"decodeURIComponent error : "+s,"error","unparam")}}u[a]=s}return u},escapeHtml:W,unEscapeHtml:J})}(this,tbtx,void 0),function(t){var e=!1,n=t.each,r=t.param,i=t.unparam,o=function(t){return decodeURIComponent(t.replace(/\+/g," "))},a=t.Query=function(t){this._query=t||"",this._queryMap=i(this._query)};a.prototype={get:function(e){var n=this._queryMap;return e?n[e]:t.deepCopy(n)},keys:function(){return t.keys(this._queryMap)},set:function(t,e){var r=this._queryMap;return"string"==typeof t?this._queryMap[t]=e:(t instanceof a&&(t=t.get()),n(t,function(t,e){r[e]=t})),this},remove:function(t){return t?delete this._queryMap[t]:this._queryMap={},this},add:function(t,e){var n,r=this._queryMap;if("string"==typeof t)n=r[t],n=void 0===n?e:[].concat(n).concat(e),r[t]=n;else{t instanceof a&&(t=t.get());for(var i in t)this.add(i,t[i])}return this},toString:function(t){return r(this._queryMap,void 0,void 0,t)}};var s=new RegExp("^(?:([^:/?#]+):)?(?://(?:([^/?#]*)@)?([^/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),u={scheme:1,credentials:2,domain:3,port:4,path:5,query:6,fragment:7},c=t.Uri=function(e){var r,i=this;return t.mix(i,{scheme:"",credentials:"",domain:"",port:"",path:"",query:"",fragment:""}),r=c.getComponents(e),n(r,function(e,n){if("query"===n)i.query=new a(e);else{try{e=o(e)}catch(r){t.log(r+"urlDecode error : "+e,"error","Uri")}i[n]=e}}),i};c.prototype={getFragment:function(){return this.fragment},toString:function(t){var e=[],n=this,r=n.scheme,i=n.domain,o=n.path,a=n.port,s=n.fragment,u=n.query.toString(t),c=n.credentials;return r&&(e.push(r),e.push(":")),i&&(e.push("//"),c&&(e.push(c),e.push("@")),e.push(encodeURIComponent(i)),a&&(e.push(":"),e.push(a))),o&&e.push(o),u&&(e.push("?"),e.push(u)),s&&(e.push("#"),e.push(s)),e.join("")}},c.getComponents=function(e){e=e||location.href;var r,i={};return t.isNotEmptyString(e)?(r=e.match(s)||[],n(u,function(t,e){i[e]=r[t]||""}),i):i},t.mix({isUri:function(n){var r;return t.isNotEmptyString(n)?(r=s.exec(n),r&&r[1]):e},parseUrl:c.getComponents,getFragment:function(t){return new c(t).getFragment()},getQueryParam:function(e,n){t.isUri(e)&&(n=e,e="");var r=new c(n);return r.query.get(e)||""},addQueryParam:function(e,n,r){var i={};t.isPlainObject(e)?(r=n,i=e):i[e]=n;var o=new c(r);return o.query.add(i),o.toString()},removeQueryParam:function(e,n){e=t.makeArray(e);var r=new c(n);return e.forEach(function(t){r.query.remove(t)}),r.toString()}})}(tbtx),function(t){function e(t){var e=t.length-1,n=t.charAt(e);return"#"===n?t.substring(0,e):".js"===t.substring(e-2)||t.indexOf("?")>0||".css"===t.substring(e-3)||"/"===n?t:t+".js"}function n(t){var e=O.alias;return e&&y(e[t])?e[t]:t}function r(t){var e,n=O.paths;return n&&(e=t.match(P))&&y(n[e[1]])&&(t=n[e[1]]+e[2]),t}function i(t){var e=O.vars;return e&&t.indexOf("{")>-1&&(t=t.replace(N,function(t,n){return y(e[n])?e[n]:t})),t}function o(t){var e=O.map,n=t;if(e)for(var r=0,i=e.length;i>r;r++){var o=e[r];if(n=b(o)?o(t)||t:t.replace(o[0],o[1]),n!==t)break}return n}function a(t,e){var n,r=t.charAt(0);if(I.test(t))n=t;else if("."===r)n=C((e?S(e):O.cwd)+t);else if("/"===r){var i=O.cwd.match(D);n=i?i[0]+t.substring(1):t}else n=O.base+t;return 0===n.indexOf("//")&&(n=location.protocol+n),n}function s(t,s){if(!t)return"";t=n(t),t=r(t),t=i(t),t=e(t);var u=a(t,s);return u=o(u)}function u(t){return t.hasAttribute?t.src:t.getAttribute("src",4)}function c(t,e,n){var r=U[t];if(r)return r.then(e),r;var i=q.createElement("script");if(n){var o=b(n)?n(t):n;o&&(i.charset=o)}return r=U[t]=new Promise(function(t){f(i,t)}),r.then(e),i.async=!0,i.src=t,d=i,L?B.insertBefore(i,L):B.appendChild(i),d=null,r}function f(e,n){var r="onload"in e,i=function(){e.onload=e.onerror=e.onreadystatechange=null,B.removeChild(e),e=null,n()};r?(e.onload=i,e.onerror=function(){t.log("loadScript error","error"),i()}):e.onreadystatechange=function(){/loaded|complete/.test(e.readyState)&&i()}}function l(t){return W.test(t)||(t=R+t),t}function p(){if(q.currentScript)return q.currentScript;if(d)return d;if(v&&"interactive"===v.readyState)return v;for(var t=B.getElementsByTagName("script"),e=t.length-1;e>=0;e--){var n=t[e];if("interactive"===n.readyState)return v=n}}function h(t,e){this.uri=t,this.dependencies=e||[],this.exports=null,this.status=0,this._waitings={},this._remain=0}var d,v,g=t.noop,m=t.isArray,y=t.isString,b=t.isFunction,w=t.isObject,x=t.global,_=t.Loader={},O=_.data={},j=t.generateCid(),E=/[^?#]*\//,S=function(t){return t.match(E)[0]},T=/\/\.\//g,k=/\/[^/]+\/\.\.\//,A=/([^:/])\/\//g,C=function(t){for(t=t.replace(T,"/");t.match(k);)t=t.replace(k,"/");return t=t.replace(A,"$1/")},P=/^([^/:]+)(\/.+)$/,N=/{([^{]+)}/g,I=/^\/\/.|:\//,D=/^.*?\/\/.*?\//,q=document,M=S(location.href),F=function(){if(q.currentScript)return u(q.currentScript);for(var t,e,n=q.scripts,r=n.length,i=r-1,o=/tbtx\.(min\.)?js/;i>=0;i--){if(t=n[i],e=u(t),"interactive"===t.readyState)return e;if(e&&o.test(e))return e}}(),z=S(F),R=t.staticUrl=C(z+"../../"),B=q.head||q.getElementsByTagName("head")[0]||q.documentElement,L=B.getElementsByTagName("base")[0],U={},W=/^(http|file)/i;t.loadCss=function(t){t=l(t);var e=q.createElement("link");e.rel="stylesheet",e.href=t,L?B.insertBefore(e,L):B.appendChild(e)},t.loadScript=function(e,n,r){if(m(e)){{var i;e.length}return e=t.map(e,function(t){return l(t)}),i=c(e[0],g,r),t.reduce(e,function(t,e){return i=i.then(function(){return c(e,g,r)}),e}),i.then(n)}return c(l(e),n,r)};var J,V=_.cache={},$={},G={},H={},Y=h.STATUS={FETCHING:1,SAVED:2,LOADING:3,LOADED:4,EXECUTING:5,EXECUTED:6};h.prototype={resolve:function(){var e=this,n=e.dependencies;return t.map(n,function(t){return h.resolve(t,e.uri)})},load:function(){var t=this;if(!(t.status>=Y.LOADING)){t.status=Y.LOADING;for(var e,n=t.resolve(),r=t._remain=n.length,i=0;r>i;i++)e=h.get(n[i]),e.status<Y.EXECUTED?e._waitings[t.uri]=(e._waitings[t.uri]||0)+1:t._remain--;if(0===t._remain)return t.onload(),void 0;for(i=0;r>i;i++)e=V[n[i]],e.status<Y.FETCHING?e.fetch():e.status===Y.SAVED&&e.load()}},onload:function(){var t=this;t.status=Y.LOADED,t.callback&&t.callback(),t.exec();var e,n,r=t._waitings;for(e in r)r.hasOwnProperty(e)&&(n=V[e],n._remain-=r[e],0===n._remain&&n.onload());delete t._waitings,delete t._remain},exec:function(){var e=this;if(e.status>=Y.EXECUTING)return e.exports;e.status=Y.EXECUTING;for(var n=(e.uri,e.resolve()),r=[],i=0,o=n.length;o>i;i++)r[i]=h.get(n[i]).exports;var a,s=e.factory;try{a=b(s)?s.apply(null,r):s}catch(u){t.log("factory error:").log(u,"error")}return delete e.factory,e.exports=a,e.status=Y.EXECUTED,a},fetch:function(){function t(){c(r,e,O.charset)}function e(){delete $[r],G[r]=!0,J&&(h.save(r,J),J=null);var t,e=H[r];for(delete H[r];t=e.shift();)t.load()}var n=this,r=n.uri;return n.status=Y.FETCHING,!r||G[r]?(n.load(),void 0):$[r]?(H[r].push(n),void 0):($[r]=!0,H[r]=[n],t(),void 0)}},h.get=function(t,e){return V[t]||(V[t]=new h(t,e))},h.require=function(e,n,r){var i=h.get(n,m(e)?e:[e]),o=new Promise(function(e){i.callback=function(){for(var n=[],o=i.resolve(),a=0,s=o.length;s>a;a++)n[a]=V[o[a]].exports;if(r)try{r.apply(x,n)}catch(u){t.log("require callback error:").log(u,"error")}e(),delete i.callback}});return i.load(),o},h.resolve=function(t,e){return s(t,e)},h.define=function(t,e,n){var r=arguments.length;1===r?(n=t,t=void 0):2===r&&(n=e,m(t)?(e=t,t=void 0):e=void 0),m(e)||(e=[]);var i={id:t,uri:h.resolve(t),deps:e,factory:n};if(!i.uri){var o=p();o&&(i.uri=o.src)}i.uri?h.save(i.uri,i):J=i},h.save=function(t,e){var n=h.get(t);n.status<Y.SAVED&&(n.id=e.id||t,n.dependencies=e.deps||[],n.factory=e.factory,n.status=Y.SAVED)},h.define.amd={},O.base=z,O.dir=z,O.cwd=M,O.charset="utf-8",_.config=function(t){for(var e in t){var n=t[e],r=O[e];if(r&&w(r))for(var i in n)r[i]=n[i];else m(r)?n=r.concat(n):"base"===e&&("/"!=n.slice(-1)&&(n+="/"),n=a(n)),O[e]=n}return _};var X=z+"component/";_.config({base:X,cwd:X,alias:{jquery:"jquery/jquery-1.8.3.min.js",handlebars:"gallery/handlebars/1.3.0/handlebars.js",easing:"plugin/jquery.easing.1.3.js"},paths:{base:"../../",maijia:"../../../maijia",miiee:"../../../miiee",plugin:"../plugin",gallery:"../gallery",jquery:"../jquery"}}),t.mix({realpath:C}),t.require=function(t,e){return h.require(t,O.cwd+"_require_"+j(),e)},t.define=h.define,x.define=x.define||h.define}(tbtx),function(t){var e=new Promise(function(e){t.$?e(t):t.require("jquery").then(function(){t.$=jQuery,e(t)})});t.ready=function(t){return e.then(t),e}}(tbtx),function(t){var e=Object.prototype.toString,n=function(t){return"[object String]"===e.call(t)},r=function(t){return n(t)&&""!==t},i=document,o=864e5,a=encodeURIComponent,s=decodeURIComponent,u={get:function(t){var e,n;return r(t)&&(n=String(i.cookie).match(new RegExp("(?:^| )"+t+"(?:(?:=([^;]*))|;|$)")))&&(e=n[1]?s(n[1]):""),e},set:function(t,e,n,s,u,c){var f=String(a(e)),l=s;return"number"==typeof l&&(l=new Date,l.setTime(l.getTime()+s*o)),l instanceof Date&&(f+="; expires="+l.toUTCString()),r(n)&&(f+="; domain="+n),r(u)&&(f+="; path="+u),c&&(f+="; secure"),i.cookie=t+"="+f,this},remove:function(t,e,n,r){return this.set(t,"",e,-1,n,r),this}};t.cookie=u}(tbtx),function(t){var e=document,n=t.namespace("support");t.mix(n,{placeholder:"placeholder"in e.createElement("input")},[],!1,!0),t.ready(function(t){t.$(function(e){!n.placeholder&&e("input[placeholder], textarea[placeholder]").length&&t.require("plugin/jquery.placeholder.js",function(){e("input, textarea").placeholder()})})})}(tbtx),function(t){function e(t,e){t=t||"Y-m-d h:i:s";var r,i=n(e),o=t;for(r in i)o=o.replace(r,i[r]);return o}function n(t){t=o(t);var e,n,r={Y:t.getFullYear(),M:t.getMonth()+1,D:t.getDate(),H:t.getHours(),I:t.getMinutes(),S:t.getSeconds()},i={};for(n in r)i[n]=r[n],e=n.toLowerCase(),i[e]="y"==e?r[n].toString().substring(2,4):r[n]<10?"0"+r[n]:r[n];return i}function r(t,e){t=o(t),e=o(e);var n,r,i,a,s=60,u=60*s,c=24*u,f=Math.abs(t.getTime()-e.getTime())/1e3,l=f;return n=Math.floor(l/c),l-=n*c,r=Math.floor(l/u),l-=r*u,i=Math.floor(l/s),l-=i*s,a=Math.floor(l),{day:n,hour:r,minute:i,second:a}}function i(t,e){var n=r(t,e),i=Math.floor(n.day/365);return i?i+"\u5e74\u524d":(i=Math.floor(n.day/30),i?i+"\u4e2a\u6708\u524d":n.day?1==n.day?"\u6628\u5929":n.day+"\u5929\u524d":n.hour?n.hour+"\u5c0f\u65f6\u524d":n.minute?n.minute+"\u5206\u949f\u524d":"\u521a\u521a")}function o(t){if(a(t))return t;var e=typeof t;return"number"==e||"string"==e?new Date(t):new Date}var a=t.isDate;t.mix({normalizeDate:n,diffDate:r,toDate:o,ago:i,formatDate:e})}(tbtx),function(t){function e(t){return Object.prototype.toString.call(t)}function n(t){return"[object Object]"===e(t)}function r(t){return"[object Function]"===e(t)}function i(t,e){for(var n=0,r=t.length;r>n&&e.call(t,t[n],n)!==!1;n++);}function o(t){if(!g.test(t))return null;var e,n,r,i,o;if(-1!==t.indexOf("trident/")&&(e=/\btrident\/([0-9.]+)/.exec(t),e&&e.length>=2)){r=e[1];var a=e[1].split(".");a[0]=parseInt(a[0],10)+4,o=a.join(".")}e=g.exec(t),i=e[1];var s=e[1].split(".");return"undefined"==typeof o&&(o=i),s[0]=parseInt(s[0],10)-4,n=s.join("."),"undefined"==typeof r&&(r=n),{browserVersion:o,browserMode:i,engineVersion:r,engineMode:n,compatible:r!==n}}function a(t){if(v)try{var e=v.twGetRunPath.toLowerCase(),n=v.twGetSecurityID(window),r=v.twGetVersion(n);if(e&&-1===e.indexOf(t))return!1;if(r)return{version:r}}catch(i){}}function s(t,i,o){var a=r(i)?i.call(null,o):i;if(!a)return null;var s={name:t,version:l,codename:""},u=e(a);if(a===!0)return s;if("[object String]"===u){if(-1!==o.indexOf(a))return s}else{if(n(a))return a.hasOwnProperty("version")&&(s.version=a.version),s;if(a.exec){var c=a.exec(o);if(c)return s.version=c.length>=2&&c[1]?c[1].replace(/_/g,"."):l,s}}}function u(t,e,n,r){var o=x;i(e,function(e){var n=s(e[0],e[1],t);return n?(o=n,!1):void 0}),n.call(r,o.name,o.version)}function c(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}var f={},l="-1",p=navigator.userAgent||"",h=navigator.appVersion||"",d=navigator.vendor||"",v=window.external,g=/\b(?:msie |ie |trident\/[0-9].*rv[ :])([0-9.]+)/,m=[["nokia",function(t){return-1!==t.indexOf("nokia ")?/\bnokia ([0-9]+)?/:-1!==t.indexOf("noain")?/\bnoain ([a-z0-9]+)/:/\bnokia([a-z0-9]+)?/}],["samsung",function(t){return-1!==t.indexOf("samsung")?/\bsamsung(?:\-gt)?[ \-]([a-z0-9\-]+)/:/\b(?:gt|sch)[ \-]([a-z0-9\-]+)/}],["wp",function(t){return-1!==t.indexOf("windows phone ")||-1!==t.indexOf("xblwp")||-1!==t.indexOf("zunewp")||-1!==t.indexOf("windows ce")}],["pc","windows"],["ipad","ipad"],["ipod","ipod"],["iphone",/\biphone\b|\biph(\d)/],["mac","macintosh"],["mi",/\bmi[ \-]?([a-z0-9 ]+(?= build))/],["aliyun",/\baliyunos\b(?:[\-](\d+))?/],["meizu",/\b(?:meizu\/|m)([0-9]+)\b/],["nexus",/\bnexus ([0-9s.]+)/],["huawei",function(t){return-1!==t.indexOf("huawei-huawei")?/\bhuawei\-huawei\-([a-z0-9\-]+)/:/\bhuawei[ _\-]?([a-z0-9]+)/}],["lenovo",function(t){return-1!==t.indexOf("lenovo-lenovo")?/\blenovo\-lenovo[ \-]([a-z0-9]+)/:/\blenovo[ \-]?([a-z0-9]+)/}],["zte",function(t){return/\bzte\-[tu]/.test(t)?/\bzte-[tu][ _\-]?([a-su-z0-9\+]+)/:/\bzte[ _\-]?([a-su-z0-9\+]+)/}],["vivo",/\bvivo ([a-z0-9]+)/],["htc",function(t){return/\bhtc[a-z0-9 _\-]+(?= build\b)/.test(t)?/\bhtc[ _\-]?([a-z0-9 ]+(?= build))/:/\bhtc[ _\-]?([a-z0-9 ]+)/}],["oppo",/\boppo[_]([a-z0-9]+)/],["konka",/\bkonka[_\-]([a-z0-9]+)/],["sonyericsson",/\bmt([a-z0-9]+)/],["coolpad",/\bcoolpad[_ ]?([a-z0-9]+)/],["lg",/\blg[\-]([a-z0-9]+)/],["android","android"],["blackberry","blackberry"]],y=[["wp",function(t){return-1!==t.indexOf("windows phone ")?/\bwindows phone (?:os )?([0-9.]+)/:-1!==t.indexOf("xblwp")?/\bxblwp([0-9.]+)/:-1!==t.indexOf("zunewp")?/\bzunewp([0-9.]+)/:"windows phone"}],["windows",/\bwindows nt ([0-9.]+)/],["macosx",/\bmac os x ([0-9._]+)/],["ios",function(t){return/\bcpu(?: iphone)? os /.test(t)?/\bcpu(?: iphone)? os ([0-9._]+)/:-1!==t.indexOf("iph os ")?/\biph os ([0-9_]+)/:/\bios\b/}],["yunos",/\baliyunos ([0-9.]+)/],["android",/\bandroid[\/\- ]?([0-9.x]+)?/],["chromeos",/\bcros i686 ([0-9.]+)/],["linux","linux"],["windowsce",/\bwindows ce(?: ([0-9.]+))?/],["symbian",/\bsymbian(?:os)?\/([0-9.]+)/],["meego",/\bmeego\b/],["blackberry","blackberry"]],b=[["trident",g],["webkit",/\bapplewebkit[\/]?([0-9.+]+)/],["gecko",/\bgecko\/(\d+)/],["presto",/\bpresto\/([0-9.]+)/],["androidwebkit",/\bandroidwebkit\/([0-9.]+)/],["coolpadwebkit",/\bcoolpadwebkit\/([0-9.]+)/]],w=[["sg",/ se ([0-9.x]+)/],["tw",function(){var t=a("theworld");
return"undefined"!=typeof t?t:"theworld"}],["360",function(t){var e=a("360se");return"undefined"!=typeof e?e:-1!==t.indexOf("360 aphone browser")?/\b360 aphone browser \(([^\)]+)\)/:/\b360(?:se|ee|chrome|browser)\b/}],["mx",function(){try{if(v&&(v.mxVersion||v.max_version))return{version:v.mxVersion||v.max_version}}catch(t){}return/\bmaxthon(?:[ \/]([0-9.]+))?/}],["qq",/\bm?qqbrowser\/([0-9.]+)/],["green","greenbrowser"],["tt",/\btencenttraveler ([0-9.]+)/],["lb",function(t){if(-1===t.indexOf("lbbrowser"))return!1;var e;try{v&&v.LiebaoGetVersion&&(e=v.LiebaoGetVersion())}catch(n){}return{version:e||l}}],["tao",/\btaobrowser\/([0-9.]+)/],["fs",/\bcoolnovo\/([0-9.]+)/],["sy","saayaa"],["baidu",/\bbidubrowser[ \/]([0-9.x]+)/],["ie",g],["mi",/\bmiuibrowser\/([0-9.]+)/],["opera",function(t){var e=/\bopera.+version\/([0-9.ab]+)/,n=/\bopr\/([0-9.]+)/;return e.test(t)?e:n}],["chrome",/ (?:chrome|crios|crmo)\/([0-9.]+)/],["uc",function(t){return t.indexOf("ucbrowser/")>=0?/\bucbrowser\/([0-9.]+)/:/\buc\/[0-9]/.test(t)?/\buc\/([0-9.]+)/:t.indexOf("ucweb")>=0?/\bucweb[\/]?([0-9.]+)?/:/\b(?:ucbrowser|uc)\b/}],["android",function(t){return-1!==t.indexOf("android")?/\bversion\/([0-9.]+(?: beta)?)/:void 0}],["safari",/\bversion\/([0-9.]+(?: beta)?)(?: mobile(?:\/[a-z0-9]+)?)? safari\//],["webview",/\bcpu(?: iphone)? os (?:[0-9._]+).+\bapplewebkit\b/],["firefox",/\bfirefox\/([0-9.ab]+)/],["nokia",/\bnokiabrowser\/([0-9.]+)/]],x={name:"na",version:l},_=function(t){t=(t||"").toLowerCase();var e={};u(t,m,function(t,n){var r=parseFloat(n);e.device={name:t,version:r,fullVersion:n},e.device[t]=r},e),u(t,y,function(t,n){var r=parseFloat(n);e.os={name:t,version:r,fullVersion:n},e.os[t]=r},e);var n=o(t);return u(t,b,function(t,r){var i=r;n&&(r=n.engineVersion||n.engineMode,i=n.engineMode);var o=parseFloat(r);e.engine={name:t,version:o,fullVersion:r,mode:parseFloat(i),fullMode:i,compatible:n?n.compatible:!1},e.engine[t]=o},e),u(t,w,function(t,r){var i=r;n&&("ie"===t&&(r=n.browserVersion),i=n.browserMode);var o=parseFloat(r);e.browser={name:t,version:o,fullVersion:r,mode:parseFloat(i),fullMode:i,compatible:n?n.compatible:!1},e.browser[t]=o},e),e};f=_(p+" "+h+" "+d),f.parse=_;var O=/(iPod|iPhone|Android|Opera Mini|BlackBerry|webOS|UCWEB|Blazer|PSP|IEMobile|Symbian)/gi,j=function(t){var e=O.exec(t);return e?e[1]:""};f.mobile=j(p),c(t,{detector:f,decideMobile:j,isIE6:f.browser.ie&&6==f.browser.version,isMobile:!!f.mobile})}(tbtx),function(t){function e(t){t=a(t)||{},t.nodeType&&(t={element:t});var e=a(t.element)||l;if(1!==e.nodeType)throw new Error("posObject.element is invalid.");var n={element:e,x:t.x||0,y:t.y||0},r=e===l||"VIEWPORT"===e._id;return n.offset=function(){return p?{left:0,top:0}:r?{left:u(document).scrollLeft(),top:u(document).scrollTop()}:s(u(e)[0])},n.size=function(){var t=r?u(window):u(e);return{width:t.outerWidth(),height:t.outerHeight()}},n}function n(t){t.x=r(t.x,t,"width"),t.y=r(t.y,t,"height")}function r(t,e,n){if(t+="",t=t.replace(/px/gi,""),/\D/.test(t)&&(t=t.replace(/(?:top|left)/gi,"0%").replace(/center/gi,"50%").replace(/(?:bottom|right)/gi,"100%")),-1!==t.indexOf("%")&&(t=t.replace(/(\d+(?:\.\d+)?)%/gi,function(t,r){return e.size()[n]*(r/100)})),/[+\-*\/]/.test(t))try{t=new Function("return "+t)()}catch(r){throw new Error("Invalid position value: "+t)}return o(t)}function i(t){var e=t.offsetParent();e[0]===document.documentElement&&(e=u(document.body)),d&&e.css("zoom",1);var n;return n=e[0]===document.body&&"static"===e.css("position")?{top:0,left:0}:s(e[0]),n.top+=o(e.css("border-top-width")),n.left+=o(e.css("border-left-width")),n}function o(t){return parseFloat(t,10)||0}function a(t){return u(t)[0]}function s(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var u=t.$,c=t;t.ready(function(t){u=t.$});var f=c,l={_id:"VIEWPORT",nodeType:1},p=!1,h=(window.navigator.userAgent||"").toLowerCase(),d=-1!==h.indexOf("msie 6");f.pin=function(t,r){t=e(t),r=e(r);var o=u(t.element);"fixed"!==o.css("position")||d?(o.css("position","absolute"),p=!1):p=!0,n(t),n(r);var a=i(o),s=r.offset(),c=s.top+r.y-t.y-a.top,f=s.left+r.x-t.x-a.left;o.css({left:f,top:c})},f.center=function(t,e){f.pin({element:t,x:"50%",y:"50%"},{element:e,x:"50%",y:"50%"})},f.VIEWPORT=l}(tbtx),function(t){var e=t.global,n=t.$,r=t.singleton,i=t.debounce;t.ready(function(t){n=t.$});var o=document,a=o.documentElement,s=o.head||o.getElementsByTagName("head")[0]||a,u=[["Window",function(){return n(window)}],["Document",function(){return n(o)}],["Head",function(){return n(s)}],["Body",function(){return n("body")}]];u.forEach(function(e){t["get"+e[0]]=r(e[1])});var c=function(){return t.getDocument().height()},f=function(){return t.getDocument().width()},l=function(){return t.getWindow().scrollLeft()},p=function(){return t.getWindow().scrollTop()},h=function(){return t.getWindow().height()},d=function(){return t.getWindow().width()},v=function(t){return n(t).css({width:d(),height:h()})},g=function(t){return n(t).css({width:f(),height:c()})},m=r(function(){var e=o.body,r=t.detector.browser;return r.ie&&r.version<=7&&(e=o.documentElement),n(e)}),y=function(){return m().css("overflow","hidden"),this},b=function(){return m().css("overflow","auto"),this},w=function(t,e){return n.contains(t,e)},x=function(t){return w(a,t)},_=function(e,r){r=r||0;var i=n(e);if(!i.length)return!1;var o=i.innerHeight(),a=t.getWindow(),s=a.height();("center"==r||"number"!=typeof r)&&(r=(s-o)/2);var u=a.scrollTop(),c=u+s,f=i.offset().top+r,l=f+o;return c>f&&l>u},O=function(t){var e;if("number"==typeof t)e=t;else{var r=n(t),i=r.offset().top;e=i-(h()-r.innerHeight())/2}return n("body,html").animate({scrollTop:e},800),this},j=function(e,r,i){var o=n(e);return i=i||"...",r=r||"data-max",o.each(function(e,o){var a=n(o),s=parseInt(a.attr(r),10),u=t.trim(a.text());u.length<=s||(u=u.slice(0,s-i.length)+i,a.text(u))}),this},E=function(t,e,r){var i=n(t);return r=r||"#FFF",e=e||"#FF9",i.each(function(t,i){var o=n(i);o.css("background-color",e).fadeOut("fast",function(){o.fadeIn("fast",function(){o.css("background-color",r).focus().select()})})}),this},S=function(e){var r=n(e),i=r.data("offset");i&&t.on("window.scroll",function(t){t>i?r.fadeIn():r.fadeOut()});var o=r.find(".J-fly-to-top"),a=o.length?o:r;return a.on("click",function(){return O(0),!1}),this},T=function(n){n=n||t.noop;var r="http://a.tbcdn.cn/p/header/webww-min.js";return e.KISSY?t.loadScript(r,n):t.loadScript(["http://a.tbcdn.cn/s/kissy/1.2.0/kissy-min.js",r],n),this};t.ready(function(t){var e=t.getWindow(),n=e.width(),r=e.height(),o=e.scrollTop();e.on("resize",i(function(){var i=e.width(),o=e.height();(n!==i||r!==o)&&t.trigger("window.resize",i,o),n=i,r=o},80)).on("scroll",i(function(){var n=e.scrollTop();o!==n&&t.trigger("window.scroll",n,o),o=n},80))});var k='<a target="_blank" href="http://www.taobao.com/webww/ww.php?ver=3&touid={{ nick }}&siteid=cntaobao&status={{ s }}&charset=utf-8"><img border="0" src="http://amos.alicdn.com/realonline.aw?v=2&uid={{ nick }}&site=cntaobao&s={{ s }}&charset=utf-8" alt="{{ prompt }}" /></a>';t.ready(function(t){t.$(function(){t.lightWangWang("[data-role=wangwang]")})}),t.mix({pageWidth:f,pageHeight:c,scrollY:p,scrollX:l,viewportHeight:h,viewportWidth:d,fullViewport:v,fullPage:g,stopBodyScroll:y,resetBodyScroll:b,contains:w,isInDocument:x,isInView:_,scrollTo:O,limitLength:j,initWangWang:T,lightWangWang:function(e){var r=n(e);r.each(function(e,r){var i=n(r),o=i.data();o=t.mix({prompt:"\u70b9\u51fb\u8fd9\u91cc\u7ed9\u6211\u53d1\u6d88\u606f",s:1},o),i.replaceWith(t.substitute(k,o))})},flash:E,flyToTop:S,embedPlayer:function(e){e=e||{},t.loadScript("http://api.video.taobao.com/video/getPlayerJS").done(function(){n(e.div).each(function(r,i){var o=n(i),a=n.extend({},e,o.data());o=n("<div></div>").appendTo(o);var s="tbtx-player-"+t.uniqueCid();o.attr("id",s),a.div=s;var u={width:"100%",height:"100%"};tb_player_object.embedPlayer(t.mix(u,a),a,a)})})}})}(tbtx),function(t){function e(){}function n(t,e,n,r){var i;if(t)for(var o=0,a=t.length;a>o;o+=2)i=t[o].apply(t[o+1]||n,e),i===!1&&r.status&&(r.status=!1)}var r=/\s+/;e.prototype.on=function(t,e,n){var i,o,a;if(!e)return this;for(i=this.__events||(this.__events={}),t=t.split(r);o=t.shift();)a=i[o]||(i[o]=[]),a.push(e,n);return this},e.prototype.off=function(t,e,n){var o,a,s,u;if(!(o=this.__events))return this;if(!(t||e||n))return delete this.__events,this;for(t=t?t.split(r):i(o);a=t.shift();)if(s=o[a])if(e||n)for(u=s.length-2;u>=0;u-=2)e&&s[u]!==e||n&&s[u+1]!==n||s.splice(u,2);else delete o[a];return this},e.prototype.trigger=function(t){var e,i,o,a,s,u,c=[],f={status:!0};if(!(e=this.__events))return this;for(t=t.split(r),s=1,u=arguments.length;u>s;s++)c[s-1]=arguments[s];for(;i=t.shift();)(o=e.all)&&(o=o.slice()),(a=e[i])&&(a=a.slice()),n(a,c,this,f),n(o,[i].concat(c),this,f);return f.status},e.mixTo=function(t){t=t.prototype||t;var n=e.prototype;for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])};var i=Object.keys;i||(i=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),t.Events=e,e.mixTo(t)}(tbtx),function(t){function e(t,e,i,a){for(var s,u,c=e.split(o);s=c.shift();)u=n(this,s),u.__isAspected||r.call(this,s),this.on(t+":"+s,i,a);return this}function n(e,n){var r=e[n];return r||t.error("aspect: Invalid method name: "+n),r}function r(t){var e=this[t];this[t]=function(){var n=Array.prototype.slice.call(arguments),r=["before:"+t].concat(n);if(this.trigger.apply(this,r)!==!1){var i=e.apply(this,arguments),o=["after:"+t,i].concat(n);return this.trigger.apply(this,o),i}},this[t].__isAspected=!0}var i=t.namespace("Aspect");i.before=function(t,n,r){return e.call(this,"before",t,n,r)},i.after=function(t,n,r){return e.call(this,"after",t,n,r)};var o=/\s+/}(tbtx),function(t){function e(t){return"[object String]"===b.call(t)}function n(t){return"[object Function]"===b.call(t)}function r(t){return null!=t&&t==t.window}function i(t){if(!t||"[object Object]"!==b.call(t)||t.nodeType||r(t))return!1;try{if(t.constructor&&!w.call(t,"constructor")&&!w.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}var n;if(y)for(n in t)return w.call(t,n);for(n in t);return void 0===n||w.call(t,n)}function o(t){if(!t||"[object Object]"!==b.call(t)||t.nodeType||r(t)||!t.hasOwnProperty)return!1;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function a(t,e){var n,r;for(n in e)if(e.hasOwnProperty(n)){if(r=e[n],x(r))r=r.slice();else if(i(r)){var o=t[n];i(o)||(o={}),r=a(o,r)}t[n]=r}return t}function s(t,e,n){for(var r=[],i=e.constructor.prototype;i;)i.hasOwnProperty("attrs")||(i.attrs={}),c(n,i.attrs,i),o(i.attrs)||r.unshift(i.attrs),i=i.constructor.superclass;for(var s=0,u=r.length;u>s;s++)a(t,h(r[s]))}function u(t,e){a(t,h(e,!0))}function c(t,e,n,r){for(var i=0,o=t.length;o>i;i++){var a=t[i];n.hasOwnProperty(a)&&(e[a]=r?e.get(a):n[a])}}function f(t,e){for(var r in e)if(e.hasOwnProperty(r)){var i,o=e[r].value;n(o)&&(i=r.match(O))&&(t[i[1]](l(i[2]),o),delete e[r])}}function l(t){var e=t.match(j),n=e[1]?"change:":"";return n+=e[2].toLowerCase()+e[3]}function p(t,e,n){var r={silent:!0};t.__initializingAttrs=!0;for(var i in n)n.hasOwnProperty(i)&&e[i].setter&&t.set(i,n[i],r);delete t.__initializingAttrs}function h(t,e){var n={};for(var r in t){var o=t[r];n[r]=!e&&i(o)&&d(o,E)?o:{value:o}}return n}function d(t,e){for(var n=0,r=e.length;r>n;n++)if(t.hasOwnProperty(e[n]))return!0;return!1}function v(t){return null==t||(e(t)||x(t))&&0===t.length||o(t)}function g(t,e){if(t===e)return!0;if(v(t)&&v(e))return!0;var n=b.call(t);if(n!=b.call(e))return!1;switch(n){case"[object String]":return t==String(e);case"[object Number]":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object RegExp]":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase;case"[object Array]":var r=t.toString(),o=e.toString();return-1===r.indexOf("[object")&&-1===o.indexOf("[object")&&r===o}if("object"!=typeof t||"object"!=typeof e)return!1;if(i(t)&&i(e)){if(!g(_(t),_(e)))return!1;for(var a in t)if(t[a]!==e[a])return!1;return!0}return!1}var m=t.namespace("Attrs");m.initAttrs=function(t){var e=this.attrs={},n=this.propsInAttrs||[];s(e,this,n),t&&u(e,t),p(this,e,t),f(this,e),c(n,this,e,!0)},m.get=function(t){var e=this.attrs[t]||{},n=e.value;return e.getter?e.getter.call(this,n,t):n},m.set=function(t,n,r){var o={};e(t)?o[t]=n:(o=t,r=n),r||(r={});var s=r.silent,u=r.override,c=this.attrs,f=this.__changedAttrs||(this.__changedAttrs={});for(t in o)if(o.hasOwnProperty(t)){var l=c[t]||(c[t]={});if(n=o[t],l.readOnly)throw new Error("This attribute is readOnly: "+t);l.setter&&(n=l.setter.call(this,n,t));var p=this.get(t);!u&&i(p)&&i(n)&&(n=a(a({},p),n)),c[t].value=n,this.__initializingAttrs||g(p,n)||(s?f[t]=[n,p]:this.trigger("change:"+t,n,p,t))}return this},m.change=function(){var t=this.__changedAttrs;if(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];this.trigger("change:"+e,n[0],n[1],e)}delete this.__changedAttrs}return this},m._isPlainObject=i;var y,b=Object.prototype.toString,w=Object.prototype.hasOwnProperty;!function(){function t(){this.x=1}var e=[];t.prototype={valueOf:1,y:1};for(var n in new t)e.push(n);y="x"!==e[0]}();var x=Array.isArray||function(t){return"[object Array]"===b.call(t)},_=Object.keys;_||(_=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e});var O=/^(on|before|after)([A-Z].*)$/,j=/^(Change)?([A-Z])(.*)/,E=["value","getter","setter","readOnly"]}(tbtx),function(t){function e(t,e){for(var n in e)if(e.hasOwnProperty(n)){var r="_onChange"+w(n);t[r]&&t.on("change:"+n,t[r])}}function n(t){return b(t.events)&&(t.events=t.events()),t.events}function r(t,e){var n=t.match(_),r=n[1]+h+e.cid,o=n[2]||void 0;return o&&o.indexOf("{{")>-1&&(o=i(o,e)),{type:r,selector:o}}function i(t,e){return t.replace(O,function(t,n){for(var r,i=n.split("."),o=e;r=i.shift();)o=o===e.attrs?e.get(r):o[r];return y(o)?o:j})}function o(t){return null==t||void 0===t}var a=t.$,s=t.Class,u=t.Events,c=t.Aspect,f=t.Attrs,l=new s;l.Implements([u,c,f]),l.include({init:function(t){this.initAttrs(t),e(this,this.attrs)},destroy:function(){this.off();for(var t in this)this.hasOwnProperty(t)&&delete this[t];this.destroy=function(){}}});var p={},h=".delegate-events-",d="_onRender",v="data-widget-cid",g=new s(l);g.DEFAULT_PARENT_NODE="body",g.include({propsInAttrs:["initElement","element","events"],element:null,events:null,attrs:{id:null,className:null,style:null,template:"<div></div>",model:null,parentNode:g.DEFAULT_PARENT_NODE,renderMethod:"appendTo"},init:function(t){this.cid=m(),g.superclass.init.call(this,t),this.parseElement(),this.initProps(),this.delegateEvents(),this.setup(),this._stamp(),this._isTemplate=!(t&&t.element)},parseElement:function(){var t=this.element;if(t?this.element=a(t):this.get("template")&&this.parseElementFromTemplate(),!this.element||!this.element[0])throw new Error("element is invalid")},parseElementFromTemplate:function(){var e,n=this.get("template");/^#/.test(n)&&(e=document.getElementById(n.substring(1)))&&(n=e.innerHTML,n=t.substitute(n,this.get("model")),this.set("template",n)),this.element=a(n)},initProps:function(){},delegateEvents:function(t,e,i){if(0===arguments.length?(e=n(this),t=this.element):1===arguments.length?(e=t,t=this.element):2===arguments.length?(i=e,e=t,t=this.element):(t||(t=this.element),this._delegateElements||(this._delegateElements=[]),this._delegateElements.push(a(t))),y(e)&&b(i)){var o={};o[e]=i,e=o}for(var s in e)if(e.hasOwnProperty(s)){var u=r(s,this),c=u.type,f=u.selector;!function(e,n){var r=function(t){b(e)?e.call(n,t):n[e](t)};f?a(t).on(c,f,r):a(t).on(c,r)}(e[s],this)}return this},undelegateEvents:function(t,e){if(e||(e=t,t=null),0===arguments.length){var n=h+this.cid;if(this.element&&this.element.off(n),this._delegateElements)for(var i in this._delegateElements)this._delegateElements.hasOwnProperty(i)&&this._delegateElements[i].off(n)}else{var o=r(e,this);t?a(t).off(o.type,o.selector):this.element&&this.element.off(o.type,o.selector)}return this},$:function(t){return this.element.find(t)},setup:function(){},render:function(){this.rendered||(this._renderAndBindAttrs(),this.rendered=!0);var t=this.get("parentNode"),e=this.get("relatedNode"),n=e||t,r=this.get("renderMethod");if(n&&!x(this.element[0])){var i=this.constructor.outerBoxClass;if(i){var o=this._outerBox=a("<div></div>").addClass(i);o.append(this.element)[r](n)}else this.element[r](n)}return this},_renderAndBindAttrs:function(){var t=this,e=t.attrs;for(var n in e)if(e.hasOwnProperty(n)){var r=d+w(n);if(this[r]){var i=this.get(n);o(i)||this[r](i,void 0,n),function(e){t.on("change:"+n,function(n,r,i){t[e](n,r,i)})}(r)}}},_onRenderId:function(t){this.element.attr("id",t)},_onRenderClassName:function(t){this.element.addClass(t)},_onRenderStyle:function(t){this.element.css(t)},_stamp:function(){var t=this.cid;(this.initElement||this.element).attr(v,t),p[t]=this},destroy:function(){this.undelegateEvents(),delete p[this.cid],this.element&&this._isTemplate&&(this.element.off(),this._outerBox?this._outerBox.remove():this.element.remove()),this.element=null,g.superclass.destroy.call(this)}}),t.ready(function(t){a=t.$,a(window).unload(function(){for(var t in p)p[t].destroy()})}),g.query=function(t){var e,n=a(t).eq(0);return n&&(e=n.attr(v)),p[e]};var m=t.generateCid("widget-"),y=t.isString,b=t.isFunction,w=t.ucfirst,x=t.isInDocument,_=/^(\S+)\s*(.*)$/,O=/{{([^}]+)}}/g,j="INVALID_SELECTOR";t.Base=l,t.Widget=g,t.createWidget=function(t,e){return e=e||g,new s(e,t)}}(tbtx),function(t){var e=t.$,n=t.Class,r=t.Widget,i=t.singleton;t.ready(function(t){e=t.$});var o=(window.navigator.userAgent||"").toLowerCase(),a=-1!==o.indexOf("msie 6"),s=new n(r,{attrs:{type:"",msg:"",duration:200,template:"<p></p>",className:"tbtx-msg-item"},render:function(){s.superclass.render.apply(this,arguments);var t=this.element.width();return this.element.css({left:-t,opacity:0}).animate({left:0,opacity:1},this.get("duration")),this},_onRenderType:function(t){this.element.addClass("tbtx-msg-"+t)},_onRenderMsg:function(t){this.element.html(t)},destroy:function(){var t=this.element.width(),e=this;this.element.animate({left:-t,opacity:0},this.get("duration"),function(){s.superclass.destroy.call(e)})}}),u=new n(r,{attrs:{items:{value:"p",getter:function(t){return this.$(t)}},last:1e4},events:{"click p":"_removeHandler"},add:function(t,e){var n=this.get("items");n.length>10&&this.remove(n.first());var r=new s({msg:t,type:e,parentNode:this.element}).render(),i=this;setTimeout(function(){i.remove(r.element)},this.get("last"))},remove:function(t){var e=r.query(t);e&&e.destroy()},_removeHandler:function(t){this.remove(e(t.target))}}),c=function(e){t.pin({element:e,x:0,y:"100%+24"},{element:t.VIEWPORT,x:0,y:"100%"})},f=i(function(){t.loadCss("base/css/msg.css");var e=new u({id:"tbtx-msg"}).render();return a&&(c(e.element),t.on("window.scroll window.resize",function(){e.get("items").length&&c(e.element)})),e}),l=t.MSG={},p="warning error info debug success".split(" ");t.each(p,function(e){t[e]=l[e]=function(t){f().add(t,e)}});var h,d=i(function(){return t.loadCss("base/css/msg.css"),e(t.substitute('<div class="tbtx-broadcast">{{ msg }}</div>')).appendTo("body")});t.broadcast=function(n,r,i){i=i||"center",r=r||4e3;h&&h.cancel();if(!n)return e(".tbtx-broadcast").hide(),void 0;var o=d().html(n);"center"==i?t.center(o):t.pin({element:o,x:"50%",y:"top"==i?-60:"100%+60"},{element:t.VIEWPORT,x:"50%",y:"top"==i?0:"100%"}),o.fadeIn(),r>0&&(h=t.later(function(){o.fadeOut()},r,!1))}}(tbtx),function(t){var e=t.parseUrl();e.query=new t.Query(e.query).get(),t.data("urlInfo",e);var n=e.scheme+"://"+e.domain;e.port&&(n+=":"+e.port),t.startsWith(e.scheme,"http")||(n="");var r={getuserinfo:"/interface/getuserinfo.htm",getlogininfo:"/interface/getlogininfo.htm",taobao_login_page:"/applogin.htm",login:"/applogin.htm?ref="+encodeURIComponent(location.href)};t.mix({Root:n,path:r})}(tbtx),function(t){var e=t.$,n=t.isPending,r=t.path,i=1e4;t.ready(function(t){e=t.$});var o=function(){var e=Math.random().toString().substr(2)+(new Date).getTime().toString().substr(1)+Math.random().toString().substr(2);return t.cookie.set("MIIEE_JTOKEN",e,"","","/"),e},a=t.singleton(function(n){var o=e.Deferred();return e.ajax({type:"POST",url:n?r.getlogininfo:r.getuserinfo,dataType:"json",timeout:i}).done(function(e){var n=e.result&&e.result.data,r=e.code;601==r?o.reject():t.inArray([100,608,1e3],r)&&(t.data("user",n),t.data("userName",n.trueName?n.trueName:n.userNick),o.resolve(n))}).fail(function(){o.reject()}),o.fail(function(){e(".J-login").attr({href:r.login,target:"_self"})}),o}),s={miiee:{appkey:"2328604005",uid:"1644022571"},brand:{appkey:"2328604005",uid:"2140361617"},tbtx:{appkey:"2328604005",uid:"1644022571"},maijia:{uid:"1771650130"}},u=function(n,r,i,o,a,u){u=u||"",a=a||"miiee",o=o||"",i=i||location.href,r=r||e('meta[name="description"]').attr("content");var c="http://v.t.sina.com.cn/share/share.php?",f={appkey:s[a].appkey||"",url:i,title:r,ralateUid:u||s[a].uid,pic:o},l=c+t.param(f);e(n).attr({href:l,target:"_blank"})},c=-1,f={code:c,msg:"\u8bf7\u6c42\u5931\u8d25\uff01\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\uff01"},l=-2,p={},h=function(r,a,s){s=s||h.successCode||[100],a=a||{},"object"!=typeof a||a.jtoken||(a.jtoken=o());var u=p[r];return u&&n(u)?(u.notify(l),u.promise()):(u=p[r]=e.Deferred(),e.ajax({url:r,type:"post",dataType:"json",data:a,timeout:i}).done(function(e){var n=e&&e.code;t.inArray(s,n)?u.resolve(e):u.reject(n,e)}).fail(function(){u.reject(c,f)}),u.promise())};t.mix({miieeJSToken:o,userCheck:function(t,e,n){return a(n).done(t).fail(e).promise()},initMiiee:function(){return t.loadScript(["miiee/js/m.js","miiee/js/base.js"])},Request:h,bingo:function(e,n){if(e>n)return!1;n=n||100;var r=t.choice(1,n+1);return e>=r?!0:!1},shareToSinaWB:u,addToFavourite:function(e,n){n=n||location.href,e=e||document.title;var r=function(){t.MSG.info("\u6309\u4e0b "+(-1!=navigator.userAgent.toLowerCase().indexOf("mac")?"Command/Cmd":"CTRL")+" + D \u6765\u6536\u85cf\u672c\u9875.")};try{window.external.AddFavorite(n,e)}catch(i){try{window.sidebar.addPanel(e,n,"")}catch(o){if("object"==typeof opera)return r(),!0;r()}}},loadTanx:function(t,n){e(t).each(function(t,r){var i=e(r),o=i.data(),a=o.tanxid||n;if(a){i.empty().append('<a style="display:none!important" id="tanx-a-mm_'+a+'"></a>');var s=document.createElement("script");s.type="text/javascript",s.charset="gbk",s.id="tanx-s-mm_"+a,s.async=!0,s.src="http://p.tanx.com/ex?i=mm_"+a;var u=document.getElementsByTagName("head")[0];u&&u.insertBefore(s,u.firstChild)}})},initTaobaoSiteNav:t.singleton(function(){var n='<div id="J_SiteNav" class="site-nav"><div id="J_SiteNavBd" class="site-nav-bd"><ul id="J_SiteNavBdL" class="site-nav-bd-l"></ul><ul id="J_SiteNavBdR" class="site-nav-bd-r"></ul></div></div>',r=(e(n).prependTo("body"),t.global),i=function(){TB.Global.ui={l:[]},TB.Global.blacklist=["fn-cart"],TB.Global.init(),t.userCheck().done(function(){e("#J_SiteNavBdL").append('<div id="J_LoginInfo" class="menu"><div id="J_LoginInfoHd" class="menu-hd"><a href="/home.htm" target="_blank">'+t.data("userName")+'</a><a href="/logout.htm">\u9000\u51fa</a></div></div>')}).fail(function(){e("#J_SiteNavBdL").append('<div id="J_LoginInfo" class="menu"><div id="J_LoginInfoHd" class="menu-hd"><a href="'+t.path.login+'">\u4eb2\uff0c\u8bf7\u767b\u5f55</a></div></div>')})};if(r.KISSY&&r.TB)return i(),t;var o=r.KISSY?"http://g.tbcdn.cn/tb/global/2.6.10/global-min.js":"http://g.tbcdn.cn/??kissy/k/1.3.2/kissy-min.js,tb/global/2.6.10/global-min.js";return t.loadScript(o).done(function(){i()}),t})})}(tbtx);