Nickolay - Task.ExtJS-3.02

Documentation | Source

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 2:

=cut found outside a pod block. Skipping to next block.

/*
 * Ext JS Library 3.0 RC 1.1
 * Copyright(c) 2006-2009, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */
Ext={version:"3.0"};window.undefined=window.undefined;Ext.apply=function(d,e,b){if(b){Ext.apply(d,b)}if(d&&e&&typeof e=="object"){for(var a in e){d[a]=e[a]}}return d};(function(){var d=0,p=navigator.userAgent.toLowerCase(),u=function(e){return e.test(p)},j=document.compatMode=="CSS1Compat",w=u(/opera/),g=u(/chrome/),q=u(/webkit/),t=!g&&u(/safari/),a=t&&u(/version\/3/),x=t&&u(/version\/4/),o=!w&&u(/msie/),n=o&&u(/msie 7/),m=o&&u(/msie 8/),l=!q&&u(/gecko/),b=l&&u(/rv:1\.9/),r=o&&!j,v=u(/windows|win32/),i=u(/macintosh|mac os x/),h=u(/adobeair/),k=u(/linux/),c=/^https/i.test(window.location.protocol);if(o&&!(n||m)){try{document.execCommand("BackgroundImageCache",false,true)}catch(s){}}Ext.apply(Ext,{isStrict:j,isSecure:c,isReady:false,enableGarbageCollector:true,enableListenerCollection:false,USE_NATIVE_JSON:false,applyIf:function(y,z){if(y){for(var e in z){if(Ext.isEmpty(y[e])){y[e]=z[e]}}}return y},id:function(e,y){return(e=Ext.getDom(e)||{}).id=e.id||(y||"ext-gen")+(++d)},extend:function(){var y=function(A){for(var z in A){this[z]=A[z]}};var e=Object.prototype.constructor;return function(E,B,D){if(Ext.isObject(B)){D=B;B=E;E=D.constructor!=e?D.constructor:function(){B.apply(this,arguments)}}var A=function(){},C,z=B.prototype;A.prototype=z;C=E.prototype=new A();C.constructor=E;E.superclass=z;if(z.constructor==e){z.constructor=B}E.override=function(F){Ext.override(E,F)};C.superclass=C.supr=(function(){return z});C.override=y;Ext.override(E,D);E.extend=function(F){Ext.extend(E,F)};return E}}(),override:function(e,z){if(z){var y=e.prototype;Ext.apply(y,z);if(Ext.isIE&&z.toString!=e.toString){y.toString=z.toString}}},namespace:function(){var y,e;Ext.each(arguments,function(z){e=z.split(".");y=window[e[0]]=window[e[0]]||{};Ext.each(e.slice(1),function(A){y=y[A]=y[A]||{}})});return y},urlEncode:function(C,B){var y=[],z,A=encodeURIComponent;for(z in C){Ext.each(C[z]||z,function(D,e){y.push("&",A(z),"=",D!=z?A(D):"")})}if(!B){y.shift();B=""}return B+y.join("")},urlDecode:function(z,y){var C={},B=z.split("&"),D=decodeURIComponent,e,A;Ext.each(B,function(E){E=E.split("=");e=D(E[0]);A=D(E[1]);C[e]=y||!C[e]?A:[].concat(C[e]).concat(A)});return C},toArray:function(){return o?function(e,A,y,z){z=[];Ext.each(e,function(B){z.push(B)});return z.slice(A||0,y||z.length)}:function(e,z,y){return Array.prototype.slice.call(e,z||0,y||e.length)}}(),each:function(B,A,z){if(Ext.isEmpty(B,true)){return}if(typeof B.length=="undefined"||typeof B=="string"){B=[B]}for(var y=0,e=B.length;y<e;y++){if(A.call(z||B[y],B[y],y,B)===false){return y}}},getDom:function(e){if(!e||!document){return null}return e.dom?e.dom:(typeof e=="string"?document.getElementById(e):e)},getBody:function(){return Ext.get(document.body||document.documentElement)},removeNode:o?function(){var e;return function(y){if(y&&y.tagName!="BODY"){e=e||document.createElement("div");e.appendChild(y);e.innerHTML=""}}}():function(e){if(e&&e.parentNode&&e.tagName!="BODY"){e.parentNode.removeChild(e)}},isEmpty:function(y,e){return y===null||y===undefined||((Ext.isArray(y)&&!y.length))||(!e?y==="":false)},isArray:function(e){return Object.prototype.toString.apply(e)==="[object Array]"},isObject:function(e){return e&&typeof e=="object"},isPrimitive:function(e){var y=typeof e;return y=="string"||y=="number"||y=="boolean"},isFunction:function(e){return typeof e=="function"},isOpera:w,isWebKit:q,isChrome:g,isSafari:t,isSafari3:a,isSafari4:x,isSafari2:t&&!a,isIE:o,isIE6:o&&!n&&!m,isIE7:n,isIE8:m,isGecko:l,isGecko2:l&&!b,isGecko3:b,isBorderBox:r,isLinux:k,isWindows:v,isMac:i,isAir:h});Ext.ns=Ext.namespace})();Ext.ns("Ext","Ext.util","Ext.lib","Ext.data");Ext.apply(Function.prototype,{createInterceptor:function(b,a){var c=this;return !Ext.isFunction(b)?this:function(){var e=this,d=arguments;b.target=e;b.method=c;return(b.apply(a||e||window,d)!==false)?c.apply(e||window,d):null}},createCallback:function(){var a=arguments,b=this;return function(){return b.apply(window,a)}},createDelegate:function(c,b,a){var d=this;return function(){var g=b||arguments;if(a===true){g=Array.prototype.slice.call(arguments,0);g=g.concat(b)}else{if(typeof a=="number"){g=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(g,e)}}return d.apply(c||window,g)}},defer:function(c,e,b,a){var d=this.createDelegate(e,b,a);if(c>0){return setTimeout(d,c)}d();return 0}});Ext.applyIf(String,{format:function(b){var a=Ext.toArray(arguments,1);return b.replace(/\{(\d+)\}/g,function(c,d){return a[d]})}});Ext.applyIf(Array.prototype,{indexOf:function(c){for(var b=0,a=this.length;b<a;b++){if(this[b]==c){return b}}return -1},remove:function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}});Ext.util.TaskRunner=function(e){e=e||10;var g=[],a=[],b=0,h=false,d=function(){h=false;clearInterval(b);b=0},i=function(){if(!h){h=true;b=setInterval(j,e)}},c=function(k){a.push(k);if(k.onStop){k.onStop.apply(k.scope||k)}},j=function(){var m=a.length,o=new Date().getTime();if(m>0){for(var q=0;q<m;q++){g.remove(a[q])}a=[];if(g.length<1){d();return}}for(var q=0,p,l,n,k=g.length;q<k;++q){p=g[q];l=o-p.taskRunTime;if(p.interval<=l){n=p.run.apply(p.scope||p,p.args||[++p.taskRunCount]);p.taskRunTime=o;if(n===false||p.taskRunCount===p.repeat){c(p);return}}if(p.duration&&p.duration<=(o-p.taskStartTime)){c(p)}}};this.start=function(k){g.push(k);k.taskStartTime=new Date().getTime();k.taskRunTime=0;k.taskRunCount=0;i();return k};this.stop=function(k){c(k);return k};this.stopAll=function(){d();for(var l=0,k=g.length;l<k;l++){if(g[l].onStop){g[l].onStop()}}g=[];a=[]}};Ext.TaskMgr=new Ext.util.TaskRunner();(function(){var b;function c(d){if(!b){b=new Ext.Element.Flyweight()}b.dom=d;return b}(function(){var g=document,d=g.compatMode=="CSS1Compat",e=Math.max,h=parseInt;Ext.lib.Dom={isAncestor:function(j,k){var i=false;j=Ext.getDom(j);k=Ext.getDom(k);if(j&&k){if(j.contains){return j.contains(k)}else{if(j.compareDocumentPosition){return !!(j.compareDocumentPosition(k)&16)}else{while(k=k.parentNode){i=k==j||i}}}}return i},getViewWidth:function(i){return i?this.getDocumentWidth():this.getViewportWidth()},getViewHeight:function(i){return i?this.getDocumentHeight():this.getViewportHeight()},getDocumentHeight:function(){return e(!d?g.body.scrollHeight:g.documentElement.scrollHeight,this.getViewportHeight())},getDocumentWidth:function(){return e(!d?g.body.scrollWidth:g.documentElement.scrollWidth,this.getViewportWidth())},getViewportHeight:function(){return Ext.isIE?(Ext.isStrict?g.documentElement.clientHeight:g.body.clientHeight):self.innerHeight},getViewportWidth:function(){return !Ext.isStrict&&!Ext.isOpera?g.body.clientWidth:Ext.isIE?g.documentElement.clientWidth:self.innerWidth},getY:function(i){return this.getXY(i)[1]},getX:function(i){return this.getXY(i)[0]},getXY:function(k){var j,q,s,v,l,m,u=0,r=0,t,i,n=(g.body||g.documentElement),o=[0,0];k=Ext.getDom(k);if(k!=n){if(k.getBoundingClientRect){s=k.getBoundingClientRect();t=c(document).getScroll();o=[s.left+t.left,s.top+t.top]}else{j=k;i=c(k).isStyle("position","absolute");while(j){q=c(j);u+=j.offsetLeft;r+=j.offsetTop;i=i||q.isStyle("position","absolute");if(Ext.isGecko){r+=v=h(q.getStyle("borderTopWidth"),10)||0;u+=l=h(q.getStyle("borderLeftWidth"),10)||0;if(j!=k&&!q.isStyle("overflow","visible")){u+=l;r+=v}}j=j.offsetParent}if(Ext.isSafari&&i){u-=n.offsetLeft;r-=n.offsetTop}if(Ext.isGecko&&!i){m=c(n);u+=h(m.getStyle("borderLeftWidth"),10)||0;r+=h(m.getStyle("borderTopWidth"),10)||0}j=k.parentNode;while(j&&j!=n){if(!Ext.isOpera||(j.tagName!="TR"&&!c(j).isStyle("display","inline"))){u-=j.scrollLeft;r-=j.scrollTop}j=j.parentNode}o=[u,r]}}return o},setXY:function(j,k){(j=Ext.fly(j,"_setXY")).position();var l=j.translatePoints(k),i=j.dom.style,m;for(m in l){if(!isNaN(l[m])){i[m]=l[m]+"px"}}},setX:function(j,i){this.setXY(j,[i,false])},setY:function(i,j){this.setXY(i,[false,j])}}})();Ext.lib.Event=function(){var v=false,t=[],g=[],z=0,p=[],d,B=false,k=window,E=document,l=200,r=20,A=0,q=1,i=2,m=3,s=3,w=4,e=function(){var F;if(k.addEventListener){F=function(J,H,I,G){if(H=="mouseenter"){I=I.createInterceptor(o);J.addEventListener("mouseover",I,(G))}else{if(H=="mouseleave"){I=I.createInterceptor(o);J.addEventListener("mouseout",I,(G))}else{J.addEventListener(H,I,(G))}}return I}}else{if(k.attachEvent){F=function(J,H,I,G){J.attachEvent("on"+H,I);return I}}else{F=function(){}}}return F}(),h=function(){var F;if(k.removeEventListener){F=function(J,H,I,G){if(H=="mouseenter"){H="mouseover"}else{if(H=="mouseleave"){H="mouseout"}}J.removeEventListener(H,I,(G))}}else{if(k.detachEvent){F=function(I,G,H){I.detachEvent("on"+G,H)}}else{F=function(){}}}return F}();function o(H){var G=H.relatedTarget,F=Object.prototype.toString.apply(G)=="[object XULElement]";if(!G){return false}return(!F&&G!=this&&this.tag!="document"&&!u(this,G))}function u(F,H){while(H){if(H===F){return true}try{H=H.parentNode}catch(G){return false}if(H&&(H.nodeType!=1)){H=null}}return false}function y(I,F,H){var G=-1;Ext.each(t,function(J,K){if(J&&J[i]==H&&J[A]==I&&J[q]==F){G=K}});return G}function C(){var F=false,I=[],G,H=!v||(z>0);if(!B){B=true;Ext.each(p,function(K,L,J){if(K&&(G=E.getElementById(K.id))){if(!K.checkReady||v||G.nextSibling||(E&&E.body)){G=K.override?(K.override===true?K.obj:K.override):G;K.fn.call(G,K.obj);p[L]=null}else{I.push(item)}}});z=(I.length==0)?0:z-1;if(H){n()}else{clearInterval(d);d=null}F=!(B=false)}return F}function n(){if(!d){var F=function(){C()};d=setInterval(F,x.POLL_INTERVAL)}}function D(){var F=Ext.get(E).getScroll();return[F.top,F.top]}function j(F,G){F=F.browserEvent||F;var H=F["page"+G];if(!H&&0!=H){H=F["client"+G]||0;if(Ext.isIE){H+=D()[G=="X"?0:1]}}return H}var x={onAvailable:function(H,F,I,G){p.push({id:H,fn:F,obj:I,override:G,checkReady:false});z=this.POLL_RETRYS;n()},addListener:function(I,F,H){var G;I=Ext.getDom(I);if(I&&H){if("unload"==F){G=!!(g[g.length]=[I,F,H])}else{t.push([I,F,H,G=e(I,F,H,false)])}}return !!G},removeListener:function(K,G,J){var I=false,H,F;K=Ext.getDom(K);if(!J){I=this.purgeElement(K,false,G)}else{if("unload"==G){Ext.each(g,function(M,N,L){if(M&&M[0]==K&&M[1]==evantName&&M[2]==J){g.splice(N,1);I=true}})}else{H=arguments[3]||y(K,G,J);F=t[H];if(K&&F){h(K,G,F[m],false);F[m]=F[i]=null;t.splice(H,1);I=true}}}return I},getTarget:function(F){F=F.browserEvent||F;return this.resolveTextNode(F.target||F.srcElement)},resolveTextNode:function(F){return Ext.isSafari&&F&&3==F.nodeType?F.parentNode:F},getPageX:function(F){return j(F,"X")},getPageY:function(F){return j(F,"Y")},getXY:function(F){return[this.getPageX(F),this.getPageY(F)]},getRelatedTarget:function(F){F=F.browserEvent||F;return this.resolveTextNode(F.relatedTarget||(F.type=="mouseout"?F.toElement:F.type=="mouseover"?F.fromElement:null))},stopEvent:function(F){this.stopPropagation(F);this.preventDefault(F)},stopPropagation:function(F){F=F.browserEvent||F;if(F.stopPropagation){F.stopPropagation()}else{F.cancelBubble=true}},preventDefault:function(F){F=F.browserEvent||F;if(F.preventDefault){F.preventDefault()}else{F.returnValue=false}},getEvent:function(F){F=F||k.event;if(!F){var G=this.getEvent.caller;while(G){F=G.arguments[0];if(F&&Event==F.constructor){break}G=G.caller}}return F},getCharCode:function(F){F=F.browserEvent||F;return F.charCode||F.keyCode||0},_load:function(G){v=true;var F=Ext.lib.Event;if(Ext.isIE&&G!==true){h(k,"load",F._load)}},purgeElement:function(G,I,F){var H=this;Ext.each(H.getListeners(G,F),function(J){if(J){H.removeListener(G,J.type,J.fn)}});if(I&&G&&G.childNodes){Ext.each(G.childNodes,function(J){H.purgeElement(J,I,F)})}},getListeners:function(I,G){var J=this,H=[],F=[t,g];if(G){F.splice(G=="unload"?0:1,1)}else{F=F[0].concat(F[1])}Ext.each(F,function(K,L){if(K&&K[J.EL]==I&&(!G||G==K[J.type])){H.push({type:K[q],fn:K[i],obj:K[s],adjust:K[w],index:L})}});return H.length?H:null},_unload:function(M){var L=Ext.lib.Event,J,I,G,F,H,K;Ext.each(g,function(N){if(N){K=N[w]?(N[w]===true?N[s]:N[w]):k;N[i].call(K,L.getEvent(M),N[s])}});g=null;if(t&&(I=t.length)){while(I){if(G=t[H=--I]){L.removeListener(G[A],G[q],G[i],H)}}}h(k,"unload",L._unload)}};x.on=x.addListener;x.un=x.removeListener;if(E&&E.body){x._load(true)}else{e(k,"load",x._load)}e(k,"unload",x._unload);C();return x}();Ext.lib.Ajax=function(){var g=["MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];function h(s){var r=s.conn,t;function q(u,v){for(t in v){if(v.hasOwnProperty(t)){u.setRequestHeader(t,v[t])}}}if(k.defaultHeaders){q(r,k.defaultHeaders)}if(k.headers){q(r,k.headers);k.headers=null}}function d(t,s,r,q){return{tId:t,status:r?-1:0,statusText:r?"transaction aborted":"communication failure",isAbort:true,isTimeout:true,argument:s}}function j(q,r){(k.headers=k.headers||{})[q]=r}function o(v,t){var q={},r,s=v.conn;try{r=v.conn.getAllResponseHeaders();Ext.each(r.split("\n"),function(w){var x=w.split(":");q[x[0]]=x[1]})}catch(u){}return{tId:v.tId,status:s.status,statusText:s.statusText,getResponseHeader:q,getAllResponseHeaders:r,responseText:s.responseText,responseXML:s.responseXML,argument:t}}function n(q){q.conn=null;q=null}function e(v,w,r,q){if(!w){n(v);return}var t,s;try{if(v.conn.status!==undefined&&v.conn.status!=0){t=v.conn.status}else{t=13030}}catch(u){t=13030}if((t>=200&&t<300)||(Ext.isIE&&t==1223)){s=o(v,w.argument);if(w.success){if(!w.scope){w.success(s)}else{w.success.apply(w.scope,[s])}}}else{switch(t){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:s=d(v.tId,w.argument,(r?r:false),q);if(w.failure){if(!w.scope){w.failure(s)}else{w.failure.apply(w.scope,[s])}}break;default:s=o(v,w.argument);if(w.failure){if(!w.scope){w.failure(s)}else{w.failure.apply(w.scope,[s])}}}}n(v);s=null}function m(s,v){v=v||{};var q=s.conn,u=s.tId,r=k.poll,t=v.timeout||null;if(t){k.timeout[u]=setTimeout(function(){k.abort(s,v,true)},t)}r[u]=setInterval(function(){if(q&&q.readyState==4){clearInterval(r[u]);r[u]=null;if(t){clearTimeout(k.timeout[u]);k.timeout[u]=null}e(s,v)}},k.pollInterval)}function i(u,r,t,q){var s=l()||null;if(s){s.conn.open(u,r,true);if(k.useDefaultXhrHeader){j("X-Requested-With",k.defaultXhrHeader)}if(q&&k.useDefaultHeader&&(!k.headers||!k.headers["Content-Type"])){j("Content-Type",k.defaultPostHeader)}if(k.defaultHeaders||k.headers){h(s)}m(s,t);s.conn.send(q||null)}return s}function l(){var r;try{if(r=p(k.transactionId)){k.transactionId++}}catch(q){}finally{return r}}function p(t){var q;try{q=new XMLHttpRequest()}catch(s){for(var r=0;r<g.length;++r){try{q=new ActiveXObject(g[r]);break}catch(s){}}}finally{return{conn:q,tId:t}}}var k={request:function(x,v,q,w,r){if(r){var u=this,t=r.xmlData,s=r.jsonData;Ext.applyIf(u,r);if(t||s){j("Content-Type",t?"text/xml":"application/json");w=t||Ext.encode(s)}}return i(x||r.method||"POST",v,q,w)},serializeForm:function(r){var s=r.elements||(document.forms[r]||Ext.getDom(r)).elements,y=false,x=encodeURIComponent,v,z,q,t,u="",w;Ext.each(s,function(A){q=A.name;w=A.type;if(!A.disabled&&q){if(/select-(one|multiple)/i.test(w)){Ext.each(A.options,function(B){if(B.selected){u+=String.format("{0}={1}&",x(q),(B.hasAttribute?B.hasAttribute("value"):B.getAttribute("value")!==null)?B.value:B.text)}})}else{if(!/file|undefined|reset|button/i.test(w)){if(!(/radio|checkbox/i.test(w)&&!A.checked)&&!(w=="submit"&&y)){u+=x(q)+"="+x(A.value)+"&";y=/submit/i.test(w)}}}}});return u.substr(0,u.length-1)},useDefaultHeader:true,defaultPostHeader:"application/x-www-form-urlencoded; charset=UTF-8",useDefaultXhrHeader:true,defaultXhrHeader:"XMLHttpRequest",poll:{},timeout:{},pollInterval:50,transactionId:0,abort:function(t,v,q){var s=this,u=t.tId,r=false;if(s.isCallInProgress(t)){t.conn.abort();clearInterval(s.poll[u]);s.poll[u]=null;if(q){s.timeout[u]=null}e(t,v,(r=true),q)}return r},isCallInProgress:function(q){return q.conn&&!{0:true,4:true}[q.conn.readyState]}};return k}();(function(){var h=Ext.lib,e=/width|height|opacity|padding/i,d=/width|height|top$|bottom$|left$|right$/i,g=/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i;h.Anim={motion:function(l,j,m,n,i,k){return this.run(l,j,m,n,i,k,h.Motion)},run:function(m,j,o,p,i,l,k){k=k||h.AnimBase;var n=new k(m,j,o,h.Easing[p]||p);n.animate(function(){if(i){i.call(l)}});return n}};h.AnimBase=function(j,i,k,l){if(j){this.init(j,i,k,l)}};h.AnimBase.prototype={doMethod:function(i,l,j){var k=this;return k.method(k.curFrame,l,j-l,k.totalFrames)},setAttr:function(i,k,j){if(e.test(i)&&k<0){k=0}Ext.fly(this.el,"_anim").setStyle(i,k+j)},getAttr:function(j){var l=c(this.el),k=l.getStyle(j),i;if(k!=="auto"&&!g.test(k)){return parseFloat(k)}i=l["get"+j.charAt(0).toUpperCase()+j.substr(1)];return i?i.call(l):0},setRunAttr:function(m){var o=this,l=Ext.isEmpty,p=o.attrs[m],s=p.unit,n=p.by,q=p.from,r=p.to,j=(o.runAttrs[m]={}),i,k;if(l(r)&&l(n)){return false}i=!l(q)?q:o.getAttr(m);k=!l(r)?r:[];if(!l(n)){if(Ext.isArray(i)){Ext.each(i,function(t,u,w){k[u]=t+n[u]})}else{k=i+n}}j.start=i;j.end=k;j.unit=!l(s)?s:(d.test(m)?"px":"")},init:function(k,j,o,i){var q=this,m=0,n=h.Easing,r=h.AnimMgr;q.attrs=j||{};q.dur=o||1;q.method=i||n.easeNone;q.useSec=true;q.curFrame=0;q.totalFrames=r.fps;q.el=Ext.getDom(k);q.isAnimated=false;q.startTime=null;q.runAttrs={};q.animate=function(w,t){function v(){var x=this;x.onComplete.removeListener(v);if(typeof w=="function"){w.call(t||x,x)}}var u=this;u.onComplete.addListener(v,u);u.curFrame=0;u.totalFrames=(u.useSec)?Math.ceil(r.fps*o):o;if(!u.isAnimated){r.registerElement(u)}};q.stop=function(t){if(t){q.curFrame=q.totalFrames;q._onTween.fire()}r.stop(q)};function s(){q.onStart.fire();q.runAttrs={};for(var t in q.attrs){q.setRunAttr(t)}q.isAnimated=!!(q.startTime=new Date());m=0}function p(){q.onTween.fire({duration:new Date()-q.startTime,curFrame:q.curFrame});for(var t in q.runAttrs){var u=q.runAttrs[t];q.setAttr(t,q.doMethod(t,u.start,u.end),u.unit)}m++}function l(){q.isAnimated=false;q.onComplete.fire({duration:(new Date()-q.startTime)/1000,frames:m,fps:m/this.duration});m=0}q.onStart=new Ext.util.Event(q);q.onTween=new Ext.util.Event(q);q.onComplete=new Ext.util.Event(q);(q._onStart=new Ext.util.Event(q)).addListener(s);(q._onTween=new Ext.util.Event(q)).addListener(p);(q._onComplete=new Ext.util.Event(q)).addListener(l)}};h.AnimMgr=function(){var i=new Ext.util.TaskRunner(),k;function j(m){var q=m.totalFrames,p=m.curFrame,o=m.dur,n=(p*o*1000/q),l=(new Date()-m.startTime),r=0;if(l<o*1000){r=Math.round((l/n-1)*p)}else{r=q-(p+1)}if(r>0&&isFinite(r)){if(p+r>=q){r=q-(p+1)}m.curFrame+=r}}k={fps:1000,delay:1,registerElement:function(l){l.run=function(m){if(!m||!m.isAnimated){return}if(m.curFrame++<m.totalFrames){if(m.useSec){j(m)}m._onTween.fire()}else{k.stop(m)}};l.args=[l];l.scope=k;l.onStop=function(){l._onComplete.fire()};l.interval=k.delay;i.start(l);l._onStart.fire()},stop:function(l){i.stop(l)}};return k}();h.Easing={easeNone:function(j,i,l,k){return l*j/k+i},easeIn:function(j,i,l,k){return l*(j/=k)*j+i},easeOut:function(j,i,l,k){return -l*(j/=k)*(j-2)+i}};(function(){function j(r,p){var l=r.length,o=r.slice(0),s=(1-p),n,m;for(m=1;m<l;++m){for(n=0;n<l-m;++n){var q=o[n];q[0]=s*q[0]+p*o[n+1][0];q[1]=s*q[1]+p*o[n+1][1]}}return[o[0][0],o[0][1]]}h.Motion=function(m,l,n,o){if(m){h.Motion.superclass.constructor.call(this,m,l,n,o)}};Ext.extend(h.Motion,h.AnimBase);var k=h.Motion.superclass,i=/^points$/i;Ext.apply(h.Motion.prototype,{setAttr:function(l,p,o){var m=k.setAttr,n=this;if(i.test(l)){o=o||"px";m.call(n,"left",p[0],o);m.call(n,"top",p[1],o)}else{m.call(n,l,p,o)}},getAttr:function(l){var m=k.getAttr,n=this;return i.test(l)?[m.call(n,"left"),m.call(n,"top")]:m.call(n,l)},doMethod:function(l,o,m){var n=this;return i.test(l)?j(n.runAttrs[l],n.method(n.curFrame,0,100,n.totalFrames)/100):k.doMethod.call(n,l,o,m)},setRunAttr:function(r){var s=this;if(i.test(r)){var m=s.el,v=s.attrs,u=v.points,o=u.control||[],q=s.runAttrs,p=h.Dom.getXY,t=v.points.from||p(m),l;function n(w,z,y){var x=y?p(s.el):[0,0];return w?[(w[0]||0)-x[0]+z[0],(w[1]||0)-x[1]+z[1]]:null}o=typeof o=="string"?[o]:Ext.toArray(o);Ext.fly(m,"_anim").position();h.Dom.setXY(m,t);q[r]=[l=s.getAttr("points")].concat(o);q[r].push(n(u.to||u.by||null,l,!Ext.isEmpty(u.to)))}else{k.setRunAttr.call(s,r)}}})})()})();(function(){var d=Math.abs,j=Math.PI,i=Math.asin,h=Math.pow,e=Math.sin,g=Ext.lib;Ext.apply(g.Easing,{easeBoth:function(l,k,n,m){return((l/=m/2)<1)?n/2*l*l+k:-n/2*((--l)*(l-2)-1)+k},easeInStrong:function(l,k,n,m){return n*(l/=m)*l*l*l+k},easeOutStrong:function(l,k,n,m){return -n*((l=l/m-1)*l*l*l-1)+k},easeBothStrong:function(l,k,n,m){return((l/=m/2)<1)?n/2*l*l*l*l+k:-n/2*((l-=2)*l*l*l-2)+k},elasticIn:function(m,k,r,q,l,o){if(m==0||(m/=q)==1){return m==0?k:k+r}o=o||(q*0.3);var n;if(l>=d(r)){n=o/(2*j)*i(r/l)}else{l=r;n=o/4}return -(l*h(2,10*(m-=1))*e((m*q-n)*(2*j)/o))+k},elasticOut:function(m,k,r,q,l,o){if(m==0||(m/=q)==1){return m==0?k:k+r}o=o||(q*0.3);var n;if(l>=d(r)){n=o/(2*j)*i(r/l)}else{l=r;n=o/4}return l*h(2,-10*m)*e((m*q-n)*(2*j)/o)+r+k},elasticBoth:function(m,k,r,q,l,o){if(m==0||(m/=q/2)==2){return m==0?k:k+r}o=o||(q*(0.3*1.5));var n;if(l>=d(r)){n=o/(2*j)*i(r/l)}else{l=r;n=o/4}return m<1?-0.5*(l*h(2,10*(m-=1))*e((m*q-n)*(2*j)/o))+k:l*h(2,-10*(m-=1))*e((m*q-n)*(2*j)/o)*0.5+r+k},backIn:function(l,k,o,n,m){m=m||1.70158;return o*(l/=n)*l*((m+1)*l-m)+k},backOut:function(l,k,o,n,m){if(!m){m=1.70158}return o*((l=l/n-1)*l*((m+1)*l+m)+1)+k},backBoth:function(l,k,o,n,m){m=m||1.70158;return((l/=n/2)<1)?o/2*(l*l*(((m*=(1.525))+1)*l-m))+k:o/2*((l-=2)*l*(((m*=(1.525))+1)*l+m)+2)+k},bounceIn:function(l,k,n,m){return n-g.Easing.bounceOut(m-l,0,n,m)+k},bounceOut:function(l,k,n,m){if((l/=m)<(1/2.75)){return n*(7.5625*l*l)+k}else{if(l<(2/2.75)){return n*(7.5625*(l-=(1.5/2.75))*l+0.75)+k}else{if(l<(2.5/2.75)){return n*(7.5625*(l-=(2.25/2.75))*l+0.9375)+k}}}return n*(7.5625*(l-=(2.625/2.75))*l+0.984375)+k},bounceBoth:function(l,k,n,m){return(l<m/2)?g.Easing.bounceIn(l*2,0,n,m)*0.5+k:g.Easing.bounceOut(l*2-m,0,n,m)*0.5+n*0.5+k}})})();(function(){var g=Ext.lib;g.Anim.color=function(m,k,n,o,j,l){return g.Anim.run(m,k,n,o,j,l,g.ColorAnim)};g.ColorAnim=function(k,j,l,m){g.ColorAnim.superclass.constructor.call(this,k,j,l,m)};Ext.extend(g.ColorAnim,g.AnimBase);var i=g.ColorAnim.superclass,d=/color$/i,e=/^transparent|rgba\(0, 0, 0, 0\)$/;function h(j){var k=parseInt,l;if(j.length==3){l=j}else{if(j.charAt(0)=="r"){l=j.replace(/[^0-9,]/g,"").split(",");l=[k(l[1],10),k(l[2],10),k(l[3],10)]}else{if(j.length<6){l=j.replace("#","").match(/./g);l=[k(l[0]+l[0],16),k(l[1]+l[1],16),k(l[2]+l[2],16)]}else{l=j.replace("#","").match(/./g);l=[k(l[0]+l[1],16),k(l[2]+l[3],16),k(l[4]+l[5],16)]}}}return l}Ext.apply(g.ColorAnim.prototype,{getAttr:function(j){var l=this,k=l.el,m;if(d.test(j)){while(k&&e.test(m=c(k).getStyle(j))){k=k.parentNode;m="fff"}}else{m=i.getAttr.call(l,j)}return m},doMethod:function(j,o,k){var m=this,n,l=Math.floor;if(d.test(j)){n=[];Ext.each(o,function(p,q){n[q]=i.doMethod.call(m,j,p,k[q])});n="rgb("+l(n[0])+","+l(n[1])+","+l(n[2])+")"}else{n=i.doMethod.call(m,j,o,k)}return n},setRunAttr:function(j){var m=this,o=Ext.isEmpty;i.setRunAttr.call(m,j);if(d.test(j)){var l=m.attrs[j],n=m.runAttrs[j],p=h(n.start),k=h(n.end);if(o(l.to)&&!o(l.by)){k=h(l.by);Ext.each(p,function(q,r){k[r]=q+k[r]})}n.start=p;n.end=k}}})})();(function(){var d=Ext.lib;d.Anim.scroll=function(l,j,m,n,i,k){return d.Anim.run(l,j,m,n,i,k,d.Scroll)};d.Scroll=function(j,i,k,l){if(j){d.Scroll.superclass.constructor.call(this,j,i,k,l)}};Ext.extend(d.Scroll,d.ColorAnim);var e=Ext.lib,h=d.Scroll.superclass,g="scroll";Ext.apply(d.Scroll.prototype,{toString:function(){var i=this.el;return("Scroll "+(i.id||i.tagName))},doMethod:function(i,o,j){var m,l=this,n=l.curFrame,k=l.totalFrames;if(i==g){m=[l.method(n,o[0],j[0]-o[0],k),l.method(n,o[1],j[1]-o[1],k)]}else{m=h.doMethod.call(l,i,o,j)}return m},getAttr:function(i){var k=null,j=this;if(i==g){k=[j.el.scrollLeft,j.el.scrollTop]}else{k=h.getAttr.call(j,i)}return k},setAttr:function(i,l,k){var j=this;if(i==g){j.el.scrollLeft=l[0];j.el.scrollTop=l[1]}else{h.setAttr.call(j,i,l,k)}}})})();if(Ext.isIE){function a(){var d=Function.prototype;delete d.createSequence;delete d.defer;delete d.createDelegate;delete d.createCallback;delete d.createInterceptor;window.detachEvent("onunload",a)}window.attachEvent("onunload",a)}})();(function(){var i=Ext.util,l=Ext.toArray,k=Ext.each,a=Ext.isObject,h=true,j=false;i.Observable=function(){var m=this,n=m.events;if(m.listeners){m.on(m.listeners);delete m.listeners}m.events=n||{}};i.Observable.prototype=function(){var n=/^(?:scope|delay|buffer|single)$/,m=function(o){return o.toLowerCase()};return{fireEvent:function(){var o=l(arguments),r=m(o[0]),s=this,p=h,u=s.events[r],t,v;if(s.eventsSuspended===h){if(t=s.suspendedEventsQueue){t.push(o)}}else{if(a(u)&&u.bubble){if(u.fire.apply(u,o.slice(1))===j){return j}v=s.getBubbleTarget&&s.getBubbleTarget();if(v&&v.enableBubble){v.enableBubble(r);return v.fireEvent.apply(v,o)}}else{if(a(u)){o.shift();p=u.fire.apply(u,o)}}}return p},addListener:function(r,u,w,q){var t=this,s,x,v,p;if(a(r)){q=r;for(s in q){x=q[s];if(!n.test(s)){t.addListener(s,x.fn||x,x.scope||q.scope,x.fn?x:q)}}}else{r=m(r);p=t.events[r]||h;if(typeof p=="boolean"){t.events[r]=p=new i.Event(t,r)}p.addListener(u,w,a(q)?q:{})}},removeListener:function(o,q,p){var r=this.events[m(o)];if(a(r)){r.removeListener(q,p)}},purgeListeners:function(){var q=this.events,o,p;for(p in q){o=q[p];if(a(o)){o.clearListeners()}}},addEvents:function(q){var p=this;p.events=p.events||{};if(typeof q=="string"){k(arguments,function(o){p.events[o]=p.events[o]||h})}else{Ext.applyIf(p.events,q)}},hasListener:function(o){var p=this.events[o];return a(p)&&p.listeners.length>0},suspendEvents:function(o){this.eventsSuspended=h;if(o){this.suspendedEventsQueue=[]}},resumeEvents:function(){var o=this;o.eventsSuspended=!delete o.suspendedEventQueue;k(o.suspendedEventsQueue,function(p){o.fireEvent.apply(o,p)})}}}();var e=i.Observable.prototype;e.on=e.addListener;e.un=e.removeListener;i.Observable.releaseCapture=function(m){m.fireEvent=e.fireEvent};function g(n,p,m){return function(){if(p.target==arguments[0]){n.apply(m,l(arguments))}}}function c(p,q,n){var m=new i.DelayedTask();return function(){m.delay(q.buffer,p,n,l(arguments))}}function d(o,p,n,m){return function(){p.removeListener(n,m);return o.apply(m,arguments)}}function b(n,p,m){return function(){var o=l(arguments);(function(){n.apply(m,o)}).defer(p.delay||10)}}i.Event=function(n,m){this.name=m;this.obj=n;this.listeners=[]};i.Event.prototype={addListener:function(p,o,n){var q=this,m;o=o||q.obj;if(!q.isListening(p,o)){m=q.createListener(p,o,n);if(q.firing){q.listeners=q.listeners.slice(0)}q.listeners.push(m)}},createListener:function(q,p,r){r=r||{},p=p||this.obj;var m={fn:q,scope:p,options:r},n=q;if(r.target){n=g(n,r,p)}if(r.delay){n=b(n,r,p)}if(r.single){n=d(n,this,q,p)}if(r.buffer){n=c(n,r,p)}m.fireFn=n;return m},findListener:function(p,o){var n,m=-1;k(this.listeners,function(q,r){n=q.scope;if(q.fn==p&&(n==o||n==this.obj)){m=r;return j}},this);return m},isListening:function(n,m){return this.findListener(n,m)!=-1},removeListener:function(p,o){var n,q=this,m=j;if((n=q.findListener(p,o))!=-1){if(q.firing){q.listeners=q.listeners.slice(0)}q.listeners.splice(n,1);m=h}return m},clearListeners:function(){this.listeners=[]},fire:function(){var o=this,n=l(arguments),m=h;k(o.listeners,function(p){o.firing=h;if(p.fireFn.apply(p.scope||o.obj||window,n)===j){return m=o.firing=j}});o.firing=j;return m}}})();Ext.DomHelper=function(){var s=null,j=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,l=/^table|tbody|tr|td$/i,p,m="afterbegin",n="afterend",c="beforebegin",o="beforeend",a="<table>",h="</table>",b=a+"<tbody>",i="</tbody>"+h,k=b+"<tr>",r="</tr>"+i;function g(w,y,x,z,v,t){var u=p.insertHtml(z,Ext.getDom(w),q(y));return x?Ext.get(u,true):u}function q(y){var v="",u,x,w,t,z;if(typeof y=="string"){v=y}else{if(Ext.isArray(y)){Ext.each(y,function(A){v+=q(A)})}else{v+="<"+(y.tag=y.tag||"div");for(u in y){x=y[u];if(!/tag|children|cn|html$/i.test(u)&&!Ext.isFunction(x)){if(Ext.isObject(x)){v+=" "+u+"='";for(w in x){t=x[w];v+=!Ext.isFunction(t)?w+":"+t+";":""}v+="'"}else{v+=" "+({cls:"class",htmlFor:"for"}[u]||u)+"='"+x+"'"}}}if(j.test(y.tag)){v+="/>"}else{v+=">";if(z=y.children||y.cn){v+=q(z)}else{if(y.html){v+=y.html}}v+="</"+y.tag+">"}}}return v}function e(y,w,v,x){s.innerHTML=[w,v,x].join("");var t=-1,u=s;while(++t<y){u=u.firstChild}return u}function d(t,u,w,v){var x,y;s=s||document.createElement("div");if(t=="td"&&(u==m||u==o)||!/td|tr|tbody/i.test(t)&&(u==c||u==n)){return}y=u==c?w:u==n?w.nextSibling:u==m?w.firstChild:null;if(u==c||u==n){w=w.parentNode}if(t=="td"||(t=="tr"&&(u==o||u==m))){x=e(4,k,v,r)}else{if((t=="tbody"&&(u==o||u==m))||(t=="tr"&&(u==c||u==n))){x=e(3,b,v,i)}else{x=e(2,a,v,h)}}w.insertBefore(x,y);return x}p={markup:function(t){return q(t)},insertHtml:function(y,t,z){var x={},v,B,A,C,w,u;y=y.toLowerCase();x[c]=["BeforeBegin","previousSibling"];x[n]=["AfterEnd","nextSibling"];if(t.insertAdjacentHTML){if(l.test(t.tagName)&&(u=d(t.tagName.toLowerCase(),y,t,z))){return u}x[m]=["AfterBegin","firstChild"];x[o]=["BeforeEnd","lastChild"];if(v=x[y]){t.insertAdjacentHTML(v[0],z);return t[v[1]]}}else{A=t.ownerDocument.createRange();B="setStart"+(/end/i.test(y)?"After":"Before");if(x[y]){A[B](t);C=A.createContextualFragment(z);t.parentNode.insertBefore(C,y==c?t:t.nextSibling);return t[(y==c?"previous":"next")+"Sibling"]}else{w=(y==m?"first":"last")+"Child";if(t.firstChild){A[B](t[w]);C=A.createContextualFragment(z);y==m?t.insertBefore(C,t.firstChild):t.appendChild(C)}else{t.innerHTML=z}return t[w]}}throw'Illegal insertion point -> "'+y+'"'},insertBefore:function(t,v,u){return g(t,v,u,c)},insertAfter:function(t,v,u){return g(t,v,u,n,"nextSibling")},insertFirst:function(t,v,u){return g(t,v,u,m,"firstChild")},append:function(t,v,u){return g(t,v,u,o,"",true)},overwrite:function(t,v,u){t=Ext.getDom(t);t.innerHTML=q(v);return u?Ext.get(t.firstChild):t.firstChild},createHtml:q};return p}();Ext.Template=function(d){var e=this,b=arguments,c=[];if(Ext.isArray(d)){d=d.join("")}else{if(b.length>1){Ext.each(b,function(a){if(Ext.isObject(a)){Ext.apply(e,a)}else{c.push(a)}});d=c.join("")}}e.html=d;if(e.compiled){e.compile()}};Ext.Template.prototype={applyTemplate:function(a){var b=this;return b.compiled?b.compiled(a):b.html.replace(b.re,function(c,d){return a[d]!==undefined?a[d]:""})},set:function(a,c){var b=this;b.html=a;b.compiled=null;return c?b.compile():b},re:/\{([\w-]+)\}/g,compile:function(){var me=this,sep=Ext.isGecko?"+":",";function fn(m,name){name="values['"+name+"']";return"'"+sep+"("+name+" == undefined ? '' : "+name+")"+sep+"'"}eval("this.compiled = function(values){ return "+(Ext.isGecko?"'":"['")+me.html.replace(/\\/g,"\\\\").replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn)+(Ext.isGecko?"';};":"'].join('');};"));return me},insertFirst:function(b,a,c){return this.doInsert("afterBegin",b,a,c)},insertBefore:function(b,a,c){return this.doInsert("beforeBegin",b,a,c)},insertAfter:function(b,a,c){return this.doInsert("afterEnd",b,a,c)},append:function(b,a,c){return this.doInsert("beforeEnd",b,a,c)},doInsert:function(c,e,b,a){e=Ext.getDom(e);var d=Ext.DomHelper.insertHtml(c,e,this.applyTemplate(b));return a?Ext.get(d,true):d},overwrite:function(b,a,c){b=Ext.getDom(b);b.innerHTML=this.applyTemplate(a);return c?Ext.get(b.firstChild,true):b.firstChild}};Ext.Template.prototype.apply=Ext.Template.prototype.applyTemplate;Ext.Template.from=function(b,a){b=Ext.getDom(b);return new Ext.Template(b.value||b.innerHTML,a||"")};Ext.DomQuery=function(){var cache={},simpleCache={},valueCache={},nonSpace=/\S/,trimRe=/^\s+|\s+$/g,tplRe=/\{(\d+)\}/g,modeRe=/^(\s?[\/>+~]\s?|\s|$)/,tagTokenRe=/^(#)?([\w-\*]+)/,nthRe=/(\d*)n\+?(\d*)/,nthRe2=/\D/,isIE=window.ActiveXObject?true:false,key=30803;eval("var batch = 30803;");function child(p,index){var i=0,n=p.firstChild;while(n){if(n.nodeType==1){if(++i==index){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,nx;while(n){nx=n.nextSibling;if(n.nodeType==3&&!nonSpace.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,attr){if(!n.tagName&&typeof n.length!="undefined"){n=n[0]}if(!n){return null}if(attr=="for"){return n.htmlFor}if(attr=="class"||attr=="className"){return n.className}return n.getAttribute(attr)||n[attr]}function getNodes(ns,mode,tagName){var result=[],ri=-1,cs;if(!ns){return result}tagName=tagName||"*";if(typeof ns.getElementsByTagName!="undefined"){ns=[ns]}if(!mode){for(var i=0,ni;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName);for(var j=0,ci;ci=cs[j];j++){result[++ri]=ci}}}else{if(mode=="/"||mode==">"){var utag=tagName.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==utag||cj.nodeName==tagName||tagName=="*"){result[++ri]=cj}}}}else{if(mode=="+"){var utag=tagName.toUpperCase();for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(n&&(n.nodeName==utag||n.nodeName==tagName||tagName=="*")){result[++ri]=n}}}else{if(mode=="~"){for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&(n.nodeType!=1||(tagName=="*"||n.tagName.toLowerCase()!=tagName))){}if(n){result[++ri]=n}}}}}}return result}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,tagName){if(cs.tagName||cs==document){cs=[cs]}if(!tagName){return cs}var r=[],ri=-1;tagName=tagName.toLowerCase();for(var i=0,ci;ci=cs[i];i++){if(ci.nodeType==1&&ci.tagName.toLowerCase()==tagName){r[++ri]=ci}}return r}function byId(cs,attr,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,attr,value,op,custom){var r=[],ri=-1,st=custom=="{",f=Ext.DomQuery.operators[op];for(var i=0,ci;ci=cs[i];i++){if(ci.nodeType!=1){continue}var a;if(st){a=Ext.DomQuery.getStyle(ci,attr)}else{if(attr=="class"||attr=="className"){a=ci.className}else{if(attr=="for"){a=ci.htmlFor}else{if(attr=="href"){a=ci.getAttribute("href",2)}else{a=ci.getAttribute(attr)}}}}if((f&&f(a,value))||(!f&&a)){r[++ri]=ci}}return r}function byPseudo(cs,name,value){return Ext.DomQuery.pseudos[name](cs,value)}function nodupIEXml(cs){var d=++key,r;cs[0].setAttribute("_nodup",d);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(isIE&&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,r=[];for(var i=0,len=c1.length;i<len;i++){c1[i].setAttribute("_qdiff",d)}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 len1=c1.length,d=++key,r=[];if(!len1){return c2}if(isIE&&c1[0].selectSingleNode){return quickDiffIEXml(c1,c2)}for(var i=0;i<len1;i++){c1[i]._qdiff=d}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,mode,root,id){if(ns==root){var d=root.ownerDocument||root;return d.getElementById(id)}ns=getNodes(ns,mode,"*");return byId(ns,null,id)}return{getStyle:function(el,name){return Ext.fly(el).getStyle(name)},compile:function(path,type){type=type||"select";var fn=["var f = function(root){\n var mode; ++batch; var n = root || document;\n"],q=path,mode,lq,tk=Ext.DomQuery.matchers,tklen=tk.length,mm,lmode=q.match(modeRe);if(lmode&&lmode[1]){fn[fn.length]='mode="'+lmode[1].replace(trimRe,"")+'";';q=q.replace(lmode[1],"")}while(path.substr(0,1)=="/"){path=path.substr(1)}while(q&&lq!=q){lq=q;var tm=q.match(tagTokenRe);if(type=="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(modeRe))){var matched=false;for(var j=0;j<tklen;j++){var t=tk[j];var m=q.match(t.re);if(m){fn[fn.length]=t.select.replace(tplRe,function(x,i){return m[i]});q=q.replace(m[0],"");matched=true;break}}if(!matched){throw'Error parsing selector, parsing failed at "'+q+'"'}}if(mm[1]){fn[fn.length]='mode="'+mm[1].replace(trimRe,"")+'";';q=q.replace(mm[1],"")}}fn[fn.length]="return nodup(n);\n}";eval(fn.join(""));return f},select:function(path,root,type){if(!root||root==document){root=document}if(typeof root=="string"){root=document.getElementById(root)}var paths=path.split(","),results=[];for(var i=0,len=paths.length;i<len;i++){var p=paths[i].replace(trimRe,"");if(!cache[p]){cache[p]=Ext.DomQuery.compile(p);if(!cache[p]){throw p+" is not a valid selector"}}var result=cache[p](root);if(result&&result!=document){results=results.concat(result)}}if(paths.length>1){return nodup(results)}return results},selectNode:function(path,root){return Ext.DomQuery.select(path,root)[0]},selectValue:function(path,root,defaultValue){path=path.replace(trimRe,"");if(!valueCache[path]){valueCache[path]=Ext.DomQuery.compile(path,"select")}var n=valueCache[path](root),v;n=n[0]?n[0]:n;v=(n&&n.firstChild?n.firstChild.nodeValue:null);return((v===null||v===undefined||v==="")?defaultValue:v)},selectNumber:function(path,root,defaultValue){var v=Ext.DomQuery.selectValue(path,root,defaultValue||0);return parseFloat(v)},is:function(el,ss){if(typeof el=="string"){el=document.getElementById(el)}var isArray=Ext.isArray(el),result=Ext.DomQuery.filter(isArray?el:[el],ss);return isArray?(result.length==el.length):(result.length>0)},filter:function(els,ss,nonMatches){ss=ss.replace(trimRe,"");if(!simpleCache[ss]){simpleCache[ss]=Ext.DomQuery.compile(ss,"simple")}var result=simpleCache[ss](els);return nonMatches?quickDiff(result,els):result},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,m=nthRe.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"||!nthRe2.test(a)&&"n+"+a||a),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,empty=true;while(cn=cns[j]){++j;if(cn.nodeType==1||cn.nodeType==3){empty=false;break}}if(empty){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)},any:function(c,selectors){var ss=selectors.split("|"),r=[],ri=-1,s;for(var i=0,ci;ci=c[i];i++){for(var j=0;s=ss[j];j++){if(Ext.DomQuery.is(ci,s)){r[++ri]=ci;break}}}return r},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,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,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,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.EventManager=function(){var t,m,j=false,l=Ext.lib.Event,n=Ext.lib.Dom,b=document,u=window,g="ie-deferred-loader",o="DOMContentLoaded",e={},h=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/;function k(A,w,z,y,x){var C=Ext.id(A),B=e[C]=e[C]||{};(B[w]=B[w]||[]).push([z,y,x]);l.on(A,w,y);if(w=="mousewheel"&&A.addEventListener){var v=["DOMMouseScroll",y,false];A.addEventListener.apply(A,v);l.on(window,"unload",function(){A.removeEventListener.apply(A,v)})}if(w=="mousedown"&&A==document){Ext.EventManager.stoppedMouseDownEvent.addListener(y)}}function c(){if(!j){Ext.isReady=j=true;if(m){clearInterval(m)}if(Ext.isGecko||Ext.isOpera){b.removeEventListener(o,c,false)}if(Ext.isIE){var v=b.getElementById(g);if(v){v.onreadystatechange=null;v.parentNode.removeChild(v)}}if(t){t.fire();t.clearListeners()}}}function a(){var v="complete";t=new Ext.util.Event();if(Ext.isGecko||Ext.isOpera){b.addEventListener(o,c,false)}else{if(Ext.isIE){b.write("<script id="+g+' defer="defer" src="//:"><\/script>');b.getElementById(g).onreadystatechange=function(){if(this.readyState==v){c()}}}else{if(Ext.isWebKit){m=setInterval(function(){if(b.readyState==v){c()}},10)}}}l.on(u,"load",c)}function r(v,w){return function(){var x=Ext.toArray(arguments);if(w.target==Ext.EventObject.setEvent(x[0]).target){v.apply(this,x)}}}function s(w,x){var v=new Ext.util.DelayedTask(w);return function(y){v.delay(x.buffer,w,null,[new Ext.EventObjectImpl(y)])}}function p(z,y,v,x,w){return function(A){Ext.EventManager.removeListener(y,v,x,w);z(A)}}function d(v,w){return function(x){x=new Ext.EventObjectImpl(x);setTimeout(function(){v(x)},w.delay||10)}}function i(x,w,v,B,A){var C=!Ext.isObject(v)?{}:v,z=Ext.getDom(x);B=B||C.fn;A=A||C.scope;if(!z){throw'Error listening for "'+w+'". Element "'+x+"\" doesn't exist."}function y(E){if(!Ext){return}E=Ext.EventObject.setEvent(E);var D;if(C.delegate){if(!(D=E.getTarget(C.delegate,z))){return}}else{D=E.target}if(C.stopEvent){E.stopEvent()}if(C.preventDefault){E.preventDefault()}if(C.stopPropagation){E.stopPropagation()}if(C.normalized){E=E.browserEvent}B.call(A||z,E,D,C)}if(C.target){y=r(y,C)}if(C.delay){y=d(y,C)}if(C.single){y=p(y,z,w,B,A)}if(C.buffer){y=s(y,C)}k(z,w,B,y,A);return y}var q={addListener:function(x,v,z,y,w){if(Ext.isObject(v)){var C=v,A,B;for(A in C){B=C[A];if(!h.test(A)){if(Ext.isFunction(B)){i(x,A,C,B,C.scope)}else{i(x,A,B)}}}}else{i(x,v,w,z,y)}},removeListener:function(w,v,A,z){var y=Ext.getDom(w),B=Ext.id(y),x;Ext.each((e[B]||{})[v],function(D,E,C){if(Ext.isArray(D)&&D[0]==A&&(!z||D[2]==z)){l.un(y,v,x=D[1]);C.splice(E,1);return false}});if(v=="mousewheel"&&y.addEventListener&&x){y.removeEventListener("DOMMouseScroll",x,false)}if(v=="mousedown"&&y==b&&x){Ext.EventManager.stoppedMouseDownEvent.removeListener(x)}},removeAll:function(w){var y=Ext.id(w=Ext.getDom(w)),x=e[y],v;for(v in x){if(x.hasOwnProperty(v)){Ext.each(x[v],function(z){l.un(w,v,z.wrap)})}}e[y]=null},onDocumentReady:function(x,w,v){if(j){t.addListener(x,w,v);t.fire();t.clearListeners()}else{if(!t){a()}v=v||{};v.delay=v.delay||1;t.addListener(x,w,v)}},elHash:e};q.on=q.addListener;q.un=q.removeListener;q.stoppedMouseDownEvent=new Ext.util.Event();return q}();Ext.onReady=Ext.EventManager.onDocumentReady;(function(){var a=function(){var c=document.body||document.getElementsByTagName("body")[0];if(!c){return false}var b=[" ",Ext.isIE?"ext-ie "+(Ext.isIE6?"ext-ie6":(Ext.isIE7?"ext-ie7":"ext-ie8")):Ext.isGecko?"ext-gecko "+(Ext.isGecko2?"ext-gecko2":"ext-gecko3"):Ext.isOpera?"ext-opera":Ext.isWebKit?"ext-webkit":Ext.isSafari?"ext-safari":Ext.isChrome?"ext-chrome":""];if(Ext.isMac){b.push("ext-mac")}if(Ext.isLinux){b.push("ext-linux")}if(Ext.isBorderBox){b.push("ext-border-box")}if(Ext.isStrict){var d=c.parentNode;if(d){d.className+=" ext-strict"}}c.className+=b.join(" ");return true};if(!a()){Ext.onReady(a)}})();Ext.EventObject=function(){var b=Ext.lib.Event,a={3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35},c=Ext.isIE?{1:0,4:1,2:2}:(Ext.isWebKit?{1:0,2:1,3:2}:{0:0,1:1,2:2});Ext.EventObjectImpl=function(d){if(d){this.setEvent(d.browserEvent||d)}};Ext.EventObjectImpl.prototype={setEvent:function(g){var d=this;if(g==d||(g&&g.browserEvent)){return g}d.browserEvent=g;if(g){d.button=g.button?c[g.button]:(g.which?g.which-1:-1);if(g.type=="click"&&d.button==-1){d.button=0}d.type=g.type;d.shiftKey=g.shiftKey;d.ctrlKey=g.ctrlKey||g.metaKey;d.altKey=g.altKey;d.keyCode=g.keyCode;d.charCode=g.charCode;d.target=b.getTarget(g);d.xy=b.getXY(g)}else{d.button=-1;d.shiftKey=false;d.ctrlKey=false;d.altKey=false;d.keyCode=0;d.charCode=0;d.target=null;d.xy=[0,0]}return d},stopEvent:function(){var d=this;if(d.browserEvent){if(d.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(d)}b.stopEvent(d.browserEvent)}},preventDefault:function(){if(this.browserEvent){b.preventDefault(this.browserEvent)}},stopPropagation:function(){var d=this;if(d.browserEvent){if(d.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(d)}b.stopPropagation(d.browserEvent)}},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.normalizeKey(this.keyCode||this.charCode)},normalizeKey:function(d){return Ext.isSafari?(a[d]||d):d},getPageX:function(){return this.xy[0]},getPageY:function(){return this.xy[1]},getXY:function(){return this.xy},getTarget:function(e,g,d){return e?Ext.fly(this.target).findParent(e,g,d):(d?Ext.get(this.target):this.target)},getRelatedTarget:function(){return this.browserEvent?b.getRelatedTarget(this.browserEvent):null},getWheelDelta:function(){var d=this.browserEvent;var g=0;if(d.wheelDelta){g=d.wheelDelta/120}else{if(d.detail){g=-d.detail/3}}return g},within:function(g,h,d){var e=this[h?"getRelatedTarget":"getTarget"]();return e&&((d?(e==Ext.getDom(g)):false)||Ext.fly(g).contains(e))}};return new Ext.EventObjectImpl()}();(function(){var i=document;Ext.Element=function(n,o){var p=typeof n=="string"?i.getElementById(n):n,q;if(!p){return null}q=p.id;if(!o&&q&&Ext.Element.cache[q]){return Ext.Element.cache[q]}this.dom=p;this.id=q||Ext.id(p)};var a=Ext.lib.Dom,e=Ext.DomHelper,l=Ext.lib.Event,d=Ext.lib.Anim,g=Ext.Element;g.prototype={set:function(s,p){var q=this.dom,n,r;for(n in s){r=s[n];if(n!="style"&&!Ext.isFunction(r)){if(n=="cls"){q.className=r}else{if(s.hasOwnProperty(n)){if(p||!!q.setAttribute){q.setAttribute(n,r)}else{q[n]=r}}}}}if(s.style){Ext.DomHelper.applyStyles(q,s.style)}return this},defaultUnit:"px",is:function(n){return Ext.DomQuery.is(this.dom,n)},focus:function(p){var n=this;try{if(!isNaN(p)){n.focus.defer(p,n)}else{n.dom.focus()}}catch(o){}return n},blur:function(){try{this.dom.blur()}catch(n){}return this},getValue:function(n){var o=this.dom.value;return n?parseInt(o,10):o},addListener:function(n,q,p,o){Ext.EventManager.on(this.dom,n,q,p||this,o);return this},removeListener:function(n,p,o){Ext.EventManager.removeListener(this.dom,n,p,o||this);return this},removeAllListeners:function(){Ext.EventManager.removeAll(this.dom);return this},addUnits:function(n){if(n===""||n=="auto"||n===undefined){n=n||""}else{if(!isNaN(n)||!j.test(n)){n=n+(this.defaultUnit||"px")}}return n},load:function(o,p,n){Ext.Ajax.request(Ext.apply({params:p,url:o.url||o,callback:n,el:this,indicatorText:o.indicatorText||""},Ext.isObject(o)?o:{}));return this},isBorderBox:function(){return h[(this.dom.tagName||"").toLowerCase()]||Ext.isBorderBox},remove:function(){Ext.removeNode(this.dom);delete g.cache[this.dom.id]},hover:function(o,n,q,p){var r=this;r.on("mouseenter",o,q||r.dom,p);r.on("mouseleave",n,q||r.dom,p);return r},contains:function(n){return !n?false:Ext.lib.Dom.isAncestor(this.dom,n.dom?n.dom:n)},getAttributeNS:Ext.isIE?function(p,n){var q=this.dom,o=typeof q[p+":"+n];if(!Ext.isEmpty(o)&&o!="unknown"){return q[p+":"+n]}return q[n]}:function(o,n){var p=this.dom;return p.getAttributeNS(o,n)||p.getAttribute(o+":"+n)||p.getAttribute(n)||p[n]},update:function(n){this.dom.innerHTML=n}};var m=g.prototype;g.addMethods=function(n){Ext.apply(m,n)};m.on=m.addListener;m.un=m.removeListener;m.autoBoxAdjust=true;var j=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,c;g.cache={};g.get=function(o){var n,r,q;if(!o){return null}if(typeof o=="string"){if(!(r=i.getElementById(o))){return null}if(n=g.cache[o]){n.dom=r}else{n=g.cache[o]=new g(r)}return n}else{if(o.tagName){if(!(q=o.id)){q=Ext.id(o)}if(n=g.cache[q]){n.dom=o}else{n=g.cache[q]=new g(o)}return n}else{if(o instanceof g){if(o!=c){o.dom=i.getElementById(o.id)||o.dom;g.cache[o.id]=o}return o}else{if(o.isComposite){return o}else{if(Ext.isArray(o)){return g.select(o)}else{if(o==i){if(!c){var p=function(){};p.prototype=g.prototype;c=new p();c.dom=i}return c}}}}}}return null};function k(){if(!Ext.enableGarbageCollector){clearInterval(g.collectorThread)}else{var n,o,p;for(n in g.cache){o=g.cache[n];p=o.dom;if(!p||!p.parentNode||(!p.offsetParent&&!i.getElementById(n))){delete g.cache[n];if(p&&Ext.enableListenerCollection){Ext.EventManager.removeAll(p)}}}}}g.collectorThreadId=setInterval(k,30000);var b=function(){};b.prototype=g.prototype;g.Flyweight=function(n){this.dom=n};g.Flyweight.prototype=new b();g.Flyweight.prototype.isFlyweight=true;g._flyweights={};g.fly=function(p,n){var o=null;n=n||"_global";if(p=Ext.getDom(p)){(g._flyweights[n]=g._flyweights[n]||new g.Flyweight()).dom=p;o=g._flyweights[n]}return o};Ext.get=g.get;Ext.fly=g.fly;var h=Ext.isStrict?{select:1}:{input:1,select:1,textarea:1};if(Ext.isIE||Ext.isGecko){h.button=1}Ext.EventManager.on(window,"unload",function(){delete g.cache;delete g._flyweights})})();Ext.Element.addMethods(function(){var d="parentNode",b="nextSibling",c="previousSibling",e=Ext.DomQuery,a=Ext.get;return{findParent:function(m,l,h){var j=this.dom,g=document.body,k=0,i;l=l||50;if(isNaN(l)){i=Ext.getDom(l);l=10}while(j&&j.nodeType==1&&k<l&&j!=g&&j!=i){if(e.is(j,m)){return h?a(j):j}k++;j=j.parentNode}return null},findParentNode:function(j,i,g){var h=Ext.fly(this.dom.parentNode,"_internal");return h?h.findParent(j,i,g):null},up:function(h,g){return this.findParentNode(h,g,true)},select:function(g,h){return Ext.Element.select(g,h,this.dom)},query:function(g,h){return e.select(g,this.dom)},child:function(g,h){var i=e.selectNode(g,this.dom);return h?i:a(i)},down:function(g,h){var i=e.selectNode(" > "+g,this.dom);return h?i:a(i)},parent:function(g,h){return this.matchNode(d,d,g,h)},next:function(g,h){return this.matchNode(b,b,g,h)},prev:function(g,h){return this.matchNode(c,c,g,h)},first:function(g,h){return this.matchNode(b,"firstChild",g,h)},last:function(g,h){return this.matchNode(c,"lastChild",g,h)},matchNode:function(h,k,g,i){var j=this.dom[k];while(j){if(j.nodeType==1&&(!g||e.is(j,g))){return !i?a(j):j}j=j[h]}return null}}}());Ext.Element.addMethods(function(){var c=Ext.getDom,a=Ext.get,b=Ext.DomHelper;return{appendChild:function(d){return a(d).appendTo(this)},appendTo:function(d){c(d).appendChild(this.dom);return this},insertBefore:function(d){(d=c(d)).parentNode.insertBefore(this.dom,d);return this},insertAfter:function(d){c(d).parentNode.insertBefore(this.dom,d.nextSibling);return this},insertFirst:function(e,d){e=e||{};if(e.nodeType||e.dom){e=c(e);this.dom.insertBefore(e,this.dom.firstChild);return !d?a(e):e}else{return this.createChild(e,this.dom.firstChild,d)}},replace:function(d){d=a(d);this.insertBefore(d);d.remove();return this},replaceWith:function(e){var g=this,d=Ext.Element;if(e.nodeType||e.dom){e=c(e);g.dom.parentNode.insertBefore(e,g.dom)}else{e=b.insertBefore(g.dom,e)}delete d.cache[g.id];Ext.removeNode(g.dom);g.id=Ext.id(g.dom=e);return d.cache[g.id]=g},createChild:function(e,d,g){e=e||{tag:"div"};return d?b.insertBefore(d,e,g!==true):b[!this.dom.firstChild?"overwrite":"append"](this.dom,e,g!==true)},wrap:function(d,e){var g=b.insertBefore(this.dom,d||{tag:"div"},!e);g.dom?g.dom.appendChild(this.dom):g.appendChild(this.dom);return g},insertHtml:function(e,g,d){var h=b.insertHtml(e,this.dom,g);return d?Ext.get(h):h}}}());Ext.Element.addMethods(function(){var e={},r=/(-[a-z])/gi,b={},n=document.defaultView,t=Ext.Element,d="padding",c="margin",s="border",o="-left",l="-right",q="-top",j="-bottom",h="-width",i={l:s+o+h,r:s+l+h,t:s+q+h,b:s+j+h},g={l:d+o,r:d+l,t:d+q,b:d+j},a={l:c+o,r:c+l,t:c+q,b:c+j};function m(u,v){return v.charAt(1).toUpperCase()}function k(v,u){var w=0;Ext.each(v.match(/\w/g),function(x){if(x=parseInt(this.getStyle(u[x]),10)){w+=Math.abs(x)}},this);return w}function p(u){return e[u]||(e[u]=u.replace(r,m))}return{adjustWidth:function(u){var v=this;if(typeof u=="number"&&v.autoBoxAdjust&&!v.isBorderBox()){u-=(v.getBorderWidth("lr")+v.getPadding("lr"));u=u<0?0:u}return u},adjustHeight:function(u){var v=this;if(typeof u=="number"&&v.autoBoxAdjust&&!v.isBorderBox()){u-=(v.getBorderWidth("tb")+v.getPadding("tb"));u=u<0?0:u}return u},addClass:function(u){var v=this;Ext.each(u,function(w){v.dom.className+=(!v.hasClass(w)&&w?" "+w:"")});return v},radioClass:function(u){Ext.each(this.dom.parentNode.childNodes,function(w){if(w.nodeType==1){Ext.get(w).removeClass(u)}});return this.addClass(u)},removeClass:function(u){var v=this;if(v.dom.className){Ext.each(u,function(w){v.dom.className=v.dom.className.replace(b[w]=b[w]||new RegExp("(?:^|\\s+)"+w+"(?:\\s+|$)","g")," ")})}return v},toggleClass:function(u){return this.hasClass(u)?this.removeClass(u):this.addClass(u)},hasClass:function(u){return u&&(" "+this.dom.className+" ").indexOf(" "+u+" ")!=-1},replaceClass:function(v,u){return this.removeClass(v).addClass(u)},isStyle:function(u,v){return this.getStyle(u)==v},getStyle:function(){return n&&n.getComputedStyle?function(y){var x=this.dom,u,w;if(x==document){return null}y=y=="float"?"cssFloat":y;return(u=x.style[y])?u:(w=n.getComputedStyle(x,""))?w[p(y)]:null}:function(y){var w=this.dom,u,v;if(w==document){return null}if(y=="opacity"){if(w.style.filter.match){if(u=w.style.filter.match(/alpha\(opacity=(.*)\)/i)){var x=parseFloat(u[1]);if(!isNaN(x)){return x?x/100:0}}}return 1}y=y=="float"?"styleFloat":y;return w.style[y]||((v=w.currentStyle)?v[p(y)]:null)}}(),getColor:function(u,w,A){var z,y=this.getStyle(u),x=A||"#";if(!y||y=="transparent"||y=="inherit"){return w}if(/^r/.test(y)){Ext.each(y.slice(4,y.length-1).split(","),function(v){z=(v*1).toString(16);x+=z<16?"0"+z:z})}else{x+=y.replace("#","").replace(/^(\w)(\w)(\w)$/,"$1$1$2$2$3$3")}return x.length>5?x.toLowerCase():w},setStyle:function(y,x){var v,w,u;if(!Ext.isObject(y)){v={};v[y]=x;y=v}for(w in y){x=y[w];u=p(w);u=="opacity"?this.setOpacity(x):this.dom.style[u]=x}return this},setOpacity:function(v,u){var x=this,w=x.dom.style;if(!u||!x.anim){if(Ext.isIE){w.zoom=1;w.filter=(w.filter||"").replace(/alpha\([^\)]*\)/gi,"")+(v==1?"":" alpha(opacity="+v*100+")")}else{w.opacity=v}}else{x.anim({opacity:{to:v}},x.preanim(arguments,1),null,0.35,"easeIn")}return x},clearOpacity:function(){var u=this.dom.style;if(window.ActiveXObject){if(typeof u.filter=="string"&&(/alpha/i).test(u.filter)){u.filter=""}}else{u.opacity="";u["-moz-opacity"]="";u["-khtml-opacity"]=""}return this},getHeight:function(v){var u=this.dom.offsetHeight||0;u=!v?u:u-this.getBorderWidth("tb")-this.getPadding("tb");return u<0?0:u},getWidth:function(v){var u=this.dom.offsetWidth||0;u=!v?u:u-this.getBorderWidth("lr")-this.getPadding("lr");return u<0?0:u},setWidth:function(v,u){var w=this;v=w.adjustWidth(v);!u||!w.anim?w.dom.style.width=w.addUnits(v):w.anim({width:{to:v}},w.preanim(arguments,1));return w},setHeight:function(u,v){var w=this;u=w.adjustHeight(u);!v||!w.anim?w.dom.style.height=w.addUnits(u):w.anim({height:{to:u}},w.preanim(arguments,1));return w},getBorderWidth:function(u){return k.call(this,u,i)},getPadding:function(u){return k.call(this,u,g)},clip:function(){var u=this;if(!u.isClipped){u.isClipped=true;u.originalClip={o:u.getStyle("overflow"),x:u.getStyle("overflow-x"),y:u.getStyle("overflow-y")};u.setStyle("overflow","hidden");u.setStyle("overflow-x","hidden");u.setStyle("overflow-y","hidden")}return u},unclip:function(){var u=this;if(u.isClipped){u.isClipped=false;var v=u.originalClip;if(v.o){u.setStyle("overflow",v.o)}if(v.x){u.setStyle("overflow-x",v.x)}if(v.y){u.setStyle("overflow-y",v.y)}}return u},addStyles:k,margins:a}}());(function(){var b=Ext.lib.Dom;function a(d,c,e){return this.preanim&&!!c?this.preanim(d,e):false}Ext.Element.addMethods({getX:function(){return b.getX(this.dom)},getY:function(){return b.getY(this.dom)},getXY:function(){return b.getXY(this.dom)},getOffsetsTo:function(c){var g=this.getXY(),d=Ext.fly(c,"_internal").getXY();return[g[0]-d[0],g[1]-d[1]]},setX:function(c,d){return this.setXY([c,this.getY()],a.call(this,arguments,d,1))},setY:function(d,c){return this.setXY([this.getX(),d],a.call(this,arguments,c,1))},setLeft:function(c){this.setStyle("left",this.addUnits(c));return this},setTop:function(c){this.setStyle("top",this.addUnits(c));return this},setRight:function(c){this.setStyle("right",this.addUnits(c));return this},setBottom:function(c){this.setStyle("bottom",this.addUnits(c));return this},setXY:function(e,c){var d=this;if(!c||!d.anim){b.setXY(d.dom,e)}else{d.anim({points:{to:e}},d.preanim(arguments,1),"motion")}return d},setLocation:function(c,e,d){return this.setXY([c,e],a.call(this,arguments,d,2))},moveTo:function(c,e,d){return this.setXY([c,e],a.call(this,arguments,d,2))},getLeft:function(c){return !c?this.getX():parseInt(this.getStyle("left"),10)||0},getRight:function(c){var d=this;return !c?d.getX()+d.getWidth():(d.getLeft(true)+d.getWidth())||0},getTop:function(c){return !c?this.getY():parseInt(this.getStyle("top"),10)||0},getBottom:function(c){var d=this;return !c?d.getY()+d.getHeight():(d.getTop(true)+d.getHeight())||0},position:function(h,g,c,e){var d=this;if(!h&&d.isStyle("position","static")){d.setStyle("position","relative")}else{if(h){d.setStyle("position",h)}}if(g){d.setStyle("z-index",g)}if(c||e){d.setXY([c||false,e||false])}},clearPositioning:function(c){c=c||"";this.setStyle({left:c,right:c,top:c,bottom:c,"z-index":"",position:"static"});return this},getPositioning:function(){var g=this;function d(h){return g.getStyle(h)}var c=d("left"),e=d("top");return{position:d("position"),left:c,right:c?"":d("right"),top:e,bottom:e?"":d("bottom"),"z-index":d("z-index")}},setPositioning:function(c){var e=this,d=e.dom.style;e.setStyle(c);if(c.right=="auto"){d.right=""}if(c.bottom=="auto"){d.bottom=""}return e},translatePoints:function(c,j){j=isNaN(c[1])?j:c[1];c=isNaN(c[0])?c:c[0];var g=this,h=g.isStyle("position","relative"),i=g.getXY(),d=parseInt(g.getStyle("left"),10),e=parseInt(g.getStyle("top"),10);d=!isNaN(d)?d:(h?0:g.dom.offsetLeft);e=!isNaN(e)?e:(h?0:g.dom.offsetTop);return{left:(c-i[0]+d),top:(j-i[1]+e)}},animTest:a})})();Ext.Element.addMethods({isScrollable:function(){var a=this.dom;return a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth},scrollTo:function(a,b){this.dom["scroll"+(/top/i.test(a)?"Top":"Left")]=b;return this},getScroll:function(){var i=this.dom,h=document,a=h.body,c=h.documentElement,b,g,e;if(i==h||i==a){if(Ext.isIE&&Ext.isStrict){b=c.scrollLeft;g=c.scrollTop}else{b=window.pageXOffset;g=window.pageYOffset}e={left:b||(a?a.scrollLeft:0),top:g||(a?a.scrollTop:0)}}else{e={left:i.scrollLeft,top:i.scrollTop}}return e}});Ext.Element.VISIBILITY=1;Ext.Element.DISPLAY=2;Ext.Element.addMethods(function(){var d="visibility",c="display",a="hidden",e="none",b=Ext.Element.DISPLAY;return{originalDisplay:"",visibilityMode:1,setVisibilityMode:function(g){this.visibilityMode=g;return this},animate:function(h,j,i,k,g){this.anim(h,{duration:j,callback:i,easing:k},g);return this},anim:function(j,k,h,m,i,g){h=h||"run";k=k||{};var l=this,n=Ext.lib.Anim[h](l.dom,j,(k.duration||m)||0.35,(k.easing||i)||"easeOut",function(){if(g){g.call(l)}if(k.callback){k.callback.call(k.scope||l,l,k)}},l);k.anim=n;return n},preanim:function(g,h){return !g[h]?false:(Ext.isObject(g[h])?g[h]:{duration:g[h+1],callback:g[h+2],easing:g[h+3]})},isVisible:function(){return !this.isStyle(d,a)&&!this.isStyle(c,e)},setVisible:function(j,g){var i=this,h=i.visibilityMode;if(!g||!i.anim){if(i.visibilityMode==b){i.setDisplayed(j)}else{i.fixDisplay();i.dom.style.visibility=j?"visible":a}}else{if(j){i.setOpacity(0.01);i.setVisible(true)}i.anim({opacity:{to:(j?1:0)}},i.preanim(arguments,1),null,0.35,"easeIn",function(){if(!j){i.dom.style.display=(h==b)?e:a;Ext.get(i.dom).setOpacity(1)}})}return i},toggle:function(g){var h=this;h.setVisible(!h.isVisible(),h.preanim(arguments,0));return h},setDisplayed:function(g){if(typeof g=="boolean"){g=g?this.originalDisplay:e}this.setStyle(c,g);return this},fixDisplay:function(){var g=this;if(g.isStyle(c,e)){g.setStyle(d,a);g.setStyle(c,g.originalDisplay);if(g.isStyle(c,e)){g.setStyle(c,"block")}}},hide:function(g){this.setVisible(false,this.preanim(arguments,0));return this},show:function(g){this.setVisible(true,this.preanim(arguments,0));return this}}}());(function(){var s=null,u=undefined,h=true,p=false,g="setX",d="setY",a="setXY",k="left",i="bottom",o="top",j="right",m="height",c="width",e="points",r="hidden",t="absolute",q="visible",b="motion",l="position",n="easeOut";Ext.enableFx=h;Ext.Fx={switchStatements:function(w,x,v){return x.apply(this,v[w])},slideIn:function(C,y){var E=this,z=E.getFxEl(),v,G,x,w,H,D,J,F,B,I=E.getXY(),A=E.dom;y=y||{};C=C||"t";z.queueFx(y,function(){H=E.dom.style;E.fixDisplay();v=E.getFxRestore();G={x:I[0],y:I[1],0:I[0],1:I[1],width:A.offsetWidth,height:A.offsetHeight};G.right=G.x+G.width;G.bottom=G.y+G.height;E.setWidth(G.width).setHeight(G.height);x=E.fxWrap(v.pos,y,r);H.visibility=q;H.position=t;function K(){z.fxUnwrap(x,v.pos,y);H.width=v.width;H.height=v.height;z.afterFx(y)}J={to:[G.x,G.y]};F={to:G.width};B={to:G.height};function L(P,M,Q,N,S,U,X,W,V,R,O){var T={};P.setWidth(Q).setHeight(N);if(P[S]){P[S](U)}M[X]=M[W]="0";if(V){T.width=V}if(R){T.height=R}if(O){T.points=O}return T}D=E.switchStatements(C.toLowerCase(),L,{t:[x,H,G.width,0,s,s,k,i,s,B,s],l:[x,H,0,G.height,s,s,j,o,F,s,s],r:[x,H,0,G.height,g,G.right,k,o,F,s,J],b:[x,H,G.width,0,d,G.bottom,k,o,s,B,J],tl:[x,H,0,0,s,s,j,i,F,s,J],bl:[x,H,0,0,d,G.y+G.height,j,o,F,B,J],br:[x,H,0,0,a,[G.right,G.bottom],k,o,F,B,J],tr:[0,0,g,G.x+G.width,k,i,F,B,J]});H.visibility=q;x.show();arguments.callee.anim=x.fxanim(D,y,b,0.5,n,K)});return E},slideOut:function(A,x){var C=this,y=C.getFxEl(),G=C.getXY(),z=C.dom,w,F,v,D,E,B={to:0};x=x||{};A=A||"t";y.queueFx(x,function(){v=C.getFxRestore();D={x:G[0],y:G[1],0:G[0],1:G[1],width:z.offsetWidth,height:z.offsetHeight};D.right=D.x+D.width;D.bottom=D.y+D.height;C.setWidth(D.width).setHeight(D.height);w=C.fxWrap(v.pos,x,q);F=C.dom.style;F.visibility=q;F.position=t;w.setWidth(D.width).setHeight(D.height);function H(){x.useDisplay?y.setDisplayed(p):y.hide();y.fxUnwrap(w,v.pos,x);F.width=v.width;F.height=v.height;y.afterFx(x)}function I(J,R,P,S,N,Q,M,O,L){var K={};J[R]=J[P]="0";K[S]=N;if(Q){K[Q]=M}if(O){K[O]=L}return K}E=C.switchStatements(A.toLowerCase(),I,{t:[F,k,i,m,B],l:[F,j,o,c,B],r:[F,k,o,c,B,e,{to:[D.right,D.y]}],b:[F,k,o,m,B,e,{to:[D.x,D.bottom]}],tl:[F,j,i,c,B,m,B],bl:[F,j,o,c,B,m,B,e,{to:[D.X,D.bottom]}],br:[F,k,o,c,B,m,B,e,{to:[D.x+D.width,D.bottom]}],tr:[F,k,i,c,B,m,B,e,{to:[D.right,D.y]}]});arguments.callee.anim=w.fxanim(E,x,b,0.5,n,H)});return C},puff:function(B){B=B||{};var A=this,y=A.getFxEl(),z,w=A.dom.style,x=A.getWidth(),v=A.getHeight();y.queueFx(B,function(){A.clearOpacity();A.show();z=A.getFxRestore();function C(){B.useDisplay?y.setDisplayed(p):y.hide();y.clearOpacity();y.setPositioning(z.pos);w.width=z.width;w.height=z.height;w.fontSize="";y.afterFx(B)}arguments.callee.anim=A.fxanim({width:{to:A.adjustWidth(x*2)},height:{to:A.adjustHeight(v*2)},points:{by:[-x*0.5,-v*0.5]},opacity:{to:0},fontSize:{to:200,unit:"%"}},B,b,0.5,n,C)});return A},switchOff:function(x){x=x||{};var w=this,v=w.getFxEl();v.queueFx(x,function(){w.clearOpacity();w.clip();var z=w.getFxRestore(),y=w.dom.style,A=function(){x.useDisplay?v.setDisplayed(p):v.hide();v.clearOpacity();v.setPositioning(z.pos);y.width=z.width;y.height=z.height;v.afterFx(x)};w.fxanim({opacity:{to:0.3}},s,s,0.1,s,function(){w.clearOpacity();(function(){w.fxanim({height:{to:1},points:{by:[0,w.getHeight()*0.5]}},x,b,0.3,"easeIn",A)}).defer(100)})});return w},highlight:function(x,A){A=A||{};var z=this,y=z.getFxEl(),v=A.attr||"backgroundColor",w={};y.queueFx(A,function(){z.clearOpacity();z.show();function B(){y.dom.style[v]=z.dom.style[v];y.afterFx(A)}w[v]={from:x||"ffff9c",to:A.endColor||z.getColor(v)||"ffffff"};arguments.callee.anim=z.fxanim(w,A,"color",1,"easeIn",B)});return z},frame:function(v,y,z){var x=this,w=x.getFxEl();z=z||{};w.queueFx(z,function(){v=v||"#C3DAF9";if(v.length==6){v="#"+v}y=y||1;x.show();var C=x.getXY(),D=x.dom,A={x:C[0],y:C[1],0:C[0],1:C[1],width:D.offsetWidth,height:D.offsetHeight};function B(){var E=Ext.get(document.body||document.documentElement).createChild({style:{visbility:r,position:t,"z-index":35000,border:"0px solid "+v}}),F=Ext.isBorderBox?2:1;E.animate({top:{from:A.y,to:A.y-20},left:{from:A.x,to:A.x-20},borderWidth:{from:0,to:10},opacity:{from:1,to:0},height:{from:A.height,to:A.height+20*F},width:{from:A.width,to:A.width+20*F}},z.duration||1,function(){E.remove();--y>0?B():w.afterFx(z)})}B.call(x)});return x},pause:function(w){var v=this.getFxEl();v.queueFx({},function(){setTimeout(function(){v.afterFx({})},w*1000)});return this},fadeIn:function(x){var w=this,v=w.getFxEl();x=x||{};v.queueFx(x,function(){w.setOpacity(0);w.fixDisplay();w.dom.style.visibility=q;var y=x.endOpacity||1;arguments.callee.anim=w.fxanim({opacity:{to:y}},x,s,0.5,n,function(){if(y==1){this.clearOpacity()}v.afterFx(x)})});return w},fadeOut:function(y){y=y||{};var x=this,w=x.dom.style,v=x.getFxEl(),z=y.endOpacity||0;v.queueFx(y,function(){arguments.callee.anim=x.fxanim({opacity:{to:z}},y,s,0.5,n,function(){if(z==0){x.visibilityMode==Ext.Element.DISPLAY||y.useDisplay?w.display="none":w.visibility=r;x.clearOpacity()}v.afterFx(y)})});return x},scale:function(v,x,z){var y=this;y.shift(Ext.apply({},z,{width:v,height:x}));return y},shift:function(x){var w=this;x=x||{};var v=w.getFxEl();v.queueFx(x,function(){var y={};for(var z in x){if(x[z]!=u){y[z]={to:x[z]}}}y.width?y.width.to=w.adjustWidth(x.width):y;y.height?y.height.to=w.adjustWidth(x.height):y;if(y.x||y.y||y.xy){y.points=y.xy||{to:[y.x?y.x.to:w.getX(),y.y?y.y.to:w.getY()]}}arguments.callee.anim=w.fxanim(y,x,b,0.35,n,function(){v.afterFx(x)})});return w},ghost:function(v,y){var x=this,w=x.getFxEl();y=y||{};v=v||"b";w.queueFx(y,function(){var D=x.getFxRestore(),A=x.getWidth(),C=x.getHeight(),B=x.dom.style,F=function(){if(y.useDisplay){w.setDisplayed(p)}else{w.hide()}w.clearOpacity();w.setPositioning(D.pos);B.width=D.width;B.width=D.width;w.afterFx(y)},z={opacity:{to:0},points:{}},E=z.points;E.by=x.switchStatements(v.toLowerCase(),function(H,G){return[H,G]},{t:[0,-C],l:[-A,0],r:[A,0],b:[0,C],tl:[-A,-C],bl:[-A,C],br:[A,C],tr:[A,-C]});arguments.callee.anim=x.fxanim(z,y,b,0.5,n,F)});return x},syncFx:function(){var v=this;v.fxDefaults=Ext.apply(v.fxDefaults||{},{block:p,concurrent:h,stopFx:p});return v},sequenceFx:function(){var v=this;v.fxDefaults=Ext.apply(v.fxDefaults||{},{block:p,concurrent:p,stopFx:p});return v},nextFx:function(){var v=this.fxQueue[0];if(v){v.call(this)}},hasActiveFx:function(){return this.fxQueue&&this.fxQueue[0]},stopFx:function(v){var w=this;if(w.hasActiveFx()){var x=w.fxQueue[0];if(x&&x.anim&&x.anim.isAnimated){w.fxQueue=[x];x.anim.stop(v!==undefined?v:true)}}return w},beforeFx:function(v){if(this.hasActiveFx()&&!v.concurrent){if(v.stopFx){this.stopFx();return h}return p}return h},hasFxBlock:function(){var v=this.fxQueue;return v&&v[0]&&v[0].block},queueFx:function(y,v){var w=this;if(!w.fxQueue){w.fxQueue=[]}if(!w.hasFxBlock()){Ext.applyIf(y,w.fxDefaults);if(!y.concurrent){var x=w.beforeFx(y);v.block=y.block;w.fxQueue.push(v);if(x){w.nextFx()}}else{v.call(w)}}return w},fxWrap:function(B,z,y){var x=this,w,v;if(!z.wrap||!(w=Ext.get(z.wrap))){if(z.fixPosition){v=x.getXY()}var A=document.createElement("div");A.style.visibility=y;w=Ext.get(x.dom.parentNode.insertBefore(A,x.dom));w.setPositioning(B);if(w.isStyle(l,"static")){w.position("relative")}x.clearPositioning("auto");w.clip();w.dom.appendChild(x.dom);if(v){w.setXY(v)}}return w},fxUnwrap:function(v,y,x){var w=this;w.clearPositioning();w.setPositioning(y);if(!x.wrap){v.dom.parentNode.insertBefore(w.dom,v.dom);v.remove()}},getFxRestore:function(){var v=this.dom.style;return{pos:this.getPositioning(),width:v.width,height:v.height}},afterFx:function(w){var v=this;if(w.afterStyle){v.setStyle(w.afterStyle)}if(w.afterCls){v.addClass(w.afterCls)}if(w.remove==h){v.remove()}if(w.callback){w.callback.call(w.scope,v)}if(!w.concurrent){v.fxQueue.shift();v.nextFx()}},getFxEl:function(){return Ext.get(this.dom)},fxanim:function(y,z,w,A,x,v){w=w||"run";z=z||{};var B=Ext.lib.Anim[w](this.dom,y,(z.duration||A)||0.35,(z.easing||x)||n,v,this);z.anim=B;return B}};Ext.Fx.resize=Ext.Fx.scale;Ext.Element.addMethods(Ext.Fx)})();Ext.CompositeElementLite=function(b,a){this.elements=[];this.add(b,a);this.el=new Ext.Element.Flyweight()};Ext.CompositeElementLite.prototype={isComposite:true,getCount:function(){return this.elements.length},add:function(b){if(b){if(Ext.isArray(b)){this.elements=this.elements.concat(b)}else{var a=this.elements;Ext.each(b,function(c){a.push(c)})}}return this},invoke:function(d,a){var b=this.elements,c=this.el;Ext.each(b,function(g){c.dom=g;Ext.Element.prototype[d].apply(c,a)});return this},item:function(a){var b=this;if(!b.elements[a]){return null}b.el.dom=b.elements[a];return b.el},addListener:function(a,d,c,b){Ext.each(this.elements,function(g){Ext.EventManager.on(g,a,d,c||g,b)});return this},each:function(c,b){var d=this,a=d.el;Ext.each(d.elements,function(h,g){a.dom=h;return c.call(b||a,a,d,g)});return d},indexOf:function(a){return this.elements.indexOf(Ext.getDom(a))},replaceElement:function(e,c,a){var b=!isNaN(e)?e:this.indexOf(e),g;if(b>-1){c=Ext.getDom(c);if(a){g=this.elements[b];g.parentNode.insertBefore(c,g);Ext.removeNode(g)}this.elements.splice(b,1,c)}return this},clear:function(){this.elements=[]}};Ext.CompositeElementLite.prototype.on=Ext.CompositeElementLite.prototype.addListener;(function(){var c,b=Ext.Element.prototype,a=Ext.CompositeElementLite.prototype;for(var c in b){if(Ext.isFunction(b[c])){(function(d){a[d]=a[d]||function(){return this.invoke(d,arguments)}}).call(a,c)}}})();if(Ext.DomQuery){Ext.Element.selectorFunction=Ext.DomQuery.select}Ext.Element.select=function(a,d,b){var c;if(typeof a=="string"){c=Ext.Element.selectorFunction(a,b)}else{if(a.length!==undefined){c=a}else{throw"Invalid selector"}}return new Ext.CompositeElementLite(c)};Ext.select=Ext.Element.select;(function(){var c="beforerequest",l="requestcomplete",k="requestexception",e=undefined,i="load",h="POST",j="GET",g=window;Ext.data.Connection=function(m){Ext.apply(this,m);this.addEvents(c,l,k);Ext.data.Connection.superclass.constructor.call(this)};function b(m){this.transId=false;var n=m.argument.options;m.argument=n?n.argument:null;this.fireEvent(l,this,m,n);if(n.success){n.success.call(n.scope,m,n)}if(n.callback){n.callback.call(n.scope,n,true,m)}}function d(m,o){this.transId=false;var n=m.argument.options;m.argument=n?n.argument:null;this.fireEvent(k,this,m,n,o);if(n.failure){n.failure.call(n.scope,m,n)}if(n.callback){n.callback.call(n.scope,n,false,m)}}function a(r,m,n){var p=Ext.id(),x=document,s=x.createElement("iframe"),q=Ext.getDom(r.form),w=[],v;s.id=s.name=p;s.className="x-hidden";s.src=Ext.SSL_SECURE_URL;x.body.appendChild(s);if(Ext.isIE){x.frames[p].name=p}q.target=p;q.method=h;q.enctype=q.encoding="multipart/form-data";q.action=n||"";m=Ext.urlDecode(m,false);for(var u in m){if(m.hasOwnProperty(u)){v=x.createElement("input");v.type="hidden";v.value=m[v.name=u];q.appendChild(v);w.push(v)}}function t(){var y=this,o={responseText:"",responseXML:null,argument:r.argument},B,A;try{B=s.contentWindow.document||s.contentDocument||g.frames[p].document;if(B){if(B.body){if(/textarea/i.test((A=B.body.firstChild||{}).tagName)){o.responseText=A.value}else{o.responseText=B.body.innerHTML}}else{o.responseXML=B.XMLDocument||B}}}catch(z){}Ext.EventManager.removeListener(s,i,t,y);y.fireEvent(l,y,o,r);Ext.callback(r.success,r.scope,[o,r]);Ext.callback(r.callback,r.scope,[r,true,o]);if(!y.debugUploads){setTimeout(function(){Ext.removeNode(s)},100)}}Ext.EventManager.on(s,i,t,this);q.submit();Ext.each(w,function(o){Ext.removeNode(o)})}Ext.extend(Ext.data.Connection,Ext.util.Observable,{timeout:30000,autoAbort:false,disableCaching:true,disableCachingParam:"_dc",request:function(s){var v=this;if(v.fireEvent(c,v,s)){if(s.el){if(!Ext.isEmpty(s.indicatorText)){v.indicatorText='<div class="loading-indicator">'+s.indicatorText+"</div>"}if(v.indicatorText){Ext.getDom(s.el).innerHTML=v.indicatorText}s.success=(Ext.isFunction(s.success)?s.success:function(){}).createInterceptor(function(o){Ext.getDom(s.el).innerHTML=o.responseText})}var q=s.params,n=s.url||v.url,m,t={success:b,failure:d,scope:v,argument:{options:s},timeout:s.timeout||v.timeout},r,w;if(Ext.isFunction(q)){q=q.call(s.scope||g,s)}q=Ext.urlEncode(v.extraParams,typeof q=="object"?Ext.urlEncode(q):q);if(Ext.isFunction(n)){n=n.call(s.scope||g,s)}if(r=Ext.getDom(s.form)){n=n||r.action;if(s.isUpload||/multipart\/form-data/i.test(r.getAttribute("enctype"))){return a.call(v,s,q,n)}w=Ext.lib.Ajax.serializeForm(r);q=q?(q+"&"+w):w}m=s.method||v.method||((q||s.xmlData||s.jsonData)?h:j);if(m==j&&(v.disableCaching||s.disableCaching!==false)){var u=s.disableCachingParam||v.disableCachingParam;n+=(n.indexOf("?")!=-1?"&":"?")+u+"="+(new Date().getTime())}s.headers=Ext.apply(s.headers||{},v.defaultHeaders||{});if(s.autoAbort===true||v.autoAbort){v.abort()}if((m==j||s.xmlData||s.jsonData)&&q){n+=(/\?/.test(n)?"&":"?")+q;q=""}return v.transId=Ext.lib.Ajax.request(m,n,t,q,s)}else{return s.callback?s.callback.apply(s.scope,[s,e,e]):null}},isLoading:function(m){return m?Ext.lib.Ajax.isCallInProgress(m):!!this.transId},abort:function(m){if(m||this.isLoading()){Ext.lib.Ajax.abort(m||this.transId)}}})})();Ext.Ajax=new Ext.data.Connection({autoAbort:false,serializeForm:function(a){return Ext.lib.Ajax.serializeForm(a)}});Ext.util.DelayedTask=function(g,h,d){var e=this,b=null,a=b,c,j,i=function(){var k=new Date().getTime();if(k-j>=c){clearInterval(a);a=b;g.apply(h,d||[])}};e.delay=function(l,n,m,k){if(a&&l!=c){this.cancel()}c=l;j=new Date().getTime();g=n||g;h=m||h;d=k||d;if(!a){a=setInterval(i,c)}};e.cancel=function(){if(a){clearInterval(a);a=b}}};Ext.util.JSON=new (function(){var useHasOwn=!!{}.hasOwnProperty,isNative=Ext.USE_NATIVE_JSON&&JSON&&JSON.toString()=="[object JSON]";var pad=function(n){return n<10?"0"+n:n};var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};var encodeString=function(s){if(/["\\\x00-\x1f]/.test(s)){return'"'+s.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+s+'"'};var encodeArray=function(o){var a=["["],b,i,l=o.length,v;for(i=0;i<l;i+=1){v=o[i];switch(typeof v){case"undefined":case"function":case"unknown":break;default:if(b){a.push(",")}a.push(v===null?"null":Ext.util.JSON.encode(v));b=true}}a.push("]");return a.join("")};this.encodeDate=function(o){return'"'+o.getFullYear()+"-"+pad(o.getMonth()+1)+"-"+pad(o.getDate())+"T"+pad(o.getHours())+":"+pad(o.getMinutes())+":"+pad(o.getSeconds())+'"'};this.encode=isNative?JSON.stringify:function(o){if(typeof o=="undefined"||o===null){return"null"}else{if(Ext.isArray(o)){return encodeArray(o)}else{if(Ext.isDate(o)){return Ext.util.JSON.encodeDate(o)}else{if(typeof o=="string"){return encodeString(o)}else{if(typeof o=="number"){return isFinite(o)?String(o):"null"}else{if(typeof o=="boolean"){return String(o)}else{var a=["{"],b,i,v;for(i in o){if(!useHasOwn||o.hasOwnProperty(i)){v=o[i];switch(typeof v){case"undefined":case"function":case"unknown":break;default:if(b){a.push(",")}a.push(this.encode(i),":",v===null?"null":this.encode(v));b=true}}}a.push("}");return a.join("")}}}}}}};this.decode=isNative?JSON.parse:function(json){return eval("("+json+")")}})();Ext.encode=Ext.util.JSON.encode;Ext.decode=Ext.util.JSON.decode;