UNPKG

aolists-webtop

Version:

Web interface for aoLists

8 lines 72.2 kB
/*
 * Ext JS Library 2.2.1
 * Copyright(c) 2006-2009, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */
Ext={version:"2.2.1"};window["undefined"]=window["undefined"];Ext.apply=function(h,g,c){if(c){Ext.apply(h,c)}if(h&&g&&typeof g=="object"){for(var f in g){h[f]=g[f]}}return h};(function(){var idSeed=0;var ua=navigator.userAgent.toLowerCase();var isStrict=document.compatMode=="CSS1Compat",isOpera=ua.indexOf("opera")>-1,isChrome=ua.indexOf("chrome")>-1,isSafari=!isChrome&&(/webkit|khtml/).test(ua),isSafari3=isSafari&&ua.indexOf("webkit/5")!=-1,isIE=!isOpera&&ua.indexOf("msie")>-1,isIE7=!isOpera&&ua.indexOf("msie 7")>-1,isIE8=!isOpera&&ua.indexOf("msie 8")>-1,isGecko=!isSafari&&!isChrome&&ua.indexOf("gecko")>-1,isGecko3=isGecko&&ua.indexOf("rv:1.9")>-1,isBorderBox=isIE&&!isStrict,isWindows=(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1),isMac=(ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1),isAir=(ua.indexOf("adobeair")!=-1),isLinux=(ua.indexOf("linux")!=-1),isSecure=window.location.href.toLowerCase().indexOf("https")===0;if(isIE&&!isIE7){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}Ext.apply(Ext,{isStrict:isStrict,isSecure:isSecure,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 cache={};for(var b in o){var parts=b.split("@");if(parts[1]){var s=parts[0];if(!cache[s]){cache[s]=Ext.select(s)}cache[s].on(parts[1],o[b])}}cache=null},id:function(el,prefix){prefix=prefix||"ext-gen";el=Ext.getDom(el);var id=prefix+(++idSeed);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]}};var oc=Object.prototype.constructor;return function(sb,sp,overrides){if(typeof sp=="object"){overrides=sp;sp=sb;sb=overrides.constructor!=oc?overrides.constructor: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==oc){spp.constructor=sp}sb.override=function(o){Ext.override(sb,o)};sbp.override=io;Ext.override(sb,overrides);sb.extend=function(o){Ext.extend(sb,o)};return sb}}(),override:function(origclass,overrides){if(overrides){var p=origclass.prototype;for(var method in overrides){p[method]=overrides[method]}if(Ext.isIE&&overrides.toString!=origclass.toString){p.toString=overrides.toString}}},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],k=encodeURIComponent(key);var type=typeof ov;if(type=="undefined"){buf.push(k,"=&")}else{if(type!="function"&&type!="object"){buf.push(k,"=",encodeURIComponent(ov),"&")}else{if(Ext.isDate(ov)){var s=Ext.encode(ov).replace(/"/g,"");buf.push(k,"=",s,"&")}else{if(Ext.isArray(ov)){if(ov.length){for(var i=0,len=ov.length;i<len;i++){buf.push(k,"=",encodeURIComponent(ov[i]===undefined?"":ov[i]),"&")}}else{buf.push(k,"=&")}}}}}}buf.pop();return buf.join("")},urlDecode:function(string,overwrite){if(!string||!string.length){return{}}var obj={};var pairs=string.split("&");var pair,name,value;for(var i=0,len=pairs.length;i<len;i++){pair=pairs[i].split("=");name=decodeURIComponent(pair[0]);value=decodeURIComponent(pair[1]);if(overwrite!==true){if(typeof obj[name]=="undefined"){obj[name]=value}else{if(typeof obj[name]=="string"){obj[name]=[obj[name]];obj[name].push(value)}else{obj[name].push(value)}}}else{obj[name]=value}}return obj},each:function(array,fn,scope){if(typeof array.length=="undefined"||typeof array=="string"){array=[array]}for(var i=0,len=array.length;i<len;i++){if(fn.call(scope||array[i],array[i],i,array)===false){return i}}},combine:function(){var as=arguments,l=as.length,r=[];for(var i=0;i<l;i++){var a=as[i];if(Ext.isArray(a)){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,scope,args,delay){if(typeof cb=="function"){if(delay){cb.defer(delay,scope,args||[])}else{cb.apply(scope,args||[])}}},getDom:function(el){if(!el||!document){return null}return el.dom?el.dom:(typeof el=="string"?document.getElementById(el):el)},getDoc:function(){return Ext.get(document)},getBody:function(){return Ext.get(document.body||document.documentElement)},getCmp:function(id){return Ext.ComponentMgr.get(id)},num:function(v,defaultValue){if(typeof v!="number"||isNaN(v)){return defaultValue}return v},destroy:function(){for(var i=0,a=arguments,len=a.length;i<len;i++){var as=a[i];if(as){if(typeof as.destroy=="function"){as.destroy()}else{if(as.dom){as.removeAllListeners();as.remove()}}}}},removeNode:isIE?function(){var d;return function(n){if(n&&n.tagName!="BODY"){d=d||document.createElement("div");d.appendChild(n);d.innerHTML=""}}}():function(n){if(n&&n.parentNode&&n.tagName!="BODY"){n.parentNode.removeChild(n)}},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";case Date:return"date"}if(typeof o.length=="number"&&typeof o.item=="function"){return"nodelist"}}return t},isEmpty:function(v,allowBlank){return v===null||v===undefined||(!allowBlank?v==="":false)},value:function(v,defaultValue,allowBlank){return Ext.isEmpty(v,allowBlank)?defaultValue:v},isArray:function(v){return v&&typeof v.length=="number"&&typeof v.splice=="function"},isDate:function(v){return v&&typeof v.getFullYear=="function"},isOpera:isOpera,isChrome:isChrome,isSafari:isSafari,isSafari3:isSafari3,isSafari2:isSafari&&!isSafari3,isIE:isIE,isIE6:isIE&&!isIE7&&!isIE8,isIE7:isIE7,isIE8:isIE8,isGecko:isGecko,isGecko2:isGecko&&!isGecko3,isGecko3:isGecko3,isBorderBox:isBorderBox,isLinux:isLinux,isWindows:isWindows,isMac:isMac,isAir:isAir,useShims:((isIE&&!isIE7)||(isMac&&isGecko&&!isGecko3))});Ext.ns=Ext.namespace})();Ext.ns("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 d=arguments;var c=this;return function(){return c.apply(window,d)}},createDelegate:function(h,e,f){var g=this;return function(){var a=e||arguments;if(f===true){a=Array.prototype.slice.call(arguments,0);a=a.concat(e)}else{if(typeof f=="number"){a=Array.prototype.slice.call(arguments,0);var b=[f,0].concat(e);Array.prototype.splice.apply(a,b)}}return g.apply(h||window,a)}},defer:function(j,h,f,g){var i=this.createDelegate(h,f,g);if(j){return setTimeout(i,j)}i();return 0},createSequence:function(d,e){if(typeof d!="function"){return this}var f=this;return function(){var a=f.apply(this||window,arguments);d.apply(e||this||window,arguments);return a}},createInterceptor:function(d,e){if(typeof d!="function"){return this}var f=this;return function(){d.target=this;d.method=f;if(d.apply(e||this||window,arguments)===false){return}return f.apply(this||window,arguments)}}});Ext.applyIf(String,{escape:function(b){return b.replace(/('|\\)/g,"\\$1")},leftPad:function(g,e,h){var f=new String(g);if(!h){h=" "}while(f.length<e){f=h+f}return f.toString()},format:function(c){var d=Array.prototype.slice.call(arguments,1);return c.replace(/\{(\d+)\}/g,function(b,a){return d[a]})}});String.prototype.toggle=function(c,d){return this==c?d:c};String.prototype.trim=function(){var b=/^\s+|\s+$/g;return function(){return this.replace(b,"")}}();Ext.applyIf(Number.prototype,{constrain:function(c,d){return Math.min(Math.max(this,c),d)}});Ext.applyIf(Array.prototype,{indexOf:function(f){for(var d=0,e=this.length;d<e;d++){if(this[d]==f){return d}}return -1},remove:function(c){var d=this.indexOf(c);if(d!=-1){this.splice(d,1)}return this}});Date.prototype.getElapsed=function(b){return Math.abs((b||new Date()).getTime()-this.getTime())};(function(){var e;Ext.lib.Dom={getViewWidth:function(a){return a?this.getDocumentWidth():this.getViewportWidth()},getViewHeight:function(a){return a?this.getDocumentHeight():this.getViewportHeight()},getDocumentHeight:function(){var a=(document.compatMode!="CSS1Compat")?document.body.scrollHeight:document.documentElement.scrollHeight;return Math.max(a,this.getViewportHeight())},getDocumentWidth:function(){var a=(document.compatMode!="CSS1Compat")?document.body.scrollWidth:document.documentElement.scrollWidth;return Math.max(a,this.getViewportWidth())},getViewportHeight:function(){if(Ext.isIE){return Ext.isStrict?document.documentElement.clientHeight:document.body.clientHeight}else{return self.innerHeight}},getViewportWidth:function(){if(Ext.isIE){return Ext.isStrict?document.documentElement.clientWidth:document.body.clientWidth}else{return self.innerWidth}},isAncestor:function(b,a){b=Ext.getDom(b);a=Ext.getDom(a);if(!b||!a){return false}if(b.contains&&!Ext.isSafari){return b.contains(a)}else{if(b.compareDocumentPosition){return !!(b.compareDocumentPosition(a)&16)}else{var c=a.parentNode;while(c){if(c==b){return true}else{if(!c.tagName||c.tagName.toUpperCase()=="HTML"){return false}}c=c.parentNode}return false}}},getRegion:function(a){return Ext.lib.Region.getRegion(a)},getY:function(a){return this.getXY(a)[1]},getX:function(a){return this.getXY(a)[0]},getXY:function(v){var w,r,d,c,s=(document.body||document.documentElement);v=Ext.getDom(v);if(v==s){return[0,0]}if(v.getBoundingClientRect){d=v.getBoundingClientRect();c=h(document).getScroll();return[d.left+c.left,d.top+c.top]}var b=0,p=0;w=v;var x=h(v).getStyle("position")=="absolute";while(w){b+=w.offsetLeft;p+=w.offsetTop;if(!x&&h(w).getStyle("position")=="absolute"){x=true}if(Ext.isGecko){r=h(w);var a=parseInt(r.getStyle("borderTopWidth"),10)||0;var u=parseInt(r.getStyle("borderLeftWidth"),10)||0;b+=u;p+=a;if(w!=v&&r.getStyle("overflow")!="visible"){b+=u;p+=a}}w=w.offsetParent}if(Ext.isSafari&&x){b-=s.offsetLeft;p-=s.offsetTop}if(Ext.isGecko&&!x){var t=h(s);b+=parseInt(t.getStyle("borderLeftWidth"),10)||0;p+=parseInt(t.getStyle("borderTopWidth"),10)||0}w=v.parentNode;while(w&&w!=s){if(!Ext.isOpera||(w.tagName!="TR"&&h(w).getStyle("display")!="inline")){b-=w.scrollLeft;p-=w.scrollTop}w=w.parentNode}return[b,p]},setXY:function(c,b){c=Ext.fly(c,"_setXY");c.position();var a=c.translatePoints(b);if(b[0]!==false){c.dom.style.left=a.left+"px"}if(b[1]!==false){c.dom.style.top=a.top+"px"}},setX:function(a,b){this.setXY(a,[b,false])},setY:function(b,a){this.setXY(b,[false,a])}};Ext.lib.Event=function(){var m=false;var l=[];var a=[];var c=0;var d=[];var n=0;var b=null;return{POLL_RETRYS:200,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,_interval:null,startInterval:function(){if(!this._interval){var j=this;var i=function(){j._tryPreloadAttach()};this._interval=setInterval(i,this.POLL_INTERVAL)}},onAvailable:function(p,j,k,i){d.push({id:p,fn:j,obj:k,override:i,checkReady:false});c=this.POLL_RETRYS;this.startInterval()},addListener:function(k,i,r){k=Ext.getDom(k);if(!k||!r){return false}if("unload"==i){a[a.length]=[k,i,r];return true}var s=function(o){return typeof Ext!="undefined"?r(Ext.lib.Event.getEvent(o)):false};var j=[k,i,r,s];var t=l.length;l[t]=j;this.doAdd(k,i,s,false);return true},removeListener:function(k,w,t){var u,x;k=Ext.getDom(k);if(!t){return this.purgeElement(k,false,w)}if("unload"==w){for(u=0,x=a.length;u<x;u++){var i=a[u];if(i&&i[0]==k&&i[1]==w&&i[2]==t){a.splice(u,1);return true}}return false}var j=null;var v=arguments[3];if("undefined"==typeof v){v=this._getCacheIndex(k,w,t)}if(v>=0){j=l[v]}if(!k||!j){return false}this.doRemove(k,w,j[this.WFN],false);delete l[v][this.WFN];delete l[v][this.FN];l.splice(v,1);return true},getTarget:function(k,i){k=k.browserEvent||k;var j=k.target||k.srcElement;return this.resolveTextNode(j)},resolveTextNode:function(i){if(Ext.isSafari&&i&&3==i.nodeType){return i.parentNode}else{return i}},getPageX:function(i){i=i.browserEvent||i;var j=i.pageX;if(!j&&0!==j){j=i.clientX||0;if(Ext.isIE){j+=this.getScroll()[1]}}return j},getPageY:function(j){j=j.browserEvent||j;var i=j.pageY;if(!i&&0!==i){i=j.clientY||0;if(Ext.isIE){i+=this.getScroll()[0]}}return i},getXY:function(i){i=i.browserEvent||i;return[this.getPageX(i),this.getPageY(i)]},getRelatedTarget:function(i){i=i.browserEvent||i;var j=i.relatedTarget;if(!j){if(i.type=="mouseout"){j=i.toElement}else{if(i.type=="mouseover"){j=i.fromElement}}}return this.resolveTextNode(j)},getTime:function(k){k=k.browserEvent||k;if(!k.time){var i=new Date().getTime();try{k.time=i}catch(j){this.lastError=j;return i}}return k.time},stopEvent:function(i){this.stopPropagation(i);this.preventDefault(i)},stopPropagation:function(i){i=i.browserEvent||i;if(i.stopPropagation){i.stopPropagation()}else{i.cancelBubble=true}},preventDefault:function(i){i=i.browserEvent||i;if(i.preventDefault){i.preventDefault()}else{i.returnValue=false}},getEvent:function(i){var j=i||window.event;if(!j){var k=this.getEvent.caller;while(k){j=k.arguments[0];if(j&&Event==j.constructor){break}k=k.caller}}return j},getCharCode:function(i){i=i.browserEvent||i;return i.charCode||i.keyCode||0},_getCacheIndex:function(k,t,r){for(var s=0,i=l.length;s<i;++s){var j=l[s];if(j&&j[this.FN]==r&&j[this.EL]==k&&j[this.TYPE]==t){return s}}return -1},elCache:{},getEl:function(i){return document.getElementById(i)},clearCache:function(){},_load:function(i){m=true;var j=Ext.lib.Event;if(Ext.isIE){j.doRemove(window,"load",j._load)}},_tryPreloadAttach:function(){if(this.locked){return false}this.locked=true;var k=!m;if(!k){k=(c>0)}var s=[];for(var i=0,j=d.length;i<j;++i){var t=d[i];if(t){var u=this.getEl(t.id);if(u){if(!t.checkReady||m||u.nextSibling||(document&&document.body)){var v=u;if(t.override){if(t.override===true){v=t.obj}else{v=t.override}}t.fn.call(v,t.obj);d[i]=null}}else{s.push(t)}}}c=(s.length===0)?0:c-1;if(k){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true},purgeElement:function(t,k,v){var j=this.getListeners(t,v);if(j){for(var u=0,i=j.length;u<i;++u){var w=j[u];this.removeListener(t,w.type,w.fn)}}if(k&&t&&t.childNodes){for(u=0,i=t.childNodes.length;u<i;++u){this.purgeElement(t.childNodes[u],k,v)}}},getListeners:function(w,A){var j=[],x;if(!A){x=[l,a]}else{if(A=="unload"){x=[a]}else{x=[l]}}for(var k=0;k<x.length;++k){var y=x[k];if(y&&y.length>0){for(var i=0,z=y.length;i<z;++i){var v=y[i];if(v&&v[this.EL]===w&&(!A||A===v[this.TYPE])){j.push({type:v[this.TYPE],fn:v[this.FN],obj:v[this.OBJ],adjust:v[this.ADJ_SCOPE],index:i})}}}}return(j.length)?j:null},_unload:function(j){var k=Ext.lib.Event,v,w,y,i,x;for(v=0,i=a.length;v<i;++v){y=a[v];if(y){var u=window;if(y[k.ADJ_SCOPE]){if(y[k.ADJ_SCOPE]===true){u=y[k.OBJ]}else{u=y[k.ADJ_SCOPE]}}y[k.FN].call(u,k.getEvent(j),y[k.OBJ]);a[v]=null;y=null;u=null}}a=null;if(l&&l.length>0){w=l.length;while(w){x=w-1;y=l[x];if(y){k.removeListener(y[k.EL],y[k.TYPE],y[k.FN],x)}w=w-1}y=null;k.clearCache()}k.doRemove(window,"unload",k._unload)},getScroll:function(){var j=document.documentElement,i=document.body;if(j&&(j.scrollTop||j.scrollLeft)){return[j.scrollTop,j.scrollLeft]}else{if(i){return[i.scrollTop,i.scrollLeft]}else{return[0,0]}}},doAdd:function(){if(window.addEventListener){return function(k,i,p,j){k.addEventListener(i,p,(j))}}else{if(window.attachEvent){return function(k,i,p,j){k.attachEvent("on"+i,p)}}else{return function(){}}}}(),doRemove:function(){if(window.removeEventListener){return function(k,i,p,j){k.removeEventListener(i,p,(j))}}else{if(window.detachEvent){return function(k,j,i){k.detachEvent("on"+j,i)}}else{return function(){}}}}()}}();var g=Ext.lib.Event;g.on=g.addListener;g.un=g.removeListener;if(document&&document.body){g._load()}else{g.doAdd(window,"load",g._load)}g.doAdd(window,"unload",g._unload);g._tryPreloadAttach();Ext.lib.Ajax={request:function(a,c,o,b,n){if(n){var m=n.headers;if(m){for(var d in m){if(m.hasOwnProperty(d)){this.initHeader(d,m[d],false)}}}if(n.xmlData){if(!m||!m["Content-Type"]){this.initHeader("Content-Type","text/xml",false)}a=(a?a:(n.method?n.method:"POST"));b=n.xmlData}else{if(n.jsonData){if(!m||!m["Content-Type"]){this.initHeader("Content-Type","application/json",false)}a=(a?a:(n.method?n.method:"POST"));b=typeof n.jsonData=="object"?Ext.encode(n.jsonData):n.jsonData}}}return this.asyncRequest(a,c,o,b)},serializeForm:function(q){if(typeof q=="string"){q=(document.getElementById(q)||document.forms[q])}var p,r,j,d,c="",a=false;for(var b=0;b<q.elements.length;b++){p=q.elements[b];d=q.elements[b].disabled;r=q.elements[b].name;j=q.elements[b].value;if(!d&&r){switch(p.type){case"select-one":case"select-multiple":for(var i=0;i<p.options.length;i++){if(p.options[i].selected){if(Ext.isIE){c+=encodeURIComponent(r)+"="+encodeURIComponent(p.options[i].attributes.value.specified?p.options[i].value:p.options[i].text)+"&"}else{c+=encodeURIComponent(r)+"="+encodeURIComponent(p.options[i].hasAttribute("value")?p.options[i].value:p.options[i].text)+"&"}}}break;case"radio":case"checkbox":if(p.checked){c+=encodeURIComponent(r)+"="+encodeURIComponent(j)+"&"}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(a==false){c+=encodeURIComponent(r)+"="+encodeURIComponent(j)+"&";a=true}break;default:c+=encodeURIComponent(r)+"="+encodeURIComponent(j)+"&";break}}}c=c.substr(0,c.length-1);return c},headers:{},hasHeaders:false,useDefaultHeader:true,defaultPostHeader:"application/x-www-form-urlencoded; charset=UTF-8",useDefaultXhrHeader:true,defaultXhrHeader:"XMLHttpRequest",hasDefaultHeaders:true,defaultHeaders:{},poll:{},timeout:{},pollInterval:50,transactionId:0,setProgId:function(a){this.activeX.unshift(a)},setDefaultPostHeader:function(a){this.useDefaultHeader=a},setDefaultXhrHeader:function(a){this.useDefaultXhrHeader=a},setPollingInterval:function(a){if(typeof a=="number"&&isFinite(a)){this.pollInterval=a}},createXhrObject:function(a){var b,i;try{i=new XMLHttpRequest();b={conn:i,tId:a}}catch(c){for(var d=0;d<this.activeX.length;++d){try{i=new ActiveXObject(this.activeX[d]);b={conn:i,tId:a};break}catch(c){}}}finally{return b}},getConnectionObject:function(){var b;var a=this.transactionId;try{b=this.createXhrObject(a);if(b){this.transactionId++}}catch(c){}finally{return b}},asyncRequest:function(a,d,b,j){var c=this.getConnectionObject();if(!c){return null}else{c.conn.open(a,d,true);if(this.useDefaultXhrHeader){if(!this.defaultHeaders["X-Requested-With"]){this.initHeader("X-Requested-With",this.defaultXhrHeader,true)}}if(j&&this.useDefaultHeader&&(!this.hasHeaders||!this.headers["Content-Type"])){this.initHeader("Content-Type",this.defaultPostHeader)}if(this.hasDefaultHeaders||this.hasHeaders){this.setHeader(c)}this.handleReadyState(c,b);c.conn.send(j||null);return c}},handleReadyState:function(b,a){var c=this;if(a&&a.timeout){this.timeout[b.tId]=window.setTimeout(function(){c.abort(b,a,true)},a.timeout)}this.poll[b.tId]=window.setInterval(function(){if(b.conn&&b.conn.readyState==4){window.clearInterval(c.poll[b.tId]);delete c.poll[b.tId];if(a&&a.timeout){window.clearTimeout(c.timeout[b.tId]);delete c.timeout[b.tId]}c.handleTransactionResponse(b,a)}},this.pollInterval)},handleTransactionResponse:function(b,a,m){if(!a){this.releaseObject(b);return}var d,l;try{if(b.conn.status!==undefined&&b.conn.status!=0){d=b.conn.status}else{d=13030}}catch(c){d=13030}if((d>=200&&d<300)||(Ext.isIE&&d==1223)){l=this.createResponseObject(b,a.argument);if(a.success){if(!a.scope){a.success(l)}else{a.success.apply(a.scope,[l])}}}else{switch(d){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:l=this.createExceptionObject(b.tId,a.argument,(m?m:false));if(a.failure){if(!a.scope){a.failure(l)}else{a.failure.apply(a.scope,[l])}}break;default:l=this.createResponseObject(b,a.argument);if(a.failure){if(!a.scope){a.failure(l)}else{a.failure.apply(a.scope,[l])}}}}this.releaseObject(b);l=null},createResponseObject:function(s,c){var o={};var a={};try{var q=s.conn.getAllResponseHeaders();var d=q.split("\n");for(var i=0;i<d.length;i++){var r=d[i].indexOf(":");if(r!=-1){a[d[i].substring(0,r)]=d[i].substring(r+2)}}}catch(b){}o.tId=s.tId;o.status=s.conn.status;o.statusText=s.conn.statusText;o.getResponseHeader=a;o.getAllResponseHeaders=q;o.responseText=s.conn.responseText;o.responseXML=s.conn.responseXML;if(typeof c!==undefined){o.argument=c}return o},createExceptionObject:function(a,m,p){var c=0;var b="communication failure";var n=-1;var o="transaction aborted";var d={};d.tId=a;if(p){d.status=n;d.statusText=o}else{d.status=c;d.statusText=b}if(m){d.argument=m}return d},initHeader:function(d,a,b){var c=(b)?this.defaultHeaders:this.headers;if(c[d]===undefined){c[d]=a}else{c[d]=a+","+c[d]}if(b){this.hasDefaultHeaders=true}else{this.hasHeaders=true}},setHeader:function(b){if(this.hasDefaultHeaders){for(var a in this.defaultHeaders){if(this.defaultHeaders.hasOwnProperty(a)){b.conn.setRequestHeader(a,this.defaultHeaders[a])}}}if(this.hasHeaders){for(var a in this.headers){if(this.headers.hasOwnProperty(a)){b.conn.setRequestHeader(a,this.headers[a])}}this.headers={};this.hasHeaders=false}},resetDefaultHeaders:function(){delete this.defaultHeaders;this.defaultHeaders={};this.hasDefaultHeaders=false},abort:function(b,a,c){if(this.isCallInProgress(b)){b.conn.abort();window.clearInterval(this.poll[b.tId]);delete this.poll[b.tId];if(c){delete this.timeout[b.tId]}this.handleTransactionResponse(b,a,true);return true}else{return false}},isCallInProgress:function(a){if(a.conn){return a.conn.readyState!=4&&a.conn.readyState!=0}else{return false}},releaseObject:function(a){a.conn=null;a=null},activeX:["MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"]};Ext.lib.Region=function(b,a,d,c){this.top=b;this[1]=b;this.right=a;this.bottom=d;this.left=c;this[0]=c};Ext.lib.Region.prototype={contains:function(a){return(a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom)},getArea:function(){return((this.bottom-this.top)*(this.right-this.left))},intersect:function(a){var c=Math.max(this.top,a.top);var b=Math.min(this.right,a.right);var j=Math.min(this.bottom,a.bottom);var d=Math.max(this.left,a.left);if(j>=c&&b>=d){return new Ext.lib.Region(c,b,j,d)}else{return null}},union:function(a){var c=Math.min(this.top,a.top);var b=Math.max(this.right,a.right);var j=Math.max(this.bottom,a.bottom);var d=Math.min(this.left,a.left);return new Ext.lib.Region(c,b,j,d)},constrainTo:function(a){this.top=this.top.constrain(a.top,a.bottom);this.bottom=this.bottom.constrain(a.top,a.bottom);this.left=this.left.constrain(a.left,a.right);this.right=this.right.constrain(a.left,a.right);return this},adjust:function(b,c,d,a){this.top+=b;this.left+=c;this.right+=a;this.bottom+=d;return this}};Ext.lib.Region.getRegion=function(c){var a=Ext.lib.Dom.getXY(c);var d=a[1];var b=a[0]+c.offsetWidth;var l=a[1]+c.offsetHeight;var k=a[0];return new Ext.lib.Region(d,b,l,k)};Ext.lib.Point=function(b,a){if(Ext.isArray(b)){a=b[1];b=b[0]}this.x=this.right=this.left=this[0]=b;this.y=this.top=this.bottom=this[1]=a};Ext.lib.Point.prototype=new Ext.lib.Region();Ext.lib.Anim={scroll:function(c,k,b,a,l,d){return this.run(c,k,b,a,l,d,Ext.lib.Scroll)},motion:function(c,k,b,a,l,d){return this.run(c,k,b,a,l,d,Ext.lib.Motion)},color:function(c,k,b,a,l,d){return this.run(c,k,b,a,l,d,Ext.lib.ColorAnim)},run:function(d,o,b,a,p,m,n){n=n||Ext.lib.AnimBase;if(typeof a=="string"){a=Ext.lib.Easing[a]}var c=new n(d,o,b,a);c.animateX(function(){Ext.callback(p,m)});return c}};function h(a){if(!e){e=new Ext.Element.Flyweight()}e.dom=a;return e}if(Ext.isIE){function f(){var a=Function.prototype;delete a.createSequence;delete a.defer;delete a.createDelegate;delete a.createCallback;delete a.createInterceptor;window.detachEvent("onunload",f)}window.attachEvent("onunload",f)}Ext.lib.AnimBase=function(c,d,b,a){if(c){this.init(c,d,b,a)}};Ext.lib.AnimBase.prototype={toString:function(){var b=this.getEl();var a=b.id||b.tagName;return("Anim "+a)},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(c,a,b){return this.method(this.currentFrame,a,b-a,this.totalFrames)},setAttribute:function(c,a,b){if(this.patterns.noNegatives.test(c)){a=(a>0)?a:0}Ext.fly(this.getEl(),"_anim").setStyle(c,a+b)},getAttribute:function(l){var d=this.getEl();var b=h(d).getStyle(l);if(b!=="auto"&&!this.patterns.offsetUnit.test(b)){return parseFloat(b)}var k=this.patterns.offsetAttribute.exec(l)||[];var a=!!(k[3]);var c=!!(k[2]);if(c||(h(d).getStyle("position")=="absolute"&&a)){b=d["offset"+k[0].charAt(0).toUpperCase()+k[0].substr(1)]}else{b=0}return b},getDefaultUnit:function(a){if(this.patterns.defaultUnit.test(a)){return"px"}return""},animateX:function(a,c){var b=function(){this.onComplete.removeListener(b);if(typeof a=="function"){a.call(c||this,this)}};this.onComplete.addListener(b,this);this.animate()},setRuntimeAttribute:function(m){var a;var i;var d=this.attributes;this.runtimeAttributes[m]={};var b=function(j){return(typeof j!=="undefined")};if(!b(d[m]["to"])&&!b(d[m]["by"])){return false}a=(b(d[m]["from"]))?d[m]["from"]:this.getAttribute(m);if(b(d[m]["to"])){i=d[m]["to"]}else{if(b(d[m]["by"])){if(a.constructor==Array){i=[];for(var c=0,n=a.length;c<n;++c){i[c]=a[c]+d[m]["by"][c]}}else{i=a+d[m]["by"]}}}this.runtimeAttributes[m].start=a;this.runtimeAttributes[m].end=i;this.runtimeAttributes[m].unit=(b(d[m].unit))?d[m]["unit"]:this.getDefaultUnit(m)},init:function(r,c,d,t){var s=false;var q=null;var o=0;r=Ext.getDom(r);this.attributes=c||{};this.duration=d||1;this.method=t||Ext.lib.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=Ext.lib.AnimMgr.fps;this.getEl=function(){return r};this.isAnimated=function(){return s};this.getStartTime=function(){return q};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(Ext.lib.AnimMgr.fps*this.duration):this.duration;Ext.lib.AnimMgr.registerElement(this)};this.stop=function(i){if(i){this.currentFrame=this.totalFrames;this._onTween.fire()}Ext.lib.AnimMgr.stop(this)};var a=function(){this.onStart.fire();this.runtimeAttributes={};for(var i in this.attributes){this.setRuntimeAttribute(i)}s=true;o=0;q=new Date()};var b=function(){var i={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};i.toString=function(){return("duration: "+i.duration+", currentFrame: "+i.currentFrame)};this.onTween.fire(i);var j=this.runtimeAttributes;for(var k in j){this.setAttribute(k,this.doMethod(k,j[k].start,j[k].end),j[k].unit)}o+=1};var p=function(){var j=(new Date()-q)/1000;var i={duration:j,frames:o,fps:o/j};i.toString=function(){return("duration: "+i.duration+", frames: "+i.frames+", fps: "+i.fps)};s=false;o=0;this.onComplete.fire(i)};this._onStart=new Ext.util.Event(this);this.onStart=new Ext.util.Event(this);this.onTween=new Ext.util.Event(this);this._onTween=new Ext.util.Event(this);this.onComplete=new Ext.util.Event(this);this._onComplete=new Ext.util.Event(this);this._onStart.addListener(a);this._onTween.addListener(b);this._onComplete.addListener(p)}};Ext.lib.AnimMgr=new function(){var c=null;var d=[];var j=0;this.fps=1000;this.delay=1;this.registerElement=function(i){d[d.length]=i;j+=1;i._onStart.fire();this.start()};this.unRegister=function(i,l){i._onComplete.fire();l=l||a(i);if(l!=-1){d.splice(l,1)}j-=1;if(j<=0){this.stop()}};this.start=function(){if(c===null){c=setInterval(this.run,this.delay)}};this.stop=function(i){if(!i){clearInterval(c);for(var m=0,n=d.length;m<n;++m){if(d[0].isAnimated()){this.unRegister(d[0],0)}}d=[];c=null;j=0}else{this.unRegister(i)}};this.run=function(){for(var i=0,n=d.length;i<n;++i){var m=d[i];if(!m||!m.isAnimated()){continue}if(m.currentFrame<m.totalFrames||m.totalFrames===null){m.currentFrame+=1;if(m.useSeconds){b(m)}m._onTween.fire()}else{Ext.lib.AnimMgr.stop(m,i)}}};var a=function(i){for(var m=0,n=d.length;m<n;++m){if(d[m]==i){return m}}return -1};var b=function(q){var t=q.totalFrames;var i=q.currentFrame;var p=(q.currentFrame*q.duration*1000/q.totalFrames);var r=(new Date()-q.getStartTime());var s=0;if(r<q.duration*1000){s=Math.round((r/p-1)*q.currentFrame)}else{s=t-(i+1)}if(s>0&&isFinite(s)){if(q.currentFrame+s>=t){s=t-(i+1)}q.currentFrame+=s}}};Ext.lib.Bezier=new function(){this.getPosition=function(b,c){var a=b.length;var d=[];for(var i=0;i<a;++i){d[i]=[b[i][0],b[i][1]]}for(var j=1;j<a;++j){for(i=0;i<a-j;++i){d[i][0]=(1-c)*d[i][0]+c*d[parseInt(i+1,10)][0];d[i][1]=(1-c)*d[i][1]+c*d[parseInt(i+1,10)][1]}}return[d[0][0],d[0][1]]}};(function(){Ext.lib.ColorAnim=function(m,n,l,d){Ext.lib.ColorAnim.superclass.constructor.call(this,m,n,l,d)};Ext.extend(Ext.lib.ColorAnim,Ext.lib.AnimBase);var b=Ext.lib;var a=b.ColorAnim.superclass;var c=b.ColorAnim.prototype;c.toString=function(){var j=this.getEl();var d=j.id||j.tagName;return("ColorAnim "+d)};c.patterns.color=/color$/i;c.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;c.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;c.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;c.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;c.parseColor=function(j){if(j.length==3){return j}var d=this.patterns.hex.exec(j);if(d&&d.length==4){return[parseInt(d[1],16),parseInt(d[2],16),parseInt(d[3],16)]}d=this.patterns.rgb.exec(j);if(d&&d.length==4){return[parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10)]}d=this.patterns.hex3.exec(j);if(d&&d.length==4){return[parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16),parseInt(d[3]+d[3],16)]}return null};c.getAttribute=function(n){var l=this.getEl();if(this.patterns.color.test(n)){var d=h(l).getStyle(n);if(this.patterns.transparent.test(d)){var m=l.parentNode;d=h(m).getStyle(n);while(m&&this.patterns.transparent.test(d)){m=m.parentNode;d=h(m).getStyle(n);if(m.tagName.toUpperCase()=="HTML"){d="#fff"}}}}else{d=a.getAttribute.call(this,n)}return d};c.doMethod=function(p,r,o){var d;if(this.patterns.color.test(p)){d=[];for(var i=0,q=r.length;i<q;++i){d[i]=a.doMethod.call(this,p,r[i],o[i])}d="rgb("+Math.floor(d[0])+","+Math.floor(d[1])+","+Math.floor(d[2])+")"}else{d=a.doMethod.call(this,p,r,o)}return d};c.setRuntimeAttribute=function(p){a.setRuntimeAttribute.call(this,p);if(this.patterns.color.test(p)){var i=this.attributes;var r=this.parseColor(this.runtimeAttributes[p].start);var o=this.parseColor(this.runtimeAttributes[p].end);if(typeof i[p]["to"]==="undefined"&&typeof i[p]["by"]!=="undefined"){o=this.parseColor(i[p].by);for(var d=0,q=r.length;d<q;++d){o[d]=r[d]+o[d]}}this.runtimeAttributes[p].start=r;this.runtimeAttributes[p].end=o}}})();Ext.lib.Easing={easeNone:function(c,d,a,b){return a*c/b+d},easeIn:function(c,d,a,b){return a*(c/=b)*c+d},easeOut:function(c,d,a,b){return -a*(c/=b)*(c-2)+d},easeBoth:function(c,d,a,b){if((c/=b/2)<1){return a/2*c*c+d}return -a/2*((--c)*(c-2)-1)+d},easeInStrong:function(c,d,a,b){return a*(c/=b)*c*c*c+d},easeOutStrong:function(c,d,a,b){return -a*((c=c/b-1)*c*c*c-1)+d},easeBothStrong:function(c,d,a,b){if((c/=b/2)<1){return a/2*c*c*c*c+d}return -a/2*((c-=2)*c*c*c-2)+d},elasticIn:function(l,n,a,b,m,c){if(l==0){return n}if((l/=b)==1){return n+a}if(!c){c=b*0.3}if(!m||m<Math.abs(a)){m=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/m)}return -(m*Math.pow(2,10*(l-=1))*Math.sin((l*b-d)*(2*Math.PI)/c))+n},elasticOut:function(l,n,a,b,m,c){if(l==0){return n}if((l/=b)==1){return n+a}if(!c){c=b*0.3}if(!m||m<Math.abs(a)){m=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/m)}return m*Math.pow(2,-10*l)*Math.sin((l*b-d)*(2*Math.PI)/c)+a+n},elasticBoth:function(l,n,a,b,m,c){if(l==0){return n}if((l/=b/2)==2){return n+a}if(!c){c=b*(0.3*1.5)}if(!m||m<Math.abs(a)){m=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/m)}if(l<1){return -0.5*(m*Math.pow(2,10*(l-=1))*Math.sin((l*b-d)*(2*Math.PI)/c))+n}return m*Math.pow(2,-10*(l-=1))*Math.sin((l*b-d)*(2*Math.PI)/c)*0.5+a+n},backIn:function(d,j,a,b,c){if(typeof c=="undefined"){c=1.70158}return a*(d/=b)*d*((c+1)*d-c)+j},backOut:function(d,j,a,b,c){if(typeof c=="undefined"){c=1.70158}return a*((d=d/b-1)*d*((c+1)*d+c)+1)+j},backBoth:function(d,j,a,b,c){if(typeof c=="undefined"){c=1.70158}if((d/=b/2)<1){return a/2*(d*d*(((c*=(1.525))+1)*d-c))+j}return a/2*((d-=2)*d*(((c*=(1.525))+1)*d+c)+2)+j},bounceIn:function(c,d,a,b){return a-Ext.lib.Easing.bounceOut(b-c,0,a,b)+d},bounceOut:function(c,d,a,b){if((c/=b)<(1/2.75)){return a*(7.5625*c*c)+d}else{if(c<(2/2.75)){return a*(7.5625*(c-=(1.5/2.75))*c+0.75)+d}else{if(c<(2.5/2.75)){return a*(7.5625*(c-=(2.25/2.75))*c+0.9375)+d}}}return a*(7.5625*(c-=(2.625/2.75))*c+0.984375)+d},bounceBoth:function(c,d,a,b){if(c<b/2){return Ext.lib.Easing.bounceIn(c*2,0,a,b)*0.5+d}return Ext.lib.Easing.bounceOut(c*2-b,0,a,b)*0.5+a*0.5+d}};(function(){Ext.lib.Motion=function(o,p,n,i){if(o){Ext.lib.Motion.superclass.constructor.call(this,o,p,n,i)}};Ext.extend(Ext.lib.Motion,Ext.lib.ColorAnim);var b=Ext.lib;var a=b.Motion.superclass;var d=b.Motion.prototype;d.toString=function(){var l=this.getEl();var i=l.id||l.tagName;return("Motion "+i)};d.patterns.points=/^points$/i;d.setAttribute=function(n,i,m){if(this.patterns.points.test(n)){m=m||"px";a.setAttribute.call(this,"left",i[0],m);a.setAttribute.call(this,"top",i[1],m)}else{a.setAttribute.call(this,n,i,m)}};d.getAttribute=function(l){if(this.patterns.points.test(l)){var i=[a.getAttribute.call(this,"left"),a.getAttribute.call(this,"top")]}else{i=a.getAttribute.call(this,l)}return i};d.doMethod=function(q,r,p){var i=null;if(this.patterns.points.test(q)){var o=this.method(this.currentFrame,0,100,this.totalFrames)/100;i=b.Bezier.getPosition(this.runtimeAttributes[q],o)}else{i=a.doMethod.call(this,q,r,p)}return i};d.setRuntimeAttribute=function(B){if(this.patterns.points.test(B)){var z=this.getEl();var x=this.attributes;var A;var v=x.points.control||[];var y;var u,i;if(v.length>0&&!Ext.isArray(v[0])){v=[v]}else{var w=[];for(u=0,i=v.length;u<i;++u){w[u]=v[u]}v=w}Ext.fly(z,"_anim").position();if(c(x.points.from)){Ext.lib.Dom.setXY(z,x.points.from)}else{Ext.lib.Dom.setXY(z,Ext.lib.Dom.getXY(z))}A=this.getAttribute("points");if(c(x.points.to)){y=j.call(this,x.points.to,A);var t=Ext.lib.Dom.getXY(this.getEl());for(u=0,i=v.length;u<i;++u){v[u]=j.call(this,v[u],A)}}else{if(c(x.points.by)){y=[A[0]+x.points.by[0],A[1]+x.points.by[1]];for(u=0,i=v.length;u<i;++u){v[u]=[A[0]+v[u][0],A[1]+v[u][1]]}}}this.runtimeAttributes[B]=[A];if(v.length>0){this.runtimeAttributes[B]=this.runtimeAttributes[B].concat(v)}this.runtimeAttributes[B][this.runtimeAttributes[B].length]=y}else{a.setRuntimeAttribute.call(this,B)}};var j=function(n,i){var m=Ext.lib.Dom.getXY(this.getEl());n=[n[0]-m[0]+i[0],n[1]-m[1]+i[1]];return n};var c=function(i){return(typeof i!=="undefined")}})();(function(){Ext.lib.Scroll=function(m,n,l,d){if(m){Ext.lib.Scroll.superclass.constructor.call(this,m,n,l,d)}};Ext.extend(Ext.lib.Scroll,Ext.lib.ColorAnim);var b=Ext.lib;var a=b.Scroll.superclass;var c=b.Scroll.prototype;c.toString=function(){var j=this.getEl();var d=j.id||j.tagName;return("Scroll "+d)};c.doMethod=function(n,d,m){var l=null;if(n=="scroll"){l=[this.method(this.currentFrame,d[0],m[0]-d[0],this.totalFrames),this.method(this.currentFrame,d[1],m[1]-d[1],this.totalFrames)]}else{l=a.doMethod.call(this,n,d,m)}return l};c.getAttribute=function(l){var d=null;var k=this.getEl();if(l=="scroll"){d=[k.scrollLeft,k.scrollTop]}else{d=a.getAttribute.call(this,l)}return d};c.setAttribute=function(n,d,l){var m=this.getEl();if(n=="scroll"){m.scrollLeft=d[0];m.scrollTop=d[1]}else{a.setAttribute.call(this,n,d,l)}}})()})();Ext={version:"2.2.1"};window["undefined"]=window["undefined"];Ext.apply=function(h,g,c){if(c){Ext.apply(h,c)}if(h&&g&&typeof g=="object"){for(var f in g){h[f]=g[f]}}return h};(function(){var idSeed=0;var ua=navigator.userAgent.toLowerCase();var isStrict=document.compatMode=="CSS1Compat",isOpera=ua.indexOf("opera")>-1,isChrome=ua.indexOf("chrome")>-1,isSafari=!isChrome&&(/webkit|khtml/).test(ua),isSafari3=isSafari&&ua.indexOf("webkit/5")!=-1,isIE=!isOpera&&ua.indexOf("msie")>-1,isIE7=!isOpera&&ua.indexOf("msie 7")>-1,isIE8=!isOpera&&ua.indexOf("msie 8")>-1,isGecko=!isSafari&&!isChrome&&ua.indexOf("gecko")>-1,isGecko3=isGecko&&ua.indexOf("rv:1.9")>-1,isBorderBox=isIE&&!isStrict,isWindows=(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1),isMac=(ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1),isAir=(ua.indexOf("adobeair")!=-1),isLinux=(ua.indexOf("linux")!=-1),isSecure=window.location.href.toLowerCase().indexOf("https")===0;if(isIE&&!isIE7){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}Ext.apply(Ext,{isStrict:isStrict,isSecure:isSecure,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 cache={};for(var b in o){var parts=b.split("@");if(parts[1]){var s=parts[0];if(!cache[s]){cache[s]=Ext.select(s)}cache[s].on(parts[1],o[b])}}cache=null},id:function(el,prefix){prefix=prefix||"ext-gen";el=Ext.getDom(el);var id=prefix+(++idSeed);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]}};var oc=Object.prototype.constructor;return function(sb,sp,overrides){if(typeof sp=="object"){overrides=sp;sp=sb;sb=overrides.constructor!=oc?overrides.constructor: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==oc){spp.constructor=sp}sb.override=function(o){Ext.override(sb,o)};sbp.override=io;Ext.override(sb,overrides);sb.extend=function(o){Ext.extend(sb,o)};return sb}}(),override:function(origclass,overrides){if(overrides){var p=origclass.prototype;for(var method in overrides){p[method]=overrides[method]}if(Ext.isIE&&overrides.toString!=origclass.toString){p.toString=overrides.toString}}},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],k=encodeURIComponent(key);var type=typeof ov;if(type=="undefined"){buf.push(k,"=&")}else{if(type!="function"&&type!="object"){buf.push(k,"=",encodeURIComponent(ov),"&")}else{if(Ext.isDate(ov)){var s=Ext.encode(ov).replace(/"/g,"");buf.push(k,"=",s,"&")}else{if(Ext.isArray(ov)){if(ov.length){for(var i=0,len=ov.length;i<len;i++){buf.push(k,"=",encodeURIComponent(ov[i]===undefined?"":ov[i]),"&")}}else{buf.push(k,"=&")}}}}}}buf.pop();return buf.join("")},urlDecode:function(string,overwrite){if(!string||!string.length){return{}}var obj={};var pairs=string.split("&");var pair,name,value;for(var i=0,len=pairs.length;i<len;i++){pair=pairs[i].split("=");name=decodeURIComponent(pair[0]);value=decodeURIComponent(pair[1]);if(overwrite!==true){if(typeof obj[name]=="undefined"){obj[name]=value}else{if(typeof obj[name]=="string"){obj[name]=[obj[name]];obj[name].push(value)}else{obj[name].push(value)}}}else{obj[name]=value}}return obj},each:function(array,fn,scope){if(typeof array.length=="undefined"||typeof array=="string"){array=[array]}for(var i=0,len=array.length;i<len;i++){if(fn.call(scope||array[i],array[i],i,array)===false){return i}}},combine:function(){var as=arguments,l=as.length,r=[];for(var i=0;i<l;i++){var a=as[i];if(Ext.isArray(a)){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,scope,args,delay){if(typeof cb=="function"){if(delay){cb.defer(delay,scope,args||[])}else{cb.apply(scope,args||[])}}},getDom:function(el){if(!el||!document){return null}return el.dom?el.dom:(typeof el=="string"?document.getElementById(el):el)},getDoc:function(){return Ext.get(document)},getBody:function(){return Ext.get(document.body||document.documentElement)},getCmp:function(id){return Ext.ComponentMgr.get(id)},num:function(v,defaultValue){if(typeof v!="number"||isNaN(v)){return defaultValue}return v},destroy:function(){for(var i=0,a=arguments,len=a.length;i<len;i++){var as=a[i];if(as){if(typeof as.destroy=="function"){as.destroy()}else{if(as.dom){as.removeAllListeners();as.remove()}}}}},removeNode:isIE?function(){var d;return function(n){if(n&&n.tagName!="BODY"){d=d||document.createElement("div");d.appendChild(n);d.innerHTML=""}}}():function(n){if(n&&n.parentNode&&n.tagName!="BODY"){n.parentNode.removeChild(n)}},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";case Date:return"date"}if(typeof o.length=="number"&&typeof o.item=="function"){return"nodelist"}}return t},isEmpty:function(v,allowBlank){return v===null||v===undefined||(!allowBlank?v==="":false)},value:function(v,defaultValue,allowBlank){return Ext.isEmpty(v,allowBlank)?defaultValue:v},isArray:function(v){return v&&typeof v.length=="number"&&typeof v.splice=="function"},isDate:function(v){return v&&typeof v.getFullYear=="function"},isOpera:isOpera,isChrome:isChrome,isSafari:isSafari,isSafari3:isSafari3,isSafari2:isSafari&&!isSafari3,isIE:isIE,isIE6:isIE&&!isIE7&&!isIE8,isIE7:isIE7,isIE8:isIE8,isGecko:isGecko,isGecko2:isGecko&&!isGecko3,isGecko3:isGecko3,isBorderBox:isBorderBox,isLinux:isLinux,isWindows:isWindows,isMac:isMac,isAir:isAir,useShims:((isIE&&!isIE7)||(isMac&&isGecko&&!isGecko3))});Ext.ns=Ext.namespace})();Ext.ns("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 d=arguments;var c=this;return function(){return c.apply(window,d)}},createDelegate:function(h,e,f){var g=this;return function(){var a=e||arguments;if(f===true){a=Array.prototype.slice.call(arguments,0);a=a.concat(e)}else{if(typeof f=="number"){a=Array.prototype.slice.call(arguments,0);var b=[f,0].concat(e);Array.prototype.splice.apply(a,b)}}return g.apply(h||window,a)}},defer:function(j,h,f,g){var i=this.createDelegate(h,f,g);if(j){return setTimeout(i,j)}i();return 0},createSequence:function(d,e){if(typeof d!="function"){return this}var f=this;return function(){var a=f.apply(this||window,arguments);d.apply(e||this||window,arguments);return a}},createInterceptor:function(d,e){if(typeof d!="function"){return this}var f=this;return function(){d.target=this;d.method=f;if(d.apply(e||this||window,arguments)===false){return}return f.apply(this||window,arguments)}}});Ext.applyIf(String,{escape:function(b){return b.replace(/('|\\)/g,"\\$1")},leftPad:function(g,e,h){var f=new String(g);if(!h){h=" "}while(f.length<e){f=h+f}return f.toString()},format:function(c){var d=Array.prototype.slice.call(arguments,1);return c.replace(/\{(\d+)\}/g,function(b,a){return d[a]})}});String.prototype.toggle=function(c,d){return this==c?d:c};String.prototype.trim=function(){var b=/^\s+|\s+$/g;return function(){return this.replace(b,"")}}();Ext.applyIf(Number.prototype,{constrain:function(c,d){return Math.min(Math.max(this,c),d)}});Ext.applyIf(Array.prototype,{indexOf:function(f){for(var d=0,e=this.length;d<e;d++){if(this[d]==f){return d}}return -1},remove:function(c){var d=this.indexOf(c);if(d!=-1){this.splice(d,1)}return this}});Date.prototype.getElapsed=function(b){return Math.abs((b||new Date()).getTime()-this.getTime())};(function(){var e;Ext.lib.Dom={getViewWidth:function(a){return a?this.getDocumentWidth():this.getViewportWidth()},getViewHeight:function(a){return a?this.getDocumentHeight():this.getViewportHeight()},getDocumentHeight:function(){var a=(document.compatMode!="CSS1Compat")?document.body.scrollHeight:document.documentElement.scrollHeight;return Math.max(a,this.getViewportHeight())},getDocumentWidth:function(){var a=(document.compatMode!="CSS1Compat")?document.body.scrollWidth:document.documentElement.scrollWidth;return Math.max(a,this.getViewportWidth())},getViewportHeight:function(){if(Ext.isIE){return Ext.isStrict?document.documentElement.clientHeight:document.body.clientHeight}else{return self.innerHeight}},getViewportWidth:function(){if(Ext.isIE){return Ext.isStrict?document.documentElement.clientWidth:document.body.clientWidth}else{return self.innerWidth}},isAncestor:function(b,a){b=Ext.getDom(b);a=Ext.getDom(a);if(!b||!a){return false}if(b.contains&&!Ext.isSafari){return b.contains(a)}else{if(b.compareDocumentPosition){return !!(b.compareDocumentPosition(a)&16)}else{var c=a.parentNode;while(c){if(c==b){return true}else{if(!c.tagName||c.tagName.toUpperCase()=="HTML"){return false}}c=c.parentNode}return false}}},getRegion:function(a){return Ext.lib.Region.getRegion(a)},getY:function(a){return this.getXY(a)[1]},getX:function(a){return this.getXY(a)[0]},getXY:function(v){var w,r,d,c,s=(document.body||document.documentElement);v=Ext.getDom(v);if(v==s){return[0,0]}if(v.getBoundingClientRect){d=v.getBoundingClientRect();c=h(document).getScroll();return[d.left+c.left,d.top+c.top]}var b=0,p=0;w=v;var x=h(v).getStyle("position")=="absolute";while(w){b+=w.offsetLeft;p+=w.offsetTop;if(!x&&h(w).getStyle("position")=="absolute"){x=true}if(Ext.isGecko){r=h(w);var a=parseInt(r.getStyle("borderTopWidth"),10)||0;var u=parseInt(r.getStyle("borderLeftWidth"),10)||0;b+=u;p+=a;if(w!=v&&r.getStyle("overflow")!="visible"){b+=u;p+=a}}w=w.offsetParent}if(Ext.isSafari&&x){b-=s.offsetLeft;p-=s.offsetTop}if(Ext.isGecko&&!x){var t=h(s);b+=parseInt(t.getStyle("borderLeftWidth"),10)||0;p+=parseInt(t.getStyle("borderTopWidth"),10)||0}w=v.parentNode;while(w&&w!=s){if(!Ext.isOpera||(w.tagName!="TR"&&h(w).getStyle("display")!="inline")){b-=w.scrollLeft;p-=w.scrollTop}w=w.parentNode}return[b,p]},setXY:function(c,b){c=Ext.fly(c,"_setXY");c.position();var a=c.translatePoints(b);if(b[0]!==false){c.dom.style.left=a.left+"px"}if(b[1]!==false){c.dom.style.top=a.top+"px"}},setX:function(a,b){this.setXY(a,[b,false])},setY:function(b,a){this.setXY(b,[false,a])}};Ext.lib.Event=function(){var m=false;var l=[];var a=[];var c=0;var d=[];var n=0;var b=null;return{POLL_RETRYS:200,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,_interval:null,startInterval:function(){if(!this._interval){var j=this;var i=function(){j._tryPreloadAttach()};this._interval=setInterval(i,this.POLL_INTERVAL)}},onAvailable:function(p,j,k,i){d.push({id:p,fn:j,obj:k,override:i,checkReady:false});c=this.POLL_RETRYS;this.startInterval()},addListener:function(k,i,r){k=Ext.getDom(k);if(!k||!r){return false}if("unload"==i){a[a.length]=[k,i,r];return true}var s=function(o){return typeof Ext!="undefined"?r(Ext.lib.Event.getEvent(o)):false};var j=[k,i,r,s];var t=l.length;l[t]=j;this.doAdd(k,i,s,false);return true},removeListener:function(k,w,t){var u,x;k=Ext.getDom(k);if(!t){return this.purgeElement(k,false,w)}if("unload"==w){for(u=0,x=a.length;u<x;u++){var i=a[u];if(i&&i[0]==k&&i[1]==w&&i[2]==t){a.splice(u,1);return true}}return false}var j=null;var v=arguments[3];if("undefined"==typeof v){v=this._getCacheIndex(k,w,t)}if(v>=0){j=l[v]}if(!k||!j){return false}this.doRemove(k,w,j[this.WFN],false);delete l[v][this.WFN];delete l[v][this.FN];l.splice(v,1);return true},getTarget:function(k,i){k=k.browserEvent||k;var j=k.target||k.srcElement;return this.resolveTextNode(j)},resolveTextNode:function(i){if(Ext.isSafari&&i&&3==i.nodeType){return i.parentNode}else{return i}},getPageX:function(i){i=i.browserEvent||i;var j=i.pageX;if(!j&&0!==j){j=i.clientX||0;if(Ext.isIE){j+=this.getScroll()[1]}}return j},getPageY:function(j){j=j.browserEvent||j;var i=j.pageY;if(!i&&0!==i){i=j.clientY||0;if(Ext.isIE){i+=this.getScroll()[0]}}return i},getXY:function(i){i=i.browserEvent||i;return[this.getPageX(i),this.getPageY(i)]},getRelatedTarget:function(i){i=i.browserEvent||i;var j=i.relatedTarget;if(!j){if(i.type=="mouseout"){j=i.toElement}else{if(i.type=="mouseover"){j=i.fromElement}}}return this.resolveTextNode(j)},getTime:function(k){k=k.browserEvent||k;if(!k.time){var i=new Date().getTime();try{k.time=i}catch(j){this.lastError=j;return i}}return k.time},stopEvent:function(i){this.stopPropagation(i);this.preventDefault(i)},stopPropagation:function(i){i=i.browserEvent||i;if(i.stopPropagation){i.stopPropagation()}else{i.cancelBubble=true}},preventDefault:function(i){i=i.browserEvent||i;if(i.preventDefault){i.preventDefault()}else{i.returnValue=false}},getEvent:function(i){var j=i||window.event;if(!j){var k=this.getEvent.caller;while(k){j=k.arguments[0];if(j&&Event==j.constructor){break}k=k.caller}}return j},getCharCode:function(i){i=i.browserEvent||i;return i.charCode||i.keyCode||0},_getCacheIndex:function(k,t,r){for(var s=0,i=l.length;s<i;++s){var j=l[s];if(j&&j[this.FN]==r&&j[this.EL]==k&&j[this.TYPE]==t){return s}}return -1},elCache:{},getEl:function(i){return document.getElementById(i)},clearCache:function(){},_load:function(i){m=true;var j=Ext.lib.Event;if(Ext.isIE){j.doRemove(window,"load",j._load)}},_tryPreloadAttach:function(){if(this.locked){return false}this.locked=true;var k=!m;if(!k){k=(c>0)}var s=[];for(var i=0,j=d.length;i<j;++i){var t=d[i];if(t){var u=this.getEl(t.id);if(u){if(!t.checkReady||m||u.nextSibling||(document&&document.body)){var v=u;if(t.override){if(t.override===true){v=t.obj}else{v=t.override}}t.fn.call(v,t.obj);d[i]=null}}else{s.push(t)}}}c=(s.length===0)?0:c-1;if(k){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true},purgeElement:function(t,k,v){var j=this.getListeners(t,v);if(j){for(var u=0,i=j.length;u<i;++u){var w=j[u];this.removeListener(t,w.type,w.fn)}}if(k&&t&&t.childNodes){for(u=0,i=t.childNodes.length;u<i;++u){this.purgeElement(t.childNodes[u],k,v)}}},getListeners:function(w,A){var j=[],x;if(!A){x=[l,a]}else{if(A=="unload"){x=[a]}else{x=[l]}}for(var k=0;k<x.length;++k){var y=x[k];if(y&&y.length>0){for(var i=0,z=y.length;i<z;++i){var v=y[i];if(v&&v[this.EL]===w&&(!A||A===v[this.TYPE])){j.push({type:v[this.TYPE],fn:v[this.FN],obj:v[this.OBJ],adjust:v[this.ADJ_SCOPE],index:i})}}}}return(j.length)?j:null},_unload:function(j){var k=Ext.lib.Event,v,w,y,i,x;for(v=0,i=a.length;v<i;++v){y=a[v];if(y){var u=window;if(y[k.ADJ_SCOPE]){if(y[k.ADJ_SCOPE]===true){u=y[k.OBJ]}else{u=y[k.ADJ_SCOPE]}}y[k.FN].call(u,k.getEvent(j),y[k.OBJ]);a[v]=null;y=null;u=null}}a=null;if(l&&l.length>0){w=l.length;while(w){x=w-1;y=l[x];if(y){k.removeListener(y[k.EL],y[k.TYPE],y[k.FN],x)}w=w-1}y=null;k.clearCache()}k.doRemove(window,"unload",k._unload)},getScroll:function(){var j=document.documentElement,i=document.body;if(j&&(j.scrollTop||j.scrollLeft)){return[j.scrollTop,j.scrollLeft]}else{if(i){return[i.scrollTop,i.scrollLeft]}else{return[0,0]}}},doAdd:function(){if(window.addEventListener){return function(k,i,p,j){k.addEventListener(i,p,(j))}}else{if(window.attachEvent){return function(k,i,p,j){k.attachEvent("on"+i,p)}}else{return function(){}}}}(),doRemove:function(){if(window.removeEventListener){return function(k,i,p,j){k.removeEventListener(i,p,(j))}}else{if(window.detachEvent){return function(k,j,i){k.detachEvent("on"+j,i)}}else{return function(){}}}}()}}();var g=Ext.lib.Event;g.on=g.addListener;g.un=g.removeListener;if(document&&document.body){g._load()}else{g.doAdd(window,"load",g._load)}g.doAdd(window,"unload",g._unload);g._tryPreloadAttach();Ext.lib.Ajax={request:function(a,c,o,b,n){if(n){var m=n.headers;if(m){for(var d in m){if(m.hasOwnProperty(d)){this.initHeader(d,m[d],false)}}}if(n.xmlData){if(!m||!m["Content-Type"]){this.initHeader("Content-Type","text/xml",false)}a=(a?a:(n.method?n.method:"POST"));b=n.xmlData}else{if(n.jsonData){if(!m||!m["Content-Type"]){this.initHeader("Content-Type","application/json",false)}a=(a?a:(n.method?n.method:"POST"));b=typeof n.jsonData=="object"?Ext.encode(n.jsonData):n.jsonData}}}return this.asyncRequest(a,c,o,b)},serializeForm:function(q){if(typeof q=="string"){q=(document.getElementById(q)||document.forms[q])}var p,r,j,d,c="",a=false;for(var b=0;b<q.elements.length;b++){p=q.elements[b];d=q.elements[b].disabled;r=q.elements[b].name;j=q.elements[b].value;if(!d&&r){switch(p.type){case"select-one":case"select-multiple":for(var i=0;i<p.options.length;i++){if(p.options[i].selected){if(Ext.isIE){c+=encodeURIComponent(r)+"="+encodeURIComponent(p.options[i].attributes.value.specified?p.options[i].value:p.options[i].text)+"&"}else{c+=encodeURIComponent(r)+"="+encodeURIComponent(p.options[i].hasAttribute("value")?p.options[i].value:p.options[i].text)+"&"}}}break;case"radio":case"checkbox":if(p.checked){c+=encodeURIComponent(r)+"="+encodeURIComponent(j)+"&"}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(a==false){c+=encodeURIComponent(r)+"="+encodeURIComponent(j)+"&";a=true}break;default:c+=encodeURIComponent(r)+"="+encodeURIComponent(j)+"&";break}}}c=c.substr(0,c.length-1);return c},headers:{},hasHeaders:false,useDefaultHeader:true,defaultPostHeader:"application/x-www-form-urlencoded; charset=UTF-8",useDefaultXhrHeader:true,defaultXhrHeader:"XMLHttpRequest",hasDefaultHeaders:true,defaultHeaders:{},poll:{},timeout:{},pollInterval:50,transactionId:0,setProgId:function(a){this.activeX.unshift(a)},setDefaultPostHeader:function(a){this.useDefaultHeader=a},setDefaultXhrHeader:function(a){this.useDefaultXhrHeader=a},setPollingInterval:function(a){if(typeof a=="number"&&isFinite(a)){this.pollInterval=a}},createXhrObject:function(a){var b,i;try{i=new XMLHttpRequest();b={conn:i,tId:a}}catch(c){for(var d=0;d<this.activeX.length;++d){try{i=new ActiveXObject(this.activeX[d]);b={conn:i,tId:a};break}catch(c){}}}finally{return b}},getConnectionObject:function(){var b;var a=this.transactionId;try{b=this.createXhrObject(a);if(b){this.transactionId++}}catch(c){}finally{return b}},asyncRequest:function(a,d,b,j){var c=this.getConnectionObject();if(!c){return null}else{c.conn.open(a,d,true);if(this.useDefaultXhrHeader){if(!this.defaultHeaders["X-Requested-With"]){this.initHeader("X-Requested-With",this.defaultXhrHeader,true)}}if(j&&this.useDefaultHeader&&(!this.hasHeaders||!this.headers["Content-Type"])){this.initHeader("Content-Type",this.defaultPostHeader)}if(this.hasDefaultHeaders||this.hasHeaders){this.setHeader(c)}this.handleReadyState(c,b);c.conn.send(j||null);return c}},handleReadyState:function(b,a){var c=this;if(a&&a.timeout){this.timeout[b.tId]=window.setTimeout(function(){c.abort(b,a,true)},a.timeout)}this.poll[b.tId]=window.setInterval(function(){if(b.conn&&b.conn.readyState==4){window.clearInterval(c.poll[b.tId]);delete c.poll[b.tId];if(a&&a.timeout){window.clearTimeout(c.timeout[b.tId]);delete c.timeout[b.tId]}c.handleTransactionResponse(b,a)}},this.pollInterval)},handleTransactionResponse:function(b,a,m){if(!a){this.releaseObject(b);return}var d,l;try{if(b.conn.status!==undefined&&b.conn.status!=0){d=b.conn.status}else{d=13030}}catch(c){d=13030}if((d>=200&&d<300)||(Ext.isIE&&d==1223)){l=this.createResponseObject(b,a.argument);if(a.success){if(!a.scope){a.success(l)}else{a.success.apply(a.scope,[l])}}}else{switch(d){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:l=this.createExceptionObject(b.tId,a.argument,(m?m:false));if(a.failure){if(!a.scope){a.failure(l)}else{a.failure.apply(a.scope,[l])}}break;default:l=this.createResponseObject(b,a.argument);if(a.failure){if(!a.scope){a.failure(l)}else{a.failure.apply(a.scope,[l])}}}}this.releaseObject(b);l=null},createResponseObject:function(s,c){var o={};var a={};try{var q=s.conn.getAllResponseHeaders();var d=q.split("\n");for(var i=0;i<d.length;i++){var r=d[i].indexOf(":");if(r!=-1){a[d[i].substring(0,r)]=d[i].substring(r+2)}}}catch(b){}o.tId=s.tId;o.status=s.conn.status;o.statusText=s.conn.statusText;o.getResponseHeader=a;o.getAllResponseHeaders=q;o.responseText=s.conn.responseText;o.responseXML=s.conn.responseXML;if(typeof c!==undefined){o.argument=c}return o},createExceptionObject:function(a,m,p){var c=0;var b="communication failure";var n=-1;var o="transaction aborted";var d={};d.tId=a;if(p){d.status=n;d.statusText=o}else{d.status=c;d.statusText=b}if(m){d.argument=m}return d},initHeader:function(d,a,b){var c=(b)?this.defaultHeaders:this.headers;if(c[d]===undefined){c[d]=a}else{c[d]=a+","+c[d]}if(b){this.hasDefaultHeaders=true}else{this.hasHeaders=true}},setHeader:function(b){if(this.hasDefaultHeaders){for(var a in this.defaultHeaders){if(this.defaultHeaders.hasOwnProperty(a)){b.conn.setRequestHeader(a,this.defaultHeaders[a])}}}if(this.hasHeaders){for(var a in this.headers){if(this.headers.hasOwnProperty(a)){b.conn.setRequestHeader(a,this.headers[a])}}this.headers={};this.hasHeaders=false}},resetDefaultHeaders:function(){delete this.defaultHeaders;this.defaultHeaders={};this.hasDefaultHeaders=false},abort:function(b,a,c){if(this.isCallInProgress(b)){b.conn.abort();window.clearInterval(this.poll[b.tId]);delete this.poll[b.tId];if(c){delete this.timeout[b.tId]}this.handleTransactionResponse(b,a,true);return true}else{return false}},isCallInProgress:function(a){if(a.conn){return a.conn.readyState!=4&&a.conn.readyState!=0}else{return false}},releaseObject:function(a){a.conn=null;a=null},activeX:["MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"]};Ext.lib.Region=function(b,a,d,c){this.top=b;this[1]=b;this.right=a;this.bottom=d;this.left=c;this[0]=c};Ext.lib.Region.prototype={contains:function(a){return(a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom)},getArea:function(){return((this.bottom-this.top)*(this.right-this.left))},intersect:function(a){var c=Math.max(this.top,a.top);var b=Math.min(this.right,a.right);var j=Math.min(this.bottom,a.bottom);var d=Math.max(this.left,a.left);if(j>=c&&b>=d){return new Ext.lib.Region(c,b,j,d)}else{return null}},union:function(a){var c=Math.min(this.top,a.top);var b=Math.max(this.right,a.right);var j=Math.max(this.bottom,a.bottom);var d=Math.min(this.left,a.left);return new Ext.lib.Region(c,b,j,d)},constrainTo:function(a){this.top=this.top.constrain(a.top,a.bottom);this.bottom=this.bottom.constrain(a.top,a.bottom);this.left=this.left.constrain(a.left,a.right);this.right=this.right.constrain(a.left,a.right);return this},adjust:function(b,c,d,a){this.top+=b;this.left+=c;this.right+=a;this.bottom+=d;return this}};Ext.lib.Region.getRegion=function(c){var a=Ext.lib.Dom.getXY(c);var d=a[1];var b=a[0]+c.offsetWidth;var l=a[1]+c.offsetHeight;var k=a[0];return new Ext.lib.Region(d,b,l,k)};Ext.lib.Point=function(b,a){if(Ext.isArray(b)){a=b[1];b=b[0]}this.x=this.right=this.left=this[0]=b;this.y=this.top=this.bottom=this[1]=a};Ext.lib.Point.prototype=new Ext.lib.Region();Ext.lib.Anim={scroll:function(c,k,b,a,l,d){return this.run(c,k,b,a,l,d,Ext.lib.Scroll)},motion:function(c,k,b,a,l,d){return this.run(c,k,b,a,l,d,Ext.lib.Motion)},color:function(c,k,b,a,l,d){return this.run(c,k,b,a,l,d,Ext.lib.ColorAnim)},run:function(d,o,b,a,p,m,n){n=n||Ext.lib.AnimBase;if(typeof a=="string"){a=Ext.lib.Easing[a]}var c=new n(d,o,b,a);c.animateX(function(){Ext.callback(p,m)});return c}};function h(a){if(!e){e=new Ext.Element.Flyweight()}e.dom=a;return e}if(Ext.isIE){function f(){var a=Function.prototype;delete a.createSequence;delete a.defer;delete a.createDelegate;delete a.createCallback;delete a.createInterceptor;window.detachEvent("onunload",f)}window.attachEvent("onunload",f)}Ext.lib.AnimBase=function(c,d,b,a){if(c){this.init(c,d,b,a)}};Ext.lib.AnimBase.prototype={toString:function(){var b=this.getEl();var a=b.id||b.tagName;return("Anim "+a)},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(c,a,b){return this.method(this.currentFrame,a,b-a,this.totalFrames)},setAttribute:function(c,a,b){if(this.patterns.noNegatives.test(c)){a=(a>0)?a:0}Ext.fly(this.getEl(),"_anim").setStyle(c,a+b)},getAttribute:function(l){var d=this.getEl();var b=h(d).getStyle(l);if(b!=="auto"&&!this.patterns.offsetUnit.test(b)){return parseFloat(b)}var k=this.patterns.offsetAttribute.exec(l)||[];var a=!!(k[3]);var c=!!(k[2]);if(c||(h(d).getStyle("position")=="absolute"&&a)){b=d["offset"+k[0].charAt(0).toUpperCase()+k[0].substr(1)]}else{b=0}return b},getDefaultUnit:function(a){if(this.patterns.defaultUnit.test(a)){return"px"}return""},animateX:function(a,c){var b=function(){this.onComplete.removeListener(b);if(typeof a=="function"){a.call(c||this,this)}};this.onComplete.addListener(b,this);this.animate()},setRuntimeAttribute:function(m){var a;var i;var d=this.attributes;this.runtimeAttributes[m]={};var b=function(j){return(typeof j!=="undefined")};if(!b(d[m]["to"])&&!b(d[m]["by"])){return false}a=(b(d[m]["from"]))?d[m]["from"]:this.getAttribute(m);if(b(d[m]["to"])){i=d[m]["to"]}else{if(b(d[m]["by"])){if(a.constructor==Array){i=[];for(var c=0,n=a.length;c<n;++c){i[c]=a[c]+d[m]["by"][c]}}else{i=a+d[m]["by"]}}}this.runtimeAttributes[m].start=a;this.runtimeAttributes[m].end=i;this.runtimeAttributes[m].unit=(b(d[m].unit))?d[m]["unit"]:this.getDefaultUnit(m)},init:function(r,c,d,t){var s=false;var q=null;var o=0;r=Ext.getDom(r);this.attributes=c||{};this.duration=d||1;this.method=t||Ext.lib.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=Ext.lib.AnimMgr.fps;this.getEl=function(){return r};this.isAnimated=function(){return s};this.getStartTime=function(){return q};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(Ext.lib.AnimMgr.fps*this.duration):this.duration;Ext.lib.AnimMgr.registerElement(this)};this.stop=function(i){if(i){this.currentFrame=this.totalFrames;this._onTween.fire()}Ext.lib.AnimMgr.stop(this)};var a=function(){this.onStart.fire();this.runtimeAttributes={};for(var i in this.attributes){this.setRuntimeAttribute(i)}s=true;o=0;q=new Date()};var b=function(){var i={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};i.toString=function(){return("duration: "+i.duration+", currentFrame: "+i.currentFrame)};this.onTween.fire(i);var j=this.runtimeAttributes;for(var k in j){this.setAttribute(k,this.doMethod(k,j[k].start,j[k].end),j[k].unit)}o+=1};var p=function(){var j=(new Date()-q)/1000;var i={duration:j,frames:o,fps:o/j};i.toString=function(){return("duration: "+i.duration+", frames: "+i.frames+", fps: "+i.fps)};s=false;o=0;this.onComplete.fire(i)};this._onStart=new Ext.util.Event(this);this.onStart=new Ext.util.Event(this);this.onTween=new Ext.util.Event(this);this._onTween=new Ext.util.Event(this);this.onComplete=new Ext.util.Event(this);this._onComplete=new Ext.util.Event(this);this._onStart.addListener(a);this._onTween.addListener(b);this._onComplete.addListener(p)}};Ext.lib.AnimMgr=new function(){var c=null;var d=[];var j=0;this.fps=1000;this.delay=1;this.registerElement=function(i){d[d.length]=i;j+=1;i._onStart.fire();this.start()};this.unRegister=function(i,l){i._onComplete.fire();l=l||a(i);if(l!=-1){d.splice(l,1)}j-=1;if(j<=0){this.stop()}};this.start=function(){if(c===null){c=setInterval(this.run,this.delay)}};this.stop=function(i){if(!i){clearInterval(c);for(var m=0,n=d.length;m<n;++m){if(d[0].isAnimated()){this.unRegister(d[0],0)}}d=[];c=null;j=0}else{this.unRegister(i)}};this.run=function(){for(var i=0,n=d.length;i<n;++i){var m=d[i];if(!m||!m.isAnimated()){continue}if(m.currentFrame<m.totalFrames||m.totalFrames===null){m.currentFrame+=1;if(m.useSeconds){b(m)}m._onTween.fire()}else{Ext.lib.AnimMgr.stop(m,i)}}};var a=function(i){for(var m=0,n=d.length;m<n;++m){if(d[m]==i){return m}}return -1};var b=function(q){var t=q.totalFrames;var i=q.currentFrame;var p=(q.currentFrame*q.duration*1000/q.totalFrames);var r=(new Date()-q.getStartTime());var s=0;if(r<q.duration*1000){s=Math.round((r/p-1)*q.currentFrame)}else{s=t-(i+1)}if(s>0&&isFinite(s)){if(q.currentFrame+s>=t){s=t-(i+1)}q.currentFrame+=s}}};Ext.lib.Bezier=new function(){this.getPosition=function(b,c){var a=b.length;var d=[];for(var i=0;i<a;++i){d[i]=[b[i][0],b[i][1]]}for(var j=1;j<a;++j){for(i=0;i<a-j;++i){d[i][0]=(1-c)*d[i][0]+c*d[parseInt(i+1,10)][0];d[i][1]=(1-c)*d[i][1]+c*d[parseInt(i+1,10)][1]}}return[d[0][0],d[0][1]]}};(function(){Ext.lib.ColorAnim=function(m,n,l,d){Ext.lib.ColorAnim.superclass.constructor.call(this,m,n,l,d)};Ext.extend(Ext.lib.ColorAnim,Ext.lib.AnimBase);var b=Ext.lib;var a=b.ColorAnim.superclass;var c=b.ColorAnim.prototype;c.toString=function(){var j=this.getEl();var d=j.id||j.tagName;return("ColorAnim "+d)};c.patterns.color=/color$/i;c.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;c.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;c.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;c.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;c.parseColor=function(j){if(j.length==3){return j}var d=this.patterns.hex.exec(j);if(d&&d.length==4){return[parseInt(d[1],16),parseInt(d[2],16),parseInt(d[3],16)]}d=this.patterns.rgb.exec(j);if(d&&d.length==4){return[parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10)]}d=this.patterns.hex3.exec(j);if(d&&d.length==4){return[parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16),parseInt(d[3]+d[3],16)]}return null};c.getAttribute=function(n){var l=this.getEl();if(this.patterns.color.test(n)){var d=h(l).getStyle(n);if(this.patterns.transparent.test(d)){var m=l.parentNode;d=h(m).getStyle(n);while(m&&this.patterns.transparent.test(d)){m=m.parentNode;d=h(m).getStyle(n);if(m.tagName.toUpperCase()=="HTML"){d="#fff"}}}}else{d=a.getAttribute.call(this,n)}return d};c.doMethod=function(p,r,o){var d;if(this.patterns.color.test(p)){d=[];for(var i=0,q=r.length;i<q;++i){d[i]=a.doMethod.call(this,p,r[i],o[i])}d="rgb("+Math.floor(d[0])+","+Math.floor(d[1])+","+Math.floor(d[2])+")"}else{d=a.doMethod.call(this,p,r,o)}return d};c.setRuntimeAttribute=function(p){a.setRuntimeAttribute.call(this,p);if(this.patterns.color.test(p)){var i=this.attributes;var r=this.parseColor(this.runtimeAttributes[p].start);var o=this.parseColor(this.runtimeAttributes[p].end);if(typeof i[p]["to"]==="undefined"&&typeof i[p]["by"]!=="undefined"){o=this.parseColor(i[p].by);for(var d=0,q=r.length;d<q;++d){o[d]=r[d]+o[d]}}this.runtimeAttributes[p].start=r;this.runtimeAttributes[p].end=o}}})();Ext.lib.Easing={easeNone:function(c,d,a,b){return a*c/b+d},easeIn:function(c,d,a,b){return a*(c/=b)*c+d},easeOut:function(c,d,a,b){return -a*(c/=b)*(c-2)+d},easeBoth:function(c,d,a,b){if((c/=b/2)<1){return a/2*c*c+d}return -a/2*((--c)*(c-2)-1)+d},easeInStrong:function(c,d,a,b){return a*(c/=b)*c*c*c+d},easeOutStrong:function(c,d,a,b){return -a*((c=c/b-1)*c*c*c-1)+d},easeBothStrong:function(c,d,a,b){if((c/=b/2)<1){return a/2*c*c*c*c+d}return -a/2*((c-=2)*c*c*c-2)+d},elasticIn:function(l,n,a,b,m,c){if(l==0){return n}if((l/=b)==1){return n+a}if(!c){c=b*0.3}if(!m||m<Math.abs(a)){m=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/m)}return -(m*Math.pow(2,10*(l-=1))*Math.sin((l*b-d)*(2*Math.PI)/c))+n},elasticOut:function(l,n,a,b,m,c){if(l==0){return n}if((l/=b)==1){return n+a}if(!c){c=b*0.3}if(!m||m<Math.abs(a)){m=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/m)}return m*Math.pow(2,-10*l)*Math.sin((l*b-d)*(2*Math.PI)/c)+a+n},elasticBoth:function(l,n,a,b,m,c){if(l==0){return n}if((l/=b/2)==2){return n+a}if(!c){c=b*(0.3*1.5)}if(!m||m<Math.abs(a)){m=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/m)}if(l<1){return -0.5*(m*Math.pow(2,10*(l-=1))*Math.sin((l*b-d)*(2*Math.PI)/c))+n}return m*Math.pow(2,-10*(l-=1))*Math.sin((l*b-d)*(2*Math.PI)/c)*0.5+a+n},backIn:function(d,j,a,b,c){if(typeof c=="undefined"){c=1.70158}return a*(d/=b)*d*((c+1)*d-c)+j},backOut:function(d,j,a,b,c){if(typeof c=="undefined"){c=1.70158}return a*((d=d/b-1)*d*((c+1)*d+c)+1)+j},backBoth:function(d,j,a,b,c){if(typeof c=="undefined"){c=1.70158}if((d/=b/2)<1){return a/2*(d*d*(((c*=(1.525))+1)*d-c))+j}return a/2*((d-=2)*d*(((c*=(1.525))+1)*d+c)+2)+j},bounceIn:function(c,d,a,b){return a-Ext.lib.Easing.bounceOut(b-c,0,a,b)+d},bounceOut:function(c,d,a,b){if((c/=b)<(1/2.75)){return a*(7.5625*c*c)+d}else{if(c<(2/2.75)){return a*(7.5625*(c-=(1.5/2.75))*c+0.75)+d}else{if(c<(2.5/2.75)){return a*(7.5625*(c-=(2.25/2.75))*c+0.9375)+d}}}return a*(7.5625*(c-=(2.625/2.75))*c+0.984375)+d},bounceBoth:function(c,d,a,b){if(c<b/2){return Ext.lib.Easing.bounceIn(c*2,0,a,b)*0.5+d}return Ext.lib.Easing.bounceOut(c*2-b,0,a,b)*0.5+a*0.5+d}};(function(){Ext.lib.Motion=function(o,p,n,i){if(o){Ext.lib.Motion.superclass.constructor.call(this,o,p,n,i)}};Ext.extend(Ext.lib.Motion,Ext.lib.ColorAnim);var b=Ext.lib;var a=b.Motion.superclass;var d=b.Motion.prototype;d.toString=function(){var l=this.getEl();var i=l.id||l.tagName;return("Motion "+i)};d.patterns.points=/^points$/i;d.setAttribute=function(n,i,m){if(this.patterns.points.test(n)){m=m||"px";a.setAttribute.call(this,"left",i[0],m);a.setAttribute.call(this,"top",i[1],m)}else{a.setAttribute.call(this,n,i,m)}};d.getAttribute=function(l){if(this.patterns.points.test(l)){var i=[a.getAttribute.call(this,"left"),a.getAttribute.call(this,"top")]}else{i=a.getAttribute.call(this,l)}return i};d.doMethod=function(q,r,p){var i=null;if(this.patterns.points.test(q)){var o=this.method(this.currentFrame,0,100,this.totalFrames)/100;i=b.Bezier.getPosition(this.runtimeAttributes[q],o)}else{i=a.doMethod.call(this,q,r,p)}return i};d.setRuntimeAttribute=function(B){if(this.patterns.points.test(B)){var z=this.getEl();var x=this.attributes;var A;var v=x.points.control||[];var y;var u,i;if(v.length>0&&!Ext.isArray(v[0])){v=[v]}else{var w=[];for(u=0,i=v.length;u<i;++u){w[u]=v[u]}v=w}Ext.fly(z,"_anim").position();if(c(x.points.from)){Ext.lib.Dom.setXY(z,x.points.from)}else{Ext.lib.Dom.setXY(z,Ext.lib.Dom.getXY(z))}A=this.getAttribute("points");if(c(x.points.to)){y=j.call(this,x.points.to,A);var t=Ext.lib.Dom.getXY(this.getEl());for(u=0,i=v.length;u<i;++u){v[u]=j.call(this,v[u],A)}}else{if(c(x.points.by)){y=[A[0]+x.points.by[0],A[1]+x.points.by[1]];for(u=0,i=v.length;u<i;++u){v[u]=[A[0]+v[u][0],A[1]+v[u][1]]}}}this.runtimeAttributes[B]=[A];if(v.length>0){this.runtimeAttributes[B]=this.runtimeAttributes[B].concat(v)}this.runtimeAttributes[B][this.runtimeAttributes[B].length]=y}else{a.setRuntimeAttribute.call(this,B)}};var j=function(n,i){var m=Ext.lib.Dom.getXY(this.getEl());n=[n[0]-m[0]+i[0],n[1]-m[1]+i[1]];return n};var c=function(i){return(typeof i!=="undefined")}})();(function(){Ext.lib.Scroll=function(m,n,l,d){if(m){Ext.lib.Scroll.superclass.constructor.call(this,m,n,l,d)}};Ext.extend(Ext.lib.Scroll,Ext.lib.ColorAnim);var b=Ext.lib;var a=b.Scroll.superclass;var c=b.Scroll.prototype;c.toString=function(){var j=this.getEl();var d=j.id||j.tagName;return("Scroll "+d)};c.doMethod=function(n,d,m){var l=null;if(n=="scroll"){l=[this.method(this.currentFrame,d[0],m[0]-d[0],this.totalFrames),this.method(this.currentFrame,d[1],m[1]-d[1],this.totalFrames)]}else{l=a.doMethod.call(this,n,d,m)}return l};c.getAttribute=function(l){var d=null;var k=this.getEl();if(l=="scroll"){d=[k.scrollLeft,k.scrollTop]}else{d=a.getAttribute.call(this,l)}return d};c.setAttribute=function(n,d,l){var m=this.getEl();if(n=="scroll"){m.scrollLeft=d[0];m.scrollTop=d[1]}else{a.setAttribute.call(this,n,d,l)}}})()})();