/* Build 46 */

/**
 * Objecty
 * Copyright (c) 2007 by Charles Wiltgen
 * 
 * Objecty is licensed under the Creative Commons Attribution-No Derivative
 * Works 3.0 License.  You are free to use and share (copy, distribute,
 * display, and perform) Objecty per the terms below.
 * 
 * Summary: http://creativecommons.org/licenses/by-nd/3.0/
 * License: http://creativecommons.org/licenses/by-nd/3.0/legalcode
 * 
 * Objecty uses portions of the Yahoo! UI library
 * Copyright (c) 2007, Yahoo! Inc.  All rights reserved.
 * Code licensed under the BSD License:
 * http://developer.yahoo.net/yui/license.txt
 * 
 * Objecty uses portion of the yui-ext library
 * Copyright (c) 2007, Jack Slocum.  All rights reserved.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

if(typeof YAHOO=="undefined"||!YAHOO){ var YAHOO={}; } YAHOO.namespace=function(){ var A=arguments,E=null,C,B,D; for(C=0;C<A.length;C=C+1){ D=A[C].split("."); E=YAHOO; for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){ E[D[B]]=E[D[B]]||{}; E=E[D[B]]; } } return E; }; YAHOO.log=function(D,A,C){ var B=YAHOO.widget.Logger; if(B&&B.log){ return B.log(D,A,C); }else{ return false; } }; YAHOO.register=function(A,E,D){ var I=YAHOO.env.modules; if(!I[A]){ I[A]={versions:[],builds:[]}; } var B=I[A],H=D.version,G=D.build,F=YAHOO.env.listeners; B.name=A; B.version=H; B.build=G; B.versions.push(H); B.builds.push(G); B.mainClass=E; for(var C=0;C<F.length;C=C+1){ F[C](B); } if(E){ E.VERSION=H; E.BUILD=G; }else{ YAHOO.log("mainClass is undefined for module "+A,"warn"); } }; YAHOO.env=YAHOO.env||{modules:[],listeners:[]}; YAHOO.env.getVersion=function(A){ return YAHOO.env.modules[A]||null; }; YAHOO.env.ua=function(){ var C={ie:0,opera:0,gecko:0,webkit:0,mobile:null}; var B=navigator.userAgent,A; if((/KHTML/).test(B)){ C.webkit=1; } A=B.match(/AppleWebKit\/([^\s]*)/); if(A&&A[1]){ C.webkit=parseFloat(A[1]); if(/ Mobile\//.test(B)){ C.mobile="Apple"; }else{ A=B.match(/NokiaN[^\/]*/); if(A){ C.mobile=A[0]; } } } if(!C.webkit){ A=B.match(/Opera[\s\/]([^\s]*)/); if(A&&A[1]){ C.opera=parseFloat(A[1]); A=B.match(/Opera Mini[^;]*/); if(A){ C.mobile=A[0]; } }else{ A=B.match(/MSIE\s([^;]*)/); if(A&&A[1]){ C.ie=parseFloat(A[1]); }else{ A=B.match(/Gecko\/([^\s]*)/); if(A){ C.gecko=1; A=B.match(/rv:([^\s\)]*)/); if(A&&A[1]){ C.gecko=parseFloat(A[1]); } } } } } return C; }(); (function(){ YAHOO.namespace("util","widget","example"); if("undefined"!==typeof YAHOO_config){ var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C; if(B){ for(C=0;C<A.length;C=C+1){ if(A[C]==B){ D=false; break; } } if(D){ A.push(B); } } } })(); YAHOO.lang=YAHOO.lang||{isArray:function(B){ if(B){ var A=YAHOO.lang; return A.isNumber(B.length)&&A.isFunction(B.splice); } return false; },isBoolean:function(A){ return typeof A==="boolean"; },isFunction:function(A){ return typeof A==="function"; },isNull:function(A){ return A===null; },isNumber:function(A){ return typeof A==="number"&&isFinite(A); },isObject:function(A){ return (A&&(typeof A==="object"||YAHOO.lang.isFunction(A)))||false; },isString:function(A){ return typeof A==="string"; },isUndefined:function(A){ return typeof A==="undefined"; },hasOwnProperty:function(A,B){ if(Object.prototype.hasOwnProperty){ return A.hasOwnProperty(B); } return !YAHOO.lang.isUndefined(A[B])&&A.constructor.prototype[B]!==A[B]; },_IEEnumFix:function(C,B){ if(YAHOO.env.ua.ie){ var E=["toString","valueOf"],A; for(A=0;A<E.length;A=A+1){ var F=E[A],D=B[F]; if(YAHOO.lang.isFunction(D)&&D!=Object.prototype[F]){ C[F]=D; } } } },extend:function(D,E,C){ if(!E||!D){ throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included."); } var B=function(){ }; B.prototype=E.prototype; D.prototype=new B(); D.prototype.constructor=D; D.superclass=E.prototype; if(E.prototype.constructor==Object.prototype.constructor){ E.prototype.constructor=E; } if(C){ for(var A in C){ D.prototype[A]=C[A]; } YAHOO.lang._IEEnumFix(D.prototype,C); } },augmentObject:function(E,D){ if(!D||!E){ throw new Error("Absorb failed, verify dependencies."); } var A=arguments,C,F,B=A[2]; if(B&&B!==true){ for(C=2;C<A.length;C=C+1){ E[A[C]]=D[A[C]]; } }else{ for(F in D){ if(B||!E[F]){ E[F]=D[F]; } } YAHOO.lang._IEEnumFix(E,D); } },augmentProto:function(D,C){ if(!C||!D){ throw new Error("Augment failed, verify dependencies."); } var A=[D.prototype,C.prototype]; for(var B=2;B<arguments.length;B=B+1){ A.push(arguments[B]); } YAHOO.lang.augmentObject.apply(this,A); },dump:function(A,G){ var C=YAHOO.lang,D,F,I=[],J="{...}",B="f(){...}",H=", ",E=" => "; if(!C.isObject(A)){ return A+""; }else{ if(A instanceof Date||("nodeType" in A&&"tagName" in A)){ return A; }else{ if(C.isFunction(A)){ return B; } } } G=(C.isNumber(G))?G:3; if(C.isArray(A)){ I.push("["); for(D=0,F=A.length;D<F;D=D+1){ if(C.isObject(A[D])){ I.push((G>0)?C.dump(A[D],G-1):J); }else{ I.push(A[D]); } I.push(H); } if(I.length>1){ I.pop(); } I.push("]"); }else{ I.push("{"); for(D in A){ if(C.hasOwnProperty(A,D)){ I.push(D+E); if(C.isObject(A[D])){ I.push((G>0)?C.dump(A[D],G-1):J); }else{ I.push(A[D]); } I.push(H); } } if(I.length>1){ I.pop(); } I.push("}"); } return I.join(""); },substitute:function(Q,B,J){ var G,F,E,M,N,P,D=YAHOO.lang,L=[],C,H="dump",K=" ",A="{",O="}"; for(;;){ G=Q.lastIndexOf(A); if(G<0){ break; } F=Q.indexOf(O,G); if(G+1>=F){ break; } C=Q.substring(G+1,F); M=C; P=null; E=M.indexOf(K); if(E>-1){ P=M.substring(E+1); M=M.substring(0,E); } N=B[M]; if(J){ N=J(M,N,P); } if(D.isObject(N)){ if(D.isArray(N)){ N=D.dump(N,parseInt(P,10)); }else{ P=P||""; var I=P.indexOf(H); if(I>-1){ P=P.substring(4); } if(N.toString===Object.prototype.toString||I>-1){ N=D.dump(N,parseInt(P,10)); }else{ N=N.toString(); } } }else{ if(!D.isString(N)&&!D.isNumber(N)){ N="~-"+L.length+"-~"; L[L.length]=C; } } Q=Q.substring(0,G)+N+Q.substring(F+1); } for(G=L.length-1;G>=0;G=G-1){ Q=Q.replace(new RegExp("~-"+G+"-~"),"{"+L[G]+"}","g"); } return Q; },trim:function(A){ try{ return A.replace(/^\s+|\s+$/g,""); } catch(B){ return A; } },merge:function(){ var D={},B=arguments; for(var C=0,A=B.length;C<A;C=C+1){ YAHOO.lang.augmentObject(D,B[C],true); } return D; },later:function(H,B,I,D,E){ H=H||0; B=B||{}; var C=I,G=D,F,A; if(YAHOO.lang.isString(I)){ C=B[I]; } if(!C){ throw new TypeError("method undefined"); } if(!YAHOO.lang.isArray(G)){ G=[D]; } F=function(){ C.apply(B,G); }; A=(E)?setInterval(F,H):setTimeout(F,H); return {interval:E,cancel:function(){ if(this.interval){ clearInterval(A); }else{ clearTimeout(A); } }}; },isValue:function(B){ var A=YAHOO.lang; return (A.isObject(B)||A.isString(B)||A.isNumber(B)||A.isBoolean(B)); }}; 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.5.0",build:"895"}); (function(){ var B=YAHOO.util,K,I,J={},F={},M=window.document; YAHOO.env._id_counter=YAHOO.env._id_counter||0; var C=YAHOO.env.ua.opera,L=YAHOO.env.ua.webkit,A=YAHOO.env.ua.gecko,G=YAHOO.env.ua.ie; var E={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i}; var N=function(P){ if(!E.HYPHEN.test(P)){ return P; } if(J[P]){ return J[P]; } var Q=P; while(E.HYPHEN.exec(Q)){ Q=Q.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase()); } J[P]=Q; return Q; }; var O=function(Q){ var P=F[Q]; if(!P){ P=new RegExp("(?:^|\\s+)"+Q+"(?:\\s+|$)"); F[Q]=P; } return P; }; if(M.defaultView&&M.defaultView.getComputedStyle){ K=function(P,S){ var R=null; if(S=="float"){ S="cssFloat"; } var Q=M.defaultView.getComputedStyle(P,""); if(Q){ R=Q[N(S)]; } return P.style[S]||R; }; }else{ if(M.documentElement.currentStyle&&G){ K=function(P,R){ switch(N(R)){ case "opacity": var T=100; try{ T=P.filters["DXImageTransform.Microsoft.Alpha"].opacity; } catch(S){ try{ T=P.filters("alpha").opacity; } catch(S){ } } return T/100; case "float": R="styleFloat"; default: var Q=P.currentStyle?P.currentStyle[R]:null; return (P.style[R]||Q); } }; }else{ K=function(P,Q){ return P.style[Q]; }; } } if(G){ I=function(P,Q,R){ switch(Q){ case "opacity": if(YAHOO.lang.isString(P.style.filter)){ P.style.filter="alpha(opacity="+R*100+")"; if(!P.currentStyle||!P.currentStyle.hasLayout){ P.style.zoom=1; } } break; case "float": Q="styleFloat"; default: P.style[Q]=R; } }; }else{ I=function(P,Q,R){ if(Q=="float"){ Q="cssFloat"; } P.style[Q]=R; }; } var D=function(P,Q){ return P&&P.nodeType==1&&(!Q||Q(P)); }; YAHOO.util.Dom={get:function(R){ if(R&&(R.nodeType||R.item)){ return R; } if(YAHOO.lang.isString(R)||!R){ return M.getElementById(R); } if(R.length!==undefined){ var S=[]; for(var Q=0,P=R.length;Q<P;++Q){ S[S.length]=B.Dom.get(R[Q]); } return S; } return R; },getStyle:function(P,R){ R=N(R); var Q=function(S){ return K(S,R); }; return B.Dom.batch(P,Q,B.Dom,true); },setStyle:function(P,R,S){ R=N(R); var Q=function(T){ I(T,R,S); }; B.Dom.batch(P,Q,B.Dom,true); },getXY:function(P){ var Q=function(R){ if((R.parentNode===null||R.offsetParent===null||this.getStyle(R,"display")=="none")&&R!=R.ownerDocument.body){ return false; } return H(R); }; return B.Dom.batch(P,Q,B.Dom,true); },getX:function(P){ var Q=function(R){ return B.Dom.getXY(R)[0]; }; return B.Dom.batch(P,Q,B.Dom,true); },getY:function(P){ var Q=function(R){ return B.Dom.getXY(R)[1]; }; return B.Dom.batch(P,Q,B.Dom,true); },setXY:function(P,S,R){ var Q=function(V){ var U=this.getStyle(V,"position"); if(U=="static"){ this.setStyle(V,"position","relative"); U="relative"; } var X=this.getXY(V); if(X===false){ return false; } var W=[parseInt(this.getStyle(V,"left"),10),parseInt(this.getStyle(V,"top"),10)]; if(isNaN(W[0])){ W[0]=(U=="relative")?0:V.offsetLeft; } if(isNaN(W[1])){ W[1]=(U=="relative")?0:V.offsetTop; } if(S[0]!==null){ V.style.left=S[0]-X[0]+W[0]+"px"; } if(S[1]!==null){ V.style.top=S[1]-X[1]+W[1]+"px"; } if(!R){ var T=this.getXY(V); if((S[0]!==null&&T[0]!=S[0])||(S[1]!==null&&T[1]!=S[1])){ this.setXY(V,S,true); } } }; B.Dom.batch(P,Q,B.Dom,true); },setX:function(Q,P){ B.Dom.setXY(Q,[P,null]); },setY:function(P,Q){ B.Dom.setXY(P,[null,Q]); },getRegion:function(P){ var Q=function(R){ if((R.parentNode===null||R.offsetParent===null||this.getStyle(R,"display")=="none")&&R!=M.body){ return false; } var S=B.Region.getRegion(R); return S; }; return B.Dom.batch(P,Q,B.Dom,true); },getClientWidth:function(){ return B.Dom.getViewportWidth(); },getClientHeight:function(){ return B.Dom.getViewportHeight(); },getElementsByClassName:function(T,X,U,V){ X=X||"*"; U=(U)?B.Dom.get(U):null||M; if(!U){ return []; } var Q=[],P=U.getElementsByTagName(X),W=O(T); for(var R=0,S=P.length;R<S;++R){ if(W.test(P[R].className)){ Q[Q.length]=P[R]; if(V){ V.call(P[R],P[R]); } } } return Q; },hasClass:function(R,Q){ var P=O(Q); var S=function(T){ return P.test(T.className); }; return B.Dom.batch(R,S,B.Dom,true); },addClass:function(Q,P){ var R=function(S){ if(this.hasClass(S,P)){ return false; } S.className=YAHOO.lang.trim([S.className,P].join(" ")); return true; }; return B.Dom.batch(Q,R,B.Dom,true); },removeClass:function(R,Q){ var P=O(Q); var S=function(T){ if(!Q||!this.hasClass(T,Q)){ return false; } var U=T.className; T.className=U.replace(P," "); if(this.hasClass(T,Q)){ this.removeClass(T,Q); } T.className=YAHOO.lang.trim(T.className); return true; }; return B.Dom.batch(R,S,B.Dom,true); },replaceClass:function(S,Q,P){ if(!P||Q===P){ return false; } var R=O(Q); var T=function(U){ if(!this.hasClass(U,Q)){ this.addClass(U,P); return true; } U.className=U.className.replace(R," "+P+" "); if(this.hasClass(U,Q)){ this.replaceClass(U,Q,P); } U.className=YAHOO.lang.trim(U.className); return true; }; return B.Dom.batch(S,T,B.Dom,true); },generateId:function(P,R){ R=R||"yui-gen"; var Q=function(S){ if(S&&S.id){ return S.id; } var T=R+YAHOO.env._id_counter++; if(S){ S.id=T; } return T; }; return B.Dom.batch(P,Q,B.Dom,true)||Q.apply(B.Dom,arguments); },isAncestor:function(P,Q){ P=B.Dom.get(P); Q=B.Dom.get(Q); if(!P||!Q){ return false; } if(P.contains&&Q.nodeType&&!L){ return P.contains(Q); }else{ if(P.compareDocumentPosition&&Q.nodeType){ return !!(P.compareDocumentPosition(Q)&16); }else{ if(Q.nodeType){ return !!this.getAncestorBy(Q,function(R){ return R==P; }); } } } return false; },inDocument:function(P){ return this.isAncestor(M.documentElement,P); },getElementsBy:function(W,Q,R,T){ Q=Q||"*"; R=(R)?B.Dom.get(R):null||M; if(!R){ return []; } var S=[],V=R.getElementsByTagName(Q); for(var U=0,P=V.length;U<P;++U){ if(W(V[U])){ S[S.length]=V[U]; if(T){ T(V[U]); } } } return S; },batch:function(T,W,V,R){ T=(T&&(T.tagName||T.item))?T:B.Dom.get(T); if(!T||!W){ return false; } var S=(R)?V:window; if(T.tagName||T.length===undefined){ return W.call(S,T,V); } var U=[]; for(var Q=0,P=T.length;Q<P;++Q){ U[U.length]=W.call(S,T[Q],V); } return U; },getDocumentHeight:function(){ var Q=(M.compatMode!="CSS1Compat")?M.body.scrollHeight:M.documentElement.scrollHeight; var P=Math.max(Q,B.Dom.getViewportHeight()); return P; },getDocumentWidth:function(){ var Q=(M.compatMode!="CSS1Compat")?M.body.scrollWidth:M.documentElement.scrollWidth; var P=Math.max(Q,B.Dom.getViewportWidth()); return P; },getViewportHeight:function(){ var P=self.innerHeight; var Q=M.compatMode; if((Q||G)&&!C){ P=(Q=="CSS1Compat")?M.documentElement.clientHeight:M.body.clientHeight; } return P; },getViewportWidth:function(){ var P=self.innerWidth; var Q=M.compatMode; if(Q||G){ P=(Q=="CSS1Compat")?M.documentElement.clientWidth:M.body.clientWidth; } return P; },getAncestorBy:function(P,Q){ while(P=P.parentNode){ if(D(P,Q)){ return P; } } return null; },getAncestorByClassName:function(Q,P){ Q=B.Dom.get(Q); if(!Q){ return null; } var R=function(S){ return B.Dom.hasClass(S,P); }; return B.Dom.getAncestorBy(Q,R); },getAncestorByTagName:function(Q,P){ Q=B.Dom.get(Q); if(!Q){ return null; } var R=function(S){ return S.tagName&&S.tagName.toUpperCase()==P.toUpperCase(); }; return B.Dom.getAncestorBy(Q,R); },getPreviousSiblingBy:function(P,Q){ while(P){ P=P.previousSibling; if(D(P,Q)){ return P; } } return null; },getPreviousSibling:function(P){ P=B.Dom.get(P); if(!P){ return null; } return B.Dom.getPreviousSiblingBy(P); },getNextSiblingBy:function(P,Q){ while(P){ P=P.nextSibling; if(D(P,Q)){ return P; } } return null; },getNextSibling:function(P){ P=B.Dom.get(P); if(!P){ return null; } return B.Dom.getNextSiblingBy(P); },getFirstChildBy:function(P,R){ var Q=(D(P.firstChild,R))?P.firstChild:null; return Q||B.Dom.getNextSiblingBy(P.firstChild,R); },getFirstChild:function(P,Q){ P=B.Dom.get(P); if(!P){ return null; } return B.Dom.getFirstChildBy(P); },getLastChildBy:function(P,R){ if(!P){ return null; } var Q=(D(P.lastChild,R))?P.lastChild:null; return Q||B.Dom.getPreviousSiblingBy(P.lastChild,R); },getLastChild:function(P){ P=B.Dom.get(P); return B.Dom.getLastChildBy(P); },getChildrenBy:function(Q,S){ var R=B.Dom.getFirstChildBy(Q,S); var P=R?[R]:[]; B.Dom.getNextSiblingBy(R,function(T){ if(!S||S(T)){ P[P.length]=T; } return false; }); return P; },getChildren:function(P){ P=B.Dom.get(P); if(!P){ } return B.Dom.getChildrenBy(P); },getDocumentScrollLeft:function(P){ P=P||M; return Math.max(P.documentElement.scrollLeft,P.body.scrollLeft); },getDocumentScrollTop:function(P){ P=P||M; return Math.max(P.documentElement.scrollTop,P.body.scrollTop); },insertBefore:function(Q,P){ Q=B.Dom.get(Q); P=B.Dom.get(P); if(!Q||!P||!P.parentNode){ return null; } return P.parentNode.insertBefore(Q,P); },insertAfter:function(Q,P){ Q=B.Dom.get(Q); P=B.Dom.get(P); if(!Q||!P||!P.parentNode){ return null; } if(P.nextSibling){ return P.parentNode.insertBefore(Q,P.nextSibling); }else{ return P.parentNode.appendChild(Q); } },getClientRegion:function(){ var R=B.Dom.getDocumentScrollTop(),Q=B.Dom.getDocumentScrollLeft(),S=B.Dom.getViewportWidth()+Q,P=B.Dom.getViewportHeight()+R; return new B.Region(R,S,P,Q); }}; var H=function(){ if(M.documentElement.getBoundingClientRect){ return function(Q){ var R=Q.getBoundingClientRect(); var P=Q.ownerDocument; return [R.left+B.Dom.getDocumentScrollLeft(P),R.top+B.Dom.getDocumentScrollTop(P)]; }; }else{ return function(R){ var S=[R.offsetLeft,R.offsetTop]; var Q=R.offsetParent; var P=(L&&B.Dom.getStyle(R,"position")=="absolute"&&R.offsetParent==R.ownerDocument.body); if(Q!=R){ while(Q){ S[0]+=Q.offsetLeft; S[1]+=Q.offsetTop; if(!P&&L&&B.Dom.getStyle(Q,"position")=="absolute"){ P=true; } Q=Q.offsetParent; } } if(P){ S[0]-=R.ownerDocument.body.offsetLeft; S[1]-=R.ownerDocument.body.offsetTop; } Q=R.parentNode; while(Q.tagName&&!E.ROOT_TAG.test(Q.tagName)){ if(B.Dom.getStyle(Q,"display").search(/^inline|table-row.*$/i)){ S[0]-=Q.scrollLeft; S[1]-=Q.scrollTop; } Q=Q.parentNode; } return S; }; } }(); })(); YAHOO.util.Region=function(C,D,A,B){ this.top=C; this[1]=C; this.right=D; this.bottom=A; this.left=B; this[0]=B; }; YAHOO.util.Region.prototype.contains=function(A){ return (A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom); }; YAHOO.util.Region.prototype.getArea=function(){ return ((this.bottom-this.top)*(this.right-this.left)); }; YAHOO.util.Region.prototype.intersect=function(E){ var C=Math.max(this.top,E.top); var D=Math.min(this.right,E.right); var A=Math.min(this.bottom,E.bottom); var B=Math.max(this.left,E.left); if(A>=C&&D>=B){ return new YAHOO.util.Region(C,D,A,B); }else{ return null; } }; YAHOO.util.Region.prototype.union=function(E){ var C=Math.min(this.top,E.top); var D=Math.max(this.right,E.right); var A=Math.max(this.bottom,E.bottom); var B=Math.min(this.left,E.left); return new YAHOO.util.Region(C,D,A,B); }; 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(D){ var F=YAHOO.util.Dom.getXY(D); var C=F[1]; var E=F[0]+D.offsetWidth; var A=F[1]+D.offsetHeight; var B=F[0]; return new YAHOO.util.Region(C,E,A,B); }; YAHOO.util.Point=function(A,B){ if(YAHOO.lang.isArray(A)){ B=A[1]; A=A[0]; } this.x=this.right=this.left=this[0]=A; this.y=this.top=this.bottom=this[1]=B; }; YAHOO.util.Point.prototype=new YAHOO.util.Region(); YAHOO.register("dom",YAHOO.util.Dom,{version:"2.5.0",build:"895"}); YAHOO.util.CustomEvent=function(D,B,C,A){ this.type=D; this.scope=B||window; this.silent=C; this.signature=A||YAHOO.util.CustomEvent.LIST; this.subscribers=[]; if(!this.silent){ } var E="_YUICEOnSubscribe"; if(D!==E){ this.subscribeEvent=new YAHOO.util.CustomEvent(E,this,true); } this.lastError=null; }; YAHOO.util.CustomEvent.LIST=0; YAHOO.util.CustomEvent.FLAT=1; YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,A){ if(!B){ throw new Error("Invalid callback for subscriber to '"+this.type+"'"); } if(this.subscribeEvent){ this.subscribeEvent.fire(B,C,A); } this.subscribers.push(new YAHOO.util.Subscriber(B,C,A)); },unsubscribe:function(D,F){ if(!D){ return this.unsubscribeAll(); } var E=false; for(var B=0,A=this.subscribers.length;B<A;++B){ var C=this.subscribers[B]; if(C&&C.contains(D,F)){ this._delete(B); E=true; } } return E; },fire:function(){ var D=this.subscribers.length; if(!D&&this.silent){ return true; } var H=[],F=true,C,I=false; for(C=0;C<arguments.length;++C){ H.push(arguments[C]); } if(!this.silent){ } for(C=0;C<D;++C){ var L=this.subscribers[C]; if(!L){ I=true; }else{ if(!this.silent){ } var K=L.getScope(this.scope); if(this.signature==YAHOO.util.CustomEvent.FLAT){ var A=null; if(H.length>0){ A=H[0]; } try{ F=L.fn.call(K,A,L.obj); } catch(E){ this.lastError=E; } }else{ try{ F=L.fn.call(K,this.type,H,L.obj); } catch(G){ this.lastError=G; } } if(false===F){ if(!this.silent){ } return false; } } } if(I){ var J=[],B=this.subscribers; for(C=0,D=B.length;C<D;C=C+1){ J.push(B[C]); } this.subscribers=J; } return true; },unsubscribeAll:function(){ for(var B=0,A=this.subscribers.length;B<A;++B){ this._delete(A-1-B); } this.subscribers=[]; return B; },_delete:function(A){ var B=this.subscribers[A]; if(B){ delete B.fn; delete B.obj; } this.subscribers[A]=null; },toString:function(){ return "CustomEvent: "+"'"+this.type+"', "+"scope: "+this.scope; }}; YAHOO.util.Subscriber=function(B,C,A){ this.fn=B; this.obj=YAHOO.lang.isUndefined(C)?null:C; this.override=A; }; YAHOO.util.Subscriber.prototype.getScope=function(A){ if(this.override){ if(this.override===true){ return this.obj; }else{ return this.override; } } return A; }; YAHOO.util.Subscriber.prototype.contains=function(A,B){ if(B){ return (this.fn==A&&this.obj==B); }else{ return (this.fn==A); } }; YAHOO.util.Subscriber.prototype.toString=function(){ return "Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }"; }; if(!YAHOO.util.Event){ YAHOO.util.Event=function(){ var H=false; var I=[]; var J=[]; var G=[]; var E=[]; var C=0; var F=[]; var B=[]; var A=0; var D={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9}; return {POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,startInterval:function(){ if(!this._interval){ var K=this; var L=function(){ K._tryPreloadAttach(); }; this._interval=setInterval(L,this.POLL_INTERVAL); } },onAvailable:function(P,M,Q,O,N){ var K=(YAHOO.lang.isString(P))?[P]:P; for(var L=0;L<K.length;L=L+1){ F.push({id:K[L],fn:M,obj:Q,override:O,checkReady:N}); } C=this.POLL_RETRYS; this.startInterval(); },onContentReady:function(M,K,N,L){ this.onAvailable(M,K,N,L,true); },onDOMReady:function(K,M,L){ if(this.DOMReady){ setTimeout(function(){ var N=window; if(L){ if(L===true){ N=M; }else{ N=L; } } K.call(N,"DOMReady",[],M); },0); }else{ this.DOMReadyEvent.subscribe(K,M,L); } },addListener:function(M,K,V,Q,L){ if(!V||!V.call){ return false; } if(this._isValidCollection(M)){ var W=true; for(var R=0,T=M.length;R<T;++R){ W=this.on(M[R],K,V,Q,L)&&W; } return W; }else{ if(YAHOO.lang.isString(M)){ var P=this.getEl(M); if(P){ M=P; }else{ this.onAvailable(M,function(){ YAHOO.util.Event.on(M,K,V,Q,L); }); return true; } } } if(!M){ return false; } if("unload"==K&&Q!==this){ J[J.length]=[M,K,V,Q,L]; return true; } var Y=M; if(L){ if(L===true){ Y=Q; }else{ Y=L; } } var N=function(Z){ return V.call(Y,YAHOO.util.Event.getEvent(Z,M),Q); }; var X=[M,K,V,N,Y,Q,L]; var S=I.length; I[S]=X; if(this.useLegacyEvent(M,K)){ var O=this.getLegacyIndex(M,K); if(O==-1||M!=G[O][0]){ O=G.length; B[M.id+K]=O; G[O]=[M,K,M["on"+K]]; E[O]=[]; M["on"+K]=function(Z){ YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(Z),O); }; } E[O].push(X); }else{ try{ this._simpleAdd(M,K,N,false); } catch(U){ this.lastError=U; this.removeListener(M,K,V); return false; } } return true; },fireLegacyEvent:function(O,M){ var Q=true,K,S,R,T,P; S=E[M]; for(var L=0,N=S.length;L<N;++L){ R=S[L]; if(R&&R[this.WFN]){ T=R[this.ADJ_SCOPE]; P=R[this.WFN].call(T,O); Q=(Q&&P); } } K=G[M]; if(K&&K[2]){ K[2](O); } return Q; },getLegacyIndex:function(L,M){ var K=this.generateId(L)+M; if(typeof B[K]=="undefined"){ return -1; }else{ return B[K]; } },useLegacyEvent:function(L,M){ if(this.webkit&&("click"==M||"dblclick"==M)){ var K=parseInt(this.webkit,10); if(!isNaN(K)&&K<418){ return true; } } return false; },removeListener:function(L,K,T){ var O,R,V; if(typeof L=="string"){ L=this.getEl(L); }else{ if(this._isValidCollection(L)){ var U=true; for(O=0,R=L.length;O<R;++O){ U=(this.removeListener(L[O],K,T)&&U); } return U; } } if(!T||!T.call){ return this.purgeElement(L,false,K); } if("unload"==K){ for(O=0,R=J.length;O<R;O++){ V=J[O]; if(V&&V[0]==L&&V[1]==K&&V[2]==T){ J[O]=null; return true; } } return false; } var P=null; var Q=arguments[3]; if("undefined"===typeof Q){ Q=this._getCacheIndex(L,K,T); } if(Q>=0){ P=I[Q]; } if(!L||!P){ return false; } if(this.useLegacyEvent(L,K)){ var N=this.getLegacyIndex(L,K); var M=E[N]; if(M){ for(O=0,R=M.length;O<R;++O){ V=M[O]; if(V&&V[this.EL]==L&&V[this.TYPE]==K&&V[this.FN]==T){ M[O]=null; break; } } } }else{ try{ this._simpleRemove(L,K,P[this.WFN],false); } catch(S){ this.lastError=S; return false; } } delete I[Q][this.WFN]; delete I[Q][this.FN]; I[Q]=null; return true; },getTarget:function(M,L){ var K=M.target||M.srcElement; return this.resolveTextNode(K); },resolveTextNode:function(L){ try{ if(L&&3==L.nodeType){ return L.parentNode; } } catch(K){ } return L; },getPageX:function(L){ var K=L.pageX; if(!K&&0!==K){ K=L.clientX||0; if(this.isIE){ K+=this._getScrollLeft(); } } return K; },getPageY:function(K){ var L=K.pageY; if(!L&&0!==L){ L=K.clientY||0; if(this.isIE){ L+=this._getScrollTop(); } } return L; },getXY:function(K){ return [this.getPageX(K),this.getPageY(K)]; },getRelatedTarget:function(L){ var K=L.relatedTarget; if(!K){ if(L.type=="mouseout"){ K=L.toElement; }else{ if(L.type=="mouseover"){ K=L.fromElement; } } } return this.resolveTextNode(K); },getTime:function(M){ if(!M.time){ var L=new Date().getTime(); try{ M.time=L; } catch(K){ this.lastError=K; return L; } } return M.time; },stopEvent:function(K){ this.stopPropagation(K); this.preventDefault(K); },stopPropagation:function(K){ if(K.stopPropagation){ K.stopPropagation(); }else{ K.cancelBubble=true; } },preventDefault:function(K){ if(K.preventDefault){ K.preventDefault(); }else{ K.returnValue=false; } },getEvent:function(M,K){ var L=M||window.event; if(!L){ var N=this.getEvent.caller; while(N){ L=N.arguments[0]; if(L&&Event==L.constructor){ break; } N=N.caller; } } return L; },getCharCode:function(L){ var K=L.keyCode||L.charCode||0; if(YAHOO.env.ua.webkit&&(K in D)){ K=D[K]; } return K; },_getCacheIndex:function(O,P,N){ for(var M=0,L=I.length;M<L;++M){ var K=I[M]; if(K&&K[this.FN]==N&&K[this.EL]==O&&K[this.TYPE]==P){ return M; } } return -1; },generateId:function(K){ var L=K.id; if(!L){ L="yuievtautoid-"+A; ++A; K.id=L; } return L; },_isValidCollection:function(L){ try{ return (L&&typeof L!=="string"&&L.length&&!L.tagName&&!L.alert&&typeof L[0]!=="undefined"); } catch(K){ return false; } },elCache:{},getEl:function(K){ return (typeof K==="string")?document.getElementById(K):K; },clearCache:function(){ },DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(L){ if(!H){ H=true; var K=YAHOO.util.Event; K._ready(); K._tryPreloadAttach(); } },_ready:function(L){ var K=YAHOO.util.Event; if(!K.DOMReady){ K.DOMReady=true; K.DOMReadyEvent.fire(); K._simpleRemove(document,"DOMContentLoaded",K._ready); } },_tryPreloadAttach:function(){ if(this.locked){ return false; } if(this.isIE){ if(!this.DOMReady){ this.startInterval(); return false; } } this.locked=true; var P=!H; if(!P){ P=(C>0); } var O=[]; var Q=function(S,T){ var R=S; if(T.override){ if(T.override===true){ R=T.obj; }else{ R=T.override; } } T.fn.call(R,T.obj); }; var L,K,N,M; for(L=0,K=F.length;L<K;++L){ N=F[L]; if(N&&!N.checkReady){ M=this.getEl(N.id); if(M){ Q(M,N); F[L]=null; }else{ O.push(N); } } } for(L=0,K=F.length;L<K;++L){ N=F[L]; if(N&&N.checkReady){ M=this.getEl(N.id); if(M){ if(H||M.nextSibling){ Q(M,N); F[L]=null; } }else{ O.push(N); } } } C=(O.length===0)?0:C-1; if(P){ this.startInterval(); }else{ clearInterval(this._interval); this._interval=null; } this.locked=false; return true; },purgeElement:function(O,P,R){ var M=(YAHOO.lang.isString(O))?this.getEl(O):O; var Q=this.getListeners(M,R),N,K; if(Q){ for(N=0,K=Q.length;N<K;++N){ var L=Q[N]; this.removeListener(M,L.type,L.fn,L.index); } } if(P&&M&&M.childNodes){ for(N=0,K=M.childNodes.length;N<K;++N){ this.purgeElement(M.childNodes[N],P,R); } } },getListeners:function(M,K){ var P=[],L; if(!K){ L=[I,J]; }else{ if(K==="unload"){ L=[J]; }else{ L=[I]; } } var R=(YAHOO.lang.isString(M))?this.getEl(M):M; for(var O=0;O<L.length;O=O+1){ var T=L[O]; if(T&&T.length>0){ for(var Q=0,S=T.length;Q<S;++Q){ var N=T[Q]; if(N&&N[this.EL]===R&&(!K||K===N[this.TYPE])){ P.push({type:N[this.TYPE],fn:N[this.FN],obj:N[this.OBJ],adjust:N[this.OVERRIDE],scope:N[this.ADJ_SCOPE],index:Q}); } } } } return (P.length)?P:null; },_unload:function(R){ var Q=YAHOO.util.Event,O,N,L,K,M; for(O=0,K=J.length;O<K;++O){ L=J[O]; if(L){ var P=window; if(L[Q.ADJ_SCOPE]){ if(L[Q.ADJ_SCOPE]===true){ P=L[Q.UNLOAD_OBJ]; }else{ P=L[Q.ADJ_SCOPE]; } } L[Q.FN].call(P,Q.getEvent(R,L[Q.EL]),L[Q.UNLOAD_OBJ]); J[O]=null; L=null; P=null; } } J=null; if(I&&I.length>0){ N=I.length; while(N){ M=N-1; L=I[M]; if(L){ Q.removeListener(L[Q.EL],L[Q.TYPE],L[Q.FN],M); } N--; } L=null; } G=null; Q._simpleRemove(window,"unload",Q._unload); },_getScrollLeft:function(){ return this._getScroll()[1]; },_getScrollTop:function(){ return this._getScroll()[0]; },_getScroll:function(){ var K=document.documentElement,L=document.body; if(K&&(K.scrollTop||K.scrollLeft)){ return [K.scrollTop,K.scrollLeft]; }else{ if(L){ return [L.scrollTop,L.scrollLeft]; }else{ return [0,0]; } } },regCE:function(){ },_simpleAdd:function(){ if(window.addEventListener){ return function(M,N,L,K){ M.addEventListener(N,L,(K)); }; }else{ if(window.attachEvent){ return function(M,N,L,K){ M.attachEvent("on"+N,L); }; }else{ return function(){ }; } } }(),_simpleRemove:function(){ if(window.removeEventListener){ return function(M,N,L,K){ M.removeEventListener(N,L,(K)); }; }else{ if(window.detachEvent){ return function(L,M,K){ L.detachEvent("on"+M,K); }; }else{ return function(){ }; } } }()}; }(); (function(){ var EU=YAHOO.util.Event; EU.on=EU.addListener; if(EU.isIE){ YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true); EU._dri=setInterval(function(){ var n=document.createElement("p"); try{ n.doScroll("left"); clearInterval(EU._dri); EU._dri=null; EU._ready(); n=null; } catch(ex){ n=null; } },EU.POLL_INTERVAL); }else{ if(EU.webkit&&EU.webkit<525){ EU._dri=setInterval(function(){ var rs=document.readyState; if("loaded"==rs||"complete"==rs){ clearInterval(EU._dri); EU._dri=null; EU._ready(); } },EU.POLL_INTERVAL); }else{ EU._simpleAdd(document,"DOMContentLoaded",EU._ready); } } EU._simpleAdd(window,"load",EU._load); EU._simpleAdd(window,"unload",EU._unload); EU._tryPreloadAttach(); })(); } YAHOO.util.EventProvider=function(){ }; YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){ this.__yui_events=this.__yui_events||{}; var D=this.__yui_events[A]; if(D){ D.subscribe(C,F,E); }else{ this.__yui_subscribers=this.__yui_subscribers||{}; var B=this.__yui_subscribers; if(!B[A]){ B[A]=[]; } B[A].push({fn:C,obj:F,override:E}); } },unsubscribe:function(C,E,G){ this.__yui_events=this.__yui_events||{}; var A=this.__yui_events; if(C){ var F=A[C]; if(F){ return F.unsubscribe(E,G); } }else{ var B=true; for(var D in A){ if(YAHOO.lang.hasOwnProperty(A,D)){ B=B&&A[D].unsubscribe(E,G); } } return B; } return false; },unsubscribeAll:function(A){ return this.unsubscribe(A); },createEvent:function(G,D){ this.__yui_events=this.__yui_events||{}; var A=D||{}; var I=this.__yui_events; if(I[G]){ }else{ var H=A.scope||this; var E=(A.silent); var B=new YAHOO.util.CustomEvent(G,H,E,YAHOO.util.CustomEvent.FLAT); I[G]=B; if(A.onSubscribeCallback){ B.subscribeEvent.subscribe(A.onSubscribeCallback); } this.__yui_subscribers=this.__yui_subscribers||{}; var F=this.__yui_subscribers[G]; if(F){ for(var C=0;C<F.length;++C){ B.subscribe(F[C].fn,F[C].obj,F[C].override); } } } return I[G]; },fireEvent:function(E,D,A,C){ this.__yui_events=this.__yui_events||{}; var G=this.__yui_events[E]; if(!G){ return null; } var B=[]; for(var F=1;F<arguments.length;++F){ B.push(arguments[F]); } return G.fire.apply(G,B); },hasEvent:function(A){ if(this.__yui_events){ if(this.__yui_events[A]){ return true; } } return false; }}; YAHOO.util.KeyListener=function(A,F,B,C){ if(!A){ }else{ if(!F){ }else{ if(!B){ } } } if(!C){ C=YAHOO.util.KeyListener.KEYDOWN; } var D=new YAHOO.util.CustomEvent("keyPressed"); this.enabledEvent=new YAHOO.util.CustomEvent("enabled"); this.disabledEvent=new YAHOO.util.CustomEvent("disabled"); if(typeof A=="string"){ A=document.getElementById(A); } if(typeof B=="function"){ D.subscribe(B); }else{ D.subscribe(B.fn,B.scope,B.correctScope); } function E(J,I){ if(!F.shift){ F.shift=false; } if(!F.alt){ F.alt=false; } if(!F.ctrl){ F.ctrl=false; } if(J.shiftKey==F.shift&&J.altKey==F.alt&&J.ctrlKey==F.ctrl){ var G; if(F.keys instanceof Array){ for(var H=0;H<F.keys.length;H++){ G=F.keys[H]; if(G==J.charCode){ D.fire(J.charCode,J); break; }else{ if(G==J.keyCode){ D.fire(J.keyCode,J); break; } } } }else{ G=F.keys; if(G==J.charCode){ D.fire(J.charCode,J); }else{ if(G==J.keyCode){ D.fire(J.keyCode,J); } } } } } this.enable=function(){ if(!this.enabled){ YAHOO.util.Event.addListener(A,C,E); this.enabledEvent.fire(F); } this.enabled=true; }; this.disable=function(){ if(this.enabled){ YAHOO.util.Event.removeListener(A,C,E); this.disabledEvent.fire(F); } this.enabled=false; }; this.toString=function(){ return "KeyListener ["+F.keys+"] "+A.tagName+(A.id?"["+A.id+"]":""); }; }; YAHOO.util.KeyListener.KEYDOWN="keydown"; YAHOO.util.KeyListener.KEYUP="keyup"; YAHOO.util.KeyListener.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38}; YAHOO.register("event",YAHOO.util.Event,{version:"2.5.0",build:"895"}); YAHOO.register("yahoo-dom-event",YAHOO,{version:"2.5.0",build:"895"});  YAHOO.widget.LogMsg=function(A){ if(A&&(A.constructor==Object)){ for(var B in A){ this[B]=A[B]; } } }; YAHOO.widget.LogMsg.prototype.msg=null; YAHOO.widget.LogMsg.prototype.time=null; YAHOO.widget.LogMsg.prototype.category=null; YAHOO.widget.LogMsg.prototype.source=null; YAHOO.widget.LogMsg.prototype.sourceDetail=null; YAHOO.widget.LogWriter=function(A){ if(!A){ YAHOO.log("Could not instantiate LogWriter due to invalid source.","error","LogWriter"); return; } this._source=A; }; YAHOO.widget.LogWriter.prototype.toString=function(){ return "LogWriter "+this._sSource; }; YAHOO.widget.LogWriter.prototype.log=function(A,B){ YAHOO.widget.Logger.log(A,B,this._source); }; YAHOO.widget.LogWriter.prototype.getSource=function(){ return this._sSource; }; YAHOO.widget.LogWriter.prototype.setSource=function(A){ if(!A){ YAHOO.log("Could not set source due to invalid source.","error",this.toString()); return; }else{ this._sSource=A; } }; YAHOO.widget.LogWriter.prototype._source=null; YAHOO.widget.LogReader=function(B,A){ this._sName=YAHOO.widget.LogReader._index; YAHOO.widget.LogReader._index++; this._buffer=[]; this._filterCheckboxes={}; this._lastTime=YAHOO.widget.Logger.getStartTime(); if(A&&(A.constructor==Object)){ for(var C in A){ this[C]=A[C]; } } this._initContainerEl(B); if(!this._elContainer){ YAHOO.log("Could not instantiate LogReader due to an invalid container element "+B,"error",this.toString()); return; } this._initHeaderEl(); this._initConsoleEl(); this._initFooterEl(); this._initDragDrop(); this._initCategories(); this._initSources(); YAHOO.widget.Logger.newLogEvent.subscribe(this._onNewLog,this); YAHOO.widget.Logger.logResetEvent.subscribe(this._onReset,this); YAHOO.widget.Logger.categoryCreateEvent.subscribe(this._onCategoryCreate,this); YAHOO.widget.Logger.sourceCreateEvent.subscribe(this._onSourceCreate,this); this._filterLogs(); YAHOO.log("LogReader initialized",null,this.toString()); }; YAHOO.widget.LogReader.prototype.logReaderEnabled=true; YAHOO.widget.LogReader.prototype.width=null; YAHOO.widget.LogReader.prototype.height=null; YAHOO.widget.LogReader.prototype.top=null; YAHOO.widget.LogReader.prototype.left=null; YAHOO.widget.LogReader.prototype.right=null; YAHOO.widget.LogReader.prototype.bottom=null; YAHOO.widget.LogReader.prototype.fontSize=null; YAHOO.widget.LogReader.prototype.footerEnabled=true; YAHOO.widget.LogReader.prototype.verboseOutput=true; YAHOO.widget.LogReader.prototype.newestOnTop=true; YAHOO.widget.LogReader.prototype.outputBuffer=100; YAHOO.widget.LogReader.prototype.thresholdMax=500; YAHOO.widget.LogReader.prototype.thresholdMin=100; YAHOO.widget.LogReader.prototype.isCollapsed=false; YAHOO.widget.LogReader.prototype.isPaused=false; YAHOO.widget.LogReader.prototype.draggable=true; YAHOO.widget.LogReader.prototype.toString=function(){ return "LogReader instance"+this._sName; }; YAHOO.widget.LogReader.prototype.pause=function(){ this.isPaused=true; this._btnPause.value="Resume"; this._timeout=null; this.logReaderEnabled=false; }; YAHOO.widget.LogReader.prototype.resume=function(){ this.isPaused=false; this._btnPause.value="Pause"; this.logReaderEnabled=true; this._printBuffer(); }; YAHOO.widget.LogReader.prototype.hide=function(){ this._elContainer.style.display="none"; }; YAHOO.widget.LogReader.prototype.show=function(){ this._elContainer.style.display="block"; }; YAHOO.widget.LogReader.prototype.collapse=function(){ this._elConsole.style.display="none"; if(this._elFt){ this._elFt.style.display="none"; } this._btnCollapse.value="Expand"; this.isCollapsed=true; }; YAHOO.widget.LogReader.prototype.expand=function(){ this._elConsole.style.display="block"; if(this._elFt){ this._elFt.style.display="block"; } this._btnCollapse.value="Collapse"; this.isCollapsed=false; }; YAHOO.widget.LogReader.prototype.getCheckbox=function(A){ return this._filterCheckboxes[A]; }; YAHOO.widget.LogReader.prototype.getCategories=function(){ return this._categoryFilters; }; YAHOO.widget.LogReader.prototype.showCategory=function(B){ var D=this._categoryFilters; if(D.indexOf){ if(D.indexOf(B)>-1){ return; } }else{ for(var A=0;A<D.length;A++){ if(D[A]===B){ return; } } } this._categoryFilters.push(B); this._filterLogs(); var C=this.getCheckbox(B); if(C){ C.checked=true; } }; YAHOO.widget.LogReader.prototype.hideCategory=function(B){ var D=this._categoryFilters; for(var A=0;A<D.length;A++){ if(B==D[A]){ D.splice(A,1); break; } } this._filterLogs(); var C=this.getCheckbox(B); if(C){ C.checked=false; } }; YAHOO.widget.LogReader.prototype.getSources=function(){ return this._sourceFilters; }; YAHOO.widget.LogReader.prototype.showSource=function(A){ var D=this._sourceFilters; if(D.indexOf){ if(D.indexOf(A)>-1){ return; } }else{ for(var B=0;B<D.length;B++){ if(A==D[B]){ return; } } } D.push(A); this._filterLogs(); var C=this.getCheckbox(A); if(C){ C.checked=true; } }; YAHOO.widget.LogReader.prototype.hideSource=function(A){ var D=this._sourceFilters; for(var B=0;B<D.length;B++){ if(A==D[B]){ D.splice(B,1); break; } } this._filterLogs(); var C=this.getCheckbox(A); if(C){ C.checked=false; } }; YAHOO.widget.LogReader.prototype.clearConsole=function(){ this._timeout=null; this._buffer=[]; this._consoleMsgCount=0; var A=this._elConsole; while(A.hasChildNodes()){ A.removeChild(A.firstChild); } }; YAHOO.widget.LogReader.prototype.setTitle=function(A){ this._title.innerHTML=this.html2Text(A); }; YAHOO.widget.LogReader.prototype.getLastTime=function(){ return this._lastTime; }; YAHOO.widget.LogReader.prototype.formatMsg=function(D){ var E=D.category; var L=E.substring(0,4).toUpperCase(); var I=D.time; var J; if(I.toLocaleTimeString){ J=I.toLocaleTimeString(); }else{ J=I.toString(); } var B=I.getTime(); var F=YAHOO.widget.Logger.getStartTime(); var C=B-F; var N=B-this.getLastTime(); var A=D.source; var M=D.sourceDetail; var K=(M)?A+" "+M:A; var H=this.html2Text(YAHOO.lang.dump(D.msg)); var G=(this.verboseOutput)?["<pre class=\"yui-log-verbose\"><p><span class='",E,"'>",L,"</span> ",C,"ms (+",N,") ",J,": ","</p><p>",K,": </p><p>",H,"</p></pre>"]:["<pre><p><span class='",E,"'>",L,"</span> ",C,"ms (+",N,") ",J,": ",K,": ",H,"</p></pre>"]; return G.join(""); }; YAHOO.widget.LogReader.prototype.html2Text=function(A){ if(A){ A+=""; return A.replace(/&/g,"&#38;").replace(/</g,"&#60;").replace(/>/g,"&#62;"); } return ""; }; YAHOO.widget.LogReader._index=0; YAHOO.widget.LogReader.prototype._sName=null; YAHOO.widget.LogReader.prototype._buffer=null; YAHOO.widget.LogReader.prototype._consoleMsgCount=0; YAHOO.widget.LogReader.prototype._lastTime=null; YAHOO.widget.LogReader.prototype._timeout=null; YAHOO.widget.LogReader.prototype._filterCheckboxes=null; YAHOO.widget.LogReader.prototype._categoryFilters=null; YAHOO.widget.LogReader.prototype._sourceFilters=null; YAHOO.widget.LogReader.prototype._elContainer=null; YAHOO.widget.LogReader.prototype._elHd=null; YAHOO.widget.LogReader.prototype._elCollapse=null; YAHOO.widget.LogReader.prototype._btnCollapse=null; YAHOO.widget.LogReader.prototype._title=null; YAHOO.widget.LogReader.prototype._elConsole=null; YAHOO.widget.LogReader.prototype._elFt=null; YAHOO.widget.LogReader.prototype._elBtns=null; YAHOO.widget.LogReader.prototype._elCategoryFilters=null; YAHOO.widget.LogReader.prototype._elSourceFilters=null; YAHOO.widget.LogReader.prototype._btnPause=null; YAHOO.widget.LogReader.prototype._btnClear=null; YAHOO.widget.LogReader.prototype._initContainerEl=function(B){ B=YAHOO.util.Dom.get(B); if(B&&B.tagName&&(B.tagName.toLowerCase()=="div")){ this._elContainer=B; YAHOO.util.Dom.addClass(this._elContainer,"yui-log"); }else{ this._elContainer=document.body.appendChild(document.createElement("div")); YAHOO.util.Dom.addClass(this._elContainer,"yui-log"); YAHOO.util.Dom.addClass(this._elContainer,"yui-log-container"); var A=this._elContainer.style; if(this.width){ A.width=this.width; } if(this.right){ A.right=this.right; } if(this.top){ A.top=this.top; } if(this.left){ A.left=this.left; A.right="auto"; } if(this.bottom){ A.bottom=this.bottom; A.top="auto"; } if(this.fontSize){ A.fontSize=this.fontSize; } if(navigator.userAgent.toLowerCase().indexOf("opera")!=-1){ document.body.style+=""; } } }; YAHOO.widget.LogReader.prototype._initHeaderEl=function(){ var A=this; if(this._elHd){ YAHOO.util.Event.purgeElement(this._elHd,true); this._elHd.innerHTML=""; } this._elHd=this._elContainer.appendChild(document.createElement("div")); this._elHd.id="yui-log-hd"+this._sName; this._elHd.className="yui-log-hd"; this._elCollapse=this._elHd.appendChild(document.createElement("div")); this._elCollapse.className="yui-log-btns"; this._btnCollapse=document.createElement("input"); this._btnCollapse.type="button"; this._btnCollapse.className="yui-log-button"; this._btnCollapse.value="Collapse"; this._btnCollapse=this._elCollapse.appendChild(this._btnCollapse); YAHOO.util.Event.addListener(A._btnCollapse,"click",A._onClickCollapseBtn,A); this._title=this._elHd.appendChild(document.createElement("h4")); this._title.innerHTML="Logger Console"; }; YAHOO.widget.LogReader.prototype._initConsoleEl=function(){ if(this._elConsole){ YAHOO.util.Event.purgeElement(this._elConsole,true); this._elConsole.innerHTML=""; } this._elConsole=this._elContainer.appendChild(document.createElement("div")); this._elConsole.className="yui-log-bd"; if(this.height){ this._elConsole.style.height=this.height; } }; YAHOO.widget.LogReader.prototype._initFooterEl=function(){ var A=this; if(this.footerEnabled){ if(this._elFt){ YAHOO.util.Event.purgeElement(this._elFt,true); this._elFt.innerHTML=""; } this._elFt=this._elContainer.appendChild(document.createElement("div")); this._elFt.className="yui-log-ft"; this._elBtns=this._elFt.appendChild(document.createElement("div")); this._elBtns.className="yui-log-btns"; this._btnPause=document.createElement("input"); this._btnPause.type="button"; this._btnPause.className="yui-log-button"; this._btnPause.value="Pause"; this._btnPause=this._elBtns.appendChild(this._btnPause); YAHOO.util.Event.addListener(A._btnPause,"click",A._onClickPauseBtn,A); this._btnClear=document.createElement("input"); this._btnClear.type="button"; this._btnClear.className="yui-log-button"; this._btnClear.value="Clear"; this._btnClear=this._elBtns.appendChild(this._btnClear); YAHOO.util.Event.addListener(A._btnClear,"click",A._onClickClearBtn,A); this._elCategoryFilters=this._elFt.appendChild(document.createElement("div")); this._elCategoryFilters.className="yui-log-categoryfilters"; this._elSourceFilters=this._elFt.appendChild(document.createElement("div")); this._elSourceFilters.className="yui-log-sourcefilters"; } }; YAHOO.widget.LogReader.prototype._initDragDrop=function(){ if(YAHOO.util.DD&&this.draggable&&this._elHd){ var A=new YAHOO.util.DD(this._elContainer); A.setHandleElId(this._elHd.id); this._elHd.style.cursor="move"; } }; YAHOO.widget.LogReader.prototype._initCategories=function(){ this._categoryFilters=[]; var C=YAHOO.widget.Logger.categories; for(var A=0;A<C.length;A++){ var B=C[A]; this._categoryFilters.push(B); if(this._elCategoryFilters){ this._createCategoryCheckbox(B); } } }; YAHOO.widget.LogReader.prototype._initSources=function(){ this._sourceFilters=[]; var C=YAHOO.widget.Logger.sources; for(var B=0;B<C.length;B++){ var A=C[B]; this._sourceFilters.push(A); if(this._elSourceFilters){ this._createSourceCheckbox(A); } } }; YAHOO.widget.LogReader.prototype._createCategoryCheckbox=function(B){ var A=this; if(this._elFt){ var E=this._elCategoryFilters; var D=E.appendChild(document.createElement("span")); D.className="yui-log-filtergrp"; var C=document.createElement("input"); C.id="yui-log-filter-"+B+this._sName; C.className="yui-log-filter-"+B; C.type="checkbox"; C.category=B; C=D.appendChild(C); C.checked=true; YAHOO.util.Event.addListener(C,"click",A._onCheckCategory,A); var F=D.appendChild(document.createElement("label")); F.htmlFor=C.id; F.className=B; F.innerHTML=B; this._filterCheckboxes[B]=C; } }; YAHOO.widget.LogReader.prototype._createSourceCheckbox=function(A){ var D=this; if(this._elFt){ var F=this._elSourceFilters; var E=F.appendChild(document.createElement("span")); E.className="yui-log-filtergrp"; var C=document.createElement("input"); C.id="yui-log-filter"+A+this._sName; C.className="yui-log-filter"+A; C.type="checkbox"; C.source=A; C=E.appendChild(C); C.checked=true; YAHOO.util.Event.addListener(C,"click",D._onCheckSource,D); var B=E.appendChild(document.createElement("label")); B.htmlFor=C.id; B.className=A; B.innerHTML=A; this._filterCheckboxes[A]=C; } }; YAHOO.widget.LogReader.prototype._filterLogs=function(){ if(this._elConsole!==null){ this.clearConsole(); this._printToConsole(YAHOO.widget.Logger.getStack()); } }; YAHOO.widget.LogReader.prototype._printBuffer=function(){ this._timeout=null; if(this._elConsole!==null){ var B=this.thresholdMax; B=(B&&!isNaN(B))?B:500; if(this._consoleMsgCount<B){ var A=[]; for(var C=0;C<this._buffer.length;C++){ A[C]=this._buffer[C]; } this._buffer=[]; this._printToConsole(A); }else{ this._filterLogs(); } if(!this.newestOnTop){ this._elConsole.scrollTop=this._elConsole.scrollHeight; } } }; YAHOO.widget.LogReader.prototype._printToConsole=function(J){ var B=J.length; var O=this.thresholdMin; if(isNaN(O)||(O>this.thresholdMax)){ O=0; } var L=(B>O)?(B-O):0; var C=this._sourceFilters.length; var M=this._categoryFilters.length; for(var I=L;I<B;I++){ var F=false; var K=false; var N=J[I]; var A=N.source; var D=N.category; for(var H=0;H<C;H++){ if(A==this._sourceFilters[H]){ K=true; break; } } if(K){ for(var G=0;G<M;G++){ if(D==this._categoryFilters[G]){ F=true; break; } } } if(F){ var E=this.formatMsg(N); if(this.newestOnTop){ this._elConsole.innerHTML=E+this._elConsole.innerHTML; }else{ this._elConsole.innerHTML+=E; } this._consoleMsgCount++; this._lastTime=N.time.getTime(); } } }; YAHOO.widget.LogReader.prototype._onCategoryCreate=function(D,C,A){ var B=C[0]; A._categoryFilters.push(B); if(A._elFt){ A._createCategoryCheckbox(B); } }; YAHOO.widget.LogReader.prototype._onSourceCreate=function(D,C,A){ var B=C[0]; A._sourceFilters.push(B); if(A._elFt){ A._createSourceCheckbox(B); } }; YAHOO.widget.LogReader.prototype._onCheckCategory=function(A,B){ var C=this.category; if(!this.checked){ B.hideCategory(C); }else{ B.showCategory(C); } }; YAHOO.widget.LogReader.prototype._onCheckSource=function(A,B){ var C=this.source; if(!this.checked){ B.hideSource(C); }else{ B.showSource(C); } }; YAHOO.widget.LogReader.prototype._onClickCollapseBtn=function(A,B){ if(!B.isCollapsed){ B.collapse(); }else{ B.expand(); } }; YAHOO.widget.LogReader.prototype._onClickPauseBtn=function(A,B){ if(!B.isPaused){ B.pause(); }else{ B.resume(); } }; YAHOO.widget.LogReader.prototype._onClickClearBtn=function(A,B){ B.clearConsole(); }; YAHOO.widget.LogReader.prototype._onNewLog=function(D,C,A){ var B=C[0]; A._buffer.push(B); if(A.logReaderEnabled===true&&A._timeout===null){ A._timeout=setTimeout(function(){ A._printBuffer(); },A.outputBuffer); } }; YAHOO.widget.LogReader.prototype._onReset=function(C,B,A){ A._filterLogs(); }; if(!YAHOO.widget.Logger){ YAHOO.widget.Logger={loggerEnabled:true,_browserConsoleEnabled:false,categories:["info","warn","error","time","window"],sources:["global"],_stack:[],maxStackEntries:2500,_startTime:new Date().getTime(),_lastTime:null,_windowErrorsHandled:false,_origOnWindowError:null}; YAHOO.widget.Logger.log=function(B,F,G){ if(this.loggerEnabled){ if(!F){ F="info"; }else{ F=F.toLocaleLowerCase(); if(this._isNewCategory(F)){ this._createNewCategory(F); } } var C="global"; var A=null; if(G){ var D=G.indexOf(" "); if(D>0){ C=G.substring(0,D); A=G.substring(D,G.length); }else{ C=G; } if(this._isNewSource(C)){ this._createNewSource(C); } } var H=new Date(); var J=new YAHOO.widget.LogMsg({msg:B,time:H,category:F,source:C,sourceDetail:A}); var I=this._stack; var E=this.maxStackEntries; if(E&&!isNaN(E)&&(I.length>=E)){ I.shift(); } I.push(J); this.newLogEvent.fire(J); if(this._browserConsoleEnabled){ this._printToBrowserConsole(J); } return true; }else{ return false; } }; YAHOO.widget.Logger.reset=function(){ this._stack=[]; this._startTime=new Date().getTime(); this.loggerEnabled=true; this.log("Logger reset"); this.logResetEvent.fire(); }; YAHOO.widget.Logger.getStack=function(){ return this._stack; }; YAHOO.widget.Logger.getStartTime=function(){ return this._startTime; }; YAHOO.widget.Logger.disableBrowserConsole=function(){ YAHOO.log("Logger output to the function console.log() has been disabled."); this._browserConsoleEnabled=false; }; YAHOO.widget.Logger.enableBrowserConsole=function(){ this._browserConsoleEnabled=true; YAHOO.log("Logger output to the function console.log() has been enabled."); }; YAHOO.widget.Logger.handleWindowErrors=function(){ if(!YAHOO.widget.Logger._windowErrorsHandled){ if(window.error){ YAHOO.widget.Logger._origOnWindowError=window.onerror; } window.onerror=YAHOO.widget.Logger._onWindowError; YAHOO.widget.Logger._windowErrorsHandled=true; YAHOO.log("Logger handling of window.onerror has been enabled."); }else{ YAHOO.log("Logger handling of window.onerror had already been enabled."); } }; YAHOO.widget.Logger.unhandleWindowErrors=function(){ if(YAHOO.widget.Logger._windowErrorsHandled){ if(YAHOO.widget.Logger._origOnWindowError){ window.onerror=YAHOO.widget.Logger._origOnWindowError; YAHOO.widget.Logger._origOnWindowError=null; }else{ window.onerror=null; } YAHOO.widget.Logger._windowErrorsHandled=false; YAHOO.log("Logger handling of window.onerror has been disabled."); }else{ YAHOO.log("Logger handling of window.onerror had already been disabled."); } }; YAHOO.widget.Logger.categoryCreateEvent=new YAHOO.util.CustomEvent("categoryCreate",this,true); YAHOO.widget.Logger.sourceCreateEvent=new YAHOO.util.CustomEvent("sourceCreate",this,true); YAHOO.widget.Logger.newLogEvent=new YAHOO.util.CustomEvent("newLog",this,true); YAHOO.widget.Logger.logResetEvent=new YAHOO.util.CustomEvent("logReset",this,true); YAHOO.widget.Logger._createNewCategory=function(A){ this.categories.push(A); this.categoryCreateEvent.fire(A); }; YAHOO.widget.Logger._isNewCategory=function(B){ for(var A=0;A<this.categories.length;A++){ if(B==this.categories[A]){ return false; } } return true; }; YAHOO.widget.Logger._createNewSource=function(A){ this.sources.push(A); this.sourceCreateEvent.fire(A); }; YAHOO.widget.Logger._isNewSource=function(A){ if(A){ for(var B=0;B<this.sources.length;B++){ if(A==this.sources[B]){ return false; } } return true; } }; YAHOO.widget.Logger._printToBrowserConsole=function(C){ if(window.console&&console.log){ var E=C.category; var D=C.category.substring(0,4).toUpperCase(); var G=C.time; var F; if(G.toLocaleTimeString){ F=G.toLocaleTimeString(); }else{ F=G.toString(); } var H=G.getTime(); var B=(YAHOO.widget.Logger._lastTime)?(H-YAHOO.widget.Logger._lastTime):0; YAHOO.widget.Logger._lastTime=H; var A=F+" ("+B+"ms): "+C.source+": "+C.msg; console.log(A); } }; YAHOO.widget.Logger._onWindowError=function(A,C,B){ try{ YAHOO.widget.Logger.log(A+" ("+C+", line "+B+")","window"); if(YAHOO.widget.Logger._origOnWindowError){ YAHOO.widget.Logger._origOnWindowError(); } } catch(D){ return false; } }; YAHOO.widget.Logger.log("Logger initialized"); } YAHOO.register("logger",YAHOO.widget.Logger,{version:"2.5.0",build:"895"});  Ext={}; window["undefined"]=window["undefined"]; Ext.apply=function(o,c,_3){ if(_3){ Ext.apply(o,_3); } if(o&&c&&typeof c=="object"){ for(var p in c){ o[p]=c[p]; } } return o; }; (function(){ var _5=0; var ua=navigator.userAgent.toLowerCase(); var _7=document.compatMode=="CSS1Compat",_8=ua.indexOf("opera")>-1,_9=(/webkit|khtml/).test(ua),_a=ua.indexOf("msie")>-1,_b=ua.indexOf("msie 7")>-1,_c=!_9&&ua.indexOf("gecko")>-1,_d=_a&&!_7,_e=(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1),_f=(ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1),_10=(ua.indexOf("linux")!=-1),_11=window.location.href.toLowerCase().indexOf("https")===0; if(_a&&!_b){ try{ document.execCommand("BackgroundImageCache",false,true); } catch(e){ } } Ext.apply(Ext,{isStrict:_7,isSecure:_11,isReady:false,enableGarbageCollector:true,enableListenerCollection:false,SSL_SECURE_URL:"javascript:false",BLANK_IMAGE_URL:"http:/"+"/extjs.com/s.gif",emptyFn:function(){ },applyIf:function(o,c){ if(o&&c){ for(var p in c){ if(typeof o[p]=="undefined"){ o[p]=c[p]; } } } return o; },addBehaviors:function(o){ if(!Ext.isReady){ Ext.onReady(function(){ Ext.addBehaviors(o); }); return; } var _16={}; for(var b in o){ var _18=b.split("@"); if(_18[1]){ var s=_18[0]; if(!_16[s]){ _16[s]=Ext.select(s); } _16[s].on(_18[1],o[b]); } } _16=null; },id:function(el,_1b){ _1b=_1b||"ext-gen"; el=Ext.getDom(el); var id=_1b+(++_5); return el?(el.id?el.id:(el.id=id)):id; },extend:function(){ var io=function(o){ for(var m in o){ this[m]=o[m]; } }; return function(sb,sp,_22){ if(typeof sp=="object"){ _22=sp; sp=sb; sb=function(){ sp.apply(this,arguments); }; } var F=function(){ },sbp,spp=sp.prototype; F.prototype=spp; sbp=sb.prototype=new F(); sbp.constructor=sb; sb.superclass=spp; if(spp.constructor==Object.prototype.constructor){ spp.constructor=sp; } sb.override=function(o){ Ext.override(sb,o); }; sbp.override=io; Ext.override(sb,_22); return sb; }; }(),override:function(_27,_28){ if(_28){ var p=_27.prototype; for(var _2a in _28){ p[_2a]=_28[_2a]; } } },namespace:function(){ var a=arguments,o=null,i,j,d,rt; for(i=0;i<a.length;++i){ d=a[i].split("."); rt=d[0]; eval("if (typeof "+rt+" == \"undefined\"){"+rt+" = {};} o = "+rt+";"); for(j=1;j<d.length;++j){ o[d[j]]=o[d[j]]||{}; o=o[d[j]]; } } },urlEncode:function(o){ if(!o){ return ""; } var buf=[]; for(var key in o){ var ov=o[key]; var _35=typeof ov; if(_35=="undefined"){ buf.push(encodeURIComponent(key),"=&"); }else{ if(_35!="function"&&_35!="object"){ buf.push(encodeURIComponent(key),"=",encodeURIComponent(ov),"&"); }else{ if(ov instanceof Array){ for(var i=0,len=ov.length;i<len;i++){ buf.push(encodeURIComponent(key),"=",encodeURIComponent(ov[i]===undefined?"":ov[i]),"&"); } } } } } buf.pop(); return buf.join(""); },urlDecode:function(_38,_39){ if(!_38||!_38.length){ return {}; } var obj={}; var _3b=_38.split("&"); var _3c,_3d,_3e; for(var i=0,len=_3b.length;i<len;i++){ _3c=_3b[i].split("="); _3d=decodeURIComponent(_3c[0]); _3e=decodeURIComponent(_3c[1]); if(_39!==true){ if(typeof obj[_3d]=="undefined"){ obj[_3d]=_3e; }else{ if(typeof obj[_3d]=="string"){ obj[_3d]=[obj[_3d]]; obj[_3d].push(_3e); }else{ obj[_3d].push(_3e); } } }else{ obj[_3d]=_3e; } } return obj; },each:function(_41,fn,_43){ if(typeof _41.length=="undefined"||typeof _41=="string"){ _41=[_41]; } for(var i=0,len=_41.length;i<len;i++){ if(fn.call(_43||_41[i],_41[i],i,_41)===false){ return i; } } },combine:function(){ var as=arguments,l=as.length,r=[]; for(var i=0;i<l;i++){ var a=as[i]; if(a instanceof Array){ r=r.concat(a); }else{ if(a.length!==undefined&&!a.substr){ r=r.concat(Array.prototype.slice.call(a,0)); }else{ r.push(a); } } } return r; },escapeRe:function(s){ return s.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1"); },callback:function(cb,_4d,_4e,_4f){ if(typeof cb=="function"){ if(_4f){ cb.defer(_4f,_4d,_4e||[]); }else{ cb.apply(_4d,_4e||[]); } } },getDom:function(el){ if(!el){ return null; } return el.dom?el.dom:(typeof el=="string"?document.getElementById(el):el); },getCmp:function(id){ return Ext.ComponentMgr.get(id); },num:function(v,_53){ if(typeof v!="number"){ return _53; } return v; },destroy:function(){ for(var i=0,a=arguments,len=a.length;i<len;i++){ var as=a[i]; if(as){ if(as.dom){ as.removeAllListeners(); as.remove(); continue; } if(typeof as.purgeListeners=="function"){ as.purgeListeners(); } if(typeof as.destroy=="function"){ as.destroy(); } } } },type:function(o){ if(o===undefined||o===null){ return false; } if(o.htmlElement){ return "element"; } var t=typeof o; if(t=="object"&&o.nodeName){ switch(o.nodeType){ case 1: return "element"; case 3: return (/\S/).test(o.nodeValue)?"textnode":"whitespace"; } } if(t=="object"||t=="function"){ switch(o.constructor){ case Array: return "array"; case RegExp: return "regexp"; } if(typeof o.length=="number"&&typeof o.item=="function"){ return "nodelist"; } } return t; },isEmpty:function(v,_5b){ return v===null||v===undefined||(!_5b?v==="":false); },isOpera:_8,isSafari:_9,isIE:_a,isIE7:_b,isGecko:_c,isBorderBox:_d,isWindows:_e,isLinux:_10,isMac:_f,useShims:((_a&&!_b)||(_c&&_f))}); })(); Ext.namespace("Ext","Ext.util","Ext.grid","Ext.dd","Ext.tree","Ext.data","Ext.form","Ext.menu","Ext.state","Ext.lib","Ext.layout","Ext.app","Ext.ux"); Ext.apply(Function.prototype,{createCallback:function(){ var _5c=arguments; var _5d=this; return function(){ return _5d.apply(window,_5c); }; },createDelegate:function(obj,_5f,_60){ var _61=this; return function(){ var _62=_5f||arguments; if(_60===true){ _62=Array.prototype.slice.call(arguments,0); _62=_62.concat(_5f); }else{ if(typeof _60=="number"){ _62=Array.prototype.slice.call(arguments,0); var _63=[_60,0].concat(_5f); Array.prototype.splice.apply(_62,_63); } } return _61.apply(obj||window,_62); }; },defer:function(_64,obj,_66,_67){ var fn=this.createDelegate(obj,_66,_67); if(_64){ return setTimeout(fn,_64); } fn(); return 0; },createSequence:function(fcn,_6a){ if(typeof fcn!="function"){ return this; } var _6b=this; return function(){ var _6c=_6b.apply(this||window,arguments); fcn.apply(_6a||this||window,arguments); return _6c; }; },createInterceptor:function(fcn,_6e){ if(typeof fcn!="function"){ return this; } var _6f=this; return function(){ fcn.target=this; fcn.method=_6f; if(fcn.apply(_6e||this||window,arguments)===false){ return; } return _6f.apply(this||window,arguments); }; }}); Ext.applyIf(String,{escape:function(_70){ return _70.replace(/('|\\)/g,"\\$1"); },leftPad:function(val,_72,ch){ var _74=new String(val); if(ch===null||ch===undefined||ch===""){ ch=" "; } while(_74.length<_72){ _74=ch+_74; } return _74; },format:function(_75){ var _76=Array.prototype.slice.call(arguments,1); return _75.replace(/\{(\d+)\}/g,function(m,i){ return _76[i]; }); }}); String.prototype.toggle=function(_79,_7a){ return this==_79?_7a:_79; }; Ext.applyIf(Number.prototype,{constrain:function(min,max){ return Math.min(Math.max(this,min),max); }}); Ext.applyIf(Array.prototype,{indexOf:function(o){ for(var i=0,len=this.length;i<len;i++){ if(this[i]==o){ return i; } } return -1; },remove:function(o){ var _81=this.indexOf(o); if(_81!=-1){ this.splice(_81,1); } }}); Date.prototype.getElapsed=function(_82){ return Math.abs((_82||new Date()).getTime()-this.getTime()); }; if(typeof YAHOO=="undefined"){ throw "Unable to load Ext, core YUI utilities (yahoo, dom, event) not found."; } (function(){ var E=YAHOO.util.Event; var D=YAHOO.util.Dom; var CN=YAHOO.util.Connect; var ES=YAHOO.util.Easing; var A=YAHOO.util.Anim; var _6; Ext.lib.Dom={getViewWidth:function(_7){ return _7?D.getDocumentWidth():D.getViewportWidth(); },getViewHeight:function(_8){ return _8?D.getDocumentHeight():D.getViewportHeight(); },isAncestor:function(_9,_a){ return D.isAncestor(_9,_a); },getRegion:function(el){ return D.getRegion(el); },getY:function(el){ return this.getXY(el)[1]; },getX:function(el){ return this.getXY(el)[0]; },getXY:function(el){ var p,pe,b,_12,bd=document.body; el=Ext.getDom(el); if(el.getBoundingClientRect){ b=el.getBoundingClientRect(); _12=fly(document).getScroll(); return [b.left+_12.left,b.top+_12.top]; } var x=0,y=0; p=el; var _16=fly(el).getStyle("position")=="absolute"; while(p){ x+=p.offsetLeft; y+=p.offsetTop; if(!_16&&fly(p).getStyle("position")=="absolute"){ _16=true; } if(Ext.isGecko){ pe=fly(p); var bt=parseInt(pe.getStyle("borderTopWidth"),10)||0; var bl=parseInt(pe.getStyle("borderLeftWidth"),10)||0; x+=bl; y+=bt; if(p!=el&&pe.getStyle("overflow")!="visible"){ x+=bl; y+=bt; } } p=p.offsetParent; } if(Ext.isSafari&&_16){ x-=bd.offsetLeft; y-=bd.offsetTop; } if(Ext.isGecko&&!_16){ var dbd=fly(bd); x+=parseInt(dbd.getStyle("borderLeftWidth"),10)||0; y+=parseInt(dbd.getStyle("borderTopWidth"),10)||0; } p=el.parentNode; while(p&&p!=bd){ if(!(Ext.isOpera&&p.tagName!="TR"&&fly(p).getStyle("display")!="inline")){ x-=p.scrollLeft; y-=p.scrollTop; } p=p.parentNode; } return [x,y]; },setXY:function(el,xy){ el=Ext.fly(el,"_setXY"); el.position(); var pts=el.translatePoints(xy); if(xy[0]!==false){ el.dom.style.left=pts.left+"px"; } if(xy[1]!==false){ el.dom.style.top=pts.top+"px"; } },setX:function(el,x){ this.setXY(el,[x,false]); },setY:function(el,y){ this.setXY(el,[false,y]); }}; Ext.lib.Event={getPageX:function(e){ return E.getPageX(e.browserEvent||e); },getPageY:function(e){ return E.getPageY(e.browserEvent||e); },getXY:function(e){ return E.getXY(e.browserEvent||e); },getTarget:function(e){ return E.getTarget(e.browserEvent||e); },getRelatedTarget:function(e){ return E.getRelatedTarget(e.browserEvent||e); },on:function(el,_27,fn,_29,_2a){ E.on(el,_27,fn,_29,_2a); },un:function(el,_2c,fn){ E.removeListener(el,_2c,fn); },purgeElement:function(el){ E.purgeElement(el); },preventDefault:function(e){ E.preventDefault(e.browserEvent||e); },stopPropagation:function(e){ E.stopPropagation(e.browserEvent||e); },stopEvent:function(e){ E.stopEvent(e.browserEvent||e); },onAvailable:function(el,fn,_34,_35){ return E.onAvailable(el,fn,_34,_35); }}; Ext.lib.Ajax={request:function(_36,uri,cb,_39,_3a){ if(_3a){ var hs=_3a.headers; if(hs){ for(var h in hs){ if(hs.hasOwnProperty(h)){ CN.initHeader(h,hs[h],false); } } } if(_3a.xmlData){ CN.initHeader("Content-Type","text/xml",false); _36="POST"; _39=_3a.xmlData; } } return CN.asyncRequest(_36,uri,cb,_39); },formRequest:function(_3d,uri,cb,_40,_41,_42){ CN.setForm(_3d,_41,_42); return CN.asyncRequest(Ext.getDom(_3d).method||"POST",uri,cb,_40); },isCallInProgress:function(_43){ return CN.isCallInProgress(_43); },abort:function(_44){ return CN.abort(_44); },serializeForm:function(_45){ var d=CN.setForm(_45.dom||_45); CN.resetFormState(); return d; }}; Ext.lib.Region=YAHOO.util.Region; Ext.lib.Point=YAHOO.util.Point; Ext.lib.Anim={scroll:function(el,_48,_49,_4a,cb,_4c){ this.run(el,_48,_49,_4a,cb,_4c,YAHOO.util.Scroll); },motion:function(el,_4e,_4f,_50,cb,_52){ this.run(el,_4e,_4f,_50,cb,_52,YAHOO.util.Motion); },color:function(el,_54,_55,_56,cb,_58){ this.run(el,_54,_55,_56,cb,_58,YAHOO.util.ColorAnim); },run:function(el,_5a,_5b,_5c,cb,_5e,_5f){ _5f=_5f||YAHOO.util.Anim; if(typeof _5c=="string"){ _5c=YAHOO.util.Easing[_5c]; } var _60=new _5f(el,_5a,_5b,_5c); _60.animateX(function(){ Ext.callback(cb,_5e); }); return _60; }}; function fly(el){ if(!_6){ _6=new Ext.Element.Flyweight(); } _6.dom=el; return _6; } if(Ext.isIE){ YAHOO.util.Event.on(window,"unload",function(){ var p=Function.prototype; delete p.createSequence; delete p.defer; delete p.createDelegate; delete p.createCallback; delete p.createInterceptor; }); } if(YAHOO.util.Anim){ YAHOO.util.Anim.prototype.animateX=function(_63,_64){ var f=function(){ this.onComplete.unsubscribe(f); if(typeof _63=="function"){ _63.call(_64||this,this); } }; this.onComplete.subscribe(f,this,true); this.animate(); }; } if(YAHOO.util.DragDrop&&Ext.dd.DragDrop){ YAHOO.util.DragDrop.defaultPadding=Ext.dd.DragDrop.defaultPadding; YAHOO.util.DragDrop.constrainTo=Ext.dd.DragDrop.constrainTo; } YAHOO.util.Dom.getXY=function(el){ var f=function(el){ return Ext.lib.Dom.getXY(el); }; return YAHOO.util.Dom.batch(el,f,YAHOO.util.Dom,true); }; if(YAHOO.util.AnimMgr){ YAHOO.util.AnimMgr.fps=1000; } YAHOO.util.Region.prototype.adjust=function(t,l,b,r){ this.top+=t; this.left+=l; this.right+=r; this.bottom+=b; return this; }; })(); Ext.DomHelper=function(){ var _1=null; var _2=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i; var _3=/^table|tbody|tr|td$/i; var _4=function(o){ if(typeof o=="string"){ return o; } var b=""; if(!o.tag){ o.tag="div"; } b+="<"+o.tag; for(var _7 in o){ if(_7=="tag"||_7=="children"||_7=="cn"||_7=="html"||typeof o[_7]=="function"){ continue; } if(_7=="style"){ var s=o["style"]; if(typeof s=="function"){ s=s.call(); } if(typeof s=="string"){ b+=" style=\""+s+"\""; }else{ if(typeof s=="object"){ b+=" style=\""; for(var _9 in s){ if(typeof s[_9]!="function"){ b+=_9+":"+s[_9]+";"; } } b+="\""; } } }else{ if(_7=="cls"){ b+=" class=\""+o["cls"]+"\""; }else{ if(_7=="htmlFor"){ b+=" for=\""+o["htmlFor"]+"\""; }else{ b+=" "+_7+"=\""+o[_7]+"\""; } } } } if(_2.test(o.tag)){ b+="/>"; }else{ b+=">"; var cn=o.children||o.cn; if(cn){ if(cn instanceof Array){ for(var i=0,_c=cn.length;i<_c;i++){ b+=_4(cn[i],b); } }else{ b+=_4(cn,b); } } if(o.html){ b+=o.html; } b+="</"+o.tag+">"; } return b; }; var _d=function(o,_f){ var el=document.createElement(o.tag||"div"); var _11=el.setAttribute?true:false; for(var _12 in o){ if(_12=="tag"||_12=="children"||_12=="cn"||_12=="html"||_12=="style"||typeof o[_12]=="function"){ continue; } if(_12=="cls"){ el.className=o["cls"]; }else{ if(_11){ el.setAttribute(_12,o[_12]); }else{ el[_12]=o[_12]; } } } Ext.DomHelper.applyStyles(el,o.style); var cn=o.children||o.cn; if(cn){ if(cn instanceof Array){ for(var i=0,len=cn.length;i<len;i++){ _d(cn[i],el); } }else{ _d(cn,el); } } if(o.html){ el.innerHTML=o.html; } if(_f){ _f.appendChild(el); } return el; }; var _16=function(_17,s,h,e){ _1.innerHTML=[s,h,e].join(""); var i=-1,el=_1; while(++i<_17){ el=el.firstChild; } return el; }; var ts="<table>",te="</table>",tbs=ts+"<tbody>",tbe="</tbody>"+te,trs=tbs+"<tr>",tre="</tr>"+tbe; var _23=function(tag,_25,el,_27){ if(!_1){ _1=document.createElement("div"); } var _28; var _29=null; if(tag=="td"){ if(_25=="afterbegin"||_25=="beforeend"){ return; } if(_25=="beforebegin"){ _29=el; el=el.parentNode; }else{ _29=el.nextSibling; el=el.parentNode; } _28=_16(4,trs,_27,tre); }else{ if(tag=="tr"){ if(_25=="beforebegin"){ _29=el; el=el.parentNode; _28=_16(3,tbs,_27,tbe); }else{ if(_25=="afterend"){ _29=el.nextSibling; el=el.parentNode; _28=_16(3,tbs,_27,tbe); }else{ if(_25=="afterbegin"){ _29=el.firstChild; } _28=_16(4,trs,_27,tre); } } }else{ if(tag=="tbody"){ if(_25=="beforebegin"){ _29=el; el=el.parentNode; _28=_16(2,ts,_27,te); }else{ if(_25=="afterend"){ _29=el.nextSibling; el=el.parentNode; _28=_16(2,ts,_27,te); }else{ if(_25=="afterbegin"){ _29=el.firstChild; } _28=_16(3,tbs,_27,tbe); } } }else{ if(_25=="beforebegin"||_25=="afterend"){ return; } if(_25=="afterbegin"){ _29=el.firstChild; } _28=_16(2,ts,_27,te); } } } el.insertBefore(_28,_29); return _28; }; return {useDom:false,markup:function(o){ return _4(o); },applyStyles:function(el,_2c){ if(_2c){ el=Ext.fly(el); if(typeof _2c=="string"){ var re=/\s?([a-z\-]*)\:\s?([^;]*);?/gi; var _2e; while((_2e=re.exec(_2c))!=null){ el.setStyle(_2e[1],_2e[2]); } }else{ if(typeof _2c=="object"){ for(var _2f in _2c){ el.setStyle(_2f,_2c[_2f]); } }else{ if(typeof _2c=="function"){ Ext.DomHelper.applyStyles(el,_2c.call()); } } } } },insertHtml:function(_30,el,_32){ _30=_30.toLowerCase(); if(el.insertAdjacentHTML){ if(_3.test(el.tagName)){ var rs; if(rs=_23(el.tagName.toLowerCase(),_30,el,_32)){ return rs; } } switch(_30){ case "beforebegin": el.insertAdjacentHTML("BeforeBegin",_32); return el.previousSibling; case "afterbegin": el.insertAdjacentHTML("AfterBegin",_32); return el.firstChild; case "beforeend": el.insertAdjacentHTML("BeforeEnd",_32); return el.lastChild; case "afterend": el.insertAdjacentHTML("AfterEnd",_32); return el.nextSibling; } throw "Illegal insertion point -> \""+_30+"\""; } var _34=el.ownerDocument.createRange(); var _35; switch(_30){ case "beforebegin": _34.setStartBefore(el); _35=_34.createContextualFragment(_32); el.parentNode.insertBefore(_35,el); return el.previousSibling; case "afterbegin": if(el.firstChild){ _34.setStartBefore(el.firstChild); _35=_34.createContextualFragment(_32); el.insertBefore(_35,el.firstChild); return el.firstChild; }else{ el.innerHTML=_32; return el.firstChild; } case "beforeend": if(el.lastChild){ _34.setStartAfter(el.lastChild); _35=_34.createContextualFragment(_32); el.appendChild(_35); return el.lastChild; }else{ el.innerHTML=_32; return el.lastChild; } case "afterend": _34.setStartAfter(el); _35=_34.createContextualFragment(_32); el.parentNode.insertBefore(_35,el.nextSibling); return el.nextSibling; } throw "Illegal insertion point -> \""+_30+"\""; },insertBefore:function(el,o,_38){ return this.doInsert(el,o,_38,"beforeBegin"); },insertAfter:function(el,o,_3b){ return this.doInsert(el,o,_3b,"afterEnd","nextSibling"); },insertFirst:function(el,o,_3e){ return this.doInsert(el,o,_3e,"afterBegin"); },doInsert:function(el,o,_41,pos,_43){ el=Ext.getDom(el); var _44; if(this.useDom){ _44=_d(o,null); el.parentNode.insertBefore(_44,_43?el[_43]:el); }else{ var _45=_4(o); _44=this.insertHtml(pos,el,_45); } return _41?Ext.get(_44,true):_44; },append:function(el,o,_48){ el=Ext.getDom(el); var _49; if(this.useDom){ _49=_d(o,null); el.appendChild(_49); }else{ var _4a=_4(o); _49=this.insertHtml("beforeEnd",el,_4a); } return _48?Ext.get(_49,true):_49; },overwrite:function(el,o,_4d){ el=Ext.getDom(el); el.innerHTML=_4(o); return _4d?Ext.get(el.firstChild,true):el.firstChild; },createTemplate:function(o){ var _4f=_4(o); return new Ext.Template(_4f); }}; }(); Ext.Template=function(_1){ if(_1 instanceof Array){ _1=_1.join(""); }else{ if(arguments.length>1){ _1=Array.prototype.join.call(arguments,""); } } this.html=_1; }; Ext.Template.prototype={applyTemplate:function(_2){ if(this.compiled){ return this.compiled(_2); } var _3=this.disableFormats!==true; var fm=Ext.util.Format,_5=this; var fn=function(m,_8,_9,_a){ if(_9&&_3){ if(_9.substr(0,5)=="this."){ return _5.call(_9.substr(5),_2[_8],_2); }else{ if(_a){ var re=/^\s*['"](.*)["']\s*$/; _a=_a.split(","); for(var i=0,_d=_a.length;i<_d;i++){ _a[i]=_a[i].replace(re,"$1"); } _a=[_2[_8]].concat(_a); }else{ _a=[_2[_8]]; } return fm[_9].apply(fm,_a); } }else{ return _2[_8]!==undefined?_2[_8]:""; } }; return this.html.replace(this.re,fn); },set:function(_e,_f){ this.html=_e; this.compiled=null; if(_f){ this.compile(); } return this; },disableFormats:false,re:/\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,compile:function(){ var fm=Ext.util.Format; var _11=this.disableFormats!==true; var sep=Ext.isGecko?"+":","; var fn=function(m,_15,_16,_17){ if(_16&&_11){ _17=_17?","+_17:""; if(_16.substr(0,5)!="this."){ _16="fm."+_16+"("; }else{ _16="this.call(\""+_16.substr(5)+"\", "; _17=", values"; } }else{ _17=""; _16="(values['"+_15+"'] == undefined ? '' : "; } return "'"+sep+_16+"values['"+_15+"']"+_17+")"+sep+"'"; }; var _18; if(Ext.isGecko){ _18="this.compiled = function(values){ return '"+this.html.replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn)+"';};"; }else{ _18=["this.compiled = function(values){ return ['"]; _18.push(this.html.replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn)); _18.push("'].join('');};"); _18=_18.join(""); } eval(_18); return this; },call:function(_19,_1a,_1b){ return this[_19](_1a,_1b); },insertFirst:function(el,_1d,_1e){ return this.doInsert("afterBegin",el,_1d,_1e); },insertBefore:function(el,_20,_21){ return this.doInsert("beforeBegin",el,_20,_21); },insertAfter:function(el,_23,_24){ return this.doInsert("afterEnd",el,_23,_24); },append:function(el,_26,_27){ return this.doInsert("beforeEnd",el,_26,_27); },doInsert:function(_28,el,_2a,_2b){ el=Ext.getDom(el); var _2c=Ext.DomHelper.insertHtml(_28,el,this.applyTemplate(_2a)); return _2b?Ext.get(_2c,true):_2c; },overwrite:function(el,_2e,_2f){ el=Ext.getDom(el); el.innerHTML=this.applyTemplate(_2e); return _2f?Ext.get(el.firstChild,true):el.firstChild; }}; Ext.Template.prototype.apply=Ext.Template.prototype.applyTemplate; Ext.DomHelper.Template=Ext.Template; Ext.Template.from=function(el){ el=Ext.getDom(el); return new Ext.Template(el.value||el.innerHTML); }; Ext.DomQuery=function(){ var _1={},_2={},_3={}; var _4=/\S/; var _5=/^\s+|\s+$/g; var _6=/\{(\d+)\}/g; var _7=/^(\s?[\/>+~]\s?|\s|$)/; var _8=/^(#)?([\w-\*]+)/; var _9=/(\d*)n\+?(\d*)/,_a=/\D/; function child(p,_c){ var i=0; var n=p.firstChild; while(n){ if(n.nodeType==1){ if(++i==_c){ return n; } } n=n.nextSibling; } return null; } function next(n){ while((n=n.nextSibling)&&n.nodeType!=1){ } return n; } function prev(n){ while((n=n.previousSibling)&&n.nodeType!=1){ } return n; } function children(d){ var n=d.firstChild,ni=-1; while(n){ var nx=n.nextSibling; if(n.nodeType==3&&!_4.test(n.nodeValue)){ d.removeChild(n); }else{ n.nodeIndex=++ni; } n=nx; } return this; } function byClassName(c,a,v){ if(!v){ return c; } var r=[],ri=-1,cn; for(var i=0,ci;ci=c[i];i++){ if((" "+ci.className+" ").indexOf(v)!=-1){ r[++ri]=ci; } } return r; } function attrValue(n,_1e){ if(!n.tagName&&typeof n.length!="undefined"){ n=n[0]; } if(!n){ return null; } if(_1e=="for"){ return n.htmlFor; } if(_1e=="class"||_1e=="className"){ return n.className; } return n.getAttribute(_1e)||n[_1e]; } function getNodes(ns,_20,_21){ var _22=[],ri=-1,cs; if(!ns){ return _22; } _21=_21||"*"; if(typeof ns.getElementsByTagName!="undefined"){ ns=[ns]; } if(!_20){ for(var i=0,ni;ni=ns[i];i++){ cs=ni.getElementsByTagName(_21); for(var j=0,ci;ci=cs[j];j++){ _22[++ri]=ci; } } }else{ if(_20=="/"||_20==">"){ var _29=_21.toUpperCase(); for(var i=0,ni,cn;ni=ns[i];i++){ cn=ni.children||ni.childNodes; for(var j=0,cj;cj=cn[j];j++){ if(cj.nodeName==_29||cj.nodeName==_21||_21=="*"){ _22[++ri]=cj; } } } }else{ if(_20=="+"){ var _29=_21.toUpperCase(); for(var i=0,n;n=ns[i];i++){ while((n=n.nextSibling)&&n.nodeType!=1){ } if(n&&(n.nodeName==_29||n.nodeName==_21||_21=="*")){ _22[++ri]=n; } } }else{ if(_20=="~"){ for(var i=0,n;n=ns[i];i++){ while((n=n.nextSibling)&&(n.nodeType!=1||(_21=="*"||n.tagName.toLowerCase()!=_21))){ } if(n){ _22[++ri]=n; } } } } } } return _22; } function concat(a,b){ if(b.slice){ return a.concat(b); } for(var i=0,l=b.length;i<l;i++){ a[a.length]=b[i]; } return a; } function byTag(cs,_32){ if(cs.tagName||cs==document){ cs=[cs]; } if(!_32){ return cs; } var r=[],ri=-1; _32=_32.toLowerCase(); for(var i=0,ci;ci=cs[i];i++){ if(ci.nodeType==1&&ci.tagName.toLowerCase()==_32){ r[++ri]=ci; } } return r; } function byId(cs,_38,id){ if(cs.tagName||cs==document){ cs=[cs]; } if(!id){ return cs; } var r=[],ri=-1; for(var i=0,ci;ci=cs[i];i++){ if(ci&&ci.id==id){ r[++ri]=ci; return r; } } return r; } function byAttribute(cs,_3f,_40,op,_42){ var r=[],ri=-1,st=_42=="{"; var f=Ext.DomQuery.operators[op]; for(var i=0,ci;ci=cs[i];i++){ var a; if(st){ a=Ext.DomQuery.getStyle(ci,_3f); }else{ if(_3f=="class"||_3f=="className"){ a=ci.className; }else{ if(_3f=="for"){ a=ci.htmlFor; }else{ if(_3f=="href"){ a=ci.getAttribute("href",2); }else{ a=ci.getAttribute(_3f); } } } } if((f&&f(a,_40))||(!f&&a)){ r[++ri]=ci; } } return r; } function byPseudo(cs,_4b,_4c){ return Ext.DomQuery.pseudos[_4b](cs,_4c); } var _4d=window.ActiveXObject?true:false; eval("var batch = 30803;"); var key=30803; function nodupIEXml(cs){ var d=++key; cs[0].setAttribute("_nodup",d); var r=[cs[0]]; for(var i=1,len=cs.length;i<len;i++){ var c=cs[i]; if(!c.getAttribute("_nodup")!=d){ c.setAttribute("_nodup",d); r[r.length]=c; } } for(var i=0,len=cs.length;i<len;i++){ cs[i].removeAttribute("_nodup"); } return r; } function nodup(cs){ if(!cs){ return []; } var len=cs.length,c,i,r=cs,cj,ri=-1; if(!len||typeof cs.nodeType!="undefined"||len==1){ return cs; } if(_4d&&typeof cs[0].selectSingleNode!="undefined"){ return nodupIEXml(cs); } var d=++key; cs[0]._nodup=d; for(i=1;c=cs[i];i++){ if(c._nodup!=d){ c._nodup=d; }else{ r=[]; for(var j=0;j<i;j++){ r[++ri]=cs[j]; } for(j=i+1;cj=cs[j];j++){ if(cj._nodup!=d){ cj._nodup=d; r[++ri]=cj; } } return r; } } return r; } function quickDiffIEXml(c1,c2){ var d=++key; for(var i=0,len=c1.length;i<len;i++){ c1[i].setAttribute("_qdiff",d); } var r=[]; for(var i=0,len=c2.length;i<len;i++){ if(c2[i].getAttribute("_qdiff")!=d){ r[r.length]=c2[i]; } } for(var i=0,len=c1.length;i<len;i++){ c1[i].removeAttribute("_qdiff"); } return r; } function quickDiff(c1,c2){ var _66=c1.length; if(!_66){ return c2; } if(_4d&&c1[0].selectSingleNode){ return quickDiffIEXml(c1,c2); } var d=++key; for(var i=0;i<_66;i++){ c1[i]._qdiff=d; } var r=[]; for(var i=0,len=c2.length;i<len;i++){ if(c2[i]._qdiff!=d){ r[r.length]=c2[i]; } } return r; } function quickId(ns,_6c,_6d,id){ if(ns==_6d){ var d=_6d.ownerDocument||_6d; return d.getElementById(id); } ns=getNodes(ns,_6c,"*"); return byId(ns,null,id); } return {getStyle:function(el,_71){ return Ext.fly(el).getStyle(_71); },compile:function(_72,_73){ _73=_73||"select"; var fn=["var f = function(root){\n var mode; ++batch; var n = root || document;\n"]; var q=_72,_76,lq; var tk=Ext.DomQuery.matchers; var _79=tk.length; var mm; var _7b=q.match(_7); if(_7b&&_7b[1]){ fn[fn.length]="mode=\""+_7b[1].replace(_5,"")+"\";"; q=q.replace(_7b[1],""); } while(_72.substr(0,1)=="/"){ _72=_72.substr(1); } while(q&&lq!=q){ lq=q; var tm=q.match(_8); if(_73=="select"){ if(tm){ if(tm[1]=="#"){ fn[fn.length]="n = quickId(n, mode, root, \""+tm[2]+"\");"; }else{ fn[fn.length]="n = getNodes(n, mode, \""+tm[2]+"\");"; } q=q.replace(tm[0],""); }else{ if(q.substr(0,1)!="@"){ fn[fn.length]="n = getNodes(n, mode, \"*\");"; } } }else{ if(tm){ if(tm[1]=="#"){ fn[fn.length]="n = byId(n, null, \""+tm[2]+"\");"; }else{ fn[fn.length]="n = byTag(n, \""+tm[2]+"\");"; } q=q.replace(tm[0],""); } } while(!(mm=q.match(_7))){ var _7d=false; for(var j=0;j<_79;j++){ var t=tk[j]; var m=q.match(t.re); if(m){ fn[fn.length]=t.select.replace(_6,function(x,i){ return m[i]; }); q=q.replace(m[0],""); _7d=true; break; } } if(!_7d){ throw "Error parsing selector, parsing failed at \""+q+"\""; } } if(mm[1]){ fn[fn.length]="mode=\""+mm[1].replace(_5,"")+"\";"; q=q.replace(mm[1],""); } } fn[fn.length]="return nodup(n);\n}"; eval(fn.join("")); return f; },select:function(_83,_84,_85){ if(!_84||_84==document){ _84=document; } if(typeof _84=="string"){ _84=document.getElementById(_84); } var _86=_83.split(","); var _87=[]; for(var i=0,len=_86.length;i<len;i++){ var p=_86[i].replace(_5,""); if(!_1[p]){ _1[p]=Ext.DomQuery.compile(p); if(!_1[p]){ throw p+" is not a valid selector"; } } var _8b=_1[p](_84); if(_8b&&_8b!=document){ _87=_87.concat(_8b); } } if(_86.length>1){ return nodup(_87); } return _87; },selectNode:function(_8c,_8d){ return Ext.DomQuery.select(_8c,_8d)[0]; },selectValue:function(_8e,_8f,_90){ _8e=_8e.replace(_5,""); if(!_3[_8e]){ _3[_8e]=Ext.DomQuery.compile(_8e,"select"); } var n=_3[_8e](_8f); n=n[0]?n[0]:n; var v=(n&&n.firstChild?n.firstChild.nodeValue:null); return ((v===null||v===undefined||v==="")?_90:v); },selectNumber:function(_93,_94,_95){ var v=Ext.DomQuery.selectValue(_93,_94,_95||0); return parseFloat(v); },is:function(el,ss){ if(typeof el=="string"){ el=document.getElementById(el); } var _99=(el instanceof Array); var _9a=Ext.DomQuery.filter(_99?el:[el],ss); return _99?(_9a.length==el.length):(_9a.length>0); },filter:function(els,ss,_9d){ ss=ss.replace(_5,""); if(!_2[ss]){ _2[ss]=Ext.DomQuery.compile(ss,"simple"); } var _9e=_2[ss](els); return _9d?quickDiff(_9e,els):_9e; },matchers:[{re:/^\.([\w-]+)/,select:"n = byClassName(n, null, \" {1} \");"},{re:/^\:([\w-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,select:"n = byPseudo(n, \"{1}\", \"{2}\");"},{re:/^(?:([\[\{])(?:@)?([\w-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/,select:"n = byAttribute(n, \"{2}\", \"{4}\", \"{3}\", \"{1}\");"},{re:/^#([\w-]+)/,select:"n = byId(n, null, \"{1}\");"},{re:/^@([\w-]+)/,select:"return {firstChild:{nodeValue:attrValue(n, \"{1}\")}};"}],operators:{"=":function(a,v){ return a==v; },"!=":function(a,v){ return a!=v; },"^=":function(a,v){ return a&&a.substr(0,v.length)==v; },"$=":function(a,v){ return a&&a.substr(a.length-v.length)==v; },"*=":function(a,v){ return a&&a.indexOf(v)!==-1; },"%=":function(a,v){ return (a%v)==0; },"|=":function(a,v){ return a&&(a==v||a.substr(0,v.length+1)==v+"-"); },"~=":function(a,v){ return a&&(" "+a+" ").indexOf(" "+v+" ")!=-1; }},pseudos:{"first-child":function(c){ var r=[],ri=-1,n; for(var i=0,ci;ci=n=c[i];i++){ while((n=n.previousSibling)&&n.nodeType!=1){ } if(!n){ r[++ri]=ci; } } return r; },"last-child":function(c){ var r=[],ri=-1,n; for(var i=0,ci;ci=n=c[i];i++){ while((n=n.nextSibling)&&n.nodeType!=1){ } if(!n){ r[++ri]=ci; } } return r; },"nth-child":function(c,a){ var r=[],ri=-1; var m=_9.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"||!_a.test(a)&&"n+"+a||a); var f=(m[1]||1)-0,l=m[2]-0; for(var i=0,n;n=c[i];i++){ var pn=n.parentNode; if(batch!=pn._batch){ var j=0; for(var cn=pn.firstChild;cn;cn=cn.nextSibling){ if(cn.nodeType==1){ cn.nodeIndex=++j; } } pn._batch=batch; } if(f==1){ if(l==0||n.nodeIndex==l){ r[++ri]=n; } }else{ if((n.nodeIndex+l)%f==0){ r[++ri]=n; } } } return r; },"only-child":function(c){ var r=[],ri=-1; for(var i=0,ci;ci=c[i];i++){ if(!prev(ci)&&!next(ci)){ r[++ri]=ci; } } return r; },"empty":function(c){ var r=[],ri=-1; for(var i=0,ci;ci=c[i];i++){ var cns=ci.childNodes,j=0,cn,_d4=true; while(cn=cns[j]){ ++j; if(cn.nodeType==1||cn.nodeType==3){ _d4=false; break; } } if(_d4){ r[++ri]=ci; } } return r; },"contains":function(c,v){ var r=[],ri=-1; for(var i=0,ci;ci=c[i];i++){ if((ci.textContent||ci.innerText||"").indexOf(v)!=-1){ r[++ri]=ci; } } return r; },"nodeValue":function(c,v){ var r=[],ri=-1; for(var i=0,ci;ci=c[i];i++){ if(ci.firstChild&&ci.firstChild.nodeValue==v){ r[++ri]=ci; } } return r; },"checked":function(c){ var r=[],ri=-1; for(var i=0,ci;ci=c[i];i++){ if(ci.checked==true){ r[++ri]=ci; } } return r; },"not":function(c,ss){ return Ext.DomQuery.filter(c,ss,true); },"odd":function(c){ return this["nth-child"](c,"odd"); },"even":function(c){ return this["nth-child"](c,"even"); },"nth":function(c,a){ return c[a-1]||[]; },"first":function(c){ return c[0]||[]; },"last":function(c){ return c[c.length-1]||[]; },"has":function(c,ss){ var s=Ext.DomQuery.select; var r=[],ri=-1; for(var i=0,ci;ci=c[i];i++){ if(s(ss,ci).length>0){ r[++ri]=ci; } } return r; },"next":function(c,ss){ var is=Ext.DomQuery.is; var r=[],ri=-1; for(var i=0,ci;ci=c[i];i++){ var n=next(ci); if(n&&is(n,ss)){ r[++ri]=ci; } } return r; },"prev":function(c,ss){ var is=Ext.DomQuery.is; var r=[],ri=-1; for(var i=0,ci;ci=c[i];i++){ var n=prev(ci); if(n&&is(n,ss)){ r[++ri]=ci; } } return r; }}}; }(); Ext.query=Ext.DomQuery.select; Ext.util.Observable=function(){ if(this.listeners){ this.on(this.listeners); delete this.listeners; } }; Ext.util.Observable.prototype={fireEvent:function(){ var ce=this.events[arguments[0].toLowerCase()]; if(typeof ce=="object"){ return ce.fire.apply(ce,Array.prototype.slice.call(arguments,1)); }else{ return true; } },filterOptRe:/^(?:scope|delay|buffer|single)$/,addListener:function(_2,fn,_4,o){ if(typeof _2=="object"){ o=_2; for(var e in o){ if(this.filterOptRe.test(e)){ continue; } if(typeof o[e]=="function"){ this.addListener(e,o[e],o.scope,o); }else{ this.addListener(e,o[e].fn,o[e].scope,o[e]); } } return; } o=(!o||typeof o=="boolean")?{}:o; _2=_2.toLowerCase(); var ce=this.events[_2]||true; if(typeof ce=="boolean"){ ce=new Ext.util.Event(this,_2); this.events[_2]=ce; } ce.addListener(fn,_4,o); },removeListener:function(_8,fn,_a){ var ce=this.events[_8.toLowerCase()]; if(typeof ce=="object"){ ce.removeListener(fn,_a); } },purgeListeners:function(){ for(var _c in this.events){ if(typeof this.events[_c]=="object"){ this.events[_c].clearListeners(); } } },relayEvents:function(o,_e){ var _f=function(_10){ return function(){ return this.fireEvent.apply(this,Ext.combine(_10,Array.prototype.slice.call(arguments,0))); }; }; for(var i=0,len=_e.length;i<len;i++){ var _13=_e[i]; if(!this.events[_13]){ this.events[_13]=true; } o.on(_13,_f(_13),this); } },addEvents:function(o){ if(!this.events){ this.events={}; } Ext.applyIf(this.events,o); },hasListener:function(_15){ var e=this.events[_15]; return typeof e=="object"&&e.listeners.length>0; }}; Ext.util.Observable.prototype.on=Ext.util.Observable.prototype.addListener; Ext.util.Observable.prototype.un=Ext.util.Observable.prototype.removeListener; Ext.util.Observable.capture=function(o,fn,_19){ o.fireEvent=o.fireEvent.createInterceptor(fn,_19); }; Ext.util.Observable.releaseCapture=function(o){ o.fireEvent=Ext.util.Observable.prototype.fireEvent; }; (function(){ var _1b=function(h,o,_1e){ var _1f=new Ext.util.DelayedTask(); return function(){ _1f.delay(o.buffer,h,_1e,Array.prototype.slice.call(arguments,0)); }; }; var _20=function(h,e,fn,_24){ return function(){ e.removeListener(fn,_24); return h.apply(_24,arguments); }; }; var _25=function(h,o,_28){ return function(){ var _29=Array.prototype.slice.call(arguments,0); setTimeout(function(){ h.apply(_28,_29); },o.delay||10); }; }; Ext.util.Event=function(obj,_2b){ this.name=_2b; this.obj=obj; this.listeners=[]; }; Ext.util.Event.prototype={addListener:function(fn,_2d,_2e){ var o=_2e||{}; _2d=_2d||this.obj; if(!this.isListening(fn,_2d)){ var l={fn:fn,scope:_2d,options:o}; var h=fn; if(o.delay){ h=_25(h,o,_2d); } if(o.single){ h=_20(h,this,fn,_2d); } if(o.buffer){ h=_1b(h,o,_2d); } l.fireFn=h; if(!this.firing){ this.listeners.push(l); }else{ this.listeners=this.listeners.slice(0); this.listeners.push(l); } } },findListener:function(fn,_33){ _33=_33||this.obj; var ls=this.listeners; for(var i=0,len=ls.length;i<len;i++){ var l=ls[i]; if(l.fn==fn&&l.scope==_33){ return i; } } return -1; },isListening:function(fn,_39){ return this.findListener(fn,_39)!=-1; },removeListener:function(fn,_3b){ var _3c; if((_3c=this.findListener(fn,_3b))!=-1){ if(!this.firing){ this.listeners.splice(_3c,1); }else{ this.listeners=this.listeners.slice(0); this.listeners.splice(_3c,1); } return true; } return false; },clearListeners:function(){ this.listeners=[]; },fire:function(){ var ls=this.listeners,_3e,len=ls.length; if(len>0){ this.firing=true; var _40=Array.prototype.slice.call(arguments,0); for(var i=0;i<len;i++){ var l=ls[i]; if(l.fireFn.apply(l.scope||this.obj||window,arguments)===false){ this.firing=false; return false; } } this.firing=false; } return true; }}; })(); Ext.EventManager=function(){ var _1,_2,_3=false; var _4,_5,_6,_7; var E=Ext.lib.Event; var D=Ext.lib.Dom; var _a=function(){ if(!_3){ _3=true; Ext.isReady=true; if(_2){ clearInterval(_2); } if(Ext.isGecko||Ext.isOpera){ document.removeEventListener("DOMContentLoaded",_a,false); } if(_1){ _1.fire(); _1.clearListeners(); } } }; var _b=function(){ _1=new Ext.util.Event(); if(Ext.isGecko||Ext.isOpera){ document.addEventListener("DOMContentLoaded",_a,false); }else{ if(Ext.isIE){ document.write("<s"+"cript id=\"ie-deferred-loader\" defer=\"defer\" src=\"/"+"/:\"></s"+"cript>"); var _c=document.getElementById("ie-deferred-loader"); _c.onreadystatechange=function(){ if(this.readyState=="complete"){ _a(); _c.onreadystatechange=null; _c.parentNode.removeChild(_c); } }; }else{ if(Ext.isSafari){ _2=setInterval(function(){ var rs=document.readyState; if(rs=="complete"){ _a(); } },10); } } } E.on(window,"load",_a); }; var _e=function(h,o){ var _11=new Ext.util.DelayedTask(h); return function(e){ e=new Ext.EventObjectImpl(e); _11.delay(o.buffer,h,null,[e]); }; }; var _13=function(h,el,_16,fn){ return function(e){ Ext.EventManager.removeListener(el,_16,fn); h(e); }; }; var _19=function(h,o){ return function(e){ e=new Ext.EventObjectImpl(e); setTimeout(function(){ h(e); },o.delay||10); }; }; var _1d=function(_1e,_1f,opt,fn,_22){ var o=(!opt||typeof opt=="boolean")?{}:opt; fn=fn||o.fn; _22=_22||o.scope; var el=Ext.getDom(_1e); if(!el){ throw "Error listening for \""+_1f+"\". Element \""+_1e+"\" doesn't exist."; } var h=function(e){ e=Ext.EventObject.setEvent(e); var t; if(o.delegate){ t=e.getTarget(o.delegate,el); if(!t){ return; } }else{ t=e.target; } if(o.stopEvent===true){ e.stopEvent(); } if(o.preventDefault===true){ e.preventDefault(); } if(o.stopPropagation===true){ e.stopPropagation(); } if(o.normalized===false){ e=e.browserEvent; } fn.call(_22||el,e,t,o); }; if(o.delay){ h=_19(h,o); } if(o.single){ h=_13(h,el,_1f,fn); } if(o.buffer){ h=_e(h,o); } fn._handlers=fn._handlers||[]; fn._handlers.push([Ext.id(el),_1f,h]); E.on(el,_1f,h); if(_1f=="mousewheel"&&el.addEventListener){ el.addEventListener("DOMMouseScroll",h,false); E.on(window,"unload",function(){ el.removeEventListener("DOMMouseScroll",h,false); }); } if(_1f=="mousedown"&&el==document){ Ext.EventManager.stoppedMouseDownEvent.addListener(h); } return h; }; var _28=function(el,_2a,fn){ var id=Ext.id(el),hds=fn._handlers,hd=fn; if(hds){ for(var i=0,len=hds.length;i<len;i++){ var h=hds[i]; if(h[0]==id&&h[1]==_2a){ hd=h[2]; hds.splice(i,1); break; } } } E.un(el,_2a,hd); el=Ext.getDom(el); if(_2a=="mousewheel"&&el.addEventListener){ el.removeEventListener("DOMMouseScroll",hd,false); } if(_2a=="mousedown"&&el==document){ Ext.EventManager.stoppedMouseDownEvent.removeListener(hd); } }; var _32=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/; var pub={wrap:function(fn,_35,_36){ return function(e){ Ext.EventObject.setEvent(e); fn.call(_36?_35||window:window,Ext.EventObject,_35); }; },addListener:function(_38,_39,fn,_3b,_3c){ if(typeof _39=="object"){ var o=_39; for(var e in o){ if(_32.test(e)){ continue; } if(typeof o[e]=="function"){ _1d(_38,e,o,o[e],o.scope); }else{ _1d(_38,e,o[e]); } } return; } return _1d(_38,_39,_3c,fn,_3b); },removeListener:function(_3f,_40,fn){ return _28(_3f,_40,fn); },onDocumentReady:function(fn,_43,_44){ if(_3){ fn.call(_43||window,_43); return; } if(!_1){ _b(); } _1.addListener(fn,_43,_44); },onWindowResize:function(fn,_46,_47){ if(!_4){ _4=new Ext.util.Event(); _5=new Ext.util.DelayedTask(function(){ _4.fire(D.getViewWidth(),D.getViewHeight()); }); E.on(window,"resize",function(){ if(Ext.isIE){ _5.delay(50); }else{ _4.fire(D.getViewWidth(),D.getViewHeight()); } }); } _4.addListener(fn,_46,_47); },onTextResize:function(fn,_49,_4a){ if(!_6){ _6=new Ext.util.Event(); var _4b=new Ext.Element(document.createElement("div")); _4b.dom.className="x-text-resize"; _4b.dom.innerHTML="X"; _4b.appendTo(document.body); _7=_4b.dom.offsetHeight; setInterval(function(){ if(_4b.dom.offsetHeight!=_7){ _6.fire(_7,_7=_4b.dom.offsetHeight); } },this.textResizeInterval); } _6.addListener(fn,_49,_4a); },removeResizeListener:function(fn,_4d){ if(_4){ _4.removeListener(fn,_4d); } },fireResize:function(){ if(_4){ _4.fire(D.getViewWidth(),D.getViewHeight()); } },ieDeferSrc:false,textResizeInterval:50}; pub.on=pub.addListener; pub.un=pub.removeListener; pub.stoppedMouseDownEvent=new Ext.util.Event(); return pub; }(); Ext.onReady=Ext.EventManager.onDocumentReady; Ext.onReady(function(){ var bd=Ext.get(document.body); if(!bd){ return; } var cls=[Ext.isIE?"ext-ie":Ext.isGecko?"ext-gecko":Ext.isOpera?"ext-opera":Ext.isSafari?"ext-safari":""]; if(Ext.isMac){ cls.push("ext-mac"); } if(Ext.isLinux){ cls.push("ext-linux"); } if(Ext.isBorderBox){ cls.push("ext-border-box"); } if(Ext.isStrict){ var p=bd.dom.parentNode; if(p){ p.className=p.className?" ext-strict":"ext-strict"; } } bd.addClass(cls.join(" ")); }); Ext.EventObject=function(){ var E=Ext.lib.Event; var _52={63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35}; var _53=Ext.isIE?{1:0,4:1,2:2}:(Ext.isSafari?{1:0,2:1,3:2}:{0:0,1:1,2:2}); Ext.EventObjectImpl=function(e){ if(e){ this.setEvent(e.browserEvent||e); } }; Ext.EventObjectImpl.prototype={browserEvent:null,button:-1,shiftKey:false,ctrlKey:false,altKey:false,BACKSPACE:8,TAB:9,RETURN:13,ENTER:13,SHIFT:16,CONTROL:17,ESC:27,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,F5:116,setEvent:function(e){ if(e==this||(e&&e.browserEvent)){ return e; } this.browserEvent=e; if(e){ this.button=e.button?_53[e.button]:(e.which?e.which-1:-1); if(e.type=="click"&&this.button==-1){ this.button=0; } this.type=e.type; this.shiftKey=e.shiftKey; this.ctrlKey=e.ctrlKey||e.metaKey; this.altKey=e.altKey; this.keyCode=e.keyCode; this.charCode=e.charCode; this.target=E.getTarget(e); this.xy=E.getXY(e); }else{ this.button=-1; this.shiftKey=false; this.ctrlKey=false; this.altKey=false; this.keyCode=0; this.charCode=0; this.target=null; this.xy=[0,0]; } return this; },stopEvent:function(){ if(this.browserEvent){ if(this.browserEvent.type=="mousedown"){ Ext.EventManager.stoppedMouseDownEvent.fire(this); } E.stopEvent(this.browserEvent); } },preventDefault:function(){ if(this.browserEvent){ E.preventDefault(this.browserEvent); } },isNavKeyPress:function(){ var k=this.keyCode; k=Ext.isSafari?(_52[k]||k):k; return (k>=33&&k<=40)||k==this.RETURN||k==this.TAB||k==this.ESC; },isSpecialKey:function(){ var k=this.keyCode; return (this.type=="keypress"&&this.ctrlKey)||k==9||k==13||k==40||k==27||(k==16)||(k==17)||(k>=18&&k<=20)||(k>=33&&k<=35)||(k>=36&&k<=39)||(k>=44&&k<=45); },stopPropagation:function(){ if(this.browserEvent){ if(this.type=="mousedown"){ Ext.EventManager.stoppedMouseDownEvent.fire(this); } E.stopPropagation(this.browserEvent); } },getCharCode:function(){ return this.charCode||this.keyCode; },getKey:function(){ var k=this.keyCode||this.charCode; return Ext.isSafari?(_52[k]||k):k; },getPageX:function(){ return this.xy[0]; },getPageY:function(){ return this.xy[1]; },getTime:function(){ if(this.browserEvent){ return E.getTime(this.browserEvent); } return null; },getXY:function(){ return this.xy; },getTarget:function(_59,_5a,_5b){ return _59?Ext.fly(this.target).findParent(_59,_5a,_5b):this.target; },getRelatedTarget:function(){ if(this.browserEvent){ return E.getRelatedTarget(this.browserEvent); } return null; },getWheelDelta:function(){ var e=this.browserEvent; var _5d=0; if(e.wheelDelta){ _5d=e.wheelDelta/120; if(window.opera){ _5d=-_5d; } }else{ if(e.detail){ _5d=-e.detail/3; } } return _5d; },hasModifier:function(){ return !!((this.ctrlKey||this.altKey)||this.shiftKey); },within:function(el,_5f){ var t=this[_5f?"getRelatedTarget":"getTarget"](); return t&&Ext.fly(el).contains(t); },getPoint:function(){ return new Ext.lib.Point(this.xy[0],this.xy[1]); }}; return new Ext.EventObjectImpl(); }(); (function(){ var D=Ext.lib.Dom; var E=Ext.lib.Event; var A=Ext.lib.Anim; var _4={}; var _5=/(-[a-z])/gi; var _6=function(m,a){ return a.charAt(1).toUpperCase(); }; var _9=document.defaultView; Ext.Element=function(_a,_b){ var _c=typeof _a=="string"?document.getElementById(_a):_a; if(!_c){ return null; } var id=_c.id; if(_b!==true&&id&&Ext.Element.cache[id]){ return Ext.Element.cache[id]; } this.dom=_c; this.id=id||Ext.id(_c); }; var El=Ext.Element; El.prototype={originalDisplay:"",visibilityMode:1,defaultUnit:"px",setVisibilityMode:function(_f){ this.visibilityMode=_f; return this; },enableDisplayMode:function(_10){ this.setVisibilityMode(El.DISPLAY); if(typeof _10!="undefined"){ this.originalDisplay=_10; } return this; },findParent:function(_11,_12,_13){ var p=this.dom,b=document.body,_16=0,dq=Ext.DomQuery,_18; _12=_12||50; if(typeof _12!="number"){ _18=Ext.getDom(_12); _12=10; } while(p&&p.nodeType==1&&_16<_12&&p!=b&&p!=_18){ if(dq.is(p,_11)){ return _13?Ext.get(p):p; } _16++; p=p.parentNode; } return null; },findParentNode:function(_19,_1a,_1b){ var p=Ext.fly(this.dom.parentNode,"_internal"); return p?p.findParent(_19,_1a,_1b):null; },up:function(_1d,_1e){ return this.findParentNode(_1d,_1e,true); },is:function(_1f){ return Ext.DomQuery.is(this.dom,_1f); },animate:function(_20,_21,_22,_23,_24){ this.anim(_20,{duration:_21,callback:_22,easing:_23},_24); return this; },anim:function(_25,opt,_27,_28,_29,cb){ _27=_27||"run"; opt=opt||{}; var _2b=Ext.lib.Anim[_27](this.dom,_25,(opt.duration||_28)||0.35,(opt.easing||_29)||"easeOut",function(){ Ext.callback(cb,this); Ext.callback(opt.callback,opt.scope||this,[this,opt]); },this); opt.anim=_2b; return _2b; },preanim:function(a,i){ return !a[i]?false:(typeof a[i]=="object"?a[i]:{duration:a[i+1],callback:a[i+2],easing:a[i+3]}); },clean:function(_2e){ if(this.isCleaned&&_2e!==true){ return this; } var ns=/\S/; var d=this.dom,n=d.firstChild,ni=-1; while(n){ var nx=n.nextSibling; if(n.nodeType==3&&!ns.test(n.nodeValue)){ d.removeChild(n); }else{ n.nodeIndex=++ni; } n=nx; } this.isCleaned=true; return this; },calcOffsetsTo:function(el){ el=Ext.get(el); var d=el.dom; var _36=false; if(el.getStyle("position")=="static"){ el.position("relative"); _36=true; } var x=0,y=0; var op=this.dom; while(op&&op!=d&&op.tagName!="HTML"){ x+=op.offsetLeft; y+=op.offsetTop; op=op.offsetParent; } if(_36){ el.position("static"); } return [x,y]; },scrollIntoView:function(_3a,_3b){ var c=Ext.getDom(_3a)||document.body; var el=this.dom; var o=this.calcOffsetsTo(c),l=o[0],t=o[1],b=t+el.offsetHeight,r=l+el.offsetWidth; var ch=c.clientHeight; var ct=parseInt(c.scrollTop,10); var cl=parseInt(c.scrollLeft,10); var cb=ct+ch; var cr=cl+c.clientWidth; if(t<ct){ c.scrollTop=t; }else{ if(b>cb){ c.scrollTop=b-ch; } } if(_3b!==false){ if(l<cl){ c.scrollLeft=l; }else{ if(r>cr){ c.scrollLeft=r-c.clientWidth; } } } return this; },scrollChildIntoView:function(_48,_49){ Ext.fly(_48,"_scrollChildIntoView").scrollIntoView(this,_49); },autoHeight:function(_4a,_4b,_4c,_4d){ var _4e=this.getHeight(); this.clip(); this.setHeight(1); setTimeout(function(){ var _4f=parseInt(this.dom.scrollHeight,10); if(!_4a){ this.setHeight(_4f); this.unclip(); if(typeof _4c=="function"){ _4c(); } }else{ this.setHeight(_4e); this.setHeight(_4f,_4a,_4b,function(){ this.unclip(); if(typeof _4c=="function"){ _4c(); } }.createDelegate(this),_4d); } }.createDelegate(this),0); return this; },contains:function(el){ if(!el){ return false; } return D.isAncestor(this.dom,el.dom?el.dom:el); },isVisible:function(_51){ var vis=!(this.getStyle("visibility")=="hidden"||this.getStyle("display")=="none"); if(_51!==true||!vis){ return vis; } var p=this.dom.parentNode; while(p&&p.tagName.toLowerCase()!="body"){ if(!Ext.fly(p,"_isVisible").isVisible()){ return false; } p=p.parentNode; } return true; },select:function(_54,_55){ return El.select(_54,_55,this.dom); },query:function(_56,_57){ return Ext.DomQuery.select(_56,this.dom); },child:function(_58,_59){ var n=Ext.DomQuery.selectNode(_58,this.dom); return _59?n:Ext.get(n); },down:function(_5b,_5c){ var n=Ext.DomQuery.selectNode(" > "+_5b,this.dom); return _5c?n:Ext.get(n); },initDD:function(_5e,_5f,_60){ var dd=new Ext.dd.DD(Ext.id(this.dom),_5e,_5f); return Ext.apply(dd,_60); },initDDProxy:function(_62,_63,_64){ var dd=new Ext.dd.DDProxy(Ext.id(this.dom),_62,_63); return Ext.apply(dd,_64); },initDDTarget:function(_66,_67,_68){ var dd=new Ext.dd.DDTarget(Ext.id(this.dom),_66,_67); return Ext.apply(dd,_68); },setVisible:function(_6a,_6b){ if(!_6b||!A){ if(this.visibilityMode==El.DISPLAY){ this.setDisplayed(_6a); }else{ this.fixDisplay(); this.dom.style.visibility=_6a?"visible":"hidden"; } }else{ var dom=this.dom; var _6d=this.visibilityMode; if(_6a){ this.setOpacity(0.01); this.setVisible(true); } this.anim({opacity:{to:(_6a?1:0)}},this.preanim(arguments,1),null,0.35,"easeIn",function(){ if(!_6a){ if(_6d==El.DISPLAY){ dom.style.display="none"; }else{ dom.style.visibility="hidden"; } Ext.get(dom).setOpacity(1); } }); } return this; },isDisplayed:function(){ return this.getStyle("display")!="none"; },toggle:function(_6e){ this.setVisible(!this.isVisible(),this.preanim(arguments,0)); return this; },setDisplayed:function(_6f){ if(typeof _6f=="boolean"){ _6f=_6f?this.originalDisplay:"none"; } this.setStyle("display",_6f); return this; },focus:function(){ try{ this.dom.focus(); } catch(e){ } return this; },blur:function(){ try{ this.dom.blur(); } catch(e){ } return this; },addClass:function(_70){ if(_70 instanceof Array){ for(var i=0,len=_70.length;i<len;i++){ this.addClass(_70[i]); } }else{ if(_70&&!this.hasClass(_70)){ this.dom.className=this.dom.className+" "+_70; } } return this; },radioClass:function(_73){ var _74=this.dom.parentNode.childNodes; for(var i=0;i<_74.length;i++){ var s=_74[i]; if(s.nodeType==1){ Ext.get(s).removeClass(_73); } } this.addClass(_73); return this; },removeClass:function(_77){ if(!_77||!this.dom.className){ return this; } if(_77 instanceof Array){ for(var i=0,len=_77.length;i<len;i++){ this.removeClass(_77[i]); } }else{ if(this.hasClass(_77)){ var re=this.classReCache[_77]; if(!re){ re=new RegExp("(?:^|\\s+)"+_77+"(?:\\s+|$)","g"); this.classReCache[_77]=re; } this.dom.className=this.dom.className.replace(re," "); } } return this; },classReCache:{},toggleClass:function(_7b){ if(this.hasClass(_7b)){ this.removeClass(_7b); }else{ this.addClass(_7b); } return this; },hasClass:function(_7c){ return _7c&&(" "+this.dom.className+" ").indexOf(" "+_7c+" ")!=-1; },replaceClass:function(_7d,_7e){ this.removeClass(_7d); this.addClass(_7e); return this; },getStyles:function(){ var a=arguments,len=a.length,r={}; for(var i=0;i<len;i++){ r[a[i]]=this.getStyle(a[i]); } return r; },getStyle:function(){ return _9&&_9.getComputedStyle?function(_83){ var el=this.dom,v,cs,_87; if(_83=="float"){ _83="cssFloat"; } if(v=el.style[_83]){ return v; } if(cs=_9.getComputedStyle(el,"")){ if(!(_87=_4[_83])){ _87=_4[_83]=_83.replace(_5,_6); } return cs[_87]; } return null; }:function(_88){ var el=this.dom,v,cs,_8c; if(_88=="opacity"){ if(typeof el.style.filter=="string"){ var m=el.style.filter.match(/alpha\(opacity=(.*)\)/i); if(m){ var fv=parseFloat(m[1]); if(!isNaN(fv)){ return fv?fv/100:0; } } } return 1; }else{ if(_88=="float"){ _88="styleFloat"; } } if(!(_8c=_4[_88])){ _8c=_4[_88]=_88.replace(_5,_6); } if(v=el.style[_8c]){ return v; } if(cs=el.currentStyle){ return cs[_8c]; } return null; }; }(),setStyle:function(_8f,_90){ if(typeof _8f=="string"){ var _91; if(!(_91=_4[_8f])){ _91=_4[_8f]=_8f.replace(_5,_6); } if(_91=="opacity"){ this.setOpacity(_90); }else{ this.dom.style[_91]=_90; } }else{ for(var _92 in _8f){ if(typeof _8f[_92]!="function"){ this.setStyle(_92,_8f[_92]); } } } return this; },applyStyles:function(_93){ Ext.DomHelper.applyStyles(this.dom,_93); return this; },getX:function(){ return D.getX(this.dom); },getY:function(){ return D.getY(this.dom); },getXY:function(){ return D.getXY(this.dom); },setX:function(x,_95){ if(!_95||!A){ D.setX(this.dom,x); }else{ this.setXY([x,this.getY()],this.preanim(arguments,1)); } return this; },setY:function(y,_97){ if(!_97||!A){ D.setY(this.dom,y); }else{ this.setXY([this.getX(),y],this.preanim(arguments,1)); } return this; },setLeft:function(_98){ this.setStyle("left",this.addUnits(_98)); return this; },setTop:function(top){ this.setStyle("top",this.addUnits(top)); return this; },setRight:function(_9a){ this.setStyle("right",this.addUnits(_9a)); return this; },setBottom:function(_9b){ this.setStyle("bottom",this.addUnits(_9b)); return this; },setXY:function(pos,_9d){ if(!_9d||!A){ D.setXY(this.dom,pos); }else{ this.anim({points:{to:pos}},this.preanim(arguments,1),"motion"); } return this; },setLocation:function(x,y,_a0){ this.setXY([x,y],this.preanim(arguments,2)); return this; },moveTo:function(x,y,_a3){ this.setXY([x,y],this.preanim(arguments,2)); return this; },getRegion:function(){ return D.getRegion(this.dom); },getHeight:function(_a4){ var h=this.dom.offsetHeight||0; return _a4!==true?h:h-this.getBorderWidth("tb")-this.getPadding("tb"); },getWidth:function(_a6){ var w=this.dom.offsetWidth||0; return _a6!==true?w:w-this.getBorderWidth("lr")-this.getPadding("lr"); },getComputedHeight:function(){ var h=Math.max(this.dom.offsetHeight,this.dom.clientHeight); if(!h){ h=parseInt(this.getStyle("height"),10)||0; if(!this.isBorderBox()){ h+=this.getFrameWidth("tb"); } } return h; },getComputedWidth:function(){ var w=Math.max(this.dom.offsetWidth,this.dom.clientWidth); if(!w){ w=parseInt(this.getStyle("width"),10)||0; if(!this.isBorderBox()){ w+=this.getFrameWidth("lr"); } } return w; },getSize:function(_aa){ return {width:this.getWidth(_aa),height:this.getHeight(_aa)}; },getViewSize:function(){ var d=this.dom,doc=document,aw=0,ah=0; if(d==doc||d==doc.body){ return {width:D.getViewWidth(),height:D.getViewHeight()}; }else{ return {width:d.clientWidth,height:d.clientHeight}; } },getValue:function(_af){ return _af?parseInt(this.dom.value,10):this.dom.value; },adjustWidth:function(_b0){ if(typeof _b0=="number"){ if(this.autoBoxAdjust&&!this.isBorderBox()){ _b0-=(this.getBorderWidth("lr")+this.getPadding("lr")); } if(_b0<0){ _b0=0; } } return _b0; },adjustHeight:function(_b1){ if(typeof _b1=="number"){ if(this.autoBoxAdjust&&!this.isBorderBox()){ _b1-=(this.getBorderWidth("tb")+this.getPadding("tb")); } if(_b1<0){ _b1=0; } } return _b1; },setWidth:function(_b2,_b3){ _b2=this.adjustWidth(_b2); if(!_b3||!A){ this.dom.style.width=this.addUnits(_b2); }else{ this.anim({width:{to:_b2}},this.preanim(arguments,1)); } return this; },setHeight:function(_b4,_b5){ _b4=this.adjustHeight(_b4); if(!_b5||!A){ this.dom.style.height=this.addUnits(_b4); }else{ this.anim({height:{to:_b4}},this.preanim(arguments,1)); } return this; },setSize:function(_b6,_b7,_b8){ if(typeof _b6=="object"){ _b7=_b6.height; _b6=_b6.width; } _b6=this.adjustWidth(_b6); _b7=this.adjustHeight(_b7); if(!_b8||!A){ this.dom.style.width=this.addUnits(_b6); this.dom.style.height=this.addUnits(_b7); }else{ this.anim({width:{to:_b6},height:{to:_b7}},this.preanim(arguments,2)); } return this; },setBounds:function(x,y,_bb,_bc,_bd){ if(!_bd||!A){ this.setSize(_bb,_bc); this.setLocation(x,y); }else{ _bb=this.adjustWidth(_bb); _bc=this.adjustHeight(_bc); this.anim({points:{to:[x,y]},width:{to:_bb},height:{to:_bc}},this.preanim(arguments,4),"motion"); } return this; },setRegion:function(_be,_bf){ this.setBounds(_be.left,_be.top,_be.right-_be.left,_be.bottom-_be.top,this.preanim(arguments,1)); return this; },addListener:function(_c0,fn,_c2,_c3){ Ext.EventManager.on(this.dom,_c0,fn,_c2||this,_c3); },removeListener:function(_c4,fn){ Ext.EventManager.removeListener(this.dom,_c4,fn); return this; },removeAllListeners:function(){ E.purgeElement(this.dom); return this; },relayEvent:function(_c6,_c7){ this.on(_c6,function(e){ _c7.fireEvent(_c6,e); }); },setOpacity:function(_c9,_ca){ if(!_ca||!A){ var s=this.dom.style; if(Ext.isIE){ s.zoom=1; s.filter=(s.filter||"").replace(/alpha\([^\)]*\)/gi,"")+(_c9==1?"":"alpha(opacity="+_c9*100+")"); }else{ s.opacity=_c9; } }else{ this.anim({opacity:{to:_c9}},this.preanim(arguments,1),null,0.35,"easeIn"); } return this; },getLeft:function(_cc){ if(!_cc){ return this.getX(); }else{ return parseInt(this.getStyle("left"),10)||0; } },getRight:function(_cd){ if(!_cd){ return this.getX()+this.getWidth(); }else{ return (this.getLeft(true)+this.getWidth())||0; } },getTop:function(_ce){ if(!_ce){ return this.getY(); }else{ return parseInt(this.getStyle("top"),10)||0; } },getBottom:function(_cf){ if(!_cf){ return this.getY()+this.getHeight(); }else{ return (this.getTop(true)+this.getHeight())||0; } },position:function(pos,_d1,x,y){ if(!pos){ if(this.getStyle("position")=="static"){ this.setStyle("position","relative"); } }else{ this.setStyle("position",pos); } if(_d1){ this.setStyle("z-index",_d1); } if(x!==undefined&&y!==undefined){ this.setXY([x,y]); }else{ if(x!==undefined){ this.setX(x); }else{ if(y!==undefined){ this.setY(y); } } } },clearPositioning:function(_d4){ _d4=_d4||""; this.setStyle({"left":_d4,"right":_d4,"top":_d4,"bottom":_d4,"z-index":"","position":"static"}); return this; },getPositioning:function(){ var l=this.getStyle("left"); var t=this.getStyle("top"); return {"position":this.getStyle("position"),"left":l,"right":l?"":this.getStyle("right"),"top":t,"bottom":t?"":this.getStyle("bottom"),"z-index":this.getStyle("z-index")}; },getBorderWidth:function(_d7){ return this.addStyles(_d7,El.borders); },getPadding:function(_d8){ return this.addStyles(_d8,El.paddings); },setPositioning:function(pc){ this.applyStyles(pc); if(pc.right=="auto"){ this.dom.style.right=""; } if(pc.bottom=="auto"){ this.dom.style.bottom=""; } return this; },fixDisplay:function(){ if(this.getStyle("display")=="none"){ this.setStyle("visibility","hidden"); this.setStyle("display",this.originalDisplay); if(this.getStyle("display")=="none"){ this.setStyle("display","block"); } } },setLeftTop:function(_da,top){ this.dom.style.left=this.addUnits(_da); this.dom.style.top=this.addUnits(top); return this; },move:function(_dc,_dd,_de){ var xy=this.getXY(); _dc=_dc.toLowerCase(); switch(_dc){ case "l": case "left": this.moveTo(xy[0]-_dd,xy[1],this.preanim(arguments,2)); break; case "r": case "right": this.moveTo(xy[0]+_dd,xy[1],this.preanim(arguments,2)); break; case "t": case "top": case "up": this.moveTo(xy[0],xy[1]-_dd,this.preanim(arguments,2)); break; case "b": case "bottom": case "down": this.moveTo(xy[0],xy[1]+_dd,this.preanim(arguments,2)); break; } return this; },clip:function(){ if(!this.isClipped){ this.isClipped=true; this.originalClip={"o":this.getStyle("overflow"),"x":this.getStyle("overflow-x"),"y":this.getStyle("overflow-y")}; this.setStyle("overflow","hidden"); this.setStyle("overflow-x","hidden"); this.setStyle("overflow-y","hidden"); } return this; },unclip:function(){ if(this.isClipped){ this.isClipped=false; var o=this.originalClip; if(o.o){ this.setStyle("overflow",o.o); } if(o.x){ this.setStyle("overflow-x",o.x); } if(o.y){ this.setStyle("overflow-y",o.y); } } return this; },getAnchorXY:function(_e1,_e2,s){ var w,h,vp=false; if(!s){ var d=this.dom; if(d==document.body||d==document){ vp=true; w=D.getViewWidth(); h=D.getViewHeight(); }else{ w=this.getWidth(); h=this.getHeight(); } }else{ w=s.width; h=s.height; } var x=0,y=0,r=Math.round; switch((_e1||"tl").toLowerCase()){ case "c": x=r(w*0.5); y=r(h*0.5); break; case "t": x=r(w*0.5); y=0; break; case "l": x=0; y=r(h*0.5); break; case "r": x=w; y=r(h*0.5); break; case "b": x=r(w*0.5); y=h; break; case "tl": x=0; y=0; break; case "bl": x=0; y=h; break; case "br": x=w; y=h; break; case "tr": x=w; y=0; break; } if(_e2===true){ return [x,y]; } if(vp){ var sc=this.getScroll(); return [x+sc.left,y+sc.top]; } var o=this.getXY(); return [x+o[0],y+o[1]]; },getAlignToXY:function(el,p,o){ el=Ext.get(el); var d=this.dom; if(!el.dom){ throw "Element.alignTo with an element that doesn't exist"; } var c=false; var p1="",p2=""; o=o||[0,0]; if(!p){ p="tl-bl"; }else{ if(p=="?"){ p="tl-bl?"; }else{ if(p.indexOf("-")==-1){ p="tl-"+p; } } } p=p.toLowerCase(); var m=p.match(/^([a-z]+)-([a-z]+)(\?)?$/); if(!m){ throw "Element.alignTo with an invalid alignment "+p; } p1=m[1]; p2=m[2]; c=!!m[3]; var a1=this.getAnchorXY(p1,true); var a2=el.getAnchorXY(p2,false); var x=a2[0]-a1[0]+o[0]; var y=a2[1]-a1[1]+o[1]; if(c){ var w=this.getWidth(),h=this.getHeight(),r=el.getRegion(); var dw=D.getViewWidth()-5,dh=D.getViewHeight()-5; var p1y=p1.charAt(0),p1x=p1.charAt(p1.length-1); var p2y=p2.charAt(0),p2x=p2.charAt(p2.length-1); var _102=((p1y=="t"&&p2y=="b")||(p1y=="b"&&p2y=="t")); var _103=((p1x=="r"&&p2x=="l")||(p1x=="l"&&p2x=="r")); var doc=document; var _105=(doc.documentElement.scrollLeft||doc.body.scrollLeft||0)+5; var _106=(doc.documentElement.scrollTop||doc.body.scrollTop||0)+5; if((x+w)>dw+_105){ x=_103?r.left-w:dw+_105-w; } if(x<_105){ x=_103?r.right:_105; } if((y+h)>dh+_106){ y=_102?r.top-h:dh+_106-h; } if(y<_106){ y=_102?r.bottom:_106; } } return [x,y]; },getConstrainToXY:function(){ var os={top:0,left:0,bottom:0,right:0}; return function(el,_109,_10a,_10b){ el=Ext.get(el); _10a=_10a?Ext.applyIf(_10a,os):os; var vw,vh,vx=0,vy=0; if(el.dom==document.body||el.dom==document){ vw=Ext.lib.Dom.getViewWidth(); vh=Ext.lib.Dom.getViewHeight(); }else{ vw=el.dom.clientWidth; vh=el.dom.clientHeight; if(!_109){ var vxy=el.getXY(); vx=vxy[0]; vy=vxy[1]; } } var s=el.getScroll(); vx+=_10a.left+s.left; vy+=_10a.top+s.top; vw-=_10a.right; vh-=_10a.bottom; var vr=vx+vw; var vb=vy+vh; var xy=_10b||(!_109?this.getXY():[this.getLeft(true),this.getTop(true)]); var x=xy[0],y=xy[1]; var w=this.dom.offsetWidth,h=this.dom.offsetHeight; var _119=false; if((x+w)>vr){ x=vr-w; _119=true; } if((y+h)>vb){ y=vb-h; _119=true; } if(x<vx){ x=vx; _119=true; } if(y<vy){ y=vy; _119=true; } return _119?[x,y]:false; }; }(),adjustForConstraints:function(xy,_11b,_11c){ return this.getConstrainToXY(_11b||document,false,_11c,xy)||xy; },alignTo:function(_11d,_11e,_11f,_120){ var xy=this.getAlignToXY(_11d,_11e,_11f); this.setXY(xy,this.preanim(arguments,3)); return this; },anchorTo:function(el,_123,_124,_125,_126,_127){ var _128=function(){ this.alignTo(el,_123,_124,_125); Ext.callback(_127,this); }; Ext.EventManager.onWindowResize(_128,this); var tm=typeof _126; if(tm!="undefined"){ Ext.EventManager.on(window,"scroll",_128,this,{buffer:tm=="number"?_126:50}); } _128.call(this); return this; },clearOpacity:function(){ if(window.ActiveXObject){ if(typeof this.dom.style.filter=="string"&&(/alpha/i).test(this.dom.style.filter)){ this.dom.style.filter=""; } }else{ this.dom.style.opacity=""; this.dom.style["-moz-opacity"]=""; this.dom.style["-khtml-opacity"]=""; } return this; },hide:function(_12a){ this.setVisible(false,this.preanim(arguments,0)); return this; },show:function(_12b){ this.setVisible(true,this.preanim(arguments,0)); return this; },addUnits:function(size){ return Ext.Element.addUnits(size,this.defaultUnit); },beginMeasure:function(){ var el=this.dom; if(el.offsetWidth||el.offsetHeight){ return this; } var _12e=[]; var p=this.dom,b=document.body; while((!el.offsetWidth&&!el.offsetHeight)&&p&&p.tagName&&p!=b){ var pe=Ext.get(p); if(pe.getStyle("display")=="none"){ _12e.push({el:p,visibility:pe.getStyle("visibility")}); p.style.visibility="hidden"; p.style.display="block"; } p=p.parentNode; } this._measureChanged=_12e; return this; },endMeasure:function(){ var _132=this._measureChanged; if(_132){ for(var i=0,len=_132.length;i<len;i++){ var r=_132[i]; r.el.style.visibility=r.visibility; r.el.style.display="none"; } this._measureChanged=null; } return this; },update:function(html,_137,_138){ if(typeof html=="undefined"){ html=""; } if(_137!==true){ this.dom.innerHTML=html; if(typeof _138=="function"){ _138(); } return this; } var id=Ext.id(); var dom=this.dom; html+="<span id=\""+id+"\"></span>"; E.onAvailable(id,function(){ var hd=document.getElementsByTagName("head")[0]; var re=/(?:<script([^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig; var _13d=/\ssrc=([\'\"])(.*?)\1/i; var _13e=/\stype=([\'\"])(.*?)\1/i; var _13f; while(_13f=re.exec(html)){ var _140=_13f[1]; var _141=_140?_140.match(_13d):false; if(_141&&_141[2]){ var s=document.createElement("script"); s.src=_141[2]; var _143=_140.match(_13e); if(_143&&_143[2]){ s.type=_143[2]; } hd.appendChild(s); }else{ if(_13f[2]&&_13f[2].length>0){ eval(_13f[2]); } } } var el=document.getElementById(id); if(el){ el.parentNode.removeChild(el); } if(typeof _138=="function"){ _138(); } }); dom.innerHTML=html.replace(/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,""); return this; },load:function(){ var um=this.getUpdateManager(); um.update.apply(um,arguments); return this; },getUpdateManager:function(){ if(!this.updateManager){ this.updateManager=new Ext.UpdateManager(this); } return this.updateManager; },unselectable:function(){ this.dom.unselectable="on"; this.swallowEvent("selectstart",true); this.applyStyles("-moz-user-select:none;-khtml-user-select:none;"); this.addClass("x-unselectable"); return this; },getCenterXY:function(){ return this.getAlignToXY(document,"c-c"); },center:function(_146){ this.alignTo(_146||document,"c-c"); return this; },isBorderBox:function(){ return _147[this.dom.tagName.toLowerCase()]||Ext.isBorderBox; },getBox:function(_148,_149){ var xy; if(!_149){ xy=this.getXY(); }else{ var left=parseInt(this.getStyle("left"),10)||0; var top=parseInt(this.getStyle("top"),10)||0; xy=[left,top]; } var el=this.dom,w=el.offsetWidth,h=el.offsetHeight,bx; if(!_148){ bx={x:xy[0],y:xy[1],0:xy[0],1:xy[1],width:w,height:h}; }else{ var l=this.getBorderWidth("l")+this.getPadding("l"); var r=this.getBorderWidth("r")+this.getPadding("r"); var t=this.getBorderWidth("t")+this.getPadding("t"); var b=this.getBorderWidth("b")+this.getPadding("b"); bx={x:xy[0]+l,y:xy[1]+t,0:xy[0]+l,1:xy[1]+t,width:w-(l+r),height:h-(t+b)}; } bx.right=bx.x+bx.width; bx.bottom=bx.y+bx.height; return bx; },getFrameWidth:function(_155,_156){ return _156&&Ext.isBorderBox?0:(this.getPadding(_155)+this.getBorderWidth(_155)); },setBox:function(box,_158,_159){ var w=box.width,h=box.height; if((_158&&!this.autoBoxAdjust)&&!this.isBorderBox()){ w-=(this.getBorderWidth("lr")+this.getPadding("lr")); h-=(this.getBorderWidth("tb")+this.getPadding("tb")); } this.setBounds(box.x,box.y,w,h,this.preanim(arguments,2)); return this; },repaint:function(){ var dom=this.dom; this.addClass("x-repaint"); setTimeout(function(){ Ext.get(dom).removeClass("x-repaint"); },1); return this; },getMargins:function(side){ if(!side){ return {top:parseInt(this.getStyle("margin-top"),10)||0,left:parseInt(this.getStyle("margin-left"),10)||0,bottom:parseInt(this.getStyle("margin-bottom"),10)||0,right:parseInt(this.getStyle("margin-right"),10)||0}; }else{ return this.addStyles(side,El.margins); } },addStyles:function(_15e,_15f){ var val=0,v,w; for(var i=0,len=_15e.length;i<len;i++){ v=this.getStyle(_15f[_15e.charAt(i)]); if(v){ w=parseInt(v,10); if(w){ val+=w; } } } return val; },createProxy:function(_165,_166,_167){ if(_166){ _166=Ext.getDom(_166); }else{ _166=document.body; } _165=typeof _165=="object"?_165:{tag:"div",cls:_165}; var _168=Ext.DomHelper.append(_166,_165,true); if(_167){ _168.setBox(this.getBox()); } return _168; },mask:function(msg,_16a){ if(this.getStyle("position")=="static"){ this.setStyle("position","relative"); } if(!this._mask){ this._mask=Ext.DomHelper.append(this.dom,{cls:"ext-el-mask"},true); } this.addClass("x-masked"); this._mask.setDisplayed(true); if(typeof msg=="string"){ if(!this._maskMsg){ this._maskMsg=Ext.DomHelper.append(this.dom,{cls:"ext-el-mask-msg",cn:{tag:"div"}},true); } var mm=this._maskMsg; mm.dom.className=_16a?"ext-el-mask-msg "+_16a:"ext-el-mask-msg"; mm.dom.firstChild.innerHTML=msg; mm.setDisplayed(true); mm.center(this); } if(Ext.isIE&&!(Ext.isIE7&&Ext.isStrict)&&this.getStyle("height")=="auto"){ this._mask.setHeight(this.getHeight()); } return this._mask; },unmask:function(_16c){ if(this._mask){ if(_16c===true){ this._mask.remove(); delete this._mask; if(this._maskMsg){ this._maskMsg.remove(); delete this._maskMsg; } }else{ this._mask.setDisplayed(false); if(this._maskMsg){ this._maskMsg.setDisplayed(false); } } } this.removeClass("x-masked"); },isMasked:function(){ return this._mask&&this._mask.isVisible(); },createShim:function(){ var el=document.createElement("iframe"); el.frameBorder="no"; el.className="ext-shim"; if(Ext.isIE&&Ext.isSecure){ el.src=Ext.SSL_SECURE_URL; } var shim=Ext.get(this.dom.parentNode.insertBefore(el,this.dom)); shim.autoBoxAdjust=false; return shim; },remove:function(){ if(this.dom.parentNode){ this.dom.parentNode.removeChild(this.dom); } delete El.cache[this.dom.id]; },addClassOnOver:function(_16f,_170){ this.on("mouseover",function(){ Ext.fly(this,"_internal").addClass(_16f); },this.dom); var _171=function(e){ if(_170!==true||!e.within(this,true)){ Ext.fly(this,"_internal").removeClass(_16f); } }; this.on("mouseout",_171,this.dom); return this; },addClassOnFocus:function(_173){ this.on("focus",function(){ Ext.fly(this,"_internal").addClass(_173); },this.dom); this.on("blur",function(){ Ext.fly(this,"_internal").removeClass(_173); },this.dom); return this; },addClassOnClick:function(_174){ var dom=this.dom; this.on("mousedown",function(){ Ext.fly(dom,"_internal").addClass(_174); var d=Ext.get(document); var fn=function(){ Ext.fly(dom,"_internal").removeClass(_174); d.removeListener("mouseup",fn); }; d.on("mouseup",fn); }); return this; },swallowEvent:function(_178,_179){ var fn=function(e){ e.stopPropagation(); if(_179){ e.preventDefault(); } }; if(_178 instanceof Array){ for(var i=0,len=_178.length;i<len;i++){ this.on(_178[i],fn); } return this; } this.on(_178,fn); return this; },fitToParentDelegate:Ext.emptyFn,fitToParent:function(_17e,_17f){ Ext.EventManager.removeResizeListener(this.fitToParentDelegate); this.fitToParentDelegate=Ext.emptyFn; if(_17e===true&&!this.dom.parentNode){ return; } var p=Ext.get(_17f||this.dom.parentNode); this.setSize(p.getComputedWidth()-p.getFrameWidth("lr"),p.getComputedHeight()-p.getFrameWidth("tb")); if(_17e===true){ this.fitToParentDelegate=this.fitToParent.createDelegate(this,[true,_17f]); Ext.EventManager.onWindowResize(this.fitToParentDelegate); } return this; },getNextSibling:function(){ var n=this.dom.nextSibling; while(n&&n.nodeType!=1){ n=n.nextSibling; } return n; },getPrevSibling:function(){ var n=this.dom.previousSibling; while(n&&n.nodeType!=1){ n=n.previousSibling; } return n; },appendChild:function(el){ el=Ext.get(el); el.appendTo(this); return this; },createChild:function(_184,_185,_186){ _184=_184||{tag:"div"}; if(_185){ return Ext.DomHelper.insertBefore(_185,_184,_186!==true); } return Ext.DomHelper[!this.dom.firstChild?"overwrite":"append"](this.dom,_184,_186!==true); },appendTo:function(el){ el=Ext.getDom(el); el.appendChild(this.dom); return this; },insertBefore:function(el){ el=Ext.getDom(el); el.parentNode.insertBefore(this.dom,el); return this; },insertAfter:function(el){ el=Ext.getDom(el); el.parentNode.insertBefore(this.dom,el.nextSibling); return this; },insertFirst:function(el,_18b){ el=el||{}; if(typeof el=="object"&&!el.nodeType){ return this.createChild(el,this.dom.firstChild,_18b); }else{ el=Ext.getDom(el); this.dom.insertBefore(el,this.dom.firstChild); return !_18b?Ext.get(el):el; } },insertSibling:function(el,_18d,_18e){ _18d=_18d?_18d.toLowerCase():"before"; el=el||{}; var rt,_190=_18d=="before"?this.dom:this.dom.nextSibling; if(typeof el=="object"&&!el.nodeType){ if(_18d=="after"&&!this.dom.nextSibling){ rt=Ext.DomHelper.append(this.dom.parentNode,el,!_18e); }else{ rt=Ext.DomHelper[_18d=="after"?"insertAfter":"insertBefore"](this.dom,el,!_18e); } }else{ rt=this.dom.parentNode.insertBefore(Ext.getDom(el),_18d=="before"?this.dom:this.dom.nextSibling); if(!_18e){ rt=Ext.get(rt); } } return rt; },wrap:function(_191,_192){ if(!_191){ _191={tag:"div"}; } var _193=Ext.DomHelper.insertBefore(this.dom,_191,!_192); _193.dom?_193.dom.appendChild(this.dom):_193.appendChild(this.dom); return _193; },replace:function(el){ el=Ext.get(el); this.insertBefore(el); el.remove(); return this; },insertHtml:function(_195,html,_197){ var el=Ext.DomHelper.insertHtml(_195,this.dom,html); return _197?Ext.get(el):el; },set:function(o,_19a){ var el=this.dom; _19a=typeof _19a=="undefined"?(el.setAttribute?true:false):_19a; for(var attr in o){ if(attr=="style"||typeof o[attr]=="function"){ continue; } if(attr=="cls"){ el.className=o["cls"]; }else{ if(_19a){ el.setAttribute(attr,o[attr]); }else{ el[attr]=o[attr]; } } } if(o.style){ Ext.DomHelper.applyStyles(el,o.style); } return this; },addKeyListener:function(key,fn,_19f){ var _1a0; if(typeof key!="object"||key instanceof Array){ _1a0={key:key,fn:fn,scope:_19f}; }else{ _1a0={key:key.key,shift:key.shift,ctrl:key.ctrl,alt:key.alt,fn:fn,scope:_19f}; } return new Ext.KeyMap(this,_1a0); },addKeyMap:function(_1a1){ return new Ext.KeyMap(this,_1a1); },isScrollable:function(){ var dom=this.dom; return dom.scrollHeight>dom.clientHeight||dom.scrollWidth>dom.clientWidth; },scrollTo:function(side,_1a4,_1a5){ var prop=side.toLowerCase()=="left"?"scrollLeft":"scrollTop"; if(!_1a5||!A){ this.dom[prop]=_1a4; }else{ var to=prop=="scrollLeft"?[_1a4,this.dom.scrollTop]:[this.dom.scrollLeft,_1a4]; this.anim({scroll:{"to":to}},this.preanim(arguments,2),"scroll"); } return this; },scroll:function(_1a8,_1a9,_1aa){ if(!this.isScrollable()){ return; } var el=this.dom; var l=el.scrollLeft,t=el.scrollTop; var w=el.scrollWidth,h=el.scrollHeight; var cw=el.clientWidth,ch=el.clientHeight; _1a8=_1a8.toLowerCase(); var _1b2=false; var a=this.preanim(arguments,2); switch(_1a8){ case "l": case "left": if(w-l>cw){ var v=Math.min(l+_1a9,w-cw); this.scrollTo("left",v,a); _1b2=true; } break; case "r": case "right": if(l>0){ var v=Math.max(l-_1a9,0); this.scrollTo("left",v,a); _1b2=true; } break; case "t": case "top": case "up": if(t>0){ var v=Math.max(t-_1a9,0); this.scrollTo("top",v,a); _1b2=true; } break; case "b": case "bottom": case "down": if(h-t>ch){ var v=Math.min(t+_1a9,h-ch); this.scrollTo("top",v,a); _1b2=true; } break; } return _1b2; },translatePoints:function(x,y){ if(typeof x=="object"||x instanceof Array){ y=x[1]; x=x[0]; } var p=this.getStyle("position"); var o=this.getXY(); var l=parseInt(this.getStyle("left"),10); var t=parseInt(this.getStyle("top"),10); if(isNaN(l)){ l=(p=="relative")?0:this.dom.offsetLeft; } if(isNaN(t)){ t=(p=="relative")?0:this.dom.offsetTop; } return {left:(x-o[0]+l),top:(y-o[1]+t)}; },getScroll:function(){ var d=this.dom,doc=document; if(d==doc||d==doc.body){ var l=window.pageXOffset||doc.documentElement.scrollLeft||doc.body.scrollLeft||0; var t=window.pageYOffset||doc.documentElement.scrollTop||doc.body.scrollTop||0; return {left:l,top:t}; }else{ return {left:d.scrollLeft,top:d.scrollTop}; } },getColor:function(attr,_1c0,_1c1){ var v=this.getStyle(attr); if(!v||v=="transparent"||v=="inherit"){ return _1c0; } var _1c3=typeof _1c1=="undefined"?"#":_1c1; if(v.substr(0,4)=="rgb("){ var rvs=v.slice(4,v.length-1).split(","); for(var i=0;i<3;i++){ var h=parseInt(rvs[i]).toString(16); if(h<16){ h="0"+h; } _1c3+=h; } }else{ if(v.substr(0,1)=="#"){ if(v.length==4){ for(var i=1;i<4;i++){ var c=v.charAt(i); _1c3+=c+c; } }else{ if(v.length==7){ _1c3+=v.substr(1); } } } } return (_1c3.length>5?_1c3.toLowerCase():_1c0); },boxWrap:function(cls){ cls=cls||"x-box"; var el=Ext.get(this.insertHtml("beforeBegin",String.format("<div class=\"{0}\">"+El.boxMarkup+"</div>",cls))); el.child("."+cls+"-mc").dom.appendChild(this.dom); return el; },getAttributeNS:Ext.isIE?function(ns,name){ var d=this.dom; var type=typeof d[ns+":"+name]; if(type!="undefined"&&type!="unknown"){ return d[ns+":"+name]; } return d[name]; }:function(ns,name){ var d=this.dom; return d.getAttributeNS(ns,name)||d.getAttribute(ns+":"+name)||d.getAttribute(name)||d[name]; }}; var ep=El.prototype; ep.on=ep.addListener; ep.mon=ep.addListener; ep.un=ep.removeListener; ep.autoBoxAdjust=true; El.unitPattern=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i; El.addUnits=function(v,_1d3){ if(v===""||v=="auto"){ return v; } if(v===undefined){ return ""; } if(typeof v=="number"||!El.unitPattern.test(v)){ return v+(_1d3||"px"); } return v; }; El.boxMarkup="<div class=\"{0}-tl\"><div class=\"{0}-tr\"><div class=\"{0}-tc\"></div></div></div><div class=\"{0}-ml\"><div class=\"{0}-mr\"><div class=\"{0}-mc\"></div></div></div><div class=\"{0}-bl\"><div class=\"{0}-br\"><div class=\"{0}-bc\"></div></div></div>"; El.VISIBILITY=1; El.DISPLAY=2; El.borders={l:"border-left-width",r:"border-right-width",t:"border-top-width",b:"border-bottom-width"}; El.paddings={l:"padding-left",r:"padding-right",t:"padding-top",b:"padding-bottom"}; El.margins={l:"margin-left",r:"margin-right",t:"margin-top",b:"margin-bottom"}; El.cache={}; var _1d4; El.get=function(el){ var ex,elm,id; if(!el){ return null; } if(typeof el=="string"){ if(!(elm=document.getElementById(el))){ return null; } if(ex=El.cache[el]){ ex.dom=elm; }else{ ex=El.cache[el]=new El(elm); } return ex; }else{ if(el.tagName){ if(!(id=el.id)){ id=Ext.id(el); } if(ex=El.cache[id]){ ex.dom=el; }else{ ex=El.cache[id]=new El(el); } return ex; }else{ if(el instanceof El){ if(el!=_1d4){ el.dom=document.getElementById(el.id)||el.dom; El.cache[el.id]=el; } return el; }else{ if(el.isComposite){ return el; }else{ if(el instanceof Array){ return El.select(el); }else{ if(el==document){ if(!_1d4){ var f=function(){ }; f.prototype=El.prototype; _1d4=new f(); _1d4.dom=document; } return _1d4; } } } } } } return null; }; El.uncache=function(el){ for(var i=0,a=arguments,len=a.length;i<len;i++){ if(a[i]){ delete El.cache[a[i].id||a[i]]; } } }; El.garbageCollect=function(){ if(!Ext.enableGarbageCollector){ clearInterval(El.collectorThread); return; } for(var eid in El.cache){ var el=El.cache[eid],d=el.dom; if(!d||!d.parentNode||(!d.offsetParent&&!document.getElementById(eid))){ delete El.cache[eid]; if(d&&Ext.enableListenerCollection){ E.purgeElement(d); } } } }; El.collectorThreadId=setInterval(El.garbageCollect,30000); El.Flyweight=function(dom){ this.dom=dom; }; El.Flyweight.prototype=El.prototype; El._flyweights={}; El.fly=function(el,_1e3){ _1e3=_1e3||"_global"; el=Ext.getDom(el); if(!el){ return null; } if(!El._flyweights[_1e3]){ El._flyweights[_1e3]=new El.Flyweight(); } El._flyweights[_1e3].dom=el; return El._flyweights[_1e3]; }; Ext.get=El.get; Ext.fly=El.fly; var _147=Ext.isStrict?{select:1}:{input:1,select:1,textarea:1}; if(Ext.isIE||Ext.isGecko){ _147["button"]=1; } Ext.EventManager.on(window,"unload",function(){ delete El.cache; delete El._flyweights; }); })(); Ext.enableFx=true; Ext.Fx={slideIn:function(_1,o){ var el=this.getFxEl(); o=o||{}; el.queueFx(o,function(){ _1=_1||"t"; this.fixDisplay(); var r=this.getFxRestore(); var b=this.getBox(); this.setSize(b); var _6=this.fxWrap(r.pos,o,"hidden"); var st=this.dom.style; st.visibility="visible"; st.position="absolute"; var _8=function(){ el.fxUnwrap(_6,r.pos,o); st.width=r.width; st.height=r.height; el.afterFx(o); }; var a,pt={to:[b.x,b.y]},bw={to:b.width},bh={to:b.height}; switch(_1.toLowerCase()){ case "t": _6.setSize(b.width,0); st.left=st.bottom="0"; a={height:bh}; break; case "l": _6.setSize(0,b.height); st.right=st.top="0"; a={width:bw}; break; case "r": _6.setSize(0,b.height); _6.setX(b.right); st.left=st.top="0"; a={width:bw,points:pt}; break; case "b": _6.setSize(b.width,0); _6.setY(b.bottom); st.left=st.top="0"; a={height:bh,points:pt}; break; case "tl": _6.setSize(0,0); st.right=st.bottom="0"; a={width:bw,height:bh}; break; case "bl": _6.setSize(0,0); _6.setY(b.y+b.height); st.right=st.top="0"; a={width:bw,height:bh,points:pt}; break; case "br": _6.setSize(0,0); _6.setXY([b.right,b.bottom]); st.left=st.top="0"; a={width:bw,height:bh,points:pt}; break; case "tr": _6.setSize(0,0); _6.setX(b.x+b.width); st.left=st.bottom="0"; a={width:bw,height:bh,points:pt}; break; } this.dom.style.visibility="visible"; _6.show(); arguments.callee.anim=_6.fxanim(a,o,"motion",0.5,"easeOut",_8); }); return this; },slideOut:function(_d,o){ var el=this.getFxEl(); o=o||{}; el.queueFx(o,function(){ _d=_d||"t"; var r=this.getFxRestore(); var b=this.getBox(); this.setSize(b); var _12=this.fxWrap(r.pos,o,"visible"); var st=this.dom.style; st.visibility="visible"; st.position="absolute"; _12.setSize(b); var _14=function(){ if(o.useDisplay){ el.setDisplayed(false); }else{ el.hide(); } el.fxUnwrap(_12,r.pos,o); st.width=r.width; st.height=r.height; el.afterFx(o); }; var a,_16={to:0}; switch(_d.toLowerCase()){ case "t": st.left=st.bottom="0"; a={height:_16}; break; case "l": st.right=st.top="0"; a={width:_16}; break; case "r": st.left=st.top="0"; a={width:_16,points:{to:[b.right,b.y]}}; break; case "b": st.left=st.top="0"; a={height:_16,points:{to:[b.x,b.bottom]}}; break; case "tl": st.right=st.bottom="0"; a={width:_16,height:_16}; break; case "bl": st.right=st.top="0"; a={width:_16,height:_16,points:{to:[b.x,b.bottom]}}; break; case "br": st.left=st.top="0"; a={width:_16,height:_16,points:{to:[b.x+b.width,b.bottom]}}; break; case "tr": st.left=st.bottom="0"; a={width:_16,height:_16,points:{to:[b.right,b.y]}}; break; } arguments.callee.anim=_12.fxanim(a,o,"motion",0.5,"easeOut",_14); }); return this; },puff:function(o){ var el=this.getFxEl(); o=o||{}; el.queueFx(o,function(){ this.clearOpacity(); this.show(); var r=this.getFxRestore(); var st=this.dom.style; var _1b=function(){ if(o.useDisplay){ el.setDisplayed(false); }else{ el.hide(); } el.clearOpacity(); el.setPositioning(r.pos); st.width=r.width; st.height=r.height; st.fontSize=""; el.afterFx(o); }; var _1c=this.getWidth(); var _1d=this.getHeight(); arguments.callee.anim=this.fxanim({width:{to:this.adjustWidth(_1c*2)},height:{to:this.adjustHeight(_1d*2)},points:{by:[-(_1c*0.5),-(_1d*0.5)]},opacity:{to:0},fontSize:{to:200,unit:"%"}},o,"motion",0.5,"easeOut",_1b); }); return this; },switchOff:function(o){ var el=this.getFxEl(); o=o||{}; el.queueFx(o,function(){ this.clearOpacity(); this.clip(); var r=this.getFxRestore(); var st=this.dom.style; var _22=function(){ if(o.useDisplay){ el.setDisplayed(false); }else{ el.hide(); } el.clearOpacity(); el.setPositioning(r.pos); st.width=r.width; st.height=r.height; el.afterFx(o); }; this.fxanim({opacity:{to:0.3}},null,null,0.1,null,function(){ this.clearOpacity(); (function(){ this.fxanim({height:{to:1},points:{by:[0,this.getHeight()*0.5]}},o,"motion",0.3,"easeIn",_22); }).defer(100,this); }); }); return this; },highlight:function(_23,o){ var el=this.getFxEl(); o=o||{}; el.queueFx(o,function(){ _23=_23||"ffff9c"; attr=o.attr||"backgroundColor"; this.clearOpacity(); this.show(); var _26=this.getColor(attr); var _27=this.dom.style[attr]; endColor=(o.endColor||_26)||"ffffff"; var _28=function(){ el.dom.style[attr]=_27; el.afterFx(o); }; var a={}; a[attr]={from:_23,to:endColor}; arguments.callee.anim=this.fxanim(a,o,"color",1,"easeIn",_28); }); return this; },frame:function(_2a,_2b,o){ var el=this.getFxEl(); o=o||{}; el.queueFx(o,function(){ _2a=_2a||"#C3DAF9"; if(_2a.length==6){ _2a="#"+_2a; } _2b=_2b||1; duration=o.duration||1; this.show(); var b=this.getBox(); var _2f=function(){ var _30=this.createProxy({style:{visbility:"hidden",position:"absolute","z-index":"35000",border:"0px solid "+_2a}}); var _31=Ext.isBorderBox?2:1; _30.animate({top:{from:b.y,to:b.y-20},left:{from:b.x,to:b.x-20},borderWidth:{from:0,to:10},opacity:{from:1,to:0},height:{from:b.height,to:(b.height+(20*_31))},width:{from:b.width,to:(b.width+(20*_31))}},duration,function(){ _30.remove(); }); if(--_2b>0){ _2f.defer((duration/2)*1000,this); }else{ el.afterFx(o); } }; _2f.call(this); }); return this; },pause:function(_32){ var el=this.getFxEl(); var o={}; el.queueFx(o,function(){ setTimeout(function(){ el.afterFx(o); },_32*1000); }); return this; },fadeIn:function(o){ var el=this.getFxEl(); o=o||{}; el.queueFx(o,function(){ this.setOpacity(0); this.fixDisplay(); this.dom.style.visibility="visible"; var to=o.endOpacity||1; arguments.callee.anim=this.fxanim({opacity:{to:to}},o,null,0.5,"easeOut",function(){ if(to==1){ this.clearOpacity(); } el.afterFx(o); }); }); return this; },fadeOut:function(o){ var el=this.getFxEl(); o=o||{}; el.queueFx(o,function(){ arguments.callee.anim=this.fxanim({opacity:{to:o.endOpacity||0}},o,null,0.5,"easeOut",function(){ if(this.visibilityMode==Ext.Element.DISPLAY||o.useDisplay){ this.dom.style.display="none"; }else{ this.dom.style.visibility="hidden"; } this.clearOpacity(); el.afterFx(o); }); }); return this; },scale:function(w,h,o){ this.shift(Ext.apply({},o,{width:w,height:h})); return this; },shift:function(o){ var el=this.getFxEl(); o=o||{}; el.queueFx(o,function(){ var a={},w=o.width,h=o.height,x=o.x,y=o.y,op=o.opacity; if(w!==undefined){ a.width={to:this.adjustWidth(w)}; } if(h!==undefined){ a.height={to:this.adjustHeight(h)}; } if(x!==undefined||y!==undefined){ a.points={to:[x!==undefined?x:this.getX(),y!==undefined?y:this.getY()]}; } if(op!==undefined){ a.opacity={to:op}; } if(o.xy!==undefined){ a.points={to:o.xy}; } arguments.callee.anim=this.fxanim(a,o,"motion",0.35,"easeOut",function(){ el.afterFx(o); }); }); return this; },ghost:function(_45,o){ var el=this.getFxEl(); o=o||{}; el.queueFx(o,function(){ _45=_45||"b"; var r=this.getFxRestore(); var w=this.getWidth(),h=this.getHeight(); var st=this.dom.style; var _4c=function(){ if(o.useDisplay){ el.setDisplayed(false); }else{ el.hide(); } el.clearOpacity(); el.setPositioning(r.pos); st.width=r.width; st.height=r.height; el.afterFx(o); }; var a={opacity:{to:0},points:{}},pt=a.points; switch(_45.toLowerCase()){ case "t": pt.by=[0,-h]; break; case "l": pt.by=[-w,0]; break; case "r": pt.by=[w,0]; break; case "b": pt.by=[0,h]; break; case "tl": pt.by=[-w,-h]; break; case "bl": pt.by=[-w,h]; break; case "br": pt.by=[w,h]; break; case "tr": pt.by=[w,-h]; break; } arguments.callee.anim=this.fxanim(a,o,"motion",0.5,"easeOut",_4c); }); return this; },syncFx:function(){ this.fxDefaults=Ext.apply(this.fxDefaults||{},{block:false,concurrent:true,stopFx:false}); return this; },sequenceFx:function(){ this.fxDefaults=Ext.apply(this.fxDefaults||{},{block:false,concurrent:false,stopFx:false}); return this; },nextFx:function(){ var ef=this.fxQueue[0]; if(ef){ ef.call(this); } },hasActiveFx:function(){ return this.fxQueue&&this.fxQueue[0]; },stopFx:function(){ if(this.hasActiveFx()){ var cur=this.fxQueue[0]; if(cur&&cur.anim&&cur.anim.isAnimated()){ this.fxQueue=[cur]; cur.anim.stop(true); } } return this; },beforeFx:function(o){ if(this.hasActiveFx()&&!o.concurrent){ if(o.stopFx){ this.stopFx(); return true; } return false; } return true; },hasFxBlock:function(){ var q=this.fxQueue; return q&&q[0]&&q[0].block; },queueFx:function(o,fn){ if(!this.fxQueue){ this.fxQueue=[]; } if(!this.hasFxBlock()){ Ext.applyIf(o,this.fxDefaults); if(!o.concurrent){ var run=this.beforeFx(o); fn.block=o.block; this.fxQueue.push(fn); if(run){ this.nextFx(); } }else{ fn.call(this); } } return this; },fxWrap:function(pos,o,vis){ var _59; if(!o.wrap||!(_59=Ext.get(o.wrap))){ var _5a; if(o.fixPosition){ _5a=this.getXY(); } var div=document.createElement("div"); div.style.visibility=vis; _59=Ext.get(this.dom.parentNode.insertBefore(div,this.dom)); _59.setPositioning(pos); if(_59.getStyle("position")=="static"){ _59.position("relative"); } this.clearPositioning("auto"); _59.clip(); _59.dom.appendChild(this.dom); if(_5a){ _59.setXY(_5a); } } return _59; },fxUnwrap:function(_5c,pos,o){ this.clearPositioning(); this.setPositioning(pos); if(!o.wrap){ _5c.dom.parentNode.insertBefore(this.dom,_5c.dom); _5c.remove(); } },getFxRestore:function(){ var st=this.dom.style; return {pos:this.getPositioning(),width:st.width,height:st.height}; },afterFx:function(o){ if(o.afterStyle){ this.applyStyles(o.afterStyle); } if(o.afterCls){ this.addClass(o.afterCls); } if(o.remove===true){ this.remove(); } Ext.callback(o.callback,o.scope,[this]); if(!o.concurrent){ this.fxQueue.shift(); this.nextFx(); } },getFxEl:function(){ return Ext.get(this.dom); },fxanim:function(_61,opt,_63,_64,_65,cb){ _63=_63||"run"; opt=opt||{}; var _67=Ext.lib.Anim[_63](this.dom,_61,(opt.duration||_64)||0.35,(opt.easing||_65)||"easeOut",function(){ Ext.callback(cb,this); },this); opt.anim=_67; return _67; }}; Ext.Fx.resize=Ext.Fx.scale; Ext.apply(Ext.Element.prototype,Ext.Fx); Ext.CompositeElement=function(_1){ this.elements=[]; this.addElements(_1); }; Ext.CompositeElement.prototype={isComposite:true,addElements:function(_2){ if(!_2){ return this; } if(typeof _2=="string"){ _2=Ext.Element.selectorFunction(_2); } var _3=this.elements; var _4=_3.length-1; for(var i=0,_6=_2.length;i<_6;i++){ _3[++_4]=Ext.get(_2[i]); } return this; },fill:function(_7){ this.elements=[]; this.add(_7); return this; },filter:function(_8){ var _9=[]; this.each(function(el){ if(el.is(_8)){ _9[_9.length]=el.dom; } }); this.fill(_9); return this; },invoke:function(fn,_c){ var _d=this.elements; for(var i=0,_f=_d.length;i<_f;i++){ Ext.Element.prototype[fn].apply(_d[i],_c); } return this; },add:function(els){ if(typeof els=="string"){ this.addElements(Ext.Element.selectorFunction(els)); }else{ if(els.length!==undefined){ this.addElements(els); }else{ this.addElements([els]); } } return this; },each:function(fn,_12){ var els=this.elements; for(var i=0,len=els.length;i<len;i++){ if(fn.call(_12||els[i],els[i],this,i)===false){ break; } } return this; },item:function(_16){ return this.elements[_16]||null; },first:function(){ return this.item(0); },last:function(){ return this.item(this.elements.length-1); },getCount:function(){ return this.elements.length; },contains:function(el){ return this.indexOf(el)!==-1; },indexOf:function(el){ return this.elements.indexOf(Ext.get(el)); },removeElement:function(el,_1a){ if(el instanceof Array){ for(var i=0,len=el.length;i<len;i++){ this.removeElement(el[i]); } return this; } var _1d=typeof el=="number"?el:this.indexOf(el); if(_1d!==-1){ if(_1a){ var d=this.elements[_1d]; if(d.dom){ d.remove(); }else{ d.parentNode.removeChild(d); } } this.elements.splice(_1d,1); } return this; },replaceElement:function(el,_20,_21){ var _22=typeof el=="number"?el:this.indexOf(el); if(_22!==-1){ if(_21){ this.elements[_22].replaceWith(_20); }else{ this.elements.splice(_22,1,Ext.get(_20)); } } return this; },clear:function(){ this.elements=[]; }}; (function(){ Ext.CompositeElement.createCall=function(_23,_24){ if(!_23[_24]){ _23[_24]=function(){ return this.invoke(_24,arguments); }; } }; for(var _25 in Ext.Element.prototype){ if(typeof Ext.Element.prototype[_25]=="function"){ Ext.CompositeElement.createCall(Ext.CompositeElement.prototype,_25); } } })(); Ext.CompositeElementLite=function(els){ Ext.CompositeElementLite.superclass.constructor.call(this,els); this.el=new Ext.Element.Flyweight(); }; Ext.extend(Ext.CompositeElementLite,Ext.CompositeElement,{addElements:function(els){ if(els){ if(els instanceof Array){ this.elements=this.elements.concat(els); }else{ var _28=this.elements; var _29=_28.length-1; for(var i=0,len=els.length;i<len;i++){ _28[++_29]=els[i]; } } } return this; },invoke:function(fn,_2d){ var els=this.elements; var el=this.el; for(var i=0,len=els.length;i<len;i++){ el.dom=els[i]; Ext.Element.prototype[fn].apply(el,_2d); } return this; },item:function(_32){ if(!this.elements[_32]){ return null; } this.el.dom=this.elements[_32]; return this.el; },addListener:function(_33,_34,_35,opt){ var els=this.elements; for(var i=0,len=els.length;i<len;i++){ Ext.EventManager.on(els[i],_33,_34,_35||els[i],opt); } return this; },each:function(fn,_3b){ var els=this.elements; var el=this.el; for(var i=0,len=els.length;i<len;i++){ el.dom=els[i]; if(fn.call(_3b||el,el,this,i)===false){ break; } } return this; },indexOf:function(el){ return this.elements.indexOf(Ext.getDom(el)); },replaceElement:function(el,_42,_43){ var _44=typeof el=="number"?el:this.indexOf(el); if(_44!==-1){ _42=Ext.getDom(_42); if(_43){ var d=this.elements[_44]; d.parentNode.insertBefore(_42,d); d.parentNode.removeChild(d); } this.elements.splice(_44,1,_42); } return this; }}); Ext.CompositeElementLite.prototype.on=Ext.CompositeElementLite.prototype.addListener; if(Ext.DomQuery){ Ext.Element.selectorFunction=Ext.DomQuery.select; } Ext.Element.select=function(_46,_47,_48){ var els; if(typeof _46=="string"){ els=Ext.Element.selectorFunction(_46,_48); }else{ if(_46.length!==undefined){ els=_46; }else{ throw "Invalid selector"; } } if(_47===true){ return new Ext.CompositeElement(els); }else{ return new Ext.CompositeElementLite(els); } }; Ext.select=Ext.Element.select; Ext.data.Connection=function(_1){ Ext.apply(this,_1); this.addEvents({"beforerequest":true,"requestcomplete":true,"requestexception":true}); Ext.data.Connection.superclass.constructor.call(this); }; Ext.extend(Ext.data.Connection,Ext.util.Observable,{timeout:30000,autoAbort:false,disableCaching:true,request:function(o){ if(this.fireEvent("beforerequest",this,o)!==false){ var p=o.params; if(typeof p=="function"){ p=p.call(o.scope||window,o); } if(typeof p=="object"){ p=Ext.urlEncode(o.params); } if(this.extraParams){ var _4=Ext.urlEncode(this.extraParams); p=p?(p+"&"+_4):_4; } var _5=o.url||this.url; if(typeof _5=="function"){ _5=_5.call(o.scope||window,o); } if(o.form){ var _6=Ext.getDom(o.form); _5=_5||_6.action; var _7=_6.getAttribute("enctype"); if(o.isUpload||(_7&&_7.toLowerCase()=="multipart/form-data")){ return this.doFormUpload(o,p,_5); } var f=Ext.lib.Ajax.serializeForm(_6); p=p?(p+"&"+f):f; } var hs=o.headers; if(this.defaultHeaders){ hs=Ext.apply(hs||{},this.defaultHeaders); if(!o.headers){ o.headers=hs; } } var cb={success:this.handleResponse,failure:this.handleFailure,scope:this,argument:{options:o},timeout:this.timeout}; var _b=o.method||this.method||(p?"POST":"GET"); if(_b=="GET"&&(this.disableCaching&&o.disableCaching!==false)||o.disableCaching===true){ _5+=(_5.indexOf("?")!=-1?"&":"?")+"_dc="+(new Date().getTime()); } if(typeof o.autoAbort=="boolean"){ if(o.autoAbort){ this.abort(); } }else{ if(this.autoAbort!==false){ this.abort(); } } if((_b=="GET"&&p)||o.xmlData){ _5+=(_5.indexOf("?")!=-1?"&":"?")+p; p=""; } this.transId=Ext.lib.Ajax.request(_b,_5,cb,p,o); return this.transId; }else{ Ext.callback(o.callback,o.scope,[o,null,null]); return null; } },isLoading:function(_c){ if(_c){ return Ext.lib.Ajax.isCallInProgress(_c); }else{ return this.transId?true:false; } },abort:function(_d){ if(_d||this.isLoading()){ Ext.lib.Ajax.abort(_d||this.transId); } },handleResponse:function(_e){ this.transId=false; var _f=_e.argument.options; _e.argument=_f?_f.argument:null; this.fireEvent("requestcomplete",this,_e,_f); Ext.callback(_f.success,_f.scope,[_e,_f]); Ext.callback(_f.callback,_f.scope,[_f,true,_e]); },handleFailure:function(_10,e){ this.transId=false; var _12=_10.argument.options; _10.argument=_12?_12.argument:null; this.fireEvent("requestexception",this,_10,_12,e); Ext.callback(_12.failure,_12.scope,[_10,_12]); Ext.callback(_12.callback,_12.scope,[_12,false,_10]); },doFormUpload:function(o,ps,url){ var id=Ext.id(); var _17=document.createElement("iframe"); _17.id=id; _17.name=id; _17.className="x-hidden"; if(Ext.isIE){ _17.src=Ext.SSL_SECURE_URL; } document.body.appendChild(_17); if(Ext.isIE){ document.frames[id].name=id; } var _18=Ext.getDom(o.form); _18.target=id; _18.method="POST"; _18.enctype=_18.encoding="multipart/form-data"; if(url){ _18.action=url; } var _19,hd; if(ps){ _19=[]; ps=Ext.urlDecode(ps,false); for(var k in ps){ if(ps.hasOwnProperty(k)){ hd=document.createElement("input"); hd.type="hidden"; hd.name=k; hd.value=ps[k]; _18.appendChild(hd); _19.push(hd); } } } function cb(){ var r={responseText:"",responseXML:null}; r.argument=o?o.argument:null; try{ var doc; if(Ext.isIE){ doc=_17.contentWindow.document; }else{ doc=(_17.contentDocument||window.frames[id].document); } if(doc&&doc.body){ r.responseText=doc.body.innerHTML; } if(doc&&doc.XMLDocument){ r.responseXML=doc.XMLDocument; }else{ r.responseXML=doc; } } catch(e){ } Ext.EventManager.removeListener(_17,"load",cb,this); this.fireEvent("requestcomplete",this,r,o); Ext.callback(o.success,o.scope,[r,o]); Ext.callback(o.callback,o.scope,[o,true,r]); setTimeout(function(){ document.body.removeChild(_17); },100); } Ext.EventManager.on(_17,"load",cb,this); _18.submit(); if(_19){ for(var i=0,len=_19.length;i<len;i++){ _18.removeChild(_19[i]); } } }}); Ext.Ajax=new Ext.data.Connection({autoAbort:false,serializeForm:function(_20){ return Ext.lib.Ajax.serializeForm(_20); }}); Ext.UpdateManager=function(el,_2){ el=Ext.get(el); if(!_2&&el.updateManager){ return el.updateManager; } this.el=el; this.defaultUrl=null; this.addEvents({"beforeupdate":true,"update":true,"failure":true}); var d=Ext.UpdateManager.defaults; this.sslBlankUrl=d.sslBlankUrl; this.disableCaching=d.disableCaching; this.indicatorText=d.indicatorText; this.showLoadIndicator=d.showLoadIndicator; this.timeout=d.timeout; this.loadScripts=d.loadScripts; this.transaction=null; this.autoRefreshProcId=null; this.refreshDelegate=this.refresh.createDelegate(this); this.updateDelegate=this.update.createDelegate(this); this.formUpdateDelegate=this.formUpdate.createDelegate(this); this.successDelegate=this.processSuccess.createDelegate(this); this.failureDelegate=this.processFailure.createDelegate(this); if(!this.renderer){ this.renderer=new Ext.UpdateManager.BasicRenderer(); } Ext.UpdateManager.superclass.constructor.call(this); }; Ext.extend(Ext.UpdateManager,Ext.util.Observable,{getEl:function(){ return this.el; },update:function(_4,_5,_6,_7){ if(this.fireEvent("beforeupdate",this.el,_4,_5)!==false){ var _8=this.method,_9; if(typeof _4=="object"){ _9=_4; _4=_9.url; _5=_5||_9.params; _6=_6||_9.callback; _7=_7||_9.discardUrl; if(_6&&_9.scope){ _6=_6.createDelegate(_9.scope); } if(typeof _9.method!="undefined"){ _8=_9.method; } if(typeof _9.nocache!="undefined"){ this.disableCaching=_9.nocache; } if(typeof _9.text!="undefined"){ this.indicatorText="<div class=\"loading-indicator\">"+_9.text+"</div>"; } if(typeof _9.scripts!="undefined"){ this.loadScripts=_9.scripts; } if(typeof _9.timeout!="undefined"){ this.timeout=_9.timeout; } } this.showLoading(); if(!_7){ this.defaultUrl=_4; } if(typeof _4=="function"){ _4=_4.call(this); } _8=_8||(_5?"POST":"GET"); if(_8=="GET"){ _4=this.prepareUrl(_4); } var o=Ext.apply(_9||{},{url:_4,params:_5,success:this.successDelegate,failure:this.failureDelegate,callback:undefined,timeout:(this.timeout*1000),argument:{"url":_4,"form":null,"callback":_6,"params":_5}}); this.transaction=Ext.Ajax.request(o); } },formUpdate:function(_b,_c,_d,_e){ if(this.fireEvent("beforeupdate",this.el,_b,_c)!==false){ if(typeof _c=="function"){ _c=_c.call(this); } _b=Ext.getDom(_b); this.transaction=Ext.Ajax.request({form:_b,url:_c,success:this.successDelegate,failure:this.failureDelegate,timeout:(this.timeout*1000),argument:{"url":_c,"form":_b,"callback":_e,"reset":_d}}); this.showLoading.defer(1,this); } },refresh:function(_f){ if(this.defaultUrl==null){ return; } this.update(this.defaultUrl,null,_f,true); },startAutoRefresh:function(_10,url,_12,_13,_14){ if(_14){ this.update(url||this.defaultUrl,_12,_13,true); } if(this.autoRefreshProcId){ clearInterval(this.autoRefreshProcId); } this.autoRefreshProcId=setInterval(this.update.createDelegate(this,[url||this.defaultUrl,_12,_13,true]),_10*1000); },stopAutoRefresh:function(){ if(this.autoRefreshProcId){ clearInterval(this.autoRefreshProcId); delete this.autoRefreshProcId; } },isAutoRefreshing:function(){ return this.autoRefreshProcId?true:false; },showLoading:function(){ if(this.showLoadIndicator){ this.el.update(this.indicatorText); } },prepareUrl:function(url){ if(this.disableCaching){ var _16="_dc="+(new Date().getTime()); if(url.indexOf("?")!==-1){ url+="&"+_16; }else{ url+="?"+_16; } } return url; },processSuccess:function(_17){ this.transaction=null; if(_17.argument.form&&_17.argument.reset){ try{ _17.argument.form.reset(); } catch(e){ } } if(this.loadScripts){ this.renderer.render(this.el,_17,this,this.updateComplete.createDelegate(this,[_17])); }else{ this.renderer.render(this.el,_17,this); this.updateComplete(_17); } },updateComplete:function(_18){ this.fireEvent("update",this.el,_18); if(typeof _18.argument.callback=="function"){ _18.argument.callback(this.el,true,_18); } },processFailure:function(_19){ this.transaction=null; this.fireEvent("failure",this.el,_19); if(typeof _19.argument.callback=="function"){ _19.argument.callback(this.el,false,_19); } },setRenderer:function(_1a){ this.renderer=_1a; },getRenderer:function(){ return this.renderer; },setDefaultUrl:function(_1b){ this.defaultUrl=_1b; },abort:function(){ if(this.transaction){ Ext.Ajax.abort(this.transaction); } },isUpdating:function(){ if(this.transaction){ return Ext.Ajax.isLoading(this.transaction); } return false; }}); Ext.UpdateManager.defaults={timeout:30,loadScripts:false,sslBlankUrl:(Ext.SSL_SECURE_URL||"javascript:false"),disableCaching:false,showLoadIndicator:true,indicatorText:"<div class=\"loading-indicator\">Loading...</div>"}; Ext.UpdateManager.updateElement=function(el,url,_1e,_1f){ var um=Ext.get(el,true).getUpdateManager(); Ext.apply(um,_1f); um.update(url,_1e,_1f?_1f.callback:null); }; Ext.UpdateManager.update=Ext.UpdateManager.updateElement; Ext.UpdateManager.BasicRenderer=function(){ }; Ext.UpdateManager.BasicRenderer.prototype={render:function(el,_22,_23,_24){ el.update(_22.responseText,_23.loadScripts,_24); }}; Ext.util.DelayedTask=function(fn,_2,_3){ var id=null,d,t; var _7=function(){ var _8=new Date().getTime(); if(_8-t>=d){ clearInterval(id); id=null; fn.apply(_2,_3||[]); } }; this.delay=function(_9,_a,_b,_c){ if(id&&_9!=d){ this.cancel(); } d=_9; t=new Date().getTime(); fn=_a||fn; _2=_b||_2; _3=_c||_3; if(!id){ id=setInterval(_7,d); } }; this.cancel=function(){ if(id){ clearInterval(id); id=null; } }; };  YAHOO.widget.Logger.enableBrowserConsole(); function compatHasAttribute(_1,_2){ if(_1.hasAttribute){ return _1.hasAttribute(_2); }else{ var _3=_1.attributes; for(i=0,j=_3.length;i<j;i++){ if(_1.attributes[i].nodeName==_2){ return true; } } } return false; } function getFormatCtrlYOffset(_4){ if(_4=="mov"){ return 16; }else{ if(_4=="mp4"){ return 16; }else{ if(_4=="m4v"){ return 16; }else{ if(_4=="m4a"){ return 16; }else{ if(_4=="m4b"){ return 16; }else{ if(_4=="flv"){ return 18; }else{ if(_4=="swf"){ return 0; }else{ if(_4=="youtube-swf"){ return -14; }else{ if(_4=="google-video-swf"){ return 0; }else{ if(_4=="wmv"){ return 45; }else{ if(_4=="asx"){ return 45; }else{ if(_4=="asp"){ return 45; }else{ if(_4=="unityweb"){ return 0; }else{ return 0; } } } } } } } } } } } } } } function _detectEmbed(_5,_6){ var _7=false; var _8=""; for(var i=0;i<navigator.mimeTypes.length;i++){ _8+=navigator.mimeTypes[i].type.toLowerCase(); } if(_8.indexOf(_5)!=-1){ if(navigator.mimeTypes[_5].enabledPlugin!==null){ _7=true; } } return _7; } var Objecty=function(){ var _a=_detectEmbed("application/x-mplayer2","Windows Media Player"); YAHOO.log("Windows Media? "+_a); return {autoObjecty:function(){ var _b=$D.getElementsByClassName("ObjectyMe"); if(_b.length){ $D.batch(_b,Objecty.doTheObjecty); } },doTheObjecty:function(_c){ var _d={}; var _e={}; _e=_c.attributes; for(var i=0;i<_e.length;i++){ if(_e[i].specified){ var _10=_e[i].name.toLowerCase(); var _11=_e[i].value; _d[_10]=_11; } } _e=_c.getElementsByTagName("param"); for(var i=0;i<_e.length;i++){ _d[_e.item(i).name]=_e.item(i).value; } var _12=_d.uri; if(_12.substring(0,23)=="http://www.youtube.com/"){ sObjectExt="youtube-swf"; }else{ if(_12.substring(0,47)=="http://video.google.com/googleplayer.swf?docId="){ sObjectExt="google-video-swf"; }else{ sObjectExt=_12.split(".")[_12.split(".").length-1]; } } _d.ext=sObjectExt; var _13=""; _13+="ALL PARAMETERS: "; for(var _14 in _d){ _13+=_14+": "; _13+=_d[_14]+" / "; } YAHOO.log(_13); var _15=_c.parentNode; var _16=document.createElement("div"); YAHOO.util.Dom.setStyle(_16,"width",_d.width+"px"); YAHOO.util.Dom.setStyle(_16,"height",(1*_d.height+getFormatCtrlYOffset(_d.ext)+"px")); _16.setAttribute("class","Objecty"); var _17=$D.generateId(_16,"cw"); _c.parentNode.replaceChild(_16,_c); _c=$D.get(_17); switch(sObjectExt){ case "mov": Objecty.doObjectyQuickTime(_c,_17,_d); break; case "mp4": Objecty.doObjectyQuickTime(_c,_17,_d); break; case "m4v": Objecty.doObjectyQuickTime(_c,_17,_d); break; case "m4a": Objecty.doObjectyQuickTime(_c,_17,_d); break; case "m4b": Objecty.doObjectyQuickTime(_c,_17,_d); break; case "wmv": Objecty.doObjectyWinMedia(_c,_17,_d); break; case "wma": Objecty.doObjectyWinMedia(_c,_17,_d); break; case "asx": Objecty.doObjectyWinMedia(_c,_17,_d); break; case "asp": Objecty.doObjectyWinMedia(_c,_17,_d); break; case "flv": Objecty.doObjectyFlashFlv(_c,_17,_d); break; case "swf": Objecty.doObjectyFlashSwf(_c,_17,_d); break; case "youtube-swf": Objecty.doObjectyFlashSwf(_c,_17,_d); break; case "google-video-swf": Objecty.doObjectyFlashSwf(_c,_17,_d); break; case "unityweb": Objecty.doObjectyUnity(_c,_17,_d); break; } },doObjectyQuickTime:function(_18,_19,_1a){ var x=parseInt(_1a.width,10); var y=parseInt(_1a.height,10); if(!_1a.poster){ var _1d="<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" "; _1d+="codebase=\"http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0\" "; _1d+="width=\""+x+"\" height=\""+(y+getFormatCtrlYOffset(_1a.ext))+"\"> "; _1d+="<param name=\"src\" value=\""+_1a.uri+"\" /> "; if(_1a.autoplay=="true"){ _1d+="<param name=\"autoplay\" value=\"true\" /> "; }else{ _1d+="<param name=\"autoplay\" value=\"false\" /> "; } _1d+="<embed type=\"video/mp4\" src=\""+_1a.uri+"\" width=\""+x+"\" "; _1d+="height=\""+(y+getFormatCtrlYOffset(_1a.ext))+"\" align=\"middle\" bgcolor=\"black\" "; if(_1a.autoplay=="true"){ _1d+="autoplay=\"true\" "; }else{ _1d+="autoplay=\"false\" "; } _1d+="pluginspage=\"http://www.apple.com/quicktime/download/\" "; _1d+="/>"; _1d+="</object>"; _18.innerHTML=_1d; }else{ if(_1a["poster-action"]){ var _1e=eval("({"+_1a["poster-action"]+"})"); }else{ var _1e={}; } if(navigator.appVersion.indexOf("Mac")!=-1){ var _1f=sObjectyAbsPath+"res/qt-mac.png"; }else{ var _1f=sObjectyAbsPath+"res/qt-win.png"; } Ext.DomHelper.append(_18,{tag:"div",style:"width: 100%; height: 100%; position: relative; background: url('"+_1f+"') 0 100%",children:[{tag:"img",src:_1a.poster,style:"position: absolute; top:0; left:0"},{tag:"div",style:"width: 56px; height: 16px; position: absolute; bottom:0; right: 0; background: url('"+_1f+"') right bottom"},{tag:"div",style:"width: 96px; height: 96px; position: absolute; left: 50%; top: 50%",children:[{tag:"img",src:sObjectyAbsPath+"res/playIcon.png",style:"width: 96px; height: 96px; position: absolute; left: -50%; top: -50%; opacity: 0.75; FILTER: Alpha(Opacity=75)"}]}]}); YAHOO.util.Event.addListener(_19,"mouseover",function(){ YAHOO.util.Dom.setStyle(_19,"cursor","pointer"); },true); YAHOO.util.Event.addListener(_19,"mouseout",function(){ YAHOO.util.Dom.setStyle(_19,"cursor","default"); },true); if(_1e.type=="lightbox"){ YAHOO.util.Event.addListener(_19,"click",Objecty.qtPosterLightboxCb,{oElement:_18,sElementId:_19,oElementParams:_1a},true); }else{ if(_1e.type=="extPlayer"){ YAHOO.util.Event.addListener(_19,"click",Objecty.qtPosterExtPlayerCb,{oElement:_18,sElementId:_19,oElementParams:_1a},true); }else{ YAHOO.util.Event.addListener(_19,"click",Objecty.qtPosterClickCallback,{oElement:_18,sElementId:_19,oElementParams:_1a},true); } } } },qtPosterClickCallback:function(e,_21,_22,_23){ YAHOO.util.Event.stopEvent(e); YAHOO.util.Event.removeListener(this.sElementId,"click"); YAHOO.util.Event.removeListener(this.sElementId,"mouseover"); YAHOO.util.Event.removeListener(this.sElementId,"mouseout"); Ext.DomHelper.applyStyles(this.sElementId,"cursor:pointer"); delete this.oElementParams.poster; this.oElementParams.autoplay="true"; Objecty.doObjectyQuickTime(this.oElement,this.sElementId,this.oElementParams); },qtPosterExtPlayerCb:function(e,_25,_26,_27){ YAHOO.util.Event.stopEvent(e); YAHOO.util.Event.removeListener(this.sElementId,"click"); YAHOO.util.Event.removeListener(this.sElementId,"mouseover"); YAHOO.util.Event.removeListener(this.sElementId,"mouseout"); YAHOO.util.Dom.setStyle(this.sElementId,"cursor","default"); delete this.oElementParams.poster; ifrm=document.createElement("IFRAME"); ifrm.setAttribute("src","http://developerfusion.com/"); ifrm.style.width=(640+"px"); ifrm.style.height=(480+"px"); document.body.appendChild(ifrm); },qtPosterLightboxCb:function(e,_29,_2a,_2b){ YAHOO.util.Event.stopEvent(e); delete this.oElementParams.poster; var x=parseInt(this.oElementParams.width,10); var y=parseInt(this.oElementParams.height,10); var xV=$D.getViewportWidth(); var yV=$D.getViewportHeight(); var _30=32; var _31=(document.documentElement.scrollTop+"px"); Ext.DomHelper.append(document.getElementsByTagName("body")[0],{tag:"iframe",id:"lbIframe",style:"display:none; position:absolute; left:0px; width:"+xV+"px; height:"+yV+"px",src:(sObjectyAbsPath+"res/blank.html"),frameborder:"0",scrolling:"no"}); $D.setStyle($("lbIframe"),"top",_31); $D.setStyle($("lbIframe"),"z-index","996"); $D.setStyle($("lbIframe"),"filter","progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"); $D.setStyle($("lbIframe"),"display","block"); var _32="position:absolute; width:"+xV+"px; height:"+yV+"px; left:0px; opacity:0.7; filter:alpha(opacity=70); background: #000"; var _33="position:absolute; z-index 998; width:"+(x+(_30*2))+"px; height:"+(y+(_30*2)+getFormatHeight["mp4"])+"px; top:"+Math.round((yV-y-(_30*2))/2)+"px; left:"+Math.round((xV-x-(_30*2))/2)+"px; background: #fff"; var _34="position:absolute; z-index 999; width:"+x+"px; height:"+(y+getFormatHeight["mp4"])+"px; top:"+_30+"px; left:"+_30+"px; background: #000"; Ext.DomHelper.append(document.getElementsByTagName("body")[0],{tag:"div",id:"lbOverlay",style:_32,children:[{tag:"div",id:"lbFrame",style:_33,children:[{tag:"div",id:"lbMovie",style:_34}]}]}); $D.setStyle($("lbOverlay"),"top",_31); $D.setStyle($("lbOverlay"),"z-index","997"); $D.setStyle($("lbFrame"),"z-index","998"); $("lbMovie").innerHTML=Objecty.getObjectHtml(this.oElementParams); $E.on($("lbOverlay"),"click",function(){ Ext.DomHelper.overwrite($("lbOverlay"),{tag:"div"}); $("lbOverlay").parentNode.removeChild($("lbOverlay")); $("lbIframe").parentNode.removeChild($("lbIframe")); }); },getObjectHtml:function(_35){ if(_35.ext=="mp4"||_35.ext=="mov"){ var x=parseInt(_35.width,10); var y=parseInt(_35.height,10); if(!_35.poster){ var _38="<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" "; _38+="codebase=\"http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0\" "; _38+="width=\""+x+"\" height=\""+(y+16)+"\"> "; _38+="<param name=\"src\" value=\""+_35.uri+"\" /> "; if(_35.autoplay=="true"){ _38+="<param name=\"autoplay\" value=\"true\" /> "; }else{ _38+="<param name=\"autoplay\" value=\"false\" /> "; } _38+="<embed type=\"video/mp4\" src=\""+_35.uri+"\" width=\""+x+"\" "; _38+="height=\""+(y+16)+"\" align=\"middle\" bgcolor=\"black\" "; if(_35.autoplay=="true"){ _38+="autoplay=\"true\" "; }else{ _38+="autoplay=\"false\" "; } _38+="pluginspage=\"http://www.apple.com/quicktime/download/\" "; _38+="/>"; _38+="</object>"; return _38; }else{ if(_35["poster-action"]){ var _39=eval("("+_35["poster-action"]+")"); }else{ var _39={}; } Ext.DomHelper.append(oElement,{tag:"div",style:"width: 480px; height: 216px; position: relative; background: url('/objecty-debug/objecty/res/movieMiddle.png') 0 100% repeat-x",children:[{tag:"img",src:"300-poster.jpg",style:"position: absolute; top:0; left:0"},{tag:"img",src:"/objecty-debug/objecty/res/movieLeft.png",style:"position: absolute; bottom:0; left:0"},{tag:"img",src:"/objecty-debug/objecty/res/movieRight.png",style:"position: absolute; bottom:0; right:0"},{tag:"div",style:"width: 96px; height: 96px; position: absolute; left: 50%; top: 50%",children:[{tag:"img",src:"/objecty-debug/objecty/res/playIcon.png",style:"width: 96px; height: 96px; position: absolute; left: -50%; top: -50%; opacity: 0.75; FILTER: Alpha(Opacity=75)"}]}]}); YAHOO.util.Event.addListener(sElementId,"mouseover",function(){ Ext.DomHelper.applyStyles(sElementId,"cursor:pointer"); },true); YAHOO.util.Event.addListener(sElementId,"mouseout",function(){ Ext.DomHelper.applyStyles(sElementId,"cursor:default"); },true); if(_39.type=="lightbox"){ YAHOO.util.Event.addListener(sElementId,"click",Objecty.qtPosterLightboxCb,{oElement:oElement,sElementId:sElementId,oElementParams:_35},true); }else{ YAHOO.util.Event.addListener(sElementId,"click",Objecty.qtPosterClickCallback,{oElement:oElement,sElementId:sElementId,oElementParams:_35},true); } } }else{ if(oElement.ext=="flv"){ } } },doObjectyFlashFlv:function(_3a,_3b,_3c){ var x=parseInt(_3c.width,10); var y=parseInt(_3c.height,10); var url=_3c.uri; var _40; if(!url.match(/^(http:\/\/|rtsp:\/\/).+/)){ _40=(location.href.match(/^(.+)\/.*$/)[1]+"/"+url); }else{ _40=url; } if(!_3c.poster){ var _41="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\r"; _41+="codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\"\r"; _41+="width=\""+x+"\" height=\""+(y+getFormatCtrlYOffset(_3c.ext))+"\" id=\"myMovieName\">\r"; _41+="<param name=\"movie\" value=\""+sObjectyAbsPath+"flvplayer.swf?click=nothing.png\" />\r"; _41+="<param name=\"quality\" value=\"high\" />\r"; _41+="<param name=\"bgcolor\" value=\"#fff\" />\r"; _41+="<param name=\"wmode\" value=\"transparent\" />\r"; _41+="<param name=\"flashvars\" value=\"file="+_40+"&showdigits=false&bufferlength=10"; if(_3c.autoplay=="true"){ _41+="&autoStart=true"; } _41+="\" />\r"; _41+="<embed src=\""+sObjectyAbsPath+"flvplayer.swf?click=nothing.png\" wmode=\"transparent\" \r"; _41+="quality=\"high\" bgcolor=\"#fff\" width=\""+x+"\" height=\""+(y+getFormatCtrlYOffset(_3c.ext))+"\" \r"; _41+="name=\"myMovieName\" align=\"\" type=\"application/x-shockwave-flash\" \r"; _41+="pluginspage=\"http://www.macromedia.com/go/getflashplayer\" \r"; _41+="flashvars=\"file="+_40+"&showdigits=false&bufferlength=10"; if(_3c.autoplay=="true"){ _41+="&autoStart=true"; } _41+="\">\r"; _41+="</embed>\r"; _41+="</object>"; _3a.innerHTML=_41; }else{ var _42=sObjectyAbsPath+"res/ctrl-flv.png"; Ext.DomHelper.append(_3a,{tag:"div",style:"width: 100%; height: 100%; position: relative; background: url('"+_42+"') 0 100%",children:[{tag:"img",src:_3c.poster,style:"position: absolute; top:0; left:0"},{tag:"div",style:"width: 51px; height: 18px; position: absolute; bottom:0; right: 0; background: url('"+_42+"') right bottom"},{tag:"div",style:"width: 96px; height: 96px; position: absolute; left: 50%; top: 50%",children:[{tag:"img",src:sObjectyAbsPath+"res/playIcon.png",style:"width: 96px; height: 96px; position: absolute; left: -50%; top: -50%; opacity: 0.75; FILTER: Alpha(Opacity=75)"}]}]}); YAHOO.util.Event.addListener(_3b,"click",Objecty.flvPosterClickCb,{oElement:_3a,sElementId:_3b,oElementParams:_3c},true); YAHOO.util.Event.addListener(_3b,"mouseover",function(){ Ext.DomHelper.applyStyles(_3b,"cursor:pointer"); },true); YAHOO.util.Event.addListener(_3b,"mouseout",function(){ Ext.DomHelper.applyStyles(_3b,"cursor:default"); },true); } },flvPosterClickCb:function(e,_44,_45,_46){ YAHOO.util.Event.stopEvent(e); YAHOO.util.Event.removeListener(this.sElementId,"click"); YAHOO.util.Event.removeListener(this.sElementId,"mouseover"); YAHOO.util.Event.removeListener(this.sElementId,"mouseout"); Ext.DomHelper.applyStyles(this.sElementId,"cursor:pointer"); delete this.oElementParams.poster; this.oElementParams.autoplay="true"; Objecty.doObjectyFlashFlv(this.oElement,this.sElementId,this.oElementParams); },doObjectyFlashSwf:function(_47,_48,_49){ var x=parseInt(_49.width,10); var y=parseInt(_49.height,10); y+=getFormatCtrlYOffset(_49.ext); var _4c="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\r"; _4c+="\tcodebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\"\r"; _4c+="\twidth=\""+x+"\" height=\""+y+"\" id=\"myMovieName\">\r"; _4c+="\t<param name=\"movie\" value=\""+_49.uri; if(_49.ext=="youtube-swf"){ if(_49.autoplay=="true"){ _4c+="&autoplay=1"; } } _4c+="\" />\r"; _4c+="\t<param name=\"quality\" value=\"high\" />\r"; _4c+="\t<param name=\"wmode\" value=\"transparent\" />\r"; _4c+="\t<param name=\"bgcolor\" value=\"#fff\" />\r"; _4c+="\t<embed src=\""+_49.uri+"\" wmode=\"transparent\"\r"; _4c+="\t\tquality=\"high\" bgcolor=\"#fff\" width=\""+x+"\" height=\""+y+"\"\r"; _4c+="\t\tname=\"myMovieName\" align=\"\" type=\"application/x-shockwave-flash\"\r"; _4c+="\t\tpluginspage=\"http://www.macromedia.com/go/getflashplayer\"\r"; _4c+="\t</embed>\r"; _4c+="</object>"; _47.innerHTML=_4c; },doObjectyMp3:function(_4d,_4e,_4f){ sObjectUri=_4d.getAttribute("uri"); if(_4d.getAttribute("width")){ var _50=_4d.getAttribute("width"); } if(_4d.getAttribute("height")){ var _51=_4d.getAttribute("height"); } var _52="<embed src=\"/objecty/mediaplayer.swf\" "; _52+="width=\""+_50+"\" "; _52+="height=\""+_51+"\" "; _52+="bgcolor=\"#FFFFFF\" "; _52+="type=\"application/x-shockwave-flash\" "; _52+="pluginspage=\"http://www.macromedia.com/go/getflashplayer\" "; _52+="/>"; _4d.innerHTML=_52; },doObjectyWinMedia:function(_53,_54,_55){ var x=parseInt(_55.width,10); var y=parseInt(_55.height,10); if(!_55.poster){ var _58="<object width=\""+x+"\" height=\""+(y+getFormatCtrlYOffset(_55.ext))+"\" classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" "; _58+="codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112\" "; _58+="standby=\"Loading Microsoft Windows Media Player components...\" "; _58+="type=\"application/x-oleobject\">"; _58+="<param name=\"FileName\" value=\""+_55.uri+"\">"; _58+="<param name=\"ShowControls\" value=\"1\">"; _58+="<param name=\"AutoSize\" value=\"1\">"; _58+="<param name=\"uiMode\" value=\"mini\">"; if(_55.autoplay=="true"||_55.autostart=="true"){ _58+="<param name=\"autoStart\" value=\"true\"> "; }else{ _58+="<param name=\"autoStart\" value=\"false\"> "; } _58+="<embed type=\"application/x-mplayer2\" "; _58+="pluginspage=\"http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx/\" "; _58+="filename=\""+_55.uri+"\" "; _58+="src=\""+_55.uri+"\" "; _58+="name=MediaPlayer "; if(_55.autoplay=="true"||_55.autostart=="true"){ _58+="autostart=\"true\" "; }else{ _58+="autostart=\"false\" "; } _58+="showcontrols=1 "; _58+="width=\""+x+"\" height=\""+(y+getFormatCtrlYOffset(_55.ext))+"\">"; _58+="</embed>"; _58+="</object>"; _53.innerHTML=_58; }else{ if(_55["poster-action"]){ var _59=eval("("+_55["poster-action"]+")"); }else{ var _59={}; } if(navigator.appVersion.indexOf("Mac")!=-1){ var _5a=sObjectyAbsPath+"res/crtl-wm-mac.png"; var _5b=61; }else{ var _5a=sObjectyAbsPath+"res/crtl-wm-win.png"; var _5b=61; } Ext.DomHelper.append(_53,{tag:"div",style:"width: 100%; height: 100%; position: relative; background: url('"+_5a+"') 0 100%",children:[{tag:"img",src:_55.poster,style:"position: absolute; top:0; left:0"},{tag:"div",style:"width:"+_5b+"px; height:"+getFormatCtrlYOffset(_55.ext)+"px; position: absolute; bottom:0; right: 0; background: url('"+_5a+"') right bottom"},{tag:"div",style:"width: 96px; height: 96px; position: absolute; left: 50%; top:"+Math.round(y/2)+"px",children:[{tag:"img",src:sObjectyAbsPath+"res/playIcon.png",style:"width: 96px; height: 96px; position: absolute; left: -50%; top: -50%; opacity: 0.75; FILTER: Alpha(Opacity=75)"}]}]}); if(_59.type=="lightbox"){ YAHOO.util.Event.addListener(_54,"click",Objecty.wmPosterLightboxCb,{oElement:_53,sElementId:_54,oElementParams:_55},true); }else{ YAHOO.util.Event.addListener(_54,"click",Objecty.wmPosterClickCb,{oElement:_53,sElementId:_54,oElementParams:_55},true); } } },wmPosterClickCb:function(e,_5d,_5e,_5f){ YAHOO.util.Event.stopEvent(e); YAHOO.util.Event.removeListener(this.sElementId,"click"); YAHOO.util.Event.removeListener(this.sElementId,"mouseover"); YAHOO.util.Event.removeListener(this.sElementId,"mouseout"); Ext.DomHelper.applyStyles(this.sElementId,"cursor:pointer"); delete this.oElementParams.poster; this.oElementParams.autostart="true"; Objecty.doObjectyWinMedia(this.oElement,this.sElementId,this.oElementParams); },doObjectyUnity:function(_60,_61,_62){ var x=parseInt(_62.width,10); var y=parseInt(_62.height,10); var _65="<object classid=\"clsid:36D04559-44B7-45E0-BA81-E1508FAB359F\"\r"; _65+="\tcodebase=\"http://otee.dk/download_webplayer/UnityWebPlayer.cab\"\r"; _65+="\twidth=\""+x+"\" height=\""+y+"\" id=\"UnityObject\">\r"; _65+="\t<param name=\"src\" value=\""+_62.uri+"\" />\r"; _65+="\t<embed src=\""+_62.uri+"\"\r"; _65+="\t\twidth=\""+x+"\" height=\""+y+"\"\r"; _65+="\t\ttype=\"application/x-unity\"\r"; _65+="\t\tpluginspage=\"http://www.otee.dk/getunityplayer.html\"\r"; _65+="\t\tid=\"UnityEmbed\""; _65+="\t</embed>\r"; _65+="\t<noembed>\r"; _65+="\t\t<div>The browser does not have Unity Web Player installed.<a href=\"http://otee.dk/getunityplayer.html\">Get Unity Web Player</a></div>\r"; _65+="\t</noembed>\r"; _65+="</object>"; _60.innerHTML=_65; }}; }(); $E=YAHOO.util.Event; $D=YAHOO.util.Dom; $=$D.get; var kDefaultsQuickTime={width:320,height:240,autoplay:false}; var sObjectyAbsPath; var oScriptTags=document.getElementsByTagName("script"); for(var i=0;i<oScriptTags.length;i++){ if(oScriptTags[i].src.match("objecty.js$")){ sObjectyAbsPath=(oScriptTags[i].src.match(/^(.+)\/.*$/)[1]+"/"); } } YAHOO.util.Event.onDOMReady(Objecty.autoObjecty);  
