yui-min.js revision 71faff7b11b42699cd2630a4c371fcec37e94517
if(typeof YUI==="undefined"||!YUI){var YUI=function(F,E,D,C,A){var B=this,J=arguments,I,G=J.length,H=(typeof YUI_config!=="undefined")&&YUI_config;if(!(B instanceof YUI)){return new YUI(F,E,D,C,A);}else{B._init();if(H){B._config(H);}for(I=0;I<G;I++){B._config(J[I]);}B._setup();return B;}};}(function(){var A=(typeof window!="undefined"),K=(A)?window:null,L=(A)?K.document:null,D=L&&L.documentElement,N=D&&D.className,G="yui3-js-enabled",M=function(){},P={},C=new Date().getTime(),B,I,O=function(T,S,R,Q){if(T&&T.addEventListener){T.addEventListener(S,R,(!!Q));}else{if(T&&T.attachEvent){T.attachEvent("on"+S,R);}}},H=function(T,S,R,Q){if(T&&T.removeEventListener){T.removeEventListener(S,R,!!Q);}else{if(T&&T.detachEvent){T.detachEvent("on"+S,R);}}},F=function(){YUI.Env.windowLoaded=true;YUI.Env.DOMReady=true;if(A){H(window,"load",F);}},E={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},J=Array.prototype.slice;if(D&&N.indexOf(G)==-1){if(N){N+=" ";}N+=G;D.className=N;}YUI.prototype={_config:function(U){U=U||{};var V=this.config,S,R,Q,T;T=V.modules;for(S in U){if(T&&S=="modules"){Q=U[S];for(R in Q){if(Q.hasOwnProperty(R)){T[R]=Q[R];}}}else{if(S=="win"){V[S]=U[S].contentWindow||U[S];V.doc=V[S].document;}else{V[S]=U[S];}}}},_init:function(){var Q="@VERSION@",S=this,R;if(Q.indexOf("@")>-1){Q="test";}S.version=Q;S.gallery="gallery-2010.02.10-01";if(!S.Env){S.Env={mods:{},cdn:"http://yui.yahooapis.com/"+Q+"/build/",bootstrapped:false,_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_guidp:"y",_loaded:{}};S.Env._loaded[Q]={};if(YUI.Env&&S!==YUI){S.Env._yidx=(++YUI.Env._yidx);S.Env._guidp=("yui_"+Q+"_"+S.Env._yidx+"_"+C).replace(/\./g,"_");}S.id=S.stamp(S);P[S.id]=S;}S.constructor=YUI;S.config=S.config||{win:K,doc:L,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,fetchCSS:true,base:(YUI.config&&YUI.config.base)||function(){var T,U,W,X,V;U=(L&&L.getElementsByTagName("script"))||[];for(W=0;W<U.length;W=W+1){X=U[W].src;if(X){V=X.match(/^(.*)yui\/yui([\.\-].*)js(\?.*)?$/);T=V&&V[1];if(T){R=V[2];V=X.match(/^(.*\?)(.*\&)(.*)yui\/yui[\.\-].*js(\?.*)?$/);if(V&&V[3]){T=V[1]+V[3];}break;}}}return T||S.Env.cdn;}(),loaderPath:(YUI.config&&YUI.config.loaderPath)||"loader/loader"+(R||"-min.")+"js"};},_setup:function(U){var T=this,Q=[],S=YUI.Env.mods,R=T.config.core||["get","intl-base","loader","yui-log","yui-later","yui-throttle"];for(I=0;I<R.length;I++){if(S[R[I]]){Q.push(R[I]);}}T.use("yui-base");T.use.apply(T,Q);},applyTo:function(W,V,S){if(!(V in E)){this.log(V+": applyTo not allowed","warn","yui");return null;}var R=P[W],U,Q,T;if(R){U=V.split(".");Q=R;for(T=0;T<U.length;T=T+1){Q=Q[U[T]];if(!Q){this.log("applyTo not found: "+V,"warn","yui");}}return Q.apply(R,S);}return null;},add:function(R,T,Q,S){YUI.Env.mods[R]={name:R,fn:T,version:Q,details:S||{}};return this;},_attach:function(R,V){var a=YUI.Env.mods,S=this.Env._attached,X,W=R.length,T,U,Y,Z,Q;for(X=0;X<W;X=X+1){T=R[X];U=a[T];if(!S[T]&&U){S[T]=true;Y=U.details;Z=Y.requires;Q=Y.use;if(Z){this._attach(this.Array(Z));}if(U.fn){U.fn(this,T);}if(Q){this._attach(this.Array(Q));}}}},use:function(){if(this._loading){this._useQueue=this._useQueue||new this.Queue();this._useQueue.add(J.call(arguments,0));return this;}var Q=this,n=J.call(arguments,0),S=YUI.Env.mods,U=Q.Env._used,X,c=YUI.Env._loaderQueue,W,p=n[0],R=false,T=n[n.length-1],o=Q.config,V=o.bootstrap,e,h,d,g=[],b=[],Z=Q.config.fetchCSS,j=function(i){if(U[i]){return;}var Y=S[i],f,k,a;if(Y){U[i]=true;k=Y.details.requires;a=Y.details.use;}else{if(!YUI.Env._loaded[Q.version][i]){g.push(i);}else{U[i]=true;}}if(k){if(typeof k=="string"){j(k);}else{for(f=0;f<k.length;f=f+1){j(k[f]);}}}b.push(i);},m;if(typeof T==="function"){n.pop();}else{T=null;}m=function(Y){Y=Y||{success:true,msg:"not dynamic"};if(T){T(Q,Y);}if(Q.fire){Q.fire("yui:load",Q,Y);}Q._loading=false;if(Q._useQueue&&Q._useQueue.size()&&!Q._loading){Q.use.apply(Q,Q._useQueue.next());}};if(p==="*"){n=[];for(e in S){if(S.hasOwnProperty(e)){n.push(e);}}if(T){n.push(T);}return Q.use.apply(Q,n);}if(Q.Loader){R=true;X=new Q.Loader(o);X.require(n);X.ignoreRegistered=true;X.allowRollup=false;X.calculate(null,(Z)?null:"js");n=X.sorted;}d=n.length;for(h=0;h<d;h=h+1){j(n[h]);}d=g.length;if(d){g=Q.Object.keys(Q.Array.hash(g));}if(V&&d&&Q.Loader){Q._loading=true;X=new Q.Loader(o);X.onSuccess=m;X.onFailure=m;X.onTimeout=m;X.context=Q;X.attaching=n;X.require((Z)?g:n);X.insert(null,(Z)?null:"js");}else{if(V&&d&&Q.Get&&!Q.Env.bootstrapped){Q._loading=true;n=Q.Array(arguments,0,true);W=function(){Q._loading=false;c.running=false;Q.Env.bootstrapped=true;Q._attach(["loader"]);Q.use.apply(Q,n);};if(YUI.Env._bootstrapping){c.add(W);}else{YUI.Env._bootstrapping=true;Q.Get.script(o.base+o.loaderPath,{onEnd:W});}return Q;}else{if(d){Q.message("Requirement NOT loaded: "+g,"warn","yui");}Q._attach(b);m();}}return Q;},namespace:function(){var Q=arguments,U=null,S,R,T;for(S=0;S<Q.length;S=S+1){T=(""+Q[S]).split(".");U=this;for(R=(T[0]=="YAHOO")?1:0;R<T.length;R=R+1){U[T[R]]=U[T[R]]||{};U=U[T[R]];}}return U;},log:M,message:M,error:function(R,Q){if(this.config.throwFail){throw (Q||new Error(R));}else{this.message(R,"error");}return this;},guid:function(Q){var R=this.Env._guidp+(++this.Env._uidx);return(Q)?(Q+R):R;},stamp:function(S,T){if(!S){return S;}var Q=(typeof S==="string")?S:S._yuid;if(!Q){Q=this.guid();if(!T){try{S._yuid=Q;}catch(R){Q=null;}}}return Q;}};B=YUI.prototype;for(I in B){if(1){YUI[I]=B[I];}}YUI._init();YUI._attach(["yui-base"]);if(A){O(window,"load",F);}else{F();}YUI.Env.add=O;YUI.Env.remove=H;if(typeof exports=="object"){exports.YUI=YUI;}})();YUI.add("yui-base",function(B){(function(){B.Lang=B.Lang||{};var R=B.Lang,G="array",I="boolean",D="date",M="error",S="function",H="number",K="null",F="object",O="regexp",N="string",C=Object.prototype.toString,P="undefined",E={"undefined":P,"number":H,"boolean":I,"string":N,"[object Function]":S,"[object RegExp]":O,"[object Array]":G,"[object Date]":D,"[object Error]":M},J=/^\s+|\s+$/g,Q="";R.isArray=function(L){return R.type(L)===G;
};R.isBoolean=function(L){return typeof L===I;};R.isFunction=function(L){return R.type(L)===S;};R.isDate=function(L){return R.type(L)===D&&L.toString()!=="Invalid Date"&&!isNaN(L);};R.isNull=function(L){return L===null;};R.isNumber=function(L){return typeof L===H&&isFinite(L);};R.isObject=function(U,T){var L=typeof U;return(U&&(L===F||(!T&&(L===S||R.isFunction(U)))))||false;};R.isString=function(L){return typeof L===N;};R.isUndefined=function(L){return typeof L===P;};R.trim=function(L){try{return L.replace(J,Q);}catch(T){return L;}};R.isValue=function(T){var L=R.type(T);switch(L){case H:return isFinite(T);case K:case P:return false;default:return !!(L);}};R.type=function(L){return E[typeof L]||E[C.call(L)]||(L?F:K);};})();(function(){var C=B.Lang,D=Array.prototype,E="length",F=function(M,K,I){var J=(I)?2:F.test(M),H,G,N=K||0;if(J){try{return D.slice.call(M,N);}catch(L){G=[];H=M.length;for(;N<H;N++){G.push(M[N]);}return G;}}else{return[M];}};B.Array=F;F.test=function(I){var G=0;if(C.isObject(I)){if(C.isArray(I)){G=1;}else{try{if((E in I)&&!I.tagName&&!I.alert&&!I.apply){G=2;}}catch(H){}}}return G;};F.each=(D.forEach)?function(G,H,I){D.forEach.call(G||[],H,I||B);return B;}:function(H,J,K){var G=(H&&H.length)||0,I;for(I=0;I<G;I=I+1){J.call(K||B,H[I],I,H);}return B;};F.hash=function(I,H){var L={},G=I.length,K=H&&H.length,J;for(J=0;J<G;J=J+1){L[I[J]]=(K&&K>J)?H[J]:true;}return L;};F.indexOf=(D.indexOf)?function(G,H){return D.indexOf.call(G,H);}:function(G,I){for(var H=0;H<G.length;H=H+1){if(G[H]===I){return H;}}return -1;};F.numericSort=function(H,G){return(H-G);};F.some=(D.some)?function(G,H,I){return D.some.call(G,H,I);}:function(H,J,K){var G=H.length,I;for(I=0;I<G;I=I+1){if(J.call(K,H[I],I,H)){return true;}}return false;};})();function A(){this._init();this.add.apply(this,arguments);}A.prototype={_init:function(){this._q=[];},next:function(){return this._q.shift();},last:function(){return this._q.pop();},add:function(){B.Array.each(B.Array(arguments,0,true),function(C){this._q.push(C);},this);return this;},size:function(){return this._q.length;}};B.Queue=A;YUI.Env._loaderQueue=YUI.Env._loaderQueue||new A();(function(){var D=B.Lang,C="__",E=function(H,G){var F=G.toString;if(D.isFunction(F)&&F!=Object.prototype.toString){H.toString=F;}};B.merge=function(){var G=arguments,I={},H,F=G.length;for(H=0;H<F;H=H+1){B.mix(I,G[H],true);}return I;};B.mix=function(F,O,H,N,L,M){if(!O||!F){return F||B;}if(L){switch(L){case 1:return B.mix(F.prototype,O.prototype,H,N,0,M);case 2:B.mix(F.prototype,O.prototype,H,N,0,M);break;case 3:return B.mix(F,O.prototype,H,N,0,M);case 4:return B.mix(F.prototype,O,H,N,0,M);default:}}var K=M&&D.isArray(F),J,I,G;if(N&&N.length){for(J=0,I=N.length;J<I;++J){G=N[J];if(O.hasOwnProperty(G)){if(M&&D.isObject(F[G],true)){B.mix(F[G],O[G]);}else{if(!K&&(H||!(G in F))){F[G]=O[G];}else{if(K){F.push(O[G]);}}}}}}else{for(J in O){if(O.hasOwnProperty(J)){if(M&&D.isObject(F[J],true)){B.mix(F[J],O[J],H,N,0,true);}else{if(!K&&(H||!(J in F))){F[J]=O[J];}else{if(K){F.push(O[J]);}}}}}if(B.UA.ie){E(F,O);}}return F;};B.cached=function(H,F,G){F=F||{};return function(K,J){var I=(J)?Array.prototype.join.call(arguments,C):K;if(!(I in F)||(G&&F[I]==G)){F[I]=H.apply(H,arguments);}return F[I];};};})();(function(){B.Object=function(H){var G=function(){};G.prototype=H;return new G();};var E=B.Object,F=function(H,G){return H&&H.hasOwnProperty&&H.hasOwnProperty(G);},D=undefined,C=function(K,J){var I=(J===2),G=(I)?0:[],H;for(H in K){if(F(K,H)){if(I){G++;}else{G.push((J)?K[H]:H);}}}return G;};E.keys=function(G){return C(G);};E.values=function(G){return C(G,1);};E.size=function(G){return C(G,2);};E.hasKey=F;E.hasValue=function(H,G){return(B.Array.indexOf(E.values(H),G)>-1);};E.owns=F;E.each=function(K,J,L,I){var H=L||B,G;for(G in K){if(I||F(K,G)){J.call(H,K[G],G,K);}}return B;};E.some=function(K,J,L,I){var H=L||B,G;for(G in K){if(I||F(K,G)){if(J.call(H,K[G],G,K)){return true;}}}return false;};E.getValue=function(K,J){if(!B.Lang.isObject(K)){return D;}var I=B.Array(J),G=I.length,H;for(H=0;K!==D&&H<G;H=H+1){K=K[I[H]];}return K;};E.setValue=function(M,K,L){var J=B.Array(K),I=J.length-1,G,H=M;if(I>=0){for(G=0;H!==D&&G<I;G=G+1){H=H[J[G]];}if(H!==D){H[J[G]]=L;}else{return D;}}return M;};})();B.UA=function(){var F=function(K){var L=0;return parseFloat(K.replace(/\./g,function(){return(L++==1)?"":".";}));},G=B.config.win,J=G&&G.navigator,I={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,caja:J&&J.cajaVersion,secure:false,os:null},E=J&&J.userAgent,H=G&&G.location,D=H&&H.href,C;I.secure=D&&(D.toLowerCase().indexOf("https")===0);if(E){if((/windows|win32/i).test(E)){I.os="windows";}else{if((/macintosh/i).test(E)){I.os="macintosh";}else{if((/rhino/i).test(E)){I.os="rhino";}}}if((/KHTML/).test(E)){I.webkit=1;}C=E.match(/AppleWebKit\/([^\s]*)/);if(C&&C[1]){I.webkit=F(C[1]);if(/ Mobile\//.test(E)){I.mobile="Apple";}else{C=E.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/);if(C){I.mobile=C[0];}}C=E.match(/Chrome\/([^\s]*)/);if(C&&C[1]){I.chrome=F(C[1]);}else{C=E.match(/AdobeAIR\/([^\s]*)/);if(C){I.air=C[0];}}}if(!I.webkit){C=E.match(/Opera[\s\/]([^\s]*)/);if(C&&C[1]){I.opera=F(C[1]);C=E.match(/Opera Mini[^;]*/);if(C){I.mobile=C[0];}}else{C=E.match(/MSIE\s([^;]*)/);if(C&&C[1]){I.ie=F(C[1]);}else{C=E.match(/Gecko\/([^\s]*)/);if(C){I.gecko=1;C=E.match(/rv:([^\s\)]*)/);if(C&&C[1]){I.gecko=F(C[1]);}}}}}}return I;}();},"@VERSION@");YUI.add("get",function(A){(function(){var C=A.UA,B=A.Lang,E="text/javascript",F="text/css",D="stylesheet";A.Get=function(){var L={},M,N,J,K=0,U=false,W=function(a,X,b){var Y=b||A.config.win,c=Y.document,e=c.createElement(a),Z;for(Z in X){if(X[Z]&&X.hasOwnProperty(Z)){e.setAttribute(Z,X[Z]);}}return e;},T=function(Y,Z,X){var a={id:A.guid(),type:F,rel:D,href:Y};if(X){A.mix(a,X);}return W("link",a,Z);},S=function(Y,Z,X){var a={id:A.guid(),type:E};if(X){A.mix(a,X);}a.src=Y;return W("script",a,Z);},P=function(Y,Z,X){return{tId:Y.tId,win:Y.win,data:Y.data,nodes:Y.nodes,msg:Z,statusText:X,purge:function(){N(this.tId);
}};},O=function(b,a,X){var Y=L[b],Z;if(Y&&Y.onEnd){Z=Y.context||Y;Y.onEnd.call(Z,P(Y,a,X));}},V=function(a,Z){var X=L[a],Y;if(X.timer){clearTimeout(X.timer);}if(X.onFailure){Y=X.context||X;X.onFailure.call(Y,P(X,Z));}O(a,Z,"failure");},I=function(a){var X=L[a],Z,Y;if(X.timer){clearTimeout(X.timer);}X.finished=true;if(X.aborted){Z="transaction "+a+" was aborted";V(a,Z);return;}if(X.onSuccess){Y=X.context||X;X.onSuccess.call(Y,P(X));}O(a,Z,"OK");},Q=function(Z){var X=L[Z],Y;if(X.onTimeout){Y=X.context||X;X.onTimeout.call(Y,P(X));}O(Z,"timeout","timeout");},H=function(Z,c){var Y=L[Z],b,g,f,e,a,X,i;if(Y.timer){clearTimeout(Y.timer);}if(Y.aborted){b="transaction "+Z+" was aborted";V(Z,b);return;}if(c){Y.url.shift();if(Y.varName){Y.varName.shift();}}else{Y.url=(B.isString(Y.url))?[Y.url]:Y.url;if(Y.varName){Y.varName=(B.isString(Y.varName))?[Y.varName]:Y.varName;}}g=Y.win;f=g.document;e=f.getElementsByTagName("head")[0];if(Y.url.length===0){I(Z);return;}X=Y.url[0];if(!X){Y.url.shift();return H(Z);}if(Y.timeout){Y.timer=setTimeout(function(){Q(Z);},Y.timeout);}if(Y.type==="script"){a=S(X,g,Y.attributes);}else{a=T(X,g,Y.attributes);}J(Y.type,a,Z,X,g,Y.url.length);Y.nodes.push(a);if(Y.insertBefore){i=M(Y.insertBefore,Z);if(i){i.parentNode.insertBefore(a,i);}}else{e.appendChild(a);}if((C.webkit||C.gecko)&&Y.type==="css"){H(Z,X);}},G=function(){if(U){return;}U=true;var X,Y;for(X in L){if(L.hasOwnProperty(X)){Y=L[X];if(Y.autopurge&&Y.finished){N(Y.tId);delete L[X];}}}U=false;},R=function(Y,X,Z){Z=Z||{};var c="q"+(K++),a,b=Z.purgethreshold||A.Get.PURGE_THRESH;if(K%b===0){G();}L[c]=A.merge(Z,{tId:c,type:Y,url:X,finished:false,nodes:[]});a=L[c];a.win=a.win||A.config.win;a.context=a.context||a;a.autopurge=("autopurge" in a)?a.autopurge:(Y==="script")?true:false;a.attributes=a.attributes||{};a.attributes.charset=Z.charset||a.attributes.charset||"utf-8";setTimeout(function(){H(c);},0);return{tId:c};};J=function(Z,e,d,Y,c,b,X){var a=X||H;if(C.ie){e.onreadystatechange=function(){var f=this.readyState;if("loaded"===f||"complete"===f){e.onreadystatechange=null;a(d,Y);}};}else{if(C.webkit){if(Z==="script"){e.addEventListener("load",function(){a(d,Y);});}}else{e.onload=function(){a(d,Y);};e.onerror=function(f){V(d,f+": "+Y);};}}};M=function(X,a){var Y=L[a],Z=(B.isString(X))?Y.win.document.getElementById(X):X;if(!Z){V(a,"target node not found: "+X);}return Z;};N=function(c){var X=L[c],Y,a,g,e,j,b,Z,f;if(X){Y=X.nodes;a=Y.length;g=X.win.document;e=g.getElementsByTagName("head")[0];if(X.insertBefore){j=M(X.insertBefore,c);if(j){e=j.parentNode;}}for(b=0;b<a;b=b+1){Z=Y[b];if(Z.clearAttributes){Z.clearAttributes();}else{for(f in Z){if(Z.hasOwnProperty(f)){delete Z[f];}}}e.removeChild(Z);}}X.nodes=[];};return{PURGE_THRESH:20,_finalize:function(X){setTimeout(function(){I(X);},0);},abort:function(Y){var Z=(B.isString(Y))?Y:Y.tId,X=L[Z];if(X){X.aborted=true;}},script:function(X,Y){return R("script",X,Y);},css:function(X,Y){return R("css",X,Y);}};}();})();},"@VERSION@");YUI.add("intl-base",function(B){var A=/[, ]/;B.mix(B.namespace("Intl"),{lookupBestLang:function(G,H){var F,I,C,E;function D(K){var J;for(J=0;J<H.length;J+=1){if(K.toLowerCase()===H[J].toLowerCase()){return H[J];}}}if(B.Lang.isString(G)){G=G.split(A);}for(F=0;F<G.length;F+=1){I=G[F];if(!I||I==="*"){continue;}while(I.length>0){C=D(I);if(C){return C;}else{E=I.lastIndexOf("-");if(E>=0){I=I.substring(0,E);if(E>=2&&I.charAt(E-2)==="-"){I=I.substring(0,E-2);}}else{break;}}}}return"";}});},"@VERSION@",{requires:["yui-base"]});YUI.add("yui-log",function(A){(function(){var D=A,F="yui:log",B="undefined",C={debug:1,info:1,warn:1,error:1},E;D.log=function(I,Q,G,O){var H=D,P=H.config,K=false,N,L,J,M;if(P.debug){if(G){N=P.logExclude;L=P.logInclude;if(L&&!(G in L)){K=1;}else{if(N&&(G in N)){K=1;}}}if(!K){if(P.useBrowserConsole){J=(G)?G+": "+I:I;if(H.Lang.isFunction(P.logFn)){P.logFn(I,Q,G);}if(typeof console!=B&&console.log){M=(Q&&console[Q]&&(Q in C))?Q:"log";console[M](J);}else{if(typeof opera!=B){opera.postError(J);}}}if(H.fire&&!O){if(!E){H.publish(F,{broadcast:2});E=1;}H.fire(F,{msg:I,cat:Q,src:G});}}}return H;};D.message=function(){return D.log.apply(D,arguments);};})();},"@VERSION@",{requires:["yui-base"]});YUI.add("yui-later",function(A){(function(){var B=A.Lang,C=function(K,E,L,G,H){K=K||0;E=E||{};var F=L,J=A.Array(G),I,D;if(B.isString(L)){F=E[L];}if(!F){}I=function(){F.apply(E,J);};D=(H)?setInterval(I,K):setTimeout(I,K);return{id:D,interval:H,cancel:function(){if(this.interval){clearInterval(D);}else{clearTimeout(D);}}};};A.later=C;B.later=C;})();},"@VERSION@",{requires:["yui-base"]});YUI.add("yui-throttle",function(Y){
/* Based on work by Simon Willison: http://gist.github.com/292562 */
var throttle=function(fn,ms){ms=(ms)?ms:(Y.config.throttleTime||150);if(ms===-1){return(function(){fn.apply(null,arguments);});}var last=(new Date()).getTime();return(function(){var now=(new Date()).getTime();if(now-last>ms){last=now;fn.apply(null,arguments);}});};Y.throttle=throttle;},"@VERSION@",{requires:["yui-base"]});YUI.add("yui",function(A){},"@VERSION@",{use:["yui-base","get","intl-base","yui-log","yui-later","yui-throttle"]});