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