Ext={version:"2.1"};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),isSafari3=isSafari&&ua.indexOf("webkit/5")!=-1,isIE=!isOpera&&ua.indexOf("msie")>-1,isIE7=!isOpera&&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),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]}}},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.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(!Ext.isArray(array)){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"){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"}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.pop=="function"},isDate:function(v){return v&&typeof v.getFullYear=="function"},isOpera:isOpera,isSafari:isSafari,isSafari3:isSafari3,isSafari2:isSafari&&!isSafari3,isIE:isIE,isIE6:isIE&&!isIE7,isIE7:isIE7,isGecko:isGecko,isBorderBox:isBorderBox,isLinux:isLinux,isWindows:isWindows,isMac:isMac,isAir:isAir,useShims:((isIE&&!isIE7)||(isGecko&&isMac))});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 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){c=" "}while(a.length<d){a=c+a}return a.toString()},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};String.prototype.trim=function(){var a=/^\s+|\s+$/g;return function(){return this.replace(a,"")}}();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)}return this}});Date.prototype.getElapsed=function(a){return Math.abs((a||new Date()).getTime()-this.getTime())};if(typeof jQuery=="undefined"){throw"Unable to load Ext, jQuery not found."}(function(){var c;Ext.lib.Dom={getViewWidth:function(d){return d?Math.max(jQuery(document).width(),jQuery(window).width()):jQuery(window).width()},getViewHeight:function(d){return d?Math.max(jQuery(document).height(),jQuery(window).height()):jQuery(window).height()},isAncestor:function(e,d){e=Ext.getDom(e);d=Ext.getDom(d);if(!e||!d){return false}if(e.contains&&!Ext.isSafari){return e.contains(d)}else{if(e.compareDocumentPosition){return !!(e.compareDocumentPosition(d)&16)}else{var f=d.parentNode;while(f){if(f==e){return true}else{if(!f.tagName||f.tagName.toUpperCase()=="HTML"){return false}}f=f.parentNode}return false}}},getRegion:function(d){return Ext.lib.Region.getRegion(d)},getY:function(d){return this.getXY(d)[1]},getX:function(d){return this.getXY(d)[0]},getXY:function(n){var o,j,h,g,k=(document.body||document.documentElement);n=Ext.getDom(n);if(n==k){return[0,0]}if(n.getBoundingClientRect){h=n.getBoundingClientRect();g=b(document).getScroll();return[h.left+g.left,h.top+g.top]}var f=0,i=0;o=n;var d=b(n).getStyle("position")=="absolute";while(o){f+=o.offsetLeft;i+=o.offsetTop;if(!d&&b(o).getStyle("position")=="absolute"){d=true}if(Ext.isGecko){j=b(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&&d){f-=k.offsetLeft;i-=k.offsetTop}if(Ext.isGecko&&!d){var l=b(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"&&b(o).getStyle("display")!="inline")){f-=o.scrollLeft;i-=o.scrollTop}o=o.parentNode}return[f,i]},setXY:function(f,e){f=Ext.fly(f,"_setXY");f.position();var d=f.translatePoints(e);if(e[0]!==false){f.dom.style.left=d.left+"px"}if(e[1]!==false){f.dom.style.top=d.top+"px"}},setX:function(d,e){this.setXY(d,[e,false])},setY:function(e,d){this.setXY(e,[false,d])}};function b(d){if(!c){c=new Ext.Element.Flyweight()}c.dom=d;return c}Ext.lib.Event={getPageX:function(d){d=d.browserEvent||d;return d.pageX},getPageY:function(d){d=d.browserEvent||d;return d.pageY},getXY:function(d){d=d.browserEvent||d;return[d.pageX,d.pageY]},getTarget:function(d){return d.target},on:function(d,h,e,f,g){jQuery(d).bind(h,e)},un:function(d,f,e){jQuery(d).unbind(f,e)},purgeElement:function(d){jQuery(d).unbind()},preventDefault:function(d){d=d.browserEvent||d;if(d.preventDefault){d.preventDefault()}else{d.returnValue=false}},stopPropagation:function(d){d=d.browserEvent||d;if(d.stopPropagation){d.stopPropagation()}else{d.cancelBubble=true}},stopEvent:function(d){this.preventDefault(d);this.stopPropagation(d)},onAvailable:function(d,h,i){var e=new Date();var g=function(){if(e.getElapsed()>10000){clearInterval(f)}var j=document.getElementById(d);if(j){clearInterval(f);h.call(i||window,j)}};var f=setInterval(g,50)},resolveTextNode:function(d){if(d&&3==d.nodeType){return d.parentNode}else{return d}},getRelatedTarget:function(d){d=d.browserEvent||d;var e=d.relatedTarget;if(!e){if(d.type=="mouseout"){e=d.toElement}else{if(d.type=="mouseover"){e=d.fromElement}}}return this.resolveTextNode(e)}};Ext.lib.Ajax=function(){var d=function(e){return function(f,g){if((g=="error"||g=="timeout")&&e.failure){e.failure.call(e.scope||window,{responseText:f.responseText,responseXML:f.responseXML,argument:e.argument})}else{if(e.success){e.success.call(e.scope||window,{responseText:f.responseText,responseXML:f.responseXML,argument:e.argument})}}}};return{request:function(e,h,k,g,j){var f={type:e,url:h,data:g,timeout:k.timeout,complete:d(k)};if(j){var i=j.headers;if(j.xmlData){f.data=j.xmlData;f.processData=false;f.type=(e?e:(j.method?j.method:"POST"));if(!i||!i["Content-Type"]){f.contentType="text/xml"}}else{if(j.jsonData){f.data=typeof j.jsonData=="object"?Ext.encode(j.jsonData):j.jsonData;f.processData=false;f.type=(e?e:(j.method?j.method:"POST"));if(!i||!i["Content-Type"]){f.contentType="application/json"}}}if(i){f.beforeSend=function(m){for(var l in i){if(i.hasOwnProperty(l)){m.setRequestHeader(l,i[l])}}}}}jQuery.ajax(f)},formRequest:function(f,g,i,e,j,h){jQuery.ajax({type:Ext.getDom(f).method||"POST",url:g,data:jQuery(f).serialize()+(e?"&"+e:""),timeout:i.timeout,complete:d(i)})},isCallInProgress:function(e){return false},abort:function(e){return false},serializeForm:function(e){return jQuery(e.dom||e).serialize()}}}();Ext.lib.Anim=function(){var d=function(g,f){var e=true;return{stop:function(h){},isAnimated:function(){return e},proxyCallback:function(){e=false;Ext.callback(g,f)}}};return{scroll:function(h,j,f,e,k,i){var g=d(k,i);h=Ext.getDom(h);if(typeof j.scroll.to[0]=="number"){h.scrollLeft=j.scroll.to[0]}if(typeof j.scroll.to[1]=="number"){h.scrollTop=j.scroll.to[1]}g.proxyCallback();return g},motion:function(g,i,f,e,j,h){return this.run(g,i,f,e,j,h)},color:function(h,j,f,e,k,i){var g=d(k,i);g.proxyCallback();return g},run:function(q,i,n,j,p,g,h){var m=d(p,g),l=Ext.fly(q,"_animrun");var r={};for(var o in i){if(i[o].from){if(o!="points"){l.setStyle(o,i[o].from)}}switch(o){case"points":var k,e;l.position();if(k=i.points.by){var f=l.getXY();e=l.translatePoints([f[0]+k[0],f[1]+k[1]])}else{e=l.translatePoints(i.points.to)}r.left=e.left;r.top=e.top;if(!parseInt(l.getStyle("left"),10)){l.setLeft(0)}if(!parseInt(l.getStyle("top"),10)){l.setTop(0)}if(i.points.from){l.setXY(i.points.from)}break;case"width":r.width=i.width.to;break;case"height":r.height=i.height.to;break;case"opacity":r.opacity=i.opacity.to;break;case"left":r.left=i.left.to;break;case"top":r.top=i.top.to;break;default:r[o]=i[o].to;break}}jQuery(q).animate(r,n*1000,undefined,m.proxyCallback);return m}}}();Ext.lib.Region=function(e,d,g,f){this.top=e;this[1]=e;this.right=d;this.bottom=g;this.left=f;this[0]=f};Ext.lib.Region.prototype={contains:function(d){return(d.left>=this.left&&d.right<=this.right&&d.top>=this.top&&d.bottom<=this.bottom)},getArea:function(){return((this.bottom-this.top)*(this.right-this.left))},intersect:function(d){var f=Math.max(this.top,d.top);var e=Math.min(this.right,d.right);var h=Math.min(this.bottom,d.bottom);var g=Math.max(this.left,d.left);if(h>=f&&e>=g){return new Ext.lib.Region(f,e,h,g)}else{return null}},union:function(d){var f=Math.min(this.top,d.top);var e=Math.max(this.right,d.right);var h=Math.max(this.bottom,d.bottom);var g=Math.min(this.left,d.left);return new Ext.lib.Region(f,e,h,g)},constrainTo:function(d){this.top=this.top.constrain(d.top,d.bottom);this.bottom=this.bottom.constrain(d.top,d.bottom);this.left=this.left.constrain(d.left,d.right);this.right=this.right.constrain(d.left,d.right);return this},adjust:function(e,f,g,d){this.top+=e;this.left+=f;this.right+=d;this.bottom+=g;return this}};Ext.lib.Region.getRegion=function(f){var d=Ext.lib.Dom.getXY(f);var g=d[1];var e=d[0]+f.offsetWidth;var i=d[1]+f.offsetHeight;var h=d[0];return new Ext.lib.Region(g,e,i,h)};Ext.lib.Point=function(e,d){if(Ext.isArray(e)){d=e[1];e=e[0]}this.x=this.right=this.left=this[0]=e;this.y=this.top=this.bottom=this[1]=d};Ext.lib.Point.prototype=new Ext.lib.Region();if(Ext.isIE){function a(){var d=Function.prototype;delete d.createSequence;delete d.defer;delete d.createDelegate;delete d.createCallback;delete d.createInterceptor;window.detachEvent("onunload",a)}window.attachEvent("onunload",a)}})();
