if(typeof YAHOO=="undefined"){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};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(!E.webkit){D=F.match(/Opera[\s\/]([^\s]*)/);if(D&&D[1]){E.opera=parseFloat(D[1])}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={isArray:function(D){if(D){var C=YAHOO.lang;return C.isNumber(D.length)&&C.isFunction(D.splice)&&!C.hasOwnProperty(D.length)}return false},isBoolean:function(B){return typeof B==="boolean"},isFunction:function(B){return typeof B==="function"},isNull:function(B){return B===null},isNumber:function(B){return typeof B==="number"&&isFinite(B)},isObject:function(B){return(B&&(typeof B==="object"||YAHOO.lang.isFunction(B)))||false},isString:function(B){return typeof B==="string"},isUndefined:function(B){return typeof B==="undefined"},hasOwnProperty:function(C,D){if(Object.prototype.hasOwnProperty){return C.hasOwnProperty(D)}return !YAHOO.lang.isUndefined(C[D])&&C.constructor.prototype[D]!==C[D]},_IEEnumFix:function(K,L){if(YAHOO.env.ua.ie){var I=["toString","valueOf"],G;for(G=0;G<I.length;G=G+1){var H=I[G],J=L[H];if(YAHOO.lang.isFunction(J)&&J!=Object.prototype[H]){K[H]=J}}}},extend:function(H,G,I){if(!G||!H){throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.")}var J=function(){};J.prototype=G.prototype;H.prototype=new J();H.prototype.constructor=H;H.superclass=G.prototype;if(G.prototype.constructor==Object.prototype.constructor){G.prototype.constructor=G}if(I){for(var F in I){H.prototype[F]=I[F]}YAHOO.lang._IEEnumFix(H.prototype,I)}},augmentObject:function(I,J){if(!J||!I){throw new Error("Absorb failed, verify dependencies.")}var G=arguments,K,H,L=G[2];if(L&&L!==true){for(K=2;K<G.length;K=K+1){I[G[K]]=J[G[K]]}}else{for(H in J){if(L||!I[H]){I[H]=J[H]}}YAHOO.lang._IEEnumFix(I,J)}},augmentProto:function(F,G){if(!G||!F){throw new Error("Augment failed, verify dependencies.")}var E=[F.prototype,G.prototype];for(var H=2;H<arguments.length;H=H+1){E.push(arguments[H])}YAHOO.lang.augmentObject.apply(this,E)},dump:function(N,R){var L=YAHOO.lang,K,S,P=[],O="{...}",M="f(){...}",Q=", ",T=" => ";if(!L.isObject(N)){return N+""}else{if(N instanceof Date||("nodeType" in N&&"tagName" in N)){return N}else{if(L.isFunction(N)){return M}}}R=(L.isNumber(R))?R:3;if(L.isArray(N)){P.push("[");for(K=0,S=N.length;K<S;K=K+1){if(L.isObject(N[K])){P.push((R>0)?L.dump(N[K],R-1):O)}else{P.push(N[K])}P.push(Q)}if(P.length>1){P.pop()}P.push("]")}else{P.push("{");for(K in N){if(L.hasOwnProperty(N,K)){P.push(K+T);if(L.isObject(N[K])){P.push((R>0)?L.dump(N[K],R-1):O)}else{P.push(N[K])}P.push(Q)}}if(P.length>1){P.pop()}P.push("}")}return P.join("")},substitute:function(V,T,d){var h,j,k,Z,Y,W,R=YAHOO.lang,a=[],S,g="dump",b=" ",U="{",X="}";for(;;){h=V.lastIndexOf(U);if(h<0){break}j=V.indexOf(X,h);if(h+1>=j){break}S=V.substring(h+1,j);Z=S;W=null;k=Z.indexOf(b);if(k>-1){W=Z.substring(k+1);Z=Z.substring(0,k)}Y=T[Z];if(d){Y=d(Z,Y,W)}if(R.isObject(Y)){if(R.isArray(Y)){Y=R.dump(Y,parseInt(W,10))}else{W=W||"";var f=W.indexOf(g);if(f>-1){W=W.substring(4)}if(Y.toString===Object.prototype.toString||f>-1){Y=R.dump(Y,parseInt(W,10))}else{Y=Y.toString()}}}else{if(!R.isString(Y)&&!R.isNumber(Y)){Y="~-"+a.length+"-~";a[a.length]=S}}V=V.substring(0,h)+Y+V.substring(j+1)}for(h=a.length-1;h>=0;h=h-1){V=V.replace(new RegExp("~-"+h+"-~"),"{"+a[h]+"}","g")}return V},trim:function(C){try{return C.replace(/^\s+|\s+$/g,"")}catch(D){return C}},merge:function(){var E={},D=arguments,F;for(F=0;F<D.length;F=F+1){YAHOO.lang.augmentObject(E,D[F],true)}return E},isValue:function(D){var C=YAHOO.lang;return(C.isObject(D)||C.isString(D)||C.isNumber(D)||C.isBoolean(D))}};YAHOO.util.Lang=YAHOO.lang;YAHOO.lang.augment=YAHOO.lang.augmentProto;YAHOO.augment=YAHOO.lang.augmentProto;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.3.1",build:"541"});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(){var X=this.subscribers.length;if(!X&&this.silent){return true}var U=[],V=true,M,T=false;for(M=0;M<arguments.length;++M){U.push(arguments[M])}var P=U.length;if(!this.silent){}for(M=0;M<X;++M){var Q=this.subscribers[M];if(!Q){T=true}else{if(!this.silent){}var R=Q.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var O=null;if(U.length>0){O=U[0]}try{V=Q.fn.call(R,O,Q.obj)}catch(W){this.lastError=W}}else{try{V=Q.fn.call(R,this.type,U,Q.obj)}catch(W){this.lastError=W}}if(false===V){if(!this.silent){}return false}}}if(T){var S=[],N=this.subscribers;for(M=0,X=N.length;M<X;M=M+1){S.push(N[M])}this.subscribers=S}return true},unsubscribeAll:function(){for(var D=0,C=this.subscribers.length;D<C;++D){this._delete(C-1-D)}this.subscribers=[];return D},_delete:function(C){var D=this.subscribers[C];if(D){delete D.fn;delete D.obj}this.subscribers[C]=null},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 S=false;var Q=false;var R=[];var P=[];var T=[];var V=[];var M=0;var U=[];var N=[];var O=0;var L={63232:38,63233:40,63234:37,63235:39};return{POLL_RETRYS:4000,POLL_INTERVAL:10,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,startInterval:function(){if(!this._interval){var A=this;var B=function(){A._tryPreloadAttach()};this._interval=setInterval(B,this.POLL_INTERVAL)}},onAvailable:function(C,A,B,D){U.push({id:C,fn:A,obj:B,override:D,checkReady:false});M=this.POLL_RETRYS;this.startInterval()},onDOMReady:function(A,B,C){if(Q){setTimeout(function(){var D=window;if(C){if(C===true){D=B}else{D=C}}A.call(D,"DOMReady",[],B)},0)}else{this.DOMReadyEvent.subscribe(A,B,C)}},onContentReady:function(C,A,B,D){U.push({id:C,fn:A,obj:B,override:D,checkReady:true});M=this.POLL_RETRYS;this.startInterval()},addListener:function(b,f,D,I,d){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],f,D,I,d)&&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,f,D,I,d)});return true}}}if(!b){return false}if("unload"==f&&I!==this){P[P.length]=[b,f,D,I,d];return true}var A=b;if(d){if(d===true){A=I}else{A=d}}var a=function(W){return D.call(A,YAHOO.util.Event.getEvent(W,b),I)};var B=[b,f,D,a,A,I,d];var G=R.length;R[G]=B;if(this.useLegacyEvent(b,f)){var K=this.getLegacyIndex(b,f);if(K==-1||b!=T[K][0]){K=T.length;N[b.id+f]=K;T[K]=[b,f,b["on"+f]];V[K]=[];b["on"+f]=function(W){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(W),K)}}V[K].push(B)}else{try{this._simpleAdd(b,f,a,false)}catch(E){this.lastError=E;this.removeListener(b,f,D);return false}}return true},fireLegacyEvent:function(F,H){var D=true,J,B,C,A,E;B=V[H];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=T[H];if(J&&J[2]){J[2](F)}return D},getLegacyIndex:function(C,B){var A=this.generateId(C)+B;if(typeof N[A]=="undefined"){return -1}else{return N[A]}},useLegacyEvent:function(C,B){if(this.webkit&&("click"==B||"dblclick"==B)){var A=parseInt(this.webkit,10);if(!isNaN(A)&&A<418){return true}}return false},removeListener:function(K,X,C){var H,E,A;if(typeof K=="string"){K=this.getEl(K)}else{if(this._isValidCollection(K)){var B=true;for(H=0,E=K.length;H<E;++H){B=(this.removeListener(K[H],X,C)&&B)}return B}}if(!C||!C.call){return this.purgeElement(K,false,X)}if("unload"==X){for(H=0,E=P.length;H<E;H++){A=P[H];if(A&&A[0]==K&&A[1]==X&&A[2]==C){P[H]=null;return true}}return false}var G=null;var F=arguments[3];if("undefined"===typeof F){F=this._getCacheIndex(K,X,C)}if(F>=0){G=R[F]}if(!K||!G){return false}if(this.useLegacyEvent(K,X)){var I=this.getLegacyIndex(K,X);var J=V[I];if(J){for(H=0,E=J.length;H<E;++H){A=J[H];if(A&&A[this.EL]==K&&A[this.TYPE]==X&&A[this.FN]==C){J[H]=null;break}}}}else{try{this._simpleRemove(K,X,G[this.WFN],false)}catch(D){this.lastError=D;return false}}delete R[F][this.WFN];delete R[F][this.FN];R[F]=null;return true},getTarget:function(B,C){var A=B.target||B.srcElement;return this.resolveTextNode(A)},resolveTextNode:function(A){if(A&&3==A.nodeType){return A.parentNode}else{return A}},getPageX:function(B){var A=B.pageX;if(!A&&0!==A){A=B.clientX||0;if(this.isIE){A+=this._getScrollLeft()}}return A},getPageY:function(A){var B=A.pageY;if(!B&&0!==B){B=A.clientY||0;if(this.isIE){B+=this._getScrollTop()}}return B},getXY:function(A){return[this.getPageX(A),this.getPageY(A)]},getRelatedTarget:function(B){var A=B.relatedTarget;if(!A){if(B.type=="mouseout"){A=B.toElement}else{if(B.type=="mouseover"){A=B.fromElement}}}return this.resolveTextNode(A)},getTime:function(B){if(!B.time){var C=new Date().getTime();try{B.time=C}catch(A){this.lastError=A;return C}}return B.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(C,E){var D=C||window.event;if(!D){var B=this.getEvent.caller;while(B){D=B.arguments[0];if(D&&Event==D.constructor){break}B=B.caller}}if(D&&this.isIE){try{var F=D.srcElement;if(F){var G=F.type}}catch(A){D.target=E}}return D},getCharCode:function(B){var A=B.keyCode||B.charCode||0;if(YAHOO.env.ua.webkit&&(A in L)){A=L[A]}return A},_getCacheIndex:function(C,B,D){for(var E=0,F=R.length;E<F;++E){var A=R[E];if(A&&A[this.FN]==D&&A[this.EL]==C&&A[this.TYPE]==B){return E}}return -1},generateId:function(A){var B=A.id;if(!B){B="yuievtautoid-"+O;++O;A.id=B}return B},_isValidCollection:function(B){try{return(typeof B!=="string"&&B.length&&!B.tagName&&!B.alert&&typeof B[0]!=="undefined")}catch(A){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(B){if(!S){S=true;var A=YAHOO.util.Event;A._ready();A._tryPreloadAttach()}},_ready:function(B){if(!Q){Q=true;var A=YAHOO.util.Event;A.DOMReadyEvent.fire();A._simpleRemove(document,"DOMContentLoaded",A._ready)}},_tryPreloadAttach:function(){if(this.locked){return false}if(this.isIE){if(!Q){this.startInterval();return false}}this.locked=true;var C=!S;if(!C){C=(M>0)}var D=[];var B=function(I,H){var J=I;if(H.override){if(H.override===true){J=H.obj}else{J=H.override}}H.fn.call(J,H.obj)};var G,A,E,F;for(G=0,A=U.length;G<A;++G){E=U[G];if(E&&!E.checkReady){F=this.getEl(E.id);if(F){B(F,E);U[G]=null}else{D.push(E)}}}for(G=0,A=U.length;G<A;++G){E=U[G];if(E&&E.checkReady){F=this.getEl(E.id);if(F){if(S||F.nextSibling){B(F,E);U[G]=null}}else{D.push(E)}}}M=(D.length===0)?0:M-1;if(C){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true},purgeElement:function(E,D,B){var C=this.getListeners(E,B),F,A;if(C){for(F=0,A=C.length;F<A;++F){var G=C[F];this.removeListener(E,G.type,G.fn,G.index)}}if(D&&E&&E.childNodes){for(F=0,A=E.childNodes.length;F<A;++F){this.purgeElement(E.childNodes[F],D,B)}}},getListeners:function(G,I){var D=[],H;if(!I){H=[R,P]}else{if(I=="unload"){H=[P]}else{H=[R]}}for(var E=0;E<H.length;E=E+1){var A=H[E];if(A&&A.length>0){for(var C=0,B=A.length;C<B;++C){var F=A[C];if(F&&F[this.EL]===G&&(!I||I===F[this.TYPE])){D.push({type:F[this.TYPE],fn:F[this.FN],obj:F[this.OBJ],adjust:F[this.OVERRIDE],scope:F[this.ADJ_SCOPE],index:C})}}}}return(D.length)?D:null},_unload:function(B){var C=YAHOO.util.Event,E,F,H,A,G;for(E=0,A=P.length;E<A;++E){H=P[E];if(H){var D=window;if(H[C.ADJ_SCOPE]){if(H[C.ADJ_SCOPE]===true){D=H[C.UNLOAD_OBJ]}else{D=H[C.ADJ_SCOPE]}}H[C.FN].call(D,C.getEvent(B,H[C.EL]),H[C.UNLOAD_OBJ]);P[E]=null;H=null;D=null}}P=null;if(R&&R.length>0){F=R.length;while(F){G=F-1;H=R[G];if(H){C.removeListener(H[C.EL],H[C.TYPE],H[C.FN],G)}F=F-1}H=null;C.clearCache()}for(E=0,A=T.length;E<A;++E){T[E][0]=null;T[E]=null}T=null;C._simpleRemove(window,"unload",C._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var A=document.documentElement,B=document.body;if(A&&(A.scrollTop||A.scrollLeft)){return[A.scrollTop,A.scrollLeft]}else{if(B){return[B.scrollTop,B.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(C,B,D,A){C.addEventListener(B,D,(A))}}else{if(window.attachEvent){return function(C,B,D,A){C.attachEvent("on"+B,D)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(C,B,D,A){C.removeEventListener(B,D,(A))}}else{if(window.detachEvent){return function(C,B,A){C.detachEvent("on"+B,A)}}else{return function(){}}}}()}}();(function(){var H=YAHOO.util.Event;H.on=H.addListener;if(H.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var J,G=document,F=G.body;if(("undefined"!==typeof YAHOO_config)&&YAHOO_config.injecting){J=document.createElement("script");var I=G.getElementsByTagName("head")[0]||F;I.insertBefore(J,I.firstChild)}else{G.write('<script id="_yui_eu_dr" defer="true" src="//:"><\/script>');J=document.getElementById("_yui_eu_dr")}if(J){J.onreadystatechange=function(){if("complete"===this.readyState){this.parentNode.removeChild(this);YAHOO.util.Event._ready()}}}else{}J=null}else{if(H.webkit){H._drwatch=setInterval(function(){var A=document.readyState;if("loaded"==A||"complete"==A){clearInterval(H._drwatch);H._drwatch=null;H._ready()}},H.POLL_INTERVAL)}else{H._simpleAdd(document,"DOMContentLoaded",H._ready)}}H._simpleAdd(window,"load",H._load);H._simpleAdd(window,"unload",H._unload);H._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;var E;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.register("event",YAHOO.util.Event,{version:"2.3.1",build:"541"});(function(){var Q=YAHOO.util,V,X,Y=0,W={},a={};var P=YAHOO.env.ua.opera,U=YAHOO.env.ua.webkit,R=YAHOO.env.ua.gecko,Z=YAHOO.env.ua.ie;var b={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i};var T=function(B){if(!b.HYPHEN.test(B)){return B}if(W[B]){return W[B]}var A=B;while(b.HYPHEN.exec(A)){A=A.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}W[B]=A;return A};var S=function(A){var B=a[A];if(!B){B=new RegExp("(?:^|\\s+)"+A+"(?:\\s+|$)");a[A]=B}return B};if(document.defaultView&&document.defaultView.getComputedStyle){V=function(D,A){var B=null;if(A=="float"){A="cssFloat"}var C=document.defaultView.getComputedStyle(D,"");if(C){B=C[T(A)]}return D.style[A]||B}}else{if(document.documentElement.currentStyle&&Z){V=function(E,C){switch(T(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{V=function(B,A){return B.style[A]}}}if(Z){X=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{X=function(C,B,A){if(B=="float"){B="cssFloat"}C.style[B]=A}}var O=function(B,A){return B&&B.nodeType==1&&(!A||A(B))};YAHOO.util.Dom={get:function(B){if(B&&(B.tagName||B.item)){return B}if(YAHOO.lang.isString(B)||!B){return document.getElementById(B)}if(B.length!==undefined){var A=[];for(var C=0,D=B.length;C<D;++C){A[A.length]=Q.Dom.get(B[C])}return A}return B},getStyle:function(C,A){A=T(A);var B=function(D){return V(D,A)};return Q.Dom.batch(C,B,Q.Dom,true)},setStyle:function(D,B,A){B=T(B);var C=function(E){X(E,B,A)};Q.Dom.batch(D,C,Q.Dom,true)},getXY:function(B){var A=function(G){if((G.parentNode===null||G.offsetParent===null||this.getStyle(G,"display")=="none")&&G!=document.body){return false}var H=null;var C=[];var F;var E=G.ownerDocument;if(G.getBoundingClientRect){F=G.getBoundingClientRect();return[F.left+Q.Dom.getDocumentScrollLeft(G.ownerDocument),F.top+Q.Dom.getDocumentScrollTop(G.ownerDocument)]}else{C=[G.offsetLeft,G.offsetTop];H=G.offsetParent;var D=this.getStyle(G,"position")=="absolute";if(H!=G){while(H){C[0]+=H.offsetLeft;C[1]+=H.offsetTop;if(U&&!D&&this.getStyle(H,"position")=="absolute"){D=true}H=H.offsetParent}}if(U&&D){C[0]-=G.ownerDocument.body.offsetLeft;C[1]-=G.ownerDocument.body.offsetTop}}H=G.parentNode;while(H.tagName&&!b.ROOT_TAG.test(H.tagName)){if(Q.Dom.getStyle(H,"display").search(/^inline|table-row.*$/i)){C[0]-=H.scrollLeft;C[1]-=H.scrollTop}H=H.parentNode}return C};return Q.Dom.batch(B,A,Q.Dom,true)},getX:function(B){var A=function(C){return Q.Dom.getXY(C)[0]};return Q.Dom.batch(B,A,Q.Dom,true)},getY:function(B){var A=function(C){return Q.Dom.getXY(C)[1]};return Q.Dom.batch(B,A,Q.Dom,true)},setXY:function(D,A,B){var C=function(G){var H=this.getStyle(G,"position");if(H=="static"){this.setStyle(G,"position","relative");H="relative"}var E=this.getXY(G);if(E===false){return false}var F=[parseInt(this.getStyle(G,"left"),10),parseInt(this.getStyle(G,"top"),10)];if(isNaN(F[0])){F[0]=(H=="relative")?0:G.offsetLeft}if(isNaN(F[1])){F[1]=(H=="relative")?0:G.offsetTop}if(A[0]!==null){G.style.left=A[0]-E[0]+F[0]+"px"}if(A[1]!==null){G.style.top=A[1]-E[1]+F[1]+"px"}if(!B){var I=this.getXY(G);if((A[0]!==null&&I[0]!=A[0])||(A[1]!==null&&I[1]!=A[1])){this.setXY(G,A,true)}}};Q.Dom.batch(D,C,Q.Dom,true)},setX:function(A,B){Q.Dom.setXY(A,[B,null])},setY:function(B,A){Q.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!=document.body){return false}var C=Q.Region.getRegion(D);return C};return Q.Dom.batch(B,A,Q.Dom,true)},getClientWidth:function(){return Q.Dom.getViewportWidth()},getClientHeight:function(){return Q.Dom.getViewportHeight()},getElementsByClassName:function(E,A,D,C){A=A||"*";D=(D)?Q.Dom.get(D):null||document;if(!D){return[]}var H=[],I=D.getElementsByTagName(A),B=S(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=S(C);var A=function(E){return D.test(E.className)};return Q.Dom.batch(B,A,Q.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 Q.Dom.batch(B,A,Q.Dom,true)},removeClass:function(B,C){var D=S(C);var A=function(F){if(!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 Q.Dom.batch(B,A,Q.Dom,true)},replaceClass:function(B,D,E){if(!E||D===E){return false}var C=S(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 Q.Dom.batch(B,A,Q.Dom,true)},generateId:function(C,A){A=A||"yui-gen";var B=function(E){if(E&&E.id){return E.id}var D=A+Y++;if(E){E.id=D}return D};return Q.Dom.batch(C,B,Q.Dom,true)||B.apply(Q.Dom,arguments)},isAncestor:function(B,A){B=Q.Dom.get(B);if(!B||!A){return false}var C=function(D){if(B.contains&&D.nodeType&&!U){return B.contains(D)}else{if(B.compareDocumentPosition&&D.nodeType){return !!(B.compareDocumentPosition(D)&16)}else{if(D.nodeType){return !!this.getAncestorBy(D,function(E){return E==B})}}}return false};return Q.Dom.batch(A,C,Q.Dom,true)},inDocument:function(B){var A=function(C){if(U){while(C=C.parentNode){if(C==document.documentElement){return true}}return false}return this.isAncestor(document.documentElement,C)};return Q.Dom.batch(B,A,Q.Dom,true)},getElementsBy:function(A,G,F,D){G=G||"*";F=(F)?Q.Dom.get(F):null||document;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:Q.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=(document.compatMode!="CSS1Compat")?document.body.scrollHeight:document.documentElement.scrollHeight;var B=Math.max(A,Q.Dom.getViewportHeight());return B},getDocumentWidth:function(){var A=(document.compatMode!="CSS1Compat")?document.body.scrollWidth:document.documentElement.scrollWidth;var B=Math.max(A,Q.Dom.getViewportWidth());return B},getViewportHeight:function(){var B=self.innerHeight;var A=document.compatMode;if((A||Z)&&!P){B=(A=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return B},getViewportWidth:function(){var B=self.innerWidth;var A=document.compatMode;if(A||Z){B=(A=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth}return B},getAncestorBy:function(B,A){while(B=B.parentNode){if(O(B,A)){return B}}return null},getAncestorByClassName:function(B,C){B=Q.Dom.get(B);if(!B){return null}var A=function(D){return Q.Dom.hasClass(D,C)};return Q.Dom.getAncestorBy(B,A)},getAncestorByTagName:function(B,C){B=Q.Dom.get(B);if(!B){return null}var A=function(D){return D.tagName&&D.tagName.toUpperCase()==C.toUpperCase()};return Q.Dom.getAncestorBy(B,A)},getPreviousSiblingBy:function(B,A){while(B){B=B.previousSibling;if(O(B,A)){return B}}return null},getPreviousSibling:function(A){A=Q.Dom.get(A);if(!A){return null}return Q.Dom.getPreviousSiblingBy(A)},getNextSiblingBy:function(B,A){while(B){B=B.nextSibling;if(O(B,A)){return B}}return null},getNextSibling:function(A){A=Q.Dom.get(A);if(!A){return null}return Q.Dom.getNextSiblingBy(A)},getFirstChildBy:function(C,A){var B=(O(C.firstChild,A))?C.firstChild:null;return B||Q.Dom.getNextSiblingBy(C.firstChild,A)},getFirstChild:function(B,A){B=Q.Dom.get(B);if(!B){return null}return Q.Dom.getFirstChildBy(B)},getLastChildBy:function(C,A){if(!C){return null}var B=(O(C.lastChild,A))?C.lastChild:null;return B||Q.Dom.getPreviousSiblingBy(C.lastChild,A)},getLastChild:function(A){A=Q.Dom.get(A);return Q.Dom.getLastChildBy(A)},getChildrenBy:function(C,A){var B=Q.Dom.getFirstChildBy(C,A);var D=B?[B]:[];Q.Dom.getNextSiblingBy(B,function(E){if(!A||A(E)){D[D.length]=E}return false});return D},getChildren:function(A){A=Q.Dom.get(A);if(!A){}return Q.Dom.getChildrenBy(A)},getDocumentScrollLeft:function(A){A=A||document;return Math.max(A.documentElement.scrollLeft,A.body.scrollLeft)},getDocumentScrollTop:function(A){A=A||document;return Math.max(A.documentElement.scrollTop,A.body.scrollTop)},insertBefore:function(A,B){A=Q.Dom.get(A);B=Q.Dom.get(B);if(!A||!B||!B.parentNode){return null}return B.parentNode.insertBefore(A,B)},insertAfter:function(A,B){A=Q.Dom.get(A);B=Q.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)}}}})();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.3.1",build:"541"});if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var B=YAHOO.util.Event;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(H,I){for(var G in this.ids){for(var J in this.ids[G]){var A=this.ids[G][J];if(!this.isTypeOfDD(A)){continue}A[H].apply(A,I)}}},_onLoad:function(){this.init();B.on(document,"mouseup",this.handleMouseUp,this,true);B.on(document,"mousemove",this.handleMouseMove,this,true);B.on(window,"unload",this._onUnload,this,true);B.on(window,"resize",this._onResize,this,true)},_onResize:function(A){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,regDragDrop:function(A,D){if(!this.initialized){this.init()}if(!this.ids[D]){this.ids[D]={}}this.ids[D][A.id]=A},removeDDFromGroup:function(A,F){if(!this.ids[F]){this.ids[F]={}}var E=this.ids[F];if(E&&E[A.id]){delete E[A.id]}},_remove:function(A){for(var D in A.groups){if(D&&this.ids[D][A.id]){delete this.ids[D][A.id]}}delete this.handleIds[A.id]},regHandle:function(A,D){if(!this.handleIds[A]){this.handleIds[A]={}}this.handleIds[A][D]=D},isDragDrop:function(A){return(this.getDDById(A))?true:false},getRelated:function(A,K){var H=[];for(var I in A.groups){for(var J in this.ids[I]){var L=this.ids[I][J];if(!this.isTypeOfDD(L)){continue}if(!K||L.isTarget){H[H.length]=L}}}return H},isLegalTarget:function(A,G){var I=this.getRelated(A,true);for(var H=0,J=I.length;H<J;++H){if(I[H].id==G.id){return true}}return false},isTypeOfDD:function(A){return(A&&A.__ygDragDrop)},isHandle:function(A,D){return(this.handleIds[A]&&this.handleIds[A][D])},getDDById:function(A){for(var D in this.ids){if(this.ids[D][A]){return this.ids[D][A]}}return null},handleMouseDown:function(A,E){this.currentTarget=YAHOO.util.Event.getTarget(A);this.dragCurrent=E;var F=E.getEl();this.startX=YAHOO.util.Event.getPageX(A);this.startY=YAHOO.util.Event.getPageY(A);this.deltaX=this.startX-F.offsetLeft;this.deltaY=this.startY-F.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var C=YAHOO.util.DDM;C.startDrag(C.startX,C.startY)},this.clickTimeThresh)},startDrag:function(F,A){clearTimeout(this.clickTimeout);var E=this.dragCurrent;if(E){E.b4StartDrag(F,A)}if(E){E.startDrag(F,A)}this.dragThreshMet=true},handleMouseUp:function(A){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){this.fireEvents(A,true)}else{}this.stopDrag(A);this.stopEvent(A)}},stopEvent:function(A){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(A)}if(this.preventDefault){YAHOO.util.Event.preventDefault(A)}},stopDrag:function(A,D){if(this.dragCurrent&&!D){if(this.dragThreshMet){this.dragCurrent.b4EndDrag(A);this.dragCurrent.endDrag(A)}this.dragCurrent.onMouseUp(A)}this.dragCurrent=null;this.dragOvers={}},handleMouseMove:function(A){var H=this.dragCurrent;if(H){if(YAHOO.util.Event.isIE&&!A.button){this.stopEvent(A);return this.handleMouseUp(A)}if(!this.dragThreshMet){var F=Math.abs(this.startX-YAHOO.util.Event.getPageX(A));var G=Math.abs(this.startY-YAHOO.util.Event.getPageY(A));if(F>this.clickPixelThresh||G>this.clickPixelThresh){this.startDrag(this.startX,this.startY)}}if(this.dragThreshMet){H.b4Drag(A);if(H){H.onDrag(A)}if(H){this.fireEvents(A,false)}}this.stopEvent(A)}},fireEvents:function(W,h){var U=this.dragCurrent;if(!U||U.isLocked()){return }var f=YAHOO.util.Event.getPageX(W),g=YAHOO.util.Event.getPageY(W),d=new YAHOO.util.Point(f,g),k=U.getTargetCoord(d.x,d.y),n=U.getDragEl(),X=new YAHOO.util.Region(k.y,k.x+n.offsetWidth,k.y+n.offsetHeight,k.x),l=[],j=[],o=[],V=[],Y=[];for(var a in this.dragOvers){var A=this.dragOvers[a];if(!this.isTypeOfDD(A)){continue}if(!this.isOverTarget(d,A,this.mode,X)){j.push(A)}l[a]=true;delete this.dragOvers[a]}for(var b in U.groups){if("string"!=typeof b){continue}for(a in this.ids[b]){var m=this.ids[b][a];if(!this.isTypeOfDD(m)){continue}if(m.isTarget&&!m.isLocked()&&m!=U){if(this.isOverTarget(d,m,this.mode,X)){if(h){V.push(m)}else{if(!l[m.id]){Y.push(m)}else{o.push(m)}this.dragOvers[m.id]=m}}}}}this.interactionInfo={out:j,enter:Y,over:o,drop:V,point:d,draggedRegion:X,sourceRegion:this.locationCache[U.id],validDrop:h};if(h&&!V.length){this.interactionInfo.validDrop=false;U.onInvalidDrop(W)}if(this.mode){if(j.length){U.b4DragOut(W,j);if(U){U.onDragOut(W,j)}}if(Y.length){if(U){U.onDragEnter(W,Y)}}if(o.length){if(U){U.b4DragOver(W,o)}if(U){U.onDragOver(W,o)}}if(V.length){if(U){U.b4DragDrop(W,V)}if(U){U.onDragDrop(W,V)}}}else{var Z=0;for(a=0,Z=j.length;a<Z;++a){if(U){U.b4DragOut(W,j[a].id)}if(U){U.onDragOut(W,j[a].id)}}for(a=0,Z=Y.length;a<Z;++a){if(U){U.onDragEnter(W,Y[a].id)}}for(a=0,Z=o.length;a<Z;++a){if(U){U.b4DragOver(W,o[a].id)}if(U){U.onDragOver(W,o[a].id)}}for(a=0,Z=V.length;a<Z;++a){if(U){U.b4DragDrop(W,V[a].id)}if(U){U.onDragDrop(W,V[a].id)}}}},getBestMatch:function(H){var A=null;var I=H.length;if(I==1){A=H[0]}else{for(var G=0;G<I;++G){var J=H[G];if(this.mode==this.INTERSECT&&J.cursorIsOver){A=J;break}else{if(!A||!A.overlap||(J.overlap&&A.overlap.getArea()<J.overlap.getArea())){A=J}}}}return A},refreshCache:function(K){var I=K||this.ids;for(var L in I){if("string"!=typeof L){continue}for(var J in this.ids[L]){var H=this.ids[L][J];if(this.isTypeOfDD(H)){var A=this.getLocation(H);if(A){this.locationCache[H.id]=A}else{delete this.locationCache[H.id]}}}}},verifyEl:function(E){try{if(E){var F=E.offsetParent;if(F){return true}}}catch(A){}return false},getLocation:function(V){if(!this.isTypeOfDD(V)){return null}var X=V.getEl(),S,A,N,Q,R,P,O,T,W;try{S=YAHOO.util.Dom.getXY(X)}catch(U){}if(!S){return null}A=S[0];N=A+X.offsetWidth;Q=S[1];R=Q+X.offsetHeight;P=Q-V.padding[0];O=N+V.padding[1];T=R+V.padding[2];W=A-V.padding[3];return new YAHOO.util.Region(P,O,T,W)},isOverTarget:function(M,L,A,R){var Q=this.locationCache[L.id];if(!Q||!this.useCache){Q=this.getLocation(L);this.locationCache[L.id]=Q}if(!Q){return false}L.cursorIsOver=Q.contains(M);var N=this.dragCurrent;if(!N||(!A&&!N.constrainX&&!N.constrainY)){return L.cursorIsOver}L.overlap=null;if(!R){var P=N.getTargetCoord(M.x,M.y);var K=N.getDragEl();R=new YAHOO.util.Region(P.y,P.x+K.offsetWidth,P.y+K.offsetHeight,P.x)}var O=R.intersect(Q);if(O){L.overlap=O;return(A)?true:L.cursorIsOver}else{return false}},_onUnload:function(A,D){this.unregAll()},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null}this._execOnAll("unreg",[]);this.ids={}},elementCache:{},getElWrapper:function(A){var D=this.elementCache[A];if(!D||!D.el){D=this.elementCache[A]=new this.ElementWrapper(YAHOO.util.Dom.get(A))}return D},getElement:function(A){return YAHOO.util.Dom.get(A)},getCss:function(A){var D=YAHOO.util.Dom.get(A);return(D)?D.style:null},ElementWrapper:function(A){this.el=A||null;this.id=this.el&&A.id;this.css=this.el&&A.style},getPosX:function(A){return YAHOO.util.Dom.getX(A)},getPosY:function(A){return YAHOO.util.Dom.getY(A)},swapNode:function(F,H){if(F.swapNode){F.swapNode(H)}else{var A=H.parentNode;var G=H.nextSibling;if(G==F){A.insertBefore(F,H)}else{if(H==F.nextSibling){A.insertBefore(H,F)}else{F.parentNode.replaceChild(H,F);A.insertBefore(F,G)}}}},getScroll:function(){var F,H,A=document.documentElement,G=document.body;if(A&&(A.scrollTop||A.scrollLeft)){F=A.scrollTop;H=A.scrollLeft}else{if(G){F=G.scrollTop;H=G.scrollLeft}else{}}return{top:F,left:H}},getStyle:function(A,D){return YAHOO.util.Dom.getStyle(A,D)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(F,A){var E=YAHOO.util.Dom.getXY(A);YAHOO.util.Dom.setXY(F,E)},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight()},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth()},numericSort:function(A,D){return(A-D)},_timeoutCount:0,_addListeners:function(){var A=YAHOO.util.DDM;if(YAHOO.util.Event&&document){A._onLoad()}else{if(A._timeoutCount>2000){}else{setTimeout(A._addListeners,10);if(document&&document.body){A._timeoutCount+=1}}}},handleWasClicked:function(F,A){if(this.isHandle(A,F.id)){return true}else{var E=F.parentNode;while(E){if(this.isHandle(A,E.id)){return true}else{E=E.parentNode}}}return false}}}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners()}(function(){var C=YAHOO.util.Event;var D=YAHOO.util.Dom;YAHOO.util.DragDrop=function(A,F,B){if(A){this.init(A,F,B)}};YAHOO.util.DragDrop.prototype={id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true},unlock:function(){this.locked=false},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(B,A){},startDrag:function(B,A){},b4Drag:function(A){},onDrag:function(A){},onDragEnter:function(B,A){},b4DragOver:function(A){},onDragOver:function(B,A){},b4DragOut:function(A){},onDragOut:function(B,A){},b4DragDrop:function(A){},onDragDrop:function(B,A){},onInvalidDrop:function(A){},b4EndDrag:function(A){},endDrag:function(A){},b4MouseDown:function(A){},onMouseDown:function(A){},onMouseUp:function(A){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=D.get(this.id)}return this._domRef},getDragEl:function(){return D.get(this.dragElId)},init:function(A,F,B){this.initTarget(A,F,B);C.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,true)},initTarget:function(A,F,B){this.config=B||{};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof A!=="string"){this._domRef=A;A=D.generateId(A)}this.id=A;this.addToGroup((F)?F:"default");this.handleElId=A;C.onAvailable(A,this.handleOnAvailable,this,true);this.setDragElId(A);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false)},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable()},setPadding:function(B,H,A,G){if(!H&&0!==H){this.padding=[B,B,B,B]}else{if(!A&&0!==A){this.padding=[B,H,B,H]}else{this.padding=[B,H,A,G]}}},setInitPosition:function(I,J){var B=this.getEl();if(!this.DDM.verifyEl(B)){return }var K=I||0;var L=J||0;var A=D.getXY(B);this.initPageX=A[0]-K;this.initPageY=A[1]-L;this.lastPageX=A[0];this.lastPageY=A[1];this.setStartPosition(A)},setStartPosition:function(A){var B=A||D.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=B[0];this.startPageY=B[1]},addToGroup:function(A){this.groups[A]=true;this.DDM.regDragDrop(this,A)},removeFromGroup:function(A){if(this.groups[A]){delete this.groups[A]}this.DDM.removeDDFromGroup(this,A)},setDragElId:function(A){this.dragElId=A},setHandleElId:function(A){if(typeof A!=="string"){A=D.generateId(A)}this.handleElId=A;this.DDM.regHandle(this.id,A)},setOuterHandleElId:function(A){if(typeof A!=="string"){A=D.generateId(A)}C.on(A,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(A);this.hasOuterHandles=true},unreg:function(){C.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this)},isLocked:function(){return(this.DDM.isLocked()||this.locked)},handleMouseDown:function(A,B){var H=A.which||A.button;if(this.primaryButtonOnly&&H>1){return }if(this.isLocked()){return }this.b4MouseDown(A);this.onMouseDown(A);this.DDM.refreshCache(this.groups);var G=new YAHOO.util.Point(C.getPageX(A),C.getPageY(A));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(G,this)){}else{if(this.clickValidator(A)){this.setStartPosition();this.DDM.handleMouseDown(A,this);this.DDM.stopEvent(A)}else{}}},clickValidator:function(A){var B=C.getTarget(A);return(this.isValidHandleChild(B)&&(this.id==this.handleElId||this.DDM.handleWasClicked(B,this.id)))},getTargetCoord:function(B,G){var H=B-this.deltaX;var A=G-this.deltaY;if(this.constrainX){if(H<this.minX){H=this.minX}if(H>this.maxX){H=this.maxX}}if(this.constrainY){if(A<this.minY){A=this.minY}if(A>this.maxY){A=this.maxY}}H=this.getTick(H,this.xTicks);A=this.getTick(A,this.yTicks);return{x:H,y:A}},addInvalidHandleType:function(B){var A=B.toUpperCase();this.invalidHandleTypes[A]=A},addInvalidHandleId:function(A){if(typeof A!=="string"){A=D.generateId(A)}this.invalidHandleIds[A]=A},addInvalidHandleClass:function(A){this.invalidHandleClasses.push(A)},removeInvalidHandleType:function(B){var A=B.toUpperCase();delete this.invalidHandleTypes[A]},removeInvalidHandleId:function(A){if(typeof A!=="string"){A=D.generateId(A)}delete this.invalidHandleIds[A]},removeInvalidHandleClass:function(B){for(var A=0,F=this.invalidHandleClasses.length;A<F;++A){if(this.invalidHandleClasses[A]==B){delete this.invalidHandleClasses[A]}}},isValidHandleChild:function(I){var J=true;var A;try{A=I.nodeName.toUpperCase()}catch(B){A=I.nodeName}J=J&&!this.invalidHandleTypes[A];J=J&&!this.invalidHandleIds[I.id];for(var K=0,L=this.invalidHandleClasses.length;J&&K<L;++K){J=!D.hasClass(I,this.invalidHandleClasses[K])}return J},setXTicks:function(A,H){this.xTicks=[];this.xTickSize=H;var B={};for(var G=this.initPageX;G>=this.minX;G=G-H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true}}for(G=this.initPageX;G<=this.maxX;G=G+H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true}}this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(A,H){this.yTicks=[];this.yTickSize=H;var B={};for(var G=this.initPageY;G>=this.minY;G=G-H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true}}for(G=this.initPageY;G<=this.maxY;G=G+H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true}}this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(A,B,F){this.leftConstraint=parseInt(A,10);this.rightConstraint=parseInt(B,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(F){this.setXTicks(this.initPageX,F)}this.constrainX=true},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(F,A,B){this.topConstraint=parseInt(F,10);this.bottomConstraint=parseInt(A,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(B){this.setYTicks(this.initPageY,B)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var A=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var B=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(A,B)}else{this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(A,K){if(!K){return A}else{if(K[0]>=A){return K[0]}else{for(var M=0,N=K.length;M<N;++M){var L=M+1;if(K[L]&&K[L]>=A){var B=A-K[M];var J=K[L]-A;return(J>B)?K[M]:K[L]}}return K[K.length-1]}}},toString:function(){return("DragDrop "+this.id)}}})();YAHOO.util.DD=function(E,D,F){if(E){this.init(E,D,F)}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(G,H){var E=G-this.startPageX;var F=H-this.startPageY;this.setDelta(E,F)},setDelta:function(D,C){this.deltaX=D;this.deltaY=C},setDragElPos:function(E,F){var D=this.getDragEl();this.alignElWithMouse(D,E,F)},alignElWithMouse:function(N,J,K){var L=this.getTargetCoord(J,K);if(!this.deltaSetXY){var I=[L.x,L.y];YAHOO.util.Dom.setXY(N,I);var M=parseInt(YAHOO.util.Dom.getStyle(N,"left"),10);var H=parseInt(YAHOO.util.Dom.getStyle(N,"top"),10);this.deltaSetXY=[M-L.x,H-L.y]}else{YAHOO.util.Dom.setStyle(N,"left",(L.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(N,"top",(L.y+this.deltaSetXY[1])+"px")}this.cachePosition(L.x,L.y);this.autoScroll(L.x,L.y,N.offsetHeight,N.offsetWidth)},cachePosition:function(F,D){if(F){this.lastPageX=F;this.lastPageY=D}else{var E=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=E[0];this.lastPageY=E[1]}},autoScroll:function(W,X,b,V){if(this.scroll){var U=this.DDM.getClientHeight();var Q=this.DDM.getClientWidth();var S=this.DDM.getScrollTop();var O=this.DDM.getScrollLeft();var Y=b+X;var T=V+W;var Z=(U+S-X-this.deltaY);var a=(Q+O-W-this.deltaX);var P=40;var R=(document.all)?80:30;if(Y>U&&Z<P){window.scrollTo(O,S+R)}if(X<S&&S>0&&X-S<P){window.scrollTo(O,S-R)}if(T>Q&&a<P){window.scrollTo(O+R,S)}if(W<O&&O>0&&W-O<P){window.scrollTo(O-R,S)}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(B){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B))},b4Drag:function(B){this.setDragElPos(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B))},toString:function(){return("DD "+this.id)}});YAHOO.util.DDProxy=function(E,D,F){if(E){this.init(E,D,F);this.initFrame()}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var L=this,G=document.body;if(!G||!G.firstChild){setTimeout(function(){L.createFrame()},50);return }var H=this.getDragEl(),I=YAHOO.util.Dom;if(!H){H=document.createElement("div");H.id=this.dragElId;var J=H.style;J.position="absolute";J.visibility="hidden";J.cursor="move";J.border="2px solid #aaa";J.zIndex=999;J.height="25px";J.width="25px";var K=document.createElement("div");I.setStyle(K,"height","100%");I.setStyle(K,"width","100%");I.setStyle(K,"background-color","#ccc");I.setStyle(K,"opacity","0");H.appendChild(K);G.insertBefore(H,G.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId)},showFrame:function(G,H){var I=this.getEl();var F=this.getDragEl();var J=F.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(J.width,10)/2),Math.round(parseInt(J.height,10)/2))}this.setDragElPos(G,H);YAHOO.util.Dom.setStyle(F,"visibility","visible")},_resizeProxy:function(){if(this.resizeFrame){var O=YAHOO.util.Dom;var L=this.getEl();var K=this.getDragEl();var P=parseInt(O.getStyle(K,"borderTopWidth"),10);var N=parseInt(O.getStyle(K,"borderRightWidth"),10);var Q=parseInt(O.getStyle(K,"borderBottomWidth"),10);var J=parseInt(O.getStyle(K,"borderLeftWidth"),10);if(isNaN(P)){P=0}if(isNaN(N)){N=0}if(isNaN(Q)){Q=0}if(isNaN(J)){J=0}var R=Math.max(0,L.offsetWidth-N-J);var M=Math.max(0,L.offsetHeight-P-Q);O.setStyle(K,"width",R+"px");O.setStyle(K,"height",M+"px")}},b4MouseDown:function(F){this.setStartPosition();var D=YAHOO.util.Event.getPageX(F);var E=YAHOO.util.Event.getPageY(F);this.autoOffset(D,E)},b4StartDrag:function(C,D){this.showFrame(C,D)},b4EndDrag:function(B){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden")},endDrag:function(F){var G=YAHOO.util.Dom;var H=this.getEl();var E=this.getDragEl();G.setStyle(E,"visibility","");G.setStyle(H,"visibility","hidden");YAHOO.util.DDM.moveToEl(H,E);G.setStyle(E,"visibility","hidden");G.setStyle(H,"visibility","")},toString:function(){return("DDProxy "+this.id)}});YAHOO.util.DDTarget=function(E,D,F){if(E){this.initTarget(E,D,F)}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id)}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.3.1",build:"541"});YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function(){if(YAHOO.util.Event){YAHOO.util.Event.addListener(document,"click",function(B){try{var A=YAHOO.util.Event.getTarget(B);if(A.type.toLowerCase()=="submit"){YAHOO.util.Connect._submitElementValue=encodeURIComponent(A.name)+"="+encodeURIComponent(A.value)}}catch(B){}});return true}return false})(),startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),uploadEvent:new YAHOO.util.CustomEvent("upload"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(A){this._msxml_progid.unshift(A)},setDefaultPostHeader:function(A){if(typeof A=="string"){this._default_post_header=A}else{if(typeof A=="boolean"){this._use_default_post_header=A}}},setDefaultXhrHeader:function(A){if(typeof A=="string"){this._default_xhr_header=A}else{this._use_default_xhr_header=A}},setPollingInterval:function(A){if(typeof A=="number"&&isFinite(A)){this._polling_interval=A}},createXhrObject:function(B){var A,C;try{C=new XMLHttpRequest();A={conn:C,tId:B}}catch(D){for(var E=0;E<this._msxml_progid.length;++E){try{C=new ActiveXObject(this._msxml_progid[E]);A={conn:C,tId:B};break}catch(D){}}}finally{return A}},getConnectionObject:function(B){var C;var A=this._transaction_id;try{if(!B){C=this.createXhrObject(A)}else{C={};C.tId=A;C.isUpload=true}if(C){this._transaction_id++}}catch(D){}finally{return C}},asyncRequest:function(B,E,A,C){var D=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();if(!D){return null}else{if(A&&A.customevents){this.initCustomEvents(D,A)}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(D,A,E,C);return D}if(B.toUpperCase()=="GET"){if(this._sFormData.length!==0){E+=((E.indexOf("?")==-1)?"?":"&")+this._sFormData}else{E+="?"+this._sFormData}}else{if(B.toUpperCase()=="POST"){C=C?this._sFormData+"&"+C:this._sFormData}}}D.conn.open(B,E,true);if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true)}}if(this._isFormSubmit==false&&this._use_default_post_header){this.initHeader("Content-Type",this._default_post_header)}if(this._has_default_headers||this._has_http_headers){this.setHeader(D)}this.handleReadyState(D,A);D.conn.send(C||null);this.startEvent.fire(D);if(D.startEvent){D.startEvent.fire(D)}return D}},initCustomEvents:function(A,B){for(var C in B.customevents){if(this._customEvents[C][0]){A[this._customEvents[C][0]]=new YAHOO.util.CustomEvent(this._customEvents[C][1],(B.scope)?B.scope:null);A[this._customEvents[C][0]].subscribe(B.customevents[C])}}},handleReadyState:function(C,B){var A=this;if(B&&B.timeout){this._timeOut[C.tId]=window.setTimeout(function(){A.abort(C,B,true)},B.timeout)}this._poll[C.tId]=window.setInterval(function(){if(C.conn&&C.conn.readyState===4){window.clearInterval(A._poll[C.tId]);delete A._poll[C.tId];if(B&&B.timeout){window.clearTimeout(A._timeOut[C.tId]);delete A._timeOut[C.tId]}A.completeEvent.fire(C);if(C.completeEvent){C.completeEvent.fire(C)}A.handleTransactionResponse(C,B)}},this._polling_interval)},handleTransactionResponse:function(C,B,D){var E,F;try{if(C.conn.status!==undefined&&C.conn.status!==0){E=C.conn.status}else{E=13030}}catch(A){E=13030}if(E>=200&&E<300||E===1223){F=this.createResponseObject(C,(B&&B.argument)?B.argument:undefined);if(B){if(B.success){if(!B.scope){B.success(F)}else{B.success.apply(B.scope,[F])}}}this.successEvent.fire(F);if(C.successEvent){C.successEvent.fire(F)}}else{switch(E){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:F=this.createExceptionObject(C.tId,(B&&B.argument)?B.argument:undefined,(D?D:false));if(B){if(B.failure){if(!B.scope){B.failure(F)}else{B.failure.apply(B.scope,[F])}}}break;default:F=this.createResponseObject(C,(B&&B.argument)?B.argument:undefined);if(B){if(B.failure){if(!B.scope){B.failure(F)}else{B.failure.apply(B.scope,[F])}}}}this.failureEvent.fire(F);if(C.failureEvent){C.failureEvent.fire(F)}}this.releaseObject(C);F=null},createResponseObject:function(E,H){var C={};var D={};try{var F=E.conn.getAllResponseHeaders();var B=F.split("\n");for(var I=0;I<B.length;I++){var A=B[I].indexOf(":");if(A!=-1){D[B[I].substring(0,A)]=B[I].substring(A+2)}}}catch(G){}C.tId=E.tId;C.status=(E.conn.status==1223)?204:E.conn.status;C.statusText=(E.conn.status==1223)?"No Content":E.conn.statusText;C.getResponseHeader=D;C.getAllResponseHeaders=F;C.responseText=E.conn.responseText;C.responseXML=E.conn.responseXML;if(typeof H!==undefined){C.argument=H}return C},createExceptionObject:function(H,A,D){var C=0;var G="communication failure";var E=-1;var F="transaction aborted";var B={};B.tId=H;if(D){B.status=E;B.statusText=F}else{B.status=C;B.statusText=G}if(A){B.argument=A}return B},initHeader:function(B,A,C){var D=(C)?this._default_headers:this._http_headers;D[B]=A;if(C){this._has_default_headers=true}else{this._has_http_headers=true}},setHeader:function(A){if(this._has_default_headers){for(var B in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,B)){A.conn.setRequestHeader(B,this._default_headers[B])}}}if(this._has_http_headers){for(var B in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,B)){A.conn.setRequestHeader(B,this._http_headers[B])}}delete this._http_headers;this._http_headers={};this._has_http_headers=false}},resetDefaultHeaders:function(){delete this._default_headers;this._default_headers={};this._has_default_headers=false},setForm:function(J,L,A){this.resetFormState();var H;if(typeof J=="string"){H=(document.getElementById(J)||document.forms[J])}else{if(typeof J=="object"){H=J}else{return }}if(L){var D=this.createFrame(A?A:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=H;return }var F,E,K,B;var I=false;for(var C=0;C<H.elements.length;C++){F=H.elements[C];B=H.elements[C].disabled;E=H.elements[C].name;K=H.elements[C].value;if(!B&&E){switch(F.type){case"select-one":case"select-multiple":for(var G=0;G<F.options.length;G++){if(F.options[G].selected){if(window.ActiveXObject){this._sFormData+=encodeURIComponent(E)+"="+encodeURIComponent(F.options[G].attributes.value.specified?F.options[G].value:F.options[G].text)+"&"}else{this._sFormData+=encodeURIComponent(E)+"="+encodeURIComponent(F.options[G].hasAttribute("value")?F.options[G].value:F.options[G].text)+"&"}}}break;case"radio":case"checkbox":if(F.checked){this._sFormData+=encodeURIComponent(E)+"="+encodeURIComponent(K)+"&"}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(I===false){if(this._hasSubmitListener&&this._submitElementValue){this._sFormData+=this._submitElementValue+"&"}else{this._sFormData+=encodeURIComponent(E)+"="+encodeURIComponent(K)+"&"}I=true}break;default:this._sFormData+=encodeURIComponent(E)+"="+encodeURIComponent(K)+"&"}}}this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);this.initHeader("Content-Type",this._default_form_header);return this._sFormData},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData=""},createFrame:function(A){var C="yuiIO"+this._transaction_id;var B;if(window.ActiveXObject){B=document.createElement('<iframe id="'+C+'" name="'+C+'" />');if(typeof A=="boolean"){B.src="javascript:false"}else{if(typeof secureURI=="string"){B.src=A}}}else{B=document.createElement("iframe");B.id=C;B.name=C}B.style.position="absolute";B.style.top="-1000px";B.style.left="-1000px";document.body.appendChild(B)},appendPostData:function(C){var A=[];var E=C.split("&");for(var D=0;D<E.length;D++){var B=E[D].indexOf("=");if(B!=-1){A[D]=document.createElement("input");A[D].type="hidden";A[D].name=E[D].substring(0,B);A[D].value=E[D].substring(B+1);this._formNode.appendChild(A[D])}}return A},uploadFile:function(D,B,O,H){var J="yuiIO"+D.tId;var F="multipart/form-data";var I=document.getElementById(J);var E=this;var A={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",O);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",J);if(this._formNode.encoding){this._formNode.setAttribute("encoding",F)}else{this._formNode.setAttribute("enctype",F)}if(H){var L=this.appendPostData(H)}this._formNode.submit();this.startEvent.fire(D);if(D.startEvent){D.startEvent.fire(D)}if(B&&B.timeout){this._timeOut[D.tId]=window.setTimeout(function(){E.abort(D,B,true)},B.timeout)}if(L&&L.length>0){for(var K=0;K<L.length;K++){this._formNode.removeChild(L[K])}}for(var G in A){if(YAHOO.lang.hasOwnProperty(A,G)){if(A[G]){this._formNode.setAttribute(G,A[G])}else{this._formNode.removeAttribute(G)}}}this.resetFormState();var C=function(){if(B&&B.timeout){window.clearTimeout(E._timeOut[D.tId]);delete E._timeOut[D.tId]}E.completeEvent.fire(D);if(D.completeEvent){D.completeEvent.fire(D)}var M={};M.tId=D.tId;M.argument=B.argument;try{M.responseText=I.contentWindow.document.body?I.contentWindow.document.body.innerHTML:I.contentWindow.document.documentElement.textContent;M.responseXML=I.contentWindow.document.XMLDocument?I.contentWindow.document.XMLDocument:I.contentWindow.document}catch(N){}if(B&&B.upload){if(!B.scope){B.upload(M)}else{B.upload.apply(B.scope,[M])}}E.uploadEvent.fire(M);if(D.uploadEvent){D.uploadEvent.fire(M)}YAHOO.util.Event.removeListener(I,"load",C);setTimeout(function(){document.body.removeChild(I);E.releaseObject(D)},100)};YAHOO.util.Event.addListener(I,"load",C)},abort:function(A,C,D){var E;if(A.conn){if(this.isCallInProgress(A)){A.conn.abort();window.clearInterval(this._poll[A.tId]);delete this._poll[A.tId];if(D){window.clearTimeout(this._timeOut[A.tId]);delete this._timeOut[A.tId]}E=true}}else{if(A.isUpload===true){var F="yuiIO"+A.tId;var B=document.getElementById(F);if(B){YAHOO.util.Event.removeListener(B,"load",uploadCallback);document.body.removeChild(B);if(D){window.clearTimeout(this._timeOut[A.tId]);delete this._timeOut[A.tId]}E=true}}else{E=false}}if(E===true){this.abortEvent.fire(A);if(A.abortEvent){A.abortEvent.fire(A)}this.handleTransactionResponse(A,C,true)}return E},isCallInProgress:function(B){if(B&&B.conn){return B.conn.readyState!==4&&B.conn.readyState!==0}else{if(B&&B.isUpload===true){var A="yuiIO"+B.tId;return document.getElementById(A)?true:false}else{return false}}},releaseObject:function(A){if(A.conn){A.conn=null}A=null}};YAHOO.register("connection",YAHOO.util.Connect,{version:"2.3.1",build:"541"});YAHOO.widget.AutoComplete=function(R,M,O,K){if(R&&M&&O){if(O instanceof YAHOO.widget.DataSource){this.dataSource=O}else{return }if(YAHOO.util.Dom.inDocument(R)){if(YAHOO.lang.isString(R)){this._sName="instance"+YAHOO.widget.AutoComplete._nIndex+" "+R;this._oTextbox=document.getElementById(R)}else{this._sName=(R.id)?"instance"+YAHOO.widget.AutoComplete._nIndex+" "+R.id:"instance"+YAHOO.widget.AutoComplete._nIndex;this._oTextbox=R}YAHOO.util.Dom.addClass(this._oTextbox,"yui-ac-input")}else{return }if(YAHOO.util.Dom.inDocument(M)){if(YAHOO.lang.isString(M)){this._oContainer=document.getElementById(M)}else{this._oContainer=M}if(this._oContainer.style.display=="none"){}var T=this._oContainer.parentNode;var N=T.tagName.toLowerCase();if(N=="div"){YAHOO.util.Dom.addClass(T,"yui-ac")}else{}}else{return }if(K&&(K.constructor==Object)){for(var P in K){if(P){this[P]=K[P]}}}this._initContainer();this._initProps();this._initList();this._initContainerHelpers();var Q=this;var S=this._oTextbox;var L=this._oContainer._oContent;YAHOO.util.Event.addListener(S,"keyup",Q._onTextboxKeyUp,Q);YAHOO.util.Event.addListener(S,"keydown",Q._onTextboxKeyDown,Q);YAHOO.util.Event.addListener(S,"focus",Q._onTextboxFocus,Q);YAHOO.util.Event.addListener(S,"blur",Q._onTextboxBlur,Q);YAHOO.util.Event.addListener(L,"mouseover",Q._onContainerMouseover,Q);YAHOO.util.Event.addListener(L,"mouseout",Q._onContainerMouseout,Q);YAHOO.util.Event.addListener(L,"scroll",Q._onContainerScroll,Q);YAHOO.util.Event.addListener(L,"resize",Q._onContainerResize,Q);if(S.form){YAHOO.util.Event.addListener(S.form,"submit",Q._onFormSubmit,Q)}YAHOO.util.Event.addListener(S,"keypress",Q._onTextboxKeyPress,Q);this.textboxFocusEvent=new YAHOO.util.CustomEvent("textboxFocus",this);this.textboxKeyEvent=new YAHOO.util.CustomEvent("textboxKey",this);this.dataRequestEvent=new YAHOO.util.CustomEvent("dataRequest",this);this.dataReturnEvent=new YAHOO.util.CustomEvent("dataReturn",this);this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this);this.containerExpandEvent=new YAHOO.util.CustomEvent("containerExpand",this);this.typeAheadEvent=new YAHOO.util.CustomEvent("typeAhead",this);this.itemMouseOverEvent=new YAHOO.util.CustomEvent("itemMouseOver",this);this.itemMouseOutEvent=new YAHOO.util.CustomEvent("itemMouseOut",this);this.itemArrowToEvent=new YAHOO.util.CustomEvent("itemArrowTo",this);this.itemArrowFromEvent=new YAHOO.util.CustomEvent("itemArrowFrom",this);this.itemSelectEvent=new YAHOO.util.CustomEvent("itemSelect",this);this.unmatchedItemSelectEvent=new YAHOO.util.CustomEvent("unmatchedItemSelect",this);this.selectionEnforceEvent=new YAHOO.util.CustomEvent("selectionEnforce",this);this.containerCollapseEvent=new YAHOO.util.CustomEvent("containerCollapse",this);this.textboxBlurEvent=new YAHOO.util.CustomEvent("textboxBlur",this);S.setAttribute("autocomplete","off");YAHOO.widget.AutoComplete._nIndex++}else{}};YAHOO.widget.AutoComplete.prototype.dataSource=null;YAHOO.widget.AutoComplete.prototype.minQueryLength=1;YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed=10;YAHOO.widget.AutoComplete.prototype.queryDelay=0.2;YAHOO.widget.AutoComplete.prototype.highlightClassName="yui-ac-highlight";YAHOO.widget.AutoComplete.prototype.prehighlightClassName=null;YAHOO.widget.AutoComplete.prototype.delimChar=null;YAHOO.widget.AutoComplete.prototype.autoHighlight=true;YAHOO.widget.AutoComplete.prototype.typeAhead=false;YAHOO.widget.AutoComplete.prototype.animHoriz=false;YAHOO.widget.AutoComplete.prototype.animVert=true;YAHOO.widget.AutoComplete.prototype.animSpeed=0.3;YAHOO.widget.AutoComplete.prototype.forceSelection=false;YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete=true;YAHOO.widget.AutoComplete.prototype.alwaysShowContainer=false;YAHOO.widget.AutoComplete.prototype.useIFrame=false;YAHOO.widget.AutoComplete.prototype.useShadow=false;YAHOO.widget.AutoComplete.prototype.toString=function(){return"AutoComplete "+this._sName};YAHOO.widget.AutoComplete.prototype.isContainerOpen=function(){return this._bContainerOpen};YAHOO.widget.AutoComplete.prototype.getListItems=function(){return this._aListItems};YAHOO.widget.AutoComplete.prototype.getListItemData=function(B){if(B._oResultData){return B._oResultData}else{return false}};YAHOO.widget.AutoComplete.prototype.setHeader=function(B){if(B){if(this._oContainer._oContent._oHeader){this._oContainer._oContent._oHeader.innerHTML=B;this._oContainer._oContent._oHeader.style.display="block"}}else{this._oContainer._oContent._oHeader.innerHTML="";this._oContainer._oContent._oHeader.style.display="none"}};YAHOO.widget.AutoComplete.prototype.setFooter=function(B){if(B){if(this._oContainer._oContent._oFooter){this._oContainer._oContent._oFooter.innerHTML=B;this._oContainer._oContent._oFooter.style.display="block"}}else{this._oContainer._oContent._oFooter.innerHTML="";this._oContainer._oContent._oFooter.style.display="none"}};YAHOO.widget.AutoComplete.prototype.setBody=function(B){if(B){if(this._oContainer._oContent._oBody){this._oContainer._oContent._oBody.innerHTML=B;this._oContainer._oContent._oBody.style.display="block";this._oContainer._oContent.style.display="block"}}else{this._oContainer._oContent._oBody.innerHTML="";this._oContainer._oContent.style.display="none"}this._maxResultsDisplayed=0};YAHOO.widget.AutoComplete.prototype.formatResult=function(F,E){var D=F[0];if(D){return D}else{return""}};YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer=function(E,H,F,G){return true};YAHOO.widget.AutoComplete.prototype.sendQuery=function(B){this._sendQuery(B)};YAHOO.widget.AutoComplete.prototype.doBeforeSendQuery=function(B){return B};YAHOO.widget.AutoComplete.prototype.destroy=function(){var H=this.toString();var E=this._oTextbox;var F=this._oContainer;this.textboxFocusEvent.unsubscribe();this.textboxKeyEvent.unsubscribe();this.dataRequestEvent.unsubscribe();this.dataReturnEvent.unsubscribe();this.dataErrorEvent.unsubscribe();this.containerExpandEvent.unsubscribe();this.typeAheadEvent.unsubscribe();this.itemMouseOverEvent.unsubscribe();this.itemMouseOutEvent.unsubscribe();this.itemArrowToEvent.unsubscribe();this.itemArrowFromEvent.unsubscribe();this.itemSelectEvent.unsubscribe();this.unmatchedItemSelectEvent.unsubscribe();this.selectionEnforceEvent.unsubscribe();this.containerCollapseEvent.unsubscribe();this.textboxBlurEvent.unsubscribe();YAHOO.util.Event.purgeElement(E,true);YAHOO.util.Event.purgeElement(F,true);F.innerHTML="";for(var G in this){if(YAHOO.lang.hasOwnProperty(this,G)){this[G]=null}}};YAHOO.widget.AutoComplete.prototype.textboxFocusEvent=null;YAHOO.widget.AutoComplete.prototype.textboxKeyEvent=null;YAHOO.widget.AutoComplete.prototype.dataRequestEvent=null;YAHOO.widget.AutoComplete.prototype.dataReturnEvent=null;YAHOO.widget.AutoComplete.prototype.dataErrorEvent=null;YAHOO.widget.AutoComplete.prototype.containerExpandEvent=null;YAHOO.widget.AutoComplete.prototype.typeAheadEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowToEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent=null;YAHOO.widget.AutoComplete.prototype.itemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent=null;YAHOO.widget.AutoComplete.prototype.containerCollapseEvent=null;YAHOO.widget.AutoComplete.prototype.textboxBlurEvent=null;YAHOO.widget.AutoComplete._nIndex=0;YAHOO.widget.AutoComplete.prototype._sName=null;YAHOO.widget.AutoComplete.prototype._oTextbox=null;YAHOO.widget.AutoComplete.prototype._bFocused=true;YAHOO.widget.AutoComplete.prototype._oAnim=null;YAHOO.widget.AutoComplete.prototype._oContainer=null;YAHOO.widget.AutoComplete.prototype._bContainerOpen=false;YAHOO.widget.AutoComplete.prototype._bOverContainer=false;YAHOO.widget.AutoComplete.prototype._aListItems=null;YAHOO.widget.AutoComplete.prototype._nDisplayedItems=0;YAHOO.widget.AutoComplete.prototype._maxResultsDisplayed=0;YAHOO.widget.AutoComplete.prototype._sCurQuery=null;YAHOO.widget.AutoComplete.prototype._sSavedQuery=null;YAHOO.widget.AutoComplete.prototype._oCurItem=null;YAHOO.widget.AutoComplete.prototype._bItemSelected=false;YAHOO.widget.AutoComplete.prototype._nKeyCode=null;YAHOO.widget.AutoComplete.prototype._nDelayID=-1;YAHOO.widget.AutoComplete.prototype._iFrameSrc="javascript:false;";YAHOO.widget.AutoComplete.prototype._queryInterval=null;YAHOO.widget.AutoComplete.prototype._sLastTextboxValue=null;YAHOO.widget.AutoComplete.prototype._initProps=function(){var J=this.minQueryLength;if(!YAHOO.lang.isNumber(J)){this.minQueryLength=1}var H=this.maxResultsDisplayed;if(!YAHOO.lang.isNumber(H)||(H<1)){this.maxResultsDisplayed=10}var G=this.queryDelay;if(!YAHOO.lang.isNumber(G)||(G<0)){this.queryDelay=0.2}var F=this.delimChar;if(YAHOO.lang.isString(F)&&(F.length>0)){this.delimChar=[F]}else{if(!YAHOO.lang.isArray(F)){this.delimChar=null}}var I=this.animSpeed;if((this.animHoriz||this.animVert)&&YAHOO.util.Anim){if(!YAHOO.lang.isNumber(I)||(I<0)){this.animSpeed=0.3}if(!this._oAnim){this._oAnim=new YAHOO.util.Anim(this._oContainer._oContent,{},this.animSpeed)}else{this._oAnim.duration=this.animSpeed}}if(this.forceSelection&&F){}};YAHOO.widget.AutoComplete.prototype._initContainerHelpers=function(){if(this.useShadow&&!this._oContainer._oShadow){var D=document.createElement("div");D.className="yui-ac-shadow";this._oContainer._oShadow=this._oContainer.appendChild(D)}if(this.useIFrame&&!this._oContainer._oIFrame){var C=document.createElement("iframe");C.src=this._iFrameSrc;C.frameBorder=0;C.scrolling="no";C.style.position="absolute";C.style.width="100%";C.style.height="100%";C.tabIndex=-1;this._oContainer._oIFrame=this._oContainer.appendChild(C)}};YAHOO.widget.AutoComplete.prototype._initContainer=function(){YAHOO.util.Dom.addClass(this._oContainer,"yui-ac-container");if(!this._oContainer._oContent){var F=document.createElement("div");F.className="yui-ac-content";F.style.display="none";this._oContainer._oContent=this._oContainer.appendChild(F);var H=document.createElement("div");H.className="yui-ac-hd";H.style.display="none";this._oContainer._oContent._oHeader=this._oContainer._oContent.appendChild(H);var G=document.createElement("div");G.className="yui-ac-bd";this._oContainer._oContent._oBody=this._oContainer._oContent.appendChild(G);var E=document.createElement("div");E.className="yui-ac-ft";E.style.display="none";this._oContainer._oContent._oFooter=this._oContainer._oContent.appendChild(E)}else{}};YAHOO.widget.AutoComplete.prototype._initList=function(){this._aListItems=[];while(this._oContainer._oContent._oBody.hasChildNodes()){var J=this.getListItems();if(J){for(var F=J.length-1;F>=0;F--){J[F]=null}}this._oContainer._oContent._oBody.innerHTML=""}var G=document.createElement("ul");G=this._oContainer._oContent._oBody.appendChild(G);for(var I=0;I<this.maxResultsDisplayed;I++){var H=document.createElement("li");H=G.appendChild(H);this._aListItems[I]=H;this._initListItem(H,I)}this._maxResultsDisplayed=this.maxResultsDisplayed};YAHOO.widget.AutoComplete.prototype._initListItem=function(E,F){var D=this;E.style.display="none";E._nItemIndex=F;E.mouseover=E.mouseout=E.onclick=null;YAHOO.util.Event.addListener(E,"mouseover",D._onItemMouseover,D);YAHOO.util.Event.addListener(E,"mouseout",D._onItemMouseout,D);YAHOO.util.Event.addListener(E,"click",D._onItemMouseclick,D)};YAHOO.widget.AutoComplete.prototype._onIMEDetected=function(B){B._enableIntervalDetection()};YAHOO.widget.AutoComplete.prototype._enableIntervalDetection=function(){var C=this._oTextbox.value;var D=this._sLastTextboxValue;if(C!=D){this._sLastTextboxValue=C;this._sendQuery(C)}};YAHOO.widget.AutoComplete.prototype._cancelIntervalDetection=function(B){if(B._queryInterval){clearInterval(B._queryInterval)}};YAHOO.widget.AutoComplete.prototype._isIgnoreKey=function(B){if((B==9)||(B==13)||(B==16)||(B==17)||(B>=18&&B<=20)||(B==27)||(B>=33&&B<=35)||(B>=36&&B<=40)||(B>=44&&B<=45)){return true}return false};YAHOO.widget.AutoComplete.prototype._sendQuery=function(I){if(this.minQueryLength==-1){this._toggleContainer(false);return }var M=(this.delimChar)?this.delimChar:null;if(M){var K=-1;for(var N=M.length-1;N>=0;N--){var J=I.lastIndexOf(M[N]);if(J>K){K=J}}if(M[N]==" "){for(var H=M.length-1;H>=0;H--){if(I[K-1]==M[H]){K--;break}}}if(K>-1){var L=K+1;while(I.charAt(L)==" "){L+=1}this._sSavedQuery=I.substring(0,L);I=I.substr(L)}else{if(I.indexOf(this._sSavedQuery)<0){this._sSavedQuery=null}}}if((I&&(I.length<this.minQueryLength))||(!I&&this.minQueryLength>0)){if(this._nDelayID!=-1){clearTimeout(this._nDelayID)}this._toggleContainer(false);return }I=encodeURIComponent(I);this._nDelayID=-1;I=this.doBeforeSendQuery(I);this.dataRequestEvent.fire(this,I);this.dataSource.getResults(this._populateList,I,this)};YAHOO.widget.AutoComplete.prototype._populateList=function(X,W,Z){if(W===null){Z.dataErrorEvent.fire(Z,X)}if(!Z._bFocused||!W){return }var S=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);var T=Z._oContainer._oContent.style;T.width=(!S)?null:"";T.height=(!S)?null:"";var a=decodeURIComponent(X);Z._sCurQuery=a;Z._bItemSelected=false;if(Z._maxResultsDisplayed!=Z.maxResultsDisplayed){Z._initList()}var Q=Math.min(W.length,Z.maxResultsDisplayed);Z._nDisplayedItems=Q;if(Q>0){Z._initContainerHelpers();var P=Z._aListItems;for(var b=Q-1;b>=0;b--){var U=P[b];var R=W[b];U.innerHTML=Z.formatResult(R,a);U.style.display="list-item";U._sResultKey=R[0];U._oResultData=R}for(var d=P.length-1;d>=Q;d--){var V=P[d];V.innerHTML=null;V.style.display="none";V._sResultKey=null;V._oResultData=null}var Y=Z.doBeforeExpandContainer(Z._oTextbox,Z._oContainer,X,W);Z._toggleContainer(Y);if(Z.autoHighlight){var f=P[0];Z._toggleHighlight(f,"to");Z.itemArrowToEvent.fire(Z,f);Z._typeAhead(f,X)}else{Z._oCurItem=null}}else{Z._toggleContainer(false)}Z.dataReturnEvent.fire(Z,X,W)};YAHOO.widget.AutoComplete.prototype._clearSelection=function(){var E=this._oTextbox.value;var F=(this.delimChar)?this.delimChar[0]:null;var D=(F)?E.lastIndexOf(F,E.length-2):-1;if(D>-1){this._oTextbox.value=E.substring(0,D)}else{this._oTextbox.value=""}this._sSavedQuery=this._oTextbox.value;this.selectionEnforceEvent.fire(this)};YAHOO.widget.AutoComplete.prototype._textMatchesOption=function(){var F=null;for(var E=this._nDisplayedItems-1;E>=0;E--){var G=this._aListItems[E];var H=G._sResultKey.toLowerCase();if(H==this._sCurQuery.toLowerCase()){F=G;break}}return(F)};YAHOO.widget.AutoComplete.prototype._typeAhead=function(K,I){if(!this.typeAhead||(this._nKeyCode==8)){return }var N=this._oTextbox;var J=this._oTextbox.value;if(!N.setSelectionRange&&!N.createTextRange){return }var M=J.length;this._updateValue(K);var L=N.value.length;this._selectText(N,M,L);var H=N.value.substr(M,L);this.typeAheadEvent.fire(this,I,H)};YAHOO.widget.AutoComplete.prototype._selectText=function(E,H,G){if(E.setSelectionRange){E.setSelectionRange(H,G)}else{if(E.createTextRange){var F=E.createTextRange();F.moveStart("character",H);F.moveEnd("character",G-E.value.length);F.select()}else{E.select()}}};YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers=function(H){var F=false;var G=this._oContainer._oContent.offsetWidth+"px";var E=this._oContainer._oContent.offsetHeight+"px";if(this.useIFrame&&this._oContainer._oIFrame){F=true;if(H){this._oContainer._oIFrame.style.width=G;this._oContainer._oIFrame.style.height=E}else{this._oContainer._oIFrame.style.width=0;this._oContainer._oIFrame.style.height=0}}if(this.useShadow&&this._oContainer._oShadow){F=true;if(H){this._oContainer._oShadow.style.width=G;this._oContainer._oShadow.style.height=E}else{this._oContainer._oShadow.style.width=0;this._oContainer._oShadow.style.height=0}}};YAHOO.widget.AutoComplete.prototype._toggleContainer=function(S){var Q=this._oContainer;if(this.alwaysShowContainer&&this._bContainerOpen){return }if(!S){this._oContainer._oContent.scrollTop=0;var N=this._aListItems;if(N&&(N.length>0)){for(var V=N.length-1;V>=0;V--){N[V].style.display="none"}}if(this._oCurItem){this._toggleHighlight(this._oCurItem,"from")}this._oCurItem=null;this._nDisplayedItems=0;this._sCurQuery=null}if(!S&&!this._bContainerOpen){Q._oContent.style.display="none";return }var O=this._oAnim;if(O&&O.getEl()&&(this.animHoriz||this.animVert)){if(!S){this._toggleContainerHelpers(S)}if(O.isAnimated()){O.stop()}var U=Q._oContent.cloneNode(true);Q.appendChild(U);U.style.top="-9000px";U.style.display="block";var W=U.offsetWidth;var M=U.offsetHeight;var P=(this.animHoriz)?0:W;var X=(this.animVert)?0:M;O.attributes=(S)?{width:{to:W},height:{to:M}}:{width:{to:P},height:{to:X}};if(S&&!this._bContainerOpen){Q._oContent.style.width=P+"px";Q._oContent.style.height=X+"px"}else{Q._oContent.style.width=W+"px";Q._oContent.style.height=M+"px"}Q.removeChild(U);U=null;var T=this;var R=function(){O.onComplete.unsubscribeAll();if(S){T.containerExpandEvent.fire(T)}else{Q._oContent.style.display="none";T.containerCollapseEvent.fire(T)}T._toggleContainerHelpers(S)};Q._oContent.style.display="block";O.onComplete.subscribe(R);O.animate();this._bContainerOpen=S}else{if(S){Q._oContent.style.display="block";this.containerExpandEvent.fire(this)}else{Q._oContent.style.display="none";this.containerCollapseEvent.fire(this)}this._toggleContainerHelpers(S);this._bContainerOpen=S}};YAHOO.widget.AutoComplete.prototype._toggleHighlight=function(D,E){var F=this.highlightClassName;if(this._oCurItem){YAHOO.util.Dom.removeClass(this._oCurItem,F)}if((E=="to")&&F){YAHOO.util.Dom.addClass(D,F);this._oCurItem=D}};YAHOO.widget.AutoComplete.prototype._togglePrehighlight=function(D,E){if(D==this._oCurItem){return }var F=this.prehighlightClassName;if((E=="mouseover")&&F){YAHOO.util.Dom.addClass(D,F)}else{YAHOO.util.Dom.removeClass(D,F)}};YAHOO.widget.AutoComplete.prototype._updateValue=function(H){var K=this._oTextbox;var I=(this.delimChar)?(this.delimChar[0]||this.delimChar):null;var L=this._sSavedQuery;var J=H._sResultKey;K.focus();K.value="";if(I){if(L){K.value=L}K.value+=J+I;if(I!=" "){K.value+=" "}}else{K.value=J}if(K.type=="textarea"){K.scrollTop=K.scrollHeight}var G=K.value.length;this._selectText(K,G,G);this._oCurItem=H};YAHOO.widget.AutoComplete.prototype._selectItem=function(B){this._bItemSelected=true;this._updateValue(B);this._cancelIntervalDetection(this);this.itemSelectEvent.fire(this,B,B._oResultData);this._toggleContainer(false)};YAHOO.widget.AutoComplete.prototype._jumpSelection=function(){if(this._oCurItem){this._selectItem(this._oCurItem)}else{this._toggleContainer(false)}};YAHOO.widget.AutoComplete.prototype._moveSelection=function(I){if(this._bContainerOpen){var L=this._oCurItem;var J=-1;if(L){J=L._nItemIndex}var M=(I==40)?(J+1):(J-1);if(M<-2||M>=this._nDisplayedItems){return }if(L){this._toggleHighlight(L,"from");this.itemArrowFromEvent.fire(this,L)}if(M==-1){if(this.delimChar&&this._sSavedQuery){if(!this._textMatchesOption()){this._oTextbox.value=this._sSavedQuery}else{this._oTextbox.value=this._sSavedQuery+this._sCurQuery}}else{this._oTextbox.value=this._sCurQuery}this._oCurItem=null;return }if(M==-2){this._toggleContainer(false);return }var N=this._aListItems[M];var K=this._oContainer._oContent;var H=((YAHOO.util.Dom.getStyle(K,"overflow")=="auto")||(YAHOO.util.Dom.getStyle(K,"overflowY")=="auto"));if(H&&(M>-1)&&(M<this._nDisplayedItems)){if(I==40){if((N.offsetTop+N.offsetHeight)>(K.scrollTop+K.offsetHeight)){K.scrollTop=(N.offsetTop+N.offsetHeight)-K.offsetHeight}else{if((N.offsetTop+N.offsetHeight)<K.scrollTop){K.scrollTop=N.offsetTop}}}else{if(N.offsetTop<K.scrollTop){this._oContainer._oContent.scrollTop=N.offsetTop}else{if(N.offsetTop>(K.scrollTop+K.offsetHeight)){this._oContainer._oContent.scrollTop=(N.offsetTop+N.offsetHeight)-K.offsetHeight}}}}this._toggleHighlight(N,"to");this.itemArrowToEvent.fire(this,N);if(this.typeAhead){this._updateValue(N)}}};YAHOO.widget.AutoComplete.prototype._onItemMouseover=function(C,D){if(D.prehighlightClassName){D._togglePrehighlight(this,"mouseover")}else{D._toggleHighlight(this,"to")}D.itemMouseOverEvent.fire(D,this)};YAHOO.widget.AutoComplete.prototype._onItemMouseout=function(C,D){if(D.prehighlightClassName){D._togglePrehighlight(this,"mouseout")}else{D._toggleHighlight(this,"from")}D.itemMouseOutEvent.fire(D,this)};YAHOO.widget.AutoComplete.prototype._onItemMouseclick=function(C,D){D._toggleHighlight(this,"to");D._selectItem(this)};YAHOO.widget.AutoComplete.prototype._onContainerMouseover=function(C,D){D._bOverContainer=true};YAHOO.widget.AutoComplete.prototype._onContainerMouseout=function(C,D){D._bOverContainer=false;if(D._oCurItem){D._toggleHighlight(D._oCurItem,"to")}};YAHOO.widget.AutoComplete.prototype._onContainerScroll=function(C,D){D._oTextbox.focus()};YAHOO.widget.AutoComplete.prototype._onContainerResize=function(C,D){D._toggleContainerHelpers(D._bContainerOpen)};YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown=function(D,F){var E=D.keyCode;switch(E){case 9:if(F._oCurItem){if(F.delimChar&&(F._nKeyCode!=E)){if(F._bContainerOpen){YAHOO.util.Event.stopEvent(D)}}F._selectItem(F._oCurItem)}else{F._toggleContainer(false)}break;case 13:if(F._oCurItem){if(F._nKeyCode!=E){if(F._bContainerOpen){YAHOO.util.Event.stopEvent(D)}}F._selectItem(F._oCurItem)}else{F._toggleContainer(false)}break;case 27:F._toggleContainer(false);return ;case 39:F._jumpSelection();break;case 38:YAHOO.util.Event.stopEvent(D);F._moveSelection(E);break;case 40:YAHOO.util.Event.stopEvent(D);F._moveSelection(E);break;default:break}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress=function(E,G){var F=E.keyCode;var H=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1);if(H){switch(F){case 9:if(G._oCurItem){if(G.delimChar&&(G._nKeyCode!=F)){YAHOO.util.Event.stopEvent(E)}}break;case 13:if(G._oCurItem){if(G._nKeyCode!=F){if(G._bContainerOpen){YAHOO.util.Event.stopEvent(E)}}}break;case 38:case 40:YAHOO.util.Event.stopEvent(E);break;default:break}}else{if(F==229){G._queryInterval=setInterval(function(){G._onIMEDetected(G)},500)}}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp=function(J,H){H._initProps();var G=J.keyCode;H._nKeyCode=G;var I=this.value;if(H._isIgnoreKey(G)||(I.toLowerCase()==H._sCurQuery)){return }else{H._bItemSelected=false;YAHOO.util.Dom.removeClass(H._oCurItem,H.highlightClassName);H._oCurItem=null;H.textboxKeyEvent.fire(H,G)}if(H.queryDelay>0){var F=setTimeout(function(){H._sendQuery(I)},(H.queryDelay*1000));if(H._nDelayID!=-1){clearTimeout(H._nDelayID)}H._nDelayID=F}else{H._sendQuery(I)}};YAHOO.widget.AutoComplete.prototype._onTextboxFocus=function(C,D){D._oTextbox.setAttribute("autocomplete","off");D._bFocused=true;if(!D._bItemSelected){D.textboxFocusEvent.fire(D)}};YAHOO.widget.AutoComplete.prototype._onTextboxBlur=function(D,F){if(!F._bOverContainer||(F._nKeyCode==9)){if(!F._bItemSelected){var E=F._textMatchesOption();if(!F._bContainerOpen||(F._bContainerOpen&&(E===null))){if(F.forceSelection){F._clearSelection()}else{F.unmatchedItemSelectEvent.fire(F)}}else{if(F.forceSelection){F._selectItem(E)}}}if(F._bContainerOpen){F._toggleContainer(false)}F._cancelIntervalDetection(F);F._bFocused=false;F.textboxBlurEvent.fire(F)}};YAHOO.widget.AutoComplete.prototype._onFormSubmit=function(C,D){if(D.allowBrowserAutocomplete){D._oTextbox.setAttribute("autocomplete","on")}else{D._oTextbox.setAttribute("autocomplete","off")}};YAHOO.widget.DataSource=function(){};YAHOO.widget.DataSource.ERROR_DATANULL="Response data was null";YAHOO.widget.DataSource.ERROR_DATAPARSE="Response data could not be parsed";YAHOO.widget.DataSource.prototype.maxCacheEntries=15;YAHOO.widget.DataSource.prototype.queryMatchContains=false;YAHOO.widget.DataSource.prototype.queryMatchSubset=false;YAHOO.widget.DataSource.prototype.queryMatchCase=false;YAHOO.widget.DataSource.prototype.toString=function(){return"DataSource "+this._sName};YAHOO.widget.DataSource.prototype.getResults=function(E,F,H){var G=this._doQueryCache(E,F,H);if(G.length===0){this.queryEvent.fire(this,H,F);this.doQuery(E,F,H)}};YAHOO.widget.DataSource.prototype.doQuery=function(D,E,F){};YAHOO.widget.DataSource.prototype.flushCache=function(){if(this._aCache){this._aCache=[]}if(this._aCacheHelper){this._aCacheHelper=[]}this.cacheFlushEvent.fire(this)};YAHOO.widget.DataSource.prototype.queryEvent=null;YAHOO.widget.DataSource.prototype.cacheQueryEvent=null;YAHOO.widget.DataSource.prototype.getResultsEvent=null;YAHOO.widget.DataSource.prototype.getCachedResultsEvent=null;YAHOO.widget.DataSource.prototype.dataErrorEvent=null;YAHOO.widget.DataSource.prototype.cacheFlushEvent=null;YAHOO.widget.DataSource._nIndex=0;YAHOO.widget.DataSource.prototype._sName=null;YAHOO.widget.DataSource.prototype._aCache=null;YAHOO.widget.DataSource.prototype._init=function(){var B=this.maxCacheEntries;if(!YAHOO.lang.isNumber(B)||(B<0)){B=0}if(B>0&&!this._aCache){this._aCache=[]}this._sName="instance"+YAHOO.widget.DataSource._nIndex;YAHOO.widget.DataSource._nIndex++;this.queryEvent=new YAHOO.util.CustomEvent("query",this);this.cacheQueryEvent=new YAHOO.util.CustomEvent("cacheQuery",this);this.getResultsEvent=new YAHOO.util.CustomEvent("getResults",this);this.getCachedResultsEvent=new YAHOO.util.CustomEvent("getCachedResults",this);this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this);this.cacheFlushEvent=new YAHOO.util.CustomEvent("cacheFlush",this)};YAHOO.widget.DataSource.prototype._addCacheElem=function(D){var C=this._aCache;if(!C||!D||!D.query||!D.results){return }if(C.length>=this.maxCacheEntries){C.shift()}C.push(D)};YAHOO.widget.DataSource.prototype._doQueryCache=function(m,b,W){var d=[];var f=false;var a=this._aCache;var g=(a)?a.length:0;var Z=this.queryMatchContains;var j;if((this.maxCacheEntries>0)&&a&&(g>0)){this.cacheQueryEvent.fire(this,W,b);if(!this.queryMatchCase){j=b;b=b.toLowerCase()}for(var U=g-1;U>=0;U--){var h=a[U];var l=h.results;var k=(!this.queryMatchCase)?encodeURIComponent(h.query).toLowerCase():encodeURIComponent(h.query);if(k==b){f=true;d=l;if(U!=g-1){a.splice(U,1);this._addCacheElem(h)}break}else{if(this.queryMatchSubset){for(var V=b.length-1;V>=0;V--){var S=b.substr(0,V);if(k==S){f=true;for(var X=l.length-1;X>=0;X--){var T=l[X];var Y=(this.queryMatchCase)?encodeURIComponent(T[0]).indexOf(b):encodeURIComponent(T[0]).toLowerCase().indexOf(b);if((!Z&&(Y===0))||(Z&&(Y>-1))){d.unshift(T)}}h={};h.query=b;h.results=d;this._addCacheElem(h);break}}if(f){break}}}}if(f){this.getCachedResultsEvent.fire(this,W,j,d);m(j,d,W)}}return d};YAHOO.widget.DS_XHR=function(G,E,F){if(F&&(F.constructor==Object)){for(var H in F){this[H]=F[H]}}if(!YAHOO.lang.isArray(E)||!YAHOO.lang.isString(G)){return }this.schema=E;this.scriptURI=G;this._init()};YAHOO.widget.DS_XHR.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_XHR.TYPE_JSON=0;YAHOO.widget.DS_XHR.TYPE_XML=1;YAHOO.widget.DS_XHR.TYPE_FLAT=2;YAHOO.widget.DS_XHR.ERROR_DATAXHR="XHR response failed";YAHOO.widget.DS_XHR.prototype.connMgr=YAHOO.util.Connect;YAHOO.widget.DS_XHR.prototype.connTimeout=0;YAHOO.widget.DS_XHR.prototype.scriptURI=null;YAHOO.widget.DS_XHR.prototype.scriptQueryParam="query";YAHOO.widget.DS_XHR.prototype.scriptQueryAppend="";YAHOO.widget.DS_XHR.prototype.responseType=YAHOO.widget.DS_XHR.TYPE_JSON;YAHOO.widget.DS_XHR.prototype.responseStripAfter="\n<!-";YAHOO.widget.DS_XHR.prototype.doQuery=function(T,R,M){var O=(this.responseType==YAHOO.widget.DS_XHR.TYPE_XML);var K=this.scriptURI+"?"+this.scriptQueryParam+"="+R;if(this.scriptQueryAppend.length>0){K+="&"+this.scriptQueryAppend}var L=null;var S=this;var P=function(B){if(!S._oConn||(B.tId!=S._oConn.tId)){S.dataErrorEvent.fire(S,M,R,YAHOO.widget.DataSource.ERROR_DATANULL);return }for(var C in B){}if(!O){B=B.responseText}else{B=B.responseXML}if(B===null){S.dataErrorEvent.fire(S,M,R,YAHOO.widget.DataSource.ERROR_DATANULL);return }var D=S.parseResponse(R,B,M);var A={};A.query=decodeURIComponent(R);A.results=D;if(D===null){S.dataErrorEvent.fire(S,M,R,YAHOO.widget.DataSource.ERROR_DATAPARSE);D=[]}else{S.getResultsEvent.fire(S,M,R,D);S._addCacheElem(A)}T(R,D,M)};var N=function(A){S.dataErrorEvent.fire(S,M,R,YAHOO.widget.DS_XHR.ERROR_DATAXHR);return };var Q={success:P,failure:N};if(YAHOO.lang.isNumber(this.connTimeout)&&(this.connTimeout>0)){Q.timeout=this.connTimeout}if(this._oConn){this.connMgr.abort(this._oConn)}S._oConn=this.connMgr.asyncRequest("GET",K,Q,null)};YAHOO.widget.DS_XHR.prototype.parseResponse=function(sQuery,oResponse,oParent){var aSchema=this.schema;var aResults=[];var bError=false;var nEnd=((this.responseStripAfter!=="")&&(oResponse.indexOf))?oResponse.indexOf(this.responseStripAfter):-1;if(nEnd!=-1){oResponse=oResponse.substring(0,nEnd)}switch(this.responseType){case YAHOO.widget.DS_XHR.TYPE_JSON:var jsonList,jsonObjParsed;var isNotMac=(navigator.userAgent.toLowerCase().indexOf("khtml")==-1);if(oResponse.parseJSON&&isNotMac){jsonObjParsed=oResponse.parseJSON();if(!jsonObjParsed){bError=true}else{try{jsonList=eval("jsonObjParsed."+aSchema[0])}catch(e){bError=true;break}}}else{if(window.JSON&&isNotMac){jsonObjParsed=JSON.parse(oResponse);if(!jsonObjParsed){bError=true;break}else{try{jsonList=eval("jsonObjParsed."+aSchema[0])}catch(e){bError=true;break}}}else{try{while(oResponse.substring(0,1)==" "){oResponse=oResponse.substring(1,oResponse.length)}if(oResponse.indexOf("{")<0){bError=true;break}if(oResponse.indexOf("{}")===0){break}var jsonObjRaw=eval("("+oResponse+")");if(!jsonObjRaw){bError=true;break}jsonList=eval("(jsonObjRaw."+aSchema[0]+")")}catch(e){bError=true;break}}}if(!jsonList){bError=true;break}if(!YAHOO.lang.isArray(jsonList)){jsonList=[jsonList]}for(var i=jsonList.length-1;i>=0;i--){var aResultItem=[];var jsonResult=jsonList[i];for(var j=aSchema.length-1;j>=1;j--){var dataFieldValue=jsonResult[aSchema[j]];if(!dataFieldValue){dataFieldValue=""}aResultItem.unshift(dataFieldValue)}if(aResultItem.length==1){aResultItem.push(jsonResult)}aResults.unshift(aResultItem)}break;case YAHOO.widget.DS_XHR.TYPE_XML:var xmlList=oResponse.getElementsByTagName(aSchema[0]);if(!xmlList){bError=true;break}for(var k=xmlList.length-1;k>=0;k--){var result=xmlList.item(k);var aFieldSet=[];for(var m=aSchema.length-1;m>=1;m--){var sValue=null;var xmlAttr=result.attributes.getNamedItem(aSchema[m]);if(xmlAttr){sValue=xmlAttr.value}else{var xmlNode=result.getElementsByTagName(aSchema[m]);if(xmlNode&&xmlNode.item(0)&&xmlNode.item(0).firstChild){sValue=xmlNode.item(0).firstChild.nodeValue}else{sValue=""}}aFieldSet.unshift(sValue)}aResults.unshift(aFieldSet)}break;case YAHOO.widget.DS_XHR.TYPE_FLAT:if(oResponse.length>0){var newLength=oResponse.length-aSchema[0].length;if(oResponse.substr(newLength)==aSchema[0]){oResponse=oResponse.substr(0,newLength)}var aRecords=oResponse.split(aSchema[0]);for(var n=aRecords.length-1;n>=0;n--){aResults[n]=aRecords[n].split(aSchema[1])}}break;default:break}sQuery=null;oResponse=null;oParent=null;if(bError){return null}else{return aResults}};YAHOO.widget.DS_XHR.prototype._oConn=null;YAHOO.widget.DS_JSFunction=function(D,E){if(E&&(E.constructor==Object)){for(var F in E){this[F]=E[F]}}if(!YAHOO.lang.isFunction(D)){return }else{this.dataFunction=D;this._init()}};YAHOO.widget.DS_JSFunction.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_JSFunction.prototype.dataFunction=null;YAHOO.widget.DS_JSFunction.prototype.doQuery=function(K,H,J){var L=this.dataFunction;var I=[];I=L(H);if(I===null){this.dataErrorEvent.fire(this,J,H,YAHOO.widget.DataSource.ERROR_DATANULL);return }var G={};G.query=decodeURIComponent(H);G.results=I;this._addCacheElem(G);this.getResultsEvent.fire(this,J,H,I);K(H,I,J);return };YAHOO.widget.DS_JSArray=function(D,E){if(E&&(E.constructor==Object)){for(var F in E){this[F]=E[F]}}if(!YAHOO.lang.isArray(D)){return }else{this.data=D;this._init()}};YAHOO.widget.DS_JSArray.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_JSArray.prototype.data=null;YAHOO.widget.DS_JSArray.prototype.doQuery=function(T,P,N){var S;var L=this.data;var O=[];var K=false;var M=this.queryMatchContains;if(P){if(!this.queryMatchCase){P=P.toLowerCase()}for(S=L.length-1;S>=0;S--){var Q=[];if(YAHOO.lang.isString(L[S])){Q[0]=L[S]}else{if(YAHOO.lang.isArray(L[S])){Q=L[S]}}if(YAHOO.lang.isString(Q[0])){var R=(this.queryMatchCase)?encodeURIComponent(Q[0]).indexOf(P):encodeURIComponent(Q[0]).toLowerCase().indexOf(P);if((!M&&(R===0))||(M&&(R>-1))){O.unshift(Q)}}}}else{for(S=L.length-1;S>=0;S--){if(YAHOO.lang.isString(L[S])){O.unshift([L[S]])}else{if(YAHOO.lang.isArray(L[S])){O.unshift(L[S])}}}}this.getResultsEvent.fire(this,N,P,O);T(P,O,N)};YAHOO.register("autocomplete",YAHOO.widget.AutoComplete,{version:"2.3.1",build:"541"});var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};Object.extend=function(A,B){for(property in B){A[property]=B[property]}return A};Function.prototype.bind=function(B){var A=this;return function(){return A.apply(B,arguments)}};Function.prototype.bindAsEventListener=function(B){var A=this;return function(C){A.call(B,C||window.event)}};function $(){if(arguments.length==1){return B(arguments[0])}var A=[];$c(arguments).each(function(C){A.push(B(C))});return A;function B(C){if(typeof C=="string"){C=document.getElementById(C)}return C}}if(!window.Element){var Element=new Object()}Object.extend(Element,{remove:function(A){A=$(A);A.parentNode.removeChild(A)},hasClassName:function(B,C){B=$(B);if(!B){return }var A=false;B.className.split(" ").each(function(D){if(D==C){A=true}});return A},addClassName:function(A,B){A=$(A);Element.removeClassName(A,B);A.className+=" "+B},removeClassName:function(B,C){B=$(B);if(!B){return }var A="";B.className.split(" ").each(function(E,D){if(E!=C){if(D>0){A+=" "}A+=E}});B.className=A},cleanWhitespace:function(A){A=$(A);$c(A.childNodes).each(function(B){if(B.nodeType==3&&!/\S/.test(B.nodeValue)){Element.remove(B)}})},find:function(A,B){A=$(A)[B];while(A.nodeType!=1){A=A[B]}return A}});var Position={cumulativeOffset:function(B){var A=0,C=0;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;B=B.offsetParent}while(B);return[C,A]}};document.getElementsByClassName=function(B){var A=document.getElementsByTagName("*")||document.all;var C=[];$c(A).each(function(D){if(Element.hasClassName(D,B)){C.push(D)}});return C};Array.prototype.each=function(B){for(var A=0;ob=this[A];A++){B(ob,A)}};function $c(B){var A=[];for(i=0;el=B[i];i++){A.push(el)}return A}var fx=new Object();fx.Base=function(){};fx.Base.prototype={setOptions:function(A){this.options={duration:500,onComplete:"",transition:fx.sinoidal};Object.extend(this.options,A||{})},step:function(){var B=(new Date).getTime();if(B>=this.options.duration+this.startTime){this.now=this.to;clearInterval(this.timer);this.timer=null;if(this.options.onComplete){setTimeout(this.options.onComplete.bind(this),10)}}else{var A=(B-this.startTime)/(this.options.duration);this.now=this.options.transition(A)*(this.to-this.from)+this.from}this.increase()},custom:function(B,A){if(this.timer!=null){return }this.from=B;this.to=A;this.startTime=(new Date).getTime();this.timer=setInterval(this.step.bind(this),13)},hide:function(){this.now=0;this.increase()},clearTimer:function(){clearInterval(this.timer);this.timer=null}};fx.Layout=Class.create();fx.Layout.prototype=Object.extend(new fx.Base(),{initialize:function(B,A){this.el=$(B);this.el.style.overflow="hidden";this.iniWidth=this.el.offsetWidth;this.iniHeight=this.el.offsetHeight;this.setOptions(A)}});fx.Height=Class.create();Object.extend(Object.extend(fx.Height.prototype,fx.Layout.prototype),{increase:function(){this.el.style.height=this.now+"px"},toggle:function(){if(this.el.offsetHeight>0){this.custom(this.el.offsetHeight,0)}else{this.custom(0,this.el.scrollHeight)}}});fx.Width=Class.create();Object.extend(Object.extend(fx.Width.prototype,fx.Layout.prototype),{increase:function(){this.el.style.width=this.now+"px"},toggle:function(){if(this.el.offsetWidth>0){this.custom(this.el.offsetWidth,0)}else{this.custom(0,this.iniWidth)}}});fx.Opacity=Class.create();fx.Opacity.prototype=Object.extend(new fx.Base(),{initialize:function(B,A){this.el=$(B);this.now=1;this.increase();this.setOptions(A)},increase:function(){if(this.now==1&&(/Firefox/.test(navigator.userAgent))){this.now=0.9999}this.setOpacity(this.now)},setOpacity:function(A){if(A==0&&this.el.style.visibility!="hidden"){this.el.style.visibility="hidden"}else{if(this.el.style.visibility!="visible"){this.el.style.visibility="visible"}}this.el.style.filter="alpha(opacity="+A*100+")";this.el.style.opacity=A},toggle:function(){if(this.now>0){this.custom(1,0)}else{this.custom(0,1)}}});fx.sinoidal=function(A){return((-Math.cos(A*Math.PI)/2)+0.5)};fx.linear=function(A){return A};fx.cubic=function(A){return Math.pow(A,3)};fx.circ=function(A){return Math.sqrt(A)};fx.Scroll=Class.create();fx.Scroll.prototype=Object.extend(new fx.Base(),{initialize:function(A){this.setOptions(A)},scrollTo:function(D){var B=Position.cumulativeOffset($(D))[1];var A=YAHOO.util.Dom.getClientHeight();var C=OZONE.visuals.bodyHeight();var E=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;if(B+A>C){this.custom(E,B-A+(C-B))}else{this.custom(E,B)}},increase:function(){window.scrollTo(0,this.now)}});fx.ScrollCenter=Class.create();fx.ScrollCenter.prototype=Object.extend(new fx.Base(),{initialize:function(A){this.setOptions(A)},scrollTo:function(E){var B=$(E).offsetHeight;var C=Position.cumulativeOffset($(E))[1];var A=YAHOO.util.Dom.getClientHeight();if(B<A){C=Math.max(C-A*0.5+B*0.5,0)}var D=OZONE.visuals.bodyHeight();var F=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;if(C+A>D){this.custom(F,D-A)}else{this.custom(F,C)}},increase:function(){window.scrollTo(0,this.now)}});fx.ScrollBottom=Class.create();fx.ScrollBottom.prototype=Object.extend(new fx.Base(),{initialize:function(A){this.setOptions(A)},scrollTo:function(D){var B=Position.cumulativeOffset($(D))[1];var A=YAHOO.util.Dom.getClientHeight();var B=Math.max(B-A+40,0);var C=OZONE.visuals.bodyHeight();var E=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;if(B+A>C){this.custom(E,B-A+(C-B))}else{this.custom(E,B)}},increase:function(){window.scrollTo(0,this.now)}});fx.Text=Class.create();fx.Text.prototype=Object.extend(new fx.Base(),{initialize:function(B,A){this.el=$(B);this.setOptions(A);if(!this.options.unit){this.options.unit="em"}},increase:function(){this.el.style.fontSize=this.now+this.options.unit}});fx.Combo=Class.create();fx.Combo.prototype={setOptions:function(A){this.options={opacity:true,height:true,width:false};Object.extend(this.options,A||{})},initialize:function(B,A){this.el=$(B);this.setOptions(A);if(this.options.opacity){this.o=new fx.Opacity(B,A);A.onComplete=null}if(this.options.height){this.h=new fx.Height(B,A);A.onComplete=null}if(this.options.width){this.w=new fx.Width(B,A)}},toggle:function(){this.checkExec("toggle")},hide:function(){this.checkExec("hide")},clearTimer:function(){this.checkExec("clearTimer")},checkExec:function(A){if(this.o){this.o[A]()}if(this.h){this.h[A]()}if(this.w){this.w[A]()}},resizeTo:function(A,B){if(this.h&&this.w){this.h.custom(this.el.offsetHeight,this.el.offsetHeight+A);this.w.custom(this.el.offsetWidth,this.el.offsetWidth+B)}},customSize:function(A,B){if(this.h&&this.w){this.h.custom(this.el.offsetHeight,A);this.w.custom(this.el.offsetWidth,B)}}};fx.Accordion=Class.create();fx.Accordion.prototype={setOptions:function(A){this.options={delay:100,opacity:false};Object.extend(this.options,A||{})},initialize:function(B,C,A){this.elements=C;this.setOptions(A);var A=A||"";C.each(function(E,D){A.onComplete=function(){if(E.offsetHeight>0){E.style.height="1%"}};E.fx=new fx.Combo(E,A);E.fx.hide()});B.each(function(E,D){E.onclick=function(){this.showThisHideOpen(C[D])}.bind(this)}.bind(this))},showThisHideOpen:function(A){this.elements.each(function(C,B){if(C.offsetHeight>0&&C!=A){this.clearAndToggle(C)}}.bind(this));if(A.offsetHeight==0){setTimeout(function(){this.clearAndToggle(A)}.bind(this),this.options.delay)}},clearAndToggle:function(A){A.fx.clearTimer();A.fx.toggle()}};var Remember=new Object();Remember=function(){};Remember.prototype={initialize:function(C,A){this.el=$(C);this.days=365;this.options=A;this.effect();var B=this.readCookie();if(B){this.fx.now=B;this.fx.increase()}},setCookie:function(C){var B=new Date();B.setTime(B.getTime()+(this.days*24*60*60*1000));var A="; expires="+B.toGMTString();document.cookie=this.el+this.el.id+this.prefix+"="+C+A+"; path=/"},readCookie:function(){var C=this.el+this.el.id+this.prefix+"=";var A=document.cookie.split(";");for(var B=0;c=A[B];B++){while(c.charAt(0)==" "){c=c.substring(1,c.length)}if(c.indexOf(C)==0){return c.substring(C.length,c.length)}}return false},custom:function(B,A){if(this.fx.now!=A){this.setCookie(A);this.fx.custom(B,A)}}};fx.RememberHeight=Class.create();fx.RememberHeight.prototype=Object.extend(new Remember(),{effect:function(){this.fx=new fx.Height(this.el,this.options);this.prefix="height"},toggle:function(){if(this.el.offsetHeight==0){this.setCookie(this.el.scrollHeight)}else{this.setCookie(0)}this.fx.toggle()},resize:function(A){this.setCookie(this.el.offsetHeight+A);this.fx.custom(this.el.offsetHeight,this.el.offsetHeight+A)},hide:function(){if(!this.readCookie()){this.fx.hide()}}});fx.RememberText=Class.create();fx.RememberText.prototype=Object.extend(new Remember(),{effect:function(){this.fx=new fx.Text(this.el,this.options);this.prefix="text"}});Array.prototype.each=function(B){for(var A=0;ob=this[A];A++){B(ob,A)}};fx.expoIn=function(A){return Math.pow(2,10*(A-1))};fx.expoOut=function(A){return(-Math.pow(2,-10*A)+1)};fx.quadIn=function(A){return Math.pow(A,2)};fx.quadOut=function(A){return -(A)*(A-2)};fx.circOut=function(A){return Math.sqrt(1-Math.pow(A-1,2))};fx.circIn=function(A){return -(Math.sqrt(1-Math.pow(A,2))-1)};fx.backIn=function(A){return(A)*A*((2.7)*A-1.7)};fx.backOut=function(A){return((A-1)*(A-1)*((2.7)*(A-1)+1.7)+1)};fx.sineOut=function(A){return Math.sin(A*(Math.PI/2))};fx.sineIn=function(A){return -Math.cos(A*(Math.PI/2))+1};fx.sineInOut=function(A){return -(Math.cos(Math.PI*A)-1)/2};var JSON={copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(B){var A=[];function D(E){A[A.length]=E}function C(E){var I,H,F,G;switch(typeof E){case"object":if(E){if(E instanceof Array){D("[");F=A.length;for(H=0;H<E.length;H+=1){G=E[H];if(typeof G!="undefined"&&typeof G!="function"){if(F<A.length){D(",")}C(G)}}D("]");return }else{if(typeof E.valueOf=="function"){D("{");F=A.length;for(H in E){G=E[H];if(typeof G!="undefined"&&typeof G!="function"&&(!G||typeof G!="object"||typeof G.valueOf=="function")){if(F<A.length){D(",")}C(H);D(":");C(G)}}return D("}")}}}D("null");return ;case"number":D(isFinite(E)?+E:"null");return ;case"string":F=E.length;D('"');for(H=0;H<F;H+=1){I=E.charAt(H);if(I>=" "){if(I=="\\"||I=='"'){D("\\")}D(I)}else{switch(I){case"\b":D("\\b");break;case"\f":D("\\f");break;case"\n":D("\\n");break;case"\r":D("\\r");break;case"\t":D("\\t");break;default:I=I.charCodeAt();D("\\u00"+Math.floor(I/16).toString(16)+(I%16).toString(16))}}}D('"');return ;case"boolean":D(String(E));return ;default:D("null");return }}C(B);return A.join("")},parse:function(text){return(/^(\s+|[,:{}\[\]]|"(\\["\\\/bfnrtu]|[^\x00-\x1f"\\]+)*"|-?\d+(\.\d*)?([eE][+-]?\d+)?|true|false|null)+$/.test(text))&&eval("("+text+")")}};var OZONE=function(){};OZONE.ajax={_callbackArray:new Array(),_callbackArrayIndex:0,_javascriptLoadLock:false,requestModule:function(A,G,F,H,I){OZONE.visuals.cursorWait();if(G==null){G=new Object()}if(A==null||A==""){A="Empty"}G.moduleName=A;if(I&&I.clearRequestQueue){OZONE.ajax._callbackArray=new Array()}var D=OZONE.ajax._callbackArrayIndex++;OZONE.ajax._callbackArray[D]={callback:F,arg:H};G.callbackIndex=D;var B=OZONE.utils.getCookie("wikidot_token7");if(B==null){alert("Error processing the request.\n\nYou have no valid security token which is required to prevent identity theft.\nPlease enable cookies in your browser if you have this option disabled and reload the page.");OZONE.visuals.cursorClear();return }G.wikidot_token7=B;var E=OZONE.utils.arrayToPostData(G);var C=OZONE.ajax.requestModuleCallback;YAHOO.util.Connect.asyncRequest("POST","/ajax-module-connector.php",C,E)},parseResponse:function(A){res=JSON.parse(A);if(!res){alert(A.replace(/\r?\n/g," "))}return res},requestModuleCallback:{success:function(D){var B=OZONE.ajax.parseResponse(D.responseText);if(B.status=="wrong_token7"){alert("wikidot.com security error:\n\nYour authentication token in the request is not valid. Please enable cookies in your browser and try to repeat the action.\n\nIf you see this message on the page not associated with the wikidot.com wiki hosting it probably means an indentity theft attempt or improper use of wikidot.com service.");OZONE.visuals.cursorClear();return }var E=B.callbackIndex;if(E==null){OZONE.visuals.cursorClear();OZONE.dialog.cleanAll()}if(!OZONE.ajax._callbackArray[E]){return }var F=OZONE.ajax._callbackArray[E]["callback"];if(!F){alert("internal: callback error")}var A=OZONE.ajax._callbackArray[E]["arg"];if(A!=null){F(B,A)}else{F(B)}if(B.jsInclude!=null){for(var C=0;C<B.jsInclude.length;C++){OZONE.utils.addJavascriptUrl(B.jsInclude[C])}}if(B.cssInclude!=null){for(var C=0;C<B.cssInclude.length;C++){OZONE.utils.addStyleUrl(B.cssInclude[C])}}OZONE.visuals.cursorClear();if($("debug-block643")){$("debug-block643").innerHTML=OZONE.utils.escapeHtml(B.body)}},failure:function(A){alert("The ajax request failed. Please check your internet connection or\nreport a bug if the error repeats during your work.\ncode:"+A.status);OZONE.visuals.cursorClear();OZONE.dialog.cleanAll()}},requestQuickModule:function(A,D,F){if(D==null){D=new Object()}if(A==null||A==""){alert("Quick module name empty.")}var E=OZONE.ajax._callbackArrayIndex++;OZONE.ajax._callbackArray[E]=F;D.callbackIndex=E;var C=JSON.stringify(D);var B=OZONE.ajax.requestQuickModuleCallback;YAHOO.util.Connect.asyncRequest("POST","/quickmodule.php?module="+A,B,C)},parseResponse:function(A){res=JSON.parse(A);if(!res){alert(A.replace(/\r?\n/g," "))}return res},requestQuickModuleCallback:{success:function(B){var A=OZONE.ajax.parseResponse(B.responseText);var C=A.callbackIndex;var D=OZONE.ajax._callbackArray[C];D(A)},failure:function(A){alert("The ajax request failed. Please check your internet connection or\nreport a bug if the error repeats during your work.")}}};OZONE.utils={formToArray:function(D){D=$(D);if(D==null){return }var C=new Object();for(i=0;i<D.length;i++){var A=D.elements[i];var B=A.type;if(B=="text"||B=="hidden"||B=="password"||B=="select-one"||B=="textarea"||B=="select"){C[A.name]=A.value}if(B=="checkbox"&&A.checked==true){C[A.name]="on"}if(B=="radio"&&A.checked==true){C[A.name]=A.value}}return C},arrayToPostData:function(A){if(A==null){return null}var B="";var C;for(key in A){C=encodeURIComponent(A[key]);B+="&"+key+"="+C}if(B.length>0){B=B.substring(1)}return B},addJavascriptUrl:function(C,E,B){if(OZONE.utils._javascripLoadLock&&(new Date()).getTime()<OZONE.utils._javascripLoadLock+2000){setTimeout(function(){OZONE.utils.addJavascriptUrl(C,E,B)},50);return }OZONE.utils._javascripLoadLock=false;var D=document.getElementsByTagName("head").item(0);var A=D.getElementsByTagName("script");for(i=0;i<A.length;i++){if(A[i].getAttribute("src")==C){if(B){if(E){E()}return }D.removeChild(A[i])}}OZONE.utils._javascripLoadLock=(new Date()).getTime();var F=document.createElement("script");F.setAttribute("type","text/javascript");F.setAttribute("src",C);if(YAHOO.env.ua.ie){F.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){F.onreadystatechange=null;OZONE.utils._javascripLoadLock=false;if(E){E.call()}}}}else{YAHOO.util.Event.addListener(F,"load",function(){OZONE.utils._javascripLoadLock=false;if(E){E.call()}})}D.appendChild(F)},addStyleUrl:function(B,D,A){var C=document.getElementsByTagName("head").item(0);var E=C.getElementsByTagName("link");for(i=0;i<E.length;i++){if(E[i].type="text/css"&&E[i].getAttribute("src")==B){if(A){if(D){D()}return }C.removeChild(E[i])}}var F=document.createElement("link");F.rel="stylesheet";F.type="text/css";F.href=B;if(D){YAHOO.util.Event.addListener(F,"load",D)}C.appendChild(F)},setInnerHTMLContent:function(A,C){var B=$(A);if(B){B.innerHTML=C;OZONE.utils.formatDates(B);OZONE.dialog.hovertip.dominit(B)}},disableEnterKey:function(C){var A;var B=(C.target)?C.target:C.srcElement;if(B.tagName=="TEXTAREA"){return true}if(window.event){A=window.event.keyCode}else{A=C.which}if(A==13){return false}else{return true}},escapeHtml:function(A){if(A==null||A==""){return""}return A.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;")},unescapeHtml:function(A){if(A==null||A==""){return""}return A.split("&gt;").join(">").split("&lt;").join("<").split("&amp;").join("&")},formatDates:function(Y){var J=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var A=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var U=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var N=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");Y=$(Y);var D="";var G=YAHOO.util.Dom.getElementsByClassName("odate","span",Y);for(i=0;i<G.length;i++){var X=G[i].innerHTML;if(X.match(/^[0-9]+$/)){var E=X;var T=new Date();T.setTime(E*1000);D=T.toLocaleString()}if(X.match(/^[0-9]+\s*\|.*$/)){var W;var E=X.replace(/^([0-9]+)\s*\|.*/,"$1");var O=X.replace(/^[0-9]+\s*\|\s*(.*?)(?:\|(.*))?$/,"$1");var F=X.replace(/^[0-9]+\s*\|\s*(.*?)(?:\|(.*))?$/,"$2");G[i].timestamp=E;var T=new Date();T.setTime(E*1000);D=O;D=D.replace(/%r/g,"%I:%M:%S %p");D=D.replace(/%R/g,"%H:%M");D=D.replace(/%T/g,"%H:%M:%S");D=D.replace(/%D/g,"%m/%d/%y");D=D.replace(/%a/g,N[T.getDay()]);D=D.replace(/%A/g,U[T.getDay()]);D=D.replace(/%b/g,A[T.getMonth()]);D=D.replace(/%B/g,J[T.getMonth()]);D=D.replace(/%c/g,T.toLocaleString());W=T.getDate();D=D.replace(/%d/g,(W<10)?"0"+W:W);D=D.replace(/%e/g,T.getDate());var P=T.getHours();D=D.replace(/%H/g,(P<10)?"0"+P:P);var Q=(P-1)%12+1;D=D.replace(/%I/g,(Q<10)?"0"+Q:Q);var V=T.getMonth();D=D.replace(/%m/g,(V+1<10)?"0"+(V+1):V+1);var M=T.getMinutes();D=D.replace(/%M/g,(M<10)?"0"+M:M);D=D.replace(/%p/g,(P<12)?"AM":"PM");var L=T.getSeconds();D=D.replace(/%S/g,(L<10)?"0"+L:L);var I=T.getYear();I=(I<10)?"0"+I:""+I;D=D.replace(/%y/g,I.substring(I.length-2));var C=T.getFullYear();D=D.replace(/%Y/g,C);if(D.match(/%z/i)){var S;S=T.toLocaleString().replace(/^.*?([A-Z]{3,}(?:\+[0-9]+)?).*$/,"$1");if(S==T.toLocaleString()){var K=T.getTimezoneOffset();K=-K/60;K=((K<10)?"0"+K:K)+"00";S=(K>0)?"+"+K:"-"+K}D=D.replace(/%z/ig,S)}if(D.match(/%O/)||F.match(/agohover/)){var R=OZONE.request.timestamp-E;R+=Math.floor(((new Date()).getTime()-OZONE.request.date.getTime())*0.001);var H=OZONE.utils.calculateDateAgo(R);D=D.replace(/%O/,H);if(F.match(/agohover/)){var B=H+" ago";OZONE.dialog.hovertip.makeTip(G[i],{text:B,style:{width:"auto"}});YAHOO.util.Event.addListener(G[i],"mouseover",function(b){var a=OZONE.request.timestamp-this.timestamp;a+=Math.floor(((new Date()).getTime()-OZONE.request.date.getTime())*0.001);var Z=OZONE.utils.calculateDateAgo(a);this.hovertip.getElementsByTagName("div").item(0).innerHTML=Z+" "+ogettext("ago")})}}}if(D){G[i].innerHTML=D;G[i].style.visibility="visible";G[i].style.display="inline"}}},calculateDateAgo:function(D){var A;if(D>=60*60*24){var E=Math.floor(D/(60*60*24));A=""+E+" "+((E)>1?ogettext("days"):ogettext("day"))}else{if(D>=60*60){var B=Math.floor(D/(60*60));A=""+B+" "+((B)>1?ogettext("hours"):ogettext("hour"))}else{if(D>=60){var C=Math.floor(D/60);A=""+C+" "+((C)>1?ogettext("minutes"):ogettext("minute"))}else{if(D==0){D++}A=""+D+" "+((D)>1?ogettext("seconds"):ogettext("second"))}}}return A},formatDatesOld:function(C){if(C==null){var E=document.getElementsByTagName("odate")}else{var B=$(C);var E=B.getElementsByTagName("odate")}for(i=0;i<E.length;i++){var D=E[i].innerHTML;var A=new Date();A.setTime(D*1000);var F=A.toLocaleString();E[i].innerHTML=F}},loadPage:function(B,D){var C=document.createElement("form");for(p in D){var A=document.createElement("input");A.type="hidden";A.name=p;A.value=D[p];C.appendChild(A)}C.name="loadPageForm";C.action=B;C.method="post";C.display="none";C.target="_self";document.getElementsByTagName("body").item(0).appendChild(C);C.submit()},getCookie:function(C){if(document.cookie.length>0){var B=document.cookie.indexOf(C+"=");if(B!=-1){B=B+C.length+1;var A=document.cookie.indexOf(";",B);if(A==-1){A=document.cookie.length}return unescape(document.cookie.substring(B,A))}}return null},olang:function(A){return A.replace(/\[\[olang (.*?)\|\]\]/g,function(H,G,F,C){var E=OZONE.lang;var B=new RegExp(E+":([^|]*)(||]])");var D=H.match(B);if(D){return D[1]}})}};OZONE.lang="en";OZONE.loc={};OZONE.loc.messages={};OZONE.loc.addMessages=function(A,C){if(!OZONE.loc.messages[C]){OZONE.loc.messages[C]={}}for(var B in A){OZONE.loc.messages[C][B]=A[B]}};OZONE.loc.addMessage=function(B,A,C){if(!OZONE.loc.messages[C]){OZONE.loc.messages[C]={}}OZONE.loc.messages[C][B]=A};OZONE.loc.getMessage=function(A,B){if(OZONE.loc.messages[B]){if(OZONE.loc.messages[B][A]){return OZONE.loc.messages[B][A]}}return A};ogettext=function(A){return OZONE.loc.getMessage(A,OZONE.lang)};OZONE.visuals={cursorWait:function(){var A=document.getElementsByTagName("body")[0];YAHOO.util.Dom.addClass(A,"wait")},cursorClear:function(){var A=document.getElementsByTagName("body")[0];YAHOO.util.Dom.removeClass(A,"wait")},scrollTo:function(A,B){OZONE.visuals.scrollToCenter(A,B)},scrollToCenter:function(B,A){var E=null;if(A!=null&&A.blink==true){var C=B;E=function(){var F=new fx.Opacity(C,{duration:150,transition:fx.circ,onComplete:function(){this.options.onComplete="";var G=this;setTimeout(function(){G.custom(0.2,1)},500)}});F.custom(1,0.2)}}var D=new fx.ScrollCenter({duration:200,transition:fx.sineOut,onComplete:E});D.scrollTo(B);if(A!=null&&A.alterHref==true){}},scrollOffsetY:function(){var A;if(self.pageYOffset){A=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollTop}else{if(document.body){A=document.body.scrollTop}}}return A},bodyHeight:function(){var A,D;var C=document.body.scrollHeight;var B=document.body.offsetHeight;if(C>B){return document.body.scrollHeight}else{return document.body.offsetHeight}},initScroll:function(){if(window.location.hash!=null&&window.location.href!=""){var A=window.location.hash.replace(/#/,"");if(A!=null&&A!=""&&$(A)){OZONE.visuals.scrollTo(A,{blink:true})}}},highlightText:function(G,I){if(I.indexOf(" ")!=-1){var A=I.split(/ +/);for(var C=0;C<A.length;C++){if(!A[C].match(/^\-/)){OZONE.visuals.highlightText(G,A[C])}}return }G=$(G);if(!G){return }if(G.hasChildNodes){var E=G.childNodes;for(var C=E.length-1;C>=0;C--){OZONE.visuals.highlightText(E[C],I)}}if(G.nodeType==3){var B=new RegExp(I,"gi");if(G.nodeValue.match(B)){var D=(" "+G.nodeValue+" ").split(B);p=G.parentNode;for(var C=0;C<D.length;C++){if(C!=0){var H=document.createElement("span");H.className="search-highlight";H.appendChild(document.createTextNode(I));p.insertBefore(H,G)}var F=document.createTextNode(D[C]);if(C!=D.length-1){p.insertBefore(F,G)}else{p.replaceChild(F,G)}}}}}};OZONE.forms={};OZONE.forms.lengthLimiter=function(B,C,A){this.textElement=$(B);this.countElement=$(C);this.limit=A;YAHOO.util.Event.addListener(this.textElement,"keyup",this.keyListener,this,true);this.keyListener()};OZONE.forms.lengthLimiter.prototype.keyListener=function(C){var A=this.textElement.value.replace(/\r\n/,"\n").length;this.countElement.innerHTML=this.limit-A;if(A>this.limit){var B=this.textElement.scrollTop;this.textElement.value=this.textElement.value.substr(0,this.limit);this.textElement.scrollTop=B;A=this.textElement.value.replace(/\r\n/,"\n").length;this.countElement.innerHTML=this.limit-A}};OZONE.dom={insertAfter:function(A,C,B){if(B.nextSibling){A.insertBefore(C,B.nextSibling)}else{A.appendChild(C)}},onDomReady:function(C,B,D){if(!D){D=document}if(typeof D.getElementsByTagName!="undefined"&&(D.getElementsByTagName("body")[0]!=null||D.body!=null)&&(typeof B!="string"||$(B))){if(typeof C=="function"){C()}else{OZONE.dom.onDomReady.fs[C].call()}}else{var E;if(typeof C=="function"){if(!OZONE.dom.onDomReady.fs){OZONE.dom.onDomReady.fs=new Array()}E=OZONE.dom.onDomReady.fs.push(C)-1}else{E=C}var A="OZONE.dom.onDomReady("+E;if(typeof B=="string"){A+=',"'+B+'"'}A+=")";setTimeout(A,200)}}};OZONE.request={};OZONE.init=function(){};OZONE.dialog={};OZONE.dialog.stock=new Array();OZONE.dialog.cleanAll=function(A){if(!A||typeof (A.timeout)!="number"){timeout=200}else{timeout=A.timeout}setTimeout("OZONE.dialog.factory.boxcontainer().hide()",timeout);setTimeout("OZONE.dialog.factory.shader().hide()",timeout)};OZONE.dialog.factory={shader:function(){if(OZONE.dialog.factory.stock.shader==null){OZONE.dialog.factory.stock.shader=new OZONE.dialog.shader()}return OZONE.dialog.factory.stock.shader},boxcontainer:function(){if(OZONE.dialog.factory.stock.boxcontainer==null){OZONE.dialog.factory.stock.boxcontainer=new OZONE.dialog.boxcontainer2()}return OZONE.dialog.factory.stock.boxcontainer}};OZONE.dialog.factory.stock={};OZONE.dialog.shader=function(){this.color=null;this.cssClass=null;this.setColor=function(A){this.color=A};this.show=function(){var E=document.getElementById("odialog-shader");if(E!=null){return }E=document.createElement("div");E.id="odialog-shader";var B=document.getElementsByTagName("body").item(0);var F=OZONE.visuals.bodyHeight()+50;var D=YAHOO.util.Dom.getClientHeight();var A=Math.max(F,D);E.style.height=A+"px";if(this.color!=null){E.style.backgroundColor=this.color}if(this.cssClass!=null){E.className=this.cssClass}else{E.className="odialog-shader"}if(window.navigator.userAgent.match(/msie/i)){var C=document.createElement("iframe");C.id="odialog-shader-iframe";C.src="/files--common/misc/blank.html";C.frameBorder=0;C.className="odialog-shader-iframe";C.style.height=A+"px";B.appendChild(C)}B.appendChild(E)};this.hide=function(){var A=document.getElementsByTagName("body").item(0);var C=$("odialog-shader");var B=$("odialog-shader-iframe");if(C!=null){A.removeChild(C)}if(B!=null){A.removeChild(B)}}};OZONE.dialog.boxcontainer2=function(){this.mDiv=null;this.cDiv=null;this.init=function(){var B=$("odialog-container");if(!B){B=document.createElement("div");B.id="odialog-container";var A=document.getElementsByTagName("body").item(0);A.appendChild(B);this.mDiv=B}B.style.display="block"};this.setContent=function(E){this.clearContent();if(typeof E=="string"){this.mDiv.innerHTML=E}else{this.mDiv.appendChild(E)}OZONE.utils.formatDates(this.mDiv);OZONE.dialog.hovertip.dominit(this.mDiv,{delay:300});var D=this.mDiv.getElementsByTagName("div").item(0);D.style.visibility="hidden";this.cDiv=D;this.mDiv.style.display="block";this.centerContent();D.id="owindow-1";var C=D.getElementsByTagName("div");var B;for(B in C){if(C[B].className=="title"){C[B].id="ohandle-1";var A=new YAHOO.util.DD(this.cDiv.id);A.setHandleElId(C[B].id)}if(C[B].className=="close"){YAHOO.util.Event.addListener(C[B],"click",OZONE.dialog.cleanAll)}}};this.attachDD=function(){var C=this.cDiv.getElementsByTagName("div");var B;for(B in C){if(C[B].className=="title"){C[B].id="ohandle-1";var A=new YAHOO.util.DD(this.cDiv.id);A.setHandleElId(C[B].id)}if(C[B].className=="close"){YAHOO.util.Event.addListener(C[B],"click",OZONE.dialog.cleanAll)}}};this.clearContent=function(){this.cDiv=null;this.mDiv.innerHTML=""};this.centerContent=function(){var D=this.cDiv;var A=D.offsetHeight;var C=D.offsetWidth;var E=YAHOO.util.Dom.getClientHeight();var B=YAHOO.util.Dom.getClientWidth();var G=Math.max((B-C)*0.5,0);var F=Math.max(OZONE.visuals.scrollOffsetY()+(E-A)*0.5,0);G=Math.max(0,G);F=Math.max(0,F);YAHOO.util.Dom.setXY(D,[G,F])};this.setContentObject=function(A){this.mDiv.appendChild(A)};this.showContent=function(B){this.mDiv.style.display="block";if(B&&B.smooth==true){var A=new fx.Opacity(this.cDiv,{duration:300});A.setOpacity(0);this.cDiv.style.visibility="visible";A.custom(0,1)}else{this.cDiv.style.visibility="visible"}},this.hideContent=function(){this.cDiv.style.visibility="hidden"};this.hide=function(B){if(B&&B.smooth==true){var A=new fx.Opacity(this.cDiv,{duration:300});A.setOpacity(1);A.custom(1,0)}this.clearContent();$("odialog-container").style.display="none"};this.clickOutsideToHide=function(A){YAHOO.util.Event.addListener("odialog-shader","click",OZONE.dialog.cleanAll)};this.changeContent=function(A){this.setContent(A);this.showContent()};this.init()};OZONE.dialog.hovertip={container:null,bindings:new Array(),init:function(){var B=$("odialog-hovertips");if(!B){B=document.createElement("div");B.id="odialog-hovertips";B.style.position="absolute";B.style.zIndex=100;B.style.top=0;B.style.width="100%";var A=document.getElementsByTagName("body").item(0);A.appendChild(B);OZONE.dialog.hovertip.container=B}},makeTip:function(E,L){if(typeof E!="string"&&E.length>0){for(var F=0;F<E.length;F++){OZONE.dialog.hovertip.makeTip(E[F],L)}}OZONE.dialog.hovertip.init();var G=document.getElementsByTagName("body").item(0);var C=$(E);if(!C){return }if(C.hovertip){return }var B;if(L&&L.context){B=$(L.context);if(!B){return }}else{if(L&&L.text){B=document.createElement("div");B.innerHTML='<div class="content">'+L.text+"</div>"}else{var H;if(C.attributes){for(var I=0;I<C.attributes.length;I++){if(C.attributes[I].nodeName.toLowerCase()=="title"){H=C.attributes[I].nodeValue;C.attributes[I].nodeValue=""}}}if(!H){return }B=document.createElement("div");B.innerHTML='<div class="content">'+H+"</div>"}}if(!B.className.match(/hovertip/)){B.className="hovertip "+B.className}if(L){C.hovertipOptions=L}if(L&&L.style){for(var J in L.style){B.style[J]=L.style[J]}}var K=B.getElementsByTagName("div");var D=false;for(var F=0;F<K.length;F++){if(YAHOO.util.Dom.hasClass(K[F],"content")){D=true}}if(!D){B.innerHTML='<div class="content">'+B.innerHTML+"</div>"}C.hovertip=B;var A=new fx.Opacity(C.hovertip,{duration:300});C.hovertipEffect=A;B.style.position="absolute";B.style.display="none";B.style.border="1px solid black";if(C.tagName.toLowerCase()!="a"&&(!L||!L.noCursorHelp)){C.style.cursor="help"}$("odialog-hovertips").appendChild(B);OZONE.dialog.hovertip.bindings.push([C,B]);YAHOO.util.Event.addListener(C,"mousemove",OZONE.dialog.hovertip._mousemove);YAHOO.util.Event.addListener(C,"mouseout",OZONE.dialog.hovertip._mouseout);YAHOO.util.Event.addListener(C,"mouseover",OZONE.dialog.hovertip._mouseover);return },_mouseover:function(E){var C=YAHOO.util.Event.getTarget(E);var D=C.hovertip;D.style.visibility="hidden";D.style.opacity=0;D.style.display="block";var A=C.hovertipOptions;var B=C.hovertipEffect;YAHOO.util.Dom.setXY(C.hovertip,[0,0]);OZONE.dialog.hovertip._mousemove(E);if(A&&A.delay){OZONE.dialog.tmpeff=B;setTimeout("if(OZONE.dialog.tmpeff.el.style.opacity==0)OZONE.dialog.tmpeff.custom(0,1)",A.delay)}else{B.custom(0,1)}},_mousemove:function(H){var C=YAHOO.util.Event.getTarget(H);var B=C.hovertip;var J=0;var I=0;if(!H){var H=window.event}if(H.pageX||H.pageY){J=H.pageX;I=H.pageY}else{if(H.clientX||H.clientY){J=H.clientX+document.documentElement.scrollLeft;I=H.clientY+document.documentElement.scrollTop}}var K=YAHOO.util.Dom.getViewportHeight();var A=YAHOO.util.Dom.getViewportWidth();var F=B.offsetHeight;var E=B.offsetWidth;var D=20;if(C.hovertipOptions&&C.hovertipOptions.smartWidthLimit){var G=C.hovertipOptions.smartWidthLimit;if(E>G*A){B.style.width=G*A+"px"}}if(C.hovertipOptions&&C.hovertipOptions.valign){switch(C.hovertipOptions.valign){case"center":if(K-H.clientY<F+2*D&&H.clientY>F+1.5*D){I-=F+1.5*D}I+=D;J=H.clientX-E*0.5;if(J+E>A-D){J=A-E-D}if(J<D){J=D}}}else{if(A-H.clientX<E+2*D&&H.clientX>E+1.5*D){J-=E+1.5*D}if(K-H.clientY<F+2*D&&H.clientY>F+1.5*D){I-=F+1.5*D}J+=D;I+=D}YAHOO.util.Dom.setXY(B,[J,I])},_mouseout:function(C){var A=YAHOO.util.Event.getTarget(C);var B=A.hovertip;B.style.display="none"},dominit:function(H,B){OZONE.dialog.hovertip.init();var E;if(H){E=$(H).getElementsByTagName("div")}else{E=document.getElementsByTagName("div")}var D=new Array();for(var C=0;C<E.length;C++){if(E[C].id.match(/\-hovertip$/)){D.push(E[C])}}for(var C=0;C<D.length;C++){var G=D[C];var A=G.id.replace(/\-hovertip$/,"");var F=$(A);if(F){if(!B){var B=new Object()}B.context=G;OZONE.dialog.hovertip.makeTip(F,B)}}},hideAll:function(){var A=$("odialog-hovertips");if(A){var C=A.getElementsByTagName("div");for(var B=0;B<C.length;B++){if(C[B].className.match(/hovertip/)){C[B].style.display="none"}}}}};OZONE.dialogs={};OZONE.dialogs.Base=function(){};OZONE.dialogs.Base.prototype={initialize:function(){this.templateBase="/common--dialogs/";this.template="";this.title=null;this.buttons=new Array();this.buttonObjects=new Array();this.clickOutsideToClose=false;this.smooth=false;this.focusButton=null;this.buttonListeners=new Object();this.windowClass="";this.content="";this.windowDiv=null;this.fixODate=true;this.style=new Object()},setButtons:function(A){},addButtonListener:function(C,B,A){this.buttonListeners[C]=B},show:function(){var D=document.createElement("div");this.windowDiv=D;D.className="owindow "+this.windowClass;var H;for(H in this.style){D.style[H]=this.style[H]}var J=document.createElement("div");J.innerHTML=this.content;if(J.getElementsByTagName("div").item(0)&&YAHOO.util.Dom.hasClass(J.getElementsByTagName("div").item(0),"owindow")){D=J.getElementsByTagName("div").item(0)}else{if(YAHOO.util.Dom.getElementsByClassName("content","div",J).length==1){D.innerHTML=J.innerHTML}else{if(this.title!=null){var B=document.createElement("div");B.className="title";B.innerHTML=this.title;D.appendChild(B)}var C=document.createElement("div");C.className="content";C.innerHTML=this.content;if(this.fixODate){OZONE.utils.formatDates(C)}D.appendChild(C);if(this.buttons.length>0){var E=document.createElement("div");E.className="button-bar";for(var F=0;F<this.buttons.length;F++){var I=this.buttons[F];var G=document.createElement("a");G.href="javascript:;";G.innerHTML=ogettext(I);G.className="button button-"+I.toLowerCase().replace(/ /g,"-");if(this.buttonListeners[I]){YAHOO.util.Event.addListener(G,"click",this.buttonListeners[I],this,true)}E.appendChild(G);this.buttonObjects[I]=G}D.appendChild(E)}}}OZONE.dialog.factory.shader().show();var A=OZONE.dialog.factory.boxcontainer();A.setContent(D);if(this.smooth==true){A.showContent({smooth:true})}else{A.showContent()}if(this.clickOutsideToClose){A.clickOutsideToHide()}if(this.focusButton&&this.buttonObjects[this.focusButton]){this.buttonObjects[this.focusButton].focus()}},hide:function(){if(this.smooth==true){var A=new fx.Opacity(this.windowDiv,{duration:100});A.custom(1,0)}},close:function(){this.hide();OZONE.dialog.cleanAll({timeout:200})}};OZONE.dialogs.SmallInfoBox=Class.create();OZONE.dialogs.SmallInfoBox.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.smooth=true;this.windowClass="o-infobox"}});OZONE.dialogs.WaitBox=Class.create();OZONE.dialogs.WaitBox.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.smooth=true;this.windowClass="owait"}});OZONE.dialogs.SuccessBox=Class.create();OZONE.dialogs.SuccessBox.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.smooth=true;this.windowClass="osuccess";this.timeout=1500}});OZONE.dialogs.SuccessBox.prototype.show=function(){OZONE.dialogs.Base.prototype.show.call(this);if(this.timeout){setTimeout("OZONE.dialog.cleanAll()",this.timeout)}};OZONE.dialogs.ErrorDialog=Class.create();OZONE.dialogs.ErrorDialog.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.windowClass="error";this.title="Error";var A="close message";this.buttons=[A];this.addButtonListener(A,this.close);this.focusButton=A}});OZONE.dialogs.ConfirmationDialog=Class.create();OZONE.dialogs.ConfirmationDialog.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.windowClass="confirmation";this.title="Confirmation"}});OZONE.dialogs.SuccessDialog=Class.create();OZONE.dialogs.SuccessDialog.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.smooth=true;this.windowClass="confirm";this.title="Success";this.buttons=["close message"];this.addButtonListener("close message",this.close);this.focusButton="close message"}});OZONE.dialogs.InfoDialog=Class.create();OZONE.dialogs.InfoDialog.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.smooth=true;this.windowClass="info";this.title=" ";this.buttons=["close window"];this.addButtonListener("close window",this.close);this.focusButton="close window"}});OZONE.dialogs.Dialog=Class.create();OZONE.dialogs.Dialog.prototype=Object.extend(new OZONE.dialogs.Base(),{initialize:function(){OZONE.dialogs.Base.prototype.initialize.call(this);this.title=""}});function exinfo2(){this.show=function(){var B=OZONE.dialog.factory.shader();B.show();var A=OZONE.dialog.factory.boxcontainer();A.setContent('<div class="box444">DUPA</div>');A.showContent()}}function listener1(){var A=new OZONE.dialog.shader();A.show()}function listener2(){e=new exinfo2();e.show()}function testdialog(){var A=new OZONE.dialogs.Base();A.template="Warning";A.content="dupowy content";A.buttons=["cancel","Ok"];A.addButtonListener("cancel",A.close);A.smooth=true;A.show()}function testdialog2(){var A=new OZONE.dialogs.ErrorDialog();A.content="<h1>Error processing template...</h1>test";A.show()}function testdialog3(){var A=new OZONE.dialogs.SuccessBox();A.content="Loading file...";A.timeout=1000;A.show()};
