if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var F=arguments,G=null,I,J,H;for(I=0;I<F.length;I=I+1){H=F[I].split(".");G=YAHOO;for(J=(H[0]=="YAHOO")?1:0;J<H.length;J=J+1){G[H[J]]=G[H[J]]||{};G=G[H[J]];}}return G;};YAHOO.log=function(F,E,G){var H=YAHOO.widget.Logger;if(H&&H.log){return H.log(F,E,G);}else{return false;}};YAHOO.register=function(M,R,J){var N=YAHOO.env.modules;if(!N[M]){N[M]={versions:[],builds:[]};}var L=N[M],O=J.version,P=J.build,Q=YAHOO.env.listeners;L.name=M;L.version=O;L.build=P;L.versions.push(O);L.builds.push(P);L.mainClass=R;for(var K=0;K<Q.length;K=K+1){Q[K](L);}if(R){R.VERSION=O;R.BUILD=P;}else{YAHOO.log("mainClass is undefined for module "+M,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(B){return YAHOO.env.modules[B]||null;};YAHOO.env.ua=function(){var E={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0};var F=navigator.userAgent,D;if((/KHTML/).test(F)){E.webkit=1;}D=F.match(/AppleWebKit\/([^\s]*)/);if(D&&D[1]){E.webkit=parseFloat(D[1]);if(/ Mobile\//.test(F)){E.mobile="Apple";}else{D=F.match(/NokiaN[^\/]*/);if(D){E.mobile=D[0];}}D=F.match(/AdobeAIR\/([^\s]*)/);if(D){E.air=D[0];}}if(!E.webkit){D=F.match(/Opera[\s\/]([^\s]*)/);if(D&&D[1]){E.opera=parseFloat(D[1]);D=F.match(/Opera Mini[^;]*/);if(D){E.mobile=D[0];}}else{D=F.match(/MSIE\s([^;]*)/);if(D&&D[1]){E.ie=parseFloat(D[1]);}else{D=F.match(/Gecko\/([^\s]*)/);if(D){E.gecko=1;D=F.match(/rv:([^\s\)]*)/);if(D&&D[1]){E.gecko=parseFloat(D[1]);}}}}}return E;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var H=YAHOO_config.listener,E=YAHOO.env.listeners,F=true,G;if(H){for(G=0;G<E.length;G=G+1){if(E[G]==H){F=false;break;}}if(F){E.push(H);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var D=YAHOO.lang,E=["toString","valueOf"],F={isArray:function(A){if(A){return D.isNumber(A.length)&&D.isFunction(A.splice);}return false;},isBoolean:function(A){return typeof A==="boolean";},isFunction:function(A){return typeof A==="function";},isNull:function(A){return A===null;},isNumber:function(A){return typeof A==="number"&&isFinite(A);},isObject:function(A){return(A&&(typeof A==="object"||D.isFunction(A)))||false;},isString:function(A){return typeof A==="string";},isUndefined:function(A){return typeof A==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(C,I){for(var J=0;J<E.length;J=J+1){var A=E[J],B=I[A];if(D.isFunction(B)&&B!=Object.prototype[A]){C[A]=B;}}}:function(){},extend:function(B,A,C){if(!A||!B){throw new Error("extend failed, please check that all dependencies are included.");}var J=function(){};J.prototype=A.prototype;B.prototype=new J();B.prototype.constructor=B;B.superclass=A.prototype;if(A.prototype.constructor==Object.prototype.constructor){A.prototype.constructor=A;}if(C){for(var K in C){if(D.hasOwnProperty(C,K)){B.prototype[K]=C[K];}}D._IEEnumFix(B.prototype,C);}},augmentObject:function(B,C){if(!C||!B){throw new Error("Absorb failed, verify dependencies.");}var L=arguments,J,A,K=L[2];if(K&&K!==true){for(J=2;J<L.length;J=J+1){B[L[J]]=C[L[J]];}}else{for(A in C){if(K||!(A in B)){B[A]=C[A];}}D._IEEnumFix(B,C);}},augmentProto:function(A,B){if(!B||!A){throw new Error("Augment failed, verify dependencies.");}var H=[A.prototype,B.prototype];for(var C=2;C<arguments.length;C=C+1){H.push(arguments[C]);}D.augmentObject.apply(this,H);},dump:function(A,N){var Q,O,C=[],B="{...}",R="f(){...}",M=", ",P=" => ";if(!D.isObject(A)){return A+"";}else{if(A instanceof Date||("nodeType" in A&&"tagName" in A)){return A;}else{if(D.isFunction(A)){return R;}}}N=(D.isNumber(N))?N:3;if(D.isArray(A)){C.push("[");for(Q=0,O=A.length;Q<O;Q=Q+1){if(D.isObject(A[Q])){C.push((N>0)?D.dump(A[Q],N-1):B);}else{C.push(A[Q]);}C.push(M);}if(C.length>1){C.pop();}C.push("]");}else{C.push("{");for(Q in A){if(D.hasOwnProperty(A,Q)){C.push(Q+P);if(D.isObject(A[Q])){C.push((N>0)?D.dump(A[Q],N-1):B);}else{C.push(A[Q]);}C.push(M);}}if(C.length>1){C.pop();}C.push("}");}return C.join("");},substitute:function(B,f,Y){var b,c,d,V,U,C,W=[],e,a="dump",X=" ",A="{",T="}";for(;;){b=B.lastIndexOf(A);if(b<0){break;}c=B.indexOf(T,b);if(b+1>=c){break;}e=B.substring(b+1,c);V=e;C=null;d=V.indexOf(X);if(d>-1){C=V.substring(d+1);V=V.substring(0,d);}U=f[V];if(Y){U=Y(V,U,C);}if(D.isObject(U)){if(D.isArray(U)){U=D.dump(U,parseInt(C,10));}else{C=C||"";var Z=C.indexOf(a);if(Z>-1){C=C.substring(4);}if(U.toString===Object.prototype.toString||Z>-1){U=D.dump(U,parseInt(C,10));}else{U=U.toString();}}}else{if(!D.isString(U)&&!D.isNumber(U)){U="~-"+W.length+"-~";W[W.length]=e;}}B=B.substring(0,b)+U+B.substring(c+1);}for(b=W.length-1;b>=0;b=b-1){B=B.replace(new RegExp("~-"+b+"-~"),"{"+W[b]+"}","g");}return B;},trim:function(B){try{return B.replace(/^\s+|\s+$/g,"");}catch(A){return B;}},merge:function(){var A={},C=arguments;for(var B=0,H=C.length;B<H;B=B+1){D.augmentObject(A,C[B],true);}return A;},later:function(C,R,B,P,O){C=C||0;R=R||{};var Q=B,M=P,N,A;if(D.isString(B)){Q=R[B];}if(!Q){throw new TypeError("method undefined");}if(!D.isArray(M)){M=[P];}N=function(){Q.apply(R,M);};A=(O)?setInterval(N,C):setTimeout(N,C);return{interval:O,cancel:function(){if(this.interval){clearInterval(A);}else{clearTimeout(A);}}};},isValue:function(A){return(D.isObject(A)||D.isString(A)||D.isNumber(A)||D.isBoolean(A));}};D.hasOwnProperty=(Object.prototype.hasOwnProperty)?function(B,A){return B&&B.hasOwnProperty(A);}:function(B,A){return !D.isUndefined(B[A])&&B.constructor.prototype[A]!==B[A];};F.augmentObject(D,F,true);YAHOO.util.Lang=D;D.augment=D.augmentProto;YAHOO.augment=D.augmentProto;YAHOO.extend=D.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.5.2",build:"1076"});(function(){var R=YAHOO.util,X,Z,Y={},c={},V=window.document;YAHOO.env._id_counter=YAHOO.env._id_counter||0;var Q=YAHOO.env.ua.opera,W=YAHOO.env.ua.webkit,S=YAHOO.env.ua.gecko,b=YAHOO.env.ua.ie;var d={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i,OP_SCROLL:/^(?:inline|table-row)$/i};var U=function(B){if(!d.HYPHEN.test(B)){return B;}if(Y[B]){return Y[B];}var A=B;while(d.HYPHEN.exec(A)){A=A.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}Y[B]=A;return A;};var T=function(A){var B=c[A];if(!B){B=new RegExp("(?:^|\\s+)"+A+"(?:\\s+|$)");c[A]=B;}return B;};if(V.defaultView&&V.defaultView.getComputedStyle){X=function(D,A){var B=null;if(A=="float"){A="cssFloat";}var C=D.ownerDocument.defaultView.getComputedStyle(D,"");if(C){B=C[U(A)];}return D.style[A]||B;};}else{if(V.documentElement.currentStyle&&b){X=function(E,C){switch(U(C)){case"opacity":var A=100;try{A=E.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(B){try{A=E.filters("alpha").opacity;}catch(B){}}return A/100;case"float":C="styleFloat";default:var D=E.currentStyle?E.currentStyle[C]:null;return(E.style[C]||D);}};}else{X=function(B,A){return B.style[A];};}}if(b){Z=function(C,B,A){switch(B){case"opacity":if(YAHOO.lang.isString(C.style.filter)){C.style.filter="alpha(opacity="+A*100+")";if(!C.currentStyle||!C.currentStyle.hasLayout){C.style.zoom=1;}}break;case"float":B="styleFloat";default:C.style[B]=A;}};}else{Z=function(C,B,A){if(B=="float"){B="cssFloat";}C.style[B]=A;};}var P=function(B,A){return B&&B.nodeType==1&&(!A||A(B));};YAHOO.util.Dom={get:function(B){if(B&&(B.nodeType||B.item)){return B;}if(YAHOO.lang.isString(B)||!B){return V.getElementById(B);}if(B.length!==undefined){var A=[];for(var C=0,D=B.length;C<D;++C){A[A.length]=R.Dom.get(B[C]);}return A;}return B;},getStyle:function(C,A){A=U(A);var B=function(D){return X(D,A);};return R.Dom.batch(C,B,R.Dom,true);},setStyle:function(D,B,A){B=U(B);var C=function(E){Z(E,B,A);};R.Dom.batch(D,C,R.Dom,true);},getXY:function(B){var A=function(C){if((C.parentNode===null||C.offsetParent===null||this.getStyle(C,"display")=="none")&&C!=C.ownerDocument.body){return false;}return a(C);};return R.Dom.batch(B,A,R.Dom,true);},getX:function(B){var A=function(C){return R.Dom.getXY(C)[0];};return R.Dom.batch(B,A,R.Dom,true);},getY:function(B){var A=function(C){return R.Dom.getXY(C)[1];};return R.Dom.batch(B,A,R.Dom,true);},setXY:function(D,A,B){var C=function(F){var G=this.getStyle(F,"position");if(G=="static"){this.setStyle(F,"position","relative");G="relative";}var I=this.getXY(F);if(I===false){return false;}var E=[parseInt(this.getStyle(F,"left"),10),parseInt(this.getStyle(F,"top"),10)];if(isNaN(E[0])){E[0]=(G=="relative")?0:F.offsetLeft;}if(isNaN(E[1])){E[1]=(G=="relative")?0:F.offsetTop;}if(A[0]!==null){F.style.left=A[0]-I[0]+E[0]+"px";}if(A[1]!==null){F.style.top=A[1]-I[1]+E[1]+"px";}if(!B){var H=this.getXY(F);if((A[0]!==null&&H[0]!=A[0])||(A[1]!==null&&H[1]!=A[1])){this.setXY(F,A,true);}}};R.Dom.batch(D,C,R.Dom,true);},setX:function(A,B){R.Dom.setXY(A,[B,null]);},setY:function(B,A){R.Dom.setXY(B,[null,A]);},getRegion:function(B){var A=function(D){if((D.parentNode===null||D.offsetParent===null||this.getStyle(D,"display")=="none")&&D!=D.ownerDocument.body){return false;}var C=R.Region.getRegion(D);return C;};return R.Dom.batch(B,A,R.Dom,true);},getClientWidth:function(){return R.Dom.getViewportWidth();},getClientHeight:function(){return R.Dom.getViewportHeight();},getElementsByClassName:function(E,A,D,C){A=A||"*";D=(D)?R.Dom.get(D):null||V;if(!D){return[];}var H=[],I=D.getElementsByTagName(A),B=T(E);for(var G=0,F=I.length;G<F;++G){if(B.test(I[G].className)){H[H.length]=I[G];if(C){C.call(I[G],I[G]);}}}return H;},hasClass:function(B,C){var D=T(C);var A=function(E){return D.test(E.className);};return R.Dom.batch(B,A,R.Dom,true);},addClass:function(B,C){var A=function(D){if(this.hasClass(D,C)){return false;}D.className=YAHOO.lang.trim([D.className,C].join(" "));return true;};return R.Dom.batch(B,A,R.Dom,true);},removeClass:function(B,C){var D=T(C);var A=function(F){if(!C||!this.hasClass(F,C)){return false;}var E=F.className;F.className=E.replace(D," ");if(this.hasClass(F,C)){this.removeClass(F,C);}F.className=YAHOO.lang.trim(F.className);return true;};return R.Dom.batch(B,A,R.Dom,true);},replaceClass:function(B,D,E){if(!E||D===E){return false;}var C=T(D);var A=function(F){if(!this.hasClass(F,D)){this.addClass(F,E);return true;}F.className=F.className.replace(C," "+E+" ");if(this.hasClass(F,D)){this.replaceClass(F,D,E);}F.className=YAHOO.lang.trim(F.className);return true;};return R.Dom.batch(B,A,R.Dom,true);},generateId:function(C,A){A=A||"yui-gen";var B=function(E){if(E&&E.id){return E.id;}var D=A+YAHOO.env._id_counter++;if(E){E.id=D;}return D;};return R.Dom.batch(C,B,R.Dom,true)||B.apply(R.Dom,arguments);},isAncestor:function(B,A){B=R.Dom.get(B);A=R.Dom.get(A);if(!B||!A){return false;}if(B.contains&&A.nodeType&&!W){return B.contains(A);}else{if(B.compareDocumentPosition&&A.nodeType){return !!(B.compareDocumentPosition(A)&16);}else{if(A.nodeType){return !!this.getAncestorBy(A,function(C){return C==B;});}}}return false;},inDocument:function(A){return this.isAncestor(V.documentElement,A);},getElementsBy:function(A,G,F,D){G=G||"*";F=(F)?R.Dom.get(F):null||V;if(!F){return[];}var E=[],B=F.getElementsByTagName(G);for(var C=0,H=B.length;C<H;++C){if(A(B[C])){E[E.length]=B[C];if(D){D(B[C]);}}}return E;},batch:function(D,A,B,F){D=(D&&(D.tagName||D.item))?D:R.Dom.get(D);if(!D||!A){return false;}var E=(F)?B:window;if(D.tagName||D.length===undefined){return A.call(E,D,B);}var C=[];for(var G=0,H=D.length;G<H;++G){C[C.length]=A.call(E,D[G],B);}return C;},getDocumentHeight:function(){var A=(V.compatMode!="CSS1Compat")?V.body.scrollHeight:V.documentElement.scrollHeight;var B=Math.max(A,R.Dom.getViewportHeight());return B;},getDocumentWidth:function(){var A=(V.compatMode!="CSS1Compat")?V.body.scrollWidth:V.documentElement.scrollWidth;var B=Math.max(A,R.Dom.getViewportWidth());return B;},getViewportHeight:function(){var B=self.innerHeight;var A=V.compatMode;if((A||b)&&!Q){B=(A=="CSS1Compat")?V.documentElement.clientHeight:V.body.clientHeight;}return B;},getViewportWidth:function(){var B=self.innerWidth;var A=V.compatMode;if(A||b){B=(A=="CSS1Compat")?V.documentElement.clientWidth:V.body.clientWidth;}return B;},getAncestorBy:function(B,A){while(B=B.parentNode){if(P(B,A)){return B;}}return null;},getAncestorByClassName:function(B,C){B=R.Dom.get(B);if(!B){return null;}var A=function(D){return R.Dom.hasClass(D,C);};return R.Dom.getAncestorBy(B,A);},getAncestorByTagName:function(B,C){B=R.Dom.get(B);if(!B){return null;}var A=function(D){return D.tagName&&D.tagName.toUpperCase()==C.toUpperCase();};return R.Dom.getAncestorBy(B,A);},getPreviousSiblingBy:function(B,A){while(B){B=B.previousSibling;if(P(B,A)){return B;}}return null;},getPreviousSibling:function(A){A=R.Dom.get(A);if(!A){return null;}return R.Dom.getPreviousSiblingBy(A);},getNextSiblingBy:function(B,A){while(B){B=B.nextSibling;if(P(B,A)){return B;}}return null;},getNextSibling:function(A){A=R.Dom.get(A);if(!A){return null;}return R.Dom.getNextSiblingBy(A);},getFirstChildBy:function(C,A){var B=(P(C.firstChild,A))?C.firstChild:null;return B||R.Dom.getNextSiblingBy(C.firstChild,A);},getFirstChild:function(B,A){B=R.Dom.get(B);if(!B){return null;}return R.Dom.getFirstChildBy(B);},getLastChildBy:function(C,A){if(!C){return null;}var B=(P(C.lastChild,A))?C.lastChild:null;return B||R.Dom.getPreviousSiblingBy(C.lastChild,A);},getLastChild:function(A){A=R.Dom.get(A);return R.Dom.getLastChildBy(A);},getChildrenBy:function(C,A){var B=R.Dom.getFirstChildBy(C,A);var D=B?[B]:[];R.Dom.getNextSiblingBy(B,function(E){if(!A||A(E)){D[D.length]=E;}return false;});return D;},getChildren:function(A){A=R.Dom.get(A);if(!A){}return R.Dom.getChildrenBy(A);},getDocumentScrollLeft:function(A){A=A||V;return Math.max(A.documentElement.scrollLeft,A.body.scrollLeft);},getDocumentScrollTop:function(A){A=A||V;return Math.max(A.documentElement.scrollTop,A.body.scrollTop);},insertBefore:function(A,B){A=R.Dom.get(A);B=R.Dom.get(B);if(!A||!B||!B.parentNode){return null;}return B.parentNode.insertBefore(A,B);},insertAfter:function(A,B){A=R.Dom.get(A);B=R.Dom.get(B);if(!A||!B||!B.parentNode){return null;}if(B.nextSibling){return B.parentNode.insertBefore(A,B.nextSibling);}else{return B.parentNode.appendChild(A);}},getClientRegion:function(){var B=R.Dom.getDocumentScrollTop(),C=R.Dom.getDocumentScrollLeft(),A=R.Dom.getViewportWidth()+C,D=R.Dom.getViewportHeight()+B;return new R.Region(B,A,D,C);}};var a=function(){if(V.documentElement.getBoundingClientRect){return function(B){var A=B.getBoundingClientRect();var C=B.ownerDocument;return[A.left+R.Dom.getDocumentScrollLeft(C),A.top+R.Dom.getDocumentScrollTop(C)];};}else{return function(B){var A=[B.offsetLeft,B.offsetTop];var C=B.offsetParent;var D=(W&&R.Dom.getStyle(B,"position")=="absolute"&&B.offsetParent==B.ownerDocument.body);if(C!=B){while(C){A[0]+=C.offsetLeft;A[1]+=C.offsetTop;if(!D&&W&&R.Dom.getStyle(C,"position")=="absolute"){D=true;}C=C.offsetParent;}}if(D){A[0]-=B.ownerDocument.body.offsetLeft;A[1]-=B.ownerDocument.body.offsetTop;}C=B.parentNode;while(C.tagName&&!d.ROOT_TAG.test(C.tagName)){if(C.scrollTop||C.scrollLeft){if(!d.OP_SCROLL.test(R.Dom.getStyle(C,"display"))){if(!Q||R.Dom.getStyle(C,"overflow")!=="visible"){A[0]-=C.scrollLeft;A[1]-=C.scrollTop;}}}C=C.parentNode;}return A;};}}();})();YAHOO.util.Region=function(G,F,E,H){this.top=G;this[1]=G;this.right=F;this.bottom=E;this.left=H;this[0]=H;};YAHOO.util.Region.prototype.contains=function(B){return(B.left>=this.left&&B.right<=this.right&&B.top>=this.top&&B.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(G){var I=Math.max(this.top,G.top);var H=Math.min(this.right,G.right);var F=Math.min(this.bottom,G.bottom);var J=Math.max(this.left,G.left);if(F>=I&&H>=J){return new YAHOO.util.Region(I,H,F,J);}else{return null;}};YAHOO.util.Region.prototype.union=function(G){var I=Math.min(this.top,G.top);var H=Math.max(this.right,G.right);var F=Math.max(this.bottom,G.bottom);var J=Math.min(this.left,G.left);return new YAHOO.util.Region(I,H,F,J);};YAHOO.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(J){var H=YAHOO.util.Dom.getXY(J);var K=H[1];var I=H[0]+J.offsetWidth;var G=H[1]+J.offsetHeight;var L=H[0];return new YAHOO.util.Region(K,I,G,L);};YAHOO.util.Point=function(C,D){if(YAHOO.lang.isArray(C)){D=C[1];C=C[0];}this.x=this.right=this.left=this[0]=C;this.y=this.top=this.bottom=this[1]=D;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.5.2",build:"1076"});YAHOO.util.CustomEvent=function(H,J,I,F){this.type=H;this.scope=J||window;this.silent=I;this.signature=F||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var G="_YUICEOnSubscribe";if(H!==G){this.subscribeEvent=new YAHOO.util.CustomEvent(G,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(F,E,D){if(!F){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(F,E,D);}this.subscribers.push(new YAHOO.util.Subscriber(F,E,D));},unsubscribe:function(J,H){if(!J){return this.unsubscribeAll();}var I=false;for(var L=0,G=this.subscribers.length;L<G;++L){var K=this.subscribers[L];if(K&&K.contains(J,H)){this._delete(L);I=true;}}return I;},fire:function(){this.lastError=null;var T=[],Z=this.subscribers.length;if(!Z&&this.silent){return true;}var V=[].slice.call(arguments,0),X=true,N,U=false;if(!this.silent){}var O=this.subscribers.slice(),Q=YAHOO.util.Event.throwErrors;for(N=0;N<Z;++N){var R=O[N];if(!R){U=true;}else{if(!this.silent){}var S=R.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var P=null;if(V.length>0){P=V[0];}try{X=R.fn.call(S,P,R.obj);}catch(Y){this.lastError=Y;if(Q){throw Y;}}}else{try{X=R.fn.call(S,this.type,V,R.obj);}catch(W){this.lastError=W;if(Q){throw W;}}}if(false===X){if(!this.silent){}break;}}}return(X!==false);},unsubscribeAll:function(){for(var B=this.subscribers.length-1;B>-1;B--){this._delete(B);}this.subscribers=[];return B;},_delete:function(C){var D=this.subscribers[C];if(D){delete D.fn;delete D.obj;}this.subscribers.splice(C,1);},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope;}};YAHOO.util.Subscriber=function(F,E,D){this.fn=F;this.obj=YAHOO.lang.isUndefined(E)?null:E;this.override=D;};YAHOO.util.Subscriber.prototype.getScope=function(B){if(this.override){if(this.override===true){return this.obj;}else{return this.override;}}return B;};YAHOO.util.Subscriber.prototype.contains=function(C,D){if(D){return(this.fn==C&&this.obj==D);}else{return(this.fn==C);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var Q=false;var P=[];var O=[];var R=[];var T=[];var L=0;var S=[];var M=[];var N=0;var K={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){var B=this;var A=function(){B._tryPreloadAttach();};this._interval=setInterval(A,this.POLL_INTERVAL);}},onAvailable:function(D,G,C,E,F){var B=(YAHOO.lang.isString(D))?[D]:D;for(var A=0;A<B.length;A=A+1){S.push({id:B[A],fn:G,obj:C,override:E,checkReady:F});}L=this.POLL_RETRYS;this.startInterval();},onContentReady:function(D,B,C,A){this.onAvailable(D,B,C,A,true);},onDOMReady:function(B,C,A){if(this.DOMReady){setTimeout(function(){var D=window;if(A){if(A===true){D=C;}else{D=A;}}B.call(D,"DOMReady",[],C);},0);}else{this.DOMReadyEvent.subscribe(B,C,A);}},addListener:function(b,d,D,I,c){if(!D||!D.call){return false;}if(this._isValidCollection(b)){var C=true;for(var H=0,F=b.length;H<F;++H){C=this.on(b[H],d,D,I,c)&&C;}return C;}else{if(YAHOO.lang.isString(b)){var J=this.getEl(b);if(J){b=J;}else{this.onAvailable(b,function(){YAHOO.util.Event.on(b,d,D,I,c);});return true;}}}if(!b){return false;}if("unload"==d&&I!==this){O[O.length]=[b,d,D,I,c];return true;}var A=b;if(c){if(c===true){A=I;}else{A=c;}}var a=function(U){return D.call(A,YAHOO.util.Event.getEvent(U,b),I);};var B=[b,d,D,a,A,I,c];var G=P.length;P[G]=B;if(this.useLegacyEvent(b,d)){var Z=this.getLegacyIndex(b,d);if(Z==-1||b!=R[Z][0]){Z=R.length;M[b.id+d]=Z;R[Z]=[b,d,b["on"+d]];T[Z]=[];b["on"+d]=function(U){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(U),Z);};}T[Z].push(B);}else{try{this._simpleAdd(b,d,a,false);}catch(E){this.lastError=E;this.removeListener(b,d,D);return false;}}return true;},fireLegacyEvent:function(F,H){var D=true,J,B,C,A,E;B=T[H].slice();for(var I=0,G=B.length;I<G;++I){C=B[I];if(C&&C[this.WFN]){A=C[this.ADJ_SCOPE];E=C[this.WFN].call(A,F);D=(D&&E);}}J=R[H];if(J&&J[2]){J[2](F);}return D;},getLegacyIndex:function(A,C){var B=this.generateId(A)+C;if(typeof M[B]=="undefined"){return -1;}else{return M[B];}},useLegacyEvent:function(A,C){if(this.webkit&&("click"==C||"dblclick"==C)){var B=parseInt(this.webkit,10);if(!isNaN(B)&&B<418){return true;}}return false;},removeListener:function(W,X,C){var H,E,A;if(typeof W=="string"){W=this.getEl(W);}else{if(this._isValidCollection(W)){var B=true;for(H=W.length-1;H>-1;H--){B=(this.removeListener(W[H],X,C)&&B);}return B;}}if(!C||!C.call){return this.purgeElement(W,false,X);}if("unload"==X){for(H=O.length-1;H>-1;H--){A=O[H];if(A&&A[0]==W&&A[1]==X&&A[2]==C){O.splice(H,1);return true;}}return false;}var G=null;var F=arguments[3];if("undefined"===typeof F){F=this._getCacheIndex(W,X,C);}if(F>=0){G=P[F];}if(!W||!G){return false;}if(this.useLegacyEvent(W,X)){var I=this.getLegacyIndex(W,X);var J=T[I];if(J){for(H=0,E=J.length;H<E;++H){A=J[H];if(A&&A[this.EL]==W&&A[this.TYPE]==X&&A[this.FN]==C){J.splice(H,1);break;}}}}else{try{this._simpleRemove(W,X,G[this.WFN],false);}catch(D){this.lastError=D;return false;}}delete P[F][this.WFN];delete P[F][this.FN];P.splice(F,1);return true;},getTarget:function(C,A){var B=C.target||C.srcElement;return this.resolveTextNode(B);},resolveTextNode:function(A){try{if(A&&3==A.nodeType){return A.parentNode;}}catch(B){}return A;},getPageX:function(A){var B=A.pageX;if(!B&&0!==B){B=A.clientX||0;if(this.isIE){B+=this._getScrollLeft();}}return B;},getPageY:function(B){var A=B.pageY;if(!A&&0!==A){A=B.clientY||0;if(this.isIE){A+=this._getScrollTop();}}return A;},getXY:function(A){return[this.getPageX(A),this.getPageY(A)];},getRelatedTarget:function(A){var B=A.relatedTarget;if(!B){if(A.type=="mouseout"){B=A.toElement;}else{if(A.type=="mouseover"){B=A.fromElement;}}}return this.resolveTextNode(B);},getTime:function(C){if(!C.time){var A=new Date().getTime();try{C.time=A;}catch(B){this.lastError=B;return A;}}return C.time;},stopEvent:function(A){this.stopPropagation(A);this.preventDefault(A);},stopPropagation:function(A){if(A.stopPropagation){A.stopPropagation();}else{A.cancelBubble=true;}},preventDefault:function(A){if(A.preventDefault){A.preventDefault();}else{A.returnValue=false;}},getEvent:function(D,B){var A=D||window.event;if(!A){var C=this.getEvent.caller;while(C){A=C.arguments[0];if(A&&Event==A.constructor){break;}C=C.caller;}}return A;},getCharCode:function(A){var B=A.keyCode||A.charCode||0;if(YAHOO.env.ua.webkit&&(B in K)){B=K[B];}return B;},_getCacheIndex:function(D,C,E){for(var F=0,A=P.length;F<A;F=F+1){var B=P[F];if(B&&B[this.FN]==E&&B[this.EL]==D&&B[this.TYPE]==C){return F;}}return -1;},generateId:function(B){var A=B.id;if(!A){A="yuievtautoid-"+N;++N;B.id=A;}return A;},_isValidCollection:function(A){try{return(A&&typeof A!=="string"&&A.length&&!A.tagName&&!A.alert&&typeof A[0]!=="undefined");}catch(B){return false;}},elCache:{},getEl:function(A){return(typeof A==="string")?document.getElementById(A):A;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(A){if(!Q){Q=true;var B=YAHOO.util.Event;B._ready();B._tryPreloadAttach();}},_ready:function(A){var B=YAHOO.util.Event;if(!B.DOMReady){B.DOMReady=true;B.DOMReadyEvent.fire();B._simpleRemove(document,"DOMContentLoaded",B._ready);}},_tryPreloadAttach:function(){if(S.length===0){L=0;clearInterval(this._interval);this._interval=null;return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var D=!Q;if(!D){D=(L>0&&S.length>0);}var E=[];var C=function(J,I){var V=J;if(I.override){if(I.override===true){V=I.obj;}else{V=I.override;}}I.fn.call(V,I.obj);};var A,B,F,G,H=[];for(A=0,B=S.length;A<B;A=A+1){F=S[A];if(F){G=this.getEl(F.id);if(G){if(F.checkReady){if(Q||G.nextSibling||!D){H.push(F);S[A]=null;}}else{C(G,F);S[A]=null;}}else{E.push(F);}}}for(A=0,B=H.length;A<B;A=A+1){F=H[A];C(this.getEl(F.id),F);}L--;if(D){for(A=S.length-1;A>-1;A--){F=S[A];if(!F||!F.id){S.splice(A,1);}}this.startInterval();}else{clearInterval(this._interval);this._interval=null;}this.locked=false;},purgeElement:function(F,E,C){var H=(YAHOO.lang.isString(F))?this.getEl(F):F;var D=this.getListeners(H,C),G,B;if(D){for(G=D.length-1;G>-1;G--){var A=D[G];this.removeListener(H,A.type,A.fn);}}if(E&&H&&H.childNodes){for(G=0,B=H.childNodes.length;G<B;++G){this.purgeElement(H.childNodes[G],E,C);}}},getListeners:function(H,J){var E=[],I;if(!J){I=[P,O];}else{if(J==="unload"){I=[O];}else{I=[P];}}var C=(YAHOO.lang.isString(H))?this.getEl(H):H;for(var F=0;F<I.length;F=F+1){var A=I[F];if(A){for(var D=0,B=A.length;D<B;++D){var G=A[D];if(G&&G[this.EL]===C&&(!J||J===G[this.TYPE])){E.push({type:G[this.TYPE],fn:G[this.FN],obj:G[this.OBJ],adjust:G[this.OVERRIDE],scope:G[this.ADJ_SCOPE],index:D});}}}}return(E.length)?E:null;},_unload:function(C){var I=YAHOO.util.Event,F,G,H,D,E,B=O.slice();for(F=0,D=O.length;F<D;++F){H=B[F];if(H){var A=window;if(H[I.ADJ_SCOPE]){if(H[I.ADJ_SCOPE]===true){A=H[I.UNLOAD_OBJ];}else{A=H[I.ADJ_SCOPE];}}H[I.FN].call(A,I.getEvent(C,H[I.EL]),H[I.UNLOAD_OBJ]);B[F]=null;H=null;A=null;}}O=null;if(P){for(G=P.length-1;G>-1;G--){H=P[G];if(H){I.removeListener(H[I.EL],H[I.TYPE],H[I.FN],G);}}H=null;}R=null;I._simpleRemove(window,"unload",I._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var B=document.documentElement,A=document.body;if(B&&(B.scrollTop||B.scrollLeft)){return[B.scrollTop,B.scrollLeft];}else{if(A){return[A.scrollTop,A.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(D,C,A,B){D.addEventListener(C,A,(B));};}else{if(window.attachEvent){return function(D,C,A,B){D.attachEvent("on"+C,A);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(D,C,A,B){D.removeEventListener(C,A,(B));};}else{if(window.detachEvent){return function(A,C,B){A.detachEvent("on"+C,B);};}else{return function(){};}}}()};}();(function(){var A=YAHOO.util.Event;A.on=A.addListener;if(A.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var B=document.createElement("p");A._dri=setInterval(function(){try{B.doScroll("left");clearInterval(A._dri);A._dri=null;A._ready();B=null;}catch(C){}},A.POLL_INTERVAL);}else{if(A.webkit&&A.webkit<525){A._dri=setInterval(function(){var C=document.readyState;if("loaded"==C||"complete"==C){clearInterval(A._dri);A._dri=null;A._ready();}},A.POLL_INTERVAL);}else{A._simpleAdd(document,"DOMContentLoaded",A._ready);}}A._simpleAdd(window,"load",A._load);A._simpleAdd(window,"unload",A._unload);A._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(G,K,H,I){this.__yui_events=this.__yui_events||{};var J=this.__yui_events[G];if(J){J.subscribe(K,H,I);}else{this.__yui_subscribers=this.__yui_subscribers||{};var L=this.__yui_subscribers;if(!L[G]){L[G]=[];}L[G].push({fn:K,obj:H,override:I});}},unsubscribe:function(M,K,I){this.__yui_events=this.__yui_events||{};var H=this.__yui_events;if(M){var J=H[M];if(J){return J.unsubscribe(K,I);}}else{var N=true;for(var L in H){if(YAHOO.lang.hasOwnProperty(H,L)){N=N&&H[L].unsubscribe(K,I);}}return N;}return false;},unsubscribeAll:function(B){return this.unsubscribe(B);},createEvent:function(P,J){this.__yui_events=this.__yui_events||{};var M=J||{};var N=this.__yui_events;if(N[P]){}else{var O=M.scope||this;var R=(M.silent);var L=new YAHOO.util.CustomEvent(P,O,R,YAHOO.util.CustomEvent.FLAT);N[P]=L;if(M.onSubscribeCallback){L.subscribeEvent.subscribe(M.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var Q=this.__yui_subscribers[P];if(Q){for(var K=0;K<Q.length;++K){L.subscribe(Q[K].fn,Q[K].obj,Q[K].override);}}}return N[P];},fireEvent:function(K,L,H,M){this.__yui_events=this.__yui_events||{};var I=this.__yui_events[K];if(!I){return null;}var N=[];for(var J=1;J<arguments.length;++J){N.push(arguments[J]);}return I.fire.apply(I,N);},hasEvent:function(B){if(this.__yui_events){if(this.__yui_events[B]){return true;}}return false;}};YAHOO.util.KeyListener=function(G,H,L,K){if(!G){}else{if(!H){}else{if(!L){}}}if(!K){K=YAHOO.util.KeyListener.KEYDOWN;}var J=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof G=="string"){G=document.getElementById(G);}if(typeof L=="function"){J.subscribe(L);}else{J.subscribe(L.fn,L.scope,L.correctScope);}function I(A,B){if(!H.shift){H.shift=false;}if(!H.alt){H.alt=false;}if(!H.ctrl){H.ctrl=false;}if(A.shiftKey==H.shift&&A.altKey==H.alt&&A.ctrlKey==H.ctrl){var D;if(H.keys instanceof Array){for(var C=0;C<H.keys.length;C++){D=H.keys[C];if(D==A.charCode){J.fire(A.charCode,A);break;}else{if(D==A.keyCode){J.fire(A.keyCode,A);break;}}}}else{D=H.keys;if(D==A.charCode){J.fire(A.charCode,A);}else{if(D==A.keyCode){J.fire(A.keyCode,A);}}}}}this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(G,K,I);this.enabledEvent.fire(H);}this.enabled=true;};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(G,K,I);this.disabledEvent.fire(H);}this.enabled=false;};this.toString=function(){return"KeyListener ["+H.keys+"] "+G.tagName+(G.id?"["+G.id+"]":"");};};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.util.KeyListener.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};YAHOO.register("event",YAHOO.util.Event,{version:"2.5.2",build:"1076"});YAHOO.register("yahoo-dom-event",YAHOO,{version:"2.5.2",build:"1076"});String.prototype.trim=function(){return(this.replace(new RegExp("^([\\s]+)|([\\s]+)$","gm"),""));};Array.prototype.clean=function(C){var B=[];for(var A=0;A<this.length;A++){if(this[A]!=C){B.push(this[A]);}}return B;};if(typeof Array.indexOf!="function"){Array.prototype.indexOf=function(B,C){var D=C||0;for(var A=D;A<this.length;A++){if(B===this[A]){return A;}}return -1;};}Array.prototype.remove=function(B,A){var C=this.slice((A||B)+1||this.length);this.length=(B<0?this.length+B:B);return this.push.apply(this,C);};function RefreshBanner(A,B){var C=document.getElementById(A);var D=C.src;C.src="about:blank";C.src=D;setTimeout("RefreshBanner('"+A+"','"+B+"')",B*1000);}function RefreshBanner2(A,B,E){var C=document.getElementById(A);var D=C.src;C.src="about:blank";C.src=D;E=E-1;if(E>0){setTimeout("RefreshBanner2('"+A+"','"+B+"','"+E+"')",B*1000);}}var PERF={setText:function(B,A){B[document.all?"innerText":"textContent"]=A;},getCookie:function(C){var D=document.cookie.indexOf(C+"=");var A=D+C.length+1;if((!D)&&(C!=document.cookie.substring(0,C.length))){return null;}if(D==-1){return null;}var B=document.cookie.indexOf(";",A);if(B==-1){B=document.cookie.length;}return unescape(document.cookie.substring(A,B));},setCookie:function(C,E,A,H,D,G){var B=new Date();B.setTime(B.getTime());if(A){A=A*1000*60*60*24;}var F=new Date(B.getTime()+(A));document.cookie=C+"="+escape(E)+((H)?";path="+H:"")+((A)?";expires="+F.toGMTString():"")+";domain=perfspot.com"+((G)?";secure":"");},deleteCookie:function(A,C,B){if(getCookie(A)){document.cookie=A+"="+((C)?";path="+C:"")+((B)?";domain="+B:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT";}},getQueryStringParameterValue:function(E,B){B=B||window.location.href;var A="[\\?&]"+E+"=([^&#]*)";var D=new RegExp(A);var C=D.exec(B);if(C==null){return"";}else{return C[1];}},getRelativeUrlPathName:function(){return location.pathname.substr(0,(location.pathname.lastIndexOf("/")+1));},getAbsoluteUrlPathName:function(){var A=location.protocol+"//"+location.host;return A+this.getRelativeUrlPathName();},parseNode:function(F,B,E){var D=F.getElementsByTagName(B)[0];if(!D){return"";}if(!E||D.childNodes.length==1){return(D!=null&&D.childNodes.length>0)?D.firstChild.nodeValue:"";}else{var C="";for(var A=0;A<D.childNodes.length;A++){C+=D.childNodes[A].nodeValue;}return C;}},parseNodeNumeric:function(B,A){return Number(this.parseNode(B,A));},parseNodeBool:function(B,A){return this.parseNode(B,A).trim().toLowerCase()=="true"?true:false;},requestVariableEditPictures:"editPictures_albumContentsEditor",encoding:"",makeLink:function(A){var C=function(){this.className+=this.className.trim().length==0?"linkHover":" linkHover";};var B=function(){this.className=this.className.replace("linkHover","").trim();};if(YAHOO.util.Event){YAHOO.util.Event.addListener(A,"mouseover",C);YAHOO.util.Event.addListener(A,"mouseout",B);}else{if(window.attachEvent){A.attachEvent("onmouseover",C);A.attachEvent("onmouseout",B);}else{A.addEventListener("onmouseover",C,false);A.addEventListener("onmouseout",B,false);}}},removeLink:function(A){YAHOO.util.Event.addListener(A,"mouseover");YAHOO.util.Event.addListener(A,"mouseout");}};function formatLongDate(M){var C="";if(M==undefined){return M;}var L=new String(M);if(L.trim().length==0){return M;}var K=new Array("January ","February ","March ","April ","May ","June ","July ","August ","September ","October ","November ","December ");var G=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");try{var F=new Date(M);var A=F.getMonth();var I=String(K[A]);var D=String(A);D=A<10?"0"+D:D;var B=F.getDate();var N=String(F.getDate());var E=String(G[F.getDay()]);var J=String(F.getFullYear());C=E+", "+I+" "+N+", "+J;}catch(H){}return C;}function formatDateMMDDYYYY(I){var B="";if(I==undefined){return I;}var H=new String(I);if(H.trim().length==0){return I;}try{var E=new Date(I);var A=E.getMonth()+1;var D=String(A);D=A<10?"0"+D:D;var C=E.getDate();var J=String(E.getDate());J=C<10?"0"+J:J;var G=String(E.getFullYear());B=D+"/"+J+"/"+G;}catch(F){}return B;}function addNode(G,I,B,E,H,A){var C=null;B=B==undefined?"":B;E=E==undefined?"":E;H=H==undefined?"":H;if(I.length>0){C=document.createElement("input");switch(I){case"hidden":C.setAttribute("type","hidden");break;case"textbox":C.setAttribute("type","text");break;case"button":C.setAttribute("type","button");break;case"checkbox":C.setAttribute("type","checkbox");break;case"radio":try{var F="<input type='radio' name='"+A+"' />";C=document.createElement(F);}catch(D){C=document.createElement("input");C.setAttribute("type","radio");C.setAttribute("name",A);}break;default:C=document.createElement(I);break;}}if(H.length>0){if(C==null){C=G;}switch(C.tagName){case"OPTION":C.appendChild(document.createTextNode(H));C.value=H;break;case"INPUT":C.value=H;break;default:C.innerHTML=H;break;}}if(B.length>0){C.id=B;C.name=B;}if(E.length>0){C.className=E;}G.appendChild(C);return C;}var Url={encode:function(A){return escape(this._utf8_encode(A));},decode:function(A){return this._utf8_decode(unescape(A));},_utf8_encode:function(B){var A="";for(var D=0;D<B.length;D++){var C=B.charCodeAt(D);if(C<128){A+=String.fromCharCode(C);}else{if((C>127)&&(C<2048)){A+=String.fromCharCode((C>>6)|192);A+=String.fromCharCode((C&63)|128);}else{A+=String.fromCharCode((C>>12)|224);A+=String.fromCharCode(((C>>6)&63)|128);A+=String.fromCharCode((C&63)|128);}}}return A;},_utf8_decode:function(A){var B="";var C=0;var D=c1=c2=0;while(C<A.length){D=A.charCodeAt(C);if(D<128){B+=String.fromCharCode(D);C++;}else{if((D>191)&&(D<224)){c2=A.charCodeAt(C+1);B+=String.fromCharCode(((D&31)<<6)|(c2&63));C+=2;}else{c2=A.charCodeAt(C+1);c3=A.charCodeAt(C+2);B+=String.fromCharCode(((D&15)<<12)|((c2&63)<<6)|(c3&63));C+=3;}}}return B;}};function pop(D,C,B,E,A){var G,F;G=screen.availHeight/2-E/2;F=screen.availWidth/2-B/2;window.open(D,C,"width="+B+",height="+E+",top="+G+",left="+F+",toolbar=no,location=no,directories=no,status=no,scrollbars="+A+",resizable=no,menubar=no,screenX=200,screenY=200");}function getHttpRequestObj(){var A=false;if(window.XMLHttpRequest){try{A=new XMLHttpRequest();}catch(B){A=false;}}else{if(window.ActiveXObject){try{A=new ActiveXObject("Msxml2.XMLHTTP");}catch(B){try{A=new ActiveXObject("Microsoft.XMLHTTP");}catch(B){A=false;}}}}return A;}var click=false;function cpress(A){click=true;}function uload(){if(!click){var A="/close.asp";http=getHttpRequestObj();http.open("GET",A,true);http.send(null);}}document.onclick=cpress;var perfUI={};perfUI.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=A[C].split(".");E=perfUI;for(B=(D[0]=="perfUI")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};perfUI.namespace("widgets");perfUI.namespace("content");perfUI.namespace("util");perfUI.namespace("dashboard");perfUI.namespace("skin");perfUI.namespace("chat");perfUI.namespace("UI");perfUI.namespace("gadgets");perfUI.namespace("messages");perfUI.util.addEl=function(E,D,H){switch(D.toLowerCase()){case"hidden":D=document.createElement("INPUT");D.setAttribute("type","hidden");break;case"textbox":case"text":D=document.createElement("INPUT");D.setAttribute("type","text");break;case"checkbox":D=document.createElement("INPUT");D.setAttribute("type","checkbox");break;case"button":D=document.createElement("INPUT");D.setAttribute("type","button");break;case"submit":D=document.createElement("INPUT");D.setAttribute("type","submit");break;case"radio":if(YAHOO.env.ua.ie){D=document.createElement("<input type='radio' name='"+D+"'/>");}else{D=document.createElement("input");D.setAttribute("type","radio");}break;case"tr":D=E.insertRow(E.rows.length);break;case"td":D=E.insertCell(E.cells.length);break;default:D=document.createElement(D);}for(var B in H){switch(B.toLowerCase()){case"style":var C=H[B].split(";");var F="";for(var A=0;A<C.length;A++){F=C[A].split(":");if(F[0].indexOf("-")>-1){F[0]=F[0].substr(0,F[0].indexOf("-"))+F[0].charAt(F[0].indexOf("-")+1).toUpperCase()+F[0].substr(F[0].indexOf("-")+2);}try{D.style[F[0]]=F[1];}catch(G){}}break;case"class":D.className=H[B];break;case"text":D[document.all?"innerText":"textContent"]=H[B];break;case"for":D.setAttribute("for",H[B]);break;default:D[B]=H[B];}}if(D.tagName!="TR"&&D.tagName!="TD"){E.appendChild(D);}D._=perfUI.util.addEl._;D.addSibling=perfUI.util.addEl._;D.c=perfUI.util.addEl.c;D.addChild=perfUI.util.addEl.c;E=null;return D;};perfUI.util.addEl._=function(B,A){return perfUI.util.addEl(this.parentNode,B,A);};perfUI.util.addEl.c=function(B,A){return perfUI.util.addEl(this,B,A);};perfUI.util.getNode=function(B,C){if(B==null){return null;}if(B.nodeName.toLowerCase()==C){return B;}else{var A=B.getElementsByTagName(C);if(A!=null){return A;}else{return null;}}};perfUI.widgets.translator=function(C){var B=[];var A=C||1;this.setLanguageId=function(D){A=D;};this.getLanguageId=function(){return A;};this.addKeys=function(D){for(k in D){this.addKey(k,D[k]);}};this.addKey=function(D,F){var E=new this.key(D,F);B.push(E);};this.getKey=function(D){for(var F=0;F<B.length;F++){var E=B[F];if(E.index==D){return E;}}return null;};this.getValue=function(D){var E=this.getKey(D);if(E){return E.value;}else{return"";}};this.parseValue=function(F,D){for(var E=0;E<D.length;E++){F=F.replace(new RegExp("%x"+(E+1)+"%","g"),D[E]);}return F;};this.getKeys=function(){return B;};};perfUI.widgets.translator.prototype.key=function(A,B){this.index=A||0;this.value=B||"";};perfUI.util.insertClientScript=function(B){var A=null;A=document.createElement("script");A.setAttribute("type","text/javascript");A.text=B;var C=document.getElementsByTagName("head")[0];C.appendChild(A);return A;};perfUI.util.loadClientResource=function(C,D,B){var A=null;switch(D){case"js":A=document.createElement("script");A.setAttribute("type","text/javascript");A.setAttribute("src",C);if(B){if(YAHOO.env.ua.ie>0){var E=A;if(B.scope&&B.scope==true){E=B.obj;}A.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){B.fn();}};}else{YAHOO.util.Event.addListener(A,"load",B.fn,B.obj,B.scope);}}break;case"css":A=document.createElement("link");A.setAttribute("rel","stylesheet");A.setAttribute("type","text/css");A.setAttribute("href",C);break;}var F=document.getElementsByTagName("head")[0];F.appendChild(A);return A;};perfUI.util.startPresenceTimer=function(B){var A=this.presenceTimer=self.setInterval("perfUI.util.presenceTimerCallback()",B*60000);this.url="/api/call.asp?function=Members.LoggedIn&rnd=";};perfUI.util.presenceTimerCallback=function(){var C=this.httpObj=getHttpRequestObj();var A=this.presenceTimer;this.httpObj.onreadystatechange=function(){if(C.readyState==4){if(C.status==200){try{if(C.responseXML.getElementsByTagName("success")[0].childNodes[0].nodeValue=="false"){self.clearInterval(A);}}catch(D){}}C.close;}};var B=this.url+(new Date().getTime());this.httpObj.open("GET",B,true);this.httpObj.send(null);};perfUI.widgets.menu=function(A,C){this.menuClosed=true;if(typeof A=="string"){this.containerID=A;A=document.getElementById(A);}else{if(A.getAttribute("id")!=null){this.containerID=A.getAttribute("id");}else{var D=Math.ceil(Math.random()*(new Date()).getTime());A.setAttribute("id",D);this.containerID=D;}}var B=C||null;if(!B){B=document.createElement("DIV");B.className="perfMenu";}this.getContainer=function(){return A;};this.getElement=function(){return B;};this.menuItems=[];this.drawMenu=function(){for(var E=0;E<this.menuItems.length;E++){perfUI.util.addEl(B,"DIV",{"noWrap":true,"style":"white-space:nowrap;"+(this.menuItems[E].style?this.menuItems[E].style:""),"innerHTML":this.menuItems[E].text,"onmouseover":this.itemMouseOver,"onmouseout":this.itemMouseOut,"class":this.menuItems[E].className||""});if(this.menuItems[E].onclick){YAHOO.util.Event.addListener(B.lastChild,"click",this.menuItems[E].onclick.fn,this.menuItems[E].onclick.obj,this.menuItems[E].onclick.scope);}}};this.addItems=function(E){if(typeof E=="object"){for(var F=0;F<E.length;F++){this.menuItems.push(E[F]);}}else{this.menuItems.push(E);}};this.subscribe=new Function();};perfUI.widgets.menu.prototype.clearMenu=function(){var B=this.getElement();for(var A=0;A<B.childNodes.length;A++){YAHOO.util.Event.purgeElement(B.childNodes[A]);}B.innerHTML="";};perfUI.widgets.menu.prototype.closeMenu=function(){this.clearMenu();if(this.menuClosed){return;}this.menuClosed=true;if(this.getContainer().parentNode){try{this.getContainer().parentNode.removeChild(this.getElement());}catch(A){}}document.onclick=null;};perfUI.widgets.menu.prototype.adjustCoordinates=function(){};perfUI.widgets.menu.prototype.render=function(){};perfUI.widgets.menu.prototype.show=function(E){var B=this.getContainer();var C=this.getElement();var A=document.all?-2:0;var D=YAHOO.util.Dom.getXY(YAHOO.util.Event.getTarget(E));C.style.top=D[1]+11+A+"px";C.style.left=D[0]+A+"px";this.menuClosed=false;B.parentNode.appendChild(C);this.clearMenu();this.drawMenu();if((11+A+D[1]+C.offsetHeight)-document.body.scrollTop>YAHOO.util.Dom.getViewportHeight()){D[1]-=C.offsetHeight;C.style.top=D[1]+"px";}if((D[0]+A+C.offsetWidth)-document.body.scrollLeft>YAHOO.util.Dom.getViewportWidth()){D[0]-=C.offsetWidth;C.style.left=D[0]+11+A+"px";}YAHOO.util.Event.addListener(document,"click",this.closeMenu,this,true);YAHOO.util.Event.addListener(window,"resize",this.closeMenu,this,true);YAHOO.util.Event.stopPropagation(E);this.adjustCoordinates();};perfUI.widgets.menu.prototype.itemMouseOver=function(){this.style.color="#6464FF";};perfUI.widgets.menu.prototype.itemMouseOut=function(){this.style.color="";};perfUI.widgets.hoverMenu=function(A,B){perfUI.widgets.hoverMenu.superclass.constructor.call(this,A,B);this.stopTimer=true;this.timerLength=1500;};YAHOO.extend(perfUI.widgets.hoverMenu,perfUI.widgets.menu);perfUI.widgets.hoverMenu.DDobjects={};perfUI.widgets.hoverMenu.prototype.render=function(){perfUI.widgets.hoverMenu.DDobjects[this.containerID]=this;YAHOO.util.Event.addListener(this.getContainer(),"mouseover",this.show,this,true);};perfUI.widgets.hoverMenu.prototype.show=function(A){if(!this.menuClosed){return;}this.attachListeners();this.getContainer().className="header_over";perfUI.widgets.hoverMenu.superclass.show.call(this,A);};perfUI.widgets.hoverMenu.prototype.attachListeners=function(){var A=this.getElement();var B=this.getContainer();YAHOO.util.Event.addListener(A,"mouseover",this.onmouseover,this,true);YAHOO.util.Event.addListener(B,"mouseover",this.onmouseover,this,true);YAHOO.util.Event.addListener(A,"mouseout",this.onmouseout,this,true);YAHOO.util.Event.addListener(B,"mouseout",this.onmouseout,this,true);};perfUI.widgets.hoverMenu.prototype.onmouseover=function(A){this.stopTimer=true;};perfUI.widgets.hoverMenu.prototype.onmouseout=function(B){var A=perfUI.widgets.hoverMenu.DDobjects[this.containerID];A.stopTimer=false;setTimeout("perfUI.widgets.hoverMenu.timer('"+this.containerID+"')",A.timerLength);};perfUI.widgets.hoverMenu.timer=function(A){var B=perfUI.widgets.hoverMenu.DDobjects[A];if(B&&!B.stopTimer){B.onTimerEnd();}};perfUI.widgets.hoverMenu.prototype.onTimerEnd=function(){this.onBeforeCloseMenu();if(!this.menuClosed){this.clearMenu();this.closeMenu();}};perfUI.widgets.hoverMenu.prototype.onBeforeCloseMenu=function(){this.getContainer().className="header_normal";};perfUI.widgets.headerMenu=function(A,B){var B=document.createElement("DIV");B.className="PH_header";perfUI.widgets.headerMenu.superclass.constructor.call(this,A,B);this.align="left";this.timerLength=0;this.minWidth=100;};YAHOO.extend(perfUI.widgets.headerMenu,perfUI.widgets.hoverMenu);perfUI.widgets.headerMenu.prototype.show=function(F){if(!this.menuClosed){return;}this.attachListeners();var A=this.getContainer();var C=this.getElement();A.className="PH_header_over";A.firstChild.className="PH_header_nested_over";this.menuClosed=false;C.style.visibility="hidden";A.parentNode.appendChild(C);this.clearMenu();this.drawMenu();var D=(document.all?C.offsetWidth:C.clientWidth+2)+10;if(D<this.minWidth){D=this.minWidth;}var E=(document.all?A.offsetWidth:A.clientWidth+2);if(D<E){D=E-(document.all?8:16);}for(var B=0;B<C.childNodes.length;B++){C.childNodes[B].style.width=D+"px";}this.drawBorder();C.style.visibility="visible";YAHOO.util.Event.stopPropagation(F);this.adjustCoordinates();};perfUI.widgets.headerMenu.prototype.drawBorder=function(){var Dom=YAHOO.util.Dom;var container=this.getContainer();var element=this.getElement();var containerRegion=YAHOO.util.Dom.getRegion(container);var IEoffset=(document.all?2:0);if(this.align=="left"){Dom.setStyle(element,"left",(containerRegion.left-IEoffset)+"px");Dom.setStyle(element,"top",(containerRegion.bottom-IEoffset)+"px");var elementRegion=YAHOO.util.Dom.getRegion(element);var div=document.createElement("DIV");div.className="PH_header_specialBorder";with(div.style){left=(containerRegion.right-containerRegion.left-1)+"px";top="-1px";width=(elementRegion.right-containerRegion.right)+"px";}}else{Dom.setStyle(element,"left",(containerRegion.right-(document.all?element.offsetWidth:element.clientWidth+2)-IEoffset)+"px");Dom.setStyle(element,"top",(containerRegion.bottom-IEoffset)+"px");var elementRegion=YAHOO.util.Dom.getRegion(element);var div=document.createElement("DIV");div.className="PH_header_specialBorder";with(div.style){left="-1px";top="-1px";width=(containerRegion.left-elementRegion.left)+"px";}}element.appendChild(div);};perfUI.widgets.headerMenu.prototype.addItem=function(B,C,A){this.menuItems.push({"text":"<div class='PH_headerMenu_img PH_headerMenu_img_"+B+"'></div><div class='PH_headerMenu_txt'>"+C+"</div><br clear=all>","className":"PH_headerMenu_row","onclick":{"fn":function(){top.location.href=A;},"obj":x,"scope":false}});};perfUI.widgets.headerMenu.prototype.addSeparator=function(){this.menuItems.push({"text":"<div></div>","className":"PH_headerMenu_row_break"});};perfUI.widgets.headerMenu.prototype.itemMouseOver=function(){if(this.className=="PH_headerMenu_row_break"){return;}this.className="PH_headerMenu_row_over";};perfUI.widgets.headerMenu.prototype.itemMouseOut=function(){if(this.className=="PH_headerMenu_row_break"){return;}this.className="PH_headerMenu_row";};perfUI.widgets.headerMenu.prototype.onBeforeCloseMenu=function(){var A=this.getContainer();A.className="PH_header_normal";A.firstChild.className="PH_header_nested";};
