var Prototype={Version:"1.6.0.2",Browser:{IE:!!(window.attachEvent&&!window.opera),Opera:!!window.opera,WebKit:navigator.userAgent.indexOf("AppleWebKit/")>-1,Gecko:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")==-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},BrowserFeatures:{XPath:!!document.evaluate,ElementExtensions:!!window.HTMLElement,SpecificElementExtensions:document.createElement("div").__proto__&&document.createElement("div").__proto__!==document.createElement("form").__proto__},ScriptFragment:"<script[^>]*>([\\S\\s]*?)</script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(A){return A;
}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false;
}var Class={create:function(){var E=null,B=$A(arguments);if(Object.isFunction(B[0])){E=B.shift();
}function D(){this.initialize.apply(this,arguments);}Object.extend(D,Class.Methods);
D.superclass=E;D.subclasses=[];if(E){var C=function(){};C.prototype=E.prototype;D.prototype=new C;
E.subclasses.push(D);}for(var A=0;A<B.length;A++){D.addMethods(B[A]);}if(!D.prototype.initialize){D.prototype.initialize=Prototype.emptyFunction;
}D.prototype.constructor=D;return D;}};Class.Methods={addMethods:function(E){var H=this.superclass&&this.superclass.prototype;
var F=Object.keys(E);if(!Object.keys({toString:true}).length){F.push("toString","valueOf");
}for(var D=0,B=F.length;D<B;D++){var A=F[D],C=E[A];if(H&&Object.isFunction(C)&&C.argumentNames().first()=="$super"){var G=C,C=Object.extend((function(I){return function(){return H[I].apply(this,arguments);
};})(A).wrap(G),{valueOf:function(){return G;},toString:function(){return G.toString();
}});}this.prototype[A]=C;}return this;}};var Abstract={};Object.extend=function(A,B){for(var C in B){A[C]=B[C];
}return A;};Object.extend(Object,{inspect:function(B){try{if(Object.isUndefined(B)){return"undefined";
}if(B===null){return"null";}return B.inspect?B.inspect():String(B);}catch(A){if(A instanceof RangeError){return"...";
}throw A;}},toJSON:function(B){var A=typeof B;switch(A){case"undefined":case"function":case"unknown":return ;
case"boolean":return B.toString();}if(B===null){return"null";}if(B.toJSON){return B.toJSON();
}if(Object.isElement(B)){return ;}var D=[];for(var C in B){var E=Object.toJSON(B[C]);
if(!Object.isUndefined(E)){D.push(C.toJSON()+": "+E);}}return"{"+D.join(", ")+"}";
},toQueryString:function(A){return $H(A).toQueryString();},toHTML:function(A){return A&&A.toHTML?A.toHTML():String.interpret(A);
},keys:function(A){var C=[];for(var B in A){C.push(B);}return C;},values:function(A){var C=[];
for(var B in A){C.push(A[B]);}return C;},clone:function(A){return Object.extend({},A);
},isElement:function(A){return A&&A.nodeType==1;},isArray:function(A){return A!=null&&typeof A=="object"&&"splice" in A&&"join" in A;
},isHash:function(A){return A instanceof Hash;},isFunction:function(A){return typeof A=="function";
},isString:function(A){return typeof A=="string";},isNumber:function(A){return typeof A=="number";
},isUndefined:function(A){return typeof A=="undefined";}});Object.extend(Function.prototype,{argumentNames:function(){var A=this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").invoke("strip");
return A.length==1&&!A[0]?[]:A;},bind:function(){if(arguments.length<2&&Object.isUndefined(arguments[0])){return this;
}var B=this,C=$A(arguments),A=C.shift();return function(){return B.apply(A,C.concat($A(arguments)));
};},bindAsEventListener:function(){var B=this,C=$A(arguments),A=C.shift();return function(D){return B.apply(A,[D||window.event].concat(C));
};},curry:function(){if(!arguments.length){return this;}var A=this,B=$A(arguments);
return function(){return A.apply(this,B.concat($A(arguments)));};},delay:function(){var B=this,C=$A(arguments),A=C.shift()*1000;
return window.setTimeout(function(){return B.apply(B,C);},A);},wrap:function(A){var B=this;
return function(){return A.apply(this,[B.bind(this)].concat($A(arguments)));};},methodize:function(){if(this._methodized){return this._methodized;
}var A=this;return this._methodized=function(){return A.apply(null,[this].concat($A(arguments)));
};}});Function.prototype.defer=Function.prototype.delay.curry(0.01);Date.prototype.toJSON=function(){return'"'+this.getUTCFullYear()+"-"+(this.getUTCMonth()+1).toPaddedString(2)+"-"+this.getUTCDate().toPaddedString(2)+"T"+this.getUTCHours().toPaddedString(2)+":"+this.getUTCMinutes().toPaddedString(2)+":"+this.getUTCSeconds().toPaddedString(2)+'Z"';
};var Try={these:function(){var A;for(var B=0,C=arguments.length;B<C;B++){var E=arguments[B];
try{A=E();break;}catch(D){}}return A;}};RegExp.prototype.match=RegExp.prototype.test;
RegExp.escape=function(A){return String(A).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1");
};var PeriodicalExecuter=Class.create({initialize:function(A,B){this.callback=A;this.frequency=B;
this.currentlyExecuting=false;this.registerCallback();},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000);
},execute:function(){this.callback(this);},stop:function(){if(!this.timer){return ;
}clearInterval(this.timer);this.timer=null;},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;
this.execute();}finally{this.currentlyExecuting=false;}}}});Object.extend(String,{interpret:function(A){return A==null?"":String(A);
},specialChar:{"\b":"\\b","\t":"\\t","\n":"\\n","":"\\f","\n":"\\r","\\":"\\\\"}});
Object.extend(String.prototype,{gsub:function(D,E){var B="",C=this,A;E=arguments.callee.prepareReplacement(E);
while(C.length>0){if(A=C.match(D)){B+=C.slice(0,A.index);B+=String.interpret(E(A));
C=C.slice(A.index+A[0].length);}else{B+=C,C="";}}return B;},sub:function(B,C,A){C=this.gsub.prepareReplacement(C);
A=Object.isUndefined(A)?1:A;return this.gsub(B,function(D){if(--A<0){return D[0];
}return C(D);});},scan:function(B,A){this.gsub(B,A);return String(this);},truncate:function(A,B){A=A||30;
B=Object.isUndefined(B)?"...":B;return this.length>A?this.slice(0,A-B.length)+B:String(this);
},strip:function(){return this.replace(/^\s+/,"").replace(/\s+$/,"");},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"");
},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"");
},extractScripts:function(){var B=new RegExp(Prototype.ScriptFragment,"img");var A=new RegExp(Prototype.ScriptFragment,"im");
return(this.match(B)||[]).map(function(C){return(C.match(A)||["",""])[1];});},evalScripts:function(){return this.extractScripts().map(function(script){return eval(script);
});},escapeHTML:function(){var A=arguments.callee;A.text.data=this;return A.div.innerHTML;
},unescapeHTML:function(){var A=new Element("div");A.innerHTML=this.stripTags();return A.childNodes[0]?(A.childNodes.length>1?$A(A.childNodes).inject("",function(B,C){return B+C.nodeValue;
}):A.childNodes[0].nodeValue):"";},toQueryParams:function(B){var A=this.strip().match(/([^?#]*)(#.*)?$/);
if(!A){return{};}return A[1].split(B||"&").inject({},function(E,D){if((D=D.split("="))[0]){var C=decodeURIComponent(D.shift());
var F=D.length>1?D.join("="):D[0];if(F!=undefined){F=decodeURIComponent(F);}if(C in E){if(!Object.isArray(E[C])){E[C]=[E[C]];
}E[C].push(F);}else{E[C]=F;}}return E;});},toArray:function(){return this.split("");
},succ:function(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-1)+1);
},times:function(A){return A<1?"":new Array(A+1).join(this);},camelize:function(){var A=this.split("-"),D=A.length;
if(D==1){return A[0];}var C=this.charAt(0)=="-"?A[0].charAt(0).toUpperCase()+A[0].substring(1):A[0];
for(var B=1;B<D;B++){C+=A[B].charAt(0).toUpperCase()+A[B].substring(1);}return C;
},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase();
},underscore:function(){return this.gsub(/::/,"/").gsub(/([A-Z]+)([A-Z][a-z])/,"#{1}_#{2}").gsub(/([a-z\d])([A-Z])/,"#{1}_#{2}").gsub(/-/,"_").toLowerCase();
},dasherize:function(){return this.gsub(/_/,"-");},inspect:function(A){var B=this.gsub(/[\x00-\x1f\\]/,function(C){var D=String.specialChar[C[0]];
return D?D:"\\u00"+C[0].charCodeAt().toPaddedString(2,16);});if(A){return'"'+B.replace(/"/g,'\\"')+'"';
}return"'"+B.replace(/'/g,"\\'")+"'";},toJSON:function(){return this.inspect(true);
},unfilterJSON:function(A){return this.sub(A||Prototype.JSONFilter,"#{1}");},isJSON:function(){var A=this;
if(A.blank()){return false;}A=this.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,"");
return(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(A);},evalJSON:function(sanitize){var json=this.unfilterJSON();
try{if(!sanitize||json.isJSON()){return eval("("+json+")");}}catch(e){}throw new SyntaxError("Badly formed JSON string: "+this.inspect());
},include:function(A){return this.indexOf(A)>-1;},startsWith:function(A){return this.indexOf(A)===0;
},endsWith:function(B){var A=this.length-B.length;return A>=0&&this.lastIndexOf(B)===A;
},empty:function(){return this=="";},blank:function(){return/^\s*$/.test(this);},interpolate:function(A,B){return new Template(this,B).evaluate(A);
}});if(Prototype.Browser.WebKit||Prototype.Browser.IE){Object.extend(String.prototype,{escapeHTML:function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");
},unescapeHTML:function(){return this.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">");
}});}String.prototype.gsub.prepareReplacement=function(B){if(Object.isFunction(B)){return B;
}var A=new Template(B);return function(C){return A.evaluate(C);};};String.prototype.parseQuery=String.prototype.toQueryParams;
Object.extend(String.prototype.escapeHTML,{div:document.createElement("div"),text:document.createTextNode("")});
with(String.prototype.escapeHTML){div.appendChild(text);}var Template=Class.create({initialize:function(A,B){this.template=A.toString();
this.pattern=B||Template.Pattern;},evaluate:function(A){if(Object.isFunction(A.toTemplateReplacements)){A=A.toTemplateReplacements();
}return this.template.gsub(this.pattern,function(C){if(A==null){return"";}var D=C[1]||"";
if(D=="\\"){return C[2];}var F=A,B=C[3];var E=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;
C=E.exec(B);if(C==null){return D;}while(C!=null){var G=C[1].startsWith("[")?C[2].gsub("\\\\]","]"):C[1];
F=F[G];if(null==F||""==C[3]){break;}B=B.substring("["==C[3]?C[1].length:C[0].length);
C=E.exec(B);}return D+String.interpret(F);});}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;
var $break={};var Enumerable={each:function(B,A){var D=0;B=B.bind(A);try{this._each(function(E){B(E,D++);
});}catch(C){if(C!=$break){throw C;}}return this;},eachSlice:function(F,B,A){B=B?B.bind(A):Prototype.K;
var D=-F,C=[],E=this.toArray();while((D+=F)<E.length){C.push(E.slice(D,D+F));}return C.collect(B,A);
},all:function(B,A){B=B?B.bind(A):Prototype.K;var C=true;this.each(function(E,D){C=C&&!!B(E,D);
if(!C){throw $break;}});return C;},any:function(B,A){B=B?B.bind(A):Prototype.K;var C=false;
this.each(function(E,D){if(C=!!B(E,D)){throw $break;}});return C;},collect:function(B,A){B=B?B.bind(A):Prototype.K;
var C=[];this.each(function(E,D){C.push(B(E,D));});return C;},detect:function(B,A){B=B.bind(A);
var C;this.each(function(E,D){if(B(E,D)){C=E;throw $break;}});return C;},findAll:function(B,A){B=B.bind(A);
var C=[];this.each(function(E,D){if(B(E,D)){C.push(E);}});return C;},grep:function(C,B,A){B=B?B.bind(A):Prototype.K;
var D=[];if(Object.isString(C)){C=new RegExp(C);}this.each(function(F,E){if(C.match(F)){D.push(B(F,E));
}});return D;},include:function(A){if(Object.isFunction(this.indexOf)){if(this.indexOf(A)!=-1){return true;
}}var B=false;this.each(function(C){if(C==A){B=true;throw $break;}});return B;},inGroupsOf:function(B,A){A=Object.isUndefined(A)?null:A;
return this.eachSlice(B,function(C){while(C.length<B){C.push(A);}return C;});},inject:function(C,B,A){B=B.bind(A);
this.each(function(E,D){C=B(C,E,D);});return C;},invoke:function(A){var B=$A(arguments).slice(1);
return this.map(function(C){return C[A].apply(C,B);});},max:function(B,A){B=B?B.bind(A):Prototype.K;
var C;this.each(function(E,D){E=B(E,D);if(C==null||E>=C){C=E;}});return C;},min:function(B,A){B=B?B.bind(A):Prototype.K;
var C;this.each(function(E,D){E=B(E,D);if(C==null||E<C){C=E;}});return C;},partition:function(B,A){B=B?B.bind(A):Prototype.K;
var C=[],D=[];this.each(function(F,E){(B(F,E)?C:D).push(F);});return[C,D];},pluck:function(A){var B=[];
this.each(function(C){B.push(C[A]);});return B;},reject:function(B,A){B=B.bind(A);
var C=[];this.each(function(E,D){if(!B(E,D)){C.push(E);}});return C;},sortBy:function(B,A){B=B.bind(A);
return this.map(function(D,C){return{value:D,criteria:B(D,C)};}).sort(function(D,C){var F=D.criteria,E=C.criteria;
return F<E?-1:F>E?1:0;}).pluck("value");},toArray:function(){return this.map();},zip:function(){var A=Prototype.K,C=$A(arguments);
if(Object.isFunction(C.last())){A=C.pop();}var B=[this].concat(C).map($A);return this.map(function(E,D){return A(B.pluck(D));
});},size:function(){return this.toArray().length;},inspect:function(){return"#<Enumerable:"+this.toArray().inspect()+">";
}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,filter:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray,every:Enumerable.all,some:Enumerable.any});
function $A(C){if(!C){return[];}if(C.toArray){return C.toArray();}var A=C.length||0,B=new Array(A);
while(A--){B[A]=C[A];}return B;}if(Prototype.Browser.WebKit){$A=function(C){if(!C){return[];
}if(!(Object.isFunction(C)&&C=="[object NodeList]")&&C.toArray){return C.toArray();
}var A=C.length||0,B=new Array(A);while(A--){B[A]=C[A];}return B;};}Array.from=$A;
Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse){Array.prototype._reverse=Array.prototype.reverse;
}Object.extend(Array.prototype,{_each:function(A){for(var B=0,C=this.length;B<C;B++){A(this[B]);
}},clear:function(){this.length=0;return this;},first:function(){return this[0];},last:function(){return this[this.length-1];
},compact:function(){return this.select(function(A){return A!=null;});},flatten:function(){return this.inject([],function(A,B){return A.concat(Object.isArray(B)?B.flatten():[B]);
});},without:function(){var A=$A(arguments);return this.select(function(B){return !A.include(B);
});},reverse:function(A){return(A!==false?this:this.toArray())._reverse();},reduce:function(){return this.length>1?this:this[0];
},uniq:function(A){return this.inject([],function(B,D,C){if(0==C||(A?B.last()!=D:!B.include(D))){B.push(D);
}return B;});},intersect:function(A){return this.uniq().findAll(function(B){return A.detect(function(C){return B===C;
});});},clone:function(){return[].concat(this);},size:function(){return this.length;
},inspect:function(){return"["+this.map(Object.inspect).join(", ")+"]";},toJSON:function(){var A=[];
this.each(function(B){var C=Object.toJSON(B);if(!Object.isUndefined(C)){A.push(C);
}});return"["+A.join(", ")+"]";}});if(Object.isFunction(Array.prototype.forEach)){Array.prototype._each=Array.prototype.forEach;
}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(C,A){A||(A=0);var B=this.length;
if(A<0){A=B+A;}for(;A<B;A++){if(this[A]===C){return A;}}return -1;};}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(C,A){A=isNaN(A)?this.length:(A<0?this.length+A:A)+1;
var B=this.slice(0,A).reverse().indexOf(C);return(B<0)?B:A-B-1;};}Array.prototype.toArray=Array.prototype.clone;
function $w(A){if(!Object.isString(A)){return[];}A=A.strip();return A?A.split(/\s+/):[];
}if(Prototype.Browser.Opera){Array.prototype.concat=function(){var B=[];for(var C=0,D=this.length;
C<D;C++){B.push(this[C]);}for(var C=0,D=arguments.length;C<D;C++){if(Object.isArray(arguments[C])){for(var E=0,A=arguments[C].length;
E<A;E++){B.push(arguments[C][E]);}}else{B.push(arguments[C]);}}return B;};}Object.extend(Number.prototype,{toColorPart:function(){return this.toPaddedString(2,16);
},succ:function(){return this+1;},times:function(A){$R(0,this,true).each(A);return this;
},toPaddedString:function(A,C){var B=this.toString(C||10);return"0".times(A-B.length)+B;
},toJSON:function(){return isFinite(this)?this.toString():"null";}});$w("abs round ceil floor").each(function(A){Number.prototype[A]=Math[A].methodize();
});function $H(A){return new Hash(A);}var Hash=Class.create(Enumerable,(function(){function A(B,C){if(Object.isUndefined(C)){return B;
}return B+"="+encodeURIComponent(String.interpret(C));}return{initialize:function(B){this._object=Object.isHash(B)?B.toObject():Object.clone(B);
},_each:function(C){for(var B in this._object){var D=this._object[B],E=[B,D];E.key=B;
E.value=D;C(E);}},set:function(B,C){return this._object[B]=C;},get:function(B){return this._object[B];
},unset:function(B){var C=this._object[B];delete this._object[B];return C;},toObject:function(){return Object.clone(this._object);
},keys:function(){return this.pluck("key");},values:function(){return this.pluck("value");
},index:function(C){var B=this.detect(function(D){return D.value===C;});return B&&B.key;
},merge:function(B){return this.clone().update(B);},update:function(B){return new Hash(B).inject(this,function(D,C){D.set(C.key,C.value);
return D;});},toQueryString:function(){return this.map(function(C){var B=encodeURIComponent(C.key),D=C.value;
if(D&&typeof D=="object"){if(Object.isArray(D)){return D.map(A.curry(B)).join("&");
}}return A(B,D);}).join("&");},inspect:function(){return"#<Hash:{"+this.map(function(B){return B.map(Object.inspect).join(": ");
}).join(", ")+"}>";},toJSON:function(){return Object.toJSON(this.toObject());},clone:function(){return new Hash(this);
}};})());Hash.prototype.toTemplateReplacements=Hash.prototype.toObject;Hash.from=$H;
var ObjectRange=Class.create(Enumerable,{initialize:function(C,B,A){this.start=C;
this.end=B;this.exclusive=A;},_each:function(A){var B=this.start;while(this.include(B)){A(B);
B=B.succ();}},include:function(A){if(A<this.start){return false;}if(this.exclusive){return A<this.end;
}return A<=this.end;}});var $R=function(C,B,A){return new ObjectRange(C,B,A);};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest();
},function(){return new ActiveXObject("Msxml2.XMLHTTP");},function(){return new ActiveXObject("Microsoft.XMLHTTP");
})||false;},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(A){this.responders._each(A);
},register:function(A){if(!this.include(A)){this.responders.push(A);}},unregister:function(A){this.responders=this.responders.without(A);
},dispatch:function(A,B,D,C){this.each(function(F){if(Object.isFunction(F[A])){try{F[A].apply(F,[B,D,C]);
}catch(E){}}});}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++;
},onComplete:function(){Ajax.activeRequestCount--;}});Ajax.Base=Class.create({initialize:function(A){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:"",evalJSON:true,evalJS:true};
Object.extend(this.options,A||{});this.options.method=this.options.method.toLowerCase();
if(Object.isString(this.options.parameters)){this.options.parameters=this.options.parameters.toQueryParams();
}else{if(Object.isHash(this.options.parameters)){this.options.parameters=this.options.parameters.toObject();
}}}});Ajax.Request=Class.create(Ajax.Base,{_complete:false,initialize:function($super,A,B){$super(B);
this.transport=Ajax.getTransport();this.request(A);},request:function(A){this.url=A;
this.method=this.options.method;var D=Object.clone(this.options.parameters);if(!["get","post"].include(this.method)){D["_method"]=this.method;
this.method="post";}this.parameters=D;if(D=Object.toQueryString(D)){if(this.method=="get"){this.url+=(this.url.include("?")?"&":"?")+D;
}else{if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){D+="&_=";}}}try{var C=new Ajax.Response(this);
if(this.options.onCreate){this.options.onCreate(C);}Ajax.Responders.dispatch("onCreate",this,C);
this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);
if(this.options.asynchronous){this.respondToReadyState.bind(this).defer(1);}this.transport.onreadystatechange=this.onStateChange.bind(this);
this.setRequestHeaders();this.body=this.method=="post"?(this.options.postBody||D):null;
this.transport.send(this.body);if(!this.options.asynchronous&&this.transport.overrideMimeType){this.onStateChange();
}}catch(B){this.dispatchException(B);}},onStateChange:function(){var A=this.transport.readyState;
if(A>1&&!((A==4)&&this._complete)){this.respondToReadyState(this.transport.readyState);
}},setRequestHeaders:function(){var A={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,"Accept":"text/javascript, text/html, application/xml, text/xml, */*"};
if(this.method=="post"){A["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:"");
if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005){A["Connection"]="close";
}}if(typeof this.options.requestHeaders=="object"){var C=this.options.requestHeaders;
if(Object.isFunction(C.push)){for(var B=0,D=C.length;B<D;B+=2){A[C[B]]=C[B+1];}}else{$H(C).each(function(F){A[F.key]=F.value;
});}}for(var E in A){this.transport.setRequestHeader(E,A[E]);}},success:function(){var A=this.getStatus();
return !A||(A>=200&&A<300);},getStatus:function(){try{return this.transport.status||0;
}catch(A){return 0;}},respondToReadyState:function(B){var E=Ajax.Request.Events[B],D=new Ajax.Response(this);
if(E=="Complete"){try{this._complete=true;(this.options["on"+D.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(D,D.headerJSON);
}catch(A){this.dispatchException(A);}var C=D.getHeader("Content-type");if(this.options.evalJS=="force"||(this.options.evalJS&&this.isSameOrigin()&&C&&C.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))){this.evalResponse();
}}try{(this.options["on"+E]||Prototype.emptyFunction)(D,D.headerJSON);Ajax.Responders.dispatch("on"+E,this,D,D.headerJSON);
}catch(A){this.dispatchException(A);}if(E=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction;
}},isSameOrigin:function(){var A=this.url.match(/^\s*https?:\/\/[^\/]*/);return !A||(A[0]=="#{protocol}//#{domain}#{port}".interpolate({protocol:location.protocol,domain:document.domain,port:location.port?":"+location.port:""}));
},getHeader:function(B){try{return this.transport.getResponseHeader(B)||null;}catch(A){return null;
}},evalResponse:function(){try{return eval((this.transport.responseText||"").unfilterJSON());
}catch(e){this.dispatchException(e);}},dispatchException:function(A){(this.options.onException||Prototype.emptyFunction)(this,A);
Ajax.Responders.dispatch("onException",this,A);}});Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];
Ajax.Response=Class.create({initialize:function(A){this.request=A;var D=this.transport=A.transport,B=this.readyState=D.readyState;
if((B>2&&!Prototype.Browser.IE)||B==4){this.status=this.getStatus();this.statusText=this.getStatusText();
this.responseText=String.interpret(D.responseText);this.headerJSON=this._getHeaderJSON();
}if(B==4){var C=D.responseXML;this.responseXML=Object.isUndefined(C)?null:C;this.responseJSON=this._getResponseJSON();
}},status:0,statusText:"",getStatus:Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||"";
}catch(A){return"";}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders();
}catch(A){return null;}},getResponseHeader:function(A){return this.transport.getResponseHeader(A);
},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders();
},_getHeaderJSON:function(){var B=this.getHeader("X-JSON");if(!B){return null;}B=decodeURIComponent(escape(B));
try{return B.evalJSON(this.request.options.sanitizeJSON||!this.request.isSameOrigin());
}catch(A){this.request.dispatchException(A);}},_getResponseJSON:function(){var B=this.request.options;
if(!B.evalJSON||(B.evalJSON!="force"&&!(this.getHeader("Content-type")||"").include("application/json"))||this.responseText.blank()){return null;
}try{return this.responseText.evalJSON(B.sanitizeJSON||!this.request.isSameOrigin());
}catch(A){this.request.dispatchException(A);}}});Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,C,A,B){this.container={success:(C.success||C),failure:(C.failure||(C.success?null:C))};
B=Object.clone(B);var D=B.onComplete;B.onComplete=(function(F,E){this.updateContent(F.responseText);
if(Object.isFunction(D)){D(F,E);}}).bind(this);$super(A,B);},updateContent:function(D){var B=this.container[this.success()?"success":"failure"],C=this.options;
if(!C.evalScripts){D=D.stripScripts();}if(B=$(B)){if(C.insertion){if(Object.isString(C.insertion)){var A={};
A[C.insertion]=D;B.insert(A);}else{C.insertion(B,D);}}else{B.update(D);}}}});Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,C,A,B){$super(B);
this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);
this.decay=(this.options.decay||1);this.updater={};this.container=C;this.url=A;this.start();
},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent();
},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);
(this.onComplete||Prototype.emptyFunction).apply(this,arguments);},updateComplete:function(A){if(this.options.decay){this.decay=(A.responseText==this.lastText?this.decay*this.options.decay:1);
this.lastText=A.responseText;}this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency);
},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options);
}});function $(D){if(arguments.length>1){for(var A=0,C=[],B=arguments.length;A<B;
A++){C.push($(arguments[A]));}return C;}if(Object.isString(D)){D=document.getElementById(D);
}return Element.extend(D);}if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(F,D){var E=[];
var A=document.evaluate(F,$(D)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
for(var B=0,C=A.snapshotLength;B<C;B++){E.push(Element.extend(A.snapshotItem(B)));
}return E;};}if(!window.Node){var Node={};}if(!Node.ELEMENT_NODE){Object.extend(Node,{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12});
}(function(){var A=this.Element;this.Element=function(B,D){D=D||{};B=B.toLowerCase();
var C=Element.cache;if(Prototype.Browser.IE&&D.name){B="<"+B+' name="'+D.name+'">';
delete D.name;return Element.writeAttribute(document.createElement(B),D);}if(!C[B]){C[B]=Element.extend(document.createElement(B));
}return Element.writeAttribute(C[B].cloneNode(false),D);};Object.extend(this.Element,A||{});
}).call(window);Element.cache={};Element.Methods={visible:function(A){return $(A).style.display!="none";
},toggle:function(A){A=$(A);Element[Element.visible(A)?"hide":"show"](A);return A;
},hide:function(A){$(A).style.display="none";return A;},show:function(A){$(A).style.display="";
return A;},remove:function(A){A=$(A);A.parentNode.removeChild(A);return A;},update:function(B,A){B=$(B);
if(A&&A.toElement){A=A.toElement();}if(Object.isElement(A)){return B.update().insert(A);
}A=Object.toHTML(A);B.innerHTML=A.stripScripts();A.evalScripts.bind(A).defer();return B;
},replace:function(B,A){B=$(B);if(A&&A.toElement){A=A.toElement();}else{if(!Object.isElement(A)){A=Object.toHTML(A);
var C=B.ownerDocument.createRange();C.selectNode(B);A.evalScripts.bind(A).defer();
A=C.createContextualFragment(A.stripScripts());}}B.parentNode.replaceChild(A,B);return B;
},insert:function(F,G){F=$(F);if(Object.isString(G)||Object.isNumber(G)||Object.isElement(G)||(G&&(G.toElement||G.toHTML))){G={bottom:G};
}var C,D,A,B;for(var E in G){C=G[E];E=E.toLowerCase();D=Element._insertionTranslations[E];
if(C&&C.toElement){C=C.toElement();}if(Object.isElement(C)){D(F,C);continue;}C=Object.toHTML(C);
A=((E=="before"||E=="after")?F.parentNode:F).tagName.toUpperCase();B=Element._getContentFromAnonymousElement(A,C.stripScripts());
if(E=="top"||E=="after"){B.reverse();}B.each(D.curry(F));C.evalScripts.bind(C).defer();
}return F;},wrap:function(C,A,B){C=$(C);if(Object.isElement(A)){$(A).writeAttribute(B||{});
}else{if(Object.isString(A)){A=new Element(A,B);}else{A=new Element("div",A);}}if(C.parentNode){C.parentNode.replaceChild(A,C);
}A.appendChild(C);return A;},inspect:function(B){B=$(B);var A="<"+B.tagName.toLowerCase();
$H({"id":"id","className":"class"}).each(function(C){var E=C.first(),D=C.last();var F=(B[E]||"").toString();
if(F){A+=" "+D+"="+F.inspect(true);}});return A+">";},recursivelyCollect:function(C,B){C=$(C);
var A=[];while(C=C[B]){if(C.nodeType==1){A.push(Element.extend(C));}}return A;},ancestors:function(A){return $(A).recursivelyCollect("parentNode");
},descendants:function(A){return $(A).select("*");},firstDescendant:function(A){A=$(A).firstChild;
while(A&&A.nodeType!=1){A=A.nextSibling;}return $(A);},immediateDescendants:function(A){if(!(A=$(A).firstChild)){return[];
}while(A&&A.nodeType!=1){A=A.nextSibling;}if(A){return[A].concat($(A).nextSiblings());
}return[];},previousSiblings:function(A){return $(A).recursivelyCollect("previousSibling");
},nextSiblings:function(A){return $(A).recursivelyCollect("nextSibling");},siblings:function(A){A=$(A);
return A.previousSiblings().reverse().concat(A.nextSiblings());},match:function(B,A){if(Object.isString(A)){A=new Selector(A);
}return A.match($(B));},up:function(C,D,B){C=$(C);if(arguments.length==1){return $(C.parentNode);
}var A=C.ancestors();return Object.isNumber(D)?A[D]:Selector.findElement(A,D,B);},down:function(B,C,A){B=$(B);
if(arguments.length==1){return B.firstDescendant();}return Object.isNumber(C)?B.descendants()[C]:B.select(C)[A||0];
},previous:function(C,D,B){C=$(C);if(arguments.length==1){return $(Selector.handlers.previousElementSibling(C));
}var A=C.previousSiblings();return Object.isNumber(D)?A[D]:Selector.findElement(A,D,B);
},next:function(C,D,B){C=$(C);if(arguments.length==1){return $(Selector.handlers.nextElementSibling(C));
}var A=C.nextSiblings();return Object.isNumber(D)?A[D]:Selector.findElement(A,D,B);
},select:function(){var B=$A(arguments),A=$(B.shift());return Selector.findChildElements(A,B);
},adjacent:function(){var B=$A(arguments),A=$(B.shift());return Selector.findChildElements(A.parentNode,B).without(A);
},identify:function(B){B=$(B);var C=B.readAttribute("id"),A=arguments.callee;if(C){return C;
}do{C="anonymous_element_"+A.counter++;}while($(C));B.writeAttribute("id",C);return C;
},readAttribute:function(C,A){C=$(C);if(Prototype.Browser.IE){var B=Element._attributeTranslations.read;
if(B.values[A]){return B.values[A](C,A);}if(B.names[A]){A=B.names[A];}if(A.include(":")){return(!C.attributes||!C.attributes[A])?null:C.attributes[A].value;
}}return C.getAttribute(A);},writeAttribute:function(D,B,C){D=$(D);var A={},E=Element._attributeTranslations.write;
if(typeof B=="object"){A=B;}else{A[B]=Object.isUndefined(C)?true:C;}for(var F in A){B=E.names[F]||F;
C=A[F];if(E.values[F]){B=E.values[F](D,C);}if(C===false||C===null){D.removeAttribute(B);
}else{if(C===true){D.setAttribute(B,B);}else{D.setAttribute(B,C);}}}return D;},getHeight:function(A){return $(A).getDimensions().height;
},getWidth:function(A){return $(A).getDimensions().width;},classNames:function(A){return new Element.ClassNames(A);
},hasClassName:function(C,A){if(!(C=$(C))){return ;}var B=C.className;return(B.length>0&&(B==A||new RegExp("(^|\\s)"+A+"(\\s|$)").test(B)));
},addClassName:function(B,A){if(!(B=$(B))){return ;}if(!B.hasClassName(A)){B.className+=(B.className?" ":"")+A;
}return B;},removeClassName:function(B,A){if(!(B=$(B))){return ;}B.className=B.className.replace(new RegExp("(^|\\s+)"+A+"(\\s+|$)")," ").strip();
return B;},toggleClassName:function(B,A){if(!(B=$(B))){return ;}return B[B.hasClassName(A)?"removeClassName":"addClassName"](A);
},cleanWhitespace:function(C){C=$(C);var B=C.firstChild;while(B){var A=B.nextSibling;
if(B.nodeType==3&&!/\S/.test(B.nodeValue)){C.removeChild(B);}B=A;}return C;},empty:function(A){return $(A).innerHTML.blank();
},descendantOf:function(E,D){E=$(E),D=$(D);var A=D;if(E.compareDocumentPosition){return(E.compareDocumentPosition(D)&8)===8;
}if(E.sourceIndex&&!Prototype.Browser.Opera){var C=E.sourceIndex,F=D.sourceIndex,B=D.nextSibling;
if(!B){do{D=D.parentNode;}while(!(B=D.nextSibling)&&D.parentNode);}if(B&&B.sourceIndex){return(C>F&&C<B.sourceIndex);
}}while(E=E.parentNode){if(E==A){return true;}}return false;},scrollTo:function(B){B=$(B);
var A=B.cumulativeOffset();window.scrollTo(A[0],A[1]);return B;},getStyle:function(C,A){C=$(C);
A=A=="float"?"cssFloat":A.camelize();var B=C.style[A];if(!B){var D=document.defaultView.getComputedStyle(C,null);
B=D?D[A]:null;}if(A=="opacity"){return B?parseFloat(B):1;}return B=="auto"?null:B;
},getOpacity:function(A){return $(A).getStyle("opacity");},setStyle:function(E,D){E=$(E);
var B=E.style,A;if(Object.isString(D)){E.style.cssText+=";"+D;return D.include("opacity")?E.setOpacity(D.match(/opacity:\s*(\d?\.?\d*)/)[1]):E;
}for(var C in D){if(C=="opacity"){E.setOpacity(D[C]);}else{B[(C=="float"||C=="cssFloat")?(Object.isUndefined(B.styleFloat)?"cssFloat":"styleFloat"):C]=D[C];
}}return E;},setOpacity:function(B,A){B=$(B);B.style.opacity=(A==1||A==="")?"":(A<1e-05)?0:A;
return B;},getDimensions:function(B){B=$(B);var H=$(B).getStyle("display");if(H!="none"&&H!=null){return{width:B.offsetWidth,height:B.offsetHeight};
}var F=B.style;var C=F.visibility;var D=F.position;var A=F.display;F.visibility="hidden";
F.position="absolute";F.display="block";var E=B.clientWidth;var G=B.clientHeight;
F.display=A;F.position=D;F.visibility=C;return{width:E,height:G};},makePositioned:function(B){B=$(B);
var A=Element.getStyle(B,"position");if(A=="static"||!A){B._madePositioned=true;B.style.position="relative";
if(window.opera){B.style.top=0;B.style.left=0;}}return B;},undoPositioned:function(A){A=$(A);
if(A._madePositioned){A._madePositioned=undefined;A.style.position=A.style.top=A.style.left=A.style.bottom=A.style.right="";
}return A;},makeClipping:function(A){A=$(A);if(A._overflow){return A;}A._overflow=Element.getStyle(A,"overflow")||"auto";
if(A._overflow!=="hidden"){A.style.overflow="hidden";}return A;},undoClipping:function(A){A=$(A);
if(!A._overflow){return A;}A.style.overflow=A._overflow=="auto"?"":A._overflow;A._overflow=null;
return A;},cumulativeOffset:function(B){var A=0,C=0;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;
B=B.offsetParent;}while(B);return Element._returnOffset(C,A);},positionedOffset:function(C){var B=0,D=0;
do{B+=C.offsetTop||0;D+=C.offsetLeft||0;C=C.offsetParent;if(C){if(C.tagName=="BODY"){break;
}var A=Element.getStyle(C,"position");if(A!=="static"){break;}}}while(C);return Element._returnOffset(D,B);
},absolutize:function(E){E=$(E);if(E.getStyle("position")=="absolute"){return ;}var B=E.positionedOffset();
var D=B[1];var C=B[0];var F=E.clientWidth;var A=E.clientHeight;E._originalLeft=C-parseFloat(E.style.left||0);
E._originalTop=D-parseFloat(E.style.top||0);E._originalWidth=E.style.width;E._originalHeight=E.style.height;
E.style.position="absolute";E.style.top=D+"px";E.style.left=C+"px";E.style.width=F+"px";
E.style.height=A+"px";return E;},relativize:function(C){C=$(C);if(C.getStyle("position")=="relative"){return ;
}C.style.position="relative";var B=parseFloat(C.style.top||0)-(C._originalTop||0);
var A=parseFloat(C.style.left||0)-(C._originalLeft||0);C.style.top=B+"px";C.style.left=A+"px";
C.style.height=C._originalHeight;C.style.width=C._originalWidth;return C;},cumulativeScrollOffset:function(B){var A=0,C=0;
do{A+=B.scrollTop||0;C+=B.scrollLeft||0;B=B.parentNode;}while(B);return Element._returnOffset(C,A);
},getOffsetParent:function(A){if(A.offsetParent){return $(A.offsetParent);}if(A==document.body){return $(A);
}while((A=A.parentNode)&&A!=document.body){if(Element.getStyle(A,"position")!="static"){return $(A);
}}return $(document.body);},viewportOffset:function(A){var B=0,D=0;var C=A;do{B+=C.offsetTop||0;
D+=C.offsetLeft||0;if(C.offsetParent==document.body&&Element.getStyle(C,"position")=="absolute"){break;
}}while(C=C.offsetParent);C=A;do{if(!Prototype.Browser.Opera||C.tagName=="BODY"){B-=C.scrollTop||0;
D-=C.scrollLeft||0;}}while(C=C.parentNode);return Element._returnOffset(D,B);},clonePosition:function(E,B){var D=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});
B=$(B);var C=B.viewportOffset();E=$(E);var A=[0,0];var F=null;if(Element.getStyle(E,"position")=="absolute"){F=E.getOffsetParent();
A=F.viewportOffset();}if(F==document.body){A[0]-=document.body.offsetLeft;A[1]-=document.body.offsetTop;
}if(D.setLeft){E.style.left=(C[0]-A[0]+D.offsetLeft)+"px";}if(D.setTop){E.style.top=(C[1]-A[1]+D.offsetTop)+"px";
}if(D.setWidth){E.style.width=B.offsetWidth+"px";}if(D.setHeight){E.style.height=B.offsetHeight+"px";
}return E;}};Element.Methods.identify.counter=1;Object.extend(Element.Methods,{getElementsBySelector:Element.Methods.select,childElements:Element.Methods.immediateDescendants});
Element._attributeTranslations={write:{names:{className:"class",htmlFor:"for"},values:{}}};
if(Prototype.Browser.Opera){Element.Methods.getStyle=Element.Methods.getStyle.wrap(function(A,E,C){switch(C){case"left":case"top":case"right":case"bottom":if(A(E,"position")==="static"){return null;
}case"height":case"width":if(!Element.visible(E)){return null;}var D=parseInt(A(E,C),10);
if(D!==E["offset"+C.capitalize()]){return D+"px";}var B;if(C==="height"){B=["border-top-width","padding-top","padding-bottom","border-bottom-width"];
}else{B=["border-left-width","padding-left","padding-right","border-right-width"];
}return B.inject(D,function(F,G){var H=A(E,G);return H===null?F:F-parseInt(H,10);
})+"px";default:return A(E,C);}});Element.Methods.readAttribute=Element.Methods.readAttribute.wrap(function(A,C,B){if(B==="title"){return C.title;
}return A(C,B);});}else{if(Prototype.Browser.IE){Element.Methods.getOffsetParent=Element.Methods.getOffsetParent.wrap(function(A,D){D=$(D);
var B=D.getStyle("position");if(B!=="static"){return A(D);}D.setStyle({position:"relative"});
var C=A(D);D.setStyle({position:B});return C;});$w("positionedOffset viewportOffset").each(function(A){Element.Methods[A]=Element.Methods[A].wrap(function(C,F){F=$(F);
var D=F.getStyle("position");if(D!=="static"){return C(F);}var E=F.getOffsetParent();
if(E&&E.getStyle("position")==="fixed"){E.setStyle({zoom:1});}F.setStyle({position:"relative"});
var B=C(F);F.setStyle({position:D});return B;});});Element.Methods.getStyle=function(C,A){C=$(C);
A=(A=="float"||A=="cssFloat")?"styleFloat":A.camelize();var B=C.style[A];if(!B&&C.currentStyle){B=C.currentStyle[A];
}if(A=="opacity"){if(B=(C.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/)){if(B[1]){return parseFloat(B[1])/100;
}}return 1;}if(B=="auto"){if((A=="width"||A=="height")&&(C.getStyle("display")!="none")){return C["offset"+A.capitalize()]+"px";
}return null;}return B;};Element.Methods.setOpacity=function(F,E){function B(G){return G.replace(/alpha\([^\)]*\)/gi,"");
}F=$(F);var A=F.currentStyle;if((A&&!A.hasLayout)||(!A&&F.style.zoom=="normal")){F.style.zoom=1;
}var D=F.getStyle("filter"),C=F.style;if(E==1||E===""){(D=B(D))?C.filter=D:C.removeAttribute("filter");
return F;}else{if(E<1e-05){E=0;}}C.filter=B(D)+"alpha(opacity="+(E*100)+")";return F;
};Element._attributeTranslations={read:{names:{"class":"className","for":"htmlFor"},values:{_getAttr:function(B,A){return B.getAttribute(A,2);
},_getAttrNode:function(C,A){var B=C.getAttributeNode(A);return B?B.value:"";},_getEv:function(B,A){A=B.getAttribute(A);
return A?A.toString().slice(23,-2):null;},_flag:function(B,A){return $(B).hasAttribute(A)?A:null;
},style:function(A){return A.style.cssText.toLowerCase();},title:function(A){return A.title;
}}}};Element._attributeTranslations.write={names:Object.extend({cellpadding:"cellPadding",cellspacing:"cellSpacing"},Element._attributeTranslations.read.names),values:{checked:function(B,A){B.checked=!!A;
},style:function(B,A){B.style.cssText=A?A:"";}}};Element._attributeTranslations.has={};
$w("colSpan rowSpan vAlign dateTime accessKey tabIndex encType maxLength readOnly longDesc").each(function(A){Element._attributeTranslations.write.names[A.toLowerCase()]=A;
Element._attributeTranslations.has[A.toLowerCase()]=A;});(function(A){Object.extend(A,{href:A._getAttr,src:A._getAttr,type:A._getAttr,action:A._getAttrNode,disabled:A._flag,checked:A._flag,readonly:A._flag,multiple:A._flag,onload:A._getEv,onunload:A._getEv,onclick:A._getEv,ondblclick:A._getEv,onmousedown:A._getEv,onmouseup:A._getEv,onmouseover:A._getEv,onmousemove:A._getEv,onmouseout:A._getEv,onfocus:A._getEv,onblur:A._getEv,onkeypress:A._getEv,onkeydown:A._getEv,onkeyup:A._getEv,onsubmit:A._getEv,onreset:A._getEv,onselect:A._getEv,onchange:A._getEv});
})(Element._attributeTranslations.read.values);}else{if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent)){Element.Methods.setOpacity=function(B,A){B=$(B);
B.style.opacity=(A==1)?0.999999:(A==="")?"":(A<1e-05)?0:A;return B;};}else{if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(D,C){D=$(D);
D.style.opacity=(C==1||C==="")?"":(C<1e-05)?0:C;if(C==1){if(D.tagName=="IMG"&&D.width){D.width++;
D.width--;}else{try{var A=document.createTextNode(" ");D.appendChild(A);D.removeChild(A);
}catch(B){}}}return D;};Element.Methods.cumulativeOffset=function(B){var A=0,C=0;
do{A+=B.offsetTop||0;C+=B.offsetLeft||0;if(B.offsetParent==document.body){if(Element.getStyle(B,"position")=="absolute"){break;
}}B=B.offsetParent;}while(B);return Element._returnOffset(C,A);};}}}}if(Prototype.Browser.IE||Prototype.Browser.Opera){Element.Methods.update=function(C,B){C=$(C);
if(B&&B.toElement){B=B.toElement();}if(Object.isElement(B)){return C.update().insert(B);
}B=Object.toHTML(B);var A=C.tagName.toUpperCase();if(A in Element._insertionTranslations.tags){$A(C.childNodes).each(function(D){C.removeChild(D);
});Element._getContentFromAnonymousElement(A,B.stripScripts()).each(function(D){C.appendChild(D);
});}else{C.innerHTML=B.stripScripts();}B.evalScripts.bind(B).defer();return C;};}if("outerHTML" in document.createElement("div")){Element.Methods.replace=function(D,C){D=$(D);
if(C&&C.toElement){C=C.toElement();}if(Object.isElement(C)){D.parentNode.replaceChild(C,D);
return D;}C=Object.toHTML(C);var F=D.parentNode,A=F.tagName.toUpperCase();if(Element._insertionTranslations.tags[A]){var E=D.next();
var B=Element._getContentFromAnonymousElement(A,C.stripScripts());F.removeChild(D);
if(E){B.each(function(G){F.insertBefore(G,E);});}else{B.each(function(G){F.appendChild(G);
});}}else{D.outerHTML=C.stripScripts();}C.evalScripts.bind(C).defer();return D;};
}Element._returnOffset=function(B,C){var A=[B,C];A.left=B;A.top=C;return A;};Element._getContentFromAnonymousElement=function(A,B){var C=new Element("div"),D=Element._insertionTranslations.tags[A];
if(D){C.innerHTML=D[0]+B+D[1];D[2].times(function(){C=C.firstChild;});}else{C.innerHTML=B;
}return $A(C.childNodes);};Element._insertionTranslations={before:function(B,A){B.parentNode.insertBefore(A,B);
},top:function(B,A){B.insertBefore(A,B.firstChild);},bottom:function(B,A){B.appendChild(A);
},after:function(B,A){B.parentNode.insertBefore(A,B.nextSibling);},tags:{TABLE:["<table>","</table>",1],TBODY:["<table><tbody>","</tbody></table>",2],TR:["<table><tbody><tr>","</tr></tbody></table>",3],TD:["<table><tbody><tr><td>","</td></tr></tbody></table>",4],SELECT:["<select>","</select>",1]}};
(function(){Object.extend(this.tags,{THEAD:this.tags.TBODY,TFOOT:this.tags.TBODY,TH:this.tags.TD});
}).call(Element._insertionTranslations);Element.Methods.Simulated={hasAttribute:function(C,A){A=Element._attributeTranslations.has[A]||A;
var B=$(C).getAttributeNode(A);return B&&B.specified;}};Element.Methods.ByTag={};
Object.extend(Element,Element.Methods);if(!Prototype.BrowserFeatures.ElementExtensions&&document.createElement("div").__proto__){window.HTMLElement={};
window.HTMLElement.prototype=document.createElement("div").__proto__;Prototype.BrowserFeatures.ElementExtensions=true;
}Element.extend=(function(){if(Prototype.BrowserFeatures.SpecificElementExtensions){return Prototype.K;
}var B={},A=Element.Methods.ByTag;var C=Object.extend(function(G){if(!G||G._extendedByPrototype||G.nodeType!=1||G==window){return G;
}var H=Object.clone(B),D=G.tagName,E,F;if(A[D]){Object.extend(H,A[D]);}for(E in H){F=H[E];
if(Object.isFunction(F)&&!(E in G)){G[E]=F.methodize();}}G._extendedByPrototype=Prototype.emptyFunction;
return G;},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(B,Element.Methods);
Object.extend(B,Element.Methods.Simulated);}}});C.refresh();return C;})();Element.hasAttribute=function(B,A){if(B.hasAttribute){return B.hasAttribute(A);
}return Element.Methods.Simulated.hasAttribute(B,A);};Element.addMethods=function(A){var D=Prototype.BrowserFeatures,I=Element.Methods.ByTag;
if(!A){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);
Object.extend(Element.Methods.ByTag,{"FORM":Object.clone(Form.Methods),"INPUT":Object.clone(Form.Element.Methods),"SELECT":Object.clone(Form.Element.Methods),"TEXTAREA":Object.clone(Form.Element.Methods)});
}if(arguments.length==2){var J=A;A=arguments[1];}if(!J){Object.extend(Element.Methods,A||{});
}else{if(Object.isArray(J)){J.each(C);}else{C(J);}}function C(F){F=F.toUpperCase();
if(!Element.Methods.ByTag[F]){Element.Methods.ByTag[F]={};}Object.extend(Element.Methods.ByTag[F],A);
}function H(N,F,M){M=M||false;for(var K in N){var L=N[K];if(!Object.isFunction(L)){continue;
}if(!M||!(K in F)){F[K]=L.methodize();}}}function G(F){var L;var K={"OPTGROUP":"OptGroup","TEXTAREA":"TextArea","P":"Paragraph","FIELDSET":"FieldSet","UL":"UList","OL":"OList","DL":"DList","DIR":"Directory","H1":"Heading","H2":"Heading","H3":"Heading","H4":"Heading","H5":"Heading","H6":"Heading","Q":"Quote","INS":"Mod","DEL":"Mod","A":"Anchor","IMG":"Image","CAPTION":"TableCaption","COL":"TableCol","COLGROUP":"TableCol","THEAD":"TableSection","TFOOT":"TableSection","TBODY":"TableSection","TR":"TableRow","TH":"TableCell","TD":"TableCell","FRAMESET":"FrameSet","IFRAME":"IFrame"};
if(K[F]){L="HTML"+K[F]+"Element";}if(window[L]){return window[L];}L="HTML"+F+"Element";
if(window[L]){return window[L];}L="HTML"+F.capitalize()+"Element";if(window[L]){return window[L];
}window[L]={};window[L].prototype=document.createElement(F).__proto__;return window[L];
}if(D.ElementExtensions){H(Element.Methods,HTMLElement.prototype);H(Element.Methods.Simulated,HTMLElement.prototype,true);
}if(D.SpecificElementExtensions){for(var B in Element.Methods.ByTag){var E=G(B);if(Object.isUndefined(E)){continue;
}H(I[B],E.prototype);}}Object.extend(Element,Element.Methods);delete Element.ByTag;
if(Element.extend.refresh){Element.extend.refresh();}Element.cache={};};document.viewport={getDimensions:function(){var A={};
var C=Prototype.Browser;$w("width height").each(function(B){var E=B.capitalize();
A[B]=(C.WebKit&&!document.evaluate)?self["inner"+E]:(C.Opera)?document.body["client"+E]:document.documentElement["client"+E];
});return A;},getWidth:function(){return this.getDimensions().width;},getHeight:function(){return this.getDimensions().height;
},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop);
}};var Selector=Class.create({initialize:function(A){this.expression=A.strip();this.compileMatcher();
},shouldUseXPath:function(){if(!Prototype.BrowserFeatures.XPath){return false;}var A=this.expression;
if(Prototype.Browser.WebKit&&(A.include("-of-type")||A.include(":empty"))){return false;
}if((/(\[[\w-]*?:|:checked)/).test(this.expression)){return false;}return true;},compileMatcher:function(){if(this.shouldUseXPath()){return this.compileXPathMatcher();
}var e=this.expression,ps=Selector.patterns,h=Selector.handlers,c=Selector.criteria,le,p,m;
if(Selector._cache[e]){this.matcher=Selector._cache[e];return ;}this.matcher=["this.matcher = function(root) {","var r = root, h = Selector.handlers, c = false, n;"];
while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in ps){p=ps[i];if(m=e.match(p)){this.matcher.push(Object.isFunction(c[i])?c[i](m):new Template(c[i]).evaluate(m));
e=e.replace(m[0],"");break;}}}this.matcher.push("return h.unique(n);\n}");eval(this.matcher.join("\n"));
Selector._cache[this.expression]=this.matcher;},compileXPathMatcher:function(){var B=this.expression,C=Selector.patterns,F=Selector.xpath,D,E;
if(Selector._cache[B]){this.xpath=Selector._cache[B];return ;}this.matcher=[".//*"];
while(B&&D!=B&&(/\S/).test(B)){D=B;for(var A in C){if(E=B.match(C[A])){this.matcher.push(Object.isFunction(F[A])?F[A](E):new Template(F[A]).evaluate(E));
B=B.replace(E[0],"");break;}}}this.xpath=this.matcher.join("");Selector._cache[this.expression]=this.xpath;
},findElements:function(A){A=A||document;if(this.xpath){return document._getElementsByXPath(this.xpath,A);
}return this.matcher(A);},match:function(B){this.tokens=[];var A=this.expression,G=Selector.patterns,D=Selector.assertions;
var L,E,J;while(A&&L!==A&&(/\S/).test(A)){L=A;for(var H in G){E=G[H];if(J=A.match(E)){if(D[H]){this.tokens.push([H,Object.clone(J)]);
A=A.replace(J[0],"");}else{return this.findElements(document).include(B);}}}}var K=true,C,I;
for(var H=0,F;F=this.tokens[H];H++){C=F[0],I=F[1];if(!Selector.assertions[C](B,I)){K=false;
break;}}return K;},toString:function(){return this.expression;},inspect:function(){return"#<Selector:"+this.expression.inspect()+">";
}});Object.extend(Selector,{_cache:{},xpath:{descendant:"//*",child:"/*",adjacent:"/following-sibling::*[1]",laterSibling:"/following-sibling::*",tagName:function(A){if(A[1]=="*"){return"";
}return"[local-name()='"+A[1].toLowerCase()+"' or local-name()='"+A[1].toUpperCase()+"']";
},className:"[contains(concat(' ', @class, ' '), ' #{1} ')]",id:"[@id='#{1}']",attrPresence:function(A){A[1]=A[1].toLowerCase();
return new Template("[@#{1}]").evaluate(A);},attr:function(A){A[1]=A[1].toLowerCase();
A[3]=A[5]||A[6];return new Template(Selector.xpath.operators[A[2]]).evaluate(A);},pseudo:function(B){var A=Selector.xpath.pseudos[B[1]];
if(!A){return"";}if(Object.isFunction(A)){return A(B);}return new Template(Selector.xpath.pseudos[B[1]]).evaluate(B);
},operators:{"=":"[@#{1}='#{3}']","!=":"[@#{1}!='#{3}']","^=":"[starts-with(@#{1}, '#{3}')]","$=":"[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']","*=":"[contains(@#{1}, '#{3}')]","~=":"[contains(concat(' ', @#{1}, ' '), ' #{3} ')]","|=":"[contains(concat('-', @#{1}, '-'), '-#{3}-')]"},pseudos:{"first-child":"[not(preceding-sibling::*)]","last-child":"[not(following-sibling::*)]","only-child":"[not(preceding-sibling::* or following-sibling::*)]","empty":"[count(*) = 0 and (count(text()) = 0 or translate(text(), ' \t\n\n', '') = '')]","checked":"[@checked]","disabled":"[@disabled]","enabled":"[not(@disabled)]","not":function(F){var A=F[6],B=Selector.patterns,G=Selector.xpath,H,C;
var D=[];while(A&&H!=A&&(/\S/).test(A)){H=A;for(var E in B){if(F=A.match(B[E])){C=Object.isFunction(G[E])?G[E](F):new Template(G[E]).evaluate(F);
D.push("("+C.substring(1,C.length-1)+")");A=A.replace(F[0],"");break;}}}return"[not("+D.join(" and ")+")]";
},"nth-child":function(A){return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ",A);
},"nth-last-child":function(A){return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ",A);
},"nth-of-type":function(A){return Selector.xpath.pseudos.nth("position() ",A);},"nth-last-of-type":function(A){return Selector.xpath.pseudos.nth("(last() + 1 - position()) ",A);
},"first-of-type":function(A){A[6]="1";return Selector.xpath.pseudos["nth-of-type"](A);
},"last-of-type":function(A){A[6]="1";return Selector.xpath.pseudos["nth-last-of-type"](A);
},"only-of-type":function(B){var A=Selector.xpath.pseudos;return A["first-of-type"](B)+A["last-of-type"](B);
},nth:function(C,B){var D,G=B[6],A;if(G=="even"){G="2n+0";}if(G=="odd"){G="2n+1";
}if(D=G.match(/^(\d+)$/)){return"["+C+"= "+D[1]+"]";}if(D=G.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(D[1]=="-"){D[1]=-1;
}var F=D[1]?Number(D[1]):1;var E=D[2]?Number(D[2]):0;A="[((#{fragment} - #{b}) mod #{a} = 0) and ((#{fragment} - #{b}) div #{a} >= 0)]";
return new Template(A).evaluate({fragment:C,a:F,b:E});}}}},criteria:{tagName:'n = h.tagName(n, r, "#{1}", c);      c = false;',className:'n = h.className(n, r, "#{1}", c);    c = false;',id:'n = h.id(n, r, "#{1}", c);           c = false;',attrPresence:'n = h.attrPresence(n, r, "#{1}", c); c = false;',attr:function(A){A[3]=(A[5]||A[6]);
return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(A);
},pseudo:function(A){if(A[6]){A[6]=A[6].replace(/"/g,'\\"');}return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(A);
},descendant:'c = "descendant";',child:'c = "child";',adjacent:'c = "adjacent";',laterSibling:'c = "laterSibling";'},patterns:{laterSibling:/^\s*~\s*/,child:/^\s*>\s*/,adjacent:/^\s*\+\s*/,descendant:/^\s/,tagName:/^\s*(\*|[\w\-]+)(\b|$)?/,id:/^#([\w\-\*]+)(\b|$)/,className:/^\.([\w\-\*]+)(\b|$)/,pseudo:/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/,attrPresence:/^\[([\w]+)\]/,attr:/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/},assertions:{tagName:function(B,A){return A[1].toUpperCase()==B.tagName.toUpperCase();
},className:function(B,A){return Element.hasClassName(B,A[1]);},id:function(B,A){return B.id===A[1];
},attrPresence:function(B,A){return Element.hasAttribute(B,A[1]);},attr:function(C,B){var A=Element.readAttribute(C,B[1]);
return A&&Selector.operators[B[2]](A,B[5]||B[6]);}},handlers:{concat:function(D,C){for(var A=0,B;
B=C[A];A++){D.push(B);}return D;},mark:function(D){var C=Prototype.emptyFunction;
for(var A=0,B;B=D[A];A++){B._countedByPrototype=C;}return D;},unmark:function(C){for(var A=0,B;
B=C[A];A++){B._countedByPrototype=undefined;}return C;},index:function(C,D,E){C._countedByPrototype=Prototype.emptyFunction;
if(D){for(var F=C.childNodes,B=F.length-1,G=1;B>=0;B--){var A=F[B];if(A.nodeType==1&&(!E||A._countedByPrototype)){A.nodeIndex=G++;
}}}else{for(var B=0,G=1,F=C.childNodes;A=F[B];B++){if(A.nodeType==1&&(!E||A._countedByPrototype)){A.nodeIndex=G++;
}}}},unique:function(D){if(D.length==0){return D;}var E=[],B;for(var A=0,C=D.length;
A<C;A++){if(!(B=D[A])._countedByPrototype){B._countedByPrototype=Prototype.emptyFunction;
E.push(Element.extend(B));}}return Selector.handlers.unmark(E);},descendant:function(D){var A=Selector.handlers;
for(var B=0,E=[],C;C=D[B];B++){A.concat(E,C.getElementsByTagName("*"));}return E;
},child:function(E){var A=Selector.handlers;for(var B=0,F=[],D;D=E[B];B++){for(var G=0,C;
C=D.childNodes[G];G++){if(C.nodeType==1&&C.tagName!="!"){F.push(C);}}}return F;},adjacent:function(C){for(var A=0,D=[],B;
B=C[A];A++){var E=this.nextElementSibling(B);if(E){D.push(E);}}return D;},laterSibling:function(D){var A=Selector.handlers;
for(var B=0,E=[],C;C=D[B];B++){A.concat(E,Element.nextSiblings(C));}return E;},nextElementSibling:function(A){while(A=A.nextSibling){if(A.nodeType==1){return A;
}}return null;},previousElementSibling:function(A){while(A=A.previousSibling){if(A.nodeType==1){return A;
}}return null;},tagName:function(I,B,H,A){var F=H.toUpperCase();var E=[],C=Selector.handlers;
if(I){if(A){if(A=="descendant"){for(var D=0,G;G=I[D];D++){C.concat(E,G.getElementsByTagName(H));
}return E;}else{I=this[A](I);}if(H=="*"){return I;}}for(var D=0,G;G=I[D];D++){if(G.tagName.toUpperCase()===F){E.push(G);
}}return E;}else{return B.getElementsByTagName(H);}},id:function(H,B,G,A){var D=$(G),C=Selector.handlers;
if(!D){return[];}if(!H&&B==document){return[D];}if(H){if(A){if(A=="child"){for(var F=0,E;
E=H[F];F++){if(D.parentNode==E){return[D];}}}else{if(A=="descendant"){for(var F=0,E;
E=H[F];F++){if(Element.descendantOf(D,E)){return[D];}}}else{if(A=="adjacent"){for(var F=0,E;
E=H[F];F++){if(Selector.handlers.previousElementSibling(D)==E){return[D];}}}else{H=C[A](H);
}}}}for(var F=0,E;E=H[F];F++){if(E==D){return[D];}}return[];}return(D&&Element.descendantOf(D,B))?[D]:[];
},className:function(C,B,A,D){if(C&&D){C=this[D](C);}return Selector.handlers.byClassName(C,B,A);
},byClassName:function(H,C,G){if(!H){H=Selector.handlers.descendant([C]);}var B=" "+G+" ";
for(var D=0,E=[],F,A;F=H[D];D++){A=F.className;if(A.length==0){continue;}if(A==G||(" "+A+" ").include(B)){E.push(F);
}}return E;},attrPresence:function(D,B,G,F){if(!D){D=B.getElementsByTagName("*");
}if(D&&F){D=this[F](D);}var E=[];for(var A=0,C;C=D[A];A++){if(Element.hasAttribute(C,G)){E.push(C);
}}return E;},attr:function(K,E,D,F,A,B){if(!K){K=E.getElementsByTagName("*");}if(K&&B){K=this[B](K);
}var I=Selector.operators[A],H=[];for(var G=0,J;J=K[G];G++){var C=Element.readAttribute(J,D);
if(C===null){continue;}if(I(C,F)){H.push(J);}}return H;},pseudo:function(C,B,D,A,E){if(C&&E){C=this[E](C);
}if(!C){C=A.getElementsByTagName("*");}return Selector.pseudos[B](C,D,A);}},pseudos:{"first-child":function(D,E,B){for(var A=0,F=[],C;
C=D[A];A++){if(Selector.handlers.previousElementSibling(C)){continue;}F.push(C);}return F;
},"last-child":function(D,E,B){for(var A=0,F=[],C;C=D[A];A++){if(Selector.handlers.nextElementSibling(C)){continue;
}F.push(C);}return F;},"only-child":function(E,F,C){var A=Selector.handlers;for(var B=0,G=[],D;
D=E[B];B++){if(!A.previousElementSibling(D)&&!A.nextElementSibling(D)){G.push(D);
}}return G;},"nth-child":function(B,C,A){return Selector.pseudos.nth(B,C,A);},"nth-last-child":function(B,C,A){return Selector.pseudos.nth(B,C,A,true);
},"nth-of-type":function(B,C,A){return Selector.pseudos.nth(B,C,A,false,true);},"nth-last-of-type":function(B,C,A){return Selector.pseudos.nth(B,C,A,true,true);
},"first-of-type":function(B,C,A){return Selector.pseudos.nth(B,"1",A,false,true);
},"last-of-type":function(B,C,A){return Selector.pseudos.nth(B,"1",A,true,true);},"only-of-type":function(C,D,A){var B=Selector.pseudos;
return B["last-of-type"](B["first-of-type"](C,D,A),D,A);},getIndices:function(C,B,A){if(C==0){return B>0?[B]:[];
}return $R(1,A).inject([],function(E,D){if(0==(D-B)%C&&(D-B)/C>=0){E.push(D);}return E;
});},nth:function(P,O,F,D,A){if(P.length==0){return[];}if(O=="even"){O="2n+0";}if(O=="odd"){O="2n+1";
}var G=Selector.handlers,I=[],M=[],L;G.mark(P);for(var H=0,J;J=P[H];H++){if(!J.parentNode._countedByPrototype){G.index(J.parentNode,D,A);
M.push(J.parentNode);}}if(O.match(/^\d+$/)){O=Number(O);for(var H=0,J;J=P[H];H++){if(J.nodeIndex==O){I.push(J);
}}}else{if(L=O.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(L[1]=="-"){L[1]=-1;}var C=L[1]?Number(L[1]):1;
var B=L[2]?Number(L[2]):0;var E=Selector.pseudos.getIndices(C,B,P.length);for(var H=0,J,K=E.length;
J=P[H];H++){for(var N=0;N<K;N++){if(J.nodeIndex==E[N]){I.push(J);}}}}}G.unmark(P);
G.unmark(M);return I;},"empty":function(D,E,B){for(var A=0,F=[],C;C=D[A];A++){if(C.tagName=="!"||(C.firstChild&&!C.innerHTML.match(/^\s*$/))){continue;
}F.push(C);}return F;},"not":function(J,H,B){var C=Selector.handlers,I,G;var A=new Selector(H).findElements(B);
C.mark(A);for(var D=0,E=[],F;F=J[D];D++){if(!F._countedByPrototype){E.push(F);}}C.unmark(A);
return E;},"enabled":function(D,E,B){for(var A=0,F=[],C;C=D[A];A++){if(!C.disabled){F.push(C);
}}return F;},"disabled":function(D,E,B){for(var A=0,F=[],C;C=D[A];A++){if(C.disabled){F.push(C);
}}return F;},"checked":function(D,E,B){for(var A=0,F=[],C;C=D[A];A++){if(C.checked){F.push(C);
}}return F;}},operators:{"=":function(B,A){return B==A;},"!=":function(B,A){return B!=A;
},"^=":function(B,A){return B.startsWith(A);},"$=":function(B,A){return B.endsWith(A);
},"*=":function(B,A){return B.include(A);},"~=":function(B,A){return(" "+B+" ").include(" "+A+" ");
},"|=":function(B,A){return("-"+B.toUpperCase()+"-").include("-"+A.toUpperCase()+"-");
}},split:function(B){var A=[];B.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/,function(C){A.push(C[1].strip());
});return A;},matchElements:function(D,G){var C=$$(G),A=Selector.handlers;A.mark(C);
for(var B=0,E=[],F;F=D[B];B++){if(F._countedByPrototype){E.push(F);}}A.unmark(C);
return E;},findElement:function(A,C,B){if(Object.isNumber(C)){B=C;C=false;}return Selector.matchElements(A,C||"*")[B||0];
},findChildElements:function(F,C){C=Selector.split(C.join(","));var E=[],A=Selector.handlers;
for(var B=0,D=C.length,G;B<D;B++){G=new Selector(C[B].strip());A.concat(E,G.findElements(F));
}return(D>1)?A.unique(E):E;}});if(Prototype.Browser.IE){Object.extend(Selector.handlers,{concat:function(D,C){for(var A=0,B;
B=C[A];A++){if(B.tagName!=="!"){D.push(B);}}return D;},unmark:function(C){for(var A=0,B;
B=C[A];A++){B.removeAttribute("_countedByPrototype");}return C;}});}function $$(){return Selector.findChildElements(document,$A(arguments));
}var Form={reset:function(A){$(A).reset();return A;},serializeElements:function(C,D){if(typeof D!="object"){D={hash:!!D};
}else{if(Object.isUndefined(D.hash)){D.hash=true;}}var B,E,F=false,G=D.submit;var A=C.inject({},function(H,I){if(!I.disabled&&I.name){B=I.name;
E=$(I).getValue();if(E!=null&&(I.type!="submit"||(!F&&G!==false&&(!G||B==G)&&(F=true)))){if(B in H){if(!Object.isArray(H[B])){H[B]=[H[B]];
}H[B].push(E);}else{H[B]=E;}}}return H;});return D.hash?A:Object.toQueryString(A);
}};Form.Methods={serialize:function(A,B){return Form.serializeElements(Form.getElements(A),B);
},getElements:function(A){return $A($(A).getElementsByTagName("*")).inject([],function(B,C){if(Form.Element.Serializers[C.tagName.toLowerCase()]){B.push(Element.extend(C));
}return B;});},getInputs:function(A,F,B){A=$(A);var E=A.getElementsByTagName("input");
if(!F&&!B){return $A(E).map(Element.extend);}for(var D=0,H=[],C=E.length;D<C;D++){var G=E[D];
if((F&&G.type!=F)||(B&&G.name!=B)){continue;}H.push(Element.extend(G));}return H;
},disable:function(A){A=$(A);Form.getElements(A).invoke("disable");return A;},enable:function(A){A=$(A);
Form.getElements(A).invoke("enable");return A;},findFirstElement:function(A){var B=$(A).getElements().findAll(function(D){return"hidden"!=D.type&&!D.disabled;
});var C=B.findAll(function(D){return D.hasAttribute("tabIndex")&&D.tabIndex>=0;}).sortBy(function(D){return D.tabIndex;
}).first();return C?C:B.find(function(D){return["input","select","textarea"].include(D.tagName.toLowerCase());
});},focusFirstElement:function(A){A=$(A);A.findFirstElement().activate();return A;
},request:function(B,C){B=$(B),C=Object.clone(C||{});var D=C.parameters,A=B.readAttribute("action")||"";
if(A.blank()){A=window.location.href;}C.parameters=B.serialize(true);if(D){if(Object.isString(D)){D=D.toQueryParams();
}Object.extend(C.parameters,D);}if(B.hasAttribute("method")&&!C.method){C.method=B.method;
}return new Ajax.Request(A,C);}};Form.Element={focus:function(A){$(A).focus();return A;
},select:function(A){$(A).select();return A;}};Form.Element.Methods={serialize:function(C){C=$(C);
if(!C.disabled&&C.name){var B=C.getValue();if(B!=undefined){var A={};A[C.name]=B;
return Object.toQueryString(A);}}return"";},getValue:function(B){B=$(B);var A=B.tagName.toLowerCase();
return Form.Element.Serializers[A](B);},setValue:function(C,B){C=$(C);var A=C.tagName.toLowerCase();
Form.Element.Serializers[A](C,B);return C;},clear:function(A){$(A).value="";return A;
},present:function(A){return $(A).value!="";},activate:function(B){B=$(B);try{B.focus();
if(B.select&&(B.tagName.toLowerCase()!="input"||!["button","reset","submit"].include(B.type))){B.select();
}}catch(A){}return B;},disable:function(A){A=$(A);A.blur();A.disabled=true;return A;
},enable:function(A){A=$(A);A.disabled=false;return A;}};var Field=Form.Element;var $F=Form.Element.Methods.getValue;
Form.Element.Serializers={input:function(B,A){switch(B.type.toLowerCase()){case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(B,A);
default:return Form.Element.Serializers.textarea(B,A);}},inputSelector:function(B,A){if(Object.isUndefined(A)){return B.checked?B.value:null;
}else{B.checked=!!A;}},textarea:function(B,A){if(Object.isUndefined(A)){return B.value;
}else{B.value=A;}},select:function(G,F){if(Object.isUndefined(F)){return this[G.type=="select-one"?"selectOne":"selectMany"](G);
}else{var C,A,E=!Object.isArray(F);for(var B=0,D=G.length;B<D;B++){C=G.options[B];
A=this.optionValue(C);if(E){if(A==F){C.selected=true;return ;}}else{C.selected=F.include(A);
}}}},selectOne:function(B){var A=B.selectedIndex;return A>=0?this.optionValue(B.options[A]):null;
},selectMany:function(D){var C,A=D.length;if(!A){return null;}for(var B=0,C=[];B<A;
B++){var E=D.options[B];if(E.selected){C.push(this.optionValue(E));}}return C;},optionValue:function(A){return Element.extend(A).hasAttribute("value")?A.value:A.text;
}};Abstract.TimedObserver=Class.create(PeriodicalExecuter,{initialize:function($super,B,C,A){$super(A,C);
this.element=$(B);this.lastValue=this.getValue();},execute:function(){var A=this.getValue();
if(Object.isString(this.lastValue)&&Object.isString(A)?this.lastValue!=A:String(this.lastValue)!=String(A)){this.callback(this.element,A);
this.lastValue=A;}}});Form.Element.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.Element.getValue(this.element);
}});Form.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.serialize(this.element);
}});Abstract.EventObserver=Class.create({initialize:function(B,A){this.element=$(B);
this.callback=A;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks();
}else{this.registerCallback(this.element);}},onElementEvent:function(){var A=this.getValue();
if(this.lastValue!=A){this.callback(this.element,A);this.lastValue=A;}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback,this);
},registerCallback:function(A){if(A.type){switch(A.type.toLowerCase()){case"checkbox":case"radio":Event.observe(A,"click",this.onElementEvent.bind(this));
break;default:Event.observe(A,"change",this.onElementEvent.bind(this));break;}}}});
Form.Element.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.Element.getValue(this.element);
}});Form.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.serialize(this.element);
}});if(!window.Event){var Event={};}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,KEY_INSERT:45,cache:{},relatedTarget:function(A){var B;
switch(A.type){case"mouseover":B=A.fromElement;break;case"mouseout":B=A.toElement;
break;default:return null;}return Element.extend(B);}});Event.Methods=(function(){var B;
if(Prototype.Browser.IE){var A={0:1,1:4,2:2};B=function(D,C){return D.button==A[C];
};}else{if(Prototype.Browser.WebKit){B=function(D,C){switch(C){case 0:return D.which==1&&!D.metaKey;
case 1:return D.which==1&&D.metaKey;default:return false;}};}else{B=function(D,C){return D.which?(D.which===C+1):(D.button===C);
};}}return{isLeftClick:function(C){return B(C,0);},isMiddleClick:function(C){return B(C,1);
},isRightClick:function(C){return B(C,2);},element:function(D){var C=Event.extend(D).target;
return Element.extend(C.nodeType==Node.TEXT_NODE?C.parentNode:C);},findElement:function(D,F){var E=Event.element(D);
if(!F){return E;}var C=[E].concat(E.ancestors());return Selector.findElement(C,F,0);
},pointer:function(C){return{x:C.pageX||(C.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)),y:C.pageY||(C.clientY+(document.documentElement.scrollTop||document.body.scrollTop))};
},pointerX:function(C){return Event.pointer(C).x;},pointerY:function(C){return Event.pointer(C).y;
},stop:function(C){Event.extend(C);C.preventDefault();C.stopPropagation();C.stopped=true;
}};})();Event.extend=(function(){var A=Object.keys(Event.Methods).inject({},function(B,C){B[C]=Event.Methods[C].methodize();
return B;});if(Prototype.Browser.IE){Object.extend(A,{stopPropagation:function(){this.cancelBubble=true;
},preventDefault:function(){this.returnValue=false;},inspect:function(){return"[object Event]";
}});return function(C){if(!C){return false;}if(C._extendedByPrototype){return C;}C._extendedByPrototype=Prototype.emptyFunction;
var B=Event.pointer(C);Object.extend(C,{target:C.srcElement,relatedTarget:Event.relatedTarget(C),pageX:B.x,pageY:B.y});
return Object.extend(C,A);};}else{Event.prototype=Event.prototype||document.createEvent("HTMLEvents").__proto__;
Object.extend(Event.prototype,A);return Prototype.K;}})();Object.extend(Event,(function(){var I=Event.cache;
function A(J){if(J._prototypeEventID){return J._prototypeEventID[0];}arguments.callee.id=arguments.callee.id||1;
return J._prototypeEventID=[++arguments.callee.id];}function G(J){if(J&&J.include(":")){return"dataavailable";
}return J;}function C(J){return I[J]=I[J]||{};}function H(L,J){var K=C(L);return K[J]=K[J]||[];
}function F(N,L,K){var O=A(N);var M=H(O,L);if(M.pluck("handler").include(K)){return false;
}var J=function(P){if(!Event||!Event.extend||(P.eventName&&P.eventName!=L)){return false;
}Event.extend(P);K.call(N,P);};J.handler=K;M.push(J);return J;}function B(M,K,J){var L=H(M,K);
return L.find(function(N){return N.handler==J;});}function E(M,K,J){var L=C(M);if(!L[K]){return false;
}L[K]=L[K].without(B(M,K,J));}function D(){for(var K in I){for(var J in I[K]){I[K][J]=null;
}}}if(window.attachEvent){window.attachEvent("onunload",D);}return{observe:function(N,L,K){N=$(N);
var M=G(L);var J=F(N,L,K);if(!J){return N;}if(N.addEventListener){N.addEventListener(M,J,false);
}else{N.attachEvent("on"+M,J);}return N;},stopObserving:function(N,L,K){N=$(N);var O=A(N),M=G(L);
if(!K&&L){H(O,L).each(function(P){N.stopObserving(L,P.handler);});return N;}else{if(!L){Object.keys(C(O)).each(function(P){N.stopObserving(P);
});return N;}}var J=B(O,L,K);if(!J){return N;}if(N.removeEventListener){N.removeEventListener(M,J,false);
}else{N.detachEvent("on"+M,J);}E(O,L,K);return N;},fire:function(M,K,J){M=$(M);if(M==document&&document.createEvent&&!M.dispatchEvent){M=document.documentElement;
}var L;if(document.createEvent){L=document.createEvent("HTMLEvents");L.initEvent("dataavailable",true,true);
}else{L=document.createEventObject();L.eventType="ondataavailable";}L.eventName=K;
L.memo=J||{};if(document.createEvent){M.dispatchEvent(L);}else{M.fireEvent(L.eventType,L);
}return Event.extend(L);}};})());Object.extend(Event,Event.Methods);Element.addMethods({fire:Event.fire,observe:Event.observe,stopObserving:Event.stopObserving});
Object.extend(document,{fire:Element.Methods.fire.methodize(),observe:Element.Methods.observe.methodize(),stopObserving:Element.Methods.stopObserving.methodize(),loaded:false});
(function(){var A;function B(){if(document.loaded){return ;}if(A){window.clearInterval(A);
}document.fire("dom:loaded");document.loaded=true;}if(document.addEventListener){if(Prototype.Browser.WebKit){A=window.setInterval(function(){if(/loaded|complete/.test(document.readyState)){B();
}},0);Event.observe(window,"load",B);}else{document.addEventListener("DOMContentLoaded",B,false);
}}else{document.write("<script id=__onDOMContentLoaded defer src=//:></script>");
$("__onDOMContentLoaded").onreadystatechange=function(){if(this.readyState=="complete"){this.onreadystatechange=null;
B();}};}})();Hash.toQueryString=Object.toQueryString;var Toggle={display:Element.toggle};
Element.Methods.childOf=Element.Methods.descendantOf;var Insertion={Before:function(B,A){return Element.insert(B,{before:A});
},Top:function(B,A){return Element.insert(B,{top:A});},Bottom:function(B,A){return Element.insert(B,{bottom:A});
},After:function(B,A){return Element.insert(B,{after:A});}};var $continue=new Error('"throw $continue" is deprecated, use "return" instead');
var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;
this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
},within:function(C,A,B){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(C,A,B);
}this.xcomp=A;this.ycomp=B;this.offset=Element.cumulativeOffset(C);return(B>=this.offset[1]&&B<this.offset[1]+C.offsetHeight&&A>=this.offset[0]&&A<this.offset[0]+C.offsetWidth);
},withinIncludingScrolloffsets:function(D,B,C){var A=Element.cumulativeScrollOffset(D);
this.xcomp=B+A[0]-this.deltaX;this.ycomp=C+A[1]-this.deltaY;this.offset=Element.cumulativeOffset(D);
return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+D.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+D.offsetWidth);
},overlap:function(A,B){if(!A){return 0;}if(A=="vertical"){return((this.offset[1]+B.offsetHeight)-this.ycomp)/B.offsetHeight;
}if(A=="horizontal"){return((this.offset[0]+B.offsetWidth)-this.xcomp)/B.offsetWidth;
}},cumulativeOffset:Element.Methods.cumulativeOffset,positionedOffset:Element.Methods.positionedOffset,absolutize:function(A){Position.prepare();
return Element.absolutize(A);},relativize:function(A){Position.prepare();return Element.relativize(A);
},realOffset:Element.Methods.cumulativeScrollOffset,offsetParent:Element.Methods.getOffsetParent,page:Element.Methods.viewportOffset,clone:function(A,C,B){B=B||{};
return Element.clonePosition(C,A,B);}};if(!document.getElementsByClassName){document.getElementsByClassName=function(B){function A(C){return C.blank()?null:"[contains(concat(' ', @class, ' '), ' "+C+" ')]";
}B.getElementsByClassName=Prototype.BrowserFeatures.XPath?function(D,C){C=C.toString().strip();
var E=/\s/.test(C)?$w(C).map(A).join(""):A(C);return E?document._getElementsByXPath(".//*"+E,D):[];
}:function(C,I){I=I.toString().strip();var D=[],E=(/\s/.test(I)?$w(I):null);if(!E&&!I){return D;
}var J=$(C).getElementsByTagName("*");I=" "+I+" ";for(var F=0,H,G;H=J[F];F++){if(H.className&&(G=" "+H.className+" ")&&(G.include(I)||(E&&E.all(function(K){return !K.toString().blank()&&G.include(" "+K+" ");
})))){D.push(Element.extend(H));}}return D;};return function(C,D){return $(D||document.body).getElementsByClassName(C);
};}(Element.Methods);}Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(A){this.element=$(A);
},_each:function(A){this.element.className.split(/\s+/).select(function(B){return B.length>0;
})._each(A);},set:function(A){this.element.className=A;},add:function(A){if(this.include(A)){return ;
}this.set($A(this).concat(A).join(" "));},remove:function(A){if(!this.include(A)){return ;
}this.set($A(this).without(A).join(" "));},toString:function(){return $A(this).join(" ");
}};Object.extend(Element.ClassNames.prototype,Enumerable);Element.addMethods();window.undefined=window.undefined;
Ext={version:"3.2.0"};Ext.apply=function(A,B,C){if(C){Ext.apply(A,C);}if(A&&B&&typeof B=="object"){for(var D in B){A[D]=B[D];
}}return A;};(function(){var W=0,D=Object.prototype.toString,I=navigator.userAgent.toLowerCase(),AB=function(A){return A.test(I);
},N=document,Q=N.compatMode=="CSS1Compat",Z=AB(/opera/),M=AB(/\bchrome\b/),J=AB(/webkit/),AA=!M&&AB(/safari/),V=AA&&AB(/applewebkit\/4/),S=AA&&AB(/version\/3/),Y=AA&&AB(/version\/4/),C=!Z&&AB(/msie/),E=C&&AB(/msie 7/),P=C&&AB(/msie 8/),F=C&&!E&&!P,O=!J&&AB(/gecko/),X=O&&AB(/rv:1\.8/),U=O&&AB(/rv:1\.9/),G=C&&!Q,e=AB(/windows|win32/),L=AB(/macintosh|mac os x/),K=AB(/adobeair/),R=AB(/linux/),T=/^https/i.test(window.location.protocol);
if(F){try{N.execCommand("BackgroundImageCache",false,true);}catch(H){}}Ext.apply(Ext,{SSL_SECURE_URL:T&&C?'javascript:""':"about:blank",isStrict:Q,isSecure:T,isReady:false,enableGarbageCollector:true,enableListenerCollection:false,enableNestedListenerRemoval:false,USE_NATIVE_JSON:false,applyIf:function(a,A){if(a){for(var B in A){if(!Ext.isDefined(a[B])){a[B]=A[B];
}}}return a;},id:function(A,B){A=Ext.getDom(A,true)||{};if(!A.id){A.id=(B||"ext-gen")+(++W);
}return A.id;},extend:function(){var B=function(b){for(var a in b){this[a]=b[a];}};
var A=Object.prototype.constructor;return function(h,b,c){if(Ext.isObject(b)){c=b;
b=h;h=c.constructor!=A?c.constructor:function(){b.apply(this,arguments);};}var d=function(){},a,g=b.prototype;
d.prototype=g;a=h.prototype=new d();a.constructor=h;h.superclass=g;if(g.constructor==A){g.constructor=b;
}h.override=function(i){Ext.override(h,i);};a.superclass=a.supr=(function(){return g;
});a.override=B;Ext.override(h,c);h.extend=function(i){return Ext.extend(h,i);};return h;
};}(),override:function(A,B){if(B){var a=A.prototype;Ext.apply(a,B);if(Ext.isIE&&B.hasOwnProperty("toString")){a.toString=B.toString;
}}},namespace:function(){var B,A;Ext.each(arguments,function(a){A=a.split(".");B=window[A[0]]=window[A[0]]||{};
Ext.each(A.slice(1),function(b){B=B[b]=B[b]||{};});});return B;},urlEncode:function(B,A){var a,c=[],b=encodeURIComponent;
Ext.iterate(B,function(g,d){a=Ext.isEmpty(d);Ext.each(a?g:d,function(h){c.push("&",b(g),"=",(!Ext.isEmpty(h)&&(h!=g||!a))?(Ext.isDate(h)?Ext.encode(h).replace(/"/g,""):b(h)):"");
});});if(!A){c.shift();A="";}return A+c.join("");},urlDecode:function(a,d){if(Ext.isEmpty(a)){return{};
}var B={},A=a.split("&"),g=decodeURIComponent,c,b;Ext.each(A,function(h){h=h.split("=");
c=g(h[0]);b=g(h[1]);B[c]=d||!B[c]?b:[].concat(B[c]).concat(b);});return B;},urlAppend:function(A,B){if(!Ext.isEmpty(B)){return A+(A.indexOf("?")===-1?"?":"&")+B;
}return A;},toArray:function(){return C?function(a,B,b,A){A=[];for(var d=0,c=a.length;
d<c;d++){A.push(a[d]);}return A.slice(B||0,b||A.length);}:function(A,B,a){return Array.prototype.slice.call(A,B||0,a||A.length);
};}(),isIterable:function(A){if(Ext.isArray(A)||A.callee){return true;}if(/NodeList|HTMLCollection/.test(D.call(A))){return true;
}return((typeof A.nextNode!="undefined"||A.item)&&Ext.isNumber(A.length));},each:function(A,a,B){if(Ext.isEmpty(A,true)){return ;
}if(!Ext.isIterable(A)||Ext.isPrimitive(A)){A=[A];}for(var c=0,b=A.length;c<b;c++){if(a.call(B||A[c],A[c],c,A)===false){return c;
}}},iterate:function(A,b,a){if(Ext.isEmpty(A)){return ;}if(Ext.isIterable(A)){Ext.each(A,b,a);
return ;}else{if(Ext.isObject(A)){for(var B in A){if(A.hasOwnProperty(B)){if(b.call(a||A,B,A[B],A)===false){return ;
}}}}}},getDom:function(A,a){if(!A||!N){return null;}if(A.dom){return A.dom;}else{if(Ext.isString(A)){var B=N.getElementById(A);
if(B&&C&&a){if(A==B.getAttribute("id")){return B;}else{return null;}}return B;}else{return A;
}}},getBody:function(){return Ext.get(N.body||N.documentElement);},removeNode:C&&!P?function(){var A;
return function(B){if(B&&B.tagName!="BODY"){(Ext.enableNestedListenerRemoval)?Ext.EventManager.purgeElement(B,true):Ext.EventManager.removeAll(B);
A=A||N.createElement("div");A.appendChild(B);A.innerHTML="";delete Ext.elCache[B.id];
}};}():function(A){if(A&&A.parentNode&&A.tagName!="BODY"){(Ext.enableNestedListenerRemoval)?Ext.EventManager.purgeElement(A,true):Ext.EventManager.removeAll(A);
A.parentNode.removeChild(A);delete Ext.elCache[A.id];}},isEmpty:function(B,A){return B===null||B===undefined||((Ext.isArray(B)&&!B.length))||(!A?B==="":false);
},isArray:function(A){return D.apply(A)==="[object Array]";},isDate:function(A){return D.apply(A)==="[object Date]";
},isObject:function(A){return !!A&&Object.prototype.toString.call(A)==="[object Object]";
},isPrimitive:function(A){return Ext.isString(A)||Ext.isNumber(A)||Ext.isBoolean(A);
},isFunction:function(A){return D.apply(A)==="[object Function]";},isNumber:function(A){return typeof A==="number"&&isFinite(A);
},isString:function(A){return typeof A==="string";},isBoolean:function(A){return typeof A==="boolean";
},isElement:function(A){return A?!!A.tagName:false;},isDefined:function(A){return typeof A!=="undefined";
},isOpera:Z,isWebKit:J,isChrome:M,isSafari:AA,isSafari3:S,isSafari4:Y,isSafari2:V,isIE:C,isIE6:F,isIE7:E,isIE8:P,isGecko:O,isGecko2:X,isGecko3:U,isBorderBox:G,isLinux:R,isWindows:e,isMac:L,isAir:K});
Ext.ns=Ext.namespace;})();Ext.ns("Ext.util","Ext.lib","Ext.data");Ext.elCache={};
Ext.apply(Function.prototype,{createInterceptor:function(A,C){var B=this;return !Ext.isFunction(A)?this:function(){var E=this,D=arguments;
A.target=E;A.method=B;return(A.apply(C||E||window,D)!==false)?B.apply(E||window,D):null;
};},createCallback:function(){var B=arguments,A=this;return function(){return A.apply(window,B);
};},createDelegate:function(C,B,D){var A=this;return function(){var F=B||arguments;
if(D===true){F=Array.prototype.slice.call(arguments,0);F=F.concat(B);}else{if(Ext.isNumber(D)){F=Array.prototype.slice.call(arguments,0);
var E=[D,0].concat(B);Array.prototype.splice.apply(F,E);}}return A.apply(C||window,F);
};},defer:function(D,B,C,E){var A=this.createDelegate(B,C,E);if(D>0){return setTimeout(A,D);
}A();return 0;}});Ext.applyIf(String,{format:function(A){var B=Ext.toArray(arguments,1);
return A.replace(/\{(\d+)\}/g,function(D,C){return B[C];});}});Ext.applyIf(Array.prototype,{indexOf:function(A,B){var C=this.length;
B=B||0;B+=(B<0)?C:0;for(;B<C;++B){if(this[B]===A){return B;}}return -1;},remove:function(A){var B=this.indexOf(A);
if(B!=-1){this.splice(B,1);}return this;}});Ext.ns("Ext.grid","Ext.list","Ext.dd","Ext.tree","Ext.form","Ext.menu","Ext.state","Ext.layout","Ext.app","Ext.ux","Ext.chart","Ext.direct");
Ext.apply(Ext,function(){var B=Ext,C=0,A=null;return{emptyFn:function(){},BLANK_IMAGE_URL:Ext.isIE6||Ext.isIE7||Ext.isAir?"http://extjs.com/s.gif":"data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",extendX:function(D,E){return Ext.extend(D,E(D.prototype));
},getDoc:function(){return Ext.get(document);},num:function(E,D){E=Number(Ext.isEmpty(E)||Ext.isArray(E)||Ext.isBoolean(E)||(Ext.isString(E)&&E.trim().length==0)?NaN:E);
return isNaN(E)?D:E;},value:function(F,D,E){return Ext.isEmpty(F,E)?D:F;},escapeRe:function(D){return D.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1");
},sequence:function(D,E,G,F){D[E]=D[E].createSequence(G,F);},addBehaviors:function(D){if(!Ext.isReady){Ext.onReady(function(){Ext.addBehaviors(D);
});}else{var F={},G,E,H;for(E in D){if((G=E.split("@"))[1]){H=G[0];if(!F[H]){F[H]=Ext.select(H);
}F[H].on(G[1],D[E]);}}F=null;}},getScrollBarWidth:function(H){if(!Ext.isReady){return 0;
}if(H===true||A===null){var D=Ext.getBody().createChild('<div class="x-hide-offsets" style="width:100px;height:50px;overflow:hidden;"><div style="height:200px;"></div></div>'),F=D.child("div",true);
var G=F.offsetWidth;D.setStyle("overflow",(Ext.isWebKit||Ext.isGecko)?"auto":"scroll");
var E=F.offsetWidth;D.remove();A=G-E+2;}return A;},combine:function(){var H=arguments,F=H.length,D=[];
for(var G=0;G<F;G++){var E=H[G];if(Ext.isArray(E)){D=D.concat(E);}else{if(E.length!==undefined&&!E.substr){D=D.concat(Array.prototype.slice.call(E,0));
}else{D.push(E);}}}return D;},copyTo:function(D,E,F){if(Ext.isString(F)){F=F.split(/[,;\s]/);
}Ext.each(F,function(G){if(E.hasOwnProperty(G)){D[G]=E[G];}},this);return D;},destroy:function(){Ext.each(arguments,function(D){if(D){if(Ext.isArray(D)){this.destroy.apply(this,D);
}else{if(Ext.isFunction(D.destroy)){D.destroy();}else{if(D.dom){D.remove();}}}}},this);
},destroyMembers:function(J,D,E,F){for(var I=1,H=arguments,G=H.length;I<G;I++){Ext.destroy(J[H[I]]);
delete J[H[I]];}},clean:function(D){var E=[];Ext.each(D,function(F){if(!!F){E.push(F);
}});return E;},unique:function(D){var E=[],F={};Ext.each(D,function(G){if(!F[G]){E.push(G);
}F[G]=true;});return E;},flatten:function(D){var F=[];function E(G){Ext.each(G,function(H){if(Ext.isArray(H)){E(H);
}else{F.push(H);}});return F;}return E(D);},min:function(D,E){var F=D[0];E=E||function(G,H){return G<H?-1:1;
};Ext.each(D,function(G){F=E(F,G)==-1?F:G;});return F;},max:function(D,E){var F=D[0];
E=E||function(G,H){return G>H?1:-1;};Ext.each(D,function(G){F=E(F,G)==1?F:G;});return F;
},mean:function(D){return D.length>0?Ext.sum(D)/D.length:undefined;},sum:function(D){var E=0;
Ext.each(D,function(F){E+=F;});return E;},partition:function(D,E){var F=[[],[]];Ext.each(D,function(G,I,H){F[(E&&E(G,I,H))||(!E&&G)?0:1].push(G);
});return F;},invoke:function(E,F){var D=[],G=Array.prototype.slice.call(arguments,2);
Ext.each(E,function(H,I){if(H&&Ext.isFunction(H[F])){D.push(H[F].apply(H,G));}else{D.push(undefined);
}});return D;},pluck:function(D,F){var E=[];Ext.each(D,function(G){E.push(G[F]);});
return E;},zip:function(){var H=Ext.partition(arguments,function(L){return !Ext.isFunction(L);
}),F=H[0],G=H[1][0],K=Ext.max(Ext.pluck(F,"length")),J=[];for(var E=0;E<K;E++){J[E]=[];
if(G){J[E]=G.apply(G,Ext.pluck(F,E));}else{for(var I=0,D=F.length;I<D;I++){J[E].push(F[I][E]);
}}}return J;},getCmp:function(D){return Ext.ComponentMgr.get(D);},useShims:B.isIE6||(B.isMac&&B.isGecko2),type:function(E){if(E===undefined||E===null){return false;
}if(E.htmlElement){return"element";}var D=typeof E;if(D=="object"&&E.nodeName){switch(E.nodeType){case 1:return"element";
case 3:return(/\S/).test(E.nodeValue)?"textnode":"whitespace";}}if(D=="object"||D=="function"){switch(E.constructor){case Array:return"array";
case RegExp:return"regexp";case Date:return"date";}if(Ext.isNumber(E.length)&&Ext.isFunction(E.item)){return"nodelist";
}}return D;},intercept:function(D,E,G,F){D[E]=D[E].createInterceptor(G,F);},callback:function(E,D,G,F){if(Ext.isFunction(E)){if(F){E.defer(F,D,G||[]);
}else{E.apply(D,G||[]);}}}};}());Ext.apply(Function.prototype,{createSequence:function(A,C){var B=this;
return !Ext.isFunction(A)?this:function(){var D=B.apply(this||window,arguments);A.apply(C||this||window,arguments);
return D;};}});Ext.applyIf(String,{escape:function(A){return A.replace(/('|\\)/g,"\\$1");
},leftPad:function(A,B,C){var D=String(A);if(!C){C=" ";}while(D.length<B){D=C+D;}return D;
}});String.prototype.toggle=function(A,B){return this==A?B:A;};String.prototype.trim=function(){var A=/^\s+|\s+$/g;
return function(){return this.replace(A,"");};}();Date.prototype.getElapsed=function(A){return Math.abs((A||new Date()).getTime()-this.getTime());
};Ext.applyIf(Number.prototype,{constrain:function(A,B){return Math.min(Math.max(this,A),B);
}});Ext.util.TaskRunner=function(A){A=A||10;var G=[],F=[],D=0,H=false,I=function(){H=false;
clearInterval(D);D=0;},B=function(){if(!H){H=true;D=setInterval(C,A);}},E=function(J){F.push(J);
if(J.onStop){J.onStop.apply(J.scope||J);}},C=function(){var L=F.length,J=new Date().getTime();
if(L>0){for(var K=0;K<L;K++){G.remove(F[K]);}F=[];if(G.length<1){I();return ;}}for(var K=0,M,P,N,O=G.length;
K<O;++K){M=G[K];P=J-M.taskRunTime;if(M.interval<=P){N=M.run.apply(M.scope||M,M.args||[++M.taskRunCount]);
M.taskRunTime=J;if(N===false||M.taskRunCount===M.repeat){E(M);return ;}}if(M.duration&&M.duration<=(J-M.taskStartTime)){E(M);
}}};this.start=function(J){G.push(J);J.taskStartTime=new Date().getTime();J.taskRunTime=0;
J.taskRunCount=0;B();return J;};this.stop=function(J){E(J);return J;};this.stopAll=function(){I();
for(var K=0,J=G.length;K<J;K++){if(G[K].onStop){G[K].onStop();}}G=[];F=[];};};Ext.TaskMgr=new Ext.util.TaskRunner();
(function(){var A,E=Prototype.Version.split("."),B=(parseInt(E[0])>=2)||(parseInt(E[1])>=7)||(parseInt(E[2])>=1),G={},H=function(I,J){if(I&&I.firstChild){while(J){if(J===I){return true;
}J=J.parentNode;if(J&&(J.nodeType!=1)){J=null;}}}return false;},C=function(I){return !H(I.currentTarget,Ext.lib.Event.getRelatedTarget(I));
};Ext.lib.Dom={getViewWidth:function(I){return I?this.getDocumentWidth():this.getViewportWidth();
},getViewHeight:function(I){return I?this.getDocumentHeight():this.getViewportHeight();
},getDocumentHeight:function(){var I=(document.compatMode!="CSS1Compat")?document.body.scrollHeight:document.documentElement.scrollHeight;
return Math.max(I,this.getViewportHeight());},getDocumentWidth:function(){var I=(document.compatMode!="CSS1Compat")?document.body.scrollWidth:document.documentElement.scrollWidth;
return Math.max(I,this.getViewportWidth());},getViewportHeight:function(){var I=self.innerHeight;
var J=document.compatMode;if((J||Ext.isIE)&&!Ext.isOpera){I=(J=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight;
}return I;},getViewportWidth:function(){var I=self.innerWidth;var J=document.compatMode;
if(J||Ext.isIE){I=(J=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth;
}return I;},isAncestor:function(J,K){var I=false;J=Ext.getDom(J);K=Ext.getDom(K);
if(J&&K){if(J.contains){return J.contains(K);}else{if(J.compareDocumentPosition){return !!(J.compareDocumentPosition(K)&16);
}else{while(K=K.parentNode){I=K==J||I;}}}}return I;},getRegion:function(I){return Ext.lib.Region.getRegion(I);
},getY:function(I){return this.getXY(I)[1];},getX:function(I){return this.getXY(I)[0];
},getXY:function(O){var N,R,I,J,Q=(document.body||document.documentElement);O=Ext.getDom(O);
if(O==Q){return[0,0];}if(O.getBoundingClientRect){I=O.getBoundingClientRect();J=F(document).getScroll();
return[Math.round(I.left+J.left),Math.round(I.top+J.top)];}var L=0,K=0;N=O;var P=F(O).getStyle("position")=="absolute";
while(N){L+=N.offsetLeft;K+=N.offsetTop;if(!P&&F(N).getStyle("position")=="absolute"){P=true;
}if(Ext.isGecko){R=F(N);var M=parseInt(R.getStyle("borderTopWidth"),10)||0;var S=parseInt(R.getStyle("borderLeftWidth"),10)||0;
L+=S;K+=M;if(N!=O&&R.getStyle("overflow")!="visible"){L+=S;K+=M;}}N=N.offsetParent;
}if(Ext.isSafari&&P){L-=Q.offsetLeft;K-=Q.offsetTop;}if(Ext.isGecko&&!P){var T=F(Q);
L+=parseInt(T.getStyle("borderLeftWidth"),10)||0;K+=parseInt(T.getStyle("borderTopWidth"),10)||0;
}N=O.parentNode;while(N&&N!=Q){if(!Ext.isOpera||(N.tagName!="TR"&&F(N).getStyle("display")!="inline")){L-=N.scrollLeft;
K-=N.scrollTop;}N=N.parentNode;}return[L,K];},setXY:function(I,J){I=Ext.fly(I,"_setXY");
I.position();var K=I.translatePoints(J);if(J[0]!==false){I.dom.style.left=K.left+"px";
}if(J[1]!==false){I.dom.style.top=K.top+"px";}},setX:function(J,I){this.setXY(J,[I,false]);
},setY:function(I,J){this.setXY(I,[false,J]);}};Ext.lib.Event={getPageX:function(I){return Event.pointerX(I.browserEvent||I);
},getPageY:function(I){return Event.pointerY(I.browserEvent||I);},getXY:function(I){I=I.browserEvent||I;
return[Event.pointerX(I),Event.pointerY(I)];},getTarget:function(I){return Event.element(I.browserEvent||I);
},resolveTextNode:Ext.isGecko?function(J){if(!J){return ;}var I=HTMLElement.prototype.toString.call(J);
if(I=="[xpconnect wrapped native prototype]"||I=="[object XULElement]"){return ;}return J.nodeType==3?J.parentNode:J;
}:function(I){return I&&I.nodeType==3?I.parentNode:I;},getRelatedTarget:function(J){J=J.browserEvent||J;
var I=J.relatedTarget;if(!I){if(J.type=="mouseout"){I=J.toElement;}else{if(J.type=="mouseover"){I=J.fromElement;
}}}return this.resolveTextNode(I);},on:function(L,I,K){if((I=="mouseenter"||I=="mouseleave")&&!B){var J=G[L.id]||(G[L.id]={});
J[I]=K;K=K.createInterceptor(C);I=(I=="mouseenter")?"mouseover":"mouseout";}Event.observe(L,I,K,false);
},un:function(M,I,L){if((I=="mouseenter"||I=="mouseleave")&&!B){var K=G[M.id],J=K&&K[I];
if(J){L=J.fn;delete K[I];I=(I=="mouseenter")?"mouseover":"mouseout";}}Event.stopObserving(M,I,L,false);
},purgeElement:function(I){},preventDefault:function(I){I=I.browserEvent||I;if(I.preventDefault){I.preventDefault();
}else{I.returnValue=false;}},stopPropagation:function(I){I=I.browserEvent||I;if(I.stopPropagation){I.stopPropagation();
}else{I.cancelBubble=true;}},stopEvent:function(I){Event.stop(I.browserEvent||I);
},onAvailable:function(J,M,I){var L=new Date(),K;var N=function(){if(L.getElapsed()>10000){clearInterval(K);
}var O=document.getElementById(J);if(O){clearInterval(K);M.call(I||window,O);}};K=setInterval(N,50);
}};Ext.lib.Ajax=function(){var K=function(L){return L.success?function(M){L.success.call(L.scope||window,I(L,M));
}:Ext.emptyFn;};var J=function(L){return L.failure?function(M){L.failure.call(L.scope||window,I(L,M));
}:Ext.emptyFn;};var I=function(O,L){var M={},N,P,Q;try{N=L.getAllResponseHeaders();
Ext.each(N.replace(/\r\n/g,"\n").split("\n"),function(S){P=S.indexOf(":");if(P>=0){Q=S.substr(0,P).toLowerCase();
if(S.charAt(P+1)==" "){++P;}M[Q]=S.substr(P+1);}});}catch(R){}return{responseText:L.responseText,responseXML:L.responseXML,argument:O.argument,status:L.status,statusText:L.statusText,getResponseHeader:function(S){return M[S.toLowerCase()];
},getAllResponseHeaders:function(){return N;}};};return{request:function(M,N,O,P,Q){var L={method:M,parameters:P||"",timeout:O.timeout,onSuccess:K(O),onFailure:J(O)};
if(Q){var R=Q.headers;if(R){L.requestHeaders=R;}if(Q.xmlData){M=(M?M:(Q.method?Q.method:"POST"));
if(!R||!R["Content-Type"]){L.contentType="text/xml";}L.postBody=Q.xmlData;delete L.parameters;
}if(Q.jsonData){M=(M?M:(Q.method?Q.method:"POST"));if(!R||!R["Content-Type"]){L.contentType="application/json";
}L.postBody=typeof Q.jsonData=="object"?Ext.encode(Q.jsonData):Q.jsonData;delete L.parameters;
}}new Ajax.Request(N,L);},formRequest:function(M,N,O,P,Q,L){new Ajax.Request(N,{method:Ext.getDom(M).method||"POST",parameters:Form.serialize(M)+(P?"&"+P:""),timeout:O.timeout,onSuccess:K(O),onFailure:J(O)});
},isCallInProgress:function(L){return false;},abort:function(L){return false;},serializeForm:function(L){return Form.serialize(L.dom||L);
}};}();Ext.lib.Anim=function(){var I={easeOut:function(K){return 1-Math.pow(1-K,2);
},easeIn:function(K){return 1-Math.pow(1-K,2);}};var J=function(L,K){return{stop:function(M){this.effect.cancel();
},isAnimated:function(){return this.effect.state=="running";},proxyCallback:function(){Ext.callback(L,K);
}};};return{scroll:function(K,M,L,N,Q,O){var P=J(Q,O);K=Ext.getDom(K);if(typeof M.scroll.to[0]=="number"){K.scrollLeft=M.scroll.to[0];
}if(typeof M.scroll.to[1]=="number"){K.scrollTop=M.scroll.to[1];}P.proxyCallback();
return P;},motion:function(K,M,L,N,P,O){return this.run(K,M,L,N,P,O);},color:function(K,M,L,N,P,O){return this.run(K,M,L,N,P,O);
},run:function(U,O,K,R,S,V,P){var T={};for(var N in O){switch(N){case"points":var Q,W,L=Ext.fly(U,"_animrun");
L.position();if(Q=O.points.by){var X=L.getXY();W=L.translatePoints([X[0]+Q[0],X[1]+Q[1]]);
}else{W=L.translatePoints(O.points.to);}T.left=W.left+"px";T.top=W.top+"px";break;
case"width":T.width=O.width.to+"px";break;case"height":T.height=O.height.to+"px";
break;case"opacity":T.opacity=String(O.opacity.to);break;default:T[N]=String(O[N].to);
break;}}var M=J(S,V);M.effect=new Effect.Morph(Ext.id(U),{duration:K,afterFinish:M.proxyCallback,transition:I[R]||Effect.Transitions.linear,style:T});
return M;}};}();function F(I){if(!A){A=new Ext.Element.Flyweight();}A.dom=I;return A;
}Ext.lib.Region=function(L,J,I,K){this.top=L;this[1]=L;this.right=J;this.bottom=I;
this.left=K;this[0]=K;};Ext.lib.Region.prototype={contains:function(I){return(I.left>=this.left&&I.right<=this.right&&I.top>=this.top&&I.bottom<=this.bottom);
},getArea:function(){return((this.bottom-this.top)*(this.right-this.left));},intersect:function(J){var M=Math.max(this.top,J.top);
var K=Math.min(this.right,J.right);var I=Math.min(this.bottom,J.bottom);var L=Math.max(this.left,J.left);
if(I>=M&&K>=L){return new Ext.lib.Region(M,K,I,L);}else{return null;}},union:function(J){var M=Math.min(this.top,J.top);
var K=Math.max(this.right,J.right);var I=Math.max(this.bottom,J.bottom);var L=Math.min(this.left,J.left);
return new Ext.lib.Region(M,K,I,L);},constrainTo:function(I){this.top=this.top.constrain(I.top,I.bottom);
this.bottom=this.bottom.constrain(I.top,I.bottom);this.left=this.left.constrain(I.left,I.right);
this.right=this.right.constrain(I.left,I.right);return this;},adjust:function(L,K,I,J){this.top+=L;
this.left+=K;this.right+=J;this.bottom+=I;return this;}};Ext.lib.Region.getRegion=function(L){var K=Ext.lib.Dom.getXY(L);
var N=K[1];var J=K[0]+L.offsetWidth;var I=K[1]+L.offsetHeight;var M=K[0];return new Ext.lib.Region(N,J,I,M);
};Ext.lib.Point=function(I,J){if(Ext.isArray(I)){J=I[1];I=I[0];}this.x=this.right=this.left=this[0]=I;
this.y=this.top=this.bottom=this[1]=J;};Ext.lib.Point.prototype=new Ext.lib.Region();
if(Ext.isIE){function D(){var I=Function.prototype;delete I.createSequence;delete I.defer;
delete I.createDelegate;delete I.createCallback;delete I.createInterceptor;window.detachEvent("onunload",D);
}window.attachEvent("onunload",D);}})();window.undefined=window.undefined;Ext={version:"3.2.0"};
Ext.apply=function(A,B,C){if(C){Ext.apply(A,C);}if(A&&B&&typeof B=="object"){for(var D in B){A[D]=B[D];
}}return A;};(function(){var W=0,D=Object.prototype.toString,I=navigator.userAgent.toLowerCase(),AB=function(A){return A.test(I);
},N=document,Q=N.compatMode=="CSS1Compat",Z=AB(/opera/),M=AB(/\bchrome\b/),J=AB(/webkit/),AA=!M&&AB(/safari/),V=AA&&AB(/applewebkit\/4/),S=AA&&AB(/version\/3/),Y=AA&&AB(/version\/4/),C=!Z&&AB(/msie/),E=C&&AB(/msie 7/),P=C&&AB(/msie 8/),F=C&&!E&&!P,O=!J&&AB(/gecko/),X=O&&AB(/rv:1\.8/),U=O&&AB(/rv:1\.9/),G=C&&!Q,e=AB(/windows|win32/),L=AB(/macintosh|mac os x/),K=AB(/adobeair/),R=AB(/linux/),T=/^https/i.test(window.location.protocol);
if(F){try{N.execCommand("BackgroundImageCache",false,true);}catch(H){}}Ext.apply(Ext,{SSL_SECURE_URL:T&&C?'javascript:""':"about:blank",isStrict:Q,isSecure:T,isReady:false,enableGarbageCollector:true,enableListenerCollection:false,enableNestedListenerRemoval:false,USE_NATIVE_JSON:false,applyIf:function(a,A){if(a){for(var B in A){if(!Ext.isDefined(a[B])){a[B]=A[B];
}}}return a;},id:function(A,B){A=Ext.getDom(A,true)||{};if(!A.id){A.id=(B||"ext-gen")+(++W);
}return A.id;},extend:function(){var B=function(b){for(var a in b){this[a]=b[a];}};
var A=Object.prototype.constructor;return function(h,b,c){if(Ext.isObject(b)){c=b;
b=h;h=c.constructor!=A?c.constructor:function(){b.apply(this,arguments);};}var d=function(){},a,g=b.prototype;
d.prototype=g;a=h.prototype=new d();a.constructor=h;h.superclass=g;if(g.constructor==A){g.constructor=b;
}h.override=function(i){Ext.override(h,i);};a.superclass=a.supr=(function(){return g;
});a.override=B;Ext.override(h,c);h.extend=function(i){return Ext.extend(h,i);};return h;
};}(),override:function(A,B){if(B){var a=A.prototype;Ext.apply(a,B);if(Ext.isIE&&B.hasOwnProperty("toString")){a.toString=B.toString;
}}},namespace:function(){var B,A;Ext.each(arguments,function(a){A=a.split(".");B=window[A[0]]=window[A[0]]||{};
Ext.each(A.slice(1),function(b){B=B[b]=B[b]||{};});});return B;},urlEncode:function(B,A){var a,c=[],b=encodeURIComponent;
Ext.iterate(B,function(g,d){a=Ext.isEmpty(d);Ext.each(a?g:d,function(h){c.push("&",b(g),"=",(!Ext.isEmpty(h)&&(h!=g||!a))?(Ext.isDate(h)?Ext.encode(h).replace(/"/g,""):b(h)):"");
});});if(!A){c.shift();A="";}return A+c.join("");},urlDecode:function(a,d){if(Ext.isEmpty(a)){return{};
}var B={},A=a.split("&"),g=decodeURIComponent,c,b;Ext.each(A,function(h){h=h.split("=");
c=g(h[0]);b=g(h[1]);B[c]=d||!B[c]?b:[].concat(B[c]).concat(b);});return B;},urlAppend:function(A,B){if(!Ext.isEmpty(B)){return A+(A.indexOf("?")===-1?"?":"&")+B;
}return A;},toArray:function(){return C?function(a,B,b,A){A=[];for(var d=0,c=a.length;
d<c;d++){A.push(a[d]);}return A.slice(B||0,b||A.length);}:function(A,B,a){return Array.prototype.slice.call(A,B||0,a||A.length);
};}(),isIterable:function(A){if(Ext.isArray(A)||A.callee){return true;}if(/NodeList|HTMLCollection/.test(D.call(A))){return true;
}return((typeof A.nextNode!="undefined"||A.item)&&Ext.isNumber(A.length));},each:function(A,a,B){if(Ext.isEmpty(A,true)){return ;
}if(!Ext.isIterable(A)||Ext.isPrimitive(A)){A=[A];}for(var c=0,b=A.length;c<b;c++){if(a.call(B||A[c],A[c],c,A)===false){return c;
}}},iterate:function(A,b,a){if(Ext.isEmpty(A)){return ;}if(Ext.isIterable(A)){Ext.each(A,b,a);
return ;}else{if(Ext.isObject(A)){for(var B in A){if(A.hasOwnProperty(B)){if(b.call(a||A,B,A[B],A)===false){return ;
}}}}}},getDom:function(A,a){if(!A||!N){return null;}if(A.dom){return A.dom;}else{if(Ext.isString(A)){var B=N.getElementById(A);
if(B&&C&&a){if(A==B.getAttribute("id")){return B;}else{return null;}}return B;}else{return A;
}}},getBody:function(){return Ext.get(N.body||N.documentElement);},removeNode:C&&!P?function(){var A;
return function(B){if(B&&B.tagName!="BODY"){(Ext.enableNestedListenerRemoval)?Ext.EventManager.purgeElement(B,true):Ext.EventManager.removeAll(B);
A=A||N.createElement("div");A.appendChild(B);A.innerHTML="";delete Ext.elCache[B.id];
}};}():function(A){if(A&&A.parentNode&&A.tagName!="BODY"){(Ext.enableNestedListenerRemoval)?Ext.EventManager.purgeElement(A,true):Ext.EventManager.removeAll(A);
A.parentNode.removeChild(A);delete Ext.elCache[A.id];}},isEmpty:function(B,A){return B===null||B===undefined||((Ext.isArray(B)&&!B.length))||(!A?B==="":false);
},isArray:function(A){return D.apply(A)==="[object Array]";},isDate:function(A){return D.apply(A)==="[object Date]";
},isObject:function(A){return !!A&&Object.prototype.toString.call(A)==="[object Object]";
},isPrimitive:function(A){return Ext.isString(A)||Ext.isNumber(A)||Ext.isBoolean(A);
},isFunction:function(A){return D.apply(A)==="[object Function]";},isNumber:function(A){return typeof A==="number"&&isFinite(A);
},isString:function(A){return typeof A==="string";},isBoolean:function(A){return typeof A==="boolean";
},isElement:function(A){return A?!!A.tagName:false;},isDefined:function(A){return typeof A!=="undefined";
},isOpera:Z,isWebKit:J,isChrome:M,isSafari:AA,isSafari3:S,isSafari4:Y,isSafari2:V,isIE:C,isIE6:F,isIE7:E,isIE8:P,isGecko:O,isGecko2:X,isGecko3:U,isBorderBox:G,isLinux:R,isWindows:e,isMac:L,isAir:K});
Ext.ns=Ext.namespace;})();Ext.ns("Ext.util","Ext.lib","Ext.data");Ext.elCache={};
Ext.apply(Function.prototype,{createInterceptor:function(A,C){var B=this;return !Ext.isFunction(A)?this:function(){var E=this,D=arguments;
A.target=E;A.method=B;return(A.apply(C||E||window,D)!==false)?B.apply(E||window,D):null;
};},createCallback:function(){var B=arguments,A=this;return function(){return A.apply(window,B);
};},createDelegate:function(C,B,D){var A=this;return function(){var F=B||arguments;
if(D===true){F=Array.prototype.slice.call(arguments,0);F=F.concat(B);}else{if(Ext.isNumber(D)){F=Array.prototype.slice.call(arguments,0);
var E=[D,0].concat(B);Array.prototype.splice.apply(F,E);}}return A.apply(C||window,F);
};},defer:function(D,B,C,E){var A=this.createDelegate(B,C,E);if(D>0){return setTimeout(A,D);
}A();return 0;}});Ext.applyIf(String,{format:function(A){var B=Ext.toArray(arguments,1);
return A.replace(/\{(\d+)\}/g,function(D,C){return B[C];});}});Ext.applyIf(Array.prototype,{indexOf:function(A,B){var C=this.length;
B=B||0;B+=(B<0)?C:0;for(;B<C;++B){if(this[B]===A){return B;}}return -1;},remove:function(A){var B=this.indexOf(A);
if(B!=-1){this.splice(B,1);}return this;}});Ext.ns("Ext.grid","Ext.list","Ext.dd","Ext.tree","Ext.form","Ext.menu","Ext.state","Ext.layout","Ext.app","Ext.ux","Ext.chart","Ext.direct");
Ext.apply(Ext,function(){var B=Ext,C=0,A=null;return{emptyFn:function(){},BLANK_IMAGE_URL:Ext.isIE6||Ext.isIE7||Ext.isAir?"http://extjs.com/s.gif":"data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",extendX:function(D,E){return Ext.extend(D,E(D.prototype));
},getDoc:function(){return Ext.get(document);},num:function(E,D){E=Number(Ext.isEmpty(E)||Ext.isArray(E)||Ext.isBoolean(E)||(Ext.isString(E)&&E.trim().length==0)?NaN:E);
return isNaN(E)?D:E;},value:function(F,D,E){return Ext.isEmpty(F,E)?D:F;},escapeRe:function(D){return D.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1");
},sequence:function(D,E,G,F){D[E]=D[E].createSequence(G,F);},addBehaviors:function(D){if(!Ext.isReady){Ext.onReady(function(){Ext.addBehaviors(D);
});}else{var F={},G,E,H;for(E in D){if((G=E.split("@"))[1]){H=G[0];if(!F[H]){F[H]=Ext.select(H);
}F[H].on(G[1],D[E]);}}F=null;}},getScrollBarWidth:function(H){if(!Ext.isReady){return 0;
}if(H===true||A===null){var D=Ext.getBody().createChild('<div class="x-hide-offsets" style="width:100px;height:50px;overflow:hidden;"><div style="height:200px;"></div></div>'),F=D.child("div",true);
var G=F.offsetWidth;D.setStyle("overflow",(Ext.isWebKit||Ext.isGecko)?"auto":"scroll");
var E=F.offsetWidth;D.remove();A=G-E+2;}return A;},combine:function(){var H=arguments,F=H.length,D=[];
for(var G=0;G<F;G++){var E=H[G];if(Ext.isArray(E)){D=D.concat(E);}else{if(E.length!==undefined&&!E.substr){D=D.concat(Array.prototype.slice.call(E,0));
}else{D.push(E);}}}return D;},copyTo:function(D,E,F){if(Ext.isString(F)){F=F.split(/[,;\s]/);
}Ext.each(F,function(G){if(E.hasOwnProperty(G)){D[G]=E[G];}},this);return D;},destroy:function(){Ext.each(arguments,function(D){if(D){if(Ext.isArray(D)){this.destroy.apply(this,D);
}else{if(Ext.isFunction(D.destroy)){D.destroy();}else{if(D.dom){D.remove();}}}}},this);
},destroyMembers:function(J,D,E,F){for(var I=1,H=arguments,G=H.length;I<G;I++){Ext.destroy(J[H[I]]);
delete J[H[I]];}},clean:function(D){var E=[];Ext.each(D,function(F){if(!!F){E.push(F);
}});return E;},unique:function(D){var E=[],F={};Ext.each(D,function(G){if(!F[G]){E.push(G);
}F[G]=true;});return E;},flatten:function(D){var F=[];function E(G){Ext.each(G,function(H){if(Ext.isArray(H)){E(H);
}else{F.push(H);}});return F;}return E(D);},min:function(D,E){var F=D[0];E=E||function(G,H){return G<H?-1:1;
};Ext.each(D,function(G){F=E(F,G)==-1?F:G;});return F;},max:function(D,E){var F=D[0];
E=E||function(G,H){return G>H?1:-1;};Ext.each(D,function(G){F=E(F,G)==1?F:G;});return F;
},mean:function(D){return D.length>0?Ext.sum(D)/D.length:undefined;},sum:function(D){var E=0;
Ext.each(D,function(F){E+=F;});return E;},partition:function(D,E){var F=[[],[]];Ext.each(D,function(G,I,H){F[(E&&E(G,I,H))||(!E&&G)?0:1].push(G);
});return F;},invoke:function(E,F){var D=[],G=Array.prototype.slice.call(arguments,2);
Ext.each(E,function(H,I){if(H&&Ext.isFunction(H[F])){D.push(H[F].apply(H,G));}else{D.push(undefined);
}});return D;},pluck:function(D,F){var E=[];Ext.each(D,function(G){E.push(G[F]);});
return E;},zip:function(){var H=Ext.partition(arguments,function(L){return !Ext.isFunction(L);
}),F=H[0],G=H[1][0],K=Ext.max(Ext.pluck(F,"length")),J=[];for(var E=0;E<K;E++){J[E]=[];
if(G){J[E]=G.apply(G,Ext.pluck(F,E));}else{for(var I=0,D=F.length;I<D;I++){J[E].push(F[I][E]);
}}}return J;},getCmp:function(D){return Ext.ComponentMgr.get(D);},useShims:B.isIE6||(B.isMac&&B.isGecko2),type:function(E){if(E===undefined||E===null){return false;
}if(E.htmlElement){return"element";}var D=typeof E;if(D=="object"&&E.nodeName){switch(E.nodeType){case 1:return"element";
case 3:return(/\S/).test(E.nodeValue)?"textnode":"whitespace";}}if(D=="object"||D=="function"){switch(E.constructor){case Array:return"array";
case RegExp:return"regexp";case Date:return"date";}if(Ext.isNumber(E.length)&&Ext.isFunction(E.item)){return"nodelist";
}}return D;},intercept:function(D,E,G,F){D[E]=D[E].createInterceptor(G,F);},callback:function(E,D,G,F){if(Ext.isFunction(E)){if(F){E.defer(F,D,G||[]);
}else{E.apply(D,G||[]);}}}};}());Ext.apply(Function.prototype,{createSequence:function(A,C){var B=this;
return !Ext.isFunction(A)?this:function(){var D=B.apply(this||window,arguments);A.apply(C||this||window,arguments);
return D;};}});Ext.applyIf(String,{escape:function(A){return A.replace(/('|\\)/g,"\\$1");
},leftPad:function(A,B,C){var D=String(A);if(!C){C=" ";}while(D.length<B){D=C+D;}return D;
}});String.prototype.toggle=function(A,B){return this==A?B:A;};String.prototype.trim=function(){var A=/^\s+|\s+$/g;
return function(){return this.replace(A,"");};}();Date.prototype.getElapsed=function(A){return Math.abs((A||new Date()).getTime()-this.getTime());
};Ext.applyIf(Number.prototype,{constrain:function(A,B){return Math.min(Math.max(this,A),B);
}});Ext.util.TaskRunner=function(A){A=A||10;var G=[],F=[],D=0,H=false,I=function(){H=false;
clearInterval(D);D=0;},B=function(){if(!H){H=true;D=setInterval(C,A);}},E=function(J){F.push(J);
if(J.onStop){J.onStop.apply(J.scope||J);}},C=function(){var L=F.length,J=new Date().getTime();
if(L>0){for(var K=0;K<L;K++){G.remove(F[K]);}F=[];if(G.length<1){I();return ;}}for(var K=0,M,P,N,O=G.length;
K<O;++K){M=G[K];P=J-M.taskRunTime;if(M.interval<=P){N=M.run.apply(M.scope||M,M.args||[++M.taskRunCount]);
M.taskRunTime=J;if(N===false||M.taskRunCount===M.repeat){E(M);return ;}}if(M.duration&&M.duration<=(J-M.taskStartTime)){E(M);
}}};this.start=function(J){G.push(J);J.taskStartTime=new Date().getTime();J.taskRunTime=0;
J.taskRunCount=0;B();return J;};this.stop=function(J){E(J);return J;};this.stopAll=function(){I();
for(var K=0,J=G.length;K<J;K++){if(G[K].onStop){G[K].onStop();}}G=[];F=[];};};Ext.TaskMgr=new Ext.util.TaskRunner();
(function(){var A;function B(D){if(!A){A=new Ext.Element.Flyweight();}A.dom=D;return A;
}(function(){var D=document,F=D.compatMode=="CSS1Compat",H=Math.max,E=Math.round,G=parseInt;
Ext.lib.Dom={isAncestor:function(J,K){var I=false;J=Ext.getDom(J);K=Ext.getDom(K);
if(J&&K){if(J.contains){return J.contains(K);}else{if(J.compareDocumentPosition){return !!(J.compareDocumentPosition(K)&16);
}else{while(K=K.parentNode){I=K==J||I;}}}}return I;},getViewWidth:function(I){return I?this.getDocumentWidth():this.getViewportWidth();
},getViewHeight:function(I){return I?this.getDocumentHeight():this.getViewportHeight();
},getDocumentHeight:function(){return H(!F?D.body.scrollHeight:D.documentElement.scrollHeight,this.getViewportHeight());
},getDocumentWidth:function(){return H(!F?D.body.scrollWidth:D.documentElement.scrollWidth,this.getViewportWidth());
},getViewportHeight:function(){return Ext.isIE?(Ext.isStrict?D.documentElement.clientHeight:D.body.clientHeight):self.innerHeight;
},getViewportWidth:function(){return !Ext.isStrict&&!Ext.isOpera?D.body.clientWidth:Ext.isIE?D.documentElement.clientWidth:self.innerWidth;
},getY:function(I){return this.getXY(I)[1];},getX:function(I){return this.getXY(I)[0];
},getXY:function(P){var O,K,J,L,T,U,N=0,I=0,M,Q,R=(D.body||D.documentElement),S=[0,0];
P=Ext.getDom(P);if(P!=R){if(P.getBoundingClientRect){J=P.getBoundingClientRect();
M=B(document).getScroll();S=[E(J.left+M.left),E(J.top+M.top)];}else{O=P;Q=B(P).isStyle("position","absolute");
while(O){K=B(O);N+=O.offsetLeft;I+=O.offsetTop;Q=Q||K.isStyle("position","absolute");
if(Ext.isGecko){I+=L=G(K.getStyle("borderTopWidth"),10)||0;N+=T=G(K.getStyle("borderLeftWidth"),10)||0;
if(O!=P&&!K.isStyle("overflow","visible")){N+=T;I+=L;}}O=O.offsetParent;}if(Ext.isSafari&&Q){N-=R.offsetLeft;
I-=R.offsetTop;}if(Ext.isGecko&&!Q){U=B(R);N+=G(U.getStyle("borderLeftWidth"),10)||0;
I+=G(U.getStyle("borderTopWidth"),10)||0;}O=P.parentNode;while(O&&O!=R){if(!Ext.isOpera||(O.tagName!="TR"&&!B(O).isStyle("display","inline"))){N-=O.scrollLeft;
I-=O.scrollTop;}O=O.parentNode;}S=[N,I];}}return S;},setXY:function(L,M){(L=Ext.fly(L,"_setXY")).position();
var J=L.translatePoints(M),I=L.dom.style,K;for(K in J){if(!isNaN(J[K])){I[K]=J[K]+"px";
}}},setX:function(J,I){this.setXY(J,[I,false]);},setY:function(I,J){this.setXY(I,[false,J]);
}};})();Ext.lib.Dom.getRegion=function(D){return Ext.lib.Region.getRegion(D);};Ext.lib.Event=function(){var M=false,Y={},AA=0,J=[],Z,c=false,Q=window,AC=document,V=200,I=20,b=0,H=0,S=1,W=2,N=2,AG=3,O="scrollLeft",K="scrollTop",X="unload",AF="mouseover",AB="mouseout",a=function(){var D;
if(Q.addEventListener){D=function(G,d,E,F){if(d=="mouseenter"){E=E.createInterceptor(U);
G.addEventListener(AF,E,(F));}else{if(d=="mouseleave"){E=E.createInterceptor(U);G.addEventListener(AB,E,(F));
}else{G.addEventListener(d,E,(F));}}return E;};}else{if(Q.attachEvent){D=function(G,d,E,F){G.attachEvent("on"+d,E);
return E;};}else{D=function(){};}}return D;}(),R=function(){var D;if(Q.removeEventListener){D=function(G,d,E,F){if(d=="mouseenter"){d=AF;
}else{if(d=="mouseleave"){d=AB;}}G.removeEventListener(d,E,(F));};}else{if(Q.detachEvent){D=function(E,F,G){E.detachEvent("on"+F,G);
};}else{D=function(){};}}return D;}();function U(D){return !L(D.currentTarget,AH.getRelatedTarget(D));
}function L(D,E){if(D&&D.firstChild){while(E){if(E===D){return true;}E=E.parentNode;
if(E&&(E.nodeType!=1)){E=null;}}}return false;}function AD(){var g=false,G=[],d,D,E,F,e=!M||(AA>0);
if(!c){c=true;for(D=0,E=J.length;D<E;D++){F=J[D];if(F&&(d=AC.getElementById(F.id))){if(!F.checkReady||M||d.nextSibling||(AC&&AC.body)){d=F.override?(F.override===true?F.obj:F.override):d;
F.fn.call(d,F.obj);J.remove(F);}else{G.push(F);}}}AA=(G.length===0)?0:AA-1;if(e){T();
}else{clearInterval(Z);Z=null;}g=!(c=false);}return g;}function T(){if(!Z){var D=function(){AD();
};Z=setInterval(D,I);}}function AE(){var D=AC.documentElement,E=AC.body;if(D&&(D[K]||D[O])){return[D[O],D[K]];
}else{if(E){return[E[O],E[K]];}else{return[0,0];}}}function P(D,E){D=D.browserEvent||D;
var F=D["page"+E];if(!F&&F!==0){F=D["client"+E]||0;if(Ext.isIE){F+=AE()[E=="X"?0:1];
}}return F;}var AH={extAdapter:true,onAvailable:function(G,E,D,F){J.push({id:G,fn:E,obj:D,override:F,checkReady:false});
AA=V;T();},addListener:function(F,D,E){F=Ext.getDom(F);if(F&&E){if(D==X){if(Y[F.id]===undefined){Y[F.id]=[];
}Y[F.id].push([D,E]);return E;}return a(F,D,E,false);}return false;},removeListener:function(G,g,e){G=Ext.getDom(G);
var d,F,E,D;if(G&&e){if(g==X){if((D=Y[G.id])!==undefined){for(d=0,F=D.length;d<F;
d++){if((E=D[d])&&E[H]==g&&E[S]==e){Y[G.id].splice(d,1);}}}return ;}R(G,g,e,false);
}},getTarget:function(D){D=D.browserEvent||D;return this.resolveTextNode(D.target||D.srcElement);
},resolveTextNode:Ext.isGecko?function(E){if(!E){return ;}var D=HTMLElement.prototype.toString.call(E);
if(D=="[xpconnect wrapped native prototype]"||D=="[object XULElement]"){return ;}return E.nodeType==3?E.parentNode:E;
}:function(D){return D&&D.nodeType==3?D.parentNode:D;},getRelatedTarget:function(D){D=D.browserEvent||D;
return this.resolveTextNode(D.relatedTarget||(D.type==AB?D.toElement:D.type==AF?D.fromElement:null));
},getPageX:function(D){return P(D,"X");},getPageY:function(D){return P(D,"Y");},getXY:function(D){return[this.getPageX(D),this.getPageY(D)];
},stopEvent:function(D){this.stopPropagation(D);this.preventDefault(D);},stopPropagation:function(D){D=D.browserEvent||D;
if(D.stopPropagation){D.stopPropagation();}else{D.cancelBubble=true;}},preventDefault:function(D){D=D.browserEvent||D;
if(D.preventDefault){D.preventDefault();}else{D.returnValue=false;}},getEvent:function(D){D=D||Q.event;
if(!D){var E=this.getEvent.caller;while(E){D=E.arguments[0];if(D&&Event==D.constructor){break;
}E=E.caller;}}return D;},getCharCode:function(D){D=D.browserEvent||D;return D.charCode||D.keyCode||0;
},getListeners:function(E,D){Ext.EventManager.getListeners(E,D);},purgeElement:function(E,F,D){Ext.EventManager.purgeElement(E,F,D);
},_load:function(E){M=true;var D=Ext.lib.Event;if(Ext.isIE&&E!==true){R(Q,"load",arguments.callee);
}},_unload:function(d){var F=Ext.lib.Event,e,D,l,h,j,E,G,g,i;for(E in Y){j=Y[E];for(e=0,G=j.length;
e<G;e++){h=j[e];if(h){try{i=h[AG]?(h[AG]===true?h[N]:h[AG]):Q;h[S].call(i,F.getEvent(d),h[N]);
}catch(k){}}}}Ext.EventManager._unload();R(Q,X,F._unload);}};AH.on=AH.addListener;
AH.un=AH.removeListener;if(AC&&AC.body){AH._load(true);}else{a(Q,"load",AH._load);
}a(Q,X,AH._unload);AD();return AH;}();Ext.lib.Ajax=function(){var O=["MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],P="Content-Type";
function H(R){var Q=R.conn,T;function S(V,U){for(T in U){if(U.hasOwnProperty(T)){V.setRequestHeader(T,U[T]);
}}}if(G.defaultHeaders){S(Q,G.defaultHeaders);}if(G.headers){S(Q,G.headers);delete G.headers;
}}function D(T,R,Q,S){return{tId:T,status:Q?-1:0,statusText:Q?"transaction aborted":"communication failure",isAbort:Q,isTimeout:S,argument:R};
}function F(R,Q){(G.headers=G.headers||{})[R]=Q;}function K(R,T){var V={},S,U=R.conn,Y,W,Q=U.status==1223;
try{S=R.conn.getAllResponseHeaders();Ext.each(S.replace(/\r\n/g,"\n").split("\n"),function(Z){Y=Z.indexOf(":");
if(Y>=0){W=Z.substr(0,Y).toLowerCase();if(Z.charAt(Y+1)==" "){++Y;}V[W]=Z.substr(Y+1);
}});}catch(X){}return{tId:R.tId,status:Q?204:U.status,statusText:Q?"No Content":U.statusText,getResponseHeader:function(Z){return V[Z.toLowerCase()];
},getAllResponseHeaders:function(){return S;},responseText:U.responseText,responseXML:U.responseXML,argument:T};
}function J(Q){if(Q.tId){G.conn[Q.tId]=null;}Q.conn=null;Q=null;}function N(T,U,Q,S){if(!U){J(T);
return ;}var V,R;try{if(T.conn.status!==undefined&&T.conn.status!=0){V=T.conn.status;
}else{V=13030;}}catch(W){V=13030;}if((V>=200&&V<300)||(Ext.isIE&&V==1223)){R=K(T,U.argument);
if(U.success){if(!U.scope){U.success(R);}else{U.success.apply(U.scope,[R]);}}}else{switch(V){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:R=D(T.tId,U.argument,(Q?Q:false),S);
if(U.failure){if(!U.scope){U.failure(R);}else{U.failure.apply(U.scope,[R]);}}break;
default:R=K(T,U.argument);if(U.failure){if(!U.scope){U.failure(R);}else{U.failure.apply(U.scope,[R]);
}}}}J(T);R=null;}function M(R,T){T=T||{};var S=R.conn,V=R.tId,Q=G.poll,U=T.timeout||null;
if(U){G.conn[V]=S;G.timeout[V]=setTimeout(function(){G.abort(R,T,true);},U);}Q[V]=setInterval(function(){if(S&&S.readyState==4){clearInterval(Q[V]);
Q[V]=null;if(U){clearTimeout(G.timeout[V]);G.timeout[V]=null;}N(R,T);}},G.pollInterval);
}function I(U,Q,T,S){var R=L()||null;if(R){R.conn.open(U,Q,true);if(G.useDefaultXhrHeader){F("X-Requested-With",G.defaultXhrHeader);
}if(S&&G.useDefaultHeader&&(!G.headers||!G.headers[P])){F(P,G.defaultPostHeader);
}if(G.defaultHeaders||G.headers){H(R);}M(R,T);R.conn.send(S||null);}return R;}function L(){var Q;
try{if(Q=E(G.transactionId)){G.transactionId++;}}catch(R){}finally{return Q;}}function E(T){var S;
try{S=new XMLHttpRequest();}catch(R){for(var Q=0;Q<O.length;++Q){try{S=new ActiveXObject(O[Q]);
break;}catch(R){}}}finally{return{conn:S,tId:T};}}var G={request:function(S,R,V,W,Y){if(Y){var T=this,Q=Y.xmlData,U=Y.jsonData,X;
Ext.applyIf(T,Y);if(Q||U){X=T.headers;if(!X||!X[P]){F(P,Q?"text/xml":"application/json");
}W=Q||(!Ext.isPrimitive(U)?Ext.encode(U):U);}}return I(S||Y.method||"POST",R,V,W);
},serializeForm:function(Q){var R=Q.elements||(document.forms[Q]||Ext.getDom(Q)).elements,Z=false,Y=encodeURIComponent,T,X,S,V,W="",U;
Ext.each(R,function(a){S=a.name;U=a.type;if(!a.disabled&&S){if(/select-(one|multiple)/i.test(U)){Ext.each(a.options,function(b){if(b.selected){W+=String.format("{0}={1}&",Y(S),Y((b.hasAttribute?b.hasAttribute("value"):b.getAttribute("value")!==null)?b.value:b.text));
}});}else{if(!/file|undefined|reset|button/i.test(U)){if(!(/radio|checkbox/i.test(U)&&!a.checked)&&!(U=="submit"&&Z)){W+=Y(S)+"="+Y(a.value)+"&";
Z=/submit/i.test(U);}}}}});return W.substr(0,W.length-1);},useDefaultHeader:true,defaultPostHeader:"application/x-www-form-urlencoded; charset=UTF-8",useDefaultXhrHeader:true,defaultXhrHeader:"XMLHttpRequest",poll:{},timeout:{},conn:{},pollInterval:50,transactionId:0,abort:function(U,T,S){var R=this,V=U.tId,Q=false;
if(R.isCallInProgress(U)){U.conn.abort();clearInterval(R.poll[V]);R.poll[V]=null;
clearTimeout(G.timeout[V]);R.timeout[V]=null;N(U,T,(Q=true),S);}return Q;},isCallInProgress:function(Q){return Q.conn&&!{0:true,4:true}[Q.conn.readyState];
}};return G;}();Ext.lib.Region=function(H,D,E,F){var G=this;G.top=H;G[1]=H;G.right=D;
G.bottom=E;G.left=F;G[0]=F;};Ext.lib.Region.prototype={contains:function(E){var D=this;
return(E.left>=D.left&&E.right<=D.right&&E.top>=D.top&&E.bottom<=D.bottom);},getArea:function(){var D=this;
return((D.bottom-D.top)*(D.right-D.left));},intersect:function(E){var D=this,I=Math.max(D.top,E.top),F=Math.min(D.right,E.right),G=Math.min(D.bottom,E.bottom),H=Math.max(D.left,E.left);
if(G>=I&&F>=H){return new Ext.lib.Region(I,F,G,H);}},union:function(E){var D=this,I=Math.min(D.top,E.top),F=Math.max(D.right,E.right),G=Math.max(D.bottom,E.bottom),H=Math.min(D.left,E.left);
return new Ext.lib.Region(I,F,G,H);},constrainTo:function(E){var D=this;D.top=D.top.constrain(E.top,E.bottom);
D.bottom=D.bottom.constrain(E.top,E.bottom);D.left=D.left.constrain(E.left,E.right);
D.right=D.right.constrain(E.left,E.right);return D;},adjust:function(H,F,E,D){var G=this;
G.top+=H;G.left+=F;G.right+=D;G.bottom+=E;return G;}};Ext.lib.Region.getRegion=function(D){var E=Ext.lib.Dom.getXY(D),I=E[1],F=E[0]+D.offsetWidth,G=E[1]+D.offsetHeight,H=E[0];
return new Ext.lib.Region(I,F,G,H);};Ext.lib.Point=function(D,F){if(Ext.isArray(D)){F=D[1];
D=D[0];}var E=this;E.x=E.right=E.left=E[0]=D;E.y=E.top=E.bottom=E[1]=F;};Ext.lib.Point.prototype=new Ext.lib.Region();
(function(){var D=Ext.lib,E=/width|height|opacity|padding/i,J=/^((width|height)|(top|left))$/,G=/width|height|top$|bottom$|left$|right$/i,F=/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i,I=function(K){return typeof K!=="undefined";
},H=function(){return new Date();};D.Anim={motion:function(K,M,L,N,P,O){return this.run(K,M,L,N,P,O,Ext.lib.Motion);
},run:function(P,Q,M,K,N,O,R){R=R||Ext.lib.AnimBase;if(typeof K=="string"){K=Ext.lib.Easing[K];
}var L=new R(P,Q,M,K);L.animateX(function(){if(Ext.isFunction(N)){N.call(O);}});return L;
}};D.AnimBase=function(L,N,M,K){if(L){this.init(L,N,M,K);}};D.AnimBase.prototype={doMethod:function(N,K,L){var M=this;
return M.method(M.curFrame,K,L-K,M.totalFrames);},setAttr:function(M,L,K){if(E.test(M)&&L<0){L=0;
}Ext.fly(this.el,"_anim").setStyle(M,L+K);},getAttr:function(N){var M=Ext.fly(this.el),K=M.getStyle(N),L=J.exec(N)||[];
if(K!=="auto"&&!F.test(K)){return parseFloat(K);}return(!!(L[2])||(M.getStyle("position")=="absolute"&&!!(L[3])))?M.dom["offset"+L[0].charAt(0).toUpperCase()+L[0].substr(1)]:0;
},getDefaultUnit:function(K){return G.test(K)?"px":"";},animateX:function(K,N){var L=this,M=function(){L.onComplete.removeListener(M);
if(Ext.isFunction(K)){K.call(N||L,L);}};L.onComplete.addListener(M,L);L.animate();
},setRunAttr:function(M){var K=this,L=this.attributes[M],P=L.to,N=L.by,Q=L.from,O=L.unit,U=(this.runAttrs[M]={}),V;
if(!I(P)&&!I(N)){return false;}var R=I(Q)?Q:K.getAttr(M);if(I(P)){V=P;}else{if(I(N)){if(Ext.isArray(R)){V=[];
for(var S=0,T=R.length;S<T;S++){V[S]=R[S]+N[S];}}else{V=R+N;}}}Ext.apply(U,{start:R,end:V,unit:I(O)?O:K.getDefaultUnit(M)});
},init:function(S,M,R,P){var K=this,Q=0,L=D.AnimMgr;Ext.apply(K,{isAnimated:false,startTime:null,el:Ext.getDom(S),attributes:M||{},duration:R||1,method:P||D.Easing.easeNone,useSec:true,curFrame:0,totalFrames:L.fps,runAttrs:{},animate:function(){var V=this,U=V.duration;
if(V.isAnimated){return false;}V.curFrame=0;V.totalFrames=V.useSec?Math.ceil(L.fps*U):U;
L.registerElement(V);},stop:function(V){var U=this;if(V){U.curFrame=U.totalFrames;
U._onTween.fire();}L.stop(U);}});var O=function(){var U=this,V;U.onStart.fire();U.runAttrs={};
for(V in this.attributes){this.setRunAttr(V);}U.isAnimated=true;U.startTime=H();Q=0;
};var N=function(){var U=this;U.onTween.fire({duration:H()-U.startTime,curFrame:U.curFrame});
var V=U.runAttrs;for(var W in V){this.setAttr(W,U.doMethod(W,V[W].start,V[W].end),V[W].unit);
}++Q;};var T=function(){var W=this,V=(H()-W.startTime)/1000,U={duration:V,frames:Q,fps:Q/V};
W.isAnimated=false;Q=0;W.onComplete.fire(U);};K.onStart=new Ext.util.Event(K);K.onTween=new Ext.util.Event(K);
K.onComplete=new Ext.util.Event(K);(K._onStart=new Ext.util.Event(K)).addListener(O);
(K._onTween=new Ext.util.Event(K)).addListener(N);(K._onComplete=new Ext.util.Event(K)).addListener(T);
}};Ext.lib.AnimMgr=new function(){var L=this,N=null,M=[],P=0;Ext.apply(L,{fps:1000,delay:1,registerElement:function(Q){M.push(Q);
++P;Q._onStart.fire();L.start();},unRegister:function(Q,R){Q._onComplete.fire();R=R||O(Q);
if(R!=-1){M.splice(R,1);}if(--P<=0){L.stop();}},start:function(){if(N===null){N=setInterval(L.run,L.delay);
}},stop:function(R){if(!R){clearInterval(N);for(var Q=0,S=M.length;Q<S;++Q){if(M[0].isAnimated){L.unRegister(M[0],0);
}}M=[];N=null;P=0;}else{L.unRegister(R);}},run:function(){var T,R,S,Q;for(R=0,S=M.length;
R<S;R++){Q=M[R];if(Q&&Q.isAnimated){T=Q.totalFrames;if(Q.curFrame<T||T===null){++Q.curFrame;
if(Q.useSec){K(Q);}Q._onTween.fire();}else{L.stop(Q);}}}}});var O=function(R){var Q,S;
for(Q=0,S=M.length;Q<S;Q++){if(M[Q]===R){return Q;}}return -1;};var K=function(Q){var T=Q.totalFrames,W=Q.curFrame,V=Q.duration,R=(W*V*1000/T),S=(H()-Q.startTime),U=0;
if(S<V*1000){U=Math.round((S/R-1)*W);}else{U=T-(W+1);}if(U>0&&isFinite(U)){if(Q.curFrame+U>=T){U=T-(W+1);
}Q.curFrame+=U;}};};D.Bezier=new function(){this.getPosition=function(L,M){var K=L.length,N=[],O=1-M,P,Q;
for(P=0;P<K;++P){N[P]=[L[P][0],L[P][1]];}for(Q=1;Q<K;++Q){for(P=0;P<K-Q;++P){N[P][0]=O*N[P][0]+M*N[parseInt(P+1,10)][0];
N[P][1]=O*N[P][1]+M*N[parseInt(P+1,10)][1];}}return[N[0][0],N[0][1]];};};D.Easing={easeNone:function(L,N,K,M){return K*L/M+N;
},easeIn:function(L,N,K,M){return K*(L/=M)*L+N;},easeOut:function(L,N,K,M){return -K*(L/=M)*(L-2)+N;
}};(function(){D.Motion=function(P,Q,R,O){if(P){D.Motion.superclass.constructor.call(this,P,Q,R,O);
}};Ext.extend(D.Motion,Ext.lib.AnimBase);var K=D.Motion.superclass,M=D.Motion.prototype,L=/^points$/i;
Ext.apply(D.Motion.prototype,{setAttr:function(Q,P,O){var R=this,S=K.setAttr;if(L.test(Q)){O=O||"px";
S.call(R,"left",P[0],O);S.call(R,"top",P[1],O);}else{S.call(R,Q,P,O);}},getAttr:function(O){var P=this,Q=K.getAttr;
return L.test(O)?[Q.call(P,"left"),Q.call(P,"top")]:Q.call(P,O);},doMethod:function(P,O,Q){var R=this;
return L.test(P)?D.Bezier.getPosition(R.runAttrs[P],R.method(R.curFrame,0,100,R.totalFrames)/100):K.doMethod.call(R,P,O,Q);
},setRunAttr:function(S){if(L.test(S)){var a=this,R=this.el,W=this.attributes.points,U=W.control||[],b=W.from,Y=W.to,T=W.by,V=D.Dom,Q,P,O,X,Z;
if(U.length>0&&!Ext.isArray(U[0])){U=[U];}else{}Ext.fly(R,"_anim").position();V.setXY(R,I(b)?b:V.getXY(R));
Q=a.getAttr("points");if(I(Y)){O=N.call(a,Y,Q);for(P=0,X=U.length;P<X;++P){U[P]=N.call(a,U[P],Q);
}}else{if(I(T)){O=[Q[0]+T[0],Q[1]+T[1]];for(P=0,X=U.length;P<X;++P){U[P]=[Q[0]+U[P][0],Q[1]+U[P][1]];
}}}Z=this.runAttrs[S]=[Q];if(U.length>0){Z=Z.concat(U);}Z[Z.length]=O;}else{K.setRunAttr.call(this,S);
}}});var N=function(O,P){var Q=D.Dom.getXY(this.el);return[O[0]-Q[0]+P[0],O[1]-Q[1]+P[1]];
};})();})();(function(){var E=Math.abs,F=Math.PI,D=Math.asin,G=Math.pow,H=Math.sin,I=Ext.lib;
Ext.apply(I.Easing,{easeBoth:function(M,L,K,J){return((M/=J/2)<1)?K/2*M*M+L:-K/2*((--M)*(M-2)-1)+L;
},easeInStrong:function(M,L,K,J){return K*(M/=J)*M*M*M+L;},easeOutStrong:function(M,L,K,J){return -K*((M=M/J-1)*M*M*M-1)+L;
},easeBothStrong:function(M,L,K,J){return((M/=J/2)<1)?K/2*M*M*M*M+L:-K/2*((M-=2)*M*M*M-2)+L;
},elasticIn:function(L,O,M,K,P,J){if(L==0||(L/=K)==1){return L==0?O:O+M;}J=J||(K*0.3);
var N;if(P>=E(M)){N=J/(2*F)*D(M/P);}else{P=M;N=J/4;}return -(P*G(2,10*(L-=1))*H((L*K-N)*(2*F)/J))+O;
},elasticOut:function(L,O,M,K,P,J){if(L==0||(L/=K)==1){return L==0?O:O+M;}J=J||(K*0.3);
var N;if(P>=E(M)){N=J/(2*F)*D(M/P);}else{P=M;N=J/4;}return P*G(2,-10*L)*H((L*K-N)*(2*F)/J)+M+O;
},elasticBoth:function(L,O,M,K,P,J){if(L==0||(L/=K/2)==2){return L==0?O:O+M;}J=J||(K*(0.3*1.5));
var N;if(P>=E(M)){N=J/(2*F)*D(M/P);}else{P=M;N=J/4;}return L<1?-0.5*(P*G(2,10*(L-=1))*H((L*K-N)*(2*F)/J))+O:P*G(2,-10*(L-=1))*H((L*K-N)*(2*F)/J)*0.5+M+O;
},backIn:function(N,M,J,L,K){K=K||1.70158;return J*(N/=L)*N*((K+1)*N-K)+M;},backOut:function(N,M,J,L,K){if(!K){K=1.70158;
}return J*((N=N/L-1)*N*((K+1)*N+K)+1)+M;},backBoth:function(N,M,J,L,K){K=K||1.70158;
return((N/=L/2)<1)?J/2*(N*N*(((K*=(1.525))+1)*N-K))+M:J/2*((N-=2)*N*(((K*=(1.525))+1)*N+K)+2)+M;
},bounceIn:function(M,L,K,J){return K-I.Easing.bounceOut(J-M,0,K,J)+L;},bounceOut:function(M,L,K,J){if((M/=J)<(1/2.75)){return K*(7.5625*M*M)+L;
}else{if(M<(2/2.75)){return K*(7.5625*(M-=(1.5/2.75))*M+0.75)+L;}else{if(M<(2.5/2.75)){return K*(7.5625*(M-=(2.25/2.75))*M+0.9375)+L;
}}}return K*(7.5625*(M-=(2.625/2.75))*M+0.984375)+L;},bounceBoth:function(M,L,K,J){return(M<J/2)?I.Easing.bounceIn(M*2,0,K,J)*0.5+L:I.Easing.bounceOut(M*2-J,0,K,J)*0.5+K*0.5+L;
}});})();(function(){var G=Ext.lib;G.Anim.color=function(O,N,P,M,Q,R){return G.Anim.run(O,N,P,M,Q,R,G.ColorAnim);
};G.ColorAnim=function(M,P,N,O){G.ColorAnim.superclass.constructor.call(this,M,P,N,O);
};Ext.extend(G.ColorAnim,G.AnimBase);var E=G.ColorAnim.superclass,H=/color$/i,J=/^transparent|rgba\(0, 0, 0, 0\)$/,I=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,L=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,D=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i,K=function(M){return typeof M!=="undefined";
};function F(M){var N=parseInt,O,P=null,Q;if(M.length==3){return M;}Ext.each([L,I,D],function(S,R){O=(R%2==0)?16:10;
Q=S.exec(M);if(Q&&Q.length==4){P=[N(Q[1],O),N(Q[2],O),N(Q[3],O)];return false;}});
return P;}Ext.apply(G.ColorAnim.prototype,{getAttr:function(P){var N=this,M=N.el,O;
if(H.test(P)){while(M&&J.test(O=Ext.fly(M).getStyle(P))){M=M.parentNode;O="fff";}}else{O=E.getAttr.call(N,P);
}return O;},doMethod:function(N,U,T){var Q=this,S,P=Math.floor,O,M,R;if(H.test(N)){S=[];
T=T||[];for(O=0,M=U.length;O<M;O++){R=U[O];S[O]=E.doMethod.call(Q,N,R,T[O]);}S="rgb("+P(S[0])+","+P(S[1])+","+P(S[2])+")";
}else{S=E.doMethod.call(Q,N,U,T);}return S;},setRunAttr:function(M){var R=this,S=R.attributes[M],Q=S.to,N=S.by,T;
E.setRunAttr.call(R,M);T=R.runAttrs[M];if(H.test(M)){var V=F(T.start),U=F(T.end);
if(!K(Q)&&K(N)){U=F(N);for(var O=0,P=V.length;O<P;O++){U[O]=V[O]+U[O];}}T.start=V;
T.end=U;}}});})();(function(){var D=Ext.lib;D.Anim.scroll=function(K,G,L,J,I,H){return D.Anim.run(K,G,L,J,I,H,D.Scroll);
};D.Scroll=function(G,I,H,J){if(G){D.Scroll.superclass.constructor.call(this,G,I,H,J);
}};Ext.extend(D.Scroll,D.ColorAnim);var F=D.Scroll.superclass,E="scroll";Ext.apply(D.Scroll.prototype,{doMethod:function(G,K,H){var M,L=this,J=L.curFrame,I=L.totalFrames;
if(G==E){M=[L.method(J,K[0],H[0]-K[0],I),L.method(J,K[1],H[1]-K[1],I)];}else{M=F.doMethod.call(L,G,K,H);
}return M;},getAttr:function(G){var H=this;if(G==E){return[H.el.scrollLeft,H.el.scrollTop];
}else{return F.getAttr.call(H,G);}},setAttr:function(G,J,H){var I=this;if(G==E){I.el.scrollLeft=J[0];
I.el.scrollTop=J[1];}else{F.setAttr.call(I,G,J,H);}}});})();if(Ext.isIE){function C(){var D=Function.prototype;
delete D.createSequence;delete D.defer;delete D.createDelegate;delete D.createCallback;
delete D.createInterceptor;window.detachEvent("onunload",C);}window.attachEvent("onunload",C);
}})();Ext.DomHelper=function(){var B=null,E=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,K=/^table|tbody|tr|td$/i,C,L="afterbegin",I="afterend",N="beforebegin",J="beforeend",O="<table>",G="</table>",M=O+"<tbody>",H="</tbody>"+G,F=M+"<tr>",A="</tr>"+H;
function P(U,S,V,Y,T,W){var X=C.insertHtml(Y,Ext.getDom(U),D(S));return V?Ext.get(X,true):X;
}function D(W){var S="",U,X,Z,T,V;if(Ext.isString(W)){S=W;}else{if(Ext.isArray(W)){for(var Y=0;
Y<W.length;Y++){if(W[Y]){S+=D(W[Y]);}}}else{S+="<"+(W.tag=W.tag||"div");Ext.iterate(W,function(b,a){if(!/tag|children|cn|html$/i.test(b)){if(Ext.isObject(a)){S+=" "+b+'="';
Ext.iterate(a,function(c,d){S+=c+":"+d+";";});S+='"';}else{S+=" "+({cls:"class",htmlFor:"for"}[b]||b)+'="'+a+'"';
}}});if(E.test(W.tag)){S+="/>";}else{S+=">";if((V=W.children||W.cn)){S+=D(V);}else{if(W.html){S+=W.html;
}}S+="</"+W.tag+">";}}}return S;}function R(V,Z,Y,X){B.innerHTML=[Z,Y,X].join("");
var T=-1,S=B,U;while(++T<V){S=S.firstChild;}if(U=S.nextSibling){var W=document.createDocumentFragment();
while(S){U=S.nextSibling;W.appendChild(S);S=U;}S=W;}return S;}function Q(V,W,U,T){var X,S;
B=B||document.createElement("div");if(V=="td"&&(W==L||W==J)||!/td|tr|tbody/i.test(V)&&(W==N||W==I)){return ;
}S=W==N?U:W==I?U.nextSibling:W==L?U.firstChild:null;if(W==N||W==I){U=U.parentNode;
}if(V=="td"||(V=="tr"&&(W==J||W==L))){X=R(4,F,T,A);}else{if((V=="tbody"&&(W==J||W==L))||(V=="tr"&&(W==N||W==I))){X=R(3,M,T,H);
}else{X=R(2,O,T,G);}}U.insertBefore(X,S);return X;}C={markup:function(S){return D(S);
},applyStyles:function(T,U){if(U){var V=0,W,S;T=Ext.fly(T);if(Ext.isFunction(U)){U=U.call();
}if(Ext.isString(U)){U=U.trim().split(/\s*(?::|;)\s*/);for(W=U.length;V<W;){T.setStyle(U[V++],U[V++]);
}}else{if(Ext.isObject(U)){T.setStyle(U);}}}},insertHtml:function(Y,T,W){var b={},S,V,U,X,a,Z;
Y=Y.toLowerCase();b[N]=["BeforeBegin","previousSibling"];b[I]=["AfterEnd","nextSibling"];
if(T.insertAdjacentHTML){if(K.test(T.tagName)&&(Z=Q(T.tagName.toLowerCase(),Y,T,W))){return Z;
}b[L]=["AfterBegin","firstChild"];b[J]=["BeforeEnd","lastChild"];if((S=b[Y])){T.insertAdjacentHTML(S[0],W);
return T[S[1]];}}else{U=T.ownerDocument.createRange();V="setStart"+(/end/i.test(Y)?"After":"Before");
if(b[Y]){U[V](T);X=U.createContextualFragment(W);T.parentNode.insertBefore(X,Y==N?T:T.nextSibling);
return T[(Y==N?"previous":"next")+"Sibling"];}else{a=(Y==L?"first":"last")+"Child";
if(T.firstChild){U[V](T[a]);X=U.createContextualFragment(W);if(Y==L){T.insertBefore(X,T.firstChild);
}else{T.appendChild(X);}}else{T.innerHTML=W;}return T[a];}}throw'Illegal insertion point -> "'+Y+'"';
},insertBefore:function(T,S,U){return P(T,S,U,N);},insertAfter:function(T,S,U){return P(T,S,U,I,"nextSibling");
},insertFirst:function(T,S,U){return P(T,S,U,L,"firstChild");},append:function(T,S,U){return P(T,S,U,J,"",true);
},overwrite:function(T,S,U){T=Ext.getDom(T);T.innerHTML=D(S);return U?Ext.get(T.firstChild):T.firstChild;
},createHtml:D};return C;}();Ext.apply(Ext.DomHelper,function(){var B,G="afterbegin",A="afterend",C="beforebegin",F="beforeend";
function D(K,I,L,J,N,H){K=Ext.getDom(K);var M;if(B.useDom){M=E(I,null);if(H){K.appendChild(M);
}else{(N=="firstChild"?K:K.parentNode).insertBefore(M,K[N]||K);}}else{M=Ext.DomHelper.insertHtml(J,K,Ext.DomHelper.createHtml(I));
}return L?Ext.get(M,true):M;}function E(H,J){var N,O=document,K,L,M,I;if(Ext.isArray(H)){N=O.createDocumentFragment();
Ext.each(H,function(P){E(P,N);});}else{if(Ext.isString(H)){N=O.createTextNode(H);
}else{N=O.createElement(H.tag||"div");K=!!N.setAttribute;Ext.iterate(H,function(Q,P){if(!/tag|children|cn|html|style/.test(Q)){if(Q=="cls"){N.className=P;
}else{if(K){N.setAttribute(Q,P);}else{N[Q]=P;}}}});Ext.DomHelper.applyStyles(N,H.style);
if((I=H.children||H.cn)){E(I,N);}else{if(H.html){N.innerHTML=H.html;}}}}if(J){J.appendChild(N);
}return N;}B={createTemplate:function(I){var H=Ext.DomHelper.createHtml(I);return new Ext.Template(H);
},useDom:false,insertBefore:function(H,J,I){return D(H,J,I,C);},insertAfter:function(H,J,I){return D(H,J,I,A,"nextSibling");
},insertFirst:function(H,J,I){return D(H,J,I,G,"firstChild");},append:function(H,J,I){return D(H,J,I,F,"",true);
},createDom:E};return B;}());Ext.Template=function(A){var B=this,C=arguments,D=[];
if(Ext.isArray(A)){A=A.join("");}else{if(C.length>1){Ext.each(C,function(E){if(Ext.isObject(E)){Ext.apply(B,E);
}else{D.push(E);}});A=D.join("");}}B.html=A;if(B.compiled){B.compile();}};Ext.Template.prototype={re:/\{([\w-]+)\}/g,applyTemplate:function(B){var A=this;
return A.compiled?A.compiled(B):A.html.replace(A.re,function(D,C){return B[C]!==undefined?B[C]:"";
});},set:function(C,B){var A=this;A.html=C;A.compiled=null;return B?A.compile():A;
},compile:function(){var me=this,sep=Ext.isGecko?"+":",";function fn(m,name){name="values['"+name+"']";
return"'"+sep+"("+name+" == undefined ? '' : "+name+")"+sep+"'";}eval("this.compiled = function(values){ return "+(Ext.isGecko?"'":"['")+me.html.replace(/\\/g,"\\\\").replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn)+(Ext.isGecko?"';};":"'].join('');};"));
return me;},insertFirst:function(A,C,B){return this.doInsert("afterBegin",A,C,B);
},insertBefore:function(A,C,B){return this.doInsert("beforeBegin",A,C,B);},insertAfter:function(A,C,B){return this.doInsert("afterEnd",A,C,B);
},append:function(A,C,B){return this.doInsert("beforeEnd",A,C,B);},doInsert:function(D,B,C,E){B=Ext.getDom(B);
var A=Ext.DomHelper.insertHtml(D,B,this.applyTemplate(C));return E?Ext.get(A,true):A;
},overwrite:function(A,C,B){A=Ext.getDom(A);A.innerHTML=this.applyTemplate(C);return B?Ext.get(A.firstChild,true):A.firstChild;
}};Ext.Template.prototype.apply=Ext.Template.prototype.applyTemplate;Ext.Template.from=function(A,B){A=Ext.getDom(A);
return new Ext.Template(A.value||A.innerHTML,B||"");};Ext.apply(Ext.Template.prototype,{disableFormats:false,re:/\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,applyTemplate:function(D){var A=this,F=A.disableFormats!==true,C=Ext.util.Format,E=A;
if(A.compiled){return A.compiled(D);}function B(L,J,I,M){if(I&&F){if(I.substr(0,5)=="this."){return E.call(I.substr(5),D[J],D);
}else{if(M){var K=/^\s*['"](.*)["']\s*$/;M=M.split(",");for(var H=0,G=M.length;H<G;
H++){M[H]=M[H].replace(K,"$1");}M=[D[J]].concat(M);}else{M=[D[J]];}return C[I].apply(C,M);
}}else{return D[J]!==undefined?D[J]:"";}}return A.html.replace(A.re,B);},compile:function(){var me=this,fm=Ext.util.Format,useF=me.disableFormats!==true,sep=Ext.isGecko?"+":",",body;
function fn(m,name,format,args){if(format&&useF){args=args?","+args:"";if(format.substr(0,5)!="this."){format="fm."+format+"(";
}else{format='this.call("'+format.substr(5)+'", ';args=", values";}}else{args="";
format="(values['"+name+"'] == undefined ? '' : ";}return"'"+sep+format+"values['"+name+"']"+args+")"+sep+"'";
}if(Ext.isGecko){body="this.compiled = function(values){ return '"+me.html.replace(/\\/g,"\\\\").replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn)+"';};";
}else{body=["this.compiled = function(values){ return ['"];body.push(me.html.replace(/\\/g,"\\\\").replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn));
body.push("'].join('');};");body=body.join("");}eval(body);return me;},call:function(B,A,C){return this[B](A,C);
}});Ext.Template.prototype.apply=Ext.Template.prototype.applyTemplate;Ext.DomQuery=function(){var cache={},simpleCache={},valueCache={},nonSpace=/\S/,trimRe=/^\s+|\s+$/g,tplRe=/\{(\d+)\}/g,modeRe=/^(\s?[\/>+~]\s?|\s|$)/,tagTokenRe=/^(#)?([\w-\*]+)/,nthRe=/(\d*)n\+?(\d*)/,nthRe2=/\D/,isIE=window.ActiveXObject?true:false,key=30803;
eval("var batch = 30803;");function child(parent,index){var i=0,n=parent.firstChild;
while(n){if(n.nodeType==1){if(++i==index){return n;}}n=n.nextSibling;}return null;
}function next(n){while((n=n.nextSibling)&&n.nodeType!=1){}return n;}function prev(n){while((n=n.previousSibling)&&n.nodeType!=1){}return n;
}function children(parent){var n=parent.firstChild,nodeIndex=-1,nextNode;while(n){nextNode=n.nextSibling;
if(n.nodeType==3&&!nonSpace.test(n.nodeValue)){parent.removeChild(n);}else{n.nodeIndex=++nodeIndex;
}n=nextNode;}return this;}function byClassName(nodeSet,cls){if(!cls){return nodeSet;
}var result=[],ri=-1;for(var i=0,ci;ci=nodeSet[i];i++){if((" "+ci.className+" ").indexOf(cls)!=-1){result[++ri]=ci;
}}return result;}function attrValue(n,attr){if(!n.tagName&&typeof n.length!="undefined"){n=n[0];
}if(!n){return null;}if(attr=="for"){return n.htmlFor;}if(attr=="class"||attr=="className"){return n.className;
}return n.getAttribute(attr)||n[attr];}function getNodes(ns,mode,tagName){var result=[],ri=-1,cs;
if(!ns){return result;}tagName=tagName||"*";if(typeof ns.getElementsByTagName!="undefined"){ns=[ns];
}if(!mode){for(var i=0,ni;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName);for(var j=0,ci;
ci=cs[j];j++){result[++ri]=ci;}}}else{if(mode=="/"||mode==">"){var utag=tagName.toUpperCase();
for(var i=0,ni,cn;ni=ns[i];i++){cn=ni.childNodes;for(var j=0,cj;cj=cn[j];j++){if(cj.nodeName==utag||cj.nodeName==tagName||tagName=="*"){result[++ri]=cj;
}}}}else{if(mode=="+"){var utag=tagName.toUpperCase();for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(n&&(n.nodeName==utag||n.nodeName==tagName||tagName=="*")){result[++ri]=n;
}}}else{if(mode=="~"){var utag=tagName.toUpperCase();for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)){if(n.nodeName==utag||n.nodeName==tagName||tagName=="*"){result[++ri]=n;
}}}}}}}return result;}function concat(a,b){if(b.slice){return a.concat(b);}for(var i=0,l=b.length;
i<l;i++){a[a.length]=b[i];}return a;}function byTag(cs,tagName){if(cs.tagName||cs==document){cs=[cs];
}if(!tagName){return cs;}var result=[],ri=-1;tagName=tagName.toLowerCase();for(var i=0,ci;
ci=cs[i];i++){if(ci.nodeType==1&&ci.tagName.toLowerCase()==tagName){result[++ri]=ci;
}}return result;}function byId(cs,id){if(cs.tagName||cs==document){cs=[cs];}if(!id){return cs;
}var result=[],ri=-1;for(var i=0,ci;ci=cs[i];i++){if(ci&&ci.id==id){result[++ri]=ci;
return result;}}return result;}function byAttribute(cs,attr,value,op,custom){var result=[],ri=-1,useGetStyle=custom=="{",fn=Ext.DomQuery.operators[op],a,innerHTML;
for(var i=0,ci;ci=cs[i];i++){if(ci.nodeType!=1){continue;}innerHTML=ci.innerHTML;
if(innerHTML!==null&&innerHTML!==undefined){if(useGetStyle){a=Ext.DomQuery.getStyle(ci,attr);
}else{if(attr=="class"||attr=="className"){a=ci.className;}else{if(attr=="for"){a=ci.htmlFor;
}else{if(attr=="href"){a=ci.getAttribute("href",2);}else{a=ci.getAttribute(attr);
}}}}}else{a=ci.getAttribute(attr);}if((fn&&fn(a,value))||(!fn&&a)){result[++ri]=ci;
}}return result;}function byPseudo(cs,name,value){return Ext.DomQuery.pseudos[name](cs,value);
}function nodupIEXml(cs){var d=++key,r;cs[0].setAttribute("_nodup",d);r=[cs[0]];for(var i=1,len=cs.length;
i<len;i++){var c=cs[i];if(!c.getAttribute("_nodup")!=d){c.setAttribute("_nodup",d);
r[r.length]=c;}}for(var i=0,len=cs.length;i<len;i++){cs[i].removeAttribute("_nodup");
}return r;}function nodup(cs){if(!cs){return[];}var len=cs.length,c,i,r=cs,cj,ri=-1;
if(!len||typeof cs.nodeType!="undefined"||len==1){return cs;}if(isIE&&typeof cs[0].selectSingleNode!="undefined"){return nodupIEXml(cs);
}var d=++key;cs[0]._nodup=d;for(i=1;c=cs[i];i++){if(c._nodup!=d){c._nodup=d;}else{r=[];
for(var j=0;j<i;j++){r[++ri]=cs[j];}for(j=i+1;cj=cs[j];j++){if(cj._nodup!=d){cj._nodup=d;
r[++ri]=cj;}}return r;}}return r;}function quickDiffIEXml(c1,c2){var d=++key,r=[];
for(var i=0,len=c1.length;i<len;i++){c1[i].setAttribute("_qdiff",d);}for(var i=0,len=c2.length;
i<len;i++){if(c2[i].getAttribute("_qdiff")!=d){r[r.length]=c2[i];}}for(var i=0,len=c1.length;
i<len;i++){c1[i].removeAttribute("_qdiff");}return r;}function quickDiff(c1,c2){var len1=c1.length,d=++key,r=[];
if(!len1){return c2;}if(isIE&&typeof c1[0].selectSingleNode!="undefined"){return quickDiffIEXml(c1,c2);
}for(var i=0;i<len1;i++){c1[i]._qdiff=d;}for(var i=0,len=c2.length;i<len;i++){if(c2[i]._qdiff!=d){r[r.length]=c2[i];
}}return r;}function quickId(ns,mode,root,id){if(ns==root){var d=root.ownerDocument||root;
return d.getElementById(id);}ns=getNodes(ns,mode,"*");return byId(ns,id);}return{getStyle:function(el,name){return Ext.fly(el).getStyle(name);
},compile:function(path,type){type=type||"select";var fn=["var f = function(root){\n var mode; ++batch; var n = root || document;\n"],mode,lastPath,matchers=Ext.DomQuery.matchers,matchersLn=matchers.length,modeMatch,lmode=path.match(modeRe);
if(lmode&&lmode[1]){fn[fn.length]='mode="'+lmode[1].replace(trimRe,"")+'";';path=path.replace(lmode[1],"");
}while(path.substr(0,1)=="/"){path=path.substr(1);}while(path&&lastPath!=path){lastPath=path;
var tokenMatch=path.match(tagTokenRe);if(type=="select"){if(tokenMatch){if(tokenMatch[1]=="#"){fn[fn.length]='n = quickId(n, mode, root, "'+tokenMatch[2]+'");';
}else{fn[fn.length]='n = getNodes(n, mode, "'+tokenMatch[2]+'");';}path=path.replace(tokenMatch[0],"");
}else{if(path.substr(0,1)!="@"){fn[fn.length]='n = getNodes(n, mode, "*");';}}}else{if(tokenMatch){if(tokenMatch[1]=="#"){fn[fn.length]='n = byId(n, "'+tokenMatch[2]+'");';
}else{fn[fn.length]='n = byTag(n, "'+tokenMatch[2]+'");';}path=path.replace(tokenMatch[0],"");
}}while(!(modeMatch=path.match(modeRe))){var matched=false;for(var j=0;j<matchersLn;
j++){var t=matchers[j];var m=path.match(t.re);if(m){fn[fn.length]=t.select.replace(tplRe,function(x,i){return m[i];
});path=path.replace(m[0],"");matched=true;break;}}if(!matched){throw'Error parsing selector, parsing failed at "'+path+'"';
}}if(modeMatch[1]){fn[fn.length]='mode="'+modeMatch[1].replace(trimRe,"")+'";';path=path.replace(modeMatch[1],"");
}}fn[fn.length]="return nodup(n);\n}";eval(fn.join(""));return f;},jsSelect:function(path,root,type){root=root||document;
if(typeof root=="string"){root=document.getElementById(root);}var paths=path.split(","),results=[];
for(var i=0,len=paths.length;i<len;i++){var subPath=paths[i].replace(trimRe,"");if(!cache[subPath]){cache[subPath]=Ext.DomQuery.compile(subPath);
if(!cache[subPath]){throw subPath+" is not a valid selector";}}var result=cache[subPath](root);
if(result&&result!=document){results=results.concat(result);}}if(paths.length>1){return nodup(results);
}return results;},isXml:function(el){var docEl=(el?el.ownerDocument||el:0).documentElement;
return docEl?docEl.nodeName!=="HTML":false;},select:document.querySelectorAll?function(path,root,type){root=root||document;
if(!Ext.DomQuery.isXml(root)){try{var cs=root.querySelectorAll(path);return Ext.toArray(cs);
}catch(ex){}}return Ext.DomQuery.jsSelect.call(this,path,root,type);}:function(path,root,type){return Ext.DomQuery.jsSelect.call(this,path,root,type);
},selectNode:function(path,root){return Ext.DomQuery.select(path,root)[0];},selectValue:function(path,root,defaultValue){path=path.replace(trimRe,"");
if(!valueCache[path]){valueCache[path]=Ext.DomQuery.compile(path,"select");}var n=valueCache[path](root),v;
n=n[0]?n[0]:n;if(typeof n.normalize=="function"){n.normalize();}v=(n&&n.firstChild?n.firstChild.nodeValue:null);
return((v===null||v===undefined||v==="")?defaultValue:v);},selectNumber:function(path,root,defaultValue){var v=Ext.DomQuery.selectValue(path,root,defaultValue||0);
return parseFloat(v);},is:function(el,ss){if(typeof el=="string"){el=document.getElementById(el);
}var isArray=Ext.isArray(el),result=Ext.DomQuery.filter(isArray?el:[el],ss);return isArray?(result.length==el.length):(result.length>0);
},filter:function(els,ss,nonMatches){ss=ss.replace(trimRe,"");if(!simpleCache[ss]){simpleCache[ss]=Ext.DomQuery.compile(ss,"simple");
}var result=simpleCache[ss](els);return nonMatches?quickDiff(result,els):result;},matchers:[{re:/^\.([\w-]+)/,select:'n = byClassName(n, " {1} ");'},{re:/^\:([\w-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,select:'n = byPseudo(n, "{1}", "{2}");'},{re:/^(?:([\[\{])(?:@)?([\w-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/,select:'n = byAttribute(n, "{2}", "{4}", "{3}", "{1}");'},{re:/^#([\w-]+)/,select:'n = byId(n, "{1}");'},{re:/^@([\w-]+)/,select:'return {firstChild:{nodeValue:attrValue(n, "{1}")}};'}],operators:{"=":function(a,v){return a==v;
},"!=":function(a,v){return a!=v;},"^=":function(a,v){return a&&a.substr(0,v.length)==v;
},"$=":function(a,v){return a&&a.substr(a.length-v.length)==v;},"*=":function(a,v){return a&&a.indexOf(v)!==-1;
},"%=":function(a,v){return(a%v)==0;},"|=":function(a,v){return a&&(a==v||a.substr(0,v.length+1)==v+"-");
},"~=":function(a,v){return a&&(" "+a+" ").indexOf(" "+v+" ")!=-1;}},pseudos:{"first-child":function(c){var r=[],ri=-1,n;
for(var i=0,ci;ci=n=c[i];i++){while((n=n.previousSibling)&&n.nodeType!=1){}if(!n){r[++ri]=ci;
}}return r;},"last-child":function(c){var r=[],ri=-1,n;for(var i=0,ci;ci=n=c[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(!n){r[++ri]=ci;
}}return r;},"nth-child":function(c,a){var r=[],ri=-1,m=nthRe.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"||!nthRe2.test(a)&&"n+"+a||a),f=(m[1]||1)-0,l=m[2]-0;
for(var i=0,n;n=c[i];i++){var pn=n.parentNode;if(batch!=pn._batch){var j=0;for(var cn=pn.firstChild;
cn;cn=cn.nextSibling){if(cn.nodeType==1){cn.nodeIndex=++j;}}pn._batch=batch;}if(f==1){if(l==0||n.nodeIndex==l){r[++ri]=n;
}}else{if((n.nodeIndex+l)%f==0){r[++ri]=n;}}}return r;},"only-child":function(c){var r=[],ri=-1;
for(var i=0,ci;ci=c[i];i++){if(!prev(ci)&&!next(ci)){r[++ri]=ci;}}return r;},empty:function(c){var r=[],ri=-1;
for(var i=0,ci;ci=c[i];i++){var cns=ci.childNodes,j=0,cn,empty=true;while(cn=cns[j]){++j;
if(cn.nodeType==1||cn.nodeType==3){empty=false;break;}}if(empty){r[++ri]=ci;}}return r;
},contains:function(c,v){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if((ci.textContent||ci.innerText||"").indexOf(v)!=-1){r[++ri]=ci;
}}return r;},nodeValue:function(c,v){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(ci.firstChild&&ci.firstChild.nodeValue==v){r[++ri]=ci;
}}return r;},checked:function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(ci.checked==true){r[++ri]=ci;
}}return r;},not:function(c,ss){return Ext.DomQuery.filter(c,ss,true);},any:function(c,selectors){var ss=selectors.split("|"),r=[],ri=-1,s;
for(var i=0,ci;ci=c[i];i++){for(var j=0;s=ss[j];j++){if(Ext.DomQuery.is(ci,s)){r[++ri]=ci;
break;}}}return r;},odd:function(c){return this["nth-child"](c,"odd");},even:function(c){return this["nth-child"](c,"even");
},nth:function(c,a){return c[a-1]||[];},first:function(c){return c[0]||[];},last:function(c){return c[c.length-1]||[];
},has:function(c,ss){var s=Ext.DomQuery.select,r=[],ri=-1;for(var i=0,ci;ci=c[i];
i++){if(s(ss,ci).length>0){r[++ri]=ci;}}return r;},next:function(c,ss){var is=Ext.DomQuery.is,r=[],ri=-1;
for(var i=0,ci;ci=c[i];i++){var n=next(ci);if(n&&is(n,ss)){r[++ri]=ci;}}return r;
},prev:function(c,ss){var is=Ext.DomQuery.is,r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var n=prev(ci);
if(n&&is(n,ss)){r[++ri]=ci;}}return r;}}};}();Ext.query=Ext.DomQuery.select;Ext.util.DelayedTask=function(B,E,F){var C=this,A,D=function(){clearInterval(A);
A=null;B.apply(E,F||[]);};C.delay=function(H,J,I,G){C.cancel();B=J||B;E=I||E;F=G||F;
A=setInterval(D,H);};C.cancel=function(){if(A){clearInterval(A);A=null;}};};(function(){var E=Ext.util,F=Ext.toArray,C=Ext.each,I=Ext.isObject,D=true,B=false;
E.Observable=function(){var M=this,L=M.events;if(M.listeners){M.on(M.listeners);delete M.listeners;
}M.events=L||{};};E.Observable.prototype={filterOptRe:/^(?:scope|delay|buffer|single)$/,fireEvent:function(){var P=F(arguments),N=P[0].toLowerCase(),O=this,M=D,Q=O.events[N],L,R;
if(O.eventsSuspended===D){if(L=O.eventQueue){L.push(P);}}else{if(I(Q)&&Q.bubble){if(Q.fire.apply(Q,P.slice(1))===B){return B;
}R=O.getBubbleTarget&&O.getBubbleTarget();if(R&&R.enableBubble){if(!R.events[N]||!Ext.isObject(R.events[N])||!R.events[N].bubble){R.enableBubble(N);
}return R.fireEvent.apply(R,P);}}else{if(I(Q)){P.shift();M=Q.fire.apply(Q,P);}}}return M;
},addListener:function(N,M,R,S){var L=this,O,P,Q,T;if(I(N)){S=N;for(O in S){P=S[O];
if(!L.filterOptRe.test(O)){L.addListener(O,P.fn||P,P.scope||S.scope,P.fn?P:S);}}}else{N=N.toLowerCase();
T=L.events[N]||D;if(Ext.isBoolean(T)){L.events[N]=T=new E.Event(L,N);}T.addListener(M,R,I(S)?S:{});
}},removeListener:function(O,M,L){var N=this.events[O.toLowerCase()];if(I(N)){N.removeListener(M,L);
}},purgeListeners:function(){var M=this.events,N,L;for(L in M){N=M[L];if(I(N)){N.clearListeners();
}}},addEvents:function(N){var M=this;M.events=M.events||{};if(Ext.isString(N)){var O=arguments,L=O.length;
while(L--){M.events[O[L]]=M.events[O[L]]||D;}}else{Ext.applyIf(M.events,N);}},hasListener:function(M){var L=this.events[M.toLowerCase()];
return I(L)&&L.listeners.length>0;},suspendEvents:function(L){this.eventsSuspended=D;
if(L&&!this.eventQueue){this.eventQueue=[];}},resumeEvents:function(){var M=this,L=M.eventQueue||[];
M.eventsSuspended=B;delete M.eventQueue;C(L,function(N){M.fireEvent.apply(M,N);});
}};var A=E.Observable.prototype;A.on=A.addListener;A.un=A.removeListener;E.Observable.releaseCapture=function(L){L.fireEvent=A.fireEvent;
};function J(L,M,N){return function(){if(M.target==arguments[0]){L.apply(N,F(arguments));
}};}function H(M,N,O,L){O.task=new E.DelayedTask();return function(){O.task.delay(N.buffer,M,L,F(arguments));
};}function K(M,N,L,O){return function(){N.removeListener(L,O);return M.apply(O,arguments);
};}function G(M,N,O,L){return function(){var P=new E.DelayedTask();if(!O.tasks){O.tasks=[];
}O.tasks.push(P);P.delay(N.delay||10,M,L,F(arguments));};}E.Event=function(L,M){this.name=M;
this.obj=L;this.listeners=[];};E.Event.prototype={addListener:function(M,N,L){var O=this,P;
N=N||O.obj;if(!O.isListening(M,N)){P=O.createListener(M,N,L);if(O.firing){O.listeners=O.listeners.slice(0);
}O.listeners.push(P);}},createListener:function(O,N,L){L=L||{},N=N||this.obj;var P={fn:O,scope:N,options:L},M=O;
if(L.target){M=J(M,L,N);}if(L.delay){M=G(M,L,P,N);}if(L.single){M=K(M,this,O,N);}if(L.buffer){M=H(M,L,P,N);
}P.fireFn=M;return P;},findListener:function(M,N){var O=this.listeners,L=O.length,P;
N=N||this.obj;while(L--){P=O[L];if(P){if(P.fn==M&&P.scope==N){return L;}}}return -1;
},isListening:function(L,M){return this.findListener(L,M)!=-1;},removeListener:function(L,O){var N,P,M,Q=this,R=B;
if((N=Q.findListener(L,O))!=-1){if(Q.firing){Q.listeners=Q.listeners.slice(0);}P=Q.listeners[N];
if(P.task){P.task.cancel();delete P.task;}M=P.tasks&&P.tasks.length;if(M){while(M--){P.tasks[M].cancel();
}delete P.tasks;}Q.listeners.splice(N,1);R=D;}return R;},clearListeners:function(){var M=this,N=M.listeners,L=N.length;
while(L--){M.removeListener(N[L].fn,N[L].scope);}},fire:function(){var L=this,N=F(arguments),O=L.listeners,P=O.length,Q=0,M;
if(P>0){L.firing=D;for(;Q<P;Q++){M=O[Q];if(M&&M.fireFn.apply(M.scope||L.obj||window,N)===B){return(L.firing=B);
}}}L.firing=B;return D;}};})();Ext.apply(Ext.util.Observable.prototype,function(){function A(H){var C=(this.methodEvents=this.methodEvents||{})[H],E,G,B,D=this;
if(!C){this.methodEvents[H]=C={};C.originalFn=this[H];C.methodName=H;C.before=[];
C.after=[];var F=function(J,K,I){if(!Ext.isEmpty(G=J.apply(K||D,I))){if(Ext.isObject(G)){E=!Ext.isEmpty(G.returnValue)?G.returnValue:G;
B=!!G.cancel;}else{if(G===false){B=true;}else{E=G;}}}};this[H]=function(){var I=Ext.toArray(arguments);
E=G=undefined;B=false;Ext.each(C.before,function(J){F(J.fn,J.scope,I);if(B){return E;
}});if(!Ext.isEmpty(G=C.originalFn.apply(D,I))){E=G;}Ext.each(C.after,function(J){F(J.fn,J.scope,I);
if(B){return E;}});return E;};}return C;}return{beforeMethod:function(B,D,C){A.call(this,B).before.push({fn:D,scope:C});
},afterMethod:function(B,D,C){A.call(this,B).after.push({fn:D,scope:C});},removeMethodListener:function(B,F,E){var D=A.call(this,B),C=false;
Ext.each(D.before,function(H,I,G){if(H.fn==F&&H.scope==E){G.splice(I,1);C=true;return false;
}});if(!C){Ext.each(D.after,function(H,I,G){if(H.fn==F&&H.scope==E){G.splice(I,1);
return false;}});}},relayEvents:function(C,D){var B=this;function E(F){return function(){return B.fireEvent.apply(B,[F].concat(Ext.toArray(arguments)));
};}Ext.each(D,function(F){B.events[F]=B.events[F]||true;C.on(F,E(F),B);});},enableBubble:function(B){var C=this;
if(!Ext.isEmpty(B)){B=Ext.isArray(B)?B:Ext.toArray(arguments);Ext.each(B,function(D){D=D.toLowerCase();
var E=C.events[D]||true;if(Ext.isBoolean(E)){E=new Ext.util.Event(C,D);C.events[D]=E;
}E.bubble=true;});}}};}());Ext.util.Observable.capture=function(B,A,C){B.fireEvent=B.fireEvent.createInterceptor(A,C);
};Ext.util.Observable.observeClass=function(A,B){if(A){if(!A.fireEvent){Ext.apply(A,new Ext.util.Observable());
Ext.util.Observable.capture(A.prototype,A.fireEvent,A);}if(Ext.isObject(B)){A.on(B);
}return A;}};Ext.EventManager=function(){var AA,F,K=false,Q=Ext.isGecko||Ext.isWebKit||Ext.isSafari,P=Ext.lib.Event,G=Ext.lib.Dom,T=document,Y=window,D="DOMContentLoaded",I="complete",V=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/,J=[];
function O(A){var C=false,a=0,b=J.length,C=false,B=false,c;if(A){if(A.getElementById||A.navigator){for(;
a<b;++a){c=J[a];if(c.el===A){C=c.id;break;}}if(!C){C=Ext.id(A);J.push({id:C,el:A});
B=true;}}else{C=Ext.id(A);}if(!Ext.elCache[C]){Ext.Element.addToCache(new Ext.Element(A),C);
if(B){Ext.elCache[C].skipGC=true;}}}return C;}function R(c,B,A,d,g,b){c=Ext.getDom(c);
var e=O(c),a=Ext.elCache[e].events,C;C=P.on(c,B,g);a[B]=a[B]||[];a[B].push([A,g,b,C,d]);
if(c.addEventListener&&B=="mousewheel"){var h=["DOMMouseScroll",g,false];c.addEventListener.apply(c,h);
Ext.EventManager.addListener(Y,"unload",function(){c.removeEventListener.apply(c,h);
});}if(c==T&&B=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.addListener(g);
}}function W(){if(window!=top){return false;}try{T.documentElement.doScroll("left");
}catch(A){return false;}S();return true;}function Z(A){if(Ext.isIE&&W()){return true;
}if(T.readyState==I){S();return true;}K||(F=setTimeout(arguments.callee,2));return false;
}var L;function N(A){L||(L=Ext.query("style, link[rel=stylesheet]"));if(L.length==T.styleSheets.length){S();
return true;}K||(F=setTimeout(arguments.callee,2));return false;}function AB(A){T.removeEventListener(D,arguments.callee,false);
N();}function S(A){if(!K){K=true;if(F){clearTimeout(F);}if(Q){T.removeEventListener(D,S,false);
}if(Ext.isIE&&Z.bindIE){T.detachEvent("onreadystatechange",Z);}P.un(Y,"load",arguments.callee);
}if(AA&&!Ext.isReady){Ext.isReady=true;AA.fire();AA.listeners=[];}}function U(){AA||(AA=new Ext.util.Event());
if(Q){T.addEventListener(D,S,false);}if(Ext.isIE){if(!Z()){Z.bindIE=true;T.attachEvent("onreadystatechange",Z);
}}else{if(Ext.isOpera){(T.readyState==I&&N())||T.addEventListener(D,AB,false);}else{if(Ext.isWebKit){Z();
}}}P.on(Y,"load",S);}function AD(A,B){return function(){var C=Ext.toArray(arguments);
if(B.target==Ext.EventObject.setEvent(C[0]).target){A.apply(this,C);}};}function AC(C,A,B){return function(a){B.delay(A.buffer,C,null,[new Ext.EventObjectImpl(a)]);
};}function E(B,C,a,A,b){return function(c){Ext.EventManager.removeListener(C,a,A,b);
B(c);};}function X(C,A,B){return function(a){var b=new Ext.util.DelayedTask(C);if(!B.tasks){B.tasks=[];
}B.tasks.push(b);b.delay(A.delay||10,C,null,[new Ext.EventObjectImpl(a)]);};}function M(C,B,d,A,a){var e=!Ext.isObject(d)?{}:d,b=Ext.getDom(C),c;
A=A||e.fn;a=a||e.scope;if(!b){throw'Error listening for "'+B+'". Element "'+C+"\" doesn't exist.";
}function g(h){if(!Ext){return ;}h=Ext.EventObject.setEvent(h);var i;if(e.delegate){if(!(i=h.getTarget(e.delegate,b))){return ;
}}else{i=h.target;}if(e.stopEvent){h.stopEvent();}if(e.preventDefault){h.preventDefault();
}if(e.stopPropagation){h.stopPropagation();}if(e.normalized){h=h.browserEvent;}A.call(a||b,h,i,e);
}if(e.target){g=AD(g,e);}if(e.delay){g=X(g,e,A);}if(e.single){g=E(g,b,B,A,a);}if(e.buffer){c=new Ext.util.DelayedTask(g);
g=AC(g,e,c);}R(b,B,A,c,g,a);return g;}var H={addListener:function(a,c,B,b,d){if(Ext.isObject(c)){var A=c,C,e;
for(C in A){e=A[C];if(!V.test(C)){if(Ext.isFunction(e)){M(a,C,A,e,A.scope);}else{M(a,C,e);
}}}}else{M(a,c,d,B,b);}},removeListener:function(e,j,a,b){e=Ext.getDom(e);var h=O(e),c=e&&(Ext.elCache[h].events)[j]||[],i,C,g,B,A,d;
for(C=0,A=c.length;C<A;C++){if(Ext.isArray(d=c[C])&&d[0]==a&&(!b||d[2]==b)){if(d[4]){d[4].cancel();
}B=a.tasks&&a.tasks.length;if(B){while(B--){a.tasks[B].cancel();}delete a.tasks;}i=d[1];
P.un(e,j,P.extAdapter?d[3]:i);if(i&&e.addEventListener&&j=="mousewheel"){e.removeEventListener("DOMMouseScroll",i,false);
}if(i&&e==T&&j=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.removeListener(i);
}c.splice(C,1);if(c.length===0){delete Ext.elCache[h].events[j];}for(B in Ext.elCache[h].events){return false;
}Ext.elCache[h].events={};return false;}}},removeAll:function(d){d=Ext.getDom(d);
var h=O(d),A=Ext.elCache[h]||{},a=A.events||{},i,C,b,e,c,B,g;for(e in a){if(a.hasOwnProperty(e)){i=a[e];
for(C=0,b=i.length;C<b;C++){c=i[C];if(c[4]){c[4].cancel();}if(c[0].tasks&&(B=c[0].tasks.length)){while(B--){c[0].tasks[B].cancel();
}delete c.tasks;}g=c[1];P.un(d,e,P.extAdapter?c[3]:g);if(d.addEventListener&&g&&e=="mousewheel"){d.removeEventListener("DOMMouseScroll",g,false);
}if(g&&d==T&&e=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.removeListener(g);
}}}}if(Ext.elCache[h]){Ext.elCache[h].events={};}},getListeners:function(B,C){B=Ext.getDom(B);
var A=O(B),a=Ext.elCache[A]||{},c=a.events||{},b=[];if(c&&c[C]){return c[C];}else{return null;
}},purgeElement:function(b,d,B){b=Ext.getDom(b);var e=O(b),A=Ext.elCache[e]||{},a=A.events||{},c,g,C;
if(B){if(a&&a.hasOwnProperty(B)){g=a[B];for(c=0,C=g.length;c<C;c++){Ext.EventManager.removeListener(b,B,g[c][0]);
}}}else{Ext.EventManager.removeAll(b);}if(d&&b&&b.childNodes){for(c=0,C=b.childNodes.length;
c<C;c++){Ext.EventManager.purgeElement(b.childNodes[c],d,B);}}},_unload:function(){var C;
for(C in Ext.elCache){Ext.EventManager.removeAll(C);}delete Ext.elCache;delete Ext.Element._flyweights;
var B,a,b,A=Ext.lib.Ajax;(Ext.isObject(A.conn))?a=A.conn:a={};for(b in a){B=a[b];
if(B){A.abort({conn:B,tId:b});}}},onDocumentReady:function(A,C,B){if(Ext.isReady){AA||(AA=new Ext.util.Event());
AA.addListener(A,C,B);AA.fire();AA.listeners=[];}else{if(!AA){U();}B=B||{};B.delay=B.delay||1;
AA.addListener(A,C,B);}},fireDocReady:S};H.on=H.addListener;H.un=H.removeListener;
H.stoppedMouseDownEvent=new Ext.util.Event();return H;}();Ext.onReady=Ext.EventManager.onDocumentReady;
(function(){var A=function(){var D=document.body||document.getElementsByTagName("body")[0];
if(!D){return false;}var C=[" ",Ext.isIE?"ext-ie "+(Ext.isIE6?"ext-ie6":(Ext.isIE7?"ext-ie7":"ext-ie8")):Ext.isGecko?"ext-gecko "+(Ext.isGecko2?"ext-gecko2":"ext-gecko3"):Ext.isOpera?"ext-opera":Ext.isWebKit?"ext-webkit":""];
if(Ext.isSafari){C.push("ext-safari "+(Ext.isSafari2?"ext-safari2":(Ext.isSafari3?"ext-safari3":"ext-safari4")));
}else{if(Ext.isChrome){C.push("ext-chrome");}}if(Ext.isMac){C.push("ext-mac");}if(Ext.isLinux){C.push("ext-linux");
}if(Ext.isStrict||Ext.isBorderBox){var B=D.parentNode;if(B){B.className+=Ext.isStrict?" ext-strict":" ext-border-box";
}}D.className+=C.join(" ");return true;};if(!A()){Ext.onReady(A);}})();Ext.EventObject=function(){var A=Ext.lib.Event,C={3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35},B=Ext.isIE?{1:0,4:1,2:2}:(Ext.isWebKit?{1:0,2:1,3:2}:{0:0,1:1,2:2});
Ext.EventObjectImpl=function(D){if(D){this.setEvent(D.browserEvent||D);}};Ext.EventObjectImpl.prototype={setEvent:function(D){var E=this;
if(D==E||(D&&D.browserEvent)){return D;}E.browserEvent=D;if(D){E.button=D.button?B[D.button]:(D.which?D.which-1:-1);
if(D.type=="click"&&E.button==-1){E.button=0;}E.type=D.type;E.shiftKey=D.shiftKey;
E.ctrlKey=D.ctrlKey||D.metaKey||false;E.altKey=D.altKey;E.keyCode=D.keyCode;E.charCode=D.charCode;
E.target=A.getTarget(D);E.xy=A.getXY(D);}else{E.button=-1;E.shiftKey=false;E.ctrlKey=false;
E.altKey=false;E.keyCode=0;E.charCode=0;E.target=null;E.xy=[0,0];}return E;},stopEvent:function(){var D=this;
if(D.browserEvent){if(D.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(D);
}A.stopEvent(D.browserEvent);}},preventDefault:function(){if(this.browserEvent){A.preventDefault(this.browserEvent);
}},stopPropagation:function(){var D=this;if(D.browserEvent){if(D.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(D);
}A.stopPropagation(D.browserEvent);}},getCharCode:function(){return this.charCode||this.keyCode;
},getKey:function(){return this.normalizeKey(this.keyCode||this.charCode);},normalizeKey:function(D){return Ext.isSafari?(C[D]||D):D;
},getPageX:function(){return this.xy[0];},getPageY:function(){return this.xy[1];},getXY:function(){return this.xy;
},getTarget:function(F,D,E){return F?Ext.fly(this.target).findParent(F,D,E):(E?Ext.get(this.target):this.target);
},getRelatedTarget:function(){return this.browserEvent?A.getRelatedTarget(this.browserEvent):null;
},getWheelDelta:function(){var E=this.browserEvent;var D=0;if(E.wheelDelta){D=E.wheelDelta/120;
}else{if(E.detail){D=-E.detail/3;}}return D;},within:function(D,E,G){if(D){var F=this[E?"getRelatedTarget":"getTarget"]();
return F&&((G?(F==Ext.getDom(D)):false)||Ext.fly(D).contains(F));}return false;}};
return new Ext.EventObjectImpl();}();Ext.apply(Ext.EventManager,function(){var F,B,A,E,G=Ext.lib.Dom,D=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/,C=0,H=0,I=Ext.isWebKit?Ext.num(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1])>=525:!((Ext.isGecko&&!Ext.isWindows)||Ext.isOpera);
return{doResizeEvent:function(){var J=G.getViewHeight(),K=G.getViewWidth();if(H!=J||C!=K){F.fire(C=K,H=J);
}},onWindowResize:function(K,J,L){if(!F){F=new Ext.util.Event();B=new Ext.util.DelayedTask(this.doResizeEvent);
Ext.EventManager.on(window,"resize",this.fireWindowResize,this);}F.addListener(K,J,L);
},fireWindowResize:function(){if(F){B.delay(100);}},onTextResize:function(J,L,M){if(!A){A=new Ext.util.Event();
var K=new Ext.Element(document.createElement("div"));K.dom.className="x-text-resize";
K.dom.innerHTML="X";K.appendTo(document.body);E=K.dom.offsetHeight;setInterval(function(){if(K.dom.offsetHeight!=E){A.fire(E,E=K.dom.offsetHeight);
}},this.textResizeInterval);}A.addListener(J,L,M);},removeResizeListener:function(J,K){if(F){F.removeListener(J,K);
}},fireResize:function(){if(F){F.fire(G.getViewWidth(),G.getViewHeight());}},textResizeInterval:50,ieDeferSrc:false,useKeydown:I};
}());Ext.EventManager.on=Ext.EventManager.addListener;Ext.apply(Ext.EventObjectImpl.prototype,{BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,CONTROL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGEUP:33,PAGE_DOWN:34,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,isNavKeyPress:function(){var A=this,B=this.normalizeKey(A.keyCode);
return(B>=33&&B<=40)||B==A.RETURN||B==A.TAB||B==A.ESC;},isSpecialKey:function(){var A=this.normalizeKey(this.keyCode);
return(this.type=="keypress"&&this.ctrlKey)||this.isNavKeyPress()||(A==this.BACKSPACE)||(A>=16&&A<=20)||(A>=44&&A<=46);
},getPoint:function(){return new Ext.lib.Point(this.xy[0],this.xy[1]);},hasModifier:function(){return((this.ctrlKey||this.altKey)||this.shiftKey);
}});(function(){var B=document;Ext.Element=function(O,P){var Q=typeof O=="string"?B.getElementById(O):O,N;
if(!Q){return null;}N=Q.id;if(!P&&N&&Ext.elCache[N]){return Ext.elCache[N].el;}this.dom=Q;
this.id=N||Ext.id(Q);};var K=Ext.lib.Dom,L=Ext.DomHelper,H=Ext.lib.Event,A=Ext.lib.Anim,D=Ext.Element,I=Ext.elCache;
D.prototype={set:function(R,Q){var N=this.dom,P,O,Q=(Q!==false)&&!!N.setAttribute;
for(P in R){if(R.hasOwnProperty(P)){O=R[P];if(P=="style"){L.applyStyles(N,O);}else{if(P=="cls"){N.className=O;
}else{if(Q){N.setAttribute(P,O);}else{N[P]=O;}}}}}return this;},defaultUnit:"px",is:function(N){return Ext.DomQuery.is(this.dom,N);
},focus:function(N,P){var O=this,P=P||O.dom;try{if(Number(N)){O.focus.defer(N,null,[null,P]);
}else{P.focus();}}catch(Q){}return O;},blur:function(){try{this.dom.blur();}catch(N){}return this;
},getValue:function(N){var O=this.dom.value;return N?parseInt(O,10):O;},addListener:function(O,N,P,Q){Ext.EventManager.on(this.dom,O,N,P||this,Q);
return this;},removeListener:function(N,O,P){Ext.EventManager.removeListener(this.dom,N,O,P||this);
return this;},removeAllListeners:function(){Ext.EventManager.removeAll(this.dom);
return this;},purgeAllListeners:function(){Ext.EventManager.purgeElement(this,true);
return this;},addUnits:function(N){if(N===""||N=="auto"||N===undefined){N=N||"";}else{if(!isNaN(N)||!C.test(N)){N=N+(this.defaultUnit||"px");
}}return N;},load:function(N,O,P){Ext.Ajax.request(Ext.apply({params:O,url:N.url||N,callback:P,el:this.dom,indicatorText:N.indicatorText||""},Ext.isObject(N)?N:{}));
return this;},isBorderBox:function(){return E[(this.dom.tagName||"").toLowerCase()]||Ext.isBorderBox;
},remove:function(){var N=this,O=N.dom;if(O){delete N.dom;Ext.removeNode(O);}},hover:function(P,Q,N,R){var O=this;
O.on("mouseenter",P,N||O.dom,R);O.on("mouseleave",Q,N||O.dom,R);return O;},contains:function(N){return !N?false:Ext.lib.Dom.isAncestor(this.dom,N.dom?N.dom:N);
},getAttributeNS:function(N,O){return this.getAttribute(O,N);},getAttribute:Ext.isIE?function(O,P){var N=this.dom,Q=typeof N[P+":"+O];
if(["undefined","unknown"].indexOf(Q)==-1){return N[P+":"+O];}return N[O];}:function(N,O){var P=this.dom;
return P.getAttributeNS(O,N)||P.getAttribute(O+":"+N)||P.getAttribute(N)||P[N];},update:function(N){if(this.dom){this.dom.innerHTML=N;
}return this;}};var F=D.prototype;D.addMethods=function(N){Ext.apply(F,N);};F.on=F.addListener;
F.un=F.removeListener;F.autoBoxAdjust=true;var C=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,M;
D.get=function(P){var Q,O,N;if(!P){return null;}if(typeof P=="string"){if(!(O=B.getElementById(P))){return null;
}if(I[P]&&I[P].el){Q=I[P].el;Q.dom=O;}else{Q=D.addToCache(new D(O));}return Q;}else{if(P.tagName){if(!(N=P.id)){N=Ext.id(P);
}if(I[N]&&I[N].el){Q=I[N].el;Q.dom=P;}else{Q=D.addToCache(new D(P));}return Q;}else{if(P instanceof D){if(P!=M){if(Ext.isIE&&(P.id==undefined||P.id=="")){P.dom=P.dom;
}else{P.dom=B.getElementById(P.id)||P.dom;}}return P;}else{if(P.isComposite){return P;
}else{if(Ext.isArray(P)){return D.select(P);}else{if(P==B){if(!M){var R=function(){};
R.prototype=D.prototype;M=new R();M.dom=B;}return M;}}}}}}return null;};D.addToCache=function(N,O){O=O||N.id;
I[O]={el:N,data:{},events:{}};return N;};D.data=function(O,P,Q){O=D.get(O);if(!O){return null;
}var N=I[O.id].data;if(arguments.length==2){return N[P];}else{return(N[P]=Q);}};function G(){if(!Ext.enableGarbageCollector){clearInterval(D.collectorThreadId);
}else{var P,N,R,O;for(P in I){O=I[P];if(O.skipGC){continue;}N=O.el;R=N.dom;if(!R||!R.parentNode||(!R.offsetParent&&!B.getElementById(P))){if(Ext.enableListenerCollection){Ext.EventManager.removeAll(R);
}delete I[P];}}if(Ext.isIE){var Q={};for(P in I){Q[P]=I[P];}I=Ext.elCache=Q;}}}D.collectorThreadId=setInterval(G,30000);
var J=function(){};J.prototype=D.prototype;D.Flyweight=function(N){this.dom=N;};D.Flyweight.prototype=new J();
D.Flyweight.prototype.isFlyweight=true;D._flyweights={};D.fly=function(O,N){var P=null;
N=N||"_global";if(O=Ext.getDom(O)){(D._flyweights[N]=D._flyweights[N]||new D.Flyweight()).dom=O;
P=D._flyweights[N];}return P;};Ext.get=D.get;Ext.fly=D.fly;var E=Ext.isStrict?{select:1}:{input:1,select:1,textarea:1};
if(Ext.isIE||Ext.isGecko){E.button=1;}})();Ext.Element.addMethods({swallowEvent:function(D,B){var A=this;
function C(E){E.stopPropagation();if(B){E.preventDefault();}}if(Ext.isArray(D)){Ext.each(D,function(E){A.on(E,C);
});return A;}A.on(D,C);return A;},relayEvent:function(B,A){this.on(B,function(C){A.fireEvent(B,C);
});},clean:function(D){var B=this,C=B.dom,A=C.firstChild,E=-1;if(Ext.Element.data(C,"isCleaned")&&D!==true){return B;
}while(A){var F=A.nextSibling;if(A.nodeType==3&&!/\S/.test(A.nodeValue)){C.removeChild(A);
}else{A.nodeIndex=++E;}A=F;}Ext.Element.data(C,"isCleaned",true);return B;},load:function(){var A=this.getUpdater();
A.update.apply(A,arguments);return this;},getUpdater:function(){return this.updateManager||(this.updateManager=new Ext.Updater(this));
},update:function(html,loadScripts,callback){if(!this.dom){return this;}html=html||"";
if(loadScripts!==true){this.dom.innerHTML=html;if(Ext.isFunction(callback)){callback();
}return this;}var id=Ext.id(),dom=this.dom;html+='<span id="'+id+'"></span>';Ext.lib.Event.onAvailable(id,function(){var DOC=document,hd=DOC.getElementsByTagName("head")[0],re=/(?:<script([^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,srcRe=/\ssrc=([\'\"])(.*?)\1/i,typeRe=/\stype=([\'\"])(.*?)\1/i,match,attrs,srcMatch,typeMatch,el,s;
while((match=re.exec(html))){attrs=match[1];srcMatch=attrs?attrs.match(srcRe):false;
if(srcMatch&&srcMatch[2]){s=DOC.createElement("script");s.src=srcMatch[2];typeMatch=attrs.match(typeRe);
if(typeMatch&&typeMatch[2]){s.type=typeMatch[2];}hd.appendChild(s);}else{if(match[2]&&match[2].length>0){if(window.execScript){window.execScript(match[2]);
}else{window.eval(match[2]);}}}}el=DOC.getElementById(id);if(el){Ext.removeNode(el);
}if(Ext.isFunction(callback)){callback();}});dom.innerHTML=html.replace(/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,"");
return this;},removeAllListeners:function(){this.removeAnchor();Ext.EventManager.removeAll(this.dom);
return this;},createProxy:function(E,B,A){E=Ext.isObject(E)?E:{tag:"div",cls:E};var D=this,C=B?Ext.DomHelper.append(B,E,true):Ext.DomHelper.insertBefore(D.dom,E,true);
if(A&&D.setBox&&D.getBox){C.setBox(D.getBox());}return C;}});Ext.Element.prototype.getUpdateManager=Ext.Element.prototype.getUpdater;
Ext.Element.addMethods({getAnchorXY:function(A,H,C){A=(A||"tl").toLowerCase();C=C||{};
var E=this,J=E.dom==document.body||E.dom==document,G=C.width||J?Ext.lib.Dom.getViewWidth():E.getWidth(),F=C.height||J?Ext.lib.Dom.getViewHeight():E.getHeight(),B,L=Math.round,K=E.getXY(),I=E.getScroll(),D=J?I.left:!H?K[0]:0,M=J?I.top:!H?K[1]:0,N={c:[L(G*0.5),L(F*0.5)],t:[L(G*0.5),0],l:[0,L(F*0.5)],r:[G,L(F*0.5)],b:[L(G*0.5),F],tl:[0,0],bl:[0,F],br:[G,F],tr:[G,0]};
B=N[A];return[B[0]+D,B[1]+M];},anchorTo:function(G,D,H,I,C,F){var E=this,A=E.dom,B=!Ext.isEmpty(C),K=function(){Ext.fly(A).alignTo(G,D,H,I);
Ext.callback(F,Ext.fly(A));},J=this.getAnchor();this.removeAnchor();Ext.apply(J,{fn:K,scroll:B});
Ext.EventManager.onWindowResize(K,null);if(B){Ext.EventManager.on(window,"scroll",K,null,{buffer:!isNaN(C)?C:50});
}K.call(E);return E;},removeAnchor:function(){var A=this,B=this.getAnchor();if(B&&B.fn){Ext.EventManager.removeResizeListener(B.fn);
if(B.scroll){Ext.EventManager.un(window,"scroll",B.fn);}delete B.fn;}return A;},getAnchor:function(){var A=Ext.Element.data,B=this.dom;
if(!B){return ;}var C=A(B,"_anchor");if(!C){C=A(B,"_anchor",{});}return C;},getAlignToXY:function(d,AC,AA){d=Ext.get(d);
if(!d||!d.dom){throw"Element.alignToXY with an element that doesn't exist";}AA=AA||[0,0];
AC=(!AC||AC=="?"?"tl-bl?":(!/-/.test(AC)&&AC!==""?"tl-"+AC:AC||"tl-bl")).toLowerCase();
var m=this,o=m.dom,y,x,X,Y,O,AD,R,S=Ext.lib.Dom.getViewWidth()-10,AE=Ext.lib.Dom.getViewHeight()-10,Z,W,U,V,T,AH,r=document,h=r.documentElement,Q=r.body,AG=(h.scrollLeft||Q.scrollLeft||0)+5,AF=(h.scrollTop||Q.scrollTop||0)+5,p=false,c="",P="",AB=AC.match(/^([a-z]+)-([a-z]+)(\?)?$/);
if(!AB){throw"Element.alignTo with an invalid alignment "+AC;}c=AB[1];P=AB[2];p=!!AB[3];
y=m.getAnchorXY(c,true);x=d.getAnchorXY(P,false);X=x[0]-y[0]+AA[0];Y=x[1]-y[1]+AA[1];
if(p){O=m.getWidth();AD=m.getHeight();R=d.getRegion();Z=c.charAt(0);W=c.charAt(c.length-1);
U=P.charAt(0);V=P.charAt(P.length-1);T=((Z=="t"&&U=="b")||(Z=="b"&&U=="t"));AH=((W=="r"&&V=="l")||(W=="l"&&V=="r"));
if(X+O>S+AG){X=AH?R.left-O:S+AG-O;}if(X<AG){X=AH?R.right:AG;}if(Y+AD>AE+AF){Y=T?R.top-AD:AE+AF-AD;
}if(Y<AF){Y=T?R.bottom:AF;}}return[X,Y];},alignTo:function(D,E,B,C){var A=this;return A.setXY(A.getAlignToXY(D,E,B),A.preanim&&!!C?A.preanim(arguments,3):false);
},adjustForConstraints:function(B,C,A){return this.getConstrainToXY(C||document,false,A,B)||B;
},getConstrainToXY:function(C,E,D,B){var A={top:0,left:0,bottom:0,right:0};return function(N,W,M,R){N=Ext.get(N);
M=M?Ext.applyIf(M,A):A;var I,U,K=0,J=0;if(N.dom==document.body||N.dom==document){I=Ext.lib.Dom.getViewWidth();
U=Ext.lib.Dom.getViewHeight();}else{I=N.dom.clientWidth;U=N.dom.clientHeight;if(!W){var F=N.getXY();
K=F[0];J=F[1];}}var H=N.getScroll();K+=M.left+H.left;J+=M.top+H.top;I-=M.right;U-=M.bottom;
var V=K+I;var S=J+U;var L=R||(!W?this.getXY():[this.getLeft(true),this.getTop(true)]);
var P=L[0],O=L[1];var G=this.dom.offsetWidth,T=this.dom.offsetHeight;var Q=false;
if((P+G)>V){P=V-G;Q=true;}if((O+T)>S){O=S-T;Q=true;}if(P<K){P=K;Q=true;}if(O<J){O=J;
Q=true;}return Q?[P,O]:false;};}(),getCenterXY:function(){return this.getAlignToXY(document,"c-c");
},center:function(A){return this.alignTo(A||document,"c-c");}});Ext.Element.addMethods(function(){var A="parentNode",C="nextSibling",D="previousSibling",B=Ext.DomQuery,E=Ext.get;
return{findParent:function(J,I,F){var K=this.dom,H=document.body,L=0,G;if(Ext.isGecko&&Object.prototype.toString.call(K)=="[object XULElement]"){return null;
}I=I||50;if(isNaN(I)){G=Ext.getDom(I);I=Number.MAX_VALUE;}while(K&&K.nodeType==1&&L<I&&K!=H&&K!=G){if(B.is(K,J)){return F?E(K):K;
}L++;K=K.parentNode;}return null;},findParentNode:function(I,G,F){var H=Ext.fly(this.dom.parentNode,"_internal");
return H?H.findParent(I,G,F):null;},up:function(F,G){return this.findParentNode(F,G,true);
},select:function(F){return Ext.Element.select(F,this.dom);},query:function(F){return B.select(F,this.dom);
},child:function(F,G){var H=B.selectNode(F,this.dom);return G?H:E(H);},down:function(F,G){var H=B.selectNode(" > "+F,this.dom);
return G?H:E(H);},parent:function(F,G){return this.matchNode(A,A,F,G);},next:function(F,G){return this.matchNode(C,C,F,G);
},prev:function(F,G){return this.matchNode(D,D,F,G);},first:function(F,G){return this.matchNode(C,"firstChild",F,G);
},last:function(F,G){return this.matchNode(D,"lastChild",F,G);},matchNode:function(F,J,H,G){var I=this.dom[J];
while(I){if(I.nodeType==1&&(!H||B.is(I,H))){return !G?E(I):I;}I=I[F];}return null;
}};}());Ext.Element.addMethods({select:function(B,A){return Ext.Element.select(B,A,this.dom);
}});Ext.Element.addMethods(function(){var B=Ext.getDom,C=Ext.get,A=Ext.DomHelper;
return{appendChild:function(D){return C(D).appendTo(this);},appendTo:function(D){B(D).appendChild(this.dom);
return this;},insertBefore:function(D){(D=B(D)).parentNode.insertBefore(this.dom,D);
return this;},insertAfter:function(D){(D=B(D)).parentNode.insertBefore(this.dom,D.nextSibling);
return this;},insertFirst:function(E,D){E=E||{};if(E.nodeType||E.dom||typeof E=="string"){E=B(E);
this.dom.insertBefore(E,this.dom.firstChild);return !D?C(E):E;}else{return this.createChild(E,this.dom.firstChild,D);
}},replace:function(D){D=C(D);this.insertBefore(D);D.remove();return this;},replaceWith:function(D){var E=this;
if(D.nodeType||D.dom||typeof D=="string"){D=B(D);E.dom.parentNode.insertBefore(D,E.dom);
}else{D=A.insertBefore(E.dom,D);}delete Ext.elCache[E.id];Ext.removeNode(E.dom);E.id=Ext.id(E.dom=D);
Ext.Element.addToCache(E.isFlyweight?new Ext.Element(E.dom):E);return E;},createChild:function(F,E,D){F=F||{tag:"div"};
return E?A.insertBefore(E,F,D!==true):A[!this.dom.firstChild?"overwrite":"append"](this.dom,F,D!==true);
},wrap:function(E,F){var D=A.insertBefore(this.dom,E||{tag:"div"},!F);D.dom?D.dom.appendChild(this.dom):D.appendChild(this.dom);
return D;},insertHtml:function(F,D,E){var G=A.insertHtml(F,this.dom,D);return E?Ext.get(G):G;
}};}());Ext.apply(Ext.Element.prototype,function(){var B=Ext.getDom,C=Ext.get,A=Ext.DomHelper;
return{insertSibling:function(E,D,F){var I=this,H,G=(D||"before").toLowerCase()=="after",J;
if(Ext.isArray(E)){J=I;Ext.each(E,function(K){H=Ext.fly(J,"_internal").insertSibling(K,D,F);
if(G){J=H;}});return H;}E=E||{};if(E.nodeType||E.dom){H=I.dom.parentNode.insertBefore(B(E),G?I.dom.nextSibling:I.dom);
if(!F){H=C(H);}}else{if(G&&!I.dom.nextSibling){H=A.append(I.dom.parentNode,E,!F);
}else{H=A[G?"insertAfter":"insertBefore"](I.dom,E,!F);}}return H;}};}());Ext.Element.addMethods(function(){var O={},AH=/(-[a-z])/gi,U={},G=document.defaultView,L=Ext.isIE?"styleFloat":"cssFloat",AD=/alpha\(opacity=(.*)\)/i,S=/^\s+|\s+$/g,AA=Ext.Element,Y="padding",V="margin",AF="border",K="-left",I="-right",AG="-top",R="-bottom",M="-width",F=Math,AC="hidden",Z="isClipped",N="overflow",Q="overflow-x",T="overflow-y",AB="originalClip",P={l:AF+K+M,r:AF+I+M,t:AF+AG+M,b:AF+R+M},X={l:Y+K,r:Y+I,t:Y+AG,b:Y+R},W={l:V+K,r:V+I,t:V+AG,b:V+R},AE=Ext.Element.data;
function H(A,B){return B.charAt(1).toUpperCase();}function J(A){return O[A]||(O[A]=A=="float"?L:A.replace(AH,H));
}return{adjustWidth:function(A){var B=this;var C=Ext.isNumber(A);if(C&&B.autoBoxAdjust&&!B.isBorderBox()){A-=(B.getBorderWidth("lr")+B.getPadding("lr"));
}return(C&&A<0)?0:A;},adjustHeight:function(A){var B=this;var C=Ext.isNumber(A);if(C&&B.autoBoxAdjust&&!B.isBorderBox()){A-=(B.getBorderWidth("tb")+B.getPadding("tb"));
}return(C&&A<0)?0:A;},addClass:function(C){var E=this,B,A,D;C=Ext.isArray(C)?C:[C];
for(B=0,A=C.length;B<A;B++){D=C[B];if(D){E.dom.className+=(!E.hasClass(D)&&D?" "+D:"");
}}return E;},radioClass:function(C){var E=this.dom.parentNode.childNodes,B;C=Ext.isArray(C)?C:[C];
for(var A=0,D=E.length;A<D;A++){B=E[A];if(B&&B.nodeType==1){Ext.fly(B,"_internal").removeClass(C);
}}return this.addClass(C);},removeClass:function(C){var E=this,B;C=Ext.isArray(C)?C:[C];
if(E.dom&&E.dom.className){for(var A=0,D=C.length;A<D;A++){B=C[A];if(B){E.dom.className=E.dom.className.replace(U[B]=U[B]||new RegExp("(?:^|\\s+)"+B+"(?:\\s+|$)","g")," ");
}}}return E;},toggleClass:function(A){return this.hasClass(A)?this.removeClass(A):this.addClass(A);
},hasClass:function(A){return A&&(" "+this.dom.className+" ").indexOf(" "+A+" ")!=-1;
},replaceClass:function(B,A){return this.removeClass(B).addClass(A);},isStyle:function(A,B){return this.getStyle(A)==B;
},getStyle:function(){return G&&G.getComputedStyle?function(E){var C=this.dom,A,B,D,b,a=Ext.isWebKit,b;
if(C==document){return null;}E=J(E);if(a&&/marginRight/.test(E)){b=this.getStyle("display");
C.style.display="inline-block";}D=(A=C.style[E])?A:(B=G.getComputedStyle(C,""))?B[E]:null;
if(a){if(D=="rgba(0, 0, 0, 0)"){D="transparent";}else{if(b){C.style.display=b;}}}return D;
}:function(E){var B=this.dom,A,C;if(B==document){return null;}if(E=="opacity"){if(B.style.filter.match){if(A=B.style.filter.match(AD)){var D=parseFloat(A[1]);
if(!isNaN(D)){return D?D/100:0;}}}return 1;}E=J(E);return B.style[E]||((C=B.currentStyle)?C[E]:null);
};}(),getColor:function(A,B,a){var C=this.getStyle(A),E=Ext.isDefined(a)?a:"#",D;
if(!C||/transparent|inherit/.test(C)){return B;}if(/^r/.test(C)){Ext.each(C.slice(4,C.length-1).split(","),function(b){D=parseInt(b,10);
E+=(D<16?"0":"")+D.toString(16);});}else{C=C.replace("#","");E+=C.length==3?C.replace(/^(\w)(\w)(\w)$/,"$1$1$2$2$3$3"):C;
}return(E.length>5?E.toLowerCase():B);},setStyle:function(E,C){var B,A,D;if(!Ext.isObject(E)){B={};
B[E]=C;E=B;}for(A in E){C=E[A];A=="opacity"?this.setOpacity(C):this.dom.style[J(A)]=C;
}return this;},setOpacity:function(B,A){var a=this,E=a.dom.style;if(!A||!a.anim){if(Ext.isIE){var C=B<1?"alpha(opacity="+B*100+")":"",D=E.filter.replace(AD,"").replace(S,"");
E.zoom=1;E.filter=D+(D.length>0?" ":"")+C;}else{E.opacity=B;}}else{a.anim({opacity:{to:B}},a.preanim(arguments,1),null,0.35,"easeIn");
}return a;},clearOpacity:function(){var A=this.dom.style;if(Ext.isIE){if(!Ext.isEmpty(A.filter)){A.filter=A.filter.replace(AD,"").replace(S,"");
}}else{A.opacity=A["-moz-opacity"]=A["-khtml-opacity"]="";}return this;},getHeight:function(B){var C=this,E=C.dom,A=Ext.isIE&&C.isStyle("display","none"),D=F.max(E.offsetHeight,A?0:E.clientHeight)||0;
D=!B?D:D-C.getBorderWidth("tb")-C.getPadding("tb");return D<0?0:D;},getWidth:function(B){var A=this,E=A.dom,C=Ext.isIE&&A.isStyle("display","none"),D=F.max(E.offsetWidth,C?0:E.clientWidth)||0;
D=!B?D:D-A.getBorderWidth("lr")-A.getPadding("lr");return D<0?0:D;},setWidth:function(B,A){var C=this;
B=C.adjustWidth(B);!A||!C.anim?C.dom.style.width=C.addUnits(B):C.anim({width:{to:B}},C.preanim(arguments,1));
return C;},setHeight:function(A,B){var C=this;A=C.adjustHeight(A);!B||!C.anim?C.dom.style.height=C.addUnits(A):C.anim({height:{to:A}},C.preanim(arguments,1));
return C;},getBorderWidth:function(A){return this.addStyles(A,P);},getPadding:function(A){return this.addStyles(A,X);
},clip:function(){var A=this,B=A.dom;if(!AE(B,Z)){AE(B,Z,true);AE(B,AB,{o:A.getStyle(N),x:A.getStyle(Q),y:A.getStyle(T)});
A.setStyle(N,AC);A.setStyle(Q,AC);A.setStyle(T,AC);}return A;},unclip:function(){var A=this,B=A.dom;
if(AE(B,Z)){AE(B,Z,false);var C=AE(B,AB);if(C.o){A.setStyle(N,C.o);}if(C.x){A.setStyle(Q,C.x);
}if(C.y){A.setStyle(T,C.y);}}return A;},addStyles:function(A,b){var E=0,B=A.match(/\w/g),C;
for(var a=0,D=B.length;a<D;a++){C=B[a]&&parseInt(this.getStyle(b[B[a]]),10);if(C){E+=F.abs(C);
}}return E;},margins:W};}());Ext.Element.boxMarkup='<div class="{0}-tl"><div class="{0}-tr"><div class="{0}-tc"></div></div></div><div class="{0}-ml"><div class="{0}-mr"><div class="{0}-mc"></div></div></div><div class="{0}-bl"><div class="{0}-br"><div class="{0}-bc"></div></div></div>';
Ext.Element.addMethods(function(){var B="_internal",A=/(\d+\.?\d+)px/;return{applyStyles:function(C){Ext.DomHelper.applyStyles(this.dom,C);
return this;},getStyles:function(){var C={};Ext.each(arguments,function(D){C[D]=this.getStyle(D);
},this);return C;},setOverflow:function(D){var C=this.dom;if(D=="auto"&&Ext.isMac&&Ext.isGecko2){C.style.overflow="hidden";
(function(){C.style.overflow="auto";}).defer(1);}else{C.style.overflow=D;}},boxWrap:function(D){D=D||"x-box";
var C=Ext.get(this.insertHtml("beforeBegin","<div class='"+D+"'>"+String.format(Ext.Element.boxMarkup,D)+"</div>"));
Ext.DomQuery.selectNode("."+D+"-mc",C.dom).appendChild(this.dom);return C;},setSize:function(E,F,D){var C=this;
if(Ext.isObject(E)){F=E.height;E=E.width;}E=C.adjustWidth(E);F=C.adjustHeight(F);
if(!D||!C.anim){C.dom.style.width=C.addUnits(E);C.dom.style.height=C.addUnits(F);
}else{C.anim({width:{to:E},height:{to:F}},C.preanim(arguments,2));}return C;},getComputedHeight:function(){var C=this,D=Math.max(C.dom.offsetHeight,C.dom.clientHeight);
if(!D){D=parseFloat(C.getStyle("height"))||0;if(!C.isBorderBox()){D+=C.getFrameWidth("tb");
}}return D;},getComputedWidth:function(){var C=Math.max(this.dom.offsetWidth,this.dom.clientWidth);
if(!C){C=parseFloat(this.getStyle("width"))||0;if(!this.isBorderBox()){C+=this.getFrameWidth("lr");
}}return C;},getFrameWidth:function(C,D){return D&&this.isBorderBox()?0:(this.getPadding(C)+this.getBorderWidth(C));
},addClassOnOver:function(C){this.hover(function(){Ext.fly(this,B).addClass(C);},function(){Ext.fly(this,B).removeClass(C);
});return this;},addClassOnFocus:function(C){this.on("focus",function(){Ext.fly(this,B).addClass(C);
},this.dom);this.on("blur",function(){Ext.fly(this,B).removeClass(C);},this.dom);
return this;},addClassOnClick:function(D){var C=this.dom;this.on("mousedown",function(){Ext.fly(C,B).addClass(D);
var E=Ext.getDoc(),F=function(){Ext.fly(C,B).removeClass(D);E.removeListener("mouseup",F);
};E.on("mouseup",F);});return this;},getViewSize:function(){var C=document,D=this.dom,F=(D==C||D==C.body);
if(F){var E=Ext.lib.Dom;return{width:E.getViewWidth(),height:E.getViewHeight()};}else{return{width:D.clientWidth,height:D.clientHeight};
}},getStyleSize:function(){var D=this,I,F,G=document,H=this.dom,C=(H==G||H==G.body),J=H.style;
if(C){var E=Ext.lib.Dom;return{width:E.getViewWidth(),height:E.getViewHeight()};}if(J.width&&J.width!="auto"){I=parseFloat(J.width);
if(D.isBorderBox()){I-=D.getFrameWidth("lr");}}if(J.height&&J.height!="auto"){F=parseFloat(J.height);
if(D.isBorderBox()){F-=D.getFrameWidth("tb");}}return{width:I||D.getWidth(true),height:F||D.getHeight(true)};
},getSize:function(C){return{width:this.getWidth(C),height:this.getHeight(C)};},repaint:function(){var C=this.dom;
this.addClass("x-repaint");setTimeout(function(){Ext.fly(C).removeClass("x-repaint");
},1);return this;},unselectable:function(){this.dom.unselectable="on";return this.swallowEvent("selectstart",true).applyStyles("-moz-user-select:none;-khtml-user-select:none;").addClass("x-unselectable");
},getMargins:function(D){var E=this,G,C={t:"top",l:"left",r:"right",b:"bottom"},F={};
if(!D){for(G in E.margins){F[C[G]]=parseFloat(E.getStyle(E.margins[G]))||0;}return F;
}else{return E.addStyles.call(E,D,E.margins);}}};}());(function(){var H=Ext.lib.Dom,F="left",I="right",J="top",E="bottom",D="position",G="static",A="relative",B="auto",C="z-index";
Ext.Element.addMethods({getX:function(){return H.getX(this.dom);},getY:function(){return H.getY(this.dom);
},getXY:function(){return H.getXY(this.dom);},getOffsetsTo:function(L){var K=this.getXY(),M=Ext.fly(L,"_internal").getXY();
return[K[0]-M[0],K[1]-M[1]];},setX:function(K,L){return this.setXY([K,this.getY()],this.animTest(arguments,L,1));
},setY:function(L,K){return this.setXY([this.getX(),L],this.animTest(arguments,K,1));
},setLeft:function(K){this.setStyle(F,this.addUnits(K));return this;},setTop:function(K){this.setStyle(J,this.addUnits(K));
return this;},setRight:function(K){this.setStyle(I,this.addUnits(K));return this;
},setBottom:function(K){this.setStyle(E,this.addUnits(K));return this;},setXY:function(K,L){var M=this;
if(!L||!M.anim){H.setXY(M.dom,K);}else{M.anim({points:{to:K}},M.preanim(arguments,1),"motion");
}return M;},setLocation:function(L,K,M){return this.setXY([L,K],this.animTest(arguments,M,2));
},moveTo:function(L,K,M){return this.setXY([L,K],this.animTest(arguments,M,2));},getLeft:function(K){return !K?this.getX():parseInt(this.getStyle(F),10)||0;
},getRight:function(K){var L=this;return !K?L.getX()+L.getWidth():(L.getLeft(true)+L.getWidth())||0;
},getTop:function(K){return !K?this.getY():parseInt(this.getStyle(J),10)||0;},getBottom:function(K){var L=this;
return !K?L.getY()+L.getHeight():(L.getTop(true)+L.getHeight())||0;},position:function(L,M,N,K){var O=this;
if(!L&&O.isStyle(D,G)){O.setStyle(D,A);}else{if(L){O.setStyle(D,L);}}if(M){O.setStyle(C,M);
}if(N||K){O.setXY([N||false,K||false]);}},clearPositioning:function(K){K=K||"";this.setStyle({left:K,right:K,top:K,bottom:K,"z-index":"",position:G});
return this;},getPositioning:function(){var L=this.getStyle(F);var K=this.getStyle(J);
return{position:this.getStyle(D),left:L,right:L?"":this.getStyle(I),top:K,bottom:K?"":this.getStyle(E),"z-index":this.getStyle(C)};
},setPositioning:function(L){var K=this,M=K.dom.style;K.setStyle(L);if(L.right==B){M.right="";
}if(L.bottom==B){M.bottom="";}return K;},translatePoints:function(O,Q){Q=isNaN(O[1])?Q:O[1];
O=isNaN(O[0])?O:O[0];var N=this,K=N.isStyle(D,A),L=N.getXY(),M=parseInt(N.getStyle(F),10),P=parseInt(N.getStyle(J),10);
M=!isNaN(M)?M:(K?0:N.dom.offsetLeft);P=!isNaN(P)?P:(K?0:N.dom.offsetTop);return{left:(O-L[0]+M),top:(Q-L[1]+P)};
},animTest:function(M,L,K){return !!L&&this.preanim?this.preanim(M,K):false;}});})();
Ext.Element.addMethods({setBox:function(C,A,D){var B=this,F=C.width,E=C.height;if((A&&!B.autoBoxAdjust)&&!B.isBorderBox()){F-=(B.getBorderWidth("lr")+B.getPadding("lr"));
E-=(B.getBorderWidth("tb")+B.getPadding("tb"));}B.setBounds(C.x,C.y,F,E,B.animTest.call(B,arguments,D,2));
return B;},getBox:function(G,C){var L=this,E,A,K,P=L.getBorderWidth,D=L.getPadding,O,N,F,J;
if(!C){E=L.getXY();}else{A=parseInt(L.getStyle("left"),10)||0;K=parseInt(L.getStyle("top"),10)||0;
E=[A,K];}var M=L.dom,B=M.offsetWidth,I=M.offsetHeight,H;if(!G){H={x:E[0],y:E[1],0:E[0],1:E[1],width:B,height:I};
}else{O=P.call(L,"l")+D.call(L,"l");N=P.call(L,"r")+D.call(L,"r");F=P.call(L,"t")+D.call(L,"t");
J=P.call(L,"b")+D.call(L,"b");H={x:E[0]+O,y:E[1]+F,0:E[0]+O,1:E[1]+F,width:B-(O+N),height:I-(F+J)};
}H.right=H.x+H.width;H.bottom=H.y+H.height;return H;},move:function(B,H,I){var K=this,G=K.getXY(),C=G[0],E=G[1],L=[C-H,E],F=[C+H,E],D=[C,E-H],J=[C,E+H],A={l:L,left:L,r:F,right:F,t:D,top:D,up:D,b:J,bottom:J,down:J};
B=B.toLowerCase();K.moveTo(A[B][0],A[B][1],K.animTest.call(K,arguments,I,2));},setLeftTop:function(A,C){var B=this,D=B.dom.style;
D.left=B.addUnits(A);D.top=B.addUnits(C);return B;},getRegion:function(){return Ext.lib.Dom.getRegion(this.dom);
},setBounds:function(D,A,B,F,E){var C=this;if(!E||!C.anim){C.setSize(B,F);C.setLocation(D,A);
}else{C.anim({points:{to:[D,A]},width:{to:C.adjustWidth(B)},height:{to:C.adjustHeight(F)}},C.preanim(arguments,4),"motion");
}return C;},setRegion:function(A,B){return this.setBounds(A.left,A.top,A.right-A.left,A.bottom-A.top,this.animTest.call(this,arguments,B,1));
}});Ext.Element.addMethods({isScrollable:function(){var A=this.dom;return A.scrollHeight>A.clientHeight||A.scrollWidth>A.clientWidth;
},scrollTo:function(B,A){this.dom["scroll"+(/top/i.test(B)?"Top":"Left")]=A;return this;
},getScroll:function(){var B=this.dom,A=document,G=A.body,F=A.documentElement,E,C,D;
if(B==A||B==G){if(Ext.isIE&&Ext.isStrict){E=F.scrollLeft;C=F.scrollTop;}else{E=window.pageXOffset;
C=window.pageYOffset;}D={left:E||(G?G.scrollLeft:0),top:C||(G?G.scrollTop:0)};}else{D={left:B.scrollLeft,top:B.scrollTop};
}return D;}});Ext.Element.addMethods({scrollTo:function(E,B,G){var C=/top/i.test(E),F=this,A=F.dom,D;
if(!G||!F.anim){D="scroll"+(C?"Top":"Left"),A[D]=B;}else{D="scroll"+(C?"Left":"Top"),F.anim({scroll:{to:C?[A[D],B]:[B,A[D]]}},F.preanim(arguments,2),"scroll");
}return F;},scrollIntoView:function(A,I){var C=Ext.getDom(A)||Ext.getBody().dom,H=this.dom,M=this.getOffsetsTo(C),G=M[0]+C.scrollLeft,E=M[1]+C.scrollTop,D=E+H.offsetHeight,N=G+H.offsetWidth,L=C.clientHeight,K=parseInt(C.scrollTop,10),B=parseInt(C.scrollLeft,10),F=K+L,J=B+C.clientWidth;
if(H.offsetHeight>L||E<K){C.scrollTop=E;}else{if(D>F){C.scrollTop=D-L;}}C.scrollTop=C.scrollTop;
if(I!==false){if(H.offsetWidth>C.clientWidth||G<B){C.scrollLeft=G;}else{if(N>J){C.scrollLeft=N-C.clientWidth;
}}C.scrollLeft=C.scrollLeft;}return this;},scrollChildIntoView:function(A,B){Ext.fly(A,"_scrollChildIntoView").scrollIntoView(this,B);
},scroll:function(H,I,M){if(!this.isScrollable()){return ;}var A=this.dom,L=A.scrollLeft,B=A.scrollTop,F=A.scrollWidth,D=A.scrollHeight,E=A.clientWidth,K=A.clientHeight,J=false,G,C={l:Math.min(L+I,F-E),r:G=Math.max(L-I,0),t:Math.max(B-I,0),b:Math.min(B+I,D-K)};
C.d=C.b;C.u=C.t;H=H.substr(0,1);if((G=C[H])>-1){J=true;this.scrollTo(H=="l"||H=="r"?"left":"top",G,this.preanim(arguments,2));
}return J;}});Ext.Element.VISIBILITY=1;Ext.Element.DISPLAY=2;Ext.Element.addMethods(function(){var D="visibility",K="display",G="hidden",C="offsets",B="none",I="originalDisplay",H="visibilityMode",A=Ext.Element.DISPLAY,J=Ext.Element.data,E=function(L){var M=J(L,I);
if(M===undefined){J(L,I,M="");}return M;},F=function(M){var L=J(M,H);if(L===undefined){J(M,H,L=1);
}return L;};return{originalDisplay:"",visibilityMode:1,setVisibilityMode:function(L){J(this.dom,H,L);
return this;},animate:function(L,M,N,O,P){this.anim(L,{duration:M,callback:N,easing:O},P);
return this;},anim:function(N,O,Q,M,R,S){Q=Q||"run";O=O||{};var L=this,P=Ext.lib.Anim[Q](L.dom,N,(O.duration||M)||0.35,(O.easing||R)||"easeOut",function(){if(S){S.call(L);
}if(O.callback){O.callback.call(O.scope||L,L,O);}},L);O.anim=P;return P;},preanim:function(M,L){return !M[L]?false:(Ext.isObject(M[L])?M[L]:{duration:M[L+1],callback:M[L+2],easing:M[L+3]});
},isVisible:function(){return !this.isStyle(D,G)&&!this.isStyle(K,B);},setVisible:function(L,N){var O=this,M,P,Q,R=O.dom;
if(Ext.isString(N)){M=N==K;P=N==D;Q=N==C;N=false;}else{M=F(this.dom)==A;P=!M;}if(!N||!O.anim){if(M){O.setDisplayed(L);
}else{if(Q){if(!L){O.hideModeStyles={position:O.getStyle("position"),top:O.getStyle("top"),left:O.getStyle("left")};
O.applyStyles({position:"absolute",top:"-10000px",left:"-10000px"});}else{O.applyStyles(O.hideModeStyles||{position:"",top:"",left:""});
}}else{O.fixDisplay();R.style.visibility=L?"visible":G;}}}else{if(L){O.setOpacity(0.01);
O.setVisible(true);}O.anim({opacity:{to:(L?1:0)}},O.preanim(arguments,1),null,0.35,"easeIn",function(){if(!L){R.style[M?K:D]=(M)?B:G;
Ext.fly(R).setOpacity(1);}});}return O;},toggle:function(M){var L=this;L.setVisible(!L.isVisible(),L.preanim(arguments,0));
return L;},setDisplayed:function(L){if(typeof L=="boolean"){L=L?E(this.dom):B;}this.setStyle(K,L);
return this;},fixDisplay:function(){var L=this;if(L.isStyle(K,B)){L.setStyle(D,G);
L.setStyle(K,E(this.dom));if(L.isStyle(K,B)){L.setStyle(K,"block");}}},hide:function(L){if(Ext.isString(L)){this.setVisible(false,L);
return this;}this.setVisible(false,this.preanim(arguments,0));return this;},show:function(L){if(Ext.isString(L)){this.setVisible(true,L);
return this;}this.setVisible(true,this.preanim(arguments,0));return this;}};}());
Ext.Element.addMethods(function(){var B="visibility",E="display",G="hidden",A="none",F="x-masked",C="x-masked-relative",D=Ext.Element.data;
return{isVisible:function(H){var I=!this.isStyle(B,G)&&!this.isStyle(E,A),J=this.dom.parentNode;
if(H!==true||!I){return I;}while(J&&!/^body/i.test(J.tagName)){if(!Ext.fly(J,"_isVisible").isVisible()){return false;
}J=J.parentNode;}return true;},isDisplayed:function(){return !this.isStyle(E,A);},enableDisplayMode:function(H){this.setVisibilityMode(Ext.Element.DISPLAY);
if(!Ext.isEmpty(H)){D(this.dom,"originalDisplay",H);}return this;},mask:function(J,M){var H=this,O=H.dom,N=Ext.DomHelper,P="ext-el-mask-msg",L,I;
if(!/^body/i.test(O.tagName)&&H.getStyle("position")=="static"){H.addClass(C);}if((L=D(O,"maskMsg"))){L.remove();
}if((L=D(O,"mask"))){L.remove();}I=N.append(O,{cls:"ext-el-mask"},true);D(O,"mask",I);
H.addClass(F);I.setDisplayed(true);if(typeof J=="string"){var K=N.append(O,{cls:P,cn:{tag:"div"}},true);
D(O,"maskMsg",K);K.dom.className=M?P+" "+M:P;K.dom.firstChild.innerHTML=J;K.setDisplayed(true);
K.center(H);}if(Ext.isIE&&!(Ext.isIE7&&Ext.isStrict)&&H.getStyle("height")=="auto"){I.setSize(undefined,H.getHeight());
}return I;},unmask:function(){var K=this,I=K.dom,H=D(I,"mask"),J=D(I,"maskMsg");if(H){if(J){J.remove();
D(I,"maskMsg",undefined);}H.remove();D(I,"mask",undefined);}K.removeClass([F,C]);
},isMasked:function(){var H=D(this.dom,"mask");return H&&H.isVisible();},createShim:function(){var H=document.createElement("iframe"),I;
H.frameBorder="0";H.className="ext-shim";H.src=Ext.SSL_SECURE_URL;I=Ext.get(this.dom.parentNode.insertBefore(H,this.dom));
I.autoBoxAdjust=false;return I;}};}());Ext.Element.addMethods({addKeyListener:function(B,A,C){var D;
if(!Ext.isObject(B)||Ext.isArray(B)){D={key:B,fn:A,scope:C};}else{D={key:B.key,shift:B.shift,ctrl:B.ctrl,alt:B.alt,fn:A,scope:C};
}return new Ext.KeyMap(this,D);},addKeyMap:function(A){return new Ext.KeyMap(this,A);
}});(function(){var Z=null,X=undefined,K=true,H=false,J="setX",L="setY",T="setXY",N="left",P="bottom",D="top",Q="right",F="height",U="width",M="points",AA="hidden",Y="absolute",I="visible",W="motion",O="position",C="easeOut",V=new Ext.Element.Flyweight(),G={},AB=function(A){return A||{};
},E=function(A){V.dom=A;V.id=Ext.id(A);return V;},S=function(A){if(!G[A]){G[A]=[];
}return G[A];},R=function(A,B){G[A]=B;};Ext.enableFx=K;Ext.Fx={switchStatements:function(A,B,a){return B.apply(this,a[A]);
},slideIn:function(a,h){h=AB(h);var A=this,B=A.dom,b=B.style,l,g,e,k,j,b,m,c,d,i;
a=a||"t";A.queueFx(h,function(){l=E(B).getXY();E(B).fixDisplay();g=E(B).getFxRestore();
e={x:l[0],y:l[1],0:l[0],1:l[1],width:B.offsetWidth,height:B.offsetHeight};e.right=e.x+e.width;
e.bottom=e.y+e.height;E(B).setWidth(e.width).setHeight(e.height);k=E(B).fxWrap(g.pos,h,AA);
b.visibility=I;b.position=Y;function o(){E(B).fxUnwrap(k,g.pos,h);b.width=g.width;
b.height=g.height;E(B).afterFx(h);}c={to:[e.x,e.y]};d={to:e.width};i={to:e.height};
function n(y,v,z,AC,t,q,p,x,r,s,AD){var u={};E(y).setWidth(z).setHeight(AC);if(E(y)[t]){E(y)[t](q);
}v[p]=v[x]="0";if(r){u.width=r;}if(s){u.height=s;}if(AD){u.points=AD;}return u;}m=E(B).switchStatements(a.toLowerCase(),n,{t:[k,b,e.width,0,Z,Z,N,P,Z,i,Z],l:[k,b,0,e.height,Z,Z,Q,D,d,Z,Z],r:[k,b,e.width,e.height,J,e.right,N,D,Z,Z,c],b:[k,b,e.width,e.height,L,e.bottom,N,D,Z,i,c],tl:[k,b,0,0,Z,Z,Q,P,d,i,c],bl:[k,b,0,0,L,e.y+e.height,Q,D,d,i,c],br:[k,b,0,0,T,[e.right,e.bottom],N,D,d,i,c],tr:[k,b,0,0,J,e.x+e.width,N,P,d,i,c]});
b.visibility=I;E(k).show();arguments.callee.anim=E(k).fxanim(m,h,W,0.5,C,o);});return A;
},slideOut:function(g,i){i=AB(i);var a=this,e=a.dom,b=e.style,c=a.getXY(),h,d,j,A,B={to:0};
g=g||"t";a.queueFx(i,function(){d=E(e).getFxRestore();j={x:c[0],y:c[1],0:c[0],1:c[1],width:e.offsetWidth,height:e.offsetHeight};
j.right=j.x+j.width;j.bottom=j.y+j.height;E(e).setWidth(j.width).setHeight(j.height);
h=E(e).fxWrap(d.pos,i,I);b.visibility=I;b.position=Y;E(h).setWidth(j.width).setHeight(j.height);
function k(){i.useDisplay?E(e).setDisplayed(H):E(e).hide();E(e).fxUnwrap(h,d.pos,i);
b.width=d.width;b.height=d.height;E(e).afterFx(i);}function l(q,m,s,n,u,t,p,v,o){var r={};
q[m]=q[s]="0";r[n]=u;if(t){r[t]=p;}if(v){r[v]=o;}return r;}A=E(e).switchStatements(g.toLowerCase(),l,{t:[b,N,P,F,B],l:[b,Q,D,U,B],r:[b,N,D,U,B,M,{to:[j.right,j.y]}],b:[b,N,D,F,B,M,{to:[j.x,j.bottom]}],tl:[b,Q,P,U,B,F,B],bl:[b,Q,D,U,B,F,B,M,{to:[j.x,j.bottom]}],br:[b,N,D,U,B,F,B,M,{to:[j.x+j.width,j.bottom]}],tr:[b,N,P,U,B,F,B,M,{to:[j.right,j.y]}]});
arguments.callee.anim=E(h).fxanim(A,i,W,0.5,C,k);});return a;},puff:function(a){a=AB(a);
var B=this,A=B.dom,b=A.style,c,e,d;B.queueFx(a,function(){c=E(A).getWidth();e=E(A).getHeight();
E(A).clearOpacity();E(A).show();d=E(A).getFxRestore();function g(){a.useDisplay?E(A).setDisplayed(H):E(A).hide();
E(A).clearOpacity();E(A).setPositioning(d.pos);b.width=d.width;b.height=d.height;
b.fontSize="";E(A).afterFx(a);}arguments.callee.anim=E(A).fxanim({width:{to:E(A).adjustWidth(c*2)},height:{to:E(A).adjustHeight(e*2)},points:{by:[-c*0.5,-e*0.5]},opacity:{to:0},fontSize:{to:200,unit:"%"}},a,W,0.5,C,g);
});return B;},switchOff:function(B){B=AB(B);var b=this,A=b.dom,c=A.style,a;b.queueFx(B,function(){E(A).clearOpacity();
E(A).clip();a=E(A).getFxRestore();function d(){B.useDisplay?E(A).setDisplayed(H):E(A).hide();
E(A).clearOpacity();E(A).setPositioning(a.pos);c.width=a.width;c.height=a.height;
E(A).afterFx(B);}E(A).fxanim({opacity:{to:0.3}},Z,Z,0.1,Z,function(){E(A).clearOpacity();
(function(){E(A).fxanim({height:{to:1},points:{by:[0,E(A).getHeight()*0.5]}},B,W,0.3,"easeIn",d);
}).defer(100);});});return b;},highlight:function(b,a){a=AB(a);var B=this,A=B.dom,e=a.attr||"backgroundColor",c={},d;
B.queueFx(a,function(){E(A).clearOpacity();E(A).show();function g(){A.style[e]=d;
E(A).afterFx(a);}d=A.style[e];c[e]={from:b||"ffff9c",to:a.endColor||E(A).getColor(e)||"ffffff"};
arguments.callee.anim=E(A).fxanim(c,a,"color",1,"easeIn",g);});return B;},frame:function(e,A,a){a=AB(a);
var b=this,B=b.dom,c,d;b.queueFx(a,function(){e=e||"#C3DAF9";if(e.length==6){e="#"+e;
}A=A||1;E(B).show();var i=E(B).getXY(),g={x:i[0],y:i[1],0:i[0],1:i[1],width:B.offsetWidth,height:B.offsetHeight},j=function(){c=E(document.body||document.documentElement).createChild({style:{position:Y,"z-index":35000,border:"0px solid "+e}});
return c.queueFx({},h);};arguments.callee.anim={isAnimated:true,stop:function(){A=0;
c.stopFx();}};function h(){var k=Ext.isBorderBox?2:1;d=c.anim({top:{from:g.y,to:g.y-20},left:{from:g.x,to:g.x-20},borderWidth:{from:0,to:10},opacity:{from:1,to:0},height:{from:g.height,to:g.height+20*k},width:{from:g.width,to:g.width+20*k}},{duration:a.duration||1,callback:function(){c.remove();
--A>0?j():E(B).afterFx(a);}});arguments.callee.anim={isAnimated:true,stop:function(){d.stop();
}};}j();});return b;},pause:function(B){var A=this.dom,a;this.queueFx({},function(){a=setTimeout(function(){E(A).afterFx({});
},B*1000);arguments.callee.anim={isAnimated:true,stop:function(){clearTimeout(a);
E(A).afterFx({});}};});return this;},fadeIn:function(a){a=AB(a);var b=this,B=b.dom,A=a.endOpacity||1;
b.queueFx(a,function(){E(B).setOpacity(0);E(B).fixDisplay();B.style.visibility=I;
arguments.callee.anim=E(B).fxanim({opacity:{to:A}},a,Z,0.5,C,function(){if(A==1){E(B).clearOpacity();
}E(B).afterFx(a);});});return b;},fadeOut:function(A){A=AB(A);var a=this,b=a.dom,c=b.style,B=A.endOpacity||0;
a.queueFx(A,function(){arguments.callee.anim=E(b).fxanim({opacity:{to:B}},A,Z,0.5,C,function(){if(B==0){Ext.Element.data(b,"visibilityMode")==Ext.Element.DISPLAY||A.useDisplay?c.display="none":c.visibility=AA;
E(b).clearOpacity();}E(b).afterFx(A);});});return a;},scale:function(a,A,B){this.shift(Ext.apply({},B,{width:a,height:A}));
return this;},shift:function(B){B=AB(B);var A=this.dom,a={};this.queueFx(B,function(){for(var b in B){if(B[b]!=X){a[b]={to:B[b]};
}}a.width?a.width.to=E(A).adjustWidth(B.width):a;a.height?a.height.to=E(A).adjustWidth(B.height):a;
if(a.x||a.y||a.xy){a.points=a.xy||{to:[a.x?a.x.to:E(A).getX(),a.y?a.y.to:E(A).getY()]};
}arguments.callee.anim=E(A).fxanim(a,B,W,0.35,C,function(){E(A).afterFx(B);});});
return this;},ghost:function(d,g){g=AB(g);var B=this,h=B.dom,A=h.style,a={opacity:{to:0},points:{}},b=a.points,c,i,e;
d=d||"b";B.queueFx(g,function(){c=E(h).getFxRestore();i=E(h).getWidth();e=E(h).getHeight();
function j(){g.useDisplay?E(h).setDisplayed(H):E(h).hide();E(h).clearOpacity();E(h).setPositioning(c.pos);
A.width=c.width;A.height=c.height;E(h).afterFx(g);}b.by=E(h).switchStatements(d.toLowerCase(),function(l,k){return[l,k];
},{t:[0,-e],l:[-i,0],r:[i,0],b:[0,e],tl:[-i,-e],bl:[-i,e],br:[i,e],tr:[i,-e]});arguments.callee.anim=E(h).fxanim(a,g,W,0.5,C,j);
});return B;},syncFx:function(){var A=this;A.fxDefaults=Ext.apply(A.fxDefaults||{},{block:H,concurrent:K,stopFx:H});
return A;},sequenceFx:function(){var A=this;A.fxDefaults=Ext.apply(A.fxDefaults||{},{block:H,concurrent:H,stopFx:H});
return A;},nextFx:function(){var A=S(this.dom.id)[0];if(A){A.call(this);}},hasActiveFx:function(){return S(this.dom.id)[0];
},stopFx:function(b){var B=this,A=B.dom.id;if(B.hasActiveFx()){var a=S(A)[0];if(a&&a.anim){if(a.anim.isAnimated){R(A,[a]);
a.anim.stop(b!==undefined?b:K);}else{R(A,[]);}}}return B;},beforeFx:function(A){if(this.hasActiveFx()&&!A.concurrent){if(A.stopFx){this.stopFx();
return K;}return H;}return K;},hasFxBlock:function(){var A=S(this.dom.id);return A&&A[0]&&A[0].block;
},queueFx:function(A,b){var B=E(this.dom);if(!B.hasFxBlock()){Ext.applyIf(A,B.fxDefaults);
if(!A.concurrent){var a=B.beforeFx(A);b.block=A.block;S(B.dom.id).push(b);if(a){B.nextFx();
}}else{b.call(B);}}return B;},fxWrap:function(a,B,b){var A=this.dom,c,d;if(!B.wrap||!(c=Ext.getDom(B.wrap))){if(B.fixPosition){d=E(A).getXY();
}var e=document.createElement("div");e.style.visibility=b;c=A.parentNode.insertBefore(e,A);
E(c).setPositioning(a);if(E(c).isStyle(O,"static")){E(c).position("relative");}E(A).clearPositioning("auto");
E(c).clip();c.appendChild(A);if(d){E(c).setXY(d);}}return c;},fxUnwrap:function(a,B,A){var b=this.dom;
E(b).clearPositioning();E(b).setPositioning(B);if(!A.wrap){var c=E(a).dom.parentNode;
c.insertBefore(b,a);E(a).remove();}},getFxRestore:function(){var A=this.dom.style;
return{pos:this.getPositioning(),width:A.width,height:A.height};},afterFx:function(A){var a=this.dom,B=a.id;
if(A.afterStyle){E(a).setStyle(A.afterStyle);}if(A.afterCls){E(a).addClass(A.afterCls);
}if(A.remove==K){E(a).remove();}if(A.callback){A.callback.call(A.scope,E(a));}if(!A.concurrent){S(B).shift();
E(a).nextFx();}},fxanim:function(A,B,a,e,b,c){a=a||"run";B=B||{};var d=Ext.lib.Anim[a](this.dom,A,(B.duration||e)||0.35,(B.easing||b)||C,c,this);
B.anim=d;return d;}};Ext.Fx.resize=Ext.Fx.scale;Ext.Element.addMethods(Ext.Fx);})();
Ext.CompositeElementLite=function(A,B){this.elements=[];this.add(A,B);this.el=new Ext.Element.Flyweight();
};Ext.CompositeElementLite.prototype={isComposite:true,getElement:function(B){var A=this.el;
A.dom=B;A.id=B.id;return A;},transformElement:function(A){return Ext.getDom(A);},getCount:function(){return this.elements.length;
},add:function(B,D){var C=this,A=C.elements;if(!B){return this;}if(Ext.isString(B)){B=Ext.Element.selectorFunction(B,D);
}else{if(B.isComposite){B=B.elements;}else{if(!Ext.isIterable(B)){B=[B];}}}for(var E=0,F=B.length;
E<F;++E){A.push(C.transformElement(B[E]));}return C;},invoke:function(A,D){var B=this,C=B.elements,F=C.length,G,E;
for(E=0;E<F;E++){G=C[E];if(G){Ext.Element.prototype[A].apply(B.getElement(G),D);}}return B;
},item:function(B){var A=this,C=A.elements[B],D=null;if(C){D=A.getElement(C);}return D;
},addListener:function(D,A,C,G){var H=this.elements,F=H.length,E,B;for(E=0;E<F;E++){B=H[E];
if(B){Ext.EventManager.on(B,D,A,C||B,G);}}return this;},each:function(A,B){var C=this,E=C.elements,F=E.length,D,G;
for(D=0;D<F;D++){G=E[D];if(G){G=this.getElement(G);if(A.call(B||G,G,C,D)===false){break;
}}}return C;},fill:function(B){var A=this;A.elements=[];A.add(B);return A;},filter:function(E){var C=[],A=this,B=A.elements,D=Ext.isFunction(E)?E:function(F){return F.is(E);
};A.each(function(H,F,G){if(D(H,G)!==false){C[C.length]=A.transformElement(H);}});
A.elements=C;return A;},indexOf:function(A){return this.elements.indexOf(this.transformElement(A));
},replaceElement:function(B,D,E){var C=!isNaN(B)?B:this.indexOf(B),A;if(C>-1){D=Ext.getDom(D);
if(E){A=this.elements[C];A.parentNode.insertBefore(D,A);Ext.removeNode(A);}this.elements.splice(C,1,D);
}return this;},clear:function(){this.elements=[];}};Ext.CompositeElementLite.prototype.on=Ext.CompositeElementLite.prototype.addListener;
(function(){var B,A=Ext.Element.prototype,C=Ext.CompositeElementLite.prototype;for(B in A){if(Ext.isFunction(A[B])){(function(D){C[D]=C[D]||function(){return this.invoke(D,arguments);
};}).call(C,B);}}})();if(Ext.DomQuery){Ext.Element.selectorFunction=Ext.DomQuery.select;
}Ext.Element.select=function(C,A){var B;if(typeof C=="string"){B=Ext.Element.selectorFunction(C,A);
}else{if(C.length!==undefined){B=C;}else{throw"Invalid selector";}}return new Ext.CompositeElementLite(B);
};Ext.select=Ext.Element.select;Ext.apply(Ext.CompositeElementLite.prototype,{addElements:function(B,C){if(!B){return this;
}if(typeof B=="string"){B=Ext.Element.selectorFunction(B,C);}var A=this.elements;
Ext.each(B,function(D){A.push(Ext.get(D));});return this;},first:function(){return this.item(0);
},last:function(){return this.item(this.getCount()-1);},contains:function(A){return this.indexOf(A)!=-1;
},removeElement:function(A,B){var D=this,E=this.elements,C;Ext.each(A,function(F){if((C=(E[F]||E[F=D.indexOf(F)]))){if(B){if(C.dom){C.remove();
}else{Ext.removeNode(C);}}E.splice(F,1);}});return this;}});Ext.CompositeElement=function(A,B){this.elements=[];
this.add(A,B);};Ext.extend(Ext.CompositeElement,Ext.CompositeElementLite,{getElement:function(A){return A;
},transformElement:function(A){return Ext.get(A);}});Ext.Element.select=function(D,A,B){var C;
if(typeof D=="string"){C=Ext.Element.selectorFunction(D,B);}else{if(D.length!==undefined){C=D;
}else{throw"Invalid selector";}}return(A===true)?new Ext.CompositeElement(C):new Ext.CompositeElementLite(C);
};Ext.select=Ext.Element.select;(function(){var D="beforerequest",A="requestcomplete",H="requestexception",B=undefined,E="load",C="POST",F="GET",G=window;
Ext.data.Connection=function(I){Ext.apply(this,I);this.addEvents(D,A,H);Ext.data.Connection.superclass.constructor.call(this);
};Ext.extend(Ext.data.Connection,Ext.util.Observable,{timeout:30000,autoAbort:false,disableCaching:true,disableCachingParam:"_dc",request:function(O){var J=this;
if(J.fireEvent(D,J,O)){if(O.el){if(!Ext.isEmpty(O.indicatorText)){J.indicatorText='<div class="loading-indicator">'+O.indicatorText+"</div>";
}if(J.indicatorText){Ext.getDom(O.el).innerHTML=J.indicatorText;}O.success=(Ext.isFunction(O.success)?O.success:function(){}).createInterceptor(function(R){Ext.getDom(O.el).innerHTML=R.responseText;
});}var P=O.params,N=O.url||J.url,M,K={success:J.handleResponse,failure:J.handleFailure,scope:J,argument:{options:O},timeout:O.timeout||J.timeout},Q,L;
if(Ext.isFunction(P)){P=P.call(O.scope||G,O);}P=Ext.urlEncode(J.extraParams,Ext.isObject(P)?Ext.urlEncode(P):P);
if(Ext.isFunction(N)){N=N.call(O.scope||G,O);}if((Q=Ext.getDom(O.form))){N=N||Q.action;
if(O.isUpload||/multipart\/form-data/i.test(Q.getAttribute("enctype"))){return J.doFormUpload.call(J,O,P,N);
}L=Ext.lib.Ajax.serializeForm(Q);P=P?(P+"&"+L):L;}M=O.method||J.method||((P||O.xmlData||O.jsonData)?C:F);
if(M===F&&(J.disableCaching&&O.disableCaching!==false)||O.disableCaching===true){var I=O.disableCachingParam||J.disableCachingParam;
N=Ext.urlAppend(N,I+"="+(new Date().getTime()));}O.headers=Ext.apply(O.headers||{},J.defaultHeaders||{});
if(O.autoAbort===true||J.autoAbort){J.abort();}if((M==F||O.xmlData||O.jsonData)&&P){N=Ext.urlAppend(N,P);
P="";}return(J.transId=Ext.lib.Ajax.request(M,N,K,P,O));}else{return O.callback?O.callback.apply(O.scope,[O,B,B]):null;
}},isLoading:function(I){return I?Ext.lib.Ajax.isCallInProgress(I):!!this.transId;
},abort:function(I){if(I||this.isLoading()){Ext.lib.Ajax.abort(I||this.transId);}},handleResponse:function(I){this.transId=false;
var J=I.argument.options;I.argument=J?J.argument:null;this.fireEvent(A,this,I,J);
if(J.success){J.success.call(J.scope,I,J);}if(J.callback){J.callback.call(J.scope,J,true,I);
}},handleFailure:function(J,I){this.transId=false;var K=J.argument.options;J.argument=K?K.argument:null;
this.fireEvent(H,this,J,K,I);if(K.failure){K.failure.call(K.scope,J,K);}if(K.callback){K.callback.call(K.scope,K,false,J);
}},doFormUpload:function(L,P,Q){var S=Ext.id(),M=document,I=M.createElement("iframe"),T=Ext.getDom(L.form),O=[],N,K="multipart/form-data",R={target:T.target,method:T.method,encoding:T.encoding,enctype:T.enctype,action:T.action};
Ext.fly(I).set({id:S,name:S,cls:"x-hidden"});M.body.appendChild(I);Ext.fly(I).set({src:Ext.SSL_SECURE_URL});
if(Ext.isIE){document.frames[S].name=S;}Ext.fly(T).set({target:S,method:C,enctype:K,encoding:K,action:Q||R.action});
Ext.iterate(Ext.urlDecode(P,false),function(V,U){N=M.createElement("input");Ext.fly(N).set({type:"hidden",value:U,name:V});
T.appendChild(N);O.push(N);});function J(){var Y=this,X={responseText:"",responseXML:null,argument:L.argument},W,Z;
try{W=I.contentWindow.document||I.contentDocument||G.frames[S].document;if(W){if(W.body){if(/textarea/i.test((Z=W.body.firstChild||{}).tagName)){X.responseText=Z.value;
}else{X.responseText=W.body.innerHTML;}}X.responseXML=W.XMLDocument||W;}}catch(V){}Ext.EventManager.removeListener(I,E,J,Y);
Y.fireEvent(A,Y,X,L);function U(b,a,c){if(Ext.isFunction(b)){b.apply(a,c);}}U(L.success,L.scope,[X,L]);
U(L.callback,L.scope,[L,true,X]);if(!Y.debugUploads){setTimeout(function(){Ext.removeNode(I);
},100);}}Ext.EventManager.on(I,E,J,this);T.submit();Ext.fly(T).set(R);Ext.each(O,function(U){Ext.removeNode(U);
});}});})();Ext.Ajax=new Ext.data.Connection({autoAbort:false,serializeForm:function(A){return Ext.lib.Ajax.serializeForm(A);
}});Ext.UpdateManager=Ext.Updater=Ext.extend(Ext.util.Observable,function(){var D="beforeupdate",B="update",E="failure";
function F(G){var H=this;H.transaction=null;if(G.argument.form&&G.argument.reset){try{G.argument.form.reset();
}catch(I){}}if(H.loadScripts){H.renderer.render(H.el,G,H,A.createDelegate(H,[G]));
}else{H.renderer.render(H.el,G,H);A.call(H,G);}}function A(G,H,I){this.fireEvent(H||B,this.el,G);
if(Ext.isFunction(G.argument.callback)){G.argument.callback.call(G.argument.scope,this.el,Ext.isEmpty(I)?true:false,G,G.argument.options);
}}function C(G){A.call(this,G,E,!!(this.transaction=null));}return{constructor:function(H,G){var I=this;
H=Ext.get(H);if(!G&&H.updateManager){return H.updateManager;}I.el=H;I.defaultUrl=null;
I.addEvents(D,B,E);Ext.apply(I,Ext.Updater.defaults);I.transaction=null;I.refreshDelegate=I.refresh.createDelegate(I);
I.updateDelegate=I.update.createDelegate(I);I.formUpdateDelegate=(I.formUpdate||function(){}).createDelegate(I);
I.renderer=I.renderer||I.getDefaultRenderer();Ext.Updater.superclass.constructor.call(I);
},setRenderer:function(G){this.renderer=G;},getRenderer:function(){return this.renderer;
},getDefaultRenderer:function(){return new Ext.Updater.BasicRenderer();},setDefaultUrl:function(G){this.defaultUrl=G;
},getEl:function(){return this.el;},update:function(K,L,G,M){var I=this,J,H;if(I.fireEvent(D,I.el,K,L)!==false){if(Ext.isObject(K)){J=K;
K=J.url;L=L||J.params;G=G||J.callback;M=M||J.discardUrl;H=J.scope;if(!Ext.isEmpty(J.nocache)){I.disableCaching=J.nocache;
}if(!Ext.isEmpty(J.text)){I.indicatorText='<div class="loading-indicator">'+J.text+"</div>";
}if(!Ext.isEmpty(J.scripts)){I.loadScripts=J.scripts;}if(!Ext.isEmpty(J.timeout)){I.timeout=J.timeout;
}}I.showLoading();if(!M){I.defaultUrl=K;}if(Ext.isFunction(K)){K=K.call(I);}var N=Ext.apply({},{url:K,params:(Ext.isFunction(L)&&H)?L.createDelegate(H):L,success:F,failure:C,scope:I,callback:undefined,timeout:(I.timeout*1000),disableCaching:I.disableCaching,argument:{options:J,url:K,form:null,callback:G,scope:H||window,params:L}},J);
I.transaction=Ext.Ajax.request(N);}},formUpdate:function(K,G,J,I){var H=this;if(H.fireEvent(D,H.el,K,G)!==false){if(Ext.isFunction(G)){G=G.call(H);
}K=Ext.getDom(K);H.transaction=Ext.Ajax.request({form:K,url:G,success:F,failure:C,scope:H,timeout:(H.timeout*1000),argument:{url:G,form:K,callback:I,reset:J}});
H.showLoading.defer(1,H);}},startAutoRefresh:function(H,K,I,J,G){var L=this;if(G){L.update(K||L.defaultUrl,I,J,true);
}if(L.autoRefreshProcId){clearInterval(L.autoRefreshProcId);}L.autoRefreshProcId=setInterval(L.update.createDelegate(L,[K||L.defaultUrl,I,J,true]),H*1000);
},stopAutoRefresh:function(){if(this.autoRefreshProcId){clearInterval(this.autoRefreshProcId);
delete this.autoRefreshProcId;}},isAutoRefreshing:function(){return !!this.autoRefreshProcId;
},showLoading:function(){if(this.showLoadIndicator){this.el.dom.innerHTML=this.indicatorText;
}},abort:function(){if(this.transaction){Ext.Ajax.abort(this.transaction);}},isUpdating:function(){return this.transaction?Ext.Ajax.isLoading(this.transaction):false;
},refresh:function(G){if(this.defaultUrl){this.update(this.defaultUrl,null,G,true);
}}};}());Ext.Updater.defaults={timeout:30,disableCaching:false,showLoadIndicator:true,indicatorText:'<div class="loading-indicator">Loading...</div>',loadScripts:false,sslBlankUrl:Ext.SSL_SECURE_URL};
Ext.Updater.updateElement=function(A,D,B,C){var E=Ext.get(A).getUpdater();Ext.apply(E,C);
E.update(D,B,C?C.callback:null);};Ext.Updater.BasicRenderer=function(){};Ext.Updater.BasicRenderer.prototype={render:function(C,D,B,A){C.update(D.responseText,B.loadScripts,A);
}};(function(){Date.useStrict=false;function A(C){var D=Array.prototype.slice.call(arguments,1);
return C.replace(/\{(\d+)\}/g,function(F,E){return D[E];});}Date.formatCodeToRegex=function(C,E){var D=Date.parseCodes[C];
if(D){D=typeof D=="function"?D():D;Date.parseCodes[C]=D;}return D?Ext.applyIf({c:D.c?A(D.c,E||"{0}"):D.c},D):{g:0,c:null,s:Ext.escapeRe(C)};
};var B=Date.formatCodeToRegex;Ext.apply(Date,{parseFunctions:{"M$":function(D,F){var E=new RegExp("\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/");
var C=(D||"").match(E);return C?new Date(((C[1]||"")+C[2])*1):null;}},parseRegexes:[],formatFunctions:{"M$":function(){return"\\/Date("+this.getTime()+")\\/";
}},y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",defaults:{},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNumbers:{Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},getShortMonthName:function(C){return Date.monthNames[C].substring(0,3);
},getShortDayName:function(C){return Date.dayNames[C].substring(0,3);},getMonthNumber:function(C){return Date.monthNumbers[C.substring(0,1).toUpperCase()+C.substring(1,3).toLowerCase()];
},formatCodes:{d:"String.leftPad(this.getDate(), 2, '0')",D:"Date.getShortDayName(this.getDay())",j:"this.getDate()",l:"Date.dayNames[this.getDay()]",N:"(this.getDay() ? this.getDay() : 7)",S:"this.getSuffix()",w:"this.getDay()",z:"this.getDayOfYear()",W:"String.leftPad(this.getWeekOfYear(), 2, '0')",F:"Date.monthNames[this.getMonth()]",m:"String.leftPad(this.getMonth() + 1, 2, '0')",M:"Date.getShortMonthName(this.getMonth())",n:"(this.getMonth() + 1)",t:"this.getDaysInMonth()",L:"(this.isLeapYear() ? 1 : 0)",o:"(this.getFullYear() + (this.getWeekOfYear() == 1 && this.getMonth() > 0 ? +1 : (this.getWeekOfYear() >= 52 && this.getMonth() < 11 ? -1 : 0)))",Y:"this.getFullYear()",y:"('' + this.getFullYear()).substring(2, 4)",a:"(this.getHours() < 12 ? 'am' : 'pm')",A:"(this.getHours() < 12 ? 'AM' : 'PM')",g:"((this.getHours() % 12) ? this.getHours() % 12 : 12)",G:"this.getHours()",h:"String.leftPad((this.getHours() % 12) ? this.getHours() % 12 : 12, 2, '0')",H:"String.leftPad(this.getHours(), 2, '0')",i:"String.leftPad(this.getMinutes(), 2, '0')",s:"String.leftPad(this.getSeconds(), 2, '0')",u:"String.leftPad(this.getMilliseconds(), 3, '0')",O:"this.getGMTOffset()",P:"this.getGMTOffset(true)",T:"this.getTimezone()",Z:"(this.getTimezoneOffset() * -60)",c:function(){for(var G="Y-m-dTH:i:sP",C=[],E=0,D=G.length;
E<D;++E){var F=G.charAt(E);C.push(F=="T"?"'T'":Date.getFormatCode(F));}return C.join(" + ");
},U:"Math.round(this.getTime() / 1000)"},isValid:function(G,I,F,E,J,D,C){E=E||0;J=J||0;
D=D||0;C=C||0;var H=new Date(G,I-1,F,E,J,D,C);return G==H.getFullYear()&&I==H.getMonth()+1&&F==H.getDate()&&E==H.getHours()&&J==H.getMinutes()&&D==H.getSeconds()&&C==H.getMilliseconds();
},parseDate:function(D,C,F){var E=Date.parseFunctions;if(E[C]==null){Date.createParser(C);
}return E[C](D,Ext.isDefined(F)?F:Date.useStrict);},getFormatCode:function(C){var D=Date.formatCodes[C];
if(D){D=typeof D=="function"?D():D;Date.formatCodes[C]=D;}return D||("'"+String.escape(C)+"'");
},createFormat:function(C){var E=[],G=false,F="";for(var D=0;D<C.length;++D){F=C.charAt(D);
if(!G&&F=="\\"){G=true;}else{if(G){G=false;E.push("'"+String.escape(F)+"'");}else{E.push(Date.getFormatCode(F));
}}}Date.formatFunctions[C]=new Function("return "+E.join("+"));},createParser:function(){var C=["var dt, y, m, d, h, i, s, ms, o, z, zz, u, v,","def = Date.defaults,","results = String(input).match(Date.parseRegexes[{0}]);","if(results){","{1}","if(u != null){","v = new Date(u * 1000);","}else{","dt = (new Date()).clearTime();","y = Ext.num(y, Ext.num(def.y, dt.getFullYear()));","m = Ext.num(m, Ext.num(def.m - 1, dt.getMonth()));","d = Ext.num(d, Ext.num(def.d, dt.getDate()));","h  = Ext.num(h, Ext.num(def.h, dt.getHours()));","i  = Ext.num(i, Ext.num(def.i, dt.getMinutes()));","s  = Ext.num(s, Ext.num(def.s, dt.getSeconds()));","ms = Ext.num(ms, Ext.num(def.ms, dt.getMilliseconds()));","if(z >= 0 && y >= 0){","v = new Date(y, 0, 1, h, i, s, ms);","v = !strict? v : (strict === true && (z <= 364 || (v.isLeapYear() && z <= 365))? v.add(Date.DAY, z) : null);","}else if(strict === true && !Date.isValid(y, m + 1, d, h, i, s, ms)){","v = null;","}else{","v = new Date(y, m, d, h, i, s, ms);","}","}","}","if(v){","if(zz != null){","v = v.add(Date.SECOND, -v.getTimezoneOffset() * 60 - zz);","}else if(o){","v = v.add(Date.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));","}","}","return v;"].join("\n");
return function(J){var D=Date.parseRegexes.length,H=1,K=[],I=[],F=false,L="";for(var E=0;
E<J.length;++E){L=J.charAt(E);if(!F&&L=="\\"){F=true;}else{if(F){F=false;I.push(String.escape(L));
}else{var G=B(L,H);H+=G.g;I.push(G.s);if(G.g&&G.c){K.push(G.c);}}}}Date.parseRegexes[D]=new RegExp("^"+I.join("")+"$");
Date.parseFunctions[J]=new Function("input","strict",A(C,D,K.join("")));};}(),parseCodes:{d:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},j:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(\\d{1,2})"},D:function(){for(var D=[],C=0;
C<7;D.push(Date.getShortDayName(C)),++C){}return{g:0,c:null,s:"(?:"+D.join("|")+")"};
},l:function(){return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};},N:{g:0,c:null,s:"[1-7]"},S:{g:0,c:null,s:"(?:st|nd|rd|th)"},w:{g:0,c:null,s:"[0-6]"},z:{g:1,c:"z = parseInt(results[{0}], 10);\n",s:"(\\d{1,3})"},W:{g:0,c:null,s:"(?:\\d{2})"},F:function(){return{g:1,c:"m = parseInt(Date.getMonthNumber(results[{0}]), 10);\n",s:"("+Date.monthNames.join("|")+")"};
},M:function(){for(var D=[],C=0;C<12;D.push(Date.getShortMonthName(C)),++C){}return Ext.applyIf({s:"("+D.join("|")+")"},B("F"));
},m:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(\\d{2})"},n:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(\\d{1,2})"},t:{g:0,c:null,s:"(?:\\d{2})"},L:{g:0,c:null,s:"(?:1|0)"},o:function(){return B("Y");
},Y:{g:1,c:"y = parseInt(results[{0}], 10);\n",s:"(\\d{4})"},y:{g:1,c:"var ty = parseInt(results[{0}], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"},a:{g:1,c:"if (results[{0}] == 'am') {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(am|pm)"},A:{g:1,c:"if (results[{0}] == 'AM') {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(AM|PM)"},g:function(){return B("G");
},G:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(\\d{1,2})"},h:function(){return B("H");
},H:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},i:{g:1,c:"i = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},s:{g:1,c:"s = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},u:{g:1,c:"ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n",s:"(\\d+)"},O:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),","mn = o.substring(3,5) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + String.leftPad(hr, 2, '0') + String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{4})"},P:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),","mn = o.substring(4,6) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + String.leftPad(hr, 2, '0') + String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{2}:\\d{2})"},T:{g:0,c:null,s:"[A-Z]{1,4}"},Z:{g:1,c:"zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n",s:"([+-]?\\d{1,5})"},c:function(){var E=[],F=[B("Y",1),B("m",2),B("d",3),B("h",4),B("i",5),B("s",6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:["if(results[8]) {","if(results[8] == 'Z'){","zz = 0;","}else if (results[8].indexOf(':') > -1){",B("P",8).c,"}else{",B("O",8).c,"}","}"].join("\n")}];
for(var C=0,D=F.length;C<D;++C){E.push(F[C].c);}return{g:1,c:E.join(""),s:[F[0].s,"(?:","-",F[1].s,"(?:","-",F[2].s,"(?:","(?:T| )?",F[3].s,":",F[4].s,"(?::",F[5].s,")?","(?:(?:\\.|,)(\\d+))?","(Z|(?:[-+]\\d{2}(?::)?\\d{2}))?",")?",")?",")?"].join("")};
},U:{g:1,c:"u = parseInt(results[{0}], 10);\n",s:"(-?\\d+)"}}});}());Ext.apply(Date.prototype,{dateFormat:function(A){if(Date.formatFunctions[A]==null){Date.createFormat(A);
}return Date.formatFunctions[A].call(this);},getTimezone:function(){return this.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,4})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/,"$1$2").replace(/[^A-Z]/g,"");
},getGMTOffset:function(A){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+(A?":":"")+String.leftPad(Math.abs(this.getTimezoneOffset()%60),2,"0");
},getDayOfYear:function(){var B=0,A=this.clone(),D=this.getMonth(),C;for(C=0,A.setDate(1),A.setMonth(0);
C<D;A.setMonth(++C)){B+=A.getDaysInMonth();}return B+this.getDate()-1;},getWeekOfYear:function(){var B=86400000,A=7*B;
return function(){var C=Date.UTC(this.getFullYear(),this.getMonth(),this.getDate()+3)/B,E=Math.floor(C/7),D=new Date(E*A).getUTCFullYear();
return E-Math.floor(Date.UTC(D,0,7)/A)+1;};}(),isLeapYear:function(){var A=this.getFullYear();
return !!((A&3)==0&&(A%100||(A%400==0&&A)));},getFirstDayOfMonth:function(){var A=(this.getDay()-(this.getDate()-1))%7;
return(A<0)?(A+7):A;},getLastDayOfMonth:function(){return this.getLastDateOfMonth().getDay();
},getFirstDateOfMonth:function(){return new Date(this.getFullYear(),this.getMonth(),1);
},getLastDateOfMonth:function(){return new Date(this.getFullYear(),this.getMonth(),this.getDaysInMonth());
},getDaysInMonth:function(){var A=[31,28,31,30,31,30,31,31,30,31,30,31];return function(){var B=this.getMonth();
return B==1&&this.isLeapYear()?29:A[B];};}(),getSuffix:function(){switch(this.getDate()){case 1:case 21:case 31:return"st";
case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th";}},clone:function(){return new Date(this.getTime());
},isDST:function(){return new Date(this.getFullYear(),0,1).getTimezoneOffset()!=this.getTimezoneOffset();
},clearTime:function(A){if(A){return this.clone().clearTime();}var C=this.getDate();
this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);if(this.getDate()!=C){for(var D=1,B=this.add(Date.HOUR,D);
B.getDate()!=C;D++,B=this.add(Date.HOUR,D)){}this.setDate(C);this.setHours(B.getHours());
}return this;},add:function(B,C){var A=this.clone();if(!B||C===0){return A;}switch(B.toLowerCase()){case Date.MILLI:A.setMilliseconds(this.getMilliseconds()+C);
break;case Date.SECOND:A.setSeconds(this.getSeconds()+C);break;case Date.MINUTE:A.setMinutes(this.getMinutes()+C);
break;case Date.HOUR:A.setHours(this.getHours()+C);break;case Date.DAY:A.setDate(this.getDate()+C);
break;case Date.MONTH:var D=this.getDate();if(D>28){D=Math.min(D,this.getFirstDateOfMonth().add("mo",C).getLastDateOfMonth().getDate());
}A.setDate(D);A.setMonth(this.getMonth()+C);break;case Date.YEAR:A.setFullYear(this.getFullYear()+C);
break;}return A;},between:function(B,C){var A=this.getTime();return B.getTime()<=A&&A<=C.getTime();
}});Date.prototype.format=Date.prototype.dateFormat;if(Ext.isSafari&&(navigator.userAgent.match(/WebKit\/(\d+)/)[1]||NaN)<420){Ext.apply(Date.prototype,{_xMonth:Date.prototype.setMonth,_xDate:Date.prototype.setDate,setMonth:function(D){if(D<=-1){var A=Math.ceil(-D),C=Math.ceil(A/12),B=(A%12)?12-A%12:0;
this.setFullYear(this.getFullYear()-C);return this._xMonth(B);}else{return this._xMonth(D);
}},setDate:function(A){return this.setTime(this.getTime()-(this.getDate()-A)*86400000);
}});}Ext.util.MixedCollection=function(A,B){this.items=[];this.map={};this.keys=[];
this.length=0;this.addEvents("clear","add","replace","remove","sort");this.allowFunctions=A===true;
if(B){this.getKey=B;}Ext.util.MixedCollection.superclass.constructor.call(this);};
Ext.extend(Ext.util.MixedCollection,Ext.util.Observable,{allowFunctions:false,add:function(A,B){if(arguments.length==1){B=arguments[0];
A=this.getKey(B);}if(typeof A!="undefined"&&A!==null){var C=this.map[A];if(typeof C!="undefined"){return this.replace(A,B);
}this.map[A]=B;}this.length++;this.items.push(B);this.keys.push(A);this.fireEvent("add",this.length-1,B,A);
return B;},getKey:function(A){return A.id;},replace:function(C,A){if(arguments.length==1){A=arguments[0];
C=this.getKey(A);}var D=this.map[C];if(typeof C=="undefined"||C===null||typeof D=="undefined"){return this.add(C,A);
}var B=this.indexOfKey(C);this.items[B]=A;this.map[C]=A;this.fireEvent("replace",C,D,A);
return A;},addAll:function(B){if(arguments.length>1||Ext.isArray(B)){var C=arguments.length>1?arguments:B;
for(var A=0,E=C.length;A<E;A++){this.add(C[A]);}}else{for(var D in B){if(this.allowFunctions||typeof B[D]!="function"){this.add(D,B[D]);
}}}},each:function(B,A){var C=[].concat(this.items);for(var D=0,E=C.length;D<E;D++){if(B.call(A||C[D],C[D],D,E)===false){break;
}}},eachKey:function(A,C){for(var B=0,D=this.keys.length;B<D;B++){A.call(C||window,this.keys[B],this.items[B],B,D);
}},find:function(A,C){for(var B=0,D=this.items.length;B<D;B++){if(A.call(C||window,this.items[B],this.keys[B])){return this.items[B];
}}return null;},insert:function(C,A,B){if(arguments.length==2){B=arguments[1];A=this.getKey(B);
}if(this.containsKey(A)){this.suspendEvents();this.removeKey(A);this.resumeEvents();
}if(C>=this.length){return this.add(A,B);}this.length++;this.items.splice(C,0,B);
if(typeof A!="undefined"&&A!==null){this.map[A]=B;}this.keys.splice(C,0,A);this.fireEvent("add",C,B,A);
return B;},remove:function(A){return this.removeAt(this.indexOf(A));},removeAt:function(C){if(C<this.length&&C>=0){this.length--;
var B=this.items[C];this.items.splice(C,1);var A=this.keys[C];if(typeof A!="undefined"){delete this.map[A];
}this.keys.splice(C,1);this.fireEvent("remove",B,A);return B;}return false;},removeKey:function(A){return this.removeAt(this.indexOfKey(A));
},getCount:function(){return this.length;},indexOf:function(A){return this.items.indexOf(A);
},indexOfKey:function(A){return this.keys.indexOf(A);},item:function(A){var C=this.map[A],B=C!==undefined?C:(typeof A=="number")?this.items[A]:undefined;
return !Ext.isFunction(B)||this.allowFunctions?B:null;},itemAt:function(A){return this.items[A];
},key:function(A){return this.map[A];},contains:function(A){return this.indexOf(A)!=-1;
},containsKey:function(A){return typeof this.map[A]!="undefined";},clear:function(){this.length=0;
this.items=[];this.keys=[];this.map={};this.fireEvent("clear");},first:function(){return this.items[0];
},last:function(){return this.items[this.length-1];},_sort:function(C,G,B){var I,A,F=String(G).toUpperCase()=="DESC"?-1:1,D=[],E=this.keys,H=this.items;
B=B||function(J,K){return J-K;};for(I=0,A=H.length;I<A;I++){D[D.length]={key:E[I],value:H[I],index:I};
}D.sort(function(J,L){var K=B(J[C],L[C])*F;if(K===0){K=(J.index<L.index?-1:1);}return K;
});for(I=0,A=D.length;I<A;I++){H[I]=D[I].value;E[I]=D[I].key;}this.fireEvent("sort",this);
},sort:function(B,A){this._sort("value",B,A);},reorder:function(B){this.suspendEvents();
var D=this.items,E=0,A=D.length,F=[],C=[];for(oldIndex in B){F[B[oldIndex]]=D[oldIndex];
}for(E=0;E<A;E++){if(B[E]==undefined){C.push(D[E]);}}for(E=0;E<A;E++){if(F[E]==undefined){F[E]=C.shift();
}}this.clear();this.addAll(F);this.resumeEvents();this.fireEvent("sort",this);},keySort:function(B,A){this._sort("key",B,A||function(D,F){var C=String(D).toUpperCase(),E=String(F).toUpperCase();
return C>E?1:(C<E?-1:0);});},getRange:function(B,E){var C=this.items;if(C.length<1){return[];
}B=B||0;E=Math.min(typeof E=="undefined"?this.length-1:E,this.length-1);var D,A=[];
if(B<=E){for(D=B;D<=E;D++){A[A.length]=C[D];}}else{for(D=B;D>=E;D--){A[A.length]=C[D];
}}return A;},filter:function(C,B,A,D){if(Ext.isEmpty(B,false)){return this.clone();
}B=this.createValueMatcher(B,A,D);return this.filterBy(function(E){return E&&B.test(E[C]);
});},filterBy:function(A,C){var B=new Ext.util.MixedCollection();B.getKey=this.getKey;
var E=this.keys,D=this.items;for(var F=0,G=D.length;F<G;F++){if(A.call(C||this,D[F],E[F])){B.add(E[F],D[F]);
}}return B;},findIndex:function(D,C,B,A,E){if(Ext.isEmpty(C,false)){return -1;}C=this.createValueMatcher(C,A,E);
return this.findIndexBy(function(F){return F&&C.test(F[D]);},null,B);},findIndexBy:function(A,C,B){var E=this.keys,D=this.items;
for(var F=(B||0),G=D.length;F<G;F++){if(A.call(C||this,D[F],E[F])){return F;}}return -1;
},createValueMatcher:function(D,B,E,C){if(!D.exec){var A=Ext.escapeRe;D=String(D);
if(B===true){D=A(D);}else{D="^"+A(D);if(C===true){D+="$";}}D=new RegExp(D,E?"":"i");
}return D;},clone:function(){var B=new Ext.util.MixedCollection();var C=this.keys,A=this.items;
for(var D=0,E=A.length;D<E;D++){B.add(C[D],A[D]);}B.getKey=this.getKey;return B;}});
Ext.util.MixedCollection.prototype.get=Ext.util.MixedCollection.prototype.item;Ext.util.JSON=new (function(){var useHasOwn=!!{}.hasOwnProperty,isNative=function(){var useNative=null;
return function(){if(useNative===null){useNative=Ext.USE_NATIVE_JSON&&window.JSON&&JSON.toString()=="[object JSON]";
}return useNative;};}(),pad=function(n){return n<10?"0"+n:n;},doDecode=function(json){return eval("("+json+")");
},doEncode=function(o){if(!Ext.isDefined(o)||o===null){return"null";}else{if(Ext.isArray(o)){return encodeArray(o);
}else{if(Ext.isDate(o)){return Ext.util.JSON.encodeDate(o);}else{if(Ext.isString(o)){return encodeString(o);
}else{if(typeof o=="number"){return isFinite(o)?String(o):"null";}else{if(Ext.isBoolean(o)){return String(o);
}else{var a=["{"],b,i,v;for(i in o){if(!o.getElementsByTagName){if(!useHasOwn||o.hasOwnProperty(i)){v=o[i];
switch(typeof v){case"undefined":case"function":case"unknown":break;default:if(b){a.push(",");
}a.push(doEncode(i),":",v===null?"null":doEncode(v));b=true;}}}}a.push("}");return a.join("");
}}}}}}},m={"\b":"\\b","\t":"\\t","\n":"\\n","":"\\f","\n":"\\r",'"':'\\"',"\\":"\\\\"},encodeString=function(s){if(/["\\\x00-\x1f]/.test(s)){return'"'+s.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];
if(c){return c;}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);
})+'"';}return'"'+s+'"';},encodeArray=function(o){var a=["["],b,i,l=o.length,v;for(i=0;
i<l;i+=1){v=o[i];switch(typeof v){case"undefined":case"function":case"unknown":break;
default:if(b){a.push(",");}a.push(v===null?"null":Ext.util.JSON.encode(v));b=true;
}}a.push("]");return a.join("");};this.encodeDate=function(o){return'"'+o.getFullYear()+"-"+pad(o.getMonth()+1)+"-"+pad(o.getDate())+"T"+pad(o.getHours())+":"+pad(o.getMinutes())+":"+pad(o.getSeconds())+'"';
};this.encode=function(){var ec;return function(o){if(!ec){ec=isNative()?JSON.stringify:doEncode;
}return ec(o);};}();this.decode=function(){var dc;return function(json){if(!dc){dc=isNative()?JSON.parse:doDecode;
}return dc(json);};}();})();Ext.encode=Ext.util.JSON.encode;Ext.decode=Ext.util.JSON.decode;
Ext.util.Format=function(){var trimRe=/^\s+|\s+$/g,stripTagsRE=/<\/?[^>]+>/gi,stripScriptsRe=/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe=/\r?\n/g;
return{ellipsis:function(value,len,word){if(value&&value.length>len){if(word){var vs=value.substr(0,len-2),index=Math.max(vs.lastIndexOf(" "),vs.lastIndexOf("."),vs.lastIndexOf("!"),vs.lastIndexOf("?"));
if(index==-1||index<(len-15)){return value.substr(0,len-3)+"...";}else{return vs.substr(0,index)+"...";
}}else{return value.substr(0,len-3)+"...";}}return value;},undef:function(value){return value!==undefined?value:"";
},defaultValue:function(value,defaultValue){return value!==undefined&&value!==""?value:defaultValue;
},htmlEncode:function(value){return !value?value:String(value).replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;");
},htmlDecode:function(value){return !value?value:String(value).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,'"').replace(/&amp;/g,"&");
},trim:function(value){return String(value).replace(trimRe,"");},substr:function(value,start,length){return String(value).substr(start,length);
},lowercase:function(value){return String(value).toLowerCase();},uppercase:function(value){return String(value).toUpperCase();
},capitalize:function(value){return !value?value:value.charAt(0).toUpperCase()+value.substr(1).toLowerCase();
},call:function(value,fn){if(arguments.length>2){var args=Array.prototype.slice.call(arguments,2);
args.unshift(value);return eval(fn).apply(window,args);}else{return eval(fn).call(window,value);
}},usMoney:function(v){v=(Math.round((v-0)*100))/100;v=(v==Math.floor(v))?v+".00":((v*10==Math.floor(v*10))?v+"0":v);
v=String(v);var ps=v.split("."),whole=ps[0],sub=ps[1]?"."+ps[1]:".00",r=/(\d+)(\d{3})/;
while(r.test(whole)){whole=whole.replace(r,"$1,$2");}v=whole+sub;if(v.charAt(0)=="-"){return"-$"+v.substr(1);
}return"$"+v;},date:function(v,format){if(!v){return"";}if(!Ext.isDate(v)){v=new Date(Date.parse(v));
}return v.dateFormat(format||"m/d/Y");},dateRenderer:function(format){return function(v){return Ext.util.Format.date(v,format);
};},stripTags:function(v){return !v?v:String(v).replace(stripTagsRE,"");},stripScripts:function(v){return !v?v:String(v).replace(stripScriptsRe,"");
},fileSize:function(size){if(size<1024){return size+" bytes";}else{if(size<1048576){return(Math.round(((size*10)/1024))/10)+" KB";
}else{return(Math.round(((size*10)/1048576))/10)+" MB";}}},math:function(){var fns={};
return function(v,a){if(!fns[a]){fns[a]=new Function("v","return v "+a+";");}return fns[a](v);
};}(),round:function(value,precision){var result=Number(value);if(typeof precision=="number"){precision=Math.pow(10,precision);
result=Math.round(value*precision)/precision;}return result;},number:function(v,format){if(!format){return v;
}v=Ext.num(v,NaN);if(isNaN(v)){return"";}var comma=",",dec=".",i18n=false,neg=v<0;
v=Math.abs(v);if(format.substr(format.length-2)=="/i"){format=format.substr(0,format.length-2);
i18n=true;comma=".";dec=",";}var hasComma=format.indexOf(comma)!=-1,psplit=(i18n?format.replace(/[^\d\,]/g,""):format.replace(/[^\d\.]/g,"")).split(dec);
if(1<psplit.length){v=v.toFixed(psplit[1].length);}else{if(2<psplit.length){throw ("NumberFormatException: invalid format, formats should have no more than 1 period: "+format);
}else{v=v.toFixed(0);}}var fnum=v.toString();psplit=fnum.split(".");if(hasComma){var cnum=psplit[0],parr=[],j=cnum.length,m=Math.floor(j/3),n=cnum.length%3||3;
for(var i=0;i<j;i+=n){if(i!=0){n=3;}parr[parr.length]=cnum.substr(i,n);m-=1;}fnum=parr.join(comma);
if(psplit[1]){fnum+=dec+psplit[1];}}else{if(psplit[1]){fnum=psplit[0]+dec+psplit[1];
}}return(neg?"-":"")+format.replace(/[\d,?\.?]+/,fnum);},numberRenderer:function(format){return function(v){return Ext.util.Format.number(v,format);
};},plural:function(v,s,p){return v+" "+(v==1?s:(p?p:s+"s"));},nl2br:function(v){return Ext.isEmpty(v)?"":v.replace(nl2brRe,"<br/>");
}};}();Ext.XTemplate=function(){Ext.XTemplate.superclass.constructor.apply(this,arguments);
var U=this,J=U.html,B=/<tpl\b[^>]*>((?:(?=([^<]+))\2|<(?!tpl\b[^>]*>))*?)<\/tpl>/,R=/^<tpl\b[^>]*?for="(.*?)"/,E=/^<tpl\b[^>]*?if="(.*?)"/,D=/^<tpl\b[^>]*?exec="(.*?)"/,C,L=0,G=[],K="values",F="parent",H="xindex",M="xcount",S="return ",O="with(values){ ";
J=["<tpl>",J,"</tpl>"].join("");while((C=J.match(B))){var N=C[0].match(R),P=C[0].match(E),T=C[0].match(D),Q=null,I=null,A=null,V=N&&N[1]?N[1]:"";
if(P){Q=P&&P[1]?P[1]:null;if(Q){I=new Function(K,F,H,M,O+S+(Ext.util.Format.htmlDecode(Q))+"; }");
}}if(T){Q=T&&T[1]?T[1]:null;if(Q){A=new Function(K,F,H,M,O+(Ext.util.Format.htmlDecode(Q))+"; }");
}}if(V){switch(V){case".":V=new Function(K,F,O+S+K+"; }");break;case"..":V=new Function(K,F,O+S+F+"; }");
break;default:V=new Function(K,F,O+S+V+"; }");}}G.push({id:L,target:V,exec:A,test:I,body:C[1]||""});
J=J.replace(C[0],"{xtpl"+L+"}");++L;}Ext.each(G,function(W){U.compileTpl(W);});U.master=G[G.length-1];
U.tpls=G;};Ext.extend(Ext.XTemplate,Ext.Template,{re:/\{([\w-\.\#]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\\]\s?[\d\.\+\-\*\\\(\)]+)?\}/g,codeRe:/\{\[((?:\\\]|.|\n)*?)\]\}/g,applySubTemplate:function(H,E,D,J,G){var I=this,A,C=I.tpls[H],B,F=[];
if((C.test&&!C.test.call(I,E,D,J,G))||(C.exec&&C.exec.call(I,E,D,J,G))){return"";
}B=C.target?C.target.call(I,E,D):E;A=B.length;D=C.target?E:D;if(C.target&&Ext.isArray(B)){Ext.each(B,function(K,L){F[F.length]=C.compiled.call(I,K,D,L+1,A);
});return F.join("");}return C.compiled.call(I,B,D,J,G);},compileTpl:function(tpl){var fm=Ext.util.Format,useF=this.disableFormats!==true,sep=Ext.isGecko?"+":",",body;
function fn(m,name,format,args,math){if(name.substr(0,4)=="xtpl"){return"'"+sep+"this.applySubTemplate("+name.substr(4)+", values, parent, xindex, xcount)"+sep+"'";
}var v;if(name==="."){v="values";}else{if(name==="#"){v="xindex";}else{if(name.indexOf(".")!=-1){v=name;
}else{v="values['"+name+"']";}}}if(math){v="("+v+math+")";}if(format&&useF){args=args?","+args:"";
if(format.substr(0,5)!="this."){format="fm."+format+"(";}else{format='this.call("'+format.substr(5)+'", ';
args=", values";}}else{args="";format="("+v+" === undefined ? '' : ";}return"'"+sep+format+v+args+")"+sep+"'";
}function codeFn(m,code){return"'"+sep+"("+code.replace(/\\'/g,"'")+")"+sep+"'";}if(Ext.isGecko){body="tpl.compiled = function(values, parent, xindex, xcount){ return '"+tpl.body.replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn).replace(this.codeRe,codeFn)+"';};";
}else{body=["tpl.compiled = function(values, parent, xindex, xcount){ return ['"];
body.push(tpl.body.replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn).replace(this.codeRe,codeFn));
body.push("'].join('');};");body=body.join("");}eval(body);return this;},applyTemplate:function(A){return this.master.compiled.call(this,A,{},1,1);
},compile:function(){return this;}});Ext.XTemplate.prototype.apply=Ext.XTemplate.prototype.applyTemplate;
Ext.XTemplate.from=function(A){A=Ext.getDom(A);return new Ext.XTemplate(A.value||A.innerHTML);
};Ext.util.CSS=function(){var A=null;var C=document;var B=/(-[a-z])/gi;var D=function(F,E){return E.charAt(1).toUpperCase();
};return{createStyleSheet:function(F,H){var E;var G=C.getElementsByTagName("head")[0];
var J=C.createElement("style");J.setAttribute("type","text/css");if(H){J.setAttribute("id",H);
}if(Ext.isIE){G.appendChild(J);E=J.styleSheet;E.cssText=F;}else{try{J.appendChild(C.createTextNode(F));
}catch(I){J.cssText=F;}G.appendChild(J);E=J.styleSheet?J.styleSheet:(J.sheet||C.styleSheets[C.styleSheets.length-1]);
}this.cacheStyleSheet(E);return E;},removeStyleSheet:function(E){var F=C.getElementById(E);
if(F){F.parentNode.removeChild(F);}},swapStyleSheet:function(E,F){this.removeStyleSheet(E);
var G=C.createElement("link");G.setAttribute("rel","stylesheet");G.setAttribute("type","text/css");
G.setAttribute("id",E);G.setAttribute("href",F);C.getElementsByTagName("head")[0].appendChild(G);
},refreshCache:function(){return this.getRules(true);},cacheStyleSheet:function(E){if(!A){A={};
}try{var H=E.cssRules||E.rules;for(var G=H.length-1;G>=0;--G){A[H[G].selectorText.toLowerCase()]=H[G];
}}catch(F){}},getRules:function(E){if(A===null||E){A={};var I=C.styleSheets;for(var H=0,F=I.length;
H<F;H++){try{this.cacheStyleSheet(I[H]);}catch(G){}}}return A;},getRule:function(F,E){var G=this.getRules(E);
if(!Ext.isArray(F)){return G[F.toLowerCase()];}for(var H=0;H<F.length;H++){if(G[F[H]]){return G[F[H].toLowerCase()];
}}return null;},updateRule:function(F,H,E){if(!Ext.isArray(F)){var I=this.getRule(F);
if(I){I.style[H.replace(B,D)]=E;return true;}}else{for(var G=0;G<F.length;G++){if(this.updateRule(F[G],H,E)){return true;
}}}return false;}};}();Ext.util.ClickRepeater=function(A,B){this.el=Ext.get(A);this.el.unselectable();
Ext.apply(this,B);this.addEvents("mousedown","click","mouseup");if(!this.disabled){this.disabled=true;
this.enable();}if(this.handler){this.on("click",this.handler,this.scope||this);}Ext.util.ClickRepeater.superclass.constructor.call(this);
};Ext.extend(Ext.util.ClickRepeater,Ext.util.Observable,{interval:20,delay:250,preventDefault:true,stopDefault:false,timer:0,enable:function(){if(this.disabled){this.el.on("mousedown",this.handleMouseDown,this);
if(Ext.isIE){this.el.on("dblclick",this.handleDblClick,this);}if(this.preventDefault||this.stopDefault){this.el.on("click",this.eventOptions,this);
}}this.disabled=false;},disable:function(A){if(A||!this.disabled){clearTimeout(this.timer);
if(this.pressClass){this.el.removeClass(this.pressClass);}Ext.getDoc().un("mouseup",this.handleMouseUp,this);
this.el.removeAllListeners();}this.disabled=true;},setDisabled:function(A){this[A?"disable":"enable"]();
},eventOptions:function(A){if(this.preventDefault){A.preventDefault();}if(this.stopDefault){A.stopEvent();
}},destroy:function(){this.disable(true);Ext.destroy(this.el);this.purgeListeners();
},handleDblClick:function(){clearTimeout(this.timer);this.el.blur();this.fireEvent("mousedown",this);
this.fireEvent("click",this);},handleMouseDown:function(){clearTimeout(this.timer);
this.el.blur();if(this.pressClass){this.el.addClass(this.pressClass);}this.mousedownTime=new Date();
Ext.getDoc().on("mouseup",this.handleMouseUp,this);this.el.on("mouseout",this.handleMouseOut,this);
this.fireEvent("mousedown",this);this.fireEvent("click",this);if(this.accelerate){this.delay=400;
}this.timer=this.click.defer(this.delay||this.interval,this);},click:function(){this.fireEvent("click",this);
this.timer=this.click.defer(this.accelerate?this.easeOutExpo(this.mousedownTime.getElapsed(),400,-390,12000):this.interval,this);
},easeOutExpo:function(B,D,A,C){return(B==C)?D+A:A*(-Math.pow(2,-10*B/C)+1)+D;},handleMouseOut:function(){clearTimeout(this.timer);
if(this.pressClass){this.el.removeClass(this.pressClass);}this.el.on("mouseover",this.handleMouseReturn,this);
},handleMouseReturn:function(){this.el.un("mouseover",this.handleMouseReturn,this);
if(this.pressClass){this.el.addClass(this.pressClass);}this.click();},handleMouseUp:function(){clearTimeout(this.timer);
this.el.un("mouseover",this.handleMouseReturn,this);this.el.un("mouseout",this.handleMouseOut,this);
Ext.getDoc().un("mouseup",this.handleMouseUp,this);this.el.removeClass(this.pressClass);
this.fireEvent("mouseup",this);}});Ext.KeyNav=function(A,B){this.el=Ext.get(A);Ext.apply(this,B);
if(!this.disabled){this.disabled=true;this.enable();}};Ext.KeyNav.prototype={disabled:false,defaultEventAction:"stopEvent",forceKeyDown:false,relay:function(B){var C=B.getKey();
var A=this.keyToHandler[C];if(A&&this[A]){if(this.doRelay(B,this[A],A)!==true){B[this.defaultEventAction]();
}}},doRelay:function(B,A,C){return A.call(this.scope||this,B);},enter:false,left:false,right:false,up:false,down:false,tab:false,esc:false,pageUp:false,pageDown:false,del:false,home:false,end:false,keyToHandler:{37:"left",39:"right",38:"up",40:"down",33:"pageUp",34:"pageDown",46:"del",36:"home",35:"end",13:"enter",27:"esc",9:"tab"},stopKeyUp:function(A){var B=A.getKey();
if(B>=37&&B<=40){A.stopEvent();}},destroy:function(){this.disable();},enable:function(){if(this.disabled){if(Ext.isSafari2){this.el.on("keyup",this.stopKeyUp,this);
}this.el.on(this.isKeydown()?"keydown":"keypress",this.relay,this);this.disabled=false;
}},disable:function(){if(!this.disabled){if(Ext.isSafari2){this.el.un("keyup",this.stopKeyUp,this);
}this.el.un(this.isKeydown()?"keydown":"keypress",this.relay,this);this.disabled=true;
}},setDisabled:function(A){this[A?"disable":"enable"]();},isKeydown:function(){return this.forceKeyDown||Ext.EventManager.useKeydown;
}};Ext.KeyMap=function(B,A,C){this.el=Ext.get(B);this.eventName=C||"keydown";this.bindings=[];
if(A){this.addBinding(A);}this.enable();};Ext.KeyMap.prototype={stopEvent:false,addBinding:function(F){if(Ext.isArray(F)){Ext.each(F,function(K){this.addBinding(K);
},this);return ;}var B=F.key,I=F.fn||F.handler,E=F.scope;if(F.stopEvent){this.stopEvent=F.stopEvent;
}if(typeof B=="string"){var C=[];var A=B.toUpperCase();for(var G=0,J=A.length;G<J;
G++){C.push(A.charCodeAt(G));}B=C;}var H=Ext.isArray(B);var D=function(L){if(this.checkModifiers(F,L)){var M=L.getKey();
if(H){for(var K=0,N=B.length;K<N;K++){if(B[K]==M){if(this.stopEvent){L.stopEvent();
}I.call(E||window,M,L);return ;}}}else{if(M==B){if(this.stopEvent){L.stopEvent();
}I.call(E||window,M,L);}}}};this.bindings.push(D);},checkModifiers:function(E,A){var G,B,C=["shift","ctrl","alt"];
for(var F=0,D=C.length;F<D;++F){B=C[F];G=E[B];if(!(G===undefined||(G===A[B+"Key"]))){return false;
}}return true;},on:function(E,B,F){var A,G,C,D;if(typeof E=="object"&&!Ext.isArray(E)){A=E.key;
G=E.shift;C=E.ctrl;D=E.alt;}else{A=E;}this.addBinding({key:A,shift:G,ctrl:C,alt:D,fn:B,scope:F});
},handleKeyDown:function(A){if(this.enabled){var C=this.bindings;for(var B=0,D=C.length;
B<D;B++){C[B].call(this,A);}}},isEnabled:function(){return this.enabled;},enable:function(){if(!this.enabled){this.el.on(this.eventName,this.handleKeyDown,this);
this.enabled=true;}},disable:function(){if(this.enabled){this.el.removeListener(this.eventName,this.handleKeyDown,this);
this.enabled=false;}},setDisabled:function(A){this[A?"disable":"enable"]();}};Ext.util.TextMetrics=function(){var A;
return{measure:function(C,D,B){if(!A){A=Ext.util.TextMetrics.Instance(C,B);}A.bind(C);
A.setFixedWidth(B||"auto");return A.getSize(D);},createInstance:function(B,C){return Ext.util.TextMetrics.Instance(B,C);
}};}();Ext.util.TextMetrics.Instance=function(B,A){var C=new Ext.Element(document.createElement("div"));
document.body.appendChild(C.dom);C.position("absolute");C.setLeftTop(-1000,-1000);
C.hide();if(A){C.setWidth(A);}var D={getSize:function(E){C.update(E);var F=C.getSize();
C.update("");return F;},bind:function(E){C.setStyle(Ext.fly(E).getStyles("font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"));
},setFixedWidth:function(E){C.setWidth(E);},getWidth:function(E){C.dom.style.width="auto";
return this.getSize(E).width;},getHeight:function(E){return this.getSize(E).height;
}};D.bind(B);return D;};Ext.Element.addMethods({getTextWidth:function(B,A,C){return(Ext.util.TextMetrics.measure(this.dom,Ext.value(B,this.dom.innerHTML,true)).width).constrain(A||0,C||1000000);
}});Ext.util.Cookies={set:function(E,A){var F=arguments;var C=arguments.length;var D=(C>2)?F[2]:null;
var B=(C>3)?F[3]:"/";var H=(C>4)?F[4]:null;var G=(C>5)?F[5]:false;document.cookie=E+"="+escape(A)+((D===null)?"":("; expires="+D.toGMTString()))+((B===null)?"":("; path="+B))+((H===null)?"":("; domain="+H))+((G===true)?"; secure":"");
},get:function(B){var D=B+"=";var A=D.length;var F=document.cookie.length;var C=0;
var E=0;while(C<F){E=C+A;if(document.cookie.substring(C,E)==D){return Ext.util.Cookies.getCookieVal(E);
}C=document.cookie.indexOf(" ",C)+1;if(C===0){break;}}return null;},clear:function(A){if(Ext.util.Cookies.get(A)){document.cookie=A+"=; expires=Thu, 01-Jan-70 00:00:01 GMT";
}},getCookieVal:function(A){var B=document.cookie.indexOf(";",A);if(B==-1){B=document.cookie.length;
}return unescape(document.cookie.substring(A,B));}};Ext.handleError=function(A){throw A;
};Ext.Error=function(A){this.message=(this.lang[A])?this.lang[A]:A;};Ext.Error.prototype=new Error();
Ext.apply(Ext.Error.prototype,{lang:{},name:"Ext.Error",getName:function(){return this.name;
},getMessage:function(){return this.message;},toJson:function(){return Ext.encode(this);
}});Ext.ComponentMgr=function(){var B=new Ext.util.MixedCollection();var A={};var C={};
return{register:function(D){B.add(D);},unregister:function(D){B.remove(D);},get:function(D){return B.get(D);
},onAvailable:function(D,F,E){B.on("add",function(G,H){if(H.id==D){F.call(E||H,H);
B.un("add",F,E);}});},all:B,types:A,ptypes:C,isRegistered:function(D){return A[D]!==undefined;
},isPluginRegistered:function(D){return C[D]!==undefined;},registerType:function(E,D){A[E]=D;
D.xtype=E;},create:function(D,E){return D.render?D:new A[D.xtype||E](D);},registerPlugin:function(E,D){C[E]=D;
D.ptype=E;},createPlugin:function(F,D){var E=C[F.ptype||D];if(E.init){return E;}else{return new E(F);
}}};}();Ext.reg=Ext.ComponentMgr.registerType;Ext.preg=Ext.ComponentMgr.registerPlugin;
Ext.create=Ext.ComponentMgr.create;Ext.Component=function(A){A=A||{};if(A.initialConfig){if(A.isAction){this.baseAction=A;
}A=A.initialConfig;}else{if(A.tagName||A.dom||Ext.isString(A)){A={applyTo:A,id:A.id||A};
}}this.initialConfig=A;Ext.apply(this,A);this.addEvents("added","disable","enable","beforeshow","show","beforehide","hide","removed","beforerender","render","afterrender","beforedestroy","destroy","beforestaterestore","staterestore","beforestatesave","statesave");
this.getId();Ext.ComponentMgr.register(this);Ext.Component.superclass.constructor.call(this);
if(this.baseAction){this.baseAction.addComponent(this);}this.initComponent();if(this.plugins){if(Ext.isArray(this.plugins)){for(var B=0,C=this.plugins.length;
B<C;B++){this.plugins[B]=this.initPlugin(this.plugins[B]);}}else{this.plugins=this.initPlugin(this.plugins);
}}if(this.stateful!==false){this.initState();}if(this.applyTo){this.applyToMarkup(this.applyTo);
delete this.applyTo;}else{if(this.renderTo){this.render(this.renderTo);delete this.renderTo;
}}};Ext.Component.AUTO_ID=1000;Ext.extend(Ext.Component,Ext.util.Observable,{disabled:false,hidden:false,autoEl:"div",disabledClass:"x-item-disabled",allowDomMove:true,autoShow:false,hideMode:"display",hideParent:false,rendered:false,tplWriteMode:"overwrite",bubbleEvents:[],ctype:"Ext.Component",actionMode:"el",getActionEl:function(){return this[this.actionMode];
},initPlugin:function(A){if(A.ptype&&!Ext.isFunction(A.init)){A=Ext.ComponentMgr.createPlugin(A);
}else{if(Ext.isString(A)){A=Ext.ComponentMgr.createPlugin({ptype:A});}}A.init(this);
return A;},initComponent:function(){if(this.listeners){this.on(this.listeners);delete this.listeners;
}this.enableBubble(this.bubbleEvents);},render:function(B,D){if(!this.rendered&&this.fireEvent("beforerender",this)!==false){if(!B&&this.el){this.el=Ext.get(this.el);
B=this.el.dom.parentNode;this.allowDomMove=false;}this.container=Ext.get(B);if(this.ctCls){this.container.addClass(this.ctCls);
}this.rendered=true;if(D!==undefined){if(Ext.isNumber(D)){D=this.container.dom.childNodes[D];
}else{D=Ext.getDom(D);}}this.onRender(this.container,D||null);if(this.autoShow){this.el.removeClass(["x-hidden","x-hide-"+this.hideMode]);
}if(this.cls){this.el.addClass(this.cls);delete this.cls;}if(this.style){this.el.applyStyles(this.style);
delete this.style;}if(this.overCls){this.el.addClassOnOver(this.overCls);}this.fireEvent("render",this);
var C=this.getContentTarget();if(this.html){C.update(Ext.DomHelper.markup(this.html));
delete this.html;}if(this.contentEl){var A=Ext.getDom(this.contentEl);Ext.fly(A).removeClass(["x-hidden","x-hide-display"]);
C.appendChild(A);}if(this.tpl){if(!this.tpl.compile){this.tpl=new Ext.XTemplate(this.tpl);
}if(this.data){this.tpl[this.tplWriteMode](C,this.data);delete this.data;}}this.afterRender(this.container);
if(this.hidden){this.doHide();}if(this.disabled){this.disable(true);}if(this.stateful!==false){this.initStateEvents();
}this.fireEvent("afterrender",this);}return this;},update:function(C,A,E){var D=this.getContentTarget();
if(this.tpl&&typeof C!=="string"){this.tpl[this.tplWriteMode](D,C||{});}else{var B=Ext.isObject(C)?Ext.DomHelper.markup(C):C;
D.update(B,A,E);}},onAdded:function(B,A){this.ownerCt=B;this.initRef();this.fireEvent("added",this,B,A);
},onRemoved:function(){this.removeRef();this.fireEvent("removed",this,this.ownerCt);
delete this.ownerCt;},initRef:function(){if(this.ref&&!this.refOwner){var A=this.ref.split("/"),C=A.length,B=0,D=this;
while(D&&B<C){D=D.ownerCt;++B;}if(D){D[this.refName=A[--B]]=this;this.refOwner=D;
}}},removeRef:function(){if(this.refOwner&&this.refName){delete this.refOwner[this.refName];
delete this.refOwner;}},initState:function(){if(Ext.state.Manager){var A=this.getStateId();
if(A){var B=Ext.state.Manager.get(A);if(B){if(this.fireEvent("beforestaterestore",this,B)!==false){this.applyState(Ext.apply({},B));
this.fireEvent("staterestore",this,B);}}}}},getStateId:function(){return this.stateId||((/^(ext-comp-|ext-gen)/).test(String(this.id))?null:this.id);
},initStateEvents:function(){if(this.stateEvents){for(var B=0,A;A=this.stateEvents[B];
B++){this.on(A,this.saveState,this,{delay:100});}}},applyState:function(A){if(A){Ext.apply(this,A);
}},getState:function(){return null;},saveState:function(){if(Ext.state.Manager&&this.stateful!==false){var A=this.getStateId();
if(A){var B=this.getState();if(this.fireEvent("beforestatesave",this,B)!==false){Ext.state.Manager.set(A,B);
this.fireEvent("statesave",this,B);}}}},applyToMarkup:function(A){this.allowDomMove=false;
this.el=Ext.get(A);this.render(this.el.dom.parentNode);},addClass:function(A){if(this.el){this.el.addClass(A);
}else{this.cls=this.cls?this.cls+" "+A:A;}return this;},removeClass:function(A){if(this.el){this.el.removeClass(A);
}else{if(this.cls){this.cls=this.cls.split(" ").remove(A).join(" ");}}return this;
},onRender:function(A,C){if(!this.el&&this.autoEl){if(Ext.isString(this.autoEl)){this.el=document.createElement(this.autoEl);
}else{var B=document.createElement("div");Ext.DomHelper.overwrite(B,this.autoEl);
this.el=B.firstChild;}if(!this.el.id){this.el.id=this.getId();}}if(this.el){this.el=Ext.get(this.el);
if(this.allowDomMove!==false){A.dom.insertBefore(this.el.dom,C);if(B){Ext.removeNode(B);
B=null;}}}},getAutoCreate:function(){var A=Ext.isObject(this.autoCreate)?this.autoCreate:Ext.apply({},this.defaultAutoCreate);
if(this.id&&!A.id){A.id=this.id;}return A;},afterRender:Ext.emptyFn,destroy:function(){if(!this.isDestroyed){if(this.fireEvent("beforedestroy",this)!==false){this.destroying=true;
this.beforeDestroy();if(this.ownerCt&&this.ownerCt.remove){this.ownerCt.remove(this,false);
}if(this.rendered){this.el.remove();if(this.actionMode=="container"||this.removeMode=="container"){this.container.remove();
}}if(this.focusTask&&this.focusTask.cancel){this.focusTask.cancel();}this.onDestroy();
Ext.ComponentMgr.unregister(this);this.fireEvent("destroy",this);this.purgeListeners();
this.destroying=false;this.isDestroyed=true;}}},deleteMembers:function(){var A=arguments;
for(var B=0,C=A.length;B<C;++B){delete this[A[B]];}},beforeDestroy:Ext.emptyFn,onDestroy:Ext.emptyFn,getEl:function(){return this.el;
},getContentTarget:function(){return this.el;},getId:function(){return this.id||(this.id="ext-comp-"+(++Ext.Component.AUTO_ID));
},getItemId:function(){return this.itemId||this.getId();},focus:function(A,B){if(B){this.focusTask=new Ext.util.DelayedTask(this.focus,this,[A,false]);
this.focusTask.delay(Ext.isNumber(B)?B:10);return ;}if(this.rendered&&!this.isDestroyed){this.el.focus();
if(A===true){this.el.dom.select();}}return this;},blur:function(){if(this.rendered){this.el.blur();
}return this;},disable:function(A){if(this.rendered){this.onDisable();}this.disabled=true;
if(A!==true){this.fireEvent("disable",this);}return this;},onDisable:function(){this.getActionEl().addClass(this.disabledClass);
this.el.dom.disabled=true;},enable:function(){if(this.rendered){this.onEnable();}this.disabled=false;
this.fireEvent("enable",this);return this;},onEnable:function(){this.getActionEl().removeClass(this.disabledClass);
this.el.dom.disabled=false;},setDisabled:function(A){return this[A?"disable":"enable"]();
},show:function(){if(this.fireEvent("beforeshow",this)!==false){this.hidden=false;
if(this.autoRender){this.render(Ext.isBoolean(this.autoRender)?Ext.getBody():this.autoRender);
}if(this.rendered){this.onShow();}this.fireEvent("show",this);}return this;},onShow:function(){this.getVisibilityEl().removeClass("x-hide-"+this.hideMode);
},hide:function(){if(this.fireEvent("beforehide",this)!==false){this.doHide();this.fireEvent("hide",this);
}return this;},doHide:function(){this.hidden=true;if(this.rendered){this.onHide();
}},onHide:function(){this.getVisibilityEl().addClass("x-hide-"+this.hideMode);},getVisibilityEl:function(){return this.hideParent?this.container:this.getActionEl();
},setVisible:function(A){return this[A?"show":"hide"]();},isVisible:function(){return this.rendered&&this.getVisibilityEl().isVisible();
},cloneConfig:function(A){A=A||{};var B=A.id||Ext.id();var C=Ext.applyIf(A,this.initialConfig);
C.id=B;return new this.constructor(C);},getXType:function(){return this.constructor.xtype;
},isXType:function(A,B){if(Ext.isFunction(A)){A=A.xtype;}else{if(Ext.isObject(A)){A=A.constructor.xtype;
}}return !B?("/"+this.getXTypes()+"/").indexOf("/"+A+"/")!=-1:this.constructor.xtype==A;
},getXTypes:function(){var C=this.constructor;if(!C.xtypes){var A=[],B=this;while(B&&B.constructor.xtype){A.unshift(B.constructor.xtype);
B=B.constructor.superclass;}C.xtypeChain=A;C.xtypes=A.join("/");}return C.xtypes;
},findParentBy:function(B){for(var A=this.ownerCt;(A!=null)&&!B(A,this);A=A.ownerCt){}return A||null;
},findParentByType:function(A){return Ext.isFunction(A)?this.findParentBy(function(B){return B.constructor===A;
}):this.findParentBy(function(B){return B.constructor.xtype===A;});},getPositionEl:function(){return this.positionEl||this.el;
},purgeListeners:function(){Ext.Component.superclass.purgeListeners.call(this);if(this.mons){this.on("beforedestroy",this.clearMons,this,{single:true});
}},clearMons:function(){Ext.each(this.mons,function(A){A.item.un(A.ename,A.fn,A.scope);
},this);this.mons=[];},createMons:function(){if(!this.mons){this.mons=[];this.on("beforedestroy",this.clearMons,this,{single:true});
}},mon:function(G,D,H,E,F){this.createMons();if(Ext.isObject(D)){var A=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/;
var C=D;for(var B in C){if(A.test(B)){continue;}if(Ext.isFunction(C[B])){this.mons.push({item:G,ename:B,fn:C[B],scope:C.scope});
G.on(B,C[B],C.scope,C);}else{this.mons.push({item:G,ename:B,fn:C[B],scope:C.scope});
G.on(B,C[B]);}}return ;}this.mons.push({item:G,ename:D,fn:H,scope:E});G.on(D,H,E,F);
},mun:function(C,E,G,A){var B,H;this.createMons();for(var D=0,F=this.mons.length;
D<F;++D){H=this.mons[D];if(C===H.item&&E==H.ename&&G===H.fn&&A===H.scope){this.mons.splice(D,1);
C.un(E,G,A);B=true;break;}}return B;},nextSibling:function(){if(this.ownerCt){var A=this.ownerCt.items.indexOf(this);
if(A!=-1&&A+1<this.ownerCt.items.getCount()){return this.ownerCt.items.itemAt(A+1);
}}return null;},previousSibling:function(){if(this.ownerCt){var A=this.ownerCt.items.indexOf(this);
if(A>0){return this.ownerCt.items.itemAt(A-1);}}return null;},getBubbleTarget:function(){return this.ownerCt;
}});Ext.reg("component",Ext.Component);Ext.Action=Ext.extend(Object,{constructor:function(A){this.initialConfig=A;
this.itemId=A.itemId=(A.itemId||A.id||Ext.id());this.items=[];},isAction:true,setText:function(A){this.initialConfig.text=A;
this.callEach("setText",[A]);},getText:function(){return this.initialConfig.text;
},setIconClass:function(A){this.initialConfig.iconCls=A;this.callEach("setIconClass",[A]);
},getIconClass:function(){return this.initialConfig.iconCls;},setDisabled:function(A){this.initialConfig.disabled=A;
this.callEach("setDisabled",[A]);},enable:function(){this.setDisabled(false);},disable:function(){this.setDisabled(true);
},isDisabled:function(){return this.initialConfig.disabled;},setHidden:function(A){this.initialConfig.hidden=A;
this.callEach("setVisible",[!A]);},show:function(){this.setHidden(false);},hide:function(){this.setHidden(true);
},isHidden:function(){return this.initialConfig.hidden;},setHandler:function(A,B){this.initialConfig.handler=A;
this.initialConfig.scope=B;this.callEach("setHandler",[A,B]);},each:function(A,B){Ext.each(this.items,A,B);
},callEach:function(B,C){var A=this.items;for(var D=0,E=A.length;D<E;D++){A[D][B].apply(A[D],C);
}},addComponent:function(A){this.items.push(A);A.on("destroy",this.removeComponent,this);
},removeComponent:function(A){this.items.remove(A);},execute:function(){this.initialConfig.handler.apply(this.initialConfig.scope||window,arguments);
}});(function(){Ext.Layer=function(D,H){D=D||{};var E=Ext.DomHelper;var C=D.parentEl,G=C?Ext.getDom(C):document.body;
if(H){this.dom=Ext.getDom(H);}if(!this.dom){var F=D.dh||{tag:"div",cls:"x-layer"};
this.dom=E.append(G,F);}if(D.cls){this.addClass(D.cls);}this.constrain=D.constrain!==false;
this.setVisibilityMode(Ext.Element.VISIBILITY);if(D.id){this.id=this.dom.id=D.id;
}else{this.id=Ext.id(this.dom);}this.zindex=D.zindex||this.getZIndex();this.position("absolute",this.zindex);
if(D.shadow){this.shadowOffset=D.shadowOffset||4;this.shadow=new Ext.Shadow({offset:this.shadowOffset,mode:D.shadow});
}else{this.shadowOffset=0;}this.useShim=D.shim!==false&&Ext.useShims;this.useDisplay=D.useDisplay;
this.hide();};var B=Ext.Element.prototype;var A=[];Ext.extend(Ext.Layer,Ext.Element,{getZIndex:function(){return this.zindex||parseInt((this.getShim()||this).getStyle("z-index"),10)||11000;
},getShim:function(){if(!this.useShim){return null;}if(this.shim){return this.shim;
}var C=A.shift();if(!C){C=this.createShim();C.enableDisplayMode("block");C.dom.style.display="none";
C.dom.style.visibility="visible";}var D=this.dom.parentNode;if(C.dom.parentNode!=D){D.insertBefore(C.dom,this.dom);
}C.setStyle("z-index",this.getZIndex()-2);this.shim=C;return C;},hideShim:function(){if(this.shim){this.shim.setDisplayed(false);
A.push(this.shim);delete this.shim;}},disableShadow:function(){if(this.shadow){this.shadowDisabled=true;
this.shadow.hide();this.lastShadowOffset=this.shadowOffset;this.shadowOffset=0;}},enableShadow:function(C){if(this.shadow){this.shadowDisabled=false;
this.shadowOffset=this.lastShadowOffset;delete this.lastShadowOffset;if(C){this.sync(true);
}}},sync:function(L){var G=this.shadow;if(!this.updating&&this.isVisible()&&(G||this.useShim)){var F=this.getShim(),I=this.getWidth(),D=this.getHeight(),C=this.getLeft(true),H=this.getTop(true);
if(G&&!this.shadowDisabled){if(L&&!G.isVisible()){G.show(this);}else{G.realign(C,H,I,D);
}if(F){if(L){F.show();}var E=G.el.getXY(),K=F.dom.style,J=G.el.getSize();K.left=(E[0])+"px";
K.top=(E[1])+"px";K.width=(J.width)+"px";K.height=(J.height)+"px";}}else{if(F){if(L){F.show();
}F.setSize(I,D);F.setLeftTop(C,H);}}}},destroy:function(){this.hideShim();if(this.shadow){this.shadow.hide();
}this.removeAllListeners();Ext.removeNode(this.dom);delete this.dom;},remove:function(){this.destroy();
},beginUpdate:function(){this.updating=true;},endUpdate:function(){this.updating=false;
this.sync(true);},hideUnders:function(C){if(this.shadow){this.shadow.hide();}this.hideShim();
},constrainXY:function(){if(this.constrain){var D=Ext.lib.Dom.getViewWidth(),M=Ext.lib.Dom.getViewHeight();
var H=Ext.getDoc().getScroll();var G=this.getXY();var E=G[0],F=G[1];var K=this.shadowOffset;
var I=this.dom.offsetWidth+K,C=this.dom.offsetHeight+K;var L=false;if((E+I)>D+H.left){E=D-I-K;
L=true;}if((F+C)>M+H.top){F=M-C-K;L=true;}if(E<H.left){E=H.left;L=true;}if(F<H.top){F=H.top;
L=true;}if(L){if(this.avoidY){var J=this.avoidY;if(F<=J&&(F+C)>=J){F=J-C-5;}}G=[E,F];
this.storeXY(G);B.setXY.call(this,G);this.sync();}}return this;},isVisible:function(){return this.visible;
},showAction:function(){this.visible=true;if(this.useDisplay===true){this.setDisplayed("");
}else{if(this.lastXY){B.setXY.call(this,this.lastXY);}else{if(this.lastLT){B.setLeftTop.call(this,this.lastLT[0],this.lastLT[1]);
}}}},hideAction:function(){this.visible=false;if(this.useDisplay===true){this.setDisplayed(false);
}else{this.setLeftTop(-10000,-10000);}},setVisible:function(D,C,H,F,G){if(D){this.showAction();
}if(C&&D){var E=function(){this.sync(true);if(F){F();}}.createDelegate(this);B.setVisible.call(this,true,true,H,E,G);
}else{if(!D){this.hideUnders(true);}var E=F;if(C){E=function(){this.hideAction();
if(F){F();}}.createDelegate(this);}B.setVisible.call(this,D,C,H,E,G);if(D){this.sync(true);
}else{if(!C){this.hideAction();}}}return this;},storeXY:function(C){delete this.lastLT;
this.lastXY=C;},storeLeftTop:function(C,D){delete this.lastXY;this.lastLT=[C,D];},beforeFx:function(){this.beforeAction();
return Ext.Layer.superclass.beforeFx.apply(this,arguments);},afterFx:function(){Ext.Layer.superclass.afterFx.apply(this,arguments);
this.sync(this.isVisible());},beforeAction:function(){if(!this.updating&&this.shadow){this.shadow.hide();
}},setLeft:function(C){this.storeLeftTop(C,this.getTop(true));B.setLeft.apply(this,arguments);
this.sync();return this;},setTop:function(C){this.storeLeftTop(this.getLeft(true),C);
B.setTop.apply(this,arguments);this.sync();return this;},setLeftTop:function(C,D){this.storeLeftTop(C,D);
B.setLeftTop.apply(this,arguments);this.sync();return this;},setXY:function(G,C,H,F,D){this.fixDisplay();
this.beforeAction();this.storeXY(G);var E=this.createCB(F);B.setXY.call(this,G,C,H,E,D);
if(!C){E();}return this;},createCB:function(D){var C=this;return function(){C.constrainXY();
C.sync(true);if(D){D();}};},setX:function(C,D,F,G,E){this.setXY([C,this.getY()],D,F,G,E);
return this;},setY:function(G,C,D,F,E){this.setXY([this.getX(),G],C,D,F,E);return this;
},setSize:function(H,I,D,G,E,F){this.beforeAction();var C=this.createCB(E);B.setSize.call(this,H,I,D,G,C,F);
if(!D){C();}return this;},setWidth:function(D,C,H,F,G){this.beforeAction();var E=this.createCB(F);
B.setWidth.call(this,D,C,H,E,G);if(!C){E();}return this;},setHeight:function(G,D,E,F,H){this.beforeAction();
var C=this.createCB(F);B.setHeight.call(this,G,D,E,C,H);if(!D){C();}return this;},setBounds:function(H,J,C,F,G,E,I,D){this.beforeAction();
var K=this.createCB(I);if(!G){this.storeXY([H,J]);B.setXY.call(this,[H,J]);B.setSize.call(this,C,F,G,E,K,D);
K();}else{B.setBounds.call(this,H,J,C,F,G,E,K,D);}return this;},setZIndex:function(C){this.zindex=C;
this.setStyle("z-index",C+2);if(this.shadow){this.shadow.setZIndex(C+1);}if(this.shim){this.shim.setStyle("z-index",C);
}return this;}});})();Ext.Shadow=function(A){Ext.apply(this,A);if(typeof this.mode!="string"){this.mode=this.defaultMode;
}var B=this.offset,D={h:0};var C=Math.floor(this.offset/2);switch(this.mode.toLowerCase()){case"drop":D.w=0;
D.l=D.t=B;D.t-=1;if(Ext.isIE){D.l-=this.offset+C;D.t-=this.offset+C;D.w-=C;D.h-=C;
D.t+=1;}break;case"sides":D.w=(B*2);D.l=-B;D.t=B-1;if(Ext.isIE){D.l-=(this.offset-C);
D.t-=this.offset+C;D.l+=1;D.w-=(this.offset-C)*2;D.w-=C+1;D.h-=1;}break;case"frame":D.w=D.h=(B*2);
D.l=D.t=-B;D.t+=1;D.h-=2;if(Ext.isIE){D.l-=(this.offset-C);D.t-=(this.offset-C);D.l+=1;
D.w-=(this.offset+C+1);D.h-=(this.offset+C);D.h+=1;}break;}this.adjusts=D;};Ext.Shadow.prototype={offset:4,defaultMode:"drop",show:function(A){A=Ext.get(A);
if(!this.el){this.el=Ext.Shadow.Pool.pull();if(this.el.dom.nextSibling!=A.dom){this.el.insertBefore(A);
}}this.el.setStyle("z-index",this.zIndex||parseInt(A.getStyle("z-index"),10)-1);if(Ext.isIE){this.el.dom.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity=50) progid:DXImageTransform.Microsoft.Blur(pixelradius="+(this.offset)+")";
}this.realign(A.getLeft(true),A.getTop(true),A.getWidth(),A.getHeight());this.el.dom.style.display="block";
},isVisible:function(){return this.el?true:false;},realign:function(L,A,C,N){if(!this.el){return ;
}var I=this.adjusts,G=this.el.dom,E=G.style;var H=0;E.left=(L+I.l)+"px";E.top=(A+I.t)+"px";
var B=(C+I.w),D=(N+I.h),F=B+"px",J=D+"px";if(E.width!=F||E.height!=J){E.width=F;E.height=J;
if(!Ext.isIE){var K=G.childNodes;var M=Math.max(0,(B-12))+"px";K[0].childNodes[1].style.width=M;
K[1].childNodes[1].style.width=M;K[2].childNodes[1].style.width=M;K[1].style.height=Math.max(0,(D-12))+"px";
}}},hide:function(){if(this.el){this.el.dom.style.display="none";Ext.Shadow.Pool.push(this.el);
delete this.el;}},setZIndex:function(A){this.zIndex=A;if(this.el){this.el.setStyle("z-index",A);
}}};Ext.Shadow.Pool=function(){var A=[];var B=Ext.isIE?'<div class="x-ie-shadow"></div>':'<div class="x-shadow"><div class="xst"><div class="xstl"></div><div class="xstc"></div><div class="xstr"></div></div><div class="xsc"><div class="xsml"></div><div class="xsmc"></div><div class="xsmr"></div></div><div class="xsb"><div class="xsbl"></div><div class="xsbc"></div><div class="xsbr"></div></div></div>';
return{pull:function(){var C=A.shift();if(!C){C=Ext.get(Ext.DomHelper.insertHtml("beforeBegin",document.body.firstChild,B));
C.autoBoxAdjust=false;}return C;},push:function(C){A.push(C);}};}();Ext.BoxComponent=Ext.extend(Ext.Component,{initComponent:function(){Ext.BoxComponent.superclass.initComponent.call(this);
this.addEvents("resize","move");},boxReady:false,deferHeight:false,setSize:function(D,B){if(typeof D=="object"){B=D.height;
D=D.width;}if(Ext.isDefined(D)&&Ext.isDefined(this.boxMinWidth)&&(D<this.boxMinWidth)){D=this.boxMinWidth;
}if(Ext.isDefined(B)&&Ext.isDefined(this.boxMinHeight)&&(B<this.boxMinHeight)){B=this.boxMinHeight;
}if(Ext.isDefined(D)&&Ext.isDefined(this.boxMaxWidth)&&(D>this.boxMaxWidth)){D=this.boxMaxWidth;
}if(Ext.isDefined(B)&&Ext.isDefined(this.boxMaxHeight)&&(B>this.boxMaxHeight)){B=this.boxMaxHeight;
}if(!this.boxReady){this.width=D;this.height=B;return this;}if(this.cacheSizes!==false&&this.lastSize&&this.lastSize.width==D&&this.lastSize.height==B){return this;
}this.lastSize={width:D,height:B};var E=this.adjustSize(D,B),A=E.width,F=E.height,C;
if(A!==undefined||F!==undefined){C=this.getResizeEl();if(!this.deferHeight&&A!==undefined&&F!==undefined){C.setSize(A,F);
}else{if(!this.deferHeight&&F!==undefined){C.setHeight(F);}else{if(A!==undefined){C.setWidth(A);
}}}this.onResize(A,F,D,B);this.fireEvent("resize",this,A,F,D,B);}return this;},setWidth:function(A){return this.setSize(A);
},setHeight:function(A){return this.setSize(undefined,A);},getSize:function(){return this.getResizeEl().getSize();
},getWidth:function(){return this.getResizeEl().getWidth();},getHeight:function(){return this.getResizeEl().getHeight();
},getOuterSize:function(){var A=this.getResizeEl();return{width:A.getWidth()+A.getMargins("lr"),height:A.getHeight()+A.getMargins("tb")};
},getPosition:function(B){var A=this.getPositionEl();if(B===true){return[A.getLeft(true),A.getTop(true)];
}return this.xy||A.getXY();},getBox:function(C){var B=this.getPosition(C);var A=this.getSize();
A.x=B[0];A.y=B[1];return A;},updateBox:function(A){this.setSize(A.width,A.height);
this.setPagePosition(A.x,A.y);return this;},getResizeEl:function(){return this.resizeEl||this.el;
},setAutoScroll:function(A){if(this.rendered){this.getContentTarget().setOverflow(A?"auto":"");
}this.autoScroll=A;return this;},setPosition:function(F,A){if(F&&typeof F[1]=="number"){A=F[1];
F=F[0];}this.x=F;this.y=A;if(!this.boxReady){return this;}var D=this.adjustPosition(F,A);
var C=D.x,B=D.y;var E=this.getPositionEl();if(C!==undefined||B!==undefined){if(C!==undefined&&B!==undefined){E.setLeftTop(C,B);
}else{if(C!==undefined){E.setLeft(C);}else{if(B!==undefined){E.setTop(B);}}}this.onPosition(C,B);
this.fireEvent("move",this,C,B);}return this;},setPagePosition:function(C,B){if(C&&typeof C[1]=="number"){B=C[1];
C=C[0];}this.pageX=C;this.pageY=B;if(!this.boxReady){return ;}if(C===undefined||B===undefined){return ;
}var A=this.getPositionEl().translatePoints(C,B);this.setPosition(A.left,A.top);return this;
},afterRender:function(){Ext.BoxComponent.superclass.afterRender.call(this);if(this.resizeEl){this.resizeEl=Ext.get(this.resizeEl);
}if(this.positionEl){this.positionEl=Ext.get(this.positionEl);}this.boxReady=true;
Ext.isDefined(this.autoScroll)&&this.setAutoScroll(this.autoScroll);this.setSize(this.width,this.height);
if(this.x||this.y){this.setPosition(this.x,this.y);}else{if(this.pageX||this.pageY){this.setPagePosition(this.pageX,this.pageY);
}}},syncSize:function(){delete this.lastSize;this.setSize(this.autoWidth?undefined:this.getResizeEl().getWidth(),this.autoHeight?undefined:this.getResizeEl().getHeight());
return this;},onResize:function(A,B,D,C){},onPosition:function(B,A){},adjustSize:function(B,A){if(this.autoWidth){B="auto";
}if(this.autoHeight){A="auto";}return{width:B,height:A};},adjustPosition:function(B,A){return{x:B,y:A};
}});Ext.reg("box",Ext.BoxComponent);Ext.Spacer=Ext.extend(Ext.BoxComponent,{autoEl:"div"});
Ext.reg("spacer",Ext.Spacer);Ext.SplitBar=function(D,B,C,A,E){this.el=Ext.get(D,true);
this.el.dom.unselectable="on";this.resizingEl=Ext.get(B,true);this.orientation=C||Ext.SplitBar.HORIZONTAL;
this.minSize=0;this.maxSize=2000;this.animate=false;this.useShim=false;this.shim=null;
if(!E){this.proxy=Ext.SplitBar.createProxy(this.orientation);}else{this.proxy=Ext.get(E).dom;
}this.dd=new Ext.dd.DDProxy(this.el.dom.id,"XSplitBars",{dragElId:this.proxy.id});
this.dd.b4StartDrag=this.onStartProxyDrag.createDelegate(this);this.dd.endDrag=this.onEndProxyDrag.createDelegate(this);
this.dragSpecs={};this.adapter=new Ext.SplitBar.BasicLayoutAdapter();this.adapter.init(this);
if(this.orientation==Ext.SplitBar.HORIZONTAL){this.placement=A||(this.el.getX()>this.resizingEl.getX()?Ext.SplitBar.LEFT:Ext.SplitBar.RIGHT);
this.el.addClass("x-splitbar-h");}else{this.placement=A||(this.el.getY()>this.resizingEl.getY()?Ext.SplitBar.TOP:Ext.SplitBar.BOTTOM);
this.el.addClass("x-splitbar-v");}this.addEvents("resize","moved","beforeresize","beforeapply");
Ext.SplitBar.superclass.constructor.call(this);};Ext.extend(Ext.SplitBar,Ext.util.Observable,{onStartProxyDrag:function(E,B){this.fireEvent("beforeresize",this);
this.overlay=Ext.DomHelper.append(document.body,{cls:"x-drag-overlay",html:"&#160;"},true);
this.overlay.unselectable();this.overlay.setSize(Ext.lib.Dom.getViewWidth(true),Ext.lib.Dom.getViewHeight(true));
this.overlay.show();Ext.get(this.proxy).setDisplayed("block");var D=this.adapter.getElementSize(this);
this.activeMinSize=this.getMinimumSize();this.activeMaxSize=this.getMaximumSize();
var A=D-this.activeMinSize;var C=Math.max(this.activeMaxSize-D,0);if(this.orientation==Ext.SplitBar.HORIZONTAL){this.dd.resetConstraints();
this.dd.setXConstraint(this.placement==Ext.SplitBar.LEFT?A:C,this.placement==Ext.SplitBar.LEFT?C:A,this.tickSize);
this.dd.setYConstraint(0,0);}else{this.dd.resetConstraints();this.dd.setXConstraint(0,0);
this.dd.setYConstraint(this.placement==Ext.SplitBar.TOP?A:C,this.placement==Ext.SplitBar.TOP?C:A,this.tickSize);
}this.dragSpecs.startSize=D;this.dragSpecs.startPoint=[E,B];Ext.dd.DDProxy.prototype.b4StartDrag.call(this.dd,E,B);
},onEndProxyDrag:function(B){Ext.get(this.proxy).setDisplayed(false);var A=Ext.lib.Event.getXY(B);
if(this.overlay){Ext.destroy(this.overlay);delete this.overlay;}var C;if(this.orientation==Ext.SplitBar.HORIZONTAL){C=this.dragSpecs.startSize+(this.placement==Ext.SplitBar.LEFT?A[0]-this.dragSpecs.startPoint[0]:this.dragSpecs.startPoint[0]-A[0]);
}else{C=this.dragSpecs.startSize+(this.placement==Ext.SplitBar.TOP?A[1]-this.dragSpecs.startPoint[1]:this.dragSpecs.startPoint[1]-A[1]);
}C=Math.min(Math.max(C,this.activeMinSize),this.activeMaxSize);if(C!=this.dragSpecs.startSize){if(this.fireEvent("beforeapply",this,C)!==false){this.adapter.setElementSize(this,C);
this.fireEvent("moved",this,C);this.fireEvent("resize",this,C);}}},getAdapter:function(){return this.adapter;
},setAdapter:function(A){this.adapter=A;this.adapter.init(this);},getMinimumSize:function(){return this.minSize;
},setMinimumSize:function(A){this.minSize=A;},getMaximumSize:function(){return this.maxSize;
},setMaximumSize:function(A){this.maxSize=A;},setCurrentSize:function(A){var B=this.animate;
this.animate=false;this.adapter.setElementSize(this,A);this.animate=B;},destroy:function(A){Ext.destroy(this.shim,Ext.get(this.proxy));
this.dd.unreg();if(A){this.el.remove();}this.purgeListeners();}});Ext.SplitBar.createProxy=function(A){var B=new Ext.Element(document.createElement("div"));
document.body.appendChild(B.dom);B.unselectable();var C="x-splitbar-proxy";B.addClass(C+" "+(A==Ext.SplitBar.HORIZONTAL?C+"-h":C+"-v"));
return B.dom;};Ext.SplitBar.BasicLayoutAdapter=function(){};Ext.SplitBar.BasicLayoutAdapter.prototype={init:function(A){},getElementSize:function(A){if(A.orientation==Ext.SplitBar.HORIZONTAL){return A.resizingEl.getWidth();
}else{return A.resizingEl.getHeight();}},setElementSize:function(A,C,B){if(A.orientation==Ext.SplitBar.HORIZONTAL){if(!A.animate){A.resizingEl.setWidth(C);
if(B){B(A,C);}}else{A.resizingEl.setWidth(C,true,0.1,B,"easeOut");}}else{if(!A.animate){A.resizingEl.setHeight(C);
if(B){B(A,C);}}else{A.resizingEl.setHeight(C,true,0.1,B,"easeOut");}}}};Ext.SplitBar.AbsoluteLayoutAdapter=function(A){this.basic=new Ext.SplitBar.BasicLayoutAdapter();
this.container=Ext.get(A);};Ext.SplitBar.AbsoluteLayoutAdapter.prototype={init:function(A){this.basic.init(A);
},getElementSize:function(A){return this.basic.getElementSize(A);},setElementSize:function(A,C,B){this.basic.setElementSize(A,C,this.moveSplitter.createDelegate(this,[A]));
},moveSplitter:function(B){var A=Ext.SplitBar;switch(B.placement){case A.LEFT:B.el.setX(B.resizingEl.getRight());
break;case A.RIGHT:B.el.setStyle("right",(this.container.getWidth()-B.resizingEl.getLeft())+"px");
break;case A.TOP:B.el.setY(B.resizingEl.getBottom());break;case A.BOTTOM:B.el.setY(B.resizingEl.getTop()-B.el.getHeight());
break;}}};Ext.SplitBar.VERTICAL=1;Ext.SplitBar.HORIZONTAL=2;Ext.SplitBar.LEFT=1;Ext.SplitBar.RIGHT=2;
Ext.SplitBar.TOP=3;Ext.SplitBar.BOTTOM=4;Ext.Container=Ext.extend(Ext.BoxComponent,{bufferResize:50,autoDestroy:true,forceLayout:false,defaultType:"panel",resizeEvent:"resize",bubbleEvents:["add","remove"],initComponent:function(){Ext.Container.superclass.initComponent.call(this);
this.addEvents("afterlayout","beforeadd","beforeremove","add","remove");var A=this.items;
if(A){delete this.items;this.add(A);}},initItems:function(){if(!this.items){this.items=new Ext.util.MixedCollection(false,this.getComponentId);
this.getLayout();}},setLayout:function(A){if(this.layout&&this.layout!=A){this.layout.setContainer(null);
}this.initItems();this.layout=A;A.setContainer(this);},afterRender:function(){Ext.Container.superclass.afterRender.call(this);
if(!this.layout){this.layout="auto";}if(Ext.isObject(this.layout)&&!this.layout.layout){this.layoutConfig=this.layout;
this.layout=this.layoutConfig.type;}if(Ext.isString(this.layout)){this.layout=new Ext.Container.LAYOUTS[this.layout.toLowerCase()](this.layoutConfig);
}this.setLayout(this.layout);if(this.activeItem!==undefined){var A=this.activeItem;
delete this.activeItem;this.layout.setActiveItem(A);}if(!this.ownerCt){this.doLayout(false,true);
}if(this.monitorResize===true){Ext.EventManager.onWindowResize(this.doLayout,this,[false]);
}},getLayoutTarget:function(){return this.el;},getComponentId:function(A){return A.getItemId();
},add:function(D){this.initItems();var C=arguments.length>1;if(C||Ext.isArray(D)){var E=[];
Ext.each(C?arguments:D,function(F){E.push(this.add(F));},this);return E;}var A=this.lookupComponent(this.applyDefaults(D));
var B=this.items.length;if(this.fireEvent("beforeadd",this,A,B)!==false&&this.onBeforeAdd(A)!==false){this.items.add(A);
A.onAdded(this,B);this.onAdd(A);this.fireEvent("add",this,A,B);}return A;},onAdd:function(A){},onAdded:function(B,A){this.ownerCt=B;
this.initRef();this.cascade(function(C){C.initRef();});this.fireEvent("added",this,B,A);
},insert:function(A,C){this.initItems();var D=arguments,B=D.length;if(B>2){var E=[];
for(var F=B-1;F>=1;--F){E.push(this.insert(A,D[F]));}return E;}var G=this.lookupComponent(this.applyDefaults(C));
A=Math.min(A,this.items.length);if(this.fireEvent("beforeadd",this,G,A)!==false&&this.onBeforeAdd(G)!==false){if(G.ownerCt==this){this.items.remove(G);
}this.items.insert(A,G);G.onAdded(this,A);this.onAdd(G);this.fireEvent("add",this,G,A);
}return G;},applyDefaults:function(A){var B=this.defaults;if(B){if(Ext.isFunction(B)){B=B.call(this,A);
}if(Ext.isString(A)){A=Ext.ComponentMgr.get(A);Ext.apply(A,B);}else{if(!A.events){Ext.applyIf(A,B);
}else{Ext.apply(A,B);}}}return A;},onBeforeAdd:function(A){if(A.ownerCt){A.ownerCt.remove(A,false);
}if(this.hideBorders===true){A.border=(A.border===true);}},remove:function(C,B){this.initItems();
var A=this.getComponent(C);if(A&&this.fireEvent("beforeremove",this,A)!==false){this.doRemove(A,B);
this.fireEvent("remove",this,A);}return A;},onRemove:function(A){},doRemove:function(B,A){var C=this.layout,D=C&&this.rendered;
if(D){C.onRemove(B);}this.items.remove(B);B.onRemoved();this.onRemove(B);if(A===true||(A!==false&&this.autoDestroy)){B.destroy();
}if(D){C.afterRemove(B);}},removeAll:function(E){this.initItems();var C,A=[],D=[];
this.items.each(function(G){A.push(G);});for(var B=0,F=A.length;B<F;++B){C=A[B];this.remove(C,E);
if(C.ownerCt!==this){D.push(C);}}return D;},getComponent:function(A){if(Ext.isObject(A)){A=A.getItemId();
}return this.items.get(A);},lookupComponent:function(A){if(Ext.isString(A)){return Ext.ComponentMgr.get(A);
}else{if(!A.events){return this.createComponent(A);}}return A;},createComponent:function(C,A){if(C.render){return C;
}var B=Ext.create(Ext.apply({ownerCt:this},C),A||this.defaultType);delete B.initialConfig.ownerCt;
delete B.ownerCt;return B;},canLayout:function(){var A=this.getVisibilityEl();return A&&A.dom&&!A.isStyle("display","none");
},doLayout:function(G,A){var C=this.rendered,B=A||this.forceLayout;if(this.collapsed||!this.canLayout()){this.deferLayout=this.deferLayout||!G;
if(!B){return ;}G=G&&!this.deferLayout;}else{delete this.deferLayout;}if(C&&this.layout){this.layout.layout();
}if(G!==true&&this.items){var H=this.items.items;for(var E=0,F=H.length;E<F;E++){var D=H[E];
if(D.doLayout){D.doLayout(false,B);}}}if(C){this.onLayout(G,B);}this.hasLayout=true;
delete this.forceLayout;},onLayout:Ext.emptyFn,shouldBufferLayout:function(){var A=this.hasLayout;
if(this.ownerCt){return A?!this.hasLayoutPending():false;}return A;},hasLayoutPending:function(){var A=false;
this.ownerCt.bubble(function(B){if(B.layoutPending){A=true;return false;}});return A;
},onShow:function(){Ext.Container.superclass.onShow.call(this);if(Ext.isDefined(this.deferLayout)){delete this.deferLayout;
this.doLayout(true);}},getLayout:function(){if(!this.layout){var A=new Ext.layout.AutoLayout(this.layoutConfig);
this.setLayout(A);}return this.layout;},beforeDestroy:function(){var A;if(this.items){while(A=this.items.first()){this.doRemove(A,true);
}}if(this.monitorResize){Ext.EventManager.removeResizeListener(this.doLayout,this);
}Ext.destroy(this.layout);Ext.Container.superclass.beforeDestroy.call(this);},bubble:function(C,B,D){var A=this;
while(A){if(C.apply(B||A,D||[A])===false){break;}A=A.ownerCt;}return this;},cascade:function(A,C,D){if(A.apply(C||this,D||[this])!==false){if(this.items){var B=this.items.items;
for(var E=0,F=B.length;E<F;E++){if(B[E].cascade){B[E].cascade(A,C,D);}else{A.apply(C||B[E],D||[B[E]]);
}}}}return this;},findById:function(B){var C,A=this;this.cascade(function(D){if(A!=D&&D.id===B){C=D;
return false;}});return C||null;},findByType:function(A,B){return this.findBy(function(C){return C.isXType(A,B);
});},find:function(A,B){return this.findBy(function(C){return C[A]===B;});},findBy:function(A,C){var D=[],B=this;
this.cascade(function(E){if(B!=E&&A.call(C||E,E,B)===true){D.push(E);}});return D;
},get:function(A){return this.items.get(A);}});Ext.Container.LAYOUTS={};Ext.reg("container",Ext.Container);
Ext.layout.ContainerLayout=Ext.extend(Object,{monitorResize:false,activeItem:null,constructor:function(A){this.id=Ext.id(null,"ext-layout-");
Ext.apply(this,A);},type:"container",IEMeasureHack:function(B,I){var H=B.dom.childNodes,G=H.length,D,F=[],E,C,A;
for(C=0;C<G;C++){D=H[C];E=Ext.get(D);if(E){F[C]=E.getStyle("display");E.setStyle({display:"none"});
}}A=B?B.getViewSize(I):{};for(C=0;C<G;C++){D=H[C];E=Ext.get(D);if(E){E.setStyle({display:F[C]});
}}return A;},getLayoutTargetSize:Ext.EmptyFn,layout:function(){var B=this.container,A=B.getLayoutTarget();
if(!(this.hasLayout||Ext.isEmpty(this.targetCls))){A.addClass(this.targetCls);}this.onLayout(B,A);
B.fireEvent("afterlayout",B,this);},onLayout:function(B,A){this.renderAll(B,A);},isValidParent:function(A,B){return B&&A.getPositionEl().dom.parentNode==(B.dom||B);
},renderAll:function(C,A){var E=C.items.items,B,D,F=E.length;for(B=0;B<F;B++){D=E[B];
if(D&&(!D.rendered||!this.isValidParent(D,A))){this.renderItem(D,B,A);}}},renderItem:function(A,C,B){if(A){if(!A.rendered){A.render(B,C);
this.configureItem(A,C);}else{if(!this.isValidParent(A,B)){if(Ext.isNumber(C)){C=B.dom.childNodes[C];
}B.dom.insertBefore(A.getPositionEl().dom,C||null);A.container=B;this.configureItem(A,C);
}}}},getRenderedItems:function(A){var C=A.getLayoutTarget(),B=A.items.items,F=B.length,D,G,E=[];
for(D=0;D<F;D++){if((G=B[D]).rendered&&this.isValidParent(G,C)){E.push(G);}}return E;
},configureItem:function(A,C){if(this.extraCls){var B=A.getPositionEl?A.getPositionEl():A;
B.addClass(this.extraCls);}if(A.doLayout&&this.forceLayout){A.doLayout();}if(this.renderHidden&&A!=this.activeItem){A.hide();
}},onRemove:function(A){if(this.activeItem==A){delete this.activeItem;}if(A.rendered&&this.extraCls){var B=A.getPositionEl?A.getPositionEl():A;
B.removeClass(this.extraCls);}},afterRemove:function(A){if(A.removeRestore){A.removeMode="container";
delete A.removeRestore;}},onResize:function(){var A=this.container,B;if(A.collapsed){return ;
}if(B=A.bufferResize&&A.shouldBufferLayout()){if(!this.resizeTask){this.resizeTask=new Ext.util.DelayedTask(this.runLayout,this);
this.resizeBuffer=Ext.isNumber(B)?B:50;}A.layoutPending=true;this.resizeTask.delay(this.resizeBuffer);
}else{this.runLayout();}},runLayout:function(){var A=this.container;this.layout();
A.onLayout();delete A.layoutPending;},setContainer:function(A){if(this.monitorResize&&A!=this.container){var B=this.container;
if(B){B.un(B.resizeEvent,this.onResize,this);}if(A){A.on(A.resizeEvent,this.onResize,this);
}}this.container=A;},parseMargins:function(A){if(Ext.isNumber(A)){A=A.toString();
}var B=A.split(" "),C=B.length;if(C==1){B[1]=B[2]=B[3]=B[0];}else{if(C==2){B[2]=B[0];
B[3]=B[1];}else{if(C==3){B[3]=B[1];}}}return{top:parseInt(B[0],10)||0,right:parseInt(B[1],10)||0,bottom:parseInt(B[2],10)||0,left:parseInt(B[3],10)||0};
},fieldTpl:(function(){var A=new Ext.Template('<div class="x-form-item {itemCls}" tabIndex="-1">','<label for="{id}" style="{labelStyle}" class="x-form-item-label">{label}{labelSeparator}</label>','<div class="x-form-element" id="x-form-el-{id}" style="{elementStyle}">','</div><div class="{clearCls}"></div>',"</div>");
A.disableFormats=true;return A.compile();})(),destroy:function(){if(this.resizeTask&&this.resizeTask.cancel){this.resizeTask.cancel();
}if(!Ext.isEmpty(this.targetCls)){var A=this.container.getLayoutTarget();if(A){A.removeClass(this.targetCls);
}}}});Ext.layout.AutoLayout=Ext.extend(Ext.layout.ContainerLayout,{type:"auto",monitorResize:true,onLayout:function(B,A){Ext.layout.AutoLayout.superclass.onLayout.call(this,B,A);
var C=this.getRenderedItems(B),F=C.length,E,D;for(E=0;E<F;E++){D=C[E];if(D.doLayout){D.doLayout(true);
}}}});Ext.Container.LAYOUTS.auto=Ext.layout.AutoLayout;Ext.layout.FitLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"fit",getLayoutTargetSize:function(){var A=this.container.getLayoutTarget();
if(!A){return{};}return A.getStyleSize();},onLayout:function(B,A){Ext.layout.FitLayout.superclass.onLayout.call(this,B,A);
if(!B.collapsed){this.setItemSize(this.activeItem||B.items.itemAt(0),this.getLayoutTargetSize());
}},setItemSize:function(A,B){if(A&&B.height>0){A.setSize(B);}}});Ext.Container.LAYOUTS.fit=Ext.layout.FitLayout;
Ext.layout.CardLayout=Ext.extend(Ext.layout.FitLayout,{deferredRender:false,layoutOnCardChange:false,renderHidden:true,type:"card",setActiveItem:function(A){var D=this.activeItem,B=this.container;
A=B.getComponent(A);if(A&&D!=A){if(D){D.hide();if(D.hidden!==true){return false;}D.fireEvent("deactivate",D);
}var C=A.doLayout&&(this.layoutOnCardChange||!A.rendered);this.activeItem=A;delete A.deferLayout;
A.show();this.layout();if(C){A.doLayout();}A.fireEvent("activate",A);}},renderAll:function(B,A){if(this.deferredRender){this.renderItem(this.activeItem,undefined,A);
}else{Ext.layout.CardLayout.superclass.renderAll.call(this,B,A);}}});Ext.Container.LAYOUTS.card=Ext.layout.CardLayout;
Ext.layout.AnchorLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"anchor",defaultAnchor:"100%",parseAnchorRE:/^(r|right|b|bottom)$/i,getLayoutTargetSize:function(){var A=this.container.getLayoutTarget();
if(!A){return{};}return A.getStyleSize();},onLayout:function(M,C){Ext.layout.AnchorLayout.superclass.onLayout.call(this,M,C);
var E=this.getLayoutTargetSize();var F=E.width,L=E.height;if(F<20&&L<20){return ;
}var P,A;if(M.anchorSize){if(typeof M.anchorSize=="number"){P=M.anchorSize;}else{P=M.anchorSize.width;
A=M.anchorSize.height;}}else{P=M.initialConfig.width;A=M.initialConfig.height;}var K=this.getRenderedItems(M),J=K.length,H,D,B,O,N,Q,G,I=[];
for(H=0;H<J;H++){D=K[H];Q=D.getPositionEl();if(!D.anchor&&D.items&&!Ext.isNumber(D.width)&&!(Ext.isIE6&&Ext.isStrict)){D.anchor=this.defaultAnchor;
}if(D.anchor){B=D.anchorSpec;if(!B){G=D.anchor.split(" ");D.anchorSpec=B={right:this.parseAnchor(G[0],D.initialConfig.width,P),bottom:this.parseAnchor(G[1],D.initialConfig.height,A)};
}O=B.right?this.adjustWidthAnchor(B.right(F)-Q.getMargins("lr"),D):undefined;N=B.bottom?this.adjustHeightAnchor(B.bottom(L)-Q.getMargins("tb"),D):undefined;
if(O||N){I.push({comp:D,width:O||undefined,height:N||undefined});}}}for(H=0,J=I.length;
H<J;H++){D=I[H];D.comp.setSize(D.width,D.height);}},parseAnchor:function(F,A,E){if(F&&F!="none"){var C;
if(this.parseAnchorRE.test(F)){var D=E-A;return function(G){if(G!==C){C=G;return G-D;
}};}else{if(F.indexOf("%")!=-1){var B=parseFloat(F.replace("%",""))*0.01;return function(G){if(G!==C){C=G;
return Math.floor(G*B);}};}else{F=parseInt(F,10);if(!isNaN(F)){return function(G){if(G!==C){C=G;
return G+F;}};}}}}return false;},adjustWidthAnchor:function(A,B){return A;},adjustHeightAnchor:function(A,B){return A;
}});Ext.Container.LAYOUTS.anchor=Ext.layout.AnchorLayout;Ext.layout.ColumnLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"column",extraCls:"x-column",scrollOffset:0,targetCls:"x-column-layout-ct",isValidParent:function(A,B){return this.innerCt&&A.getPositionEl().dom.parentNode==this.innerCt.dom;
},getLayoutTargetSize:function(){var A=this.container.getLayoutTarget(),B;if(A){B=A.getViewSize();
if(Ext.isIE&&Ext.isStrict&&B.width==0){B=A.getStyleSize();}B.width-=A.getPadding("lr");
B.height-=A.getPadding("tb");}return B;},renderAll:function(B,A){if(!this.innerCt){this.innerCt=A.createChild({cls:"x-column-inner"});
this.innerCt.createChild({cls:"x-clear"});}Ext.layout.ColumnLayout.superclass.renderAll.call(this,B,this.innerCt);
},onLayout:function(A,F){var L=A.items.items,E=L.length,G,J,K,H=[];this.renderAll(A,F);
var C=this.getLayoutTargetSize();if(C.width<1&&C.height<1){return ;}var B=C.width-this.scrollOffset,M=C.height,D=B;
this.innerCt.setWidth(B);for(J=0;J<E;J++){G=L[J];K=G.getPositionEl().getMargins("lr");
H[J]=K;if(!G.columnWidth){D-=(G.getWidth()+K);}}D=D<0?0:D;for(J=0;J<E;J++){G=L[J];
K=H[J];if(G.columnWidth){G.setSize(Math.floor(G.columnWidth*D)-K);}}if(Ext.isIE){if(J=F.getStyle("overflow")&&J!="hidden"&&!this.adjustmentPass){var I=this.getLayoutTargetSize();
if(I.width!=C.width){this.adjustmentPass=true;this.onLayout(A,F);}}}delete this.adjustmentPass;
}});Ext.Container.LAYOUTS.column=Ext.layout.ColumnLayout;Ext.layout.BorderLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,rendered:false,type:"border",targetCls:"x-border-layout-ct",getLayoutTargetSize:function(){var A=this.container.getLayoutTarget();
return A?A.getViewSize():{};},onLayout:function(U,X){var P,Y,c,R,n=U.items.items,Z=n.length;
if(!this.rendered){P=[];for(Y=0;Y<Z;Y++){c=n[Y];R=c.region;if(c.collapsed){P.push(c);
}c.collapsed=false;if(!c.rendered){c.render(X,Y);c.getPositionEl().addClass("x-border-panel");
}this[R]=R!="center"&&c.split?new Ext.layout.BorderLayout.SplitRegion(this,c.initialConfig,R):new Ext.layout.BorderLayout.Region(this,c.initialConfig,R);
this[R].render(X,c);}this.rendered=true;}var M=this.getLayoutTargetSize();if(M.width<20||M.height<20){if(P){this.restoreCollapsed=P;
}return ;}else{if(this.restoreCollapsed){P=this.restoreCollapsed;delete this.restoreCollapsed;
}}var N=M.width,h=M.height,J=N,b=h,K=0,L=0,s=this.north,O=this.south,S=this.west,i=this.east,c=this.center,W,m,V,e;
if(!c&&Ext.layout.BorderLayout.WARN!==false){throw"No center region defined in BorderLayout "+U.id;
}if(s&&s.isVisible()){W=s.getSize();m=s.getMargins();W.width=N-(m.left+m.right);W.x=m.left;
W.y=m.top;K=W.height+W.y+m.bottom;b-=K;s.applyLayout(W);}if(O&&O.isVisible()){W=O.getSize();
m=O.getMargins();W.width=N-(m.left+m.right);W.x=m.left;e=(W.height+m.top+m.bottom);
W.y=h-e+m.top;b-=e;O.applyLayout(W);}if(S&&S.isVisible()){W=S.getSize();m=S.getMargins();
W.height=b-(m.top+m.bottom);W.x=m.left;W.y=K+m.top;V=(W.width+m.left+m.right);L+=V;
J-=V;S.applyLayout(W);}if(i&&i.isVisible()){W=i.getSize();m=i.getMargins();W.height=b-(m.top+m.bottom);
V=(W.width+m.left+m.right);W.x=N-V+m.left;W.y=K+m.top;J-=V;i.applyLayout(W);}if(c){m=c.getMargins();
var Q={x:L+m.left,y:K+m.top,width:J-(m.left+m.right),height:b-(m.top+m.bottom)};c.applyLayout(Q);
}if(P){for(Y=0,Z=P.length;Y<Z;Y++){P[Y].collapse(false);}}if(Ext.isIE&&Ext.isStrict){X.repaint();
}if(Y=X.getStyle("overflow")&&Y!="hidden"&&!this.adjustmentPass){var T=this.getLayoutTargetSize();
if(T.width!=M.width||T.height!=M.height){this.adjustmentPass=true;this.onLayout(U,X);
}}delete this.adjustmentPass;},destroy:function(){var A=["north","south","east","west"],C,B;
for(C=0;C<A.length;C++){B=this[A[C]];if(B){if(B.destroy){B.destroy();}else{if(B.split){B.split.destroy(true);
}}}}Ext.layout.BorderLayout.superclass.destroy.call(this);}});Ext.layout.BorderLayout.Region=function(A,C,B){Ext.apply(this,C);
this.layout=A;this.position=B;this.state={};if(typeof this.margins=="string"){this.margins=this.layout.parseMargins(this.margins);
}this.margins=Ext.applyIf(this.margins||{},this.defaultMargins);if(this.collapsible){if(typeof this.cmargins=="string"){this.cmargins=this.layout.parseMargins(this.cmargins);
}if(this.collapseMode=="mini"&&!this.cmargins){this.cmargins={left:0,top:0,right:0,bottom:0};
}else{this.cmargins=Ext.applyIf(this.cmargins||{},B=="north"||B=="south"?this.defaultNSCMargins:this.defaultEWCMargins);
}}};Ext.layout.BorderLayout.Region.prototype={collapsible:false,split:false,floatable:true,minWidth:50,minHeight:50,defaultMargins:{left:0,top:0,right:0,bottom:0},defaultNSCMargins:{left:5,top:5,right:5,bottom:5},defaultEWCMargins:{left:5,top:0,right:5,bottom:0},floatingZIndex:100,isCollapsed:false,render:function(B,C){this.panel=C;
C.el.enableDisplayMode();this.targetEl=B;this.el=C.el;var D=C.getState,A=this.position;
C.getState=function(){return Ext.apply(D.call(C)||{},this.state);}.createDelegate(this);
if(A!="center"){C.allowQueuedExpand=false;C.on({beforecollapse:this.beforeCollapse,collapse:this.onCollapse,beforeexpand:this.beforeExpand,expand:this.onExpand,hide:this.onHide,show:this.onShow,scope:this});
if(this.collapsible||this.floatable){C.collapseEl="el";C.slideAnchor=this.getSlideAnchor();
}if(C.tools&&C.tools.toggle){C.tools.toggle.addClass("x-tool-collapse-"+A);C.tools.toggle.addClassOnOver("x-tool-collapse-"+A+"-over");
}}},getCollapsedEl:function(){if(!this.collapsedEl){if(!this.toolTemplate){var A=new Ext.Template('<div class="x-tool x-tool-{id}">&#160;</div>');
A.disableFormats=true;A.compile();Ext.layout.BorderLayout.Region.prototype.toolTemplate=A;
}this.collapsedEl=this.targetEl.createChild({cls:"x-layout-collapsed x-layout-collapsed-"+this.position,id:this.panel.id+"-xcollapsed"});
this.collapsedEl.enableDisplayMode("block");if(this.collapseMode=="mini"){this.collapsedEl.addClass("x-layout-cmini-"+this.position);
this.miniCollapsedEl=this.collapsedEl.createChild({cls:"x-layout-mini x-layout-mini-"+this.position,html:"&#160;"});
this.miniCollapsedEl.addClassOnOver("x-layout-mini-over");this.collapsedEl.addClassOnOver("x-layout-collapsed-over");
this.collapsedEl.on("click",this.onExpandClick,this,{stopEvent:true});}else{if(this.collapsible!==false&&!this.hideCollapseTool){var B=this.toolTemplate.append(this.collapsedEl.dom,{id:"expand-"+this.position},true);
B.addClassOnOver("x-tool-expand-"+this.position+"-over");B.on("click",this.onExpandClick,this,{stopEvent:true});
}if(this.floatable!==false||this.titleCollapse){this.collapsedEl.addClassOnOver("x-layout-collapsed-over");
this.collapsedEl.on("click",this[this.floatable?"collapseClick":"onExpandClick"],this);
}}}return this.collapsedEl;},onExpandClick:function(A){if(this.isSlid){this.panel.expand(false);
}else{this.panel.expand();}},onCollapseClick:function(A){this.panel.collapse();},beforeCollapse:function(B,C){this.lastAnim=C;
if(this.splitEl){this.splitEl.hide();}this.getCollapsedEl().show();var A=this.panel.getEl();
this.originalZIndex=A.getStyle("z-index");A.setStyle("z-index",100);this.isCollapsed=true;
this.layout.layout();},onCollapse:function(A){this.panel.el.setStyle("z-index",1);
if(this.lastAnim===false||this.panel.animCollapse===false){this.getCollapsedEl().dom.style.visibility="visible";
}else{this.getCollapsedEl().slideIn(this.panel.slideAnchor,{duration:0.2});}this.state.collapsed=true;
this.panel.saveState();},beforeExpand:function(B){if(this.isSlid){this.afterSlideIn();
}var A=this.getCollapsedEl();this.el.show();if(this.position=="east"||this.position=="west"){this.panel.setSize(undefined,A.getHeight());
}else{this.panel.setSize(A.getWidth(),undefined);}A.hide();A.dom.style.visibility="hidden";
this.panel.el.setStyle("z-index",this.floatingZIndex);},onExpand:function(){this.isCollapsed=false;
if(this.splitEl){this.splitEl.show();}this.layout.layout();this.panel.el.setStyle("z-index",this.originalZIndex);
this.state.collapsed=false;this.panel.saveState();},collapseClick:function(A){if(this.isSlid){A.stopPropagation();
this.slideIn();}else{A.stopPropagation();this.slideOut();}},onHide:function(){if(this.isCollapsed){this.getCollapsedEl().hide();
}else{if(this.splitEl){this.splitEl.hide();}}},onShow:function(){if(this.isCollapsed){this.getCollapsedEl().show();
}else{if(this.splitEl){this.splitEl.show();}}},isVisible:function(){return !this.panel.hidden;
},getMargins:function(){return this.isCollapsed&&this.cmargins?this.cmargins:this.margins;
},getSize:function(){return this.isCollapsed?this.getCollapsedEl().getSize():this.panel.getSize();
},setPanel:function(A){this.panel=A;},getMinWidth:function(){return this.minWidth;
},getMinHeight:function(){return this.minHeight;},applyLayoutCollapsed:function(B){var A=this.getCollapsedEl();
A.setLeftTop(B.x,B.y);A.setSize(B.width,B.height);},applyLayout:function(A){if(this.isCollapsed){this.applyLayoutCollapsed(A);
}else{this.panel.setPosition(A.x,A.y);this.panel.setSize(A.width,A.height);}},beforeSlide:function(){this.panel.beforeEffect();
},afterSlide:function(){this.panel.afterEffect();},initAutoHide:function(){if(this.autoHide!==false){if(!this.autoHideHd){this.autoHideSlideTask=new Ext.util.DelayedTask(this.slideIn,this);
this.autoHideHd={mouseout:function(A){if(!A.within(this.el,true)){this.autoHideSlideTask.delay(500);
}},mouseover:function(A){this.autoHideSlideTask.cancel();},scope:this};}this.el.on(this.autoHideHd);
this.collapsedEl.on(this.autoHideHd);}},clearAutoHide:function(){if(this.autoHide!==false){this.el.un("mouseout",this.autoHideHd.mouseout);
this.el.un("mouseover",this.autoHideHd.mouseover);this.collapsedEl.un("mouseout",this.autoHideHd.mouseout);
this.collapsedEl.un("mouseover",this.autoHideHd.mouseover);}},clearMonitor:function(){Ext.getDoc().un("click",this.slideInIf,this);
},slideOut:function(){if(this.isSlid||this.el.hasActiveFx()){return ;}this.isSlid=true;
var A=this.panel.tools,B,C;if(A&&A.toggle){A.toggle.hide();}this.el.show();C=this.panel.collapsed;
this.panel.collapsed=false;if(this.position=="east"||this.position=="west"){B=this.panel.deferHeight;
this.panel.deferHeight=false;this.panel.setSize(undefined,this.collapsedEl.getHeight());
this.panel.deferHeight=B;}else{this.panel.setSize(this.collapsedEl.getWidth(),undefined);
}this.panel.collapsed=C;this.restoreLT=[this.el.dom.style.left,this.el.dom.style.top];
this.el.alignTo(this.collapsedEl,this.getCollapseAnchor());this.el.setStyle("z-index",this.floatingZIndex+2);
this.panel.el.replaceClass("x-panel-collapsed","x-panel-floating");if(this.animFloat!==false){this.beforeSlide();
this.el.slideIn(this.getSlideAnchor(),{callback:function(){this.afterSlide();this.initAutoHide();
Ext.getDoc().on("click",this.slideInIf,this);},scope:this,block:true});}else{this.initAutoHide();
Ext.getDoc().on("click",this.slideInIf,this);}},afterSlideIn:function(){this.clearAutoHide();
this.isSlid=false;this.clearMonitor();this.el.setStyle("z-index","");this.panel.el.replaceClass("x-panel-floating","x-panel-collapsed");
this.el.dom.style.left=this.restoreLT[0];this.el.dom.style.top=this.restoreLT[1];
var A=this.panel.tools;if(A&&A.toggle){A.toggle.show();}},slideIn:function(A){if(!this.isSlid||this.el.hasActiveFx()){Ext.callback(A);
return ;}this.isSlid=false;if(this.animFloat!==false){this.beforeSlide();this.el.slideOut(this.getSlideAnchor(),{callback:function(){this.el.hide();
this.afterSlide();this.afterSlideIn();Ext.callback(A);},scope:this,block:true});}else{this.el.hide();
this.afterSlideIn();}},slideInIf:function(A){if(!A.within(this.el)){this.slideIn();
}},anchors:{west:"left",east:"right",north:"top",south:"bottom"},sanchors:{west:"l",east:"r",north:"t",south:"b"},canchors:{west:"tl-tr",east:"tr-tl",north:"tl-bl",south:"bl-tl"},getAnchor:function(){return this.anchors[this.position];
},getCollapseAnchor:function(){return this.canchors[this.position];},getSlideAnchor:function(){return this.sanchors[this.position];
},getAlignAdj:function(){var A=this.cmargins;switch(this.position){case"west":return[0,0];
break;case"east":return[0,0];break;case"north":return[0,0];break;case"south":return[0,0];
break;}},getExpandAdj:function(){var A=this.collapsedEl,B=this.cmargins;switch(this.position){case"west":return[-(B.right+A.getWidth()+B.left),0];
break;case"east":return[B.right+A.getWidth()+B.left,0];break;case"north":return[0,-(B.top+B.bottom+A.getHeight())];
break;case"south":return[0,B.top+B.bottom+A.getHeight()];break;}},destroy:function(){if(this.autoHideSlideTask&&this.autoHideSlideTask.cancel){this.autoHideSlideTask.cancel();
}Ext.destroy(this.miniCollapsedEl,this.collapsedEl);}};Ext.layout.BorderLayout.SplitRegion=function(A,C,B){Ext.layout.BorderLayout.SplitRegion.superclass.constructor.call(this,A,C,B);
this.applyLayout=this.applyFns[B];};Ext.extend(Ext.layout.BorderLayout.SplitRegion,Ext.layout.BorderLayout.Region,{splitTip:"Drag to resize.",collapsibleSplitTip:"Drag to resize. Double click to hide.",useSplitTips:false,splitSettings:{north:{orientation:Ext.SplitBar.VERTICAL,placement:Ext.SplitBar.TOP,maxFn:"getVMaxSize",minProp:"minHeight",maxProp:"maxHeight"},south:{orientation:Ext.SplitBar.VERTICAL,placement:Ext.SplitBar.BOTTOM,maxFn:"getVMaxSize",minProp:"minHeight",maxProp:"maxHeight"},east:{orientation:Ext.SplitBar.HORIZONTAL,placement:Ext.SplitBar.RIGHT,maxFn:"getHMaxSize",minProp:"minWidth",maxProp:"maxWidth"},west:{orientation:Ext.SplitBar.HORIZONTAL,placement:Ext.SplitBar.LEFT,maxFn:"getHMaxSize",minProp:"minWidth",maxProp:"maxWidth"}},applyFns:{west:function(C){if(this.isCollapsed){return this.applyLayoutCollapsed(C);
}var A=this.splitEl.dom,B=A.style;this.panel.setPosition(C.x,C.y);var D=A.offsetWidth;
B.left=(C.x+C.width-D)+"px";B.top=(C.y)+"px";B.height=Math.max(0,C.height)+"px";this.panel.setSize(C.width-D,C.height);
},east:function(C){if(this.isCollapsed){return this.applyLayoutCollapsed(C);}var A=this.splitEl.dom,B=A.style;
var D=A.offsetWidth;this.panel.setPosition(C.x+D,C.y);B.left=(C.x)+"px";B.top=(C.y)+"px";
B.height=Math.max(0,C.height)+"px";this.panel.setSize(C.width-D,C.height);},north:function(C){if(this.isCollapsed){return this.applyLayoutCollapsed(C);
}var A=this.splitEl.dom,B=A.style;var D=A.offsetHeight;this.panel.setPosition(C.x,C.y);
B.left=(C.x)+"px";B.top=(C.y+C.height-D)+"px";B.width=Math.max(0,C.width)+"px";this.panel.setSize(C.width,C.height-D);
},south:function(C){if(this.isCollapsed){return this.applyLayoutCollapsed(C);}var A=this.splitEl.dom,B=A.style;
var D=A.offsetHeight;this.panel.setPosition(C.x,C.y+D);B.left=(C.x)+"px";B.top=(C.y)+"px";
B.width=Math.max(0,C.width)+"px";this.panel.setSize(C.width,C.height-D);}},render:function(D,C){Ext.layout.BorderLayout.SplitRegion.superclass.render.call(this,D,C);
var A=this.position;this.splitEl=D.createChild({cls:"x-layout-split x-layout-split-"+A,html:"&#160;",id:this.panel.id+"-xsplit"});
if(this.collapseMode=="mini"){this.miniSplitEl=this.splitEl.createChild({cls:"x-layout-mini x-layout-mini-"+A,html:"&#160;"});
this.miniSplitEl.addClassOnOver("x-layout-mini-over");this.miniSplitEl.on("click",this.onCollapseClick,this,{stopEvent:true});
}var B=this.splitSettings[A];this.split=new Ext.SplitBar(this.splitEl.dom,C.el,B.orientation);
this.split.tickSize=this.tickSize;this.split.placement=B.placement;this.split.getMaximumSize=this[B.maxFn].createDelegate(this);
this.split.minSize=this.minSize||this[B.minProp];this.split.on("beforeapply",this.onSplitMove,this);
this.split.useShim=this.useShim===true;this.maxSize=this.maxSize||this[B.maxProp];
if(C.hidden){this.splitEl.hide();}if(this.useSplitTips){this.splitEl.dom.title=this.collapsible?this.collapsibleSplitTip:this.splitTip;
}if(this.collapsible){this.splitEl.on("dblclick",this.onCollapseClick,this);}},getSize:function(){if(this.isCollapsed){return this.collapsedEl.getSize();
}var A=this.panel.getSize();if(this.position=="north"||this.position=="south"){A.height+=this.splitEl.dom.offsetHeight;
}else{A.width+=this.splitEl.dom.offsetWidth;}return A;},getHMaxSize:function(){var A=this.maxSize||10000;
var B=this.layout.center;return Math.min(A,(this.el.getWidth()+B.el.getWidth())-B.getMinWidth());
},getVMaxSize:function(){var A=this.maxSize||10000;var B=this.layout.center;return Math.min(A,(this.el.getHeight()+B.el.getHeight())-B.getMinHeight());
},onSplitMove:function(A,C){var B=this.panel.getSize();this.lastSplitSize=C;if(this.position=="north"||this.position=="south"){this.panel.setSize(B.width,C);
this.state.height=C;}else{this.panel.setSize(C,B.height);this.state.width=C;}this.layout.layout();
this.panel.saveState();return false;},getSplitBar:function(){return this.split;},destroy:function(){Ext.destroy(this.miniSplitEl,this.split,this.splitEl);
Ext.layout.BorderLayout.SplitRegion.superclass.destroy.call(this);}});Ext.Container.LAYOUTS.border=Ext.layout.BorderLayout;
Ext.layout.FormLayout=Ext.extend(Ext.layout.AnchorLayout,{labelSeparator:":",trackLabels:false,type:"form",onRemove:function(A){Ext.layout.FormLayout.superclass.onRemove.call(this,A);
if(this.trackLabels){A.un("show",this.onFieldShow,this);A.un("hide",this.onFieldHide,this);
}var B=A.getPositionEl(),C=A.getItemCt&&A.getItemCt();if(A.rendered&&C){if(B&&B.dom){B.insertAfter(C);
}Ext.destroy(C);Ext.destroyMembers(A,"label","itemCt");if(A.customItemCt){Ext.destroyMembers(A,"getItemCt","customItemCt");
}}},setContainer:function(B){Ext.layout.FormLayout.superclass.setContainer.call(this,B);
if(B.labelAlign){B.addClass("x-form-label-"+B.labelAlign);}if(B.hideLabels){Ext.apply(this,{labelStyle:"display:none",elementStyle:"padding-left:0;",labelAdjust:0});
}else{this.labelSeparator=B.labelSeparator||this.labelSeparator;B.labelWidth=B.labelWidth||100;
if(Ext.isNumber(B.labelWidth)){var A=Ext.isNumber(B.labelPad)?B.labelPad:5;Ext.apply(this,{labelAdjust:B.labelWidth+A,labelStyle:"width:"+B.labelWidth+"px;",elementStyle:"padding-left:"+(B.labelWidth+A)+"px"});
}if(B.labelAlign=="top"){Ext.apply(this,{labelStyle:"width:auto;",labelAdjust:0,elementStyle:"padding-left:0;"});
}}},isHide:function(A){return A.hideLabel||this.container.hideLabels;},onFieldShow:function(A){A.getItemCt().removeClass("x-hide-"+A.hideMode);
},onFieldHide:function(A){A.getItemCt().addClass("x-hide-"+A.hideMode);},getLabelStyle:function(B){var C="",D=[this.labelStyle,B];
for(var A=0,E=D.length;A<E;++A){if(D[A]){C+=D[A];if(C.substr(-1,1)!=";"){C+=";";}}}return C;
},renderItem:function(B,D,A){if(B&&(B.isFormField||B.fieldLabel)&&B.inputType!="hidden"){var C=this.getTemplateArgs(B);
if(Ext.isNumber(D)){D=A.dom.childNodes[D]||null;}if(D){B.itemCt=this.fieldTpl.insertBefore(D,C,true);
}else{B.itemCt=this.fieldTpl.append(A,C,true);}if(!B.getItemCt){Ext.apply(B,{getItemCt:function(){return B.itemCt;
},customItemCt:true});}B.label=B.getItemCt().child("label.x-form-item-label");if(!B.rendered){B.render("x-form-el-"+B.id);
}else{if(!this.isValidParent(B,A)){Ext.fly("x-form-el-"+B.id).appendChild(B.getPositionEl());
}}if(this.trackLabels){if(B.hidden){this.onFieldHide(B);}B.on({scope:this,show:this.onFieldShow,hide:this.onFieldHide});
}this.configureItem(B);}else{Ext.layout.FormLayout.superclass.renderItem.apply(this,arguments);
}},getTemplateArgs:function(A){var B=!A.fieldLabel||A.hideLabel;return{id:A.id,label:A.fieldLabel,itemCls:(A.itemCls||this.container.itemCls||"")+(A.hideLabel?" x-hide-label":""),clearCls:A.clearCls||"x-form-clear-left",labelStyle:this.getLabelStyle(A.labelStyle),elementStyle:this.elementStyle||"",labelSeparator:B?"":(Ext.isDefined(A.labelSeparator)?A.labelSeparator:this.labelSeparator)};
},adjustWidthAnchor:function(C,A){if(A.label&&!this.isHide(A)&&(this.container.labelAlign!="top")){var B=Ext.isIE6||(Ext.isIE&&!Ext.isStrict);
return C-this.labelAdjust+(B?-3:0);}return C;},adjustHeightAnchor:function(B,A){if(A.label&&!this.isHide(A)&&(this.container.labelAlign=="top")){return B-A.label.getHeight();
}return B;},isValidParent:function(A,B){return B&&this.container.getEl().contains(A.getPositionEl());
}});Ext.Container.LAYOUTS.form=Ext.layout.FormLayout;Ext.layout.AccordionLayout=Ext.extend(Ext.layout.FitLayout,{fill:true,autoWidth:true,titleCollapse:true,hideCollapseTool:false,collapseFirst:false,animate:false,sequence:false,activeOnTop:false,type:"accordion",renderItem:function(A){if(this.animate===false){A.animCollapse=false;
}A.collapsible=true;if(this.autoWidth){A.autoWidth=true;}if(this.titleCollapse){A.titleCollapse=true;
}if(this.hideCollapseTool){A.hideCollapseTool=true;}if(this.collapseFirst!==undefined){A.collapseFirst=this.collapseFirst;
}if(!this.activeItem&&!A.collapsed){this.setActiveItem(A,true);}else{if(this.activeItem&&this.activeItem!=A){A.collapsed=true;
}}Ext.layout.AccordionLayout.superclass.renderItem.apply(this,arguments);A.header.addClass("x-accordion-hd");
A.on("beforeexpand",this.beforeExpand,this);},onRemove:function(A){Ext.layout.AccordionLayout.superclass.onRemove.call(this,A);
if(A.rendered){A.header.removeClass("x-accordion-hd");}A.un("beforeexpand",this.beforeExpand,this);
},beforeExpand:function(B,A){var C=this.activeItem;if(C){if(this.sequence){delete this.activeItem;
if(!C.collapsed){C.collapse({callback:function(){B.expand(A||true);},scope:this});
return false;}}else{C.collapse(this.animate);}}this.setActive(B);if(this.activeOnTop){B.el.dom.parentNode.insertBefore(B.el.dom,B.el.dom.parentNode.firstChild);
}this.layout();},setItemSize:function(A,C){if(this.fill&&A){var B=0,F,E=this.getRenderedItems(this.container),G=E.length,D;
for(F=0;F<G;F++){if((D=E[F])!=A){B+=D.header.getHeight();}}C.height-=B;A.setSize(C);
}},setActiveItem:function(A){this.setActive(A,true);},setActive:function(B,A){var C=this.activeItem;
B=this.container.getComponent(B);if(C!=B){if(B.rendered&&B.collapsed&&A){B.expand();
}else{if(C){C.fireEvent("deactivate",C);}this.activeItem=B;B.fireEvent("activate",B);
}}}});Ext.Container.LAYOUTS.accordion=Ext.layout.AccordionLayout;Ext.layout.Accordion=Ext.layout.AccordionLayout;
Ext.layout.TableLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:false,type:"table",targetCls:"x-table-layout-ct",tableAttrs:null,setContainer:function(A){Ext.layout.TableLayout.superclass.setContainer.call(this,A);
this.currentRow=0;this.currentColumn=0;this.cells=[];},onLayout:function(B,A){var C=B.items.items,F=C.length,D,E;
if(!this.table){A.addClass("x-table-layout-ct");this.table=A.createChild(Ext.apply({tag:"table",cls:"x-table-layout",cellspacing:0,cn:{tag:"tbody"}},this.tableAttrs),null,true);
}this.renderAll(B,A);},getRow:function(B){var A=this.table.tBodies[0].childNodes[B];
if(!A){A=document.createElement("tr");this.table.tBodies[0].appendChild(A);}return A;
},getNextCell:function(B){var F=this.getNextNonSpan(this.currentColumn,this.currentRow);
var G=this.currentColumn=F[0],A=this.currentRow=F[1];for(var D=A;D<A+(B.rowspan||1);
D++){if(!this.cells[D]){this.cells[D]=[];}for(var H=G;H<G+(B.colspan||1);H++){this.cells[D][H]=true;
}}var C=document.createElement("td");if(B.cellId){C.id=B.cellId;}var E="x-table-layout-cell";
if(B.cellCls){E+=" "+B.cellCls;}C.className=E;if(B.colspan){C.colSpan=B.colspan;}if(B.rowspan){C.rowSpan=B.rowspan;
}this.getRow(A).appendChild(C);return C;},getNextNonSpan:function(C,B){var A=this.columns;
while((A&&C>=A)||(this.cells[B]&&this.cells[B][C])){if(A&&C>=A){B++;C=0;}else{C++;
}}return[C,B];},renderItem:function(B,D,A){if(!this.table){this.table=A.createChild(Ext.apply({tag:"table",cls:"x-table-layout",cellspacing:0,cn:{tag:"tbody"}},this.tableAttrs),null,true);
}if(B&&!B.rendered){B.render(this.getNextCell(B));this.configureItem(B,D);}else{if(B&&!this.isValidParent(B,A)){var C=this.getNextCell(B);
C.insertBefore(B.getPositionEl().dom,null);B.container=Ext.get(C);this.configureItem(B,D);
}}},isValidParent:function(A,B){return A.getPositionEl().up("table",5).dom.parentNode===(B.dom||B);
}});Ext.Container.LAYOUTS.table=Ext.layout.TableLayout;Ext.layout.AbsoluteLayout=Ext.extend(Ext.layout.AnchorLayout,{extraCls:"x-abs-layout-item",type:"absolute",onLayout:function(B,A){A.position();
this.paddingLeft=A.getPadding("l");this.paddingTop=A.getPadding("t");Ext.layout.AbsoluteLayout.superclass.onLayout.call(this,B,A);
},adjustWidthAnchor:function(A,B){return A?A-B.getPosition(true)[0]+this.paddingLeft:A;
},adjustHeightAnchor:function(A,B){return A?A-B.getPosition(true)[1]+this.paddingTop:A;
}});Ext.Container.LAYOUTS.absolute=Ext.layout.AbsoluteLayout;Ext.layout.BoxLayout=Ext.extend(Ext.layout.ContainerLayout,{defaultMargins:{left:0,top:0,right:0,bottom:0},padding:"0",pack:"start",monitorResize:true,type:"box",scrollOffset:0,extraCls:"x-box-item",targetCls:"x-box-layout-ct",innerCls:"x-box-inner",constructor:function(A){Ext.layout.BoxLayout.superclass.constructor.call(this,A);
if(Ext.isString(this.defaultMargins)){this.defaultMargins=this.parseMargins(this.defaultMargins);
}},onLayout:function(D,A){Ext.layout.BoxLayout.superclass.onLayout.call(this,D,A);
var B=this.getVisibleItems(D),C=this.getLayoutTargetSize();this.layoutTargetLastSize=C;
this.childBoxCache=this.calculateChildBoxes(B,C);this.updateInnerCtSize(C,this.childBoxCache);
this.updateChildBoxes(this.childBoxCache.boxes);this.handleTargetOverflow(C,D,A);
},updateChildBoxes:function(D){for(var C=0,B=D.length;C<B;C++){var A=D[C],E=A.component;
if(A.dirtySize){E.setSize(A.width,A.height);}if(isNaN(A.left)||isNaN(A.top)){continue;
}E.setPosition(A.left,A.top);}},updateInnerCtSize:Ext.emptyFn,handleTargetOverflow:function(A,E,D){var B=D.getStyle("overflow");
if(B&&B!="hidden"&&!this.adjustmentPass){var C=this.getLayoutTargetSize();if(C.width!=A.width||C.height!=A.height){this.adjustmentPass=true;
this.onLayout(E,D);}}delete this.adjustmentPass;},isValidParent:function(A,B){return this.innerCt&&A.getPositionEl().dom.parentNode==this.innerCt.dom;
},getVisibleItems:function(A){var A=A||this.container,C=A.getLayoutTarget(),B=A.items.items,F=B.length,D,G,E=[];
for(D=0;D<F;D++){if((G=B[D]).rendered&&this.isValidParent(G,C)&&G.hidden!==true&&G.collapsed!==true){E.push(G);
}}return E;},renderAll:function(B,A){if(!this.innerCt){this.innerCt=A.createChild({cls:this.innerCls});
this.padding=this.parseMargins(this.padding);}Ext.layout.BoxLayout.superclass.renderAll.call(this,B,this.innerCt);
},getLayoutTargetSize:function(){var A=this.container.getLayoutTarget(),B;if(A){B=A.getViewSize();
if(Ext.isIE&&Ext.isStrict&&B.width==0){B=A.getStyleSize();}B.width-=A.getPadding("lr");
B.height-=A.getPadding("tb");}return B;},renderItem:function(A){if(Ext.isString(A.margins)){A.margins=this.parseMargins(A.margins);
}else{if(!A.margins){A.margins=this.defaultMargins;}}Ext.layout.BoxLayout.superclass.renderItem.apply(this,arguments);
}});Ext.layout.VBoxLayout=Ext.extend(Ext.layout.BoxLayout,{align:"left",type:"vbox",updateInnerCtSize:function(B,A){var C=B.height,D=A.meta.maxWidth+this.padding.left+this.padding.right;
if(this.align=="stretch"){D=B.width;}else{if(this.align=="center"){D=Math.max(B.width,D);
}}this.innerCt.setSize(D||undefined,C||undefined);},calculateChildBoxes:function(AO,P){var S=AO.length,Q=this.padding,AN=Q.top,M=Q.left,N=AN+Q.bottom,i=M+Q.right,AP=P.width-this.scrollOffset,O=P.height,AG=Math.max(0,AP-i),W=this.pack=="start",X=this.pack=="center",U=this.pack=="end",AC=0,AJ=0,AI=0,R=[],T,AB,AA,Y,Z,AL,AH,L,AK,AD,AM;
for(AH=0;AH<S;AH++){T=AO[AH];AA=T.height;AB=T.width;AL=!T.hasLayout&&Ext.isFunction(T.doLayout);
if(!Ext.isNumber(AA)){if(T.flex&&!AA){AI+=T.flex;}else{if(!AA&&AL){T.doLayout();}Y=T.getSize();
AB=Y.width;AA=Y.height;}}Z=T.margins;AC+=(AA||0)+Z.top+Z.bottom;if(!Ext.isNumber(AB)){if(AL){T.doLayout();
}AB=T.getWidth();}AJ=Math.max(AJ,AB+Z.left+Z.right);R.push({component:T,height:AA||undefined,width:AB||undefined});
}var K=Math.max(0,(O-AC-N));if(X){AN+=K/2;}else{if(U){AN+=K;}}var V=K,AE=AI;for(AH=0;
AH<S;AH++){T=AO[AH];L=R[AH];Z=T.margins;AD=Z.left+Z.right;AN+=Z.top;if(W&&T.flex&&!T.height){AK=Math.ceil((T.flex/AE)*V);
V-=AK;AE-=T.flex;L.height=AK;L.dirtySize=true;}L.left=M+Z.left;L.top=AN;switch(this.align){case"stretch":AM=AG-AD;
L.width=AM.constrain(T.minHeight||0,T.maxWidth||1000000);L.dirtySize=true;break;case"stretchmax":AM=AJ-AD;
L.width=AM.constrain(T.minHeight||0,T.maxWidth||1000000);L.dirtySize=true;break;case"center":var AF=AG-L.width-AD;
if(AF>0){L.left=M+AD+(AF/2);}}AN+=L.height+Z.bottom;}return{boxes:R,meta:{maxWidth:AJ}};
}});Ext.Container.LAYOUTS.vbox=Ext.layout.VBoxLayout;Ext.layout.HBoxLayout=Ext.extend(Ext.layout.BoxLayout,{align:"top",type:"hbox",updateInnerCtSize:function(B,A){var D=B.width,C=A.meta.maxHeight+this.padding.top+this.padding.bottom;
if(this.align=="stretch"){C=B.height;}else{if(this.align=="middle"){C=Math.max(B.height,C);
}}this.innerCt.setSize(D||undefined,C||undefined);},calculateChildBoxes:function(AH,P){var U=AH.length,AO=this.padding,AK=AO.top,K=AO.left,L=AK+AO.bottom,i=K+AO.right,AG=P.width-this.scrollOffset,AM=P.height,T=Math.max(0,AM-L),V=this.pack=="start",M=this.pack=="center",N=this.pack=="end",AC=0,AF=0,AL=0,X=[],W,AB,AA,Z,AN,AJ,AI,O,AE,R,AP;
for(AI=0;AI<U;AI++){W=AH[AI];AA=W.height;AB=W.width;AJ=!W.hasLayout&&Ext.isFunction(W.doLayout);
if(!Ext.isNumber(AB)){if(W.flex&&!AB){AL+=W.flex;}else{if(!AB&&AJ){W.doLayout();}Z=W.getSize();
AB=Z.width;AA=Z.height;}}AN=W.margins;AC+=(AB||0)+AN.left+AN.right;if(!Ext.isNumber(AA)){if(AJ){W.doLayout();
}AA=W.getHeight();}AF=Math.max(AF,AA+AN.top+AN.bottom);X.push({component:W,height:AA||undefined,width:AB||undefined});
}var Y=Math.max(0,(AG-AC-i));if(M){K+=Y/2;}else{if(N){K+=Y;}}var S=Y,AD=AL;for(AI=0;
AI<U;AI++){W=AH[AI];O=X[AI];AN=W.margins;R=AN.top+AN.bottom;K+=AN.left;if(V&&W.flex&&!W.width){AE=Math.ceil((W.flex/AD)*S);
S-=AE;AD-=W.flex;O.width=AE;O.dirtySize=true;}O.left=K;O.top=AK+AN.top;switch(this.align){case"stretch":AP=T-R;
O.height=AP.constrain(W.minHeight||0,W.maxHeight||1000000);O.dirtySize=true;break;
case"stretchmax":AP=AF-R;O.height=AP.constrain(W.minHeight||0,W.maxHeight||1000000);
O.dirtySize=true;break;case"middle":var Q=T-O.height-R;if(Q>0){O.top=AK+R+(Q/2);}}K+=O.width+AN.right;
}return{boxes:X,meta:{maxHeight:AF}};}});Ext.Container.LAYOUTS.hbox=Ext.layout.HBoxLayout;
Ext.layout.ToolbarLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"toolbar",triggerWidth:18,noItemsMenuText:'<div class="x-toolbar-no-items">(None)</div>',lastOverflow:false,tableHTML:['<table cellspacing="0" class="x-toolbar-ct">',"<tbody>","<tr>",'<td class="x-toolbar-left" align="{0}">','<table cellspacing="0">',"<tbody>",'<tr class="x-toolbar-left-row"></tr>',"</tbody>","</table>","</td>",'<td class="x-toolbar-right" align="right">','<table cellspacing="0" class="x-toolbar-right-ct">',"<tbody>","<tr>","<td>",'<table cellspacing="0">',"<tbody>",'<tr class="x-toolbar-right-row"></tr>',"</tbody>","</table>","</td>","<td>",'<table cellspacing="0">',"<tbody>",'<tr class="x-toolbar-extras-row"></tr>',"</tbody>","</table>","</td>","</tr>","</tbody>","</table>","</td>","</tr>","</tbody>","</table>"].join(""),onLayout:function(A,B){if(!this.leftTr){var D=A.buttonAlign=="center"?"center":"left";
B.addClass("x-toolbar-layout-ct");B.insertHtml("beforeEnd",String.format(this.tableHTML,D));
this.leftTr=B.child("tr.x-toolbar-left-row",true);this.rightTr=B.child("tr.x-toolbar-right-row",true);
this.extrasTr=B.child("tr.x-toolbar-extras-row",true);if(this.hiddenItem==undefined){this.hiddenItems=[];
}}var C=A.buttonAlign=="right"?this.rightTr:this.leftTr,E=A.items.items,J=0;for(var G=0,I=E.length,F;
G<I;G++,J++){F=E[G];if(F.isFill){C=this.rightTr;J=-1;}else{if(!F.rendered){F.render(this.insertCell(F,C,J));
}else{if(!F.xtbHidden&&!this.isValidParent(F,C.childNodes[J])){var H=this.insertCell(F,C,J);
H.appendChild(F.getPositionEl().dom);F.container=Ext.get(H);}}}}this.cleanup(this.leftTr);
this.cleanup(this.rightTr);this.cleanup(this.extrasTr);this.fitToSize(B);},cleanup:function(C){var B=C.childNodes,D,A;
for(D=B.length-1;D>=0&&(A=B[D]);D--){if(!A.firstChild){C.removeChild(A);}}},insertCell:function(B,C,D){var A=document.createElement("td");
A.className="x-toolbar-cell";C.insertBefore(A,C.childNodes[D]||null);return A;},hideItem:function(A){this.hiddenItems.push(A);
A.xtbHidden=true;A.xtbWidth=A.getPositionEl().dom.parentNode.offsetWidth;A.hide();
},unhideItem:function(A){A.show();A.xtbHidden=false;this.hiddenItems.remove(A);},getItemWidth:function(A){return A.hidden?(A.xtbWidth||0):A.getPositionEl().dom.parentNode.offsetWidth;
},fitToSize:function(C){if(this.container.enableOverflow===false){return ;}var I=C.dom.clientWidth,B=C.dom.firstChild.offsetWidth,H=I-this.triggerWidth,K=this.lastWidth||0,J=this.hiddenItems,A=J.length!=0,E=I>=K;
this.lastWidth=I;if(B>I||(A&&E)){var G=this.container.items.items,D=G.length,M=0,F;
for(var L=0;L<D;L++){F=G[L];if(!F.isFill){M+=this.getItemWidth(F);if(M>H){if(!(F.hidden||F.xtbHidden)){this.hideItem(F);
}}else{if(F.xtbHidden){this.unhideItem(F);}}}}}A=J.length!=0;if(A){this.initMore();
if(!this.lastOverflow){this.container.fireEvent("overflowchange",this.container,true);
this.lastOverflow=true;}}else{if(this.more){this.clearMenu();this.more.destroy();
delete this.more;if(this.lastOverflow){this.container.fireEvent("overflowchange",this.container,false);
this.lastOverflow=false;}}}},createMenuConfig:function(C,D){var B=Ext.apply({},C.initialConfig),A=C.toggleGroup;
Ext.copyTo(B,C,["iconCls","icon","itemId","disabled","handler","scope","menu"]);Ext.apply(B,{text:C.overflowText||C.text,hideOnClick:D});
if(A||C.enableToggle){Ext.apply(B,{group:A,checked:C.pressed,listeners:{checkchange:function(E,F){C.toggle(F);
}}});}delete B.ownerCt;delete B.xtype;delete B.id;return B;},addComponentToMenu:function(A,B){if(B instanceof Ext.Toolbar.Separator){A.add("-");
}else{if(Ext.isFunction(B.isXType)){if(B.isXType("splitbutton")){A.add(this.createMenuConfig(B,true));
}else{if(B.isXType("button")){A.add(this.createMenuConfig(B,!B.menu));}else{if(B.isXType("buttongroup")){B.items.each(function(C){this.addComponentToMenu(A,C);
},this);}}}}}},clearMenu:function(){var A=this.moreMenu;if(A&&A.items){A.items.each(function(B){delete B.menu;
});}},beforeMoreShow:function(A){var E=this.container.items.items,G=E.length,C,D;
var F=function(I,H){return I.isXType("buttongroup")&&!(H instanceof Ext.Toolbar.Separator);
};this.clearMenu();A.removeAll();for(var B=0;B<G;B++){C=E[B];if(C.xtbHidden){if(D&&(F(C,D)||F(D,C))){A.add("-");
}this.addComponentToMenu(A,C);D=C;}}if(A.items.length<1){A.add(this.noItemsMenuText);
}},initMore:function(){if(!this.more){this.moreMenu=new Ext.menu.Menu({ownerCt:this.container,listeners:{beforeshow:this.beforeMoreShow,scope:this}});
this.more=new Ext.Button({iconCls:"x-toolbar-more-icon",cls:"x-toolbar-more",menu:this.moreMenu,ownerCt:this.container});
var A=this.insertCell(this.more,this.extrasTr,100);this.more.render(A);}},destroy:function(){Ext.destroy(this.more,this.moreMenu);
delete this.leftTr;delete this.rightTr;delete this.extrasTr;Ext.layout.ToolbarLayout.superclass.destroy.call(this);
}});Ext.Container.LAYOUTS.toolbar=Ext.layout.ToolbarLayout;Ext.layout.MenuLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"menu",setContainer:function(A){this.monitorResize=!A.floating;
A.on("autosize",this.doAutoSize,this);Ext.layout.MenuLayout.superclass.setContainer.call(this,A);
},renderItem:function(A,D,C){if(!this.itemTpl){this.itemTpl=Ext.layout.MenuLayout.prototype.itemTpl=new Ext.XTemplate('<li id="{itemId}" class="{itemCls}">','<tpl if="needsIcon">','<img src="{icon}" class="{iconCls}"/>',"</tpl>","</li>");
}if(A&&!A.rendered){if(Ext.isNumber(D)){D=C.dom.childNodes[D];}var B=this.getItemArgs(A);
A.render(A.positionEl=D?this.itemTpl.insertBefore(D,B,true):this.itemTpl.append(C,B,true));
A.positionEl.menuItemId=A.getItemId();if(!B.isMenuItem&&B.needsIcon){A.positionEl.addClass("x-menu-list-item-indent");
}this.configureItem(A,D);}else{if(A&&!this.isValidParent(A,C)){if(Ext.isNumber(D)){D=C.dom.childNodes[D];
}C.dom.insertBefore(A.getActionEl().dom,D||null);}}},getItemArgs:function(A){var B=A instanceof Ext.menu.Item;
return{isMenuItem:B,needsIcon:!B&&(A.icon||A.iconCls),icon:A.icon||Ext.BLANK_IMAGE_URL,iconCls:"x-menu-item-icon "+(A.iconCls||""),itemId:"x-menu-el-"+A.id,itemCls:"x-menu-list-item "};
},isValidParent:function(A,B){return A.el.up("li.x-menu-list-item",5).dom.parentNode===(B.dom||B);
},onLayout:function(B,A){Ext.layout.MenuLayout.superclass.onLayout.call(this,B,A);
this.doAutoSize();},doAutoSize:function(){var C=this.container,D=C.width;if(C.floating){if(D){C.setWidth(D);
}else{if(Ext.isIE){C.setWidth(Ext.isStrict&&(Ext.isIE7||Ext.isIE8)?"auto":C.minWidth);
var A=C.getEl(),B=A.dom.offsetWidth;C.setWidth(C.getLayoutTarget().getWidth()+A.getFrameWidth("lr"));
}}}}});Ext.Container.LAYOUTS.menu=Ext.layout.MenuLayout;Ext.Viewport=Ext.extend(Ext.Container,{initComponent:function(){Ext.Viewport.superclass.initComponent.call(this);
document.getElementsByTagName("html")[0].className+=" x-viewport";this.el=Ext.getBody();
this.el.setHeight=Ext.emptyFn;this.el.setWidth=Ext.emptyFn;this.el.setSize=Ext.emptyFn;
this.el.dom.scroll="no";this.allowDomMove=false;this.autoWidth=true;this.autoHeight=true;
Ext.EventManager.onWindowResize(this.fireResize,this);this.renderTo=this.el;},fireResize:function(B,A){this.fireEvent("resize",this,B,A,B,A);
}});Ext.reg("viewport",Ext.Viewport);Ext.Panel=Ext.extend(Ext.Container,{baseCls:"x-panel",collapsedCls:"x-panel-collapsed",maskDisabled:true,animCollapse:Ext.enableFx,headerAsText:true,buttonAlign:"right",collapsed:false,collapseFirst:true,minButtonWidth:75,elements:"body",preventBodyReset:false,padding:undefined,resizeEvent:"bodyresize",toolTarget:"header",collapseEl:"bwrap",slideAnchor:"t",disabledClass:"",deferHeight:true,expandDefaults:{duration:0.25},collapseDefaults:{duration:0.25},initComponent:function(){Ext.Panel.superclass.initComponent.call(this);
this.addEvents("bodyresize","titlechange","iconchange","collapse","expand","beforecollapse","beforeexpand","beforeclose","close","activate","deactivate");
if(this.unstyled){this.baseCls="x-plain";}this.toolbars=[];if(this.tbar){this.elements+=",tbar";
this.topToolbar=this.createToolbar(this.tbar);this.tbar=null;}if(this.bbar){this.elements+=",bbar";
this.bottomToolbar=this.createToolbar(this.bbar);this.bbar=null;}if(this.header===true){this.elements+=",header";
this.header=null;}else{if(this.headerCfg||(this.title&&this.header!==false)){this.elements+=",header";
}}if(this.footerCfg||this.footer===true){this.elements+=",footer";this.footer=null;
}if(this.buttons){this.fbar=this.buttons;this.buttons=null;}if(this.fbar){this.createFbar(this.fbar);
}if(this.autoLoad){this.on("render",this.doAutoLoad,this,{delay:10});}},createFbar:function(A){var B=this.minButtonWidth;
this.elements+=",footer";this.fbar=this.createToolbar(A,{buttonAlign:this.buttonAlign,toolbarCls:"x-panel-fbar",enableOverflow:false,defaults:function(C){return{minWidth:C.minWidth||B};
}});this.fbar.items.each(function(C){C.minWidth=C.minWidth||this.minButtonWidth;},this);
this.buttons=this.fbar.items.items;},createToolbar:function(A,B){var C;if(Ext.isArray(A)){A={items:A};
}C=A.events?Ext.apply(A,B):this.createComponent(Ext.apply({},A,B),"toolbar");this.toolbars.push(C);
return C;},createElement:function(C,B){if(this[C]){B.appendChild(this[C].dom);return ;
}if(C==="bwrap"||this.elements.indexOf(C)!=-1){if(this[C+"Cfg"]){this[C]=Ext.fly(B).createChild(this[C+"Cfg"]);
}else{var A=document.createElement("div");A.className=this[C+"Cls"];this[C]=Ext.get(B.appendChild(A));
}if(this[C+"CssClass"]){this[C].addClass(this[C+"CssClass"]);}if(this[C+"Style"]){this[C].applyStyles(this[C+"Style"]);
}}},onRender:function(J,A){Ext.Panel.superclass.onRender.call(this,J,A);this.createClasses();
var I=this.el,D=I.dom,C,E;if(this.collapsible&&!this.hideCollapseTool){this.tools=this.tools?this.tools.slice(0):[];
this.tools[this.collapseFirst?"unshift":"push"]({id:"toggle",handler:this.toggleCollapse,scope:this});
}if(this.tools){E=this.tools;this.elements+=(this.header!==false)?",header":"";}this.tools={};
I.addClass(this.baseCls);if(D.firstChild){this.header=I.down("."+this.headerCls);
this.bwrap=I.down("."+this.bwrapCls);var B=this.bwrap?this.bwrap:I;this.tbar=B.down("."+this.tbarCls);
this.body=B.down("."+this.bodyCls);this.bbar=B.down("."+this.bbarCls);this.footer=B.down("."+this.footerCls);
this.fromMarkup=true;}if(this.preventBodyReset===true){I.addClass("x-panel-reset");
}if(this.cls){I.addClass(this.cls);}if(this.buttons){this.elements+=",footer";}if(this.frame){I.insertHtml("afterBegin",String.format(Ext.Element.boxMarkup,this.baseCls));
this.createElement("header",D.firstChild.firstChild.firstChild);this.createElement("bwrap",D);
C=this.bwrap.dom;var H=D.childNodes[1],G=D.childNodes[2];C.appendChild(H);C.appendChild(G);
var F=C.firstChild.firstChild.firstChild;this.createElement("tbar",F);this.createElement("body",F);
this.createElement("bbar",F);this.createElement("footer",C.lastChild.firstChild.firstChild);
if(!this.footer){this.bwrap.dom.lastChild.className+=" x-panel-nofooter";}this.ft=Ext.get(this.bwrap.dom.lastChild);
this.mc=Ext.get(F);}else{this.createElement("header",D);this.createElement("bwrap",D);
C=this.bwrap.dom;this.createElement("tbar",C);this.createElement("body",C);this.createElement("bbar",C);
this.createElement("footer",C);if(!this.header){this.body.addClass(this.bodyCls+"-noheader");
if(this.tbar){this.tbar.addClass(this.tbarCls+"-noheader");}}}if(Ext.isDefined(this.padding)){this.body.setStyle("padding",this.body.addUnits(this.padding));
}if(this.border===false){this.el.addClass(this.baseCls+"-noborder");this.body.addClass(this.bodyCls+"-noborder");
if(this.header){this.header.addClass(this.headerCls+"-noborder");}if(this.footer){this.footer.addClass(this.footerCls+"-noborder");
}if(this.tbar){this.tbar.addClass(this.tbarCls+"-noborder");}if(this.bbar){this.bbar.addClass(this.bbarCls+"-noborder");
}}if(this.bodyBorder===false){this.body.addClass(this.bodyCls+"-noborder");}this.bwrap.enableDisplayMode("block");
if(this.header){this.header.unselectable();if(this.headerAsText){this.header.dom.innerHTML='<span class="'+this.headerTextCls+'">'+this.header.dom.innerHTML+"</span>";
if(this.iconCls){this.setIconClass(this.iconCls);}}}if(this.floating){this.makeFloating(this.floating);
}if(this.collapsible&&this.titleCollapse&&this.header){this.mon(this.header,"click",this.toggleCollapse,this);
this.header.setStyle("cursor","pointer");}if(E){this.addTool.apply(this,E);}if(this.fbar){this.footer.addClass("x-panel-btns");
this.fbar.ownerCt=this;this.fbar.render(this.footer);this.footer.createChild({cls:"x-clear"});
}if(this.tbar&&this.topToolbar){this.topToolbar.ownerCt=this;this.topToolbar.render(this.tbar);
}if(this.bbar&&this.bottomToolbar){this.bottomToolbar.ownerCt=this;this.bottomToolbar.render(this.bbar);
}},setIconClass:function(C){var E=this.iconCls;this.iconCls=C;if(this.rendered&&this.header){if(this.frame){this.header.addClass("x-panel-icon");
this.header.replaceClass(E,this.iconCls);}else{var B=this.header,D=B.child("img.x-panel-inline-icon");
if(D){Ext.fly(D).replaceClass(E,this.iconCls);}else{var A=B.child("span."+this.headerTextCls);
if(A){Ext.DomHelper.insertBefore(A.dom,{tag:"img",src:Ext.BLANK_IMAGE_URL,cls:"x-panel-inline-icon "+this.iconCls});
}}}}this.fireEvent("iconchange",this,C,E);},makeFloating:function(A){this.floating=true;
this.el=new Ext.Layer(Ext.apply({},A,{shadow:Ext.isDefined(this.shadow)?this.shadow:"sides",shadowOffset:this.shadowOffset,constrain:false,shim:this.shim===false?false:undefined}),this.el);
},getTopToolbar:function(){return this.topToolbar;},getBottomToolbar:function(){return this.bottomToolbar;
},getFooterToolbar:function(){return this.fbar;},addButton:function(C,B,A){if(!this.fbar){this.createFbar([]);
}if(B){if(Ext.isString(C)){C={text:C};}C=Ext.apply({handler:B,scope:A},C);}return this.fbar.add(C);
},addTool:function(){if(!this.rendered){if(!this.tools){this.tools=[];}Ext.each(arguments,function(H){this.tools.push(H);
},this);return ;}if(!this[this.toolTarget]){return ;}if(!this.toolTemplate){var A=new Ext.Template('<div class="x-tool x-tool-{id}">&#160;</div>');
A.disableFormats=true;A.compile();Ext.Panel.prototype.toolTemplate=A;}for(var C=0,B=arguments,F=B.length;
C<F;C++){var E=B[C];if(!this.tools[E.id]){var G="x-tool-"+E.id+"-over";var D=this.toolTemplate.insertFirst(this[this.toolTarget],E,true);
this.tools[E.id]=D;D.enableDisplayMode("block");this.mon(D,"click",this.createToolHandler(D,E,G,this));
if(E.on){this.mon(D,E.on);}if(E.hidden){D.hide();}if(E.qtip){if(Ext.isObject(E.qtip)){Ext.QuickTips.register(Ext.apply({target:D.id},E.qtip));
}else{D.dom.qtip=E.qtip;}}D.addClassOnOver(G);}}},onLayout:function(A,B){Ext.Panel.superclass.onLayout.apply(this,arguments);
if(this.hasLayout&&this.toolbars.length>0){Ext.each(this.toolbars,function(C){C.doLayout(undefined,B);
});this.syncHeight();}},syncHeight:function(){var B=this.toolbarHeight,C=this.body,D=this.lastSize.height,A;
if(this.autoHeight||!Ext.isDefined(D)||D=="auto"){return ;}if(B!=this.getToolbarHeight()){B=Math.max(0,D-this.getFrameHeight());
C.setHeight(B);A=C.getSize();this.toolbarHeight=this.getToolbarHeight();this.onBodyResize(A.width,A.height);
}},onShow:function(){if(this.floating){return this.el.show();}Ext.Panel.superclass.onShow.call(this);
},onHide:function(){if(this.floating){return this.el.hide();}Ext.Panel.superclass.onHide.call(this);
},createToolHandler:function(C,D,A,B){return function(E){C.removeClass(A);if(D.stopEvent!==false){E.stopEvent();
}if(D.handler){D.handler.call(D.scope||C,E,C,B,D);}};},afterRender:function(){if(this.floating&&!this.hidden){this.el.show();
}if(this.title){this.setTitle(this.title);}Ext.Panel.superclass.afterRender.call(this);
if(this.collapsed){this.collapsed=false;this.collapse(false);}this.initEvents();},getKeyMap:function(){if(!this.keyMap){this.keyMap=new Ext.KeyMap(this.el,this.keys);
}return this.keyMap;},initEvents:function(){if(this.keys){this.getKeyMap();}if(this.draggable){this.initDraggable();
}if(this.toolbars.length>0){Ext.each(this.toolbars,function(A){A.doLayout();A.on({scope:this,afterlayout:this.syncHeight,remove:this.syncHeight});
},this);this.syncHeight();}},initDraggable:function(){this.dd=new Ext.Panel.DD(this,Ext.isBoolean(this.draggable)?null:this.draggable);
},beforeEffect:function(A){if(this.floating){this.el.beforeAction();}if(A!==false){this.el.addClass("x-panel-animated");
}},afterEffect:function(A){this.syncShadow();this.el.removeClass("x-panel-animated");
},createEffect:function(D,C,A){var B={scope:A,block:true};if(D===true){B.callback=C;
return B;}else{if(!D.callback){B.callback=C;}else{B.callback=function(){C.call(A);
Ext.callback(D.callback,D.scope);};}}return Ext.applyIf(B,D);},collapse:function(A){if(this.collapsed||this.el.hasFxBlock()||this.fireEvent("beforecollapse",this,A)===false){return ;
}var B=A===true||(A!==false&&this.animCollapse);this.beforeEffect(B);this.onCollapse(B,A);
return this;},onCollapse:function(B,A){if(B){this[this.collapseEl].slideOut(this.slideAnchor,Ext.apply(this.createEffect(A||true,this.afterCollapse,this),this.collapseDefaults));
}else{this[this.collapseEl].hide(this.hideMode);this.afterCollapse(false);}},afterCollapse:function(A){this.collapsed=true;
this.el.addClass(this.collapsedCls);if(A!==false){this[this.collapseEl].hide(this.hideMode);
}this.afterEffect(A);this.cascade(function(B){if(B.lastSize){B.lastSize={width:0,height:0};
}});this.fireEvent("collapse",this);},expand:function(A){if(!this.collapsed||this.el.hasFxBlock()||this.fireEvent("beforeexpand",this,A)===false){return ;
}var B=A===true||(A!==false&&this.animCollapse);this.el.removeClass(this.collapsedCls);
this.beforeEffect(B);this.onExpand(B,A);return this;},onExpand:function(B,A){if(B){this[this.collapseEl].slideIn(this.slideAnchor,Ext.apply(this.createEffect(A||true,this.afterExpand,this),this.expandDefaults));
}else{this[this.collapseEl].show(this.hideMode);this.afterExpand(false);}},afterExpand:function(A){this.collapsed=false;
if(A!==false){this[this.collapseEl].show(this.hideMode);}this.afterEffect(A);if(this.deferLayout){delete this.deferLayout;
this.doLayout(true);}this.fireEvent("expand",this);},toggleCollapse:function(A){this[this.collapsed?"expand":"collapse"](A);
return this;},onDisable:function(){if(this.rendered&&this.maskDisabled){this.el.mask();
}Ext.Panel.superclass.onDisable.call(this);},onEnable:function(){if(this.rendered&&this.maskDisabled){this.el.unmask();
}Ext.Panel.superclass.onEnable.call(this);},onResize:function(A,B,E,C){var F=A,D=B;
if(Ext.isDefined(F)||Ext.isDefined(D)){if(!this.collapsed){if(Ext.isNumber(F)){this.body.setWidth(F=this.adjustBodyWidth(F-this.getFrameWidth()));
}else{if(F=="auto"){F=this.body.setWidth("auto").dom.offsetWidth;}else{F=this.body.dom.offsetWidth;
}}if(this.tbar){this.tbar.setWidth(F);if(this.topToolbar){this.topToolbar.setSize(F);
}}if(this.bbar){this.bbar.setWidth(F);if(this.bottomToolbar){this.bottomToolbar.setSize(F);
if(Ext.isIE){this.bbar.setStyle("position","static");this.bbar.setStyle("position","");
}}}if(this.footer){this.footer.setWidth(F);if(this.fbar){this.fbar.setSize(Ext.isIE?(F-this.footer.getFrameWidth("lr")):"auto");
}}if(Ext.isNumber(D)){D=Math.max(0,D-this.getFrameHeight());this.body.setHeight(D);
}else{if(D=="auto"){this.body.setHeight(D);}}if(this.disabled&&this.el._mask){this.el._mask.setSize(this.el.dom.clientWidth,this.el.getHeight());
}}else{this.queuedBodySize={width:F,height:D};if(!this.queuedExpand&&this.allowQueuedExpand!==false){this.queuedExpand=true;
this.on("expand",function(){delete this.queuedExpand;this.onResize(this.queuedBodySize.width,this.queuedBodySize.height);
},this,{single:true});}}this.onBodyResize(F,D);}this.syncShadow();Ext.Panel.superclass.onResize.call(this,A,B,E,C);
},onBodyResize:function(B,A){this.fireEvent("bodyresize",this,B,A);},getToolbarHeight:function(){var A=0;
if(this.rendered){Ext.each(this.toolbars,function(B){A+=B.getHeight();},this);}return A;
},adjustBodyHeight:function(A){return A;},adjustBodyWidth:function(A){return A;},onPosition:function(){this.syncShadow();
},getFrameWidth:function(){var A=this.el.getFrameWidth("lr")+this.bwrap.getFrameWidth("lr");
if(this.frame){var B=this.bwrap.dom.firstChild;A+=(Ext.fly(B).getFrameWidth("l")+Ext.fly(B.firstChild).getFrameWidth("r"));
A+=this.mc.getFrameWidth("lr");}return A;},getFrameHeight:function(){var A=Math.max(0,this.getHeight()-this.body.getHeight());
if(isNaN(A)){A=0;}return A;},getInnerWidth:function(){return this.getSize().width-this.getFrameWidth();
},getInnerHeight:function(){return this.body.getHeight();},syncShadow:function(){if(this.floating){this.el.sync(true);
}},getLayoutTarget:function(){return this.body;},getContentTarget:function(){return this.body;
},setTitle:function(A,B){this.title=A;if(this.header&&this.headerAsText){this.header.child("span").update(A);
}if(B){this.setIconClass(B);}this.fireEvent("titlechange",this,A);return this;},getUpdater:function(){return this.body.getUpdater();
},load:function(){var A=this.body.getUpdater();A.update.apply(A,arguments);return this;
},beforeDestroy:function(){Ext.Panel.superclass.beforeDestroy.call(this);if(this.header){this.header.removeAllListeners();
}if(this.tools){for(var A in this.tools){Ext.destroy(this.tools[A]);}}if(this.toolbars.length>0){Ext.each(this.toolbars,function(B){B.un("afterlayout",this.syncHeight,this);
B.un("remove",this.syncHeight,this);},this);}if(Ext.isArray(this.buttons)){while(this.buttons.length){Ext.destroy(this.buttons[0]);
}}if(this.rendered){Ext.destroy(this.ft,this.header,this.footer,this.toolbars,this.tbar,this.bbar,this.body,this.mc,this.bwrap);
if(this.fbar){Ext.destroy(this.fbar,this.fbar.el);}}else{Ext.destroy(this.topToolbar,this.bottomToolbar);
}},createClasses:function(){this.headerCls=this.baseCls+"-header";this.headerTextCls=this.baseCls+"-header-text";
this.bwrapCls=this.baseCls+"-bwrap";this.tbarCls=this.baseCls+"-tbar";this.bodyCls=this.baseCls+"-body";
this.bbarCls=this.baseCls+"-bbar";this.footerCls=this.baseCls+"-footer";},createGhost:function(E,B,C){var A=document.createElement("div");
A.className="x-panel-ghost "+(E?E:"");if(this.header){A.appendChild(this.el.dom.firstChild.cloneNode(true));
}Ext.fly(A.appendChild(document.createElement("ul"))).setHeight(this.bwrap.getHeight());
A.style.width=this.el.dom.offsetWidth+"px";if(!C){this.container.dom.appendChild(A);
}else{Ext.getDom(C).appendChild(A);}if(B!==false&&this.el.useShim!==false){var D=new Ext.Layer({shadow:false,useDisplay:true,constrain:false},A);
D.show();return D;}else{return new Ext.Element(A);}},doAutoLoad:function(){var A=this.body.getUpdater();
if(this.renderer){A.setRenderer(this.renderer);}A.update(Ext.isObject(this.autoLoad)?this.autoLoad:{url:this.autoLoad});
},getTool:function(A){return this.tools[A];}});Ext.reg("panel",Ext.Panel);Ext.Editor=function(A,B){if(A.field){this.field=Ext.create(A.field,"textfield");
B=Ext.apply({},A);delete B.field;}else{this.field=A;}Ext.Editor.superclass.constructor.call(this,B);
};Ext.extend(Ext.Editor,Ext.Component,{allowBlur:true,value:"",alignment:"c-c?",offsets:[0,0],shadow:"frame",constrain:false,swallowKeys:true,completeOnEnter:true,cancelOnEsc:true,updateEl:false,initComponent:function(){Ext.Editor.superclass.initComponent.call(this);
this.addEvents("beforestartedit","startedit","beforecomplete","complete","canceledit","specialkey");
},onRender:function(A,B){this.el=new Ext.Layer({shadow:this.shadow,cls:"x-editor",parentEl:A,shim:this.shim,shadowOffset:this.shadowOffset||4,id:this.id,constrain:this.constrain});
if(this.zIndex){this.el.setZIndex(this.zIndex);}this.el.setStyle("overflow",Ext.isGecko?"auto":"hidden");
if(this.field.msgTarget!="title"){this.field.msgTarget="qtip";}this.field.inEditor=true;
this.mon(this.field,{scope:this,blur:this.onBlur,specialkey:this.onSpecialKey});if(this.field.grow){this.mon(this.field,"autosize",this.el.sync,this.el,{delay:1});
}this.field.render(this.el).show();this.field.getEl().dom.name="";if(this.swallowKeys){this.field.el.swallowEvent(["keypress","keydown"]);
}},onSpecialKey:function(A,B){var C=B.getKey(),E=this.completeOnEnter&&C==B.ENTER,D=this.cancelOnEsc&&C==B.ESC;
if(E||D){B.stopEvent();if(E){this.completeEdit();}else{this.cancelEdit();}if(A.triggerBlur){A.triggerBlur();
}}this.fireEvent("specialkey",A,B);},startEdit:function(A,B){if(this.editing){this.completeEdit();
}this.boundEl=Ext.get(A);var C=B!==undefined?B:this.boundEl.dom.innerHTML;if(!this.rendered){this.render(this.parentEl||document.body);
}if(this.fireEvent("beforestartedit",this,this.boundEl,C)!==false){this.startValue=C;
this.field.reset();this.field.setValue(C);this.realign(true);this.editing=true;this.show();
}},doAutoSize:function(){if(this.autoSize){var A=this.boundEl.getSize(),B=this.field.getSize();
switch(this.autoSize){case"width":this.setSize(A.width,B.height);break;case"height":this.setSize(B.width,A.height);
break;case"none":this.setSize(B.width,B.height);break;default:this.setSize(A.width,A.height);
}}},setSize:function(B,A){delete this.field.lastSize;this.field.setSize(B,A);if(this.el){if(Ext.isGecko2||Ext.isOpera){this.el.setSize(B,A);
}this.el.sync();}},realign:function(A){if(A===true){this.doAutoSize();}this.el.alignTo(this.boundEl,this.alignment,this.offsets);
},completeEdit:function(B){if(!this.editing){return ;}if(this.field.assertValue){this.field.assertValue();
}var A=this.getValue();if(!this.field.isValid()){if(this.revertInvalid!==false){this.cancelEdit(B);
}return ;}if(String(A)===String(this.startValue)&&this.ignoreNoChange){this.hideEdit(B);
return ;}if(this.fireEvent("beforecomplete",this,A,this.startValue)!==false){A=this.getValue();
if(this.updateEl&&this.boundEl){this.boundEl.update(A);}this.hideEdit(B);this.fireEvent("complete",this,A,this.startValue);
}},onShow:function(){this.el.show();if(this.hideEl!==false){this.boundEl.hide();}this.field.show().focus(false,true);
this.fireEvent("startedit",this.boundEl,this.startValue);},cancelEdit:function(B){if(this.editing){var A=this.getValue();
this.setValue(this.startValue);this.hideEdit(B);this.fireEvent("canceledit",this,A,this.startValue);
}},hideEdit:function(A){if(A!==true){this.editing=false;this.hide();}},onBlur:function(){if(this.allowBlur===true&&this.editing&&this.selectSameEditor!==true){this.completeEdit();
}},onHide:function(){if(this.editing){this.completeEdit();return ;}this.field.blur();
if(this.field.collapse){this.field.collapse();}this.el.hide();if(this.hideEl!==false){this.boundEl.show();
}},setValue:function(A){this.field.setValue(A);},getValue:function(){return this.field.getValue();
},beforeDestroy:function(){Ext.destroyMembers(this,"field");delete this.parentEl;
delete this.boundEl;}});Ext.reg("editor",Ext.Editor);Ext.ColorPalette=Ext.extend(Ext.Component,{itemCls:"x-color-palette",value:null,clickEvent:"click",ctype:"Ext.ColorPalette",allowReselect:false,colors:["000000","993300","333300","003300","003366","000080","333399","333333","800000","FF6600","808000","008000","008080","0000FF","666699","808080","FF0000","FF9900","99CC00","339966","33CCCC","3366FF","800080","969696","FF00FF","FFCC00","FFFF00","00FF00","00FFFF","00CCFF","993366","C0C0C0","FF99CC","FFCC99","FFFF99","CCFFCC","CCFFFF","99CCFF","CC99FF","FFFFFF"],initComponent:function(){Ext.ColorPalette.superclass.initComponent.call(this);
this.addEvents("select");if(this.handler){this.on("select",this.handler,this.scope,true);
}},onRender:function(A,C){this.autoEl={tag:"div",cls:this.itemCls};Ext.ColorPalette.superclass.onRender.call(this,A,C);
var B=this.tpl||new Ext.XTemplate('<tpl for="."><a href="#" class="color-{.}" hidefocus="on"><em><span style="background:#{.}" unselectable="on">&#160;</span></em></a></tpl>');
B.overwrite(this.el,this.colors);this.mon(this.el,this.clickEvent,this.handleClick,this,{delegate:"a"});
if(this.clickEvent!="click"){this.mon(this.el,"click",Ext.emptyFn,this,{delegate:"a",preventDefault:true});
}},afterRender:function(){Ext.ColorPalette.superclass.afterRender.call(this);if(this.value){var A=this.value;
this.value=null;this.select(A);}},handleClick:function(B,C){B.preventDefault();if(!this.disabled){var A=C.className.match(/(?:^|\s)color-(.{6})(?:\s|$)/)[1];
this.select(A.toUpperCase());}},select:function(B){B=B.replace("#","");if(B!=this.value||this.allowReselect){var A=this.el;
if(this.value){A.child("a.color-"+this.value).removeClass("x-color-palette-sel");
}A.child("a.color-"+B).addClass("x-color-palette-sel");this.value=B;this.fireEvent("select",this,B);
}}});Ext.reg("colorpalette",Ext.ColorPalette);Ext.DatePicker=Ext.extend(Ext.BoxComponent,{todayText:"Today",okText:"&#160;OK&#160;",cancelText:"Cancel",todayTip:"{0} (Spacebar)",minText:"This date is before the minimum date",maxText:"This date is after the maximum date",format:"m/d/y",disabledDaysText:"Disabled",disabledDatesText:"Disabled",monthNames:Date.monthNames,dayNames:Date.dayNames,nextText:"Next Month (Control+Right)",prevText:"Previous Month (Control+Left)",monthYearText:"Choose a month (Control+Up/Down to move years)",startDay:0,showToday:true,focusOnSelect:true,initHour:12,initComponent:function(){Ext.DatePicker.superclass.initComponent.call(this);
this.value=this.value?this.value.clearTime(true):new Date().clearTime();this.addEvents("select");
if(this.handler){this.on("select",this.handler,this.scope||this);}this.initDisabledDays();
},initDisabledDays:function(){if(!this.disabledDatesRE&&this.disabledDates){var A=this.disabledDates,C=A.length-1,B="(?:";
Ext.each(A,function(D,E){B+=Ext.isDate(D)?"^"+Ext.escapeRe(D.dateFormat(this.format))+"$":A[E];
if(E!=C){B+="|";}},this);this.disabledDatesRE=new RegExp(B+")");}},setDisabledDates:function(A){if(Ext.isArray(A)){this.disabledDates=A;
this.disabledDatesRE=null;}else{this.disabledDatesRE=A;}this.initDisabledDays();this.update(this.value,true);
},setDisabledDays:function(A){this.disabledDays=A;this.update(this.value,true);},setMinDate:function(A){this.minDate=A;
this.update(this.value,true);},setMaxDate:function(A){this.maxDate=A;this.update(this.value,true);
},setValue:function(A){this.value=A.clearTime(true);this.update(this.value);},getValue:function(){return this.value;
},focus:function(){this.update(this.activeDate);},onEnable:function(A){Ext.DatePicker.superclass.onEnable.call(this);
this.doDisabled(false);this.update(A?this.value:this.activeDate);if(Ext.isIE){this.el.repaint();
}},onDisable:function(){Ext.DatePicker.superclass.onDisable.call(this);this.doDisabled(true);
if(Ext.isIE&&!Ext.isIE8){Ext.each([].concat(this.textNodes,this.el.query("th span")),function(A){Ext.fly(A).repaint();
});}},doDisabled:function(A){this.keyNav.setDisabled(A);this.prevRepeater.setDisabled(A);
this.nextRepeater.setDisabled(A);if(this.showToday){this.todayKeyListener.setDisabled(A);
this.todayBtn.setDisabled(A);}},onRender:function(A,E){var G=['<table cellspacing="0">','<tr><td class="x-date-left"><a href="#" title="',this.prevText,'">&#160;</a></td><td class="x-date-middle" align="center"></td><td class="x-date-right"><a href="#" title="',this.nextText,'">&#160;</a></td></tr>','<tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr>'],F=this.dayNames,D;
for(D=0;D<7;D++){var C=this.startDay+D;if(C>6){C=C-7;}G.push("<th><span>",F[C].substr(0,1),"</span></th>");
}G[G.length]="</tr></thead><tbody><tr>";for(D=0;D<42;D++){if(D%7===0&&D!==0){G[G.length]="</tr><tr>";
}G[G.length]='<td><a href="#" hidefocus="on" class="x-date-date" tabIndex="1"><em><span></span></em></a></td>';
}G.push("</tr></tbody></table></td></tr>",this.showToday?'<tr><td colspan="3" class="x-date-bottom" align="center"></td></tr>':"",'</table><div class="x-date-mp"></div>');
var B=document.createElement("div");B.className="x-date-picker";B.innerHTML=G.join("");
A.dom.insertBefore(B,E);this.el=Ext.get(B);this.eventEl=Ext.get(B.firstChild);this.prevRepeater=new Ext.util.ClickRepeater(this.el.child("td.x-date-left a"),{handler:this.showPrevMonth,scope:this,preventDefault:true,stopDefault:true});
this.nextRepeater=new Ext.util.ClickRepeater(this.el.child("td.x-date-right a"),{handler:this.showNextMonth,scope:this,preventDefault:true,stopDefault:true});
this.monthPicker=this.el.down("div.x-date-mp");this.monthPicker.enableDisplayMode("block");
this.keyNav=new Ext.KeyNav(this.eventEl,{left:function(I){if(I.ctrlKey){this.showPrevMonth();
}else{this.update(this.activeDate.add("d",-1));}},right:function(I){if(I.ctrlKey){this.showNextMonth();
}else{this.update(this.activeDate.add("d",1));}},up:function(I){if(I.ctrlKey){this.showNextYear();
}else{this.update(this.activeDate.add("d",-7));}},down:function(I){if(I.ctrlKey){this.showPrevYear();
}else{this.update(this.activeDate.add("d",7));}},pageUp:function(I){this.showNextMonth();
},pageDown:function(I){this.showPrevMonth();},enter:function(I){I.stopPropagation();
return true;},scope:this});this.el.unselectable();this.cells=this.el.select("table.x-date-inner tbody td");
this.textNodes=this.el.query("table.x-date-inner tbody span");this.mbtn=new Ext.Button({text:"&#160;",tooltip:this.monthYearText,renderTo:this.el.child("td.x-date-middle",true)});
this.mbtn.el.child("em").addClass("x-btn-arrow");if(this.showToday){this.todayKeyListener=this.eventEl.addKeyListener(Ext.EventObject.SPACE,this.selectToday,this);
var H=(new Date()).dateFormat(this.format);this.todayBtn=new Ext.Button({renderTo:this.el.child("td.x-date-bottom",true),text:String.format(this.todayText,H),tooltip:String.format(this.todayTip,H),handler:this.selectToday,scope:this});
}this.mon(this.eventEl,"mousewheel",this.handleMouseWheel,this);this.mon(this.eventEl,"click",this.handleDateClick,this,{delegate:"a.x-date-date"});
this.mon(this.mbtn,"click",this.showMonthPicker,this);this.onEnable(true);},createMonthPicker:function(){if(!this.monthPicker.dom.firstChild){var B=['<table border="0" cellspacing="0">'];
for(var A=0;A<6;A++){B.push('<tr><td class="x-date-mp-month"><a href="#">',Date.getShortMonthName(A),"</a></td>",'<td class="x-date-mp-month x-date-mp-sep"><a href="#">',Date.getShortMonthName(A+6),"</a></td>",A===0?'<td class="x-date-mp-ybtn" align="center"><a class="x-date-mp-prev"></a></td><td class="x-date-mp-ybtn" align="center"><a class="x-date-mp-next"></a></td></tr>':'<td class="x-date-mp-year"><a href="#"></a></td><td class="x-date-mp-year"><a href="#"></a></td></tr>');
}B.push('<tr class="x-date-mp-btns"><td colspan="4"><button type="button" class="x-date-mp-ok">',this.okText,'</button><button type="button" class="x-date-mp-cancel">',this.cancelText,"</button></td></tr>","</table>");
this.monthPicker.update(B.join(""));this.mon(this.monthPicker,"click",this.onMonthClick,this);
this.mon(this.monthPicker,"dblclick",this.onMonthDblClick,this);this.mpMonths=this.monthPicker.select("td.x-date-mp-month");
this.mpYears=this.monthPicker.select("td.x-date-mp-year");this.mpMonths.each(function(E,C,D){D+=1;
if((D%2)===0){E.dom.xmonth=5+Math.round(D*0.5);}else{E.dom.xmonth=Math.round((D-1)*0.5);
}});}},showMonthPicker:function(){if(!this.disabled){this.createMonthPicker();var A=this.el.getSize();
this.monthPicker.setSize(A);this.monthPicker.child("table").setSize(A);this.mpSelMonth=(this.activeDate||this.value).getMonth();
this.updateMPMonth(this.mpSelMonth);this.mpSelYear=(this.activeDate||this.value).getFullYear();
this.updateMPYear(this.mpSelYear);this.monthPicker.slideIn("t",{duration:0.2});}},updateMPYear:function(B){this.mpyear=B;
var D=this.mpYears.elements;for(var C=1;C<=10;C++){var A=D[C-1],E;if((C%2)===0){E=B+Math.round(C*0.5);
A.firstChild.innerHTML=E;A.xyear=E;}else{E=B-(5-Math.round(C*0.5));A.firstChild.innerHTML=E;
A.xyear=E;}this.mpYears.item(C-1)[E==this.mpSelYear?"addClass":"removeClass"]("x-date-mp-sel");
}},updateMPMonth:function(A){this.mpMonths.each(function(C,D,B){C[C.dom.xmonth==A?"addClass":"removeClass"]("x-date-mp-sel");
});},selectMPMonth:function(A){},onMonthClick:function(A,C){A.stopEvent();var D=new Ext.Element(C),E;
if(D.is("button.x-date-mp-cancel")){this.hideMonthPicker();}else{if(D.is("button.x-date-mp-ok")){var B=new Date(this.mpSelYear,this.mpSelMonth,(this.activeDate||this.value).getDate());
if(B.getMonth()!=this.mpSelMonth){B=new Date(this.mpSelYear,this.mpSelMonth,1).getLastDateOfMonth();
}this.update(B);this.hideMonthPicker();}else{if((E=D.up("td.x-date-mp-month",2))){this.mpMonths.removeClass("x-date-mp-sel");
E.addClass("x-date-mp-sel");this.mpSelMonth=E.dom.xmonth;}else{if((E=D.up("td.x-date-mp-year",2))){this.mpYears.removeClass("x-date-mp-sel");
E.addClass("x-date-mp-sel");this.mpSelYear=E.dom.xyear;}else{if(D.is("a.x-date-mp-prev")){this.updateMPYear(this.mpyear-10);
}else{if(D.is("a.x-date-mp-next")){this.updateMPYear(this.mpyear+10);}}}}}}},onMonthDblClick:function(A,B){A.stopEvent();
var C=new Ext.Element(B),D;if((D=C.up("td.x-date-mp-month",2))){this.update(new Date(this.mpSelYear,D.dom.xmonth,(this.activeDate||this.value).getDate()));
this.hideMonthPicker();}else{if((D=C.up("td.x-date-mp-year",2))){this.update(new Date(D.dom.xyear,this.mpSelMonth,(this.activeDate||this.value).getDate()));
this.hideMonthPicker();}}},hideMonthPicker:function(A){if(this.monthPicker){if(A===true){this.monthPicker.hide();
}else{this.monthPicker.slideOut("t",{duration:0.2});}}},showPrevMonth:function(A){this.update(this.activeDate.add("mo",-1));
},showNextMonth:function(A){this.update(this.activeDate.add("mo",1));},showPrevYear:function(){this.update(this.activeDate.add("y",-1));
},showNextYear:function(){this.update(this.activeDate.add("y",1));},handleMouseWheel:function(B){B.stopEvent();
if(!this.disabled){var A=B.getWheelDelta();if(A>0){this.showPrevMonth();}else{if(A<0){this.showNextMonth();
}}}},handleDateClick:function(A,B){A.stopEvent();if(!this.disabled&&B.dateValue&&!Ext.fly(B.parentNode).hasClass("x-date-disabled")){this.cancelFocus=this.focusOnSelect===false;
this.setValue(new Date(B.dateValue));delete this.cancelFocus;this.fireEvent("select",this,this.value);
}},selectToday:function(){if(this.todayBtn&&!this.todayBtn.disabled){this.setValue(new Date().clearTime());
this.fireEvent("select",this,this.value);}},update:function(AE,AC){if(this.rendered){var Y=this.activeDate,L=this.isVisible();
this.activeDate=AE;if(!AC&&Y&&this.el){var T=AE.getTime();if(Y.getMonth()==AE.getMonth()&&Y.getFullYear()==AE.getFullYear()){this.cells.removeClass("x-date-selected");
this.cells.each(function(A){if(A.dom.firstChild.dateValue==T){A.addClass("x-date-selected");
if(L&&!this.cancelFocus){Ext.fly(A.dom.firstChild).focus(50);}return false;}},this);
return ;}}var Q=AE.getDaysInMonth(),M=AE.getFirstDateOfMonth(),Z=M.getDay()-this.startDay;
if(Z<0){Z+=7;}Q+=Z;var AA=AE.add("mo",-1),R=AA.getDaysInMonth()-Z,d=this.cells.elements,J=this.textNodes,AF=(new Date(AA.getFullYear(),AA.getMonth(),R,this.initHour)),AB=new Date().clearTime().getTime(),N=AE.clearTime(true).getTime(),O=this.minDate?this.minDate.clearTime(true):Number.NEGATIVE_INFINITY,AJ=this.maxDate?this.maxDate.clearTime(true):Number.POSITIVE_INFINITY,AD=this.disabledDatesRE,K=this.disabledDatesText,t=this.disabledDays?this.disabledDays.join(""):false,AG=this.disabledDaysText,AH=this.format;
if(this.showToday){var V=new Date().clearTime(),X=(V<O||V>AJ||(AD&&AH&&AD.test(V.dateFormat(AH)))||(t&&t.indexOf(V.getDay())!=-1));
if(!this.disabled){this.todayBtn.setDisabled(X);this.todayKeyListener[X?"disable":"enable"]();
}}var U=function(A,B){B.title="";var C=AF.clearTime(true).getTime();B.firstChild.dateValue=C;
if(C==AB){B.className+=" x-date-today";B.title=A.todayText;}if(C==N){B.className+=" x-date-selected";
if(L){Ext.fly(B.firstChild).focus(50);}}if(C<O){B.className=" x-date-disabled";B.title=A.minText;
return ;}if(C>AJ){B.className=" x-date-disabled";B.title=A.maxText;return ;}if(t){if(t.indexOf(AF.getDay())!=-1){B.title=AG;
B.className=" x-date-disabled";}}if(AD&&AH){var D=AF.dateFormat(AH);if(AD.test(D)){B.title=K.replace("%0",D);
B.className=" x-date-disabled";}}};var AI=0;for(;AI<Z;AI++){J[AI].innerHTML=(++R);
AF.setDate(AF.getDate()+1);d[AI].className="x-date-prevday";U(this,d[AI]);}for(;AI<Q;
AI++){var W=AI-Z+1;J[AI].innerHTML=(W);AF.setDate(AF.getDate()+1);d[AI].className="x-date-active";
U(this,d[AI]);}var i=0;for(;AI<42;AI++){J[AI].innerHTML=(++i);AF.setDate(AF.getDate()+1);
d[AI].className="x-date-nextday";U(this,d[AI]);}this.mbtn.setText(this.monthNames[AE.getMonth()]+" "+AE.getFullYear());
if(!this.internalRender){var P=this.el.dom.firstChild,S=P.offsetWidth;this.el.setWidth(S+this.el.getBorderWidth("lr"));
Ext.fly(P).setWidth(S);this.internalRender=true;if(Ext.isOpera&&!this.secondPass){P.rows[0].cells[1].style.width=(S-(P.rows[0].cells[0].offsetWidth+P.rows[0].cells[2].offsetWidth))+"px";
this.secondPass=true;this.update.defer(10,this,[AE]);}}}},beforeDestroy:function(){if(this.rendered){Ext.destroy(this.keyNav,this.monthPicker,this.eventEl,this.mbtn,this.nextRepeater,this.prevRepeater,this.cells.el,this.todayBtn);
delete this.textNodes;delete this.cells.elements;}}});Ext.reg("datepicker",Ext.DatePicker);
Ext.LoadMask=function(B,A){this.el=Ext.get(B);Ext.apply(this,A);if(this.store){this.store.on({scope:this,beforeload:this.onBeforeLoad,load:this.onLoad,exception:this.onLoad});
this.removeMask=Ext.value(this.removeMask,false);}else{var C=this.el.getUpdater();
C.showLoadIndicator=false;C.on({scope:this,beforeupdate:this.onBeforeLoad,update:this.onLoad,failure:this.onLoad});
this.removeMask=Ext.value(this.removeMask,true);}};Ext.LoadMask.prototype={msg:"Loading...",msgCls:"x-mask-loading",disabled:false,disable:function(){this.disabled=true;
},enable:function(){this.disabled=false;},onLoad:function(){this.el.unmask(this.removeMask);
},onBeforeLoad:function(){if(!this.disabled){this.el.mask(this.msg,this.msgCls);}},show:function(){this.onBeforeLoad();
},hide:function(){this.onLoad();},destroy:function(){if(this.store){this.store.un("beforeload",this.onBeforeLoad,this);
this.store.un("load",this.onLoad,this);this.store.un("exception",this.onLoad,this);
}else{var A=this.el.getUpdater();A.un("beforeupdate",this.onBeforeLoad,this);A.un("update",this.onLoad,this);
A.un("failure",this.onLoad,this);}}};Ext.ns("Ext.slider");Ext.slider.Thumb=Ext.extend(Object,{constructor:function(A){Ext.apply(this,A||{},{cls:"x-slider-thumb",constrain:false});
Ext.slider.Thumb.superclass.constructor.call(this,A);if(this.slider.vertical){Ext.apply(this,Ext.slider.Thumb.Vertical);
}},render:function(){this.el=this.slider.innerEl.insertFirst({cls:this.cls});this.initEvents();
},enable:function(){this.disabled=false;this.el.removeClass(this.slider.disabledClass);
},disable:function(){this.disabled=true;this.el.addClass(this.slider.disabledClass);
},initEvents:function(){var A=this.el;A.addClassOnOver("x-slider-thumb-over");this.tracker=new Ext.dd.DragTracker({onBeforeStart:this.onBeforeDragStart.createDelegate(this),onStart:this.onDragStart.createDelegate(this),onDrag:this.onDrag.createDelegate(this),onEnd:this.onDragEnd.createDelegate(this),tolerance:3,autoStart:300});
this.tracker.initEl(A);},onBeforeDragStart:function(A){if(this.disabled){return false;
}else{this.slider.promoteThumb(this);return true;}},onDragStart:function(A){this.el.addClass("x-slider-thumb-drag");
this.dragging=true;this.dragStartValue=this.value;this.slider.fireEvent("dragstart",this.slider,A,this);
},onDrag:function(A){var E=this.slider,D=this.index,B=this.getNewValue();if(this.constrain){var F=E.thumbs[D+1],C=E.thumbs[D-1];
if(C!=undefined&&B<=C.value){B=C.value;}if(F!=undefined&&B>=F.value){B=F.value;}}E.setValue(D,B,false);
E.fireEvent("drag",E,A,this);},getNewValue:function(){var B=this.slider,A=B.innerEl.translatePoints(this.tracker.getXY());
return Ext.util.Format.round(B.reverseValue(A.left),B.decimalPrecision);},onDragEnd:function(B){var C=this.slider,A=this.value;
this.el.removeClass("x-slider-thumb-drag");this.dragging=false;C.fireEvent("dragend",C,B);
if(this.dragStartValue!=A){C.fireEvent("changecomplete",C,A,this);}}});Ext.slider.MultiSlider=Ext.extend(Ext.BoxComponent,{vertical:false,minValue:0,maxValue:100,decimalPrecision:0,keyIncrement:1,increment:0,clickRange:[5,15],clickToChange:true,animate:true,dragging:false,constrainThumbs:true,topThumbZIndex:10000,initComponent:function(){if(!Ext.isDefined(this.value)){this.value=this.minValue;
}this.thumbs=[];Ext.slider.MultiSlider.superclass.initComponent.call(this);this.keyIncrement=Math.max(this.increment,this.keyIncrement);
this.addEvents("beforechange","change","changecomplete","dragstart","drag","dragend");
if(this.values==undefined||Ext.isEmpty(this.values)){this.values=[0];}var B=this.values;
for(var A=0;A<B.length;A++){this.addThumb(B[A]);}if(this.vertical){Ext.apply(this,Ext.slider.Vertical);
}},addThumb:function(A){var B=new Ext.slider.Thumb({value:A,slider:this,index:this.thumbs.length,constrain:this.constrainThumbs});
this.thumbs.push(B);if(this.rendered){B.render();}},promoteThumb:function(B){var F=this.thumbs,A,D;
for(var C=0,E=F.length;C<E;C++){D=F[C];if(D==B){A=this.topThumbZIndex;}else{A="";
}D.el.setStyle("zIndex",A);}},onRender:function(){this.autoEl={cls:"x-slider "+(this.vertical?"x-slider-vert":"x-slider-horz"),cn:{cls:"x-slider-end",cn:{cls:"x-slider-inner",cn:[{tag:"a",cls:"x-slider-focus",href:"#",tabIndex:"-1",hidefocus:"on"}]}}};
Ext.slider.MultiSlider.superclass.onRender.apply(this,arguments);this.endEl=this.el.first();
this.innerEl=this.endEl.first();this.focusEl=this.innerEl.child(".x-slider-focus");
for(var A=0;A<this.thumbs.length;A++){this.thumbs[A].render();}var B=this.innerEl.child(".x-slider-thumb");
this.halfThumb=(this.vertical?B.getHeight():B.getWidth())/2;this.initEvents();},initEvents:function(){this.mon(this.el,{scope:this,mousedown:this.onMouseDown,keydown:this.onKeyDown});
this.focusEl.swallowEvent("click",true);},onMouseDown:function(A){if(this.disabled){return ;
}var C=false;for(var B=0;B<this.thumbs.length;B++){C=C||A.target==this.thumbs[B].el.dom;
}if(this.clickToChange&&!C){var D=this.innerEl.translatePoints(A.getXY());this.onClickChange(D);
}this.focus();},onClickChange:function(B){if(B.top>this.clickRange[0]&&B.top<this.clickRange[1]){var C=this.getNearest(B,"left"),A=C.index;
this.setValue(A,Ext.util.Format.round(this.reverseValue(B.left),this.decimalPrecision),undefined,true);
}},getNearest:function(C,G){var F=G=="top"?this.innerEl.getHeight()-C[G]:C[G],J=this.reverseValue(F),B=(this.maxValue-this.minValue)+5,A=0,H=null;
for(var K=0;K<this.thumbs.length;K++){var I=this.thumbs[K],E=I.value,D=Math.abs(E-J);
if(Math.abs(D<=B)){H=I;A=K;B=D;}}return H;},onKeyDown:function(A){if(this.disabled){A.preventDefault();
return ;}var B=A.getKey();switch(B){case A.UP:case A.RIGHT:A.stopEvent();if(A.ctrlKey){this.setValue(this.maxValue,undefined,true);
}else{this.setValue(this.value+this.keyIncrement,undefined,true);}break;case A.DOWN:case A.LEFT:A.stopEvent();
if(A.ctrlKey){this.setValue(this.minValue,undefined,true);}else{this.setValue(this.value-this.keyIncrement,undefined,true);
}break;default:A.preventDefault();}},doSnap:function(B){if(!(this.increment&&B)){return B;
}var A=B,C=this.increment,D=B%C;if(D!=0){A-=D;if(D*2>=C){A+=C;}else{if(D*2<-C){A-=C;
}}}return A.constrain(this.minValue,this.maxValue);},afterRender:function(){Ext.slider.MultiSlider.superclass.afterRender.apply(this,arguments);
for(var B=0;B<this.thumbs.length;B++){var A=this.thumbs[B];if(A.value!==undefined){var C=this.normalizeValue(A.value);
if(C!==A.value){this.setValue(B,C,false);}else{this.moveThumb(B,this.translateValue(C),false);
}}}},getRatio:function(){var B=this.innerEl.getWidth(),A=this.maxValue-this.minValue;
return A==0?B:(B/A);},normalizeValue:function(A){A=this.doSnap(A);A=Ext.util.Format.round(A,this.decimalPrecision);
A=A.constrain(this.minValue,this.maxValue);return A;},setMinValue:function(B){this.minValue=B;
this.syncThumb();for(var A=0,C=this.thumbs.length;A<C;A++){if(this.thumbs[A].value<B){this.thumbs[A].value=B;
}}},setMaxValue:function(A){this.maxValue=A;this.syncThumb();for(var B=0;B<this.thumbs.length;
B++){if(this.thumbs[B].value>A){this.thumbs[B].value=A;}}},setValue:function(B,E,D,A){var F=this.thumbs[B],C=F.el;
E=this.normalizeValue(E);if(E!==F.value&&this.fireEvent("beforechange",this,E,F.value)!==false){F.value=E;
this.moveThumb(B,this.translateValue(E),D!==false);this.fireEvent("change",this,E,F);
if(A){this.fireEvent("changecomplete",this,E,F);}}},translateValue:function(B){var A=this.getRatio();
return(B*A)-(this.minValue*A)-this.halfThumb;},reverseValue:function(A){var B=this.getRatio();
return(A+(this.minValue*B))/B;},moveThumb:function(A,C,B){var D=this.thumbs[A].el;
if(!B||this.animate===false){D.setLeft(C);}else{D.shift({left:C,stopFx:true,duration:0.35});
}},focus:function(){this.focusEl.focus(10);},onResize:function(D,B){var C=this.thumbs,E=C.length,A=0;
for(;A<E;++A){C[A].el.stopFx();}this.innerEl.setWidth(D-(this.el.getPadding("l")+this.endEl.getPadding("r")));
this.syncThumb();Ext.slider.MultiSlider.superclass.onResize.apply(this,arguments);
},onDisable:function(){Ext.slider.MultiSlider.superclass.onDisable.call(this);for(var B=0;
B<this.thumbs.length;B++){var D=this.thumbs[B],C=D.el;D.disable();if(Ext.isIE){var A=C.getXY();
C.hide();this.innerEl.addClass(this.disabledClass).dom.disabled=true;if(!this.thumbHolder){this.thumbHolder=this.endEl.createChild({cls:"x-slider-thumb "+this.disabledClass});
}this.thumbHolder.show().setXY(A);}}},onEnable:function(){Ext.slider.MultiSlider.superclass.onEnable.call(this);
for(var A=0;A<this.thumbs.length;A++){var C=this.thumbs[A],B=C.el;C.enable();if(Ext.isIE){this.innerEl.removeClass(this.disabledClass).dom.disabled=false;
if(this.thumbHolder){this.thumbHolder.hide();}B.show();this.syncThumb();}}},syncThumb:function(){if(this.rendered){for(var A=0;
A<this.thumbs.length;A++){this.moveThumb(A,this.translateValue(this.thumbs[A].value));
}}},getValue:function(A){return this.thumbs[A].value;},getValues:function(){var B=[];
for(var A=0;A<this.thumbs.length;A++){B.push(this.thumbs[A].value);}return B;},beforeDestroy:function(){Ext.destroyMembers(this,"endEl","innerEl","thumb","halfThumb","focusEl","tracker","thumbHolder");
Ext.slider.MultiSlider.superclass.beforeDestroy.call(this);}});Ext.reg("multislider",Ext.slider.MultiSlider);
Ext.slider.SingleSlider=Ext.extend(Ext.slider.MultiSlider,{constructor:function(A){A=A||{};
Ext.applyIf(A,{values:[A.value||0]});Ext.slider.SingleSlider.superclass.constructor.call(this,A);
},getValue:function(){return Ext.slider.SingleSlider.superclass.getValue.call(this,0);
},setValue:function(A,B){var C=Ext.toArray(arguments),D=C.length;if(D==1||(D<=3&&typeof arguments[1]!="number")){C.unshift(0);
}return Ext.slider.SingleSlider.superclass.setValue.apply(this,C);},syncThumb:function(){return Ext.slider.SingleSlider.superclass.syncThumb.apply(this,[0].concat(arguments));
},getNearest:function(){return this.thumbs[0];}});Ext.Slider=Ext.slider.SingleSlider;
Ext.reg("slider",Ext.slider.SingleSlider);Ext.slider.Vertical={onResize:function(B,A){this.innerEl.setHeight(A-(this.el.getPadding("t")+this.endEl.getPadding("b")));
this.syncThumb();},getRatio:function(){var A=this.innerEl.getHeight(),B=this.maxValue-this.minValue;
return A/B;},moveThumb:function(A,D,C){var E=this.thumbs[A],B=E.el;if(!C||this.animate===false){B.setBottom(D);
}else{B.shift({bottom:D,stopFx:true,duration:0.35});}},onClickChange:function(C){if(C.left>this.clickRange[0]&&C.left<this.clickRange[1]){var D=this.getNearest(C,"top"),B=D.index,A=this.minValue+this.reverseValue(this.innerEl.getHeight()-C.top);
this.setValue(B,Ext.util.Format.round(A,this.decimalPrecision),undefined,true);}}};
Ext.slider.Thumb.Vertical={getNewValue:function(){var B=this.slider,C=B.innerEl,A=C.translatePoints(this.tracker.getXY()),D=C.getHeight()-A.top;
return B.minValue+Ext.util.Format.round(D/B.getRatio(),B.decimalPrecision);}};Ext.ProgressBar=Ext.extend(Ext.BoxComponent,{baseCls:"x-progress",animate:false,waitTimer:null,initComponent:function(){Ext.ProgressBar.superclass.initComponent.call(this);
this.addEvents("update");},onRender:function(A,E){var D=new Ext.Template('<div class="{cls}-wrap">','<div class="{cls}-inner">','<div class="{cls}-bar">','<div class="{cls}-text">',"<div>&#160;</div>","</div>","</div>",'<div class="{cls}-text {cls}-text-back">',"<div>&#160;</div>","</div>","</div>","</div>");
this.el=E?D.insertBefore(E,{cls:this.baseCls},true):D.append(A,{cls:this.baseCls},true);
if(this.id){this.el.dom.id=this.id;}var C=this.el.dom.firstChild;this.progressBar=Ext.get(C.firstChild);
if(this.textEl){this.textEl=Ext.get(this.textEl);delete this.textTopEl;}else{this.textTopEl=Ext.get(this.progressBar.dom.firstChild);
var B=Ext.get(C.childNodes[1]);this.textTopEl.setStyle("z-index",99).addClass("x-hidden");
this.textEl=new Ext.CompositeElement([this.textTopEl.dom.firstChild,B.dom.firstChild]);
this.textEl.setWidth(C.offsetWidth);}this.progressBar.setHeight(C.offsetHeight);},afterRender:function(){Ext.ProgressBar.superclass.afterRender.call(this);
if(this.value){this.updateProgress(this.value,this.text);}else{this.updateText(this.text);
}},updateProgress:function(C,A,B){this.value=C||0;if(A){this.updateText(A);}if(this.rendered&&!this.isDestroyed){var D=Math.floor(C*this.el.dom.firstChild.offsetWidth);
this.progressBar.setWidth(D,B===true||(B!==false&&this.animate));if(this.textTopEl){this.textTopEl.removeClass("x-hidden").setWidth(D);
}}this.fireEvent("update",this,C,A);return this;},wait:function(A){if(!this.waitTimer){var B=this;
A=A||{};this.updateText(A.text);this.waitTimer=Ext.TaskMgr.start({run:function(D){var C=A.increment||10;
D-=1;this.updateProgress(((((D+C)%C)+1)*(100/C))*0.01,null,A.animate);},interval:A.interval||1000,duration:A.duration,onStop:function(){if(A.fn){A.fn.apply(A.scope||this);
}this.reset();},scope:B});}return this;},isWaiting:function(){return this.waitTimer!==null;
},updateText:function(A){this.text=A||"&#160;";if(this.rendered){this.textEl.update(this.text);
}return this;},syncProgressBar:function(){if(this.value){this.updateProgress(this.value,this.text);
}return this;},setSize:function(C,B){Ext.ProgressBar.superclass.setSize.call(this,C,B);
if(this.textTopEl){var A=this.el.dom.firstChild;this.textEl.setSize(A.offsetWidth,A.offsetHeight);
}this.syncProgressBar();return this;},reset:function(A){this.updateProgress(0);if(this.textTopEl){this.textTopEl.addClass("x-hidden");
}this.clearTimer();if(A===true){this.hide();}return this;},clearTimer:function(){if(this.waitTimer){this.waitTimer.onStop=null;
Ext.TaskMgr.stop(this.waitTimer);this.waitTimer=null;}},onDestroy:function(){this.clearTimer();
if(this.rendered){if(this.textEl.isComposite){this.textEl.clear();}Ext.destroyMembers(this,"textEl","progressBar","textTopEl");
}Ext.ProgressBar.superclass.onDestroy.call(this);}});Ext.reg("progress",Ext.ProgressBar);
(function(){var B=Ext.EventManager;var A=Ext.lib.Dom;Ext.dd.DragDrop=function(D,E,C){if(D){this.init(D,E,C);
}};Ext.dd.DragDrop.prototype={id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true;
},moveOnly:false,unlock:function(){this.locked=false;},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,b4StartDrag:function(D,C){},startDrag:function(D,C){},b4Drag:function(C){},onDrag:function(C){},onDragEnter:function(D,C){},b4DragOver:function(C){},onDragOver:function(D,C){},b4DragOut:function(C){},onDragOut:function(D,C){},b4DragDrop:function(C){},onDragDrop:function(D,C){},onInvalidDrop:function(C){},b4EndDrag:function(C){},endDrag:function(C){},b4MouseDown:function(C){},onMouseDown:function(C){},onMouseUp:function(C){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(D,F,I){if(Ext.isNumber(F)){F={left:F,right:F,top:F,bottom:F};
}F=F||this.defaultPadding;var J=Ext.get(this.getEl()).getBox(),M=Ext.get(D),H=M.getScroll(),E,C=M.dom;
if(C==document.body){E={x:H.left,y:H.top,width:Ext.lib.Dom.getViewWidth(),height:Ext.lib.Dom.getViewHeight()};
}else{var K=M.getXY();E={x:K[0],y:K[1],width:C.clientWidth,height:C.clientHeight};
}var G=J.y-E.y,L=J.x-E.x;this.resetConstraints();this.setXConstraint(L-(F.left||0),E.width-L-J.width-(F.right||0),this.xTickSize);
this.setYConstraint(G-(F.top||0),E.height-G-J.height-(F.bottom||0),this.yTickSize);
},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id);}return this._domRef;
},getDragEl:function(){return Ext.getDom(this.dragElId);},init:function(D,E,C){this.initTarget(D,E,C);
B.on(this.id,"mousedown",this.handleMouseDown,this);},initTarget:function(D,E,C){this.config=C||{};
this.DDM=Ext.dd.DDM;this.groups={};if(typeof D!=="string"){D=Ext.id(D);}this.id=D;
this.addToGroup((E)?E:"default");this.handleElId=D;this.setDragElId(D);this.invalidHandleTypes={A:"A"};
this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable();
},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);
this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);
},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable();
},setPadding:function(E,F,C,D){if(!F&&0!==F){this.padding=[E,E,E,E];}else{if(!C&&0!==C){this.padding=[E,F,E,F];
}else{this.padding=[E,F,C,D];}}},setInitPosition:function(C,E){var D=this.getEl();
if(!this.DDM.verifyEl(D)){return ;}var F=C||0;var H=E||0;var G=A.getXY(D);this.initPageX=G[0]-F;
this.initPageY=G[1]-H;this.lastPageX=G[0];this.lastPageY=G[1];this.setStartPosition(G);
},setStartPosition:function(C){var D=C||A.getXY(this.getEl());this.deltaSetXY=null;
this.startPageX=D[0];this.startPageY=D[1];},addToGroup:function(C){this.groups[C]=true;
this.DDM.regDragDrop(this,C);},removeFromGroup:function(C){if(this.groups[C]){delete this.groups[C];
}this.DDM.removeDDFromGroup(this,C);},setDragElId:function(C){this.dragElId=C;},setHandleElId:function(C){if(typeof C!=="string"){C=Ext.id(C);
}this.handleElId=C;this.DDM.regHandle(this.id,C);},setOuterHandleElId:function(C){if(typeof C!=="string"){C=Ext.id(C);
}B.on(C,"mousedown",this.handleMouseDown,this);this.setHandleElId(C);this.hasOuterHandles=true;
},unreg:function(){B.un(this.id,"mousedown",this.handleMouseDown);this._domRef=null;
this.DDM._remove(this);},destroy:function(){this.unreg();},isLocked:function(){return(this.DDM.isLocked()||this.locked);
},handleMouseDown:function(C,D){if(this.primaryButtonOnly&&C.button!=0){return ;}if(this.isLocked()){return ;
}this.DDM.refreshCache(this.groups);var E=new Ext.lib.Point(Ext.lib.Event.getPageX(C),Ext.lib.Event.getPageY(C));
if(!this.hasOuterHandles&&!this.DDM.isOverTarget(E,this)){}else{if(this.clickValidator(C)){this.setStartPosition();
this.b4MouseDown(C);this.onMouseDown(C);this.DDM.handleMouseDown(C,this);this.DDM.stopEvent(C);
}else{}}},clickValidator:function(C){var D=C.getTarget();return(this.isValidHandleChild(D)&&(this.id==this.handleElId||this.DDM.handleWasClicked(D,this.id)));
},addInvalidHandleType:function(D){var C=D.toUpperCase();this.invalidHandleTypes[C]=C;
},addInvalidHandleId:function(C){if(typeof C!=="string"){C=Ext.id(C);}this.invalidHandleIds[C]=C;
},addInvalidHandleClass:function(C){this.invalidHandleClasses.push(C);},removeInvalidHandleType:function(D){var C=D.toUpperCase();
delete this.invalidHandleTypes[C];},removeInvalidHandleId:function(C){if(typeof C!=="string"){C=Ext.id(C);
}delete this.invalidHandleIds[C];},removeInvalidHandleClass:function(C){for(var D=0,E=this.invalidHandleClasses.length;
D<E;++D){if(this.invalidHandleClasses[D]==C){delete this.invalidHandleClasses[D];
}}},isValidHandleChild:function(C){var E=true;var H;try{H=C.nodeName.toUpperCase();
}catch(G){H=C.nodeName;}E=E&&!this.invalidHandleTypes[H];E=E&&!this.invalidHandleIds[C.id];
for(var D=0,F=this.invalidHandleClasses.length;E&&D<F;++D){E=!Ext.fly(C).hasClass(this.invalidHandleClasses[D]);
}return E;},setXTicks:function(C,F){this.xTicks=[];this.xTickSize=F;var E={};for(var D=this.initPageX;
D>=this.minX;D=D-F){if(!E[D]){this.xTicks[this.xTicks.length]=D;E[D]=true;}}for(D=this.initPageX;
D<=this.maxX;D=D+F){if(!E[D]){this.xTicks[this.xTicks.length]=D;E[D]=true;}}this.xTicks.sort(this.DDM.numericSort);
},setYTicks:function(C,F){this.yTicks=[];this.yTickSize=F;var E={};for(var D=this.initPageY;
D>=this.minY;D=D-F){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true;}}for(D=this.initPageY;
D<=this.maxY;D=D+F){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true;}}this.yTicks.sort(this.DDM.numericSort);
},setXConstraint:function(D,C,E){this.leftConstraint=D;this.rightConstraint=C;this.minX=this.initPageX-D;
this.maxX=this.initPageX+C;if(E){this.setXTicks(this.initPageX,E);}this.constrainX=true;
},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks();
},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0;
},setYConstraint:function(E,D,C){this.topConstraint=E;this.bottomConstraint=D;this.minY=this.initPageY-E;
this.maxY=this.initPageY+D;if(C){this.setYTicks(this.initPageY,C);}this.constrainY=true;
},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var C=(this.maintainOffset)?this.lastPageX-this.initPageX:0;
var D=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(C,D);
}else{this.setInitPosition();}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);
}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize);
}},getTick:function(I,C){if(!C){return I;}else{if(C[0]>=I){return C[0];}else{for(var D=0,G=C.length;
D<G;++D){var E=D+1;if(C[E]&&C[E]>=I){var H=I-C[D];var F=C[E]-I;return(F>H)?C[D]:C[E];
}}return C[C.length-1];}}},toString:function(){return("DragDrop "+this.id);}};})();
if(!Ext.dd.DragDropMgr){Ext.dd.DragDropMgr=function(){var A=Ext.EventManager;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,init:function(){this.initialized=true;
},POINT:0,INTERSECT:1,mode:0,_execOnAll:function(C,F){for(var D in this.ids){for(var E in this.ids[D]){var B=this.ids[D][E];
if(!this.isTypeOfDD(B)){continue;}B[C].apply(B,F);}}},_onLoad:function(){this.init();
A.on(document,"mouseup",this.handleMouseUp,this,true);A.on(document,"mousemove",this.handleMouseMove,this,true);
A.on(window,"unload",this._onUnload,this,true);A.on(window,"resize",this._onResize,this,true);
},_onResize:function(B){this._execOnAll("resetConstraints",[]);},lock:function(){this.locked=true;
},unlock:function(){this.locked=false;},isLocked:function(){return this.locked;},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:350,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,regDragDrop:function(C,B){if(!this.initialized){this.init();
}if(!this.ids[B]){this.ids[B]={};}this.ids[B][C.id]=C;},removeDDFromGroup:function(B,C){if(!this.ids[C]){this.ids[C]={};
}var D=this.ids[C];if(D&&D[B.id]){delete D[B.id];}},_remove:function(C){for(var B in C.groups){if(B&&this.ids[B]&&this.ids[B][C.id]){delete this.ids[B][C.id];
}}delete this.handleIds[C.id];},regHandle:function(C,B){if(!this.handleIds[C]){this.handleIds[C]={};
}this.handleIds[C][B]=B;},isDragDrop:function(B){return(this.getDDById(B))?true:false;
},getRelated:function(B,G){var D=[];for(var E in B.groups){for(var C in this.ids[E]){var F=this.ids[E][C];
if(!this.isTypeOfDD(F)){continue;}if(!G||F.isTarget){D[D.length]=F;}}}return D;},isLegalTarget:function(B,D){var F=this.getRelated(B,true);
for(var C=0,E=F.length;C<E;++C){if(F[C].id==D.id){return true;}}return false;},isTypeOfDD:function(B){return(B&&B.__ygDragDrop);
},isHandle:function(C,B){return(this.handleIds[C]&&this.handleIds[C][B]);},getDDById:function(C){for(var B in this.ids){if(this.ids[B][C]){return this.ids[B][C];
}}return null;},handleMouseDown:function(B,D){if(Ext.QuickTips){Ext.QuickTips.disable();
}if(this.dragCurrent){this.handleMouseUp(B);}this.currentTarget=B.getTarget();this.dragCurrent=D;
var C=D.getEl();this.startX=B.getPageX();this.startY=B.getPageY();this.deltaX=this.startX-C.offsetLeft;
this.deltaY=this.startY-C.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var E=Ext.dd.DDM;
E.startDrag(E.startX,E.startY);},this.clickTimeThresh);},startDrag:function(B,C){clearTimeout(this.clickTimeout);
if(this.dragCurrent){this.dragCurrent.b4StartDrag(B,C);this.dragCurrent.startDrag(B,C);
}this.dragThreshMet=true;},handleMouseUp:function(B){if(Ext.QuickTips){Ext.QuickTips.enable();
}if(!this.dragCurrent){return ;}clearTimeout(this.clickTimeout);if(this.dragThreshMet){this.fireEvents(B,true);
}else{}this.stopDrag(B);this.stopEvent(B);},stopEvent:function(B){if(this.stopPropagation){B.stopPropagation();
}if(this.preventDefault){B.preventDefault();}},stopDrag:function(B){if(this.dragCurrent){if(this.dragThreshMet){this.dragCurrent.b4EndDrag(B);
this.dragCurrent.endDrag(B);}this.dragCurrent.onMouseUp(B);}this.dragCurrent=null;
this.dragOvers={};},handleMouseMove:function(B){if(!this.dragCurrent){return true;
}if(Ext.isIE&&(B.button!==0&&B.button!==1&&B.button!==2)){this.stopEvent(B);return this.handleMouseUp(B);
}if(!this.dragThreshMet){var D=Math.abs(this.startX-B.getPageX());var C=Math.abs(this.startY-B.getPageY());
if(D>this.clickPixelThresh||C>this.clickPixelThresh){this.startDrag(this.startX,this.startY);
}}if(this.dragThreshMet){this.dragCurrent.b4Drag(B);this.dragCurrent.onDrag(B);if(!this.dragCurrent.moveOnly){this.fireEvents(B,false);
}}this.stopEvent(B);return true;},fireEvents:function(H,I){var D=this.dragCurrent;
if(!D||D.isLocked()){return ;}var B=H.getPoint();var L=[];var N=[];var J=[];var E=[];
var O=[];for(var G in this.dragOvers){var M=this.dragOvers[G];if(!this.isTypeOfDD(M)){continue;
}if(!this.isOverTarget(B,M,this.mode)){N.push(M);}L[G]=true;delete this.dragOvers[G];
}for(var C in D.groups){if("string"!=typeof C){continue;}for(G in this.ids[C]){var F=this.ids[C][G];
if(!this.isTypeOfDD(F)){continue;}if(F.isTarget&&!F.isLocked()&&((F!=D)||(D.ignoreSelf===false))){if(this.isOverTarget(B,F,this.mode)){if(I){E.push(F);
}else{if(!L[F.id]){O.push(F);}else{J.push(F);}this.dragOvers[F.id]=F;}}}}}if(this.mode){if(N.length){D.b4DragOut(H,N);
D.onDragOut(H,N);}if(O.length){D.onDragEnter(H,O);}if(J.length){D.b4DragOver(H,J);
D.onDragOver(H,J);}if(E.length){D.b4DragDrop(H,E);D.onDragDrop(H,E);}}else{var K=0;
for(G=0,K=N.length;G<K;++G){D.b4DragOut(H,N[G].id);D.onDragOut(H,N[G].id);}for(G=0,K=O.length;
G<K;++G){D.onDragEnter(H,O[G].id);}for(G=0,K=J.length;G<K;++G){D.b4DragOver(H,J[G].id);
D.onDragOver(H,J[G].id);}for(G=0,K=E.length;G<K;++G){D.b4DragDrop(H,E[G].id);D.onDragDrop(H,E[G].id);
}}if(I&&!E.length){D.onInvalidDrop(H);}},getBestMatch:function(C){var B=null;var F=C.length;
if(F==1){B=C[0];}else{for(var D=0;D<F;++D){var E=C[D];if(E.cursorIsOver){B=E;break;
}else{if(!B||B.overlap.getArea()<E.overlap.getArea()){B=E;}}}}return B;},refreshCache:function(F){for(var E in F){if("string"!=typeof E){continue;
}for(var C in this.ids[E]){var D=this.ids[E][C];if(this.isTypeOfDD(D)){var B=this.getLocation(D);
if(B){this.locationCache[D.id]=B;}else{delete this.locationCache[D.id];}}}}},verifyEl:function(D){if(D){var C;
if(Ext.isIE){try{C=D.offsetParent;}catch(B){}}else{C=D.offsetParent;}if(C){return true;
}}return false;},getLocation:function(D){if(!this.isTypeOfDD(D)){return null;}var F=D.getEl(),H,L,M,B,I,C,K,J,G;
try{H=Ext.lib.Dom.getXY(F);}catch(E){}if(!H){return null;}L=H[0];M=L+F.offsetWidth;
B=H[1];I=B+F.offsetHeight;C=B-D.padding[0];K=M+D.padding[1];J=I+D.padding[2];G=L-D.padding[3];
return new Ext.lib.Region(C,K,J,G);},isOverTarget:function(D,G,J){var I=this.locationCache[G.id];
if(!I||!this.useCache){I=this.getLocation(G);this.locationCache[G.id]=I;}if(!I){return false;
}G.cursorIsOver=I.contains(D);var C=this.dragCurrent;if(!C||!C.getTargetCoord||(!J&&!C.constrainX&&!C.constrainY)){return G.cursorIsOver;
}G.overlap=null;var E=C.getTargetCoord(D.x,D.y);var H=C.getDragEl();var B=new Ext.lib.Region(E.y,E.x+H.offsetWidth,E.y+H.offsetHeight,E.x);
var F=B.intersect(I);if(F){G.overlap=F;return(J)?true:G.cursorIsOver;}else{return false;
}},_onUnload:function(C,B){Ext.dd.DragDropMgr.unregAll();},unregAll:function(){if(this.dragCurrent){this.stopDrag();
this.dragCurrent=null;}this._execOnAll("unreg",[]);for(var B in this.elementCache){delete this.elementCache[B];
}this.elementCache={};this.ids={};},elementCache:{},getElWrapper:function(C){var B=this.elementCache[C];
if(!B||!B.el){B=this.elementCache[C]=new this.ElementWrapper(Ext.getDom(C));}return B;
},getElement:function(B){return Ext.getDom(B);},getCss:function(C){var B=Ext.getDom(C);
return(B)?B.style:null;},ElementWrapper:function(B){this.el=B||null;this.id=this.el&&B.id;
this.css=this.el&&B.style;},getPosX:function(B){return Ext.lib.Dom.getX(B);},getPosY:function(B){return Ext.lib.Dom.getY(B);
},swapNode:function(B,D){if(B.swapNode){B.swapNode(D);}else{var C=D.parentNode;var E=D.nextSibling;
if(E==B){C.insertBefore(B,D);}else{if(D==B.nextSibling){C.insertBefore(D,B);}else{B.parentNode.replaceChild(D,B);
C.insertBefore(B,E);}}}},getScroll:function(){var B,D,C=document.documentElement,E=document.body;
if(C&&(C.scrollTop||C.scrollLeft)){B=C.scrollTop;D=C.scrollLeft;}else{if(E){B=E.scrollTop;
D=E.scrollLeft;}else{}}return{top:B,left:D};},getStyle:function(C,B){return Ext.fly(C).getStyle(B);
},getScrollTop:function(){return this.getScroll().top;},getScrollLeft:function(){return this.getScroll().left;
},moveToEl:function(C,B){var D=Ext.lib.Dom.getXY(B);Ext.lib.Dom.setXY(C,D);},numericSort:function(B,C){return(B-C);
},_timeoutCount:0,_addListeners:function(){var B=Ext.dd.DDM;if(Ext.lib.Event&&document){B._onLoad();
}else{if(B._timeoutCount>2000){}else{setTimeout(B._addListeners,10);if(document&&document.body){B._timeoutCount+=1;
}}}},handleWasClicked:function(C,B){if(this.isHandle(B,C.id)){return true;}else{var D=C.parentNode;
while(D){if(this.isHandle(B,D.id)){return true;}else{D=D.parentNode;}}}return false;
}};}();Ext.dd.DDM=Ext.dd.DragDropMgr;Ext.dd.DDM._addListeners();}Ext.dd.DD=function(B,C,A){if(B){this.init(B,C,A);
}};Ext.extend(Ext.dd.DD,Ext.dd.DragDrop,{scroll:true,autoOffset:function(C,B){var D=C-this.startPageX;
var A=B-this.startPageY;this.setDelta(D,A);},setDelta:function(A,B){this.deltaX=A;
this.deltaY=B;},setDragElPos:function(B,A){var C=this.getDragEl();this.alignElWithMouse(C,B,A);
},alignElWithMouse:function(E,B,G){var A=this.getTargetCoord(B,G);var D=E.dom?E:Ext.fly(E,"_dd");
if(!this.deltaSetXY){var C=[A.x,A.y];D.setXY(C);var H=D.getLeft(true);var F=D.getTop(true);
this.deltaSetXY=[H-A.x,F-A.y];}else{D.setLeftTop(A.x+this.deltaSetXY[0],A.y+this.deltaSetXY[1]);
}this.cachePosition(A.x,A.y);this.autoScroll(A.x,A.y,E.offsetHeight,E.offsetWidth);
return A;},cachePosition:function(A,C){if(A){this.lastPageX=A;this.lastPageY=C;}else{var B=Ext.lib.Dom.getXY(this.getEl());
this.lastPageX=B[0];this.lastPageY=B[1];}},autoScroll:function(H,D,A,I){if(this.scroll){var F=Ext.lib.Dom.getViewHeight();
var J=Ext.lib.Dom.getViewWidth();var B=this.DDM.getScrollTop();var N=this.DDM.getScrollLeft();
var C=A+D;var G=I+H;var E=(F+B-D-this.deltaY);var M=(J+N-H-this.deltaX);var K=40;
var L=(document.all)?80:30;if(C>F&&E<K){window.scrollTo(N,B+L);}if(D<B&&B>0&&D-B<K){window.scrollTo(N,B-L);
}if(G>J&&M<K){window.scrollTo(N+L,B);}if(H<N&&N>0&&H-N<K){window.scrollTo(N-L,B);
}}},getTargetCoord:function(C,B){var D=C-this.deltaX;var A=B-this.deltaY;if(this.constrainX){if(D<this.minX){D=this.minX;
}if(D>this.maxX){D=this.maxX;}}if(this.constrainY){if(A<this.minY){A=this.minY;}if(A>this.maxY){A=this.maxY;
}}D=this.getTick(D,this.xTicks);A=this.getTick(A,this.yTicks);return{x:D,y:A};},applyConfig:function(){Ext.dd.DD.superclass.applyConfig.call(this);
this.scroll=(this.config.scroll!==false);},b4MouseDown:function(A){this.autoOffset(A.getPageX(),A.getPageY());
},b4Drag:function(A){this.setDragElPos(A.getPageX(),A.getPageY());},toString:function(){return("DD "+this.id);
}});Ext.dd.DDProxy=function(B,C,A){if(B){this.init(B,C,A);this.initFrame();}};Ext.dd.DDProxy.dragElId="ygddfdiv";
Ext.extend(Ext.dd.DDProxy,Ext.dd.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var B=this;
var D=document.body;if(!D||!D.firstChild){setTimeout(function(){B.createFrame();},50);
return ;}var A=this.getDragEl();if(!A){A=document.createElement("div");A.id=this.dragElId;
var C=A.style;C.position="absolute";C.visibility="hidden";C.cursor="move";C.border="2px solid #aaa";
C.zIndex=999;D.insertBefore(A,D.firstChild);}},initFrame:function(){this.createFrame();
},applyConfig:function(){Ext.dd.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);
this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId);
},showFrame:function(B,A){var D=this.getEl();var E=this.getDragEl();var C=E.style;
this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(C.width,10)/2),Math.round(parseInt(C.height,10)/2));
}this.setDragElPos(B,A);Ext.fly(E).show();},_resizeProxy:function(){if(this.resizeFrame){var A=this.getEl();
Ext.fly(this.getDragEl()).setSize(A.offsetWidth,A.offsetHeight);}},b4MouseDown:function(A){var C=A.getPageX();
var B=A.getPageY();this.autoOffset(C,B);this.setDragElPos(C,B);},b4StartDrag:function(B,A){this.showFrame(B,A);
},b4EndDrag:function(A){Ext.fly(this.getDragEl()).hide();},endDrag:function(B){var A=this.getEl();
var C=this.getDragEl();C.style.visibility="";this.beforeMove();A.style.visibility="hidden";
Ext.dd.DDM.moveToEl(A,C);C.style.visibility="hidden";A.style.visibility="";this.afterDrag();
},beforeMove:function(){},afterDrag:function(){},toString:function(){return("DDProxy "+this.id);
}});Ext.dd.DDTarget=function(B,C,A){if(B){this.initTarget(B,C,A);}};Ext.extend(Ext.dd.DDTarget,Ext.dd.DragDrop,{getDragEl:Ext.emptyFn,isValidHandleChild:Ext.emptyFn,startDrag:Ext.emptyFn,endDrag:Ext.emptyFn,onDrag:Ext.emptyFn,onDragDrop:Ext.emptyFn,onDragEnter:Ext.emptyFn,onDragOut:Ext.emptyFn,onDragOver:Ext.emptyFn,onInvalidDrop:Ext.emptyFn,onMouseDown:Ext.emptyFn,onMouseUp:Ext.emptyFn,setXConstraint:Ext.emptyFn,setYConstraint:Ext.emptyFn,resetConstraints:Ext.emptyFn,clearConstraints:Ext.emptyFn,clearTicks:Ext.emptyFn,setInitPosition:Ext.emptyFn,setDragElId:Ext.emptyFn,setHandleElId:Ext.emptyFn,setOuterHandleElId:Ext.emptyFn,addInvalidHandleClass:Ext.emptyFn,addInvalidHandleId:Ext.emptyFn,addInvalidHandleType:Ext.emptyFn,removeInvalidHandleClass:Ext.emptyFn,removeInvalidHandleId:Ext.emptyFn,removeInvalidHandleType:Ext.emptyFn,toString:function(){return("DDTarget "+this.id);
}});Ext.dd.DragTracker=Ext.extend(Ext.util.Observable,{active:false,tolerance:5,autoStart:false,constructor:function(A){Ext.apply(this,A);
this.addEvents("mousedown","mouseup","mousemove","dragstart","dragend","drag");this.dragRegion=new Ext.lib.Region(0,0,0,0);
if(this.el){this.initEl(this.el);}Ext.dd.DragTracker.superclass.constructor.call(this,A);
},initEl:function(A){this.el=Ext.get(A);A.on("mousedown",this.onMouseDown,this,this.delegate?{delegate:this.delegate}:undefined);
},destroy:function(){this.el.un("mousedown",this.onMouseDown,this);},onMouseDown:function(B,A){if(this.fireEvent("mousedown",this,B)!==false&&this.onBeforeStart(B)!==false){this.startXY=this.lastXY=B.getXY();
this.dragTarget=this.delegate?A:this.el.dom;if(this.preventDefault!==false){B.preventDefault();
}var C=Ext.getDoc();C.on("mouseup",this.onMouseUp,this);C.on("mousemove",this.onMouseMove,this);
C.on("selectstart",this.stopSelect,this);if(this.autoStart){this.timer=this.triggerStart.defer(this.autoStart===true?1000:this.autoStart,this);
}}},onMouseMove:function(A,C){if(this.active&&Ext.isIE&&!A.browserEvent.button){A.preventDefault();
this.onMouseUp(A);return ;}A.preventDefault();var B=A.getXY(),D=this.startXY;this.lastXY=B;
if(!this.active){if(Math.abs(D[0]-B[0])>this.tolerance||Math.abs(D[1]-B[1])>this.tolerance){this.triggerStart();
}else{return ;}}this.fireEvent("mousemove",this,A);this.onDrag(A);this.fireEvent("drag",this,A);
},onMouseUp:function(B){var A=Ext.getDoc();A.un("mousemove",this.onMouseMove,this);
A.un("mouseup",this.onMouseUp,this);A.un("selectstart",this.stopSelect,this);B.preventDefault();
this.clearStart();var C=this.active;this.active=false;delete this.elRegion;this.fireEvent("mouseup",this,B);
if(C){this.onEnd(B);this.fireEvent("dragend",this,B);}},triggerStart:function(A){this.clearStart();
this.active=true;this.onStart(this.startXY);this.fireEvent("dragstart",this,this.startXY);
},clearStart:function(){if(this.timer){clearTimeout(this.timer);delete this.timer;
}},stopSelect:function(A){A.stopEvent();return false;},onBeforeStart:function(A){},onStart:function(A){},onDrag:function(A){},onEnd:function(A){},getDragTarget:function(){return this.dragTarget;
},getDragCt:function(){return this.el;},getXY:function(A){return A?this.constrainModes[A].call(this,this.lastXY):this.lastXY;
},getOffset:function(B){var A=this.getXY(B);var C=this.startXY;return[C[0]-A[0],C[1]-A[1]];
},constrainModes:{point:function(A){if(!this.elRegion){this.elRegion=this.getDragCt().getRegion();
}var B=this.dragRegion;B.left=A[0];B.top=A[1];B.right=A[0];B.bottom=A[1];B.constrainTo(this.elRegion);
return[B.left,B.top];}}});Ext.dd.ScrollManager=function(){var G=Ext.dd.DragDropMgr;
var A={};var F=null;var E={};var D=function(K){F=null;H();};var B=function(){if(G.dragCurrent){G.refreshCache(G.dragCurrent.groups);
}};var J=function(){if(G.dragCurrent){var K=Ext.dd.ScrollManager;var L=E.el.ddScrollConfig?E.el.ddScrollConfig.increment:K.increment;
if(!K.animate){if(E.el.scroll(E.dir,L)){B();}}else{E.el.scroll(E.dir,L,true,K.animDuration,B);
}}};var H=function(){if(E.id){clearInterval(E.id);}E.id=0;E.el=null;E.dir="";};var I=function(M,L){H();
E.el=M;E.dir=L;var K=(M.ddScrollConfig&&M.ddScrollConfig.frequency)?M.ddScrollConfig.frequency:Ext.dd.ScrollManager.frequency;
E.id=setInterval(J,K);};var C=function(Q,M){if(M||!G.dragCurrent){return ;}var K=Ext.dd.ScrollManager;
if(!F||F!=G.dragCurrent){F=G.dragCurrent;K.refreshCache();}var N=Ext.lib.Event.getXY(Q);
var O=new Ext.lib.Point(N[0],N[1]);for(var S in A){var P=A[S],R=P._region;var L=P.ddScrollConfig?P.ddScrollConfig:K;
if(R&&R.contains(O)&&P.isScrollable()){if(R.bottom-O.y<=L.vthresh){if(E.el!=P){I(P,"down");
}return ;}else{if(R.right-O.x<=L.hthresh){if(E.el!=P){I(P,"left");}return ;}else{if(O.y-R.top<=L.vthresh){if(E.el!=P){I(P,"up");
}return ;}else{if(O.x-R.left<=L.hthresh){if(E.el!=P){I(P,"right");}return ;}}}}}}H();
};G.fireEvents=G.fireEvents.createSequence(C,G);G.stopDrag=G.stopDrag.createSequence(D,G);
return{register:function(K){if(Ext.isArray(K)){for(var M=0,L=K.length;M<L;M++){this.register(K[M]);
}}else{K=Ext.get(K);A[K.id]=K;}},unregister:function(K){if(Ext.isArray(K)){for(var M=0,L=K.length;
M<L;M++){this.unregister(K[M]);}}else{K=Ext.get(K);delete A[K.id];}},vthresh:25,hthresh:25,increment:100,frequency:500,animate:true,animDuration:0.4,refreshCache:function(){for(var K in A){if(typeof A[K]=="object"){A[K]._region=A[K].getRegion();
}}}};}();Ext.dd.Registry=function(){var A={};var B={};var D=0;var C=function(E,G){if(typeof E=="string"){return E;
}var F=E.id;if(!F&&G!==false){F="extdd-"+(++D);E.id=F;}return F;};return{register:function(H,I){I=I||{};
if(typeof H=="string"){H=document.getElementById(H);}I.ddel=H;A[C(H)]=I;if(I.isHandle!==false){B[I.ddel.id]=I;
}if(I.handles){var E=I.handles;for(var F=0,G=E.length;F<G;F++){B[C(E[F])]=I;}}},unregister:function(I){var G=C(I,false);
var J=A[G];if(J){delete A[G];if(J.handles){var E=J.handles;for(var F=0,H=E.length;
F<H;F++){delete B[C(E[F],false)];}}}},getHandle:function(E){if(typeof E!="string"){E=E.id;
}return B[E];},getHandleFromEvent:function(E){var F=Ext.lib.Event.getTarget(E);return F?B[F.id]:null;
},getTarget:function(E){if(typeof E!="string"){E=E.id;}return A[E];},getTargetFromEvent:function(E){var F=Ext.lib.Event.getTarget(E);
return F?A[F.id]||B[F.id]:null;}};}();Ext.dd.StatusProxy=function(A){Ext.apply(this,A);
this.id=this.id||Ext.id();this.el=new Ext.Layer({dh:{id:this.id,tag:"div",cls:"x-dd-drag-proxy "+this.dropNotAllowed,children:[{tag:"div",cls:"x-dd-drop-icon"},{tag:"div",cls:"x-dd-drag-ghost"}]},shadow:!A||A.shadow!==false});
this.ghost=Ext.get(this.el.dom.childNodes[1]);this.dropStatus=this.dropNotAllowed;
};Ext.dd.StatusProxy.prototype={dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",setStatus:function(A){A=A||this.dropNotAllowed;
if(this.dropStatus!=A){this.el.replaceClass(this.dropStatus,A);this.dropStatus=A;
}},reset:function(A){this.el.dom.className="x-dd-drag-proxy "+this.dropNotAllowed;
this.dropStatus=this.dropNotAllowed;if(A){this.ghost.update("");}},update:function(B){if(typeof B=="string"){this.ghost.update(B);
}else{this.ghost.update("");B.style.margin="0";this.ghost.dom.appendChild(B);}var A=this.ghost.dom.firstChild;
if(A){Ext.fly(A).setStyle("float","none");}},getEl:function(){return this.el;},getGhost:function(){return this.ghost;
},hide:function(A){this.el.hide();if(A){this.reset(true);}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop();
}},show:function(){this.el.show();},sync:function(){this.el.sync();},repair:function(A,B,C){this.callback=B;
this.scope=C;if(A&&this.animRepair!==false){this.el.addClass("x-dd-drag-repair");
this.el.hideUnders(true);this.anim=this.el.shift({duration:this.repairDuration||0.5,easing:"easeOut",xy:A,stopFx:true,callback:this.afterRepair,scope:this});
}else{this.afterRepair();}},afterRepair:function(){this.hide(true);if(typeof this.callback=="function"){this.callback.call(this.scope||this);
}this.callback=null;this.scope=null;},destroy:function(){Ext.destroy(this.ghost,this.el);
}};Ext.dd.DragSource=function(A,B){this.el=Ext.get(A);if(!this.dragData){this.dragData={};
}Ext.apply(this,B);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy();}Ext.dd.DragSource.superclass.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:false,isTarget:false,scroll:this.scroll===true});
this.dragging=false;};Ext.extend(Ext.dd.DragSource,Ext.dd.DDProxy,{dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",getDragData:function(A){return this.dragData;
},onDragEnter:function(C,A){var B=Ext.dd.DragDropMgr.getDDById(A);this.cachedTarget=B;
if(this.beforeDragEnter(B,C,A)!==false){if(B.isNotifyTarget){var D=B.notifyEnter(this,C,this.dragData);
this.proxy.setStatus(D);}else{this.proxy.setStatus(this.dropAllowed);}if(this.afterDragEnter){this.afterDragEnter(B,C,A);
}}},beforeDragEnter:function(A,C,B){return true;},alignElWithMouse:function(){Ext.dd.DragSource.superclass.alignElWithMouse.apply(this,arguments);
this.proxy.sync();},onDragOver:function(C,A){var B=this.cachedTarget||Ext.dd.DragDropMgr.getDDById(A);
if(this.beforeDragOver(B,C,A)!==false){if(B.isNotifyTarget){var D=B.notifyOver(this,C,this.dragData);
this.proxy.setStatus(D);}if(this.afterDragOver){this.afterDragOver(B,C,A);}}},beforeDragOver:function(A,C,B){return true;
},onDragOut:function(A,B){var C=this.cachedTarget||Ext.dd.DragDropMgr.getDDById(B);
if(this.beforeDragOut(C,A,B)!==false){if(C.isNotifyTarget){C.notifyOut(this,A,this.dragData);
}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(C,A,B);}}this.cachedTarget=null;
},beforeDragOut:function(A,C,B){return true;},onDragDrop:function(A,B){var C=this.cachedTarget||Ext.dd.DragDropMgr.getDDById(B);
if(this.beforeDragDrop(C,A,B)!==false){if(C.isNotifyTarget){if(C.notifyDrop(this,A,this.dragData)){this.onValidDrop(C,A,B);
}else{this.onInvalidDrop(C,A,B);}}else{this.onValidDrop(C,A,B);}if(this.afterDragDrop){this.afterDragDrop(C,A,B);
}}delete this.cachedTarget;},beforeDragDrop:function(A,C,B){return true;},onValidDrop:function(A,C,B){this.hideProxy();
if(this.afterValidDrop){this.afterValidDrop(A,C,B);}},getRepairXY:function(A,B){return this.el.getXY();
},onInvalidDrop:function(A,C,B){this.beforeInvalidDrop(A,C,B);if(this.cachedTarget){if(this.cachedTarget.isNotifyTarget){this.cachedTarget.notifyOut(this,C,this.dragData);
}this.cacheTarget=null;}this.proxy.repair(this.getRepairXY(C,this.dragData),this.afterRepair,this);
if(this.afterInvalidDrop){this.afterInvalidDrop(C,B);}},afterRepair:function(){if(Ext.enableFx){this.el.highlight(this.hlColor||"c3daf9");
}this.dragging=false;},beforeInvalidDrop:function(A,C,B){return true;},handleMouseDown:function(A){if(this.dragging){return ;
}var B=this.getDragData(A);if(B&&this.onBeforeDrag(B,A)!==false){this.dragData=B;
this.proxy.stop();Ext.dd.DragSource.superclass.handleMouseDown.apply(this,arguments);
}},onBeforeDrag:function(B,A){return true;},onStartDrag:Ext.emptyFn,startDrag:function(B,A){this.proxy.reset();
this.dragging=true;this.proxy.update("");this.onInitDrag(B,A);this.proxy.show();},onInitDrag:function(C,B){var A=this.el.dom.cloneNode(true);
A.id=Ext.id();this.proxy.update(A);this.onStartDrag(C,B);return true;},getProxy:function(){return this.proxy;
},hideProxy:function(){this.proxy.hide();this.proxy.reset(true);this.dragging=false;
},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups);},b4EndDrag:function(A){},endDrag:function(A){this.onEndDrag(this.dragData,A);
},onEndDrag:function(B,A){},autoOffset:function(B,A){this.setDelta(-12,-20);},destroy:function(){Ext.dd.DragSource.superclass.destroy.call(this);
Ext.destroy(this.proxy);}});Ext.dd.DropTarget=function(A,B){this.el=Ext.get(A);Ext.apply(this,B);
if(this.containerScroll){Ext.dd.ScrollManager.register(this.el);}Ext.dd.DropTarget.superclass.constructor.call(this,this.el.dom,this.ddGroup||this.group,{isTarget:true});
};Ext.extend(Ext.dd.DropTarget,Ext.dd.DDTarget,{dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",isTarget:true,isNotifyTarget:true,notifyEnter:function(C,B,A){if(this.overClass){this.el.addClass(this.overClass);
}return this.dropAllowed;},notifyOver:function(C,B,A){return this.dropAllowed;},notifyOut:function(C,B,A){if(this.overClass){this.el.removeClass(this.overClass);
}},notifyDrop:function(C,B,A){return false;}});Ext.dd.DragZone=function(A,B){Ext.dd.DragZone.superclass.constructor.call(this,A,B);
if(this.containerScroll){Ext.dd.ScrollManager.register(this.el);}};Ext.extend(Ext.dd.DragZone,Ext.dd.DragSource,{getDragData:function(A){return Ext.dd.Registry.getHandleFromEvent(A);
},onInitDrag:function(B,A){this.proxy.update(this.dragData.ddel.cloneNode(true));
this.onStartDrag(B,A);return true;},afterRepair:function(){if(Ext.enableFx){Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor||"c3daf9");
}this.dragging=false;},getRepairXY:function(A){return Ext.Element.fly(this.dragData.ddel).getXY();
}});Ext.dd.DropZone=function(A,B){Ext.dd.DropZone.superclass.constructor.call(this,A,B);
};Ext.extend(Ext.dd.DropZone,Ext.dd.DropTarget,{getTargetFromEvent:function(A){return Ext.dd.Registry.getTargetFromEvent(A);
},onNodeEnter:function(A,D,C,B){},onNodeOver:function(A,D,C,B){return this.dropAllowed;
},onNodeOut:function(A,D,C,B){},onNodeDrop:function(A,D,C,B){return false;},onContainerOver:function(C,B,A){return this.dropNotAllowed;
},onContainerDrop:function(C,B,A){return false;},notifyEnter:function(C,B,A){return this.dropNotAllowed;
},notifyOver:function(D,C,B){var A=this.getTargetFromEvent(C);if(!A){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,D,C,B);
this.lastOverNode=null;}return this.onContainerOver(D,C,B);}if(this.lastOverNode!=A){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,D,C,B);
}this.onNodeEnter(A,D,C,B);this.lastOverNode=A;}return this.onNodeOver(A,D,C,B);},notifyOut:function(C,B,A){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,C,B,A);
this.lastOverNode=null;}},notifyDrop:function(D,C,B){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,D,C,B);
this.lastOverNode=null;}var A=this.getTargetFromEvent(C);return A?this.onNodeDrop(A,D,C,B):this.onContainerDrop(D,C,B);
},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups);}});Ext.Element.addMethods({initDD:function(C,B,A){var D=new Ext.dd.DD(Ext.id(this.dom),C,B);
return Ext.apply(D,A);},initDDProxy:function(C,B,A){var D=new Ext.dd.DDProxy(Ext.id(this.dom),C,B);
return Ext.apply(D,A);},initDDTarget:function(C,B,A){var D=new Ext.dd.DDTarget(Ext.id(this.dom),C,B);
return Ext.apply(D,A);}});Ext.data.Api=(function(){var A={};return{actions:{create:"create",read:"read",update:"update",destroy:"destroy"},restActions:{create:"POST",read:"GET",update:"PUT",destroy:"DELETE"},isAction:function(B){return(Ext.data.Api.actions[B])?true:false;
},getVerb:function(B){if(A[B]){return A[B];}for(var C in this.actions){if(this.actions[C]===B){A[B]=C;
break;}}return(A[B]!==undefined)?A[B]:null;},isValid:function(D){var C=[];var B=this.actions;
for(var E in D){if(!(E in B)){C.push(E);}}return(!C.length)?true:C;},hasUniqueUrl:function(F,B){var E=(F.api[B])?F.api[B].url:null;
var D=true;for(var C in F.api){if((D=(C===B)?true:(F.api[C].url!=E)?true:false)===false){break;
}}return D;},prepare:function(C){if(!C.api){C.api={};}for(var B in this.actions){var D=this.actions[B];
C.api[D]=C.api[D]||C.url||C.directFn;if(typeof (C.api[D])=="string"){C.api[D]={url:C.api[D],method:(C.restful===true)?Ext.data.Api.restActions[D]:undefined};
}}},restify:function(B){B.restful=true;for(var C in this.restActions){B.api[this.actions[C]].method||(B.api[this.actions[C]].method=this.restActions[C]);
}B.onWrite=B.onWrite.createInterceptor(function(E,I,D,F){var G=I.reader;var H=new Ext.data.Response({action:E,raw:D});
switch(D.status){case 200:return true;break;case 201:if(Ext.isEmpty(H.raw.responseText)){H.success=true;
}else{return true;}break;case 204:H.success=true;H.data=null;break;default:return true;
break;}if(H.success===true){this.fireEvent("write",this,E,H.data,H,F,I.request.arg);
}else{this.fireEvent("exception",this,"remote",E,I,H,F);}I.request.callback.call(I.request.scope,H.data,H,H.success);
return false;},B);}};})();Ext.data.Response=function(A,B){Ext.apply(this,A,{raw:B});
};Ext.data.Response.prototype={message:null,success:false,status:null,root:null,raw:null,getMessage:function(){return this.message;
},getSuccess:function(){return this.success;},getStatus:function(){return this.status;
},getRoot:function(){return this.root;},getRawResponse:function(){return this.raw;
}};Ext.data.Api.Error=Ext.extend(Ext.Error,{constructor:function(A,B){this.arg=B;
Ext.Error.call(this,A);},name:"Ext.data.Api"});Ext.apply(Ext.data.Api.Error.prototype,{lang:{"action-url-undefined":"No fallback url defined for this action.  When defining a DataProxy api, please be sure to define an url for each CRUD action in Ext.data.Api.actions or define a default url in addition to your api-configuration.",invalid:"received an invalid API-configuration.  Please ensure your proxy API-configuration contains only the actions defined in Ext.data.Api.actions","invalid-url":"Invalid url.  Please review your proxy configuration.",execute:'Attempted to execute an unknown action.  Valid API actions are defined in Ext.data.Api.actions"'}});
Ext.data.SortTypes={none:function(A){return A;},stripTagsRE:/<\/?[^>]+>/gi,asText:function(A){return String(A).replace(this.stripTagsRE,"");
},asUCText:function(A){return String(A).toUpperCase().replace(this.stripTagsRE,"");
},asUCString:function(A){return String(A).toUpperCase();},asDate:function(A){if(!A){return 0;
}if(Ext.isDate(A)){return A.getTime();}return Date.parse(String(A));},asFloat:function(B){var A=parseFloat(String(B).replace(/,/g,""));
return isNaN(A)?0:A;},asInt:function(B){var A=parseInt(String(B).replace(/,/g,""),10);
return isNaN(A)?0:A;}};Ext.data.Record=function(B,A){this.id=(A||A===0)?A:Ext.data.Record.id(this);
this.data=B||{};};Ext.data.Record.create=function(B){var D=Ext.extend(Ext.data.Record,{});
var A=D.prototype;A.fields=new Ext.util.MixedCollection(false,function(F){return F.name;
});for(var C=0,E=B.length;C<E;C++){A.fields.add(new Ext.data.Field(B[C]));}D.getField=function(F){return A.fields.get(F);
};return D;};Ext.data.Record.PREFIX="ext-record";Ext.data.Record.AUTO_ID=1;Ext.data.Record.EDIT="edit";
Ext.data.Record.REJECT="reject";Ext.data.Record.COMMIT="commit";Ext.data.Record.id=function(A){A.phantom=true;
return[Ext.data.Record.PREFIX,"-",Ext.data.Record.AUTO_ID++].join("");};Ext.data.Record.prototype={dirty:false,editing:false,error:null,modified:null,phantom:false,join:function(A){this.store=A;
},set:function(C,B){var A=Ext.isPrimitive(B)?String:Ext.encode;if(A(this.data[C])==A(B)){return ;
}this.dirty=true;if(!this.modified){this.modified={};}if(this.modified[C]===undefined){this.modified[C]=this.data[C];
}this.data[C]=B;if(!this.editing){this.afterEdit();}},afterEdit:function(){if(this.store!=undefined&&typeof this.store.afterEdit=="function"){this.store.afterEdit(this);
}},afterReject:function(){if(this.store){this.store.afterReject(this);}},afterCommit:function(){if(this.store){this.store.afterCommit(this);
}},get:function(A){return this.data[A];},beginEdit:function(){this.editing=true;this.modified=this.modified||{};
},cancelEdit:function(){this.editing=false;delete this.modified;},endEdit:function(){this.editing=false;
if(this.dirty){this.afterEdit();}},reject:function(A){var C=this.modified;for(var B in C){if(typeof C[B]!="function"){this.data[B]=C[B];
}}this.dirty=false;delete this.modified;this.editing=false;if(A!==true){this.afterReject();
}},commit:function(A){this.dirty=false;delete this.modified;this.editing=false;if(A!==true){this.afterCommit();
}},getChanges:function(){var C=this.modified,A={};for(var B in C){if(C.hasOwnProperty(B)){A[B]=this.data[B];
}}return A;},hasError:function(){return this.error!==null;},clearError:function(){this.error=null;
},copy:function(A){return new this.constructor(Ext.apply({},this.data),A||this.id);
},isModified:function(A){return !!(this.modified&&this.modified.hasOwnProperty(A));
},isValid:function(){return this.fields.find(function(A){return(A.allowBlank===false&&Ext.isEmpty(this.data[A.name]))?true:false;
},this)?false:true;},markDirty:function(){this.dirty=true;if(!this.modified){this.modified={};
}this.fields.each(function(A){this.modified[A.name]=this.data[A.name];},this);}};
Ext.StoreMgr=Ext.apply(new Ext.util.MixedCollection(),{register:function(){for(var B=0,A;
(A=arguments[B]);B++){this.add(A);}},unregister:function(){for(var B=0,A;(A=arguments[B]);
B++){this.remove(this.lookup(A));}},lookup:function(B){if(Ext.isArray(B)){var C=["field1"],A=!Ext.isArray(B[0]);
if(!A){for(var D=2,E=B[0].length;D<=E;++D){C.push("field"+D);}}return new Ext.data.ArrayStore({fields:C,data:B,expandData:A,autoDestroy:true,autoCreated:true});
}return Ext.isObject(B)?(B.events?B:Ext.create(B,"store")):this.get(B);},getKey:function(A){return A.storeId;
}});Ext.data.Store=Ext.extend(Ext.util.Observable,{writer:undefined,remoteSort:false,autoDestroy:false,pruneModifiedRecords:false,lastOptions:null,autoSave:true,batch:true,restful:false,paramNames:undefined,defaultParamNames:{start:"start",limit:"limit",sort:"sort",dir:"dir"},isDestroyed:false,hasMultiSort:false,batchKey:"_ext_batch_",constructor:function(A){this.data=new Ext.util.MixedCollection(false);
this.data.getKey=function(B){return B.id;};this.removed=[];if(A&&A.data){this.inlineData=A.data;
delete A.data;}Ext.apply(this,A);this.baseParams=Ext.isObject(this.baseParams)?this.baseParams:{};
this.paramNames=Ext.applyIf(this.paramNames||{},this.defaultParamNames);if((this.url||this.api)&&!this.proxy){this.proxy=new Ext.data.HttpProxy({url:this.url,api:this.api});
}if(this.restful===true&&this.proxy){this.batch=false;Ext.data.Api.restify(this.proxy);
}if(this.reader){if(!this.recordType){this.recordType=this.reader.recordType;}if(this.reader.onMetaChange){this.reader.onMetaChange=this.reader.onMetaChange.createSequence(this.onMetaChange,this);
}if(this.writer){if(this.writer instanceof (Ext.data.DataWriter)===false){this.writer=this.buildWriter(this.writer);
}this.writer.meta=this.reader.meta;this.pruneModifiedRecords=true;}}if(this.recordType){this.fields=this.recordType.prototype.fields;
}this.modified=[];this.addEvents("datachanged","metachange","add","remove","update","clear","exception","beforeload","load","loadexception","beforewrite","write","beforesave","save");
if(this.proxy){this.relayEvents(this.proxy,["loadexception","exception"]);}if(this.writer){this.on({scope:this,add:this.createRecords,remove:this.destroyRecord,update:this.updateRecord,clear:this.onClear});
}this.sortToggle={};if(this.sortField){this.setDefaultSort(this.sortField,this.sortDir);
}else{if(this.sortInfo){this.setDefaultSort(this.sortInfo.field,this.sortInfo.direction);
}}Ext.data.Store.superclass.constructor.call(this);if(this.id){this.storeId=this.id;
delete this.id;}if(this.storeId){Ext.StoreMgr.register(this);}if(this.inlineData){this.loadData(this.inlineData);
delete this.inlineData;}else{if(this.autoLoad){this.load.defer(10,this,[typeof this.autoLoad=="object"?this.autoLoad:undefined]);
}}this.batchCounter=0;this.batches={};},buildWriter:function(A){var C=undefined,B=(A.format||"json").toLowerCase();
switch(B){case"json":C=Ext.data.JsonWriter;break;case"xml":C=Ext.data.XmlWriter;break;
default:C=Ext.data.JsonWriter;}return new C(A);},destroy:function(){if(!this.isDestroyed){if(this.storeId){Ext.StoreMgr.unregister(this);
}this.clearData();this.data=null;Ext.destroy(this.proxy);this.reader=this.writer=null;
this.purgeListeners();this.isDestroyed=true;}},add:function(B){B=[].concat(B);if(B.length<1){return ;
}for(var A=0,D=B.length;A<D;A++){B[A].join(this);}var C=this.data.length;this.data.addAll(B);
if(this.snapshot){this.snapshot.addAll(B);}this.fireEvent("add",this,B,C);},addSorted:function(B){var A=this.findInsertIndex(B);
this.insert(A,B);},remove:function(B){if(Ext.isArray(B)){Ext.each(B,function(C){this.remove(C);
},this);}var A=this.data.indexOf(B);if(A>-1){B.join(null);this.data.removeAt(A);}if(this.pruneModifiedRecords){this.modified.remove(B);
}if(this.snapshot){this.snapshot.remove(B);}if(A>-1){this.fireEvent("remove",this,B,A);
}},removeAt:function(A){this.remove(this.getAt(A));},removeAll:function(A){var B=[];
this.each(function(C){B.push(C);});this.clearData();if(this.snapshot){this.snapshot.clear();
}if(this.pruneModifiedRecords){this.modified=[];}if(A!==true){this.fireEvent("clear",this,B);
}},onClear:function(A,B){Ext.each(B,function(C,D){this.destroyRecord(this,C,D);},this);
},insert:function(C,B){B=[].concat(B);for(var A=0,D=B.length;A<D;A++){this.data.insert(C,B[A]);
B[A].join(this);}if(this.snapshot){this.snapshot.addAll(B);}this.fireEvent("add",this,B,C);
},indexOf:function(A){return this.data.indexOf(A);},indexOfId:function(A){return this.data.indexOfKey(A);
},getById:function(A){return(this.snapshot||this.data).key(A);},getAt:function(A){return this.data.itemAt(A);
},getRange:function(A,B){return this.data.getRange(A,B);},storeOptions:function(A){A=Ext.apply({},A);
delete A.callback;delete A.scope;this.lastOptions=A;},clearData:function(){this.data.each(function(A){A.join(null);
});this.data.clear();},load:function(A){A=Ext.apply({},A);this.storeOptions(A);if(this.sortInfo&&this.remoteSort){var C=this.paramNames;
A.params=Ext.apply({},A.params);A.params[C.sort]=this.sortInfo.field;A.params[C.dir]=this.sortInfo.direction;
}try{return this.execute("read",null,A);}catch(B){this.handleException(B);return false;
}},updateRecord:function(A,C,B){if(B==Ext.data.Record.EDIT&&this.autoSave===true&&(!C.phantom||(C.phantom&&C.isValid()))){this.save();
}},createRecords:function(D,C,A){for(var B=0,E=C.length;B<E;B++){if(C[B].phantom&&C[B].isValid()){C[B].markDirty();
this.modified.push(C[B]);}}if(this.autoSave===true){this.save();}},destroyRecord:function(A,C,B){if(this.modified.indexOf(C)!=-1){this.modified.remove(C);
}if(!C.phantom){this.removed.push(C);C.lastIndex=B;if(this.autoSave===true){this.save();
}}},execute:function(B,E,D,C){if(!Ext.data.Api.isAction(B)){throw new Ext.data.Api.Error("execute",B);
}D=Ext.applyIf(D||{},{params:{}});if(C!==undefined){this.addToBatch(C);}var A=true;
if(B==="read"){A=this.fireEvent("beforeload",this,D);Ext.applyIf(D.params,this.baseParams);
}else{if(this.writer.listful===true&&this.restful!==true){E=(Ext.isArray(E))?E:[E];
}else{if(Ext.isArray(E)&&E.length==1){E=E.shift();}}if((A=this.fireEvent("beforewrite",this,B,E,D))!==false){this.writer.apply(D.params,this.baseParams,B,E);
}}if(A!==false){if(this.writer&&this.proxy.url&&!this.proxy.restful&&!Ext.data.Api.hasUniqueUrl(this.proxy,B)){D.params.xaction=B;
}this.proxy.request(Ext.data.Api.actions[B],E,D.params,this.reader,this.createCallback(B,E,C),this,D);
}return A;},save:function(){if(!this.writer){throw new Ext.data.Store.Error("writer-undefined");
}var D=[],B,C,A,F={};if(this.removed.length){D.push(["destroy",this.removed]);}var E=[].concat(this.getModifiedRecords());
if(E.length){var H=[];for(var I=E.length-1;I>=0;I--){if(E[I].phantom===true){var G=E.splice(I,1).shift();
if(G.isValid()){H.push(G);}}else{if(!E[I].isValid()){E.splice(I,1);}}}if(H.length){D.push(["create",H]);
}if(E.length){D.push(["update",E]);}}B=D.length;if(B){A=++this.batchCounter;for(var I=0;
I<B;++I){C=D[I];F[C[0]]=C[1];}if(this.fireEvent("beforesave",this,F)!==false){for(var I=0;
I<B;++I){C=D[I];this.doTransaction(C[0],C[1],A);}return A;}}return -1;},doTransaction:function(C,D,E){function A(G){try{this.execute(C,G,undefined,E);
}catch(H){this.handleException(H);}}if(this.batch===false){for(var B=0,F=D.length;
B<F;B++){A.call(this,D[B]);}}else{A.call(this,D);}},addToBatch:function(C){var D=this.batches,A=this.batchKey+C,B=D[A];
if(!B){D[A]=B={id:C,count:0,data:{}};}++B.count;},removeFromBatch:function(B,A,C){var F=this.batches,E=this.batchKey+B,D=F[E],C,G;
if(D){G=D.data[A]||[];D.data[A]=G.concat(C);if(D.count===1){C=D.data;delete F[E];
this.fireEvent("save",this,B,C);}else{--D.count;}}},createCallback:function(C,D,B){var A=Ext.data.Api.actions;
return(C=="read")?this.loadRecords:function(E,G,F){this["on"+Ext.util.Format.capitalize(C)+"Records"](F,D,[].concat(E));
if(F===true){this.fireEvent("write",this,C,E,G,D);}this.removeFromBatch(B,C,E);};
},clearModified:function(B){if(Ext.isArray(B)){for(var A=B.length-1;A>=0;A--){this.modified.splice(this.modified.indexOf(B[A]),1);
}}else{this.modified.splice(this.modified.indexOf(B),1);}},reMap:function(B){if(Ext.isArray(B)){for(var A=0,D=B.length;
A<D;A++){this.reMap(B[A]);}}else{delete this.data.map[B._phid];this.data.map[B.id]=B;
var C=this.data.keys.indexOf(B._phid);this.data.keys.splice(C,1,B.id);delete B._phid;
}},onCreateRecords:function(A,D,B){if(A===true){try{this.reader.realize(D,B);this.reMap(D);
}catch(C){this.handleException(C);if(Ext.isArray(D)){this.onCreateRecords(A,D,B);
}}}},onUpdateRecords:function(A,D,B){if(A===true){try{this.reader.update(D,B);}catch(C){this.handleException(C);
if(Ext.isArray(D)){this.onUpdateRecords(A,D,B);}}}},onDestroyRecords:function(B,C,A){C=(C instanceof Ext.data.Record)?[C]:[].concat(C);
for(var D=0,E=C.length;D<E;D++){this.removed.splice(this.removed.indexOf(C[D]),1);
}if(B===false){for(D=C.length-1;D>=0;D--){this.insert(C[D].lastIndex,C[D]);}}},handleException:function(A){Ext.handleError(A);
},reload:function(A){this.load(Ext.applyIf(A||{},this.lastOptions));},loadRecords:function(A,E,C){if(this.isDestroyed===true){return ;
}if(!A||C===false){if(C!==false){this.fireEvent("load",this,[],E);}if(E.callback){E.callback.call(E.scope||this,[],E,false,A);
}return ;}var D=A.records,B=A.totalRecords||D.length;if(!E||E.add!==true){if(this.pruneModifiedRecords){this.modified=[];
}for(var F=0,G=D.length;F<G;F++){D[F].join(this);}if(this.snapshot){this.data=this.snapshot;
delete this.snapshot;}this.clearData();this.data.addAll(D);this.totalLength=B;this.applySort();
this.fireEvent("datachanged",this);}else{this.totalLength=Math.max(B,this.data.length+D.length);
this.add(D);}this.fireEvent("load",this,D,E);if(E.callback){E.callback.call(E.scope||this,D,E,true);
}},loadData:function(B,C){var A=this.reader.readRecords(B);this.loadRecords(A,{add:C},true);
},getCount:function(){return this.data.length||0;},getTotalCount:function(){return this.totalLength||0;
},getSortState:function(){return this.sortInfo;},applySort:function(){if((this.sortInfo||this.multiSortInfo)&&!this.remoteSort){this.sortData();
}},sortData:function(){var F=this.hasMultiSort?this.multiSortInfo:this.sortInfo,B=F.direction||"ASC",C=F.sorters,E=[];
if(!this.hasMultiSort){C=[{direction:B,field:F.field}];}for(var H=0,D=C.length;H<D;
H++){E.push(this.createSortFunction(C[H].field,C[H].direction));}if(E.length==0){return ;
}var G=B.toUpperCase()=="DESC"?-1:1;var A=function(I,L){var K=E[0].call(this,I,L);
if(E.length>1){for(var J=1,M=E.length;J<M;J++){K=K||E[J].call(this,I,L);}}return G*K;
};this.data.sort(B,A);if(this.snapshot&&this.snapshot!=this.data){this.snapshot.sort(B,A);
}},createSortFunction:function(C,B){B=B||"ASC";var D=B.toUpperCase()=="DESC"?-1:1;
var A=this.fields.get(C).sortType;return function(E,G){var F=A(E.data[C]),H=A(G.data[C]);
return D*(F>H?1:(F<H?-1:0));};},setDefaultSort:function(A,B){B=B?B.toUpperCase():"ASC";
this.sortInfo={field:A,direction:B};this.sortToggle[A]=B;},sort:function(A,B){if(Ext.isArray(arguments[0])){return this.multiSort.call(this,A,B);
}else{return this.singleSort(A,B);}},singleSort:function(A,E){var C=this.fields.get(A);
if(!C){return false;}var D=C.name,F=this.sortInfo||null,B=this.sortToggle?this.sortToggle[D]:null;
if(!E){if(F&&F.field==D){E=(this.sortToggle[D]||"ASC").toggle("ASC","DESC");}else{E=C.sortDir;
}}this.sortToggle[D]=E;this.sortInfo={field:D,direction:E};this.hasMultiSort=false;
if(this.remoteSort){if(!this.load(this.lastOptions)){if(B){this.sortToggle[D]=B;}if(F){this.sortInfo=F;
}}}else{this.applySort();this.fireEvent("datachanged",this);}},multiSort:function(A,B){this.hasMultiSort=true;
B=B||"ASC";if(this.multiSortInfo&&B==this.multiSortInfo.direction){B=B.toggle("ASC","DESC");
}this.multiSortInfo={sorters:A,direction:B};if(this.remoteSort){this.singleSort(A[0].field,A[0].direction);
}else{this.applySort();this.fireEvent("datachanged",this);}},each:function(A,B){this.data.each(A,B);
},getModifiedRecords:function(){return this.modified;},sum:function(C,A,F){var E=this.data.items,D=0;
A=A||0;F=(F||F===0)?F:E.length-1;for(var B=A;B<=F;B++){D+=(E[B].data[C]||0);}return D;
},createFilterFn:function(A,D,B,E,C){if(Ext.isEmpty(D,false)){return false;}D=this.data.createValueMatcher(D,B,E,C);
return function(F){return D.test(F.data[A]);};},createMultipleFilterFn:function(A){return function(F){var H=true;
for(var C=0,G=A.length;C<G;C++){var B=A[C],D=B.fn,E=B.scope;H=H&&D.call(E,F);}return H;
};},filter:function(D,G,C,B,A){if(Ext.isObject(D)){D=[D];}if(Ext.isArray(D)){var H=[];
for(var K=0,L=D.length;K<L;K++){var J=D[K],I=J.fn,E=J.scope||this;if(!Ext.isFunction(I)){I=this.createFilterFn(J.property,J.value,J.anyMatch,J.caseSensitive,J.exactMatch);
}H.push({fn:I,scope:E});}var F=this.createMultipleFilterFn(H);}else{var F=this.createFilterFn(D,G,C,B,A);
}return F?this.filterBy(F):this.clearFilter();},filterBy:function(A,B){this.snapshot=this.snapshot||this.data;
this.data=this.queryBy(A,B||this);this.fireEvent("datachanged",this);},clearFilter:function(A){if(this.isFiltered()){this.data=this.snapshot;
delete this.snapshot;if(A!==true){this.fireEvent("datachanged",this);}}},isFiltered:function(){return !!this.snapshot&&this.snapshot!=this.data;
},query:function(A,D,B,E){var C=this.createFilterFn(A,D,B,E);return C?this.queryBy(C):this.data.clone();
},queryBy:function(A,C){var B=this.snapshot||this.data;return B.filterBy(A,C||this);
},find:function(B,E,A,C,F){var D=this.createFilterFn(B,E,C,F);return D?this.data.findIndexBy(D,null,A):-1;
},findExact:function(A,C,B){return this.data.findIndexBy(function(D){return D.get(A)===C;
},this,B);},findBy:function(A,C,B){return this.data.findIndexBy(A,C,B);},collect:function(B,C,G){var D=(G===true&&this.snapshot)?this.snapshot.items:this.data.items;
var F,E,I=[],H={};for(var A=0,J=D.length;A<J;A++){F=D[A].data[B];E=String(F);if((C||!Ext.isEmpty(F))&&!H[E]){H[E]=true;
I[I.length]=F;}}return I;},afterEdit:function(A){if(this.modified.indexOf(A)==-1){this.modified.push(A);
}this.fireEvent("update",this,A,Ext.data.Record.EDIT);},afterReject:function(A){this.modified.remove(A);
this.fireEvent("update",this,A,Ext.data.Record.REJECT);},afterCommit:function(A){this.modified.remove(A);
this.fireEvent("update",this,A,Ext.data.Record.COMMIT);},commitChanges:function(){var A=this.modified.slice(0);
this.modified=[];for(var B=0,C=A.length;B<C;B++){A[B].commit();}},rejectChanges:function(){var A=this.modified.slice(0);
this.modified=[];for(var B=0,C=A.length;B<C;B++){A[B].reject();}var A=this.removed.slice(0).reverse();
this.removed=[];for(var B=0,C=A.length;B<C;B++){this.insert(A[B].lastIndex||0,A[B]);
A[B].reject();}},onMetaChange:function(A){this.recordType=this.reader.recordType;
this.fields=this.recordType.prototype.fields;delete this.snapshot;if(this.reader.meta.sortInfo){this.sortInfo=this.reader.meta.sortInfo;
}else{if(this.sortInfo&&!this.fields.get(this.sortInfo.field)){delete this.sortInfo;
}}if(this.writer){this.writer.meta=this.reader.meta;}this.modified=[];this.fireEvent("metachange",this,this.reader.meta);
},findInsertIndex:function(C){this.suspendEvents();var B=this.data.clone();this.data.add(C);
this.applySort();var A=this.data.indexOf(C);this.data=B;this.resumeEvents();return A;
},setBaseParam:function(B,A){this.baseParams=this.baseParams||{};this.baseParams[B]=A;
}});Ext.reg("store",Ext.data.Store);Ext.data.Store.Error=Ext.extend(Ext.Error,{name:"Ext.data.Store"});
Ext.apply(Ext.data.Store.Error.prototype,{lang:{"writer-undefined":"Attempted to execute a write-action without a DataWriter installed."}});
Ext.data.Field=Ext.extend(Object,{constructor:function(B){if(Ext.isString(B)){B={name:B};
}Ext.apply(this,B);var A=Ext.data.Types,D=this.sortType,C;if(this.type){if(Ext.isString(this.type)){this.type=Ext.data.Types[this.type.toUpperCase()]||A.AUTO;
}}else{this.type=A.AUTO;}if(Ext.isString(D)){this.sortType=Ext.data.SortTypes[D];
}else{if(Ext.isEmpty(D)){this.sortType=this.type.sortType;}}if(!this.convert){this.convert=this.type.convert;
}},dateFormat:null,defaultValue:"",mapping:null,sortType:null,sortDir:"ASC",allowBlank:true});
Ext.data.DataReader=function(B,A){this.meta=B;this.recordType=Ext.isArray(A)?Ext.data.Record.create(A):A;
if(this.recordType){this.buildExtractors();}};Ext.data.DataReader.prototype={getTotal:Ext.emptyFn,getRoot:Ext.emptyFn,getMessage:Ext.emptyFn,getSuccess:Ext.emptyFn,getId:Ext.emptyFn,buildExtractors:Ext.emptyFn,extractValues:Ext.emptyFn,realize:function(C,B){if(Ext.isArray(C)){for(var A=C.length-1;
A>=0;A--){if(Ext.isArray(B)){this.realize(C.splice(A,1).shift(),B.splice(A,1).shift());
}else{this.realize(C.splice(A,1).shift(),B);}}}else{if(Ext.isArray(B)&&B.length==1){B=B.shift();
}if(!this.isData(B)){throw new Ext.data.DataReader.Error("realize",C);}C.phantom=false;
C._phid=C.id;C.id=this.getId(B);C.data=B;C.commit();}},update:function(C,B){if(Ext.isArray(C)){for(var A=C.length-1;
A>=0;A--){if(Ext.isArray(B)){this.update(C.splice(A,1).shift(),B.splice(A,1).shift());
}else{this.update(C.splice(A,1).shift(),B);}}}else{if(Ext.isArray(B)&&B.length==1){B=B.shift();
}if(this.isData(B)){C.data=Ext.apply(C.data,B);}C.commit();}},extractData:function(C,J){var B=(this instanceof Ext.data.JsonReader)?"json":"node";
var I=[];if(this.isData(C)&&!(this instanceof Ext.data.XmlReader)){C=[C];}var D=this.recordType.prototype.fields,E=D.items,G=D.length,I=[];
if(J===true){var F=this.recordType;for(var A=0;A<C.length;A++){var H=C[A];var K=new F(this.extractValues(H,E,G),this.getId(H));
K[B]=H;I.push(K);}}else{for(var A=0;A<C.length;A++){var L=this.extractValues(C[A],E,G);
L[this.meta.idProperty]=this.getId(C[A]);I.push(L);}}return I;},isData:function(A){return(A&&Ext.isObject(A)&&!Ext.isEmpty(this.getId(A)))?true:false;
},onMetaChange:function(A){delete this.ef;this.meta=A;this.recordType=Ext.data.Record.create(A.fields);
this.buildExtractors();}};Ext.data.DataReader.Error=Ext.extend(Ext.Error,{constructor:function(A,B){this.arg=B;
Ext.Error.call(this,A);},name:"Ext.data.DataReader"});Ext.apply(Ext.data.DataReader.Error.prototype,{lang:{update:"#update received invalid data from server.  Please see docs for DataReader#update and review your DataReader configuration.",realize:"#realize was called with invalid remote-data.  Please see the docs for DataReader#realize and review your DataReader configuration.","invalid-response":"#readResponse received an invalid response from the server."}});
Ext.data.DataWriter=function(A){Ext.apply(this,A);};Ext.data.DataWriter.prototype={writeAllFields:false,listful:false,apply:function(C,A,B,F){var E=[],D=B+"Record";
if(Ext.isArray(F)){Ext.each(F,function(G){E.push(this[D](G));},this);}else{if(F instanceof Ext.data.Record){E=this[D](F);
}}this.render(C,A,E);},render:Ext.emptyFn,updateRecord:Ext.emptyFn,createRecord:Ext.emptyFn,destroyRecord:Ext.emptyFn,toHash:function(A,E){var C=A.fields.map,B={},D=(this.writeAllFields===false&&A.phantom===false)?A.getChanges():A.data,F;
Ext.iterate(D,function(H,G){if((F=C[H])){B[F.mapping?F.mapping:F.name]=G;}});if(A.phantom){if(A.fields.containsKey(this.meta.idProperty)&&Ext.isEmpty(A.data[this.meta.idProperty])){delete B[this.meta.idProperty];
}}else{B[this.meta.idProperty]=A.id;}return B;},toArray:function(A){var B=[];Ext.iterate(A,function(C,D){B.push({name:C,value:D});
},this);return B;}};Ext.data.DataProxy=function(B){B=B||{};this.api=B.api;this.url=B.url;
this.restful=B.restful;this.listeners=B.listeners;this.prettyUrls=B.prettyUrls;this.addEvents("exception","beforeload","load","loadexception","beforewrite","write");
Ext.data.DataProxy.superclass.constructor.call(this);try{Ext.data.Api.prepare(this);
}catch(A){if(A instanceof Ext.data.Api.Error){A.toConsole();}}Ext.data.DataProxy.relayEvents(this,["beforewrite","write","exception"]);
};Ext.extend(Ext.data.DataProxy,Ext.util.Observable,{restful:false,setApi:function(){if(arguments.length==1){var A=Ext.data.Api.isValid(arguments[0]);
if(A===true){this.api=arguments[0];}else{throw new Ext.data.Api.Error("invalid",A);
}}else{if(arguments.length==2){if(!Ext.data.Api.isAction(arguments[0])){throw new Ext.data.Api.Error("invalid",arguments[0]);
}this.api[arguments[0]]=arguments[1];}}Ext.data.Api.prepare(this);},isApiAction:function(A){return(this.api[A])?true:false;
},request:function(C,E,A,G,B,D,F){if(!this.api[C]&&!this.load){throw new Ext.data.DataProxy.Error("action-undefined",C);
}A=A||{};if((C===Ext.data.Api.actions.read)?this.fireEvent("beforeload",this,A):this.fireEvent("beforewrite",this,C,E,A)!==false){this.doRequest.apply(this,arguments);
}else{B.call(D||this,null,F,false);}},load:null,doRequest:function(C,E,A,G,B,D,F){this.load(A,G,B,D,F);
},onRead:Ext.emptyFn,onWrite:Ext.emptyFn,buildUrl:function(A,C){C=C||null;var D=(this.conn&&this.conn.url)?this.conn.url:(this.api[A])?this.api[A].url:this.url;
if(!D){throw new Ext.data.Api.Error("invalid-url",A);}var B=null;var E=D.match(/(.*)(\.json|\.xml|\.html)$/);
if(E){B=E[2];D=E[1];}if((this.restful===true||this.prettyUrls===true)&&C instanceof Ext.data.Record&&!C.phantom){D+="/"+C.id;
}return(B===null)?D:D+B;},destroy:function(){this.purgeListeners();}});Ext.apply(Ext.data.DataProxy,Ext.util.Observable.prototype);
Ext.util.Observable.call(Ext.data.DataProxy);Ext.data.DataProxy.Error=Ext.extend(Ext.Error,{constructor:function(A,B){this.arg=B;
Ext.Error.call(this,A);},name:"Ext.data.DataProxy"});Ext.apply(Ext.data.DataProxy.Error.prototype,{lang:{"action-undefined":"DataProxy attempted to execute an API-action but found an undefined url / function.  Please review your Proxy url/api-configuration.","api-invalid":"Recieved an invalid API-configuration.  Please ensure your proxy API-configuration contains only the actions from Ext.data.Api.actions."}});
Ext.data.Request=function(A){Ext.apply(this,A);};Ext.data.Request.prototype={action:undefined,rs:undefined,params:undefined,callback:Ext.emptyFn,scope:undefined,reader:undefined};
Ext.data.Response=function(A){Ext.apply(this,A);};Ext.data.Response.prototype={action:undefined,success:undefined,message:undefined,data:undefined,raw:undefined,records:undefined};
Ext.data.ScriptTagProxy=function(A){Ext.apply(this,A);Ext.data.ScriptTagProxy.superclass.constructor.call(this,A);
this.head=document.getElementsByTagName("head")[0];};Ext.data.ScriptTagProxy.TRANS_ID=1000;
Ext.extend(Ext.data.ScriptTagProxy,Ext.data.DataProxy,{timeout:30000,callbackParam:"callback",nocache:true,doRequest:function(A,K,L,D,B,C,F){var I=Ext.urlEncode(Ext.apply(L,this.extraParams));
var H=this.buildUrl(A,K);if(!H){throw new Ext.data.Api.Error("invalid-url",H);}H=Ext.urlAppend(H,I);
if(this.nocache){H=Ext.urlAppend(H,"_dc="+(new Date().getTime()));}var J=++Ext.data.ScriptTagProxy.TRANS_ID;
var G={id:J,action:A,cb:"stcCallback"+J,scriptId:"stcScript"+J,params:L,arg:F,url:H,callback:B,scope:C,reader:D};
window[G.cb]=this.createCallback(A,K,G);H+=String.format("&{0}={1}",this.callbackParam,G.cb);
if(this.autoAbort!==false){this.abort();}G.timeoutId=this.handleFailure.defer(this.timeout,this,[G]);
var E=document.createElement("script");E.setAttribute("src",H);E.setAttribute("type","text/javascript");
E.setAttribute("id",G.scriptId);this.head.appendChild(E);this.trans=G;},createCallback:function(A,B,C){var D=this;
return function(E){D.trans=false;D.destroyTrans(C,true);if(A===Ext.data.Api.actions.read){D.onRead.call(D,A,C,E);
}else{D.onWrite.call(D,A,C,E,B);}};},onRead:function(B,D,C){var E;try{E=D.reader.readRecords(C);
}catch(A){this.fireEvent("loadexception",this,D,C,A);this.fireEvent("exception",this,"response",B,D,C,A);
D.callback.call(D.scope||window,null,D.arg,false);return ;}if(E.success===false){this.fireEvent("loadexception",this,D,C);
this.fireEvent("exception",this,"remote",B,D,C,null);}else{this.fireEvent("load",this,C,D.arg);
}D.callback.call(D.scope||window,E,D.arg,E.success);},onWrite:function(A,C,F,E){var G=C.reader;
try{var B=G.readResponse(A,F);}catch(D){this.fireEvent("exception",this,"response",A,C,B,D);
C.callback.call(C.scope||window,null,B,false);return ;}if(!B.success===true){this.fireEvent("exception",this,"remote",A,C,B,E);
C.callback.call(C.scope||window,null,B,false);return ;}this.fireEvent("write",this,A,B.data,B,E,C.arg);
C.callback.call(C.scope||window,B.data,B,true);},isLoading:function(){return this.trans?true:false;
},abort:function(){if(this.isLoading()){this.destroyTrans(this.trans);}},destroyTrans:function(A,C){this.head.removeChild(document.getElementById(A.scriptId));
clearTimeout(A.timeoutId);if(C){window[A.cb]=undefined;try{delete window[A.cb];}catch(B){}}else{window[A.cb]=function(){window[A.cb]=undefined;
try{delete window[A.cb];}catch(D){}};}},handleFailure:function(A){this.trans=false;
this.destroyTrans(A,false);if(A.action===Ext.data.Api.actions.read){this.fireEvent("loadexception",this,null,A.arg);
}this.fireEvent("exception",this,"response",A.action,{response:null,options:A.arg});
A.callback.call(A.scope||window,null,A.arg,false);},destroy:function(){this.abort();
Ext.data.ScriptTagProxy.superclass.destroy.call(this);}});Ext.data.HttpProxy=function(C){Ext.data.HttpProxy.superclass.constructor.call(this,C);
this.conn=C;this.conn.url=null;this.useAjax=!C||!C.events;var B=Ext.data.Api.actions;
this.activeRequest={};for(var A in B){this.activeRequest[B[A]]=undefined;}};Ext.extend(Ext.data.HttpProxy,Ext.data.DataProxy,{getConnection:function(){return this.useAjax?Ext.Ajax:this.conn;
},setUrl:function(B,A){this.conn.url=B;if(A===true){this.url=B;this.api=null;Ext.data.Api.prepare(this);
}},doRequest:function(G,H,C,E,D,A,F){var B={method:(this.api[G])?this.api[G]["method"]:undefined,request:{callback:D,scope:A,arg:F},reader:E,callback:this.createCallback(G,H),scope:this};
if(C.jsonData){B.jsonData=C.jsonData;}else{if(C.xmlData){B.xmlData=C.xmlData;}else{B.params=C||{};
}}this.conn.url=this.buildUrl(G,H);if(this.useAjax){Ext.applyIf(B,this.conn);if(this.activeRequest[G]){}this.activeRequest[G]=Ext.Ajax.request(B);
}else{this.conn.request(B);}this.conn.url=null;},createCallback:function(A,B){return function(D,C,E){this.activeRequest[A]=undefined;
if(!C){if(A===Ext.data.Api.actions.read){this.fireEvent("loadexception",this,D,E);
}this.fireEvent("exception",this,"response",A,D,E);D.request.callback.call(D.request.scope,null,D.request.arg,false);
return ;}if(A===Ext.data.Api.actions.read){this.onRead(A,D,E);}else{this.onWrite(A,D,E,B);
}};},onRead:function(B,A,D){var F;try{F=A.reader.read(D);}catch(C){this.fireEvent("loadexception",this,A,D,C);
this.fireEvent("exception",this,"response",B,A,D,C);A.request.callback.call(A.request.scope,null,A.request.arg,false);
return ;}if(F.success===false){this.fireEvent("loadexception",this,A,D);var E=A.reader.readResponse(B,D);
this.fireEvent("exception",this,"remote",B,A,E,null);}else{this.fireEvent("load",this,A,A.request.arg);
}A.request.callback.call(A.request.scope,F,A.request.arg,F.success);},onWrite:function(A,B,F,E){var G=B.reader;
var D;try{D=G.readResponse(A,F);}catch(C){this.fireEvent("exception",this,"response",A,B,F,C);
B.request.callback.call(B.request.scope,null,B.request.arg,false);return ;}if(D.success===true){this.fireEvent("write",this,A,D.data,D,E,B.request.arg);
}else{this.fireEvent("exception",this,"remote",A,B,D,E);}B.request.callback.call(B.request.scope,D.data,D,D.success);
},destroy:function(){if(!this.useAjax){this.conn.abort();}else{if(this.activeRequest){var A=Ext.data.Api.actions;
for(var B in A){if(this.activeRequest[A[B]]){Ext.Ajax.abort(this.activeRequest[A[B]]);
}}}}Ext.data.HttpProxy.superclass.destroy.call(this);}});Ext.data.MemoryProxy=function(A){var B={};
B[Ext.data.Api.actions.read]=true;Ext.data.MemoryProxy.superclass.constructor.call(this,{api:B});
this.data=A;};Ext.extend(Ext.data.MemoryProxy,Ext.data.DataProxy,{doRequest:function(E,F,G,I,C,D,A){G=G||{};
var B;try{B=I.readRecords(this.data);}catch(H){this.fireEvent("loadexception",this,null,A,H);
this.fireEvent("exception",this,"response",E,A,null,H);C.call(D,null,A,false);return ;
}C.call(D,B,A,true);}});Ext.data.Types=new function(){var A=Ext.data.SortTypes;Ext.apply(this,{stripRe:/[\$,%]/g,AUTO:{convert:function(B){return B;
},sortType:A.none,type:"auto"},STRING:{convert:function(B){return(B===undefined||B===null)?"":String(B);
},sortType:A.asUCString,type:"string"},INT:{convert:function(B){return B!==undefined&&B!==null&&B!==""?parseInt(String(B).replace(Ext.data.Types.stripRe,""),10):0;
},sortType:A.none,type:"int"},FLOAT:{convert:function(B){return B!==undefined&&B!==null&&B!==""?parseFloat(String(B).replace(Ext.data.Types.stripRe,""),10):0;
},sortType:A.none,type:"float"},BOOL:{convert:function(B){return B===true||B==="true"||B==1;
},sortType:A.none,type:"bool"},DATE:{convert:function(D){var B=this.dateFormat;if(!D){return null;
}if(Ext.isDate(D)){return D;}if(B){if(B=="timestamp"){return new Date(D*1000);}if(B=="time"){return new Date(parseInt(D,10));
}return Date.parseDate(D,B);}var C=Date.parse(D);return C?new Date(C):null;},sortType:A.asDate,type:"date"}});
Ext.apply(this,{BOOLEAN:this.BOOL,INTEGER:this.INT,NUMBER:this.FLOAT});};Ext.data.JsonWriter=Ext.extend(Ext.data.DataWriter,{encode:true,encodeDelete:false,constructor:function(A){Ext.data.JsonWriter.superclass.constructor.call(this,A);
},render:function(C,A,B){if(this.encode===true){Ext.apply(C,A);C[this.meta.root]=Ext.encode(B);
}else{var D=Ext.apply({},A);D[this.meta.root]=B;C.jsonData=D;}},createRecord:function(A){return this.toHash(A);
},updateRecord:function(A){return this.toHash(A);},destroyRecord:function(A){if(this.encodeDelete){var B={};
B[this.meta.idProperty]=A.id;return B;}else{return A.id;}}});Ext.data.JsonReader=function(B,A){B=B||{};
Ext.applyIf(B,{idProperty:"id",successProperty:"success",totalProperty:"total"});
Ext.data.JsonReader.superclass.constructor.call(this,B,A||B.fields);};Ext.extend(Ext.data.JsonReader,Ext.data.DataReader,{read:function(C){var A=C.responseText;
var B=Ext.decode(A);if(!B){throw {message:"JsonReader.read: Json object not found"};
}return this.readRecords(B);},readResponse:function(C,D){var A=(D.responseText!==undefined)?Ext.decode(D.responseText):D;
if(!A){throw new Ext.data.JsonReader.Error("response");}var F=this.getRoot(A);if(C===Ext.data.Api.actions.create){var B=Ext.isDefined(F);
if(B&&Ext.isEmpty(F)){throw new Ext.data.JsonReader.Error("root-empty",this.meta.root);
}else{if(!B){throw new Ext.data.JsonReader.Error("root-undefined-response",this.meta.root);
}}}var E=new Ext.data.Response({action:C,success:this.getSuccess(A),data:(F)?this.extractData(F,false):[],message:this.getMessage(A),raw:A});
if(Ext.isEmpty(E.success)){throw new Ext.data.JsonReader.Error("successProperty-response",this.meta.successProperty);
}return E;},readRecords:function(I){this.jsonData=I;if(I.metaData){this.onMetaChange(I.metaData);
}var G=this.meta,D=this.recordType,H=D.prototype.fields,F=H.items,E=H.length,B;var J=this.getRoot(I),A=J.length,K=A,C=true;
if(G.totalProperty){B=parseInt(this.getTotal(I),10);if(!isNaN(B)){K=B;}}if(G.successProperty){B=this.getSuccess(I);
if(B===false||B==="false"){C=false;}}return{success:C,records:this.extractData(J,true),totalRecords:K};
},buildExtractors:function(){if(this.ef){return ;}var E=this.meta,D=this.recordType,A=D.prototype.fields,C=A.items,B=A.length;
if(E.totalProperty){this.getTotal=this.createAccessor(E.totalProperty);}if(E.successProperty){this.getSuccess=this.createAccessor(E.successProperty);
}if(E.messageProperty){this.getMessage=this.createAccessor(E.messageProperty);}this.getRoot=E.root?this.createAccessor(E.root):function(J){return J;
};if(E.id||E.idProperty){var I=this.createAccessor(E.id||E.idProperty);this.getId=function(K){var J=I(K);
return(J===undefined||J==="")?null:J;};}else{this.getId=function(){return null;};
}var G=[];for(var F=0;F<B;F++){A=C[F];var H=(A.mapping!==undefined&&A.mapping!==null)?A.mapping:A.name;
G.push(this.createAccessor(H));}this.ef=G;},simpleAccess:function(A,B){return A[B];
},createAccessor:function(){var A=/[\[\.]/;return function(C){if(Ext.isEmpty(C)){return Ext.emptyFn;
}if(Ext.isFunction(C)){return C;}var B=String(C).search(A);if(B>=0){return new Function("obj","return obj"+(B>0?".":"")+C);
}return function(D){return D[C];};};}(),extractValues:function(A,B,G){var C,F={};
for(var D=0;D<G;D++){C=B[D];var E=this.ef[D](A);F[C.name]=C.convert((E!==undefined)?E:C.defaultValue,A);
}return F;}});Ext.data.JsonReader.Error=Ext.extend(Ext.Error,{constructor:function(A,B){this.arg=B;
Ext.Error.call(this,A);},name:"Ext.data.JsonReader"});Ext.apply(Ext.data.JsonReader.Error.prototype,{lang:{response:"An error occurred while json-decoding your server response","successProperty-response":'Could not locate your "successProperty" in your server response.  Please review your JsonReader config to ensure the config-property "successProperty" matches the property in your server-response.  See the JsonReader docs.',"root-undefined-config":'Your JsonReader was configured without a "root" property.  Please review your JsonReader config and make sure to define the root property.  See the JsonReader docs.',"idProperty-undefined":'Your JsonReader was configured without an "idProperty"  Please review your JsonReader configuration and ensure the "idProperty" is set (e.g.: "id").  See the JsonReader docs.',"root-empty":'Data was expected to be returned by the server in the "root" property of the response.  Please review your JsonReader configuration to ensure the "root" property matches that returned in the server-response.  See JsonReader docs.'}});
Ext.data.ArrayReader=Ext.extend(Ext.data.JsonReader,{readRecords:function(D){this.arrayData=D;
var J=this.meta,P=J?Ext.num(J.idIndex,J.id):null,L=this.recordType,F=L.prototype.fields,T=[],Q=true,O;
var H=this.getRoot(D);for(var U=0,R=H.length;U<R;U++){var G=H[U],N={},E=((P||P===0)&&G[P]!==undefined&&G[P]!==""?G[P]:null);
for(var W=0,K=F.length;W<K;W++){var S=F.items[W],V=S.mapping!==undefined&&S.mapping!==null?S.mapping:W;
O=G[V]!==undefined?G[V]:S.defaultValue;O=S.convert(O,G);N[S.name]=O;}var M=new L(N,E);
M.json=G;T[T.length]=M;}var I=T.length;if(J.totalProperty){O=parseInt(this.getTotal(D),10);
if(!isNaN(O)){I=O;}}if(J.successProperty){O=this.getSuccess(D);if(O===false||O==="false"){Q=false;
}}return{success:Q,records:T,totalRecords:I};}});Ext.data.ArrayStore=Ext.extend(Ext.data.Store,{constructor:function(A){Ext.data.ArrayStore.superclass.constructor.call(this,Ext.apply(A,{reader:new Ext.data.ArrayReader(A)}));
},loadData:function(B,C){if(this.expandData===true){var A=[];for(var D=0,E=B.length;
D<E;D++){A[A.length]=[B[D]];}B=A;}Ext.data.ArrayStore.superclass.loadData.call(this,B,C);
}});Ext.reg("arraystore",Ext.data.ArrayStore);Ext.data.SimpleStore=Ext.data.ArrayStore;
Ext.reg("simplestore",Ext.data.SimpleStore);Ext.data.JsonStore=Ext.extend(Ext.data.Store,{constructor:function(A){Ext.data.JsonStore.superclass.constructor.call(this,Ext.apply(A,{reader:new Ext.data.JsonReader(A)}));
}});Ext.reg("jsonstore",Ext.data.JsonStore);Ext.data.XmlWriter=function(A){Ext.data.XmlWriter.superclass.constructor.apply(this,arguments);
this.tpl=(typeof (this.tpl)==="string")?new Ext.XTemplate(this.tpl).compile():this.tpl.compile();
};Ext.extend(Ext.data.XmlWriter,Ext.data.DataWriter,{documentRoot:"xrequest",forceDocumentRoot:false,root:"records",xmlVersion:"1.0",xmlEncoding:"ISO-8859-15",tpl:'<tpl for="."><?xml version="{version}" encoding="{encoding}"?><tpl if="documentRoot"><{documentRoot}><tpl for="baseParams"><tpl for="."><{name}>{value}</{name}</tpl></tpl></tpl><tpl if="records.length&gt;1"><{root}></tpl><tpl for="records"><{parent.record}><tpl for="."><{name}>{value}</{name}></tpl></{parent.record}></tpl><tpl if="records.length&gt;1"></{root}></tpl><tpl if="documentRoot"></{documentRoot}></tpl></tpl>',render:function(A,B,C){B=this.toArray(B);
A.xmlData=this.tpl.applyTemplate({version:this.xmlVersion,encoding:this.xmlEncoding,documentRoot:(B.length>0||this.forceDocumentRoot===true)?this.documentRoot:false,record:this.meta.record,root:this.root,baseParams:B,records:(Ext.isArray(C[0]))?C:[C]});
},createRecord:function(A){return this.toArray(this.toHash(A));},updateRecord:function(A){return this.toArray(this.toHash(A));
},destroyRecord:function(A){var B={};B[this.meta.idProperty]=A.id;return this.toArray(B);
}});Ext.data.XmlReader=function(B,A){B=B||{};Ext.applyIf(B,{idProperty:B.idProperty||B.idPath||B.id,successProperty:B.successProperty||B.success});
Ext.data.XmlReader.superclass.constructor.call(this,B,A||B.fields);};Ext.extend(Ext.data.XmlReader,Ext.data.DataReader,{read:function(B){var A=B.responseXML;
if(!A){throw {message:"XmlReader.read: XML Document not available"};}return this.readRecords(A);
},readRecords:function(B){this.xmlData=B;var F=B.documentElement||B,E=Ext.DomQuery,A=0,C=true;
if(this.meta.totalProperty){A=this.getTotal(F,0);}if(this.meta.successProperty){C=this.getSuccess(F);
}var D=this.extractData(E.select(this.meta.record,F),true);return{success:C,records:D,totalRecords:A||D.length};
},readResponse:function(C,F){var B=Ext.DomQuery,A=F.responseXML;var D=new Ext.data.Response({action:C,success:this.getSuccess(A),message:this.getMessage(A),data:this.extractData(B.select(this.meta.record,A)||B.select(this.meta.root,A),false),raw:A});
if(Ext.isEmpty(D.success)){throw new Ext.data.DataReader.Error("successProperty-response",this.meta.successProperty);
}if(C===Ext.data.Api.actions.create){var E=Ext.isDefined(D.data);if(E&&Ext.isEmpty(D.data)){throw new Ext.data.JsonReader.Error("root-empty",this.meta.root);
}else{if(!E){throw new Ext.data.JsonReader.Error("root-undefined-response",this.meta.root);
}}}return D;},getSuccess:function(){return true;},buildExtractors:function(){if(this.ef){return ;
}var E=this.meta,D=this.recordType,A=D.prototype.fields,C=A.items,B=A.length;if(E.totalProperty){this.getTotal=this.createAccessor(E.totalProperty);
}if(E.successProperty){this.getSuccess=this.createAccessor(E.successProperty);}if(E.messageProperty){this.getMessage=this.createAccessor(E.messageProperty);
}this.getRoot=function(J){return(!Ext.isEmpty(J[this.meta.record]))?J[this.meta.record]:J[this.meta.root];
};if(E.idPath||E.idProperty){var I=this.createAccessor(E.idPath||E.idProperty);this.getId=function(J){var K=I(J)||J.id;
return(K===undefined||K==="")?null:K;};}else{this.getId=function(){return null;};
}var G=[];for(var F=0;F<B;F++){A=C[F];var H=(A.mapping!==undefined&&A.mapping!==null)?A.mapping:A.name;
G.push(this.createAccessor(H));}this.ef=G;},createAccessor:function(){var A=Ext.DomQuery;
return function(B){switch(B){case this.meta.totalProperty:return function(D,C){return A.selectNumber(B,D,C);
};break;case this.meta.successProperty:return function(D,E){var F=A.selectValue(B,D,true);
var C=F!==false&&F!=="false";return C;};break;default:return function(D,C){return A.selectValue(B,D,C);
};break;}};}(),extractValues:function(A,B,G){var C,F={};for(var D=0;D<G;D++){C=B[D];
var E=this.ef[D](A);F[C.name]=C.convert((E!==undefined)?E:C.defaultValue,A);}return F;
}});Ext.data.XmlStore=Ext.extend(Ext.data.Store,{constructor:function(A){Ext.data.XmlStore.superclass.constructor.call(this,Ext.apply(A,{reader:new Ext.data.XmlReader(A)}));
}});Ext.reg("xmlstore",Ext.data.XmlStore);Ext.data.GroupingStore=Ext.extend(Ext.data.Store,{constructor:function(A){A=A||{};
this.hasMultiSort=true;this.multiSortInfo=this.multiSortInfo||{sorters:[]};var B=this.multiSortInfo.sorters,D=A.groupField||this.groupField,C=A.sortInfo||this.sortInfo,E=A.groupDir||this.groupDir;
if(D){B.push({field:D,direction:E});}if(C){B.push(C);}Ext.data.GroupingStore.superclass.constructor.call(this,A);
this.addEvents("groupchange");this.applyGroupField();},remoteGroup:false,groupOnSort:false,groupDir:"ASC",clearGrouping:function(){this.groupField=false;
if(this.remoteGroup){if(this.baseParams){delete this.baseParams.groupBy;delete this.baseParams.groupDir;
}var A=this.lastOptions;if(A&&A.params){delete A.params.groupBy;delete A.params.groupDir;
}this.reload();}else{this.sort();this.fireEvent("datachanged",this);}},groupBy:function(A,D,C){C=C?(String(C).toUpperCase()=="DESC"?"DESC":"ASC"):this.groupDir;
if(this.groupField==A&&this.groupDir==C&&!D){return ;}sorters=this.multiSortInfo.sorters;
if(sorters.length>0&&sorters[0].field==this.groupField){sorters.shift();}this.groupField=A;
this.groupDir=C;this.applyGroupField();var B=function(){this.fireEvent("groupchange",this,this.getGroupState());
};if(this.groupOnSort){this.sort(A,C);B.call(this);return ;}if(this.remoteGroup){this.on("load",B,this,{single:true});
this.reload();}else{this.sort(sorters);B.call(this);}},sort:function(A,F){if(this.remoteSort){return Ext.data.GroupingStore.superclass.sort.call(this,A,F);
}var C=[];if(Ext.isArray(arguments[0])){C=arguments[0];}else{if(A==undefined){C=[this.sortInfo];
}else{var D=this.fields.get(A);if(!D){return false;}var E=D.name,G=this.sortInfo||null,B=this.sortToggle?this.sortToggle[E]:null;
if(!F){if(G&&G.field==E){F=(this.sortToggle[E]||"ASC").toggle("ASC","DESC");}else{F=D.sortDir;
}}this.sortToggle[E]=F;this.sortInfo={field:E,direction:F};C=[this.sortInfo];}}if(this.groupField){C.unshift({direction:this.groupDir,field:this.groupField});
}return this.multiSort.call(this,C,F);},applyGroupField:function(){if(this.remoteGroup){if(!this.baseParams){this.baseParams={};
}Ext.apply(this.baseParams,{groupBy:this.groupField,groupDir:this.groupDir});var A=this.lastOptions;
if(A&&A.params){A.params.groupDir=this.groupDir;delete A.params.groupBy;}}},applyGrouping:function(A){if(this.groupField!==false){this.groupBy(this.groupField,true,this.groupDir);
return true;}else{if(A===true){this.fireEvent("datachanged",this);}return false;}},getGroupState:function(){return this.groupOnSort&&this.groupField!==false?(this.sortInfo?this.sortInfo.field:undefined):this.groupField;
}});Ext.reg("groupingstore",Ext.data.GroupingStore);Ext.data.DirectProxy=function(A){Ext.apply(this,A);
if(typeof this.paramOrder=="string"){this.paramOrder=this.paramOrder.split(/[\s,|]/);
}Ext.data.DirectProxy.superclass.constructor.call(this,A);};Ext.extend(Ext.data.DirectProxy,Ext.data.DataProxy,{paramOrder:undefined,paramsAsHash:true,directFn:undefined,doRequest:function(H,I,J,A,C,F,E){var B=[],D=this.api[H]||this.directFn;
switch(H){case Ext.data.Api.actions.create:B.push(J.jsonData);break;case Ext.data.Api.actions.read:if(D.directCfg.method.len>0){if(this.paramOrder){for(var L=0,K=this.paramOrder.length;
L<K;L++){B.push(J[this.paramOrder[L]]);}}else{if(this.paramsAsHash){B.push(J);}}}break;
case Ext.data.Api.actions.update:B.push(J.jsonData);break;case Ext.data.Api.actions.destroy:B.push(J.jsonData);
break;}var G={params:J||{},request:{callback:C,scope:F,arg:E},reader:A};B.push(this.createCallback(H,I,G),this);
D.apply(window,B);},createCallback:function(A,D,B){var C=this;return function(F,E){if(!E.status){if(A===Ext.data.Api.actions.read){C.fireEvent("loadexception",C,B,E,null);
}C.fireEvent("exception",C,"remote",A,B,E,null);B.request.callback.call(B.request.scope,null,B.request.arg,false);
return ;}if(A===Ext.data.Api.actions.read){C.onRead(A,B,F,E);}else{C.onWrite(A,B,F,E,D);
}};},onRead:function(A,C,F,B){var D;try{D=C.reader.readRecords(F);}catch(E){this.fireEvent("loadexception",this,C,B,E);
this.fireEvent("exception",this,"response",A,C,B,E);C.request.callback.call(C.request.scope,null,C.request.arg,false);
return ;}this.fireEvent("load",this,B,C.request.arg);C.request.callback.call(C.request.scope,D,C.request.arg,true);
},onWrite:function(A,B,G,F,E){var C=B.reader.extractData(B.reader.getRoot(G),false);
var D=B.reader.getSuccess(G);D=(D!==false);if(D){this.fireEvent("write",this,A,C,F,E,B.request.arg);
}else{this.fireEvent("exception",this,"remote",A,B,G,E);}B.request.callback.call(B.request.scope,C,F,D);
}});Ext.data.DirectStore=Ext.extend(Ext.data.Store,{constructor:function(B){var A=Ext.apply({},{batchTransactions:false},B);
Ext.data.DirectStore.superclass.constructor.call(this,Ext.apply(A,{proxy:Ext.isDefined(A.proxy)?A.proxy:new Ext.data.DirectProxy(Ext.copyTo({},A,"paramOrder,paramsAsHash,directFn,api")),reader:(!Ext.isDefined(A.reader)&&A.fields)?new Ext.data.JsonReader(Ext.copyTo({},A,"totalProperty,root,idProperty"),A.fields):A.reader}));
}});Ext.reg("directstore",Ext.data.DirectStore);Ext.Direct=Ext.extend(Ext.util.Observable,{exceptions:{TRANSPORT:"xhr",PARSE:"parse",LOGIN:"login",SERVER:"exception"},constructor:function(){this.addEvents("event","exception");
this.transactions={};this.providers={};},addProvider:function(B){var D=arguments;
if(D.length>1){for(var A=0,C=D.length;A<C;A++){this.addProvider(D[A]);}return ;}if(!B.events){B=new Ext.Direct.PROVIDERS[B.type](B);
}B.id=B.id||Ext.id();this.providers[B.id]=B;B.on("data",this.onProviderData,this);
B.on("exception",this.onProviderException,this);if(!B.isConnected()){B.connect();
}return B;},getProvider:function(A){return this.providers[A];},removeProvider:function(A){var B=A.id?A:this.providers[A];
B.un("data",this.onProviderData,this);B.un("exception",this.onProviderException,this);
delete this.providers[B.id];return B;},addTransaction:function(A){this.transactions[A.tid]=A;
return A;},removeTransaction:function(A){delete this.transactions[A.tid||A];return A;
},getTransaction:function(A){return this.transactions[A.tid||A];},onProviderData:function(A,C){if(Ext.isArray(C)){for(var B=0,D=C.length;
B<D;B++){this.onProviderData(A,C[B]);}return ;}if(C.name&&C.name!="event"&&C.name!="exception"){this.fireEvent(C.name,C);
}else{if(C.type=="exception"){this.fireEvent("exception",C);}}this.fireEvent("event",C,A);
},createEvent:function(B,A){return new Ext.Direct.eventTypes[B.type](Ext.apply(B,A));
}});Ext.Direct=new Ext.Direct();Ext.Direct.TID=1;Ext.Direct.PROVIDERS={};Ext.Direct.Transaction=function(A){Ext.apply(this,A);
this.tid=++Ext.Direct.TID;this.retryCount=0;};Ext.Direct.Transaction.prototype={send:function(){this.provider.queueTransaction(this);
},retry:function(){this.retryCount++;this.send();},getProvider:function(){return this.provider;
}};Ext.Direct.Event=function(A){Ext.apply(this,A);};Ext.Direct.Event.prototype={status:true,getData:function(){return this.data;
}};Ext.Direct.RemotingEvent=Ext.extend(Ext.Direct.Event,{type:"rpc",getTransaction:function(){return this.transaction||Ext.Direct.getTransaction(this.tid);
}});Ext.Direct.ExceptionEvent=Ext.extend(Ext.Direct.RemotingEvent,{status:false,type:"exception"});
Ext.Direct.eventTypes={rpc:Ext.Direct.RemotingEvent,event:Ext.Direct.Event,exception:Ext.Direct.ExceptionEvent};
Ext.direct.Provider=Ext.extend(Ext.util.Observable,{priority:1,constructor:function(A){Ext.apply(this,A);
this.addEvents("connect","disconnect","data","exception");Ext.direct.Provider.superclass.constructor.call(this,A);
},isConnected:function(){return false;},connect:Ext.emptyFn,disconnect:Ext.emptyFn});
Ext.direct.JsonProvider=Ext.extend(Ext.direct.Provider,{parseResponse:function(A){if(!Ext.isEmpty(A.responseText)){if(typeof A.responseText=="object"){return A.responseText;
}return Ext.decode(A.responseText);}return null;},getEvents:function(G){var A=null;
try{A=this.parseResponse(G);}catch(B){var D=new Ext.Direct.ExceptionEvent({data:B,xhr:G,code:Ext.Direct.exceptions.PARSE,message:"Error parsing json response: \n\n "+A});
return[D];}var F=[];if(Ext.isArray(A)){for(var E=0,C=A.length;E<C;E++){F.push(Ext.Direct.createEvent(A[E]));
}}else{F.push(Ext.Direct.createEvent(A));}return F;}});Ext.direct.PollingProvider=Ext.extend(Ext.direct.JsonProvider,{priority:3,interval:3000,constructor:function(A){Ext.direct.PollingProvider.superclass.constructor.call(this,A);
this.addEvents("beforepoll","poll");},isConnected:function(){return !!this.pollTask;
},connect:function(){if(this.url&&!this.pollTask){this.pollTask=Ext.TaskMgr.start({run:function(){if(this.fireEvent("beforepoll",this)!==false){if(typeof this.url=="function"){this.url(this.baseParams);
}else{Ext.Ajax.request({url:this.url,callback:this.onData,scope:this,params:this.baseParams});
}}},interval:this.interval,scope:this});this.fireEvent("connect",this);}else{if(!this.url){throw"Error initializing PollingProvider, no url configured.";
}}},disconnect:function(){if(this.pollTask){Ext.TaskMgr.stop(this.pollTask);delete this.pollTask;
this.fireEvent("disconnect",this);}},onData:function(B,G,A){if(G){var F=this.getEvents(A);
for(var E=0,C=F.length;E<C;E++){var D=F[E];this.fireEvent("data",this,D);}}else{var D=new Ext.Direct.ExceptionEvent({data:D,code:Ext.Direct.exceptions.TRANSPORT,message:"Unable to connect to the server.",xhr:A});
this.fireEvent("data",this,D);}}});Ext.Direct.PROVIDERS.polling=Ext.direct.PollingProvider;
Ext.direct.RemotingProvider=Ext.extend(Ext.direct.JsonProvider,{enableBuffer:10,maxRetries:1,timeout:undefined,constructor:function(A){Ext.direct.RemotingProvider.superclass.constructor.call(this,A);
this.addEvents("beforecall","call");this.namespace=(Ext.isString(this.namespace))?Ext.ns(this.namespace):this.namespace||window;
this.transactions={};this.callBuffer=[];},initAPI:function(){var A=this.actions;for(var G in A){var B=this.namespace[G]||(this.namespace[G]={}),C=A[G];
for(var D=0,E=C.length;D<E;D++){var F=C[D];B[F.name]=this.createMethod(G,F);}}},isConnected:function(){return !!this.connected;
},connect:function(){if(this.url){this.initAPI();this.connected=true;this.fireEvent("connect",this);
}else{if(!this.url){throw"Error initializing RemotingProvider, no url configured.";
}}},disconnect:function(){if(this.connected){this.connected=false;this.fireEvent("disconnect",this);
}},onData:function(G,C,A){if(C){var B=this.getEvents(A);for(var E=0,F=B.length;E<F;
E++){var I=B[E],D=this.getTransaction(I);this.fireEvent("data",this,I);if(D){this.doCallback(D,I,true);
Ext.Direct.removeTransaction(D);}}}else{var H=[].concat(G.ts);for(var E=0,F=H.length;
E<F;E++){var D=this.getTransaction(H[E]);if(D&&D.retryCount<this.maxRetries){D.retry();
}else{var I=new Ext.Direct.ExceptionEvent({data:I,transaction:D,code:Ext.Direct.exceptions.TRANSPORT,message:"Unable to connect to the server.",xhr:A});
this.fireEvent("data",this,I);if(D){this.doCallback(D,I,false);Ext.Direct.removeTransaction(D);
}}}}},getCallData:function(A){return{action:A.action,method:A.method,data:A.data,type:"rpc",tid:A.tid};
},doSend:function(B){var A={url:this.url,callback:this.onData,scope:this,ts:B,timeout:this.timeout},D;
if(Ext.isArray(B)){D=[];for(var E=0,F=B.length;E<F;E++){D.push(this.getCallData(B[E]));
}}else{D=this.getCallData(B);}if(this.enableUrlEncode){var C={};C[Ext.isString(this.enableUrlEncode)?this.enableUrlEncode:"data"]=Ext.encode(D);
A.params=C;}else{A.jsonData=D;}Ext.Ajax.request(A);},combineAndSend:function(){var A=this.callBuffer.length;
if(A>0){this.doSend(A==1?this.callBuffer[0]:this.callBuffer);this.callBuffer=[];}},queueTransaction:function(A){if(A.form){this.processForm(A);
return ;}this.callBuffer.push(A);if(this.enableBuffer){if(!this.callTask){this.callTask=new Ext.util.DelayedTask(this.combineAndSend,this);
}this.callTask.delay(Ext.isNumber(this.enableBuffer)?this.enableBuffer:10);}else{this.combineAndSend();
}},doCall:function(B,G,F){var A=null,C=F[G.len],E=F[G.len+1];if(G.len!==0){A=F.slice(0,G.len);
}var D=new Ext.Direct.Transaction({provider:this,args:F,action:B,method:G.name,data:A,cb:E&&Ext.isFunction(C)?C.createDelegate(E):C});
if(this.fireEvent("beforecall",this,D)!==false){Ext.Direct.addTransaction(D);this.queueTransaction(D);
this.fireEvent("call",this,D);}},doForm:function(B,E,G,D,A){var H=new Ext.Direct.Transaction({provider:this,action:B,method:E.name,args:[G,D,A],cb:A&&Ext.isFunction(D)?D.createDelegate(A):D,isForm:true});
if(this.fireEvent("beforecall",this,H)!==false){Ext.Direct.addTransaction(H);var F=String(G.getAttribute("enctype")).toLowerCase()=="multipart/form-data",C={extTID:H.tid,extAction:B,extMethod:E.name,extType:"rpc",extUpload:String(F)};
Ext.apply(H,{form:Ext.getDom(G),isUpload:F,params:D&&Ext.isObject(D.params)?Ext.apply(C,D.params):C});
this.fireEvent("call",this,H);this.processForm(H);}},processForm:function(A){Ext.Ajax.request({url:this.url,params:A.params,callback:this.onData,scope:this,form:A.form,isUpload:A.isUpload,ts:A});
},createMethod:function(A,C){var B;if(!C.formHandler){B=function(){this.doCall(A,C,Array.prototype.slice.call(arguments,0));
}.createDelegate(this);}else{B=function(E,D,F){this.doForm(A,C,E,D,F);}.createDelegate(this);
}B.directCfg={action:A,method:C};return B;},getTransaction:function(A){return A&&A.tid?Ext.Direct.getTransaction(A.tid):null;
},doCallback:function(D,A){var B=A.status?"success":"failure";if(D&&D.cb){var C=D.cb,E=Ext.isDefined(A.result)?A.result:A.data;
if(Ext.isFunction(C)){C(E,A);}else{Ext.callback(C[B],C.scope,[E,A]);Ext.callback(C.callback,C.scope,[E,A]);
}}}});Ext.Direct.PROVIDERS.remoting=Ext.direct.RemotingProvider;Ext.Resizable=Ext.extend(Ext.util.Observable,{constructor:function(M,A){this.el=Ext.get(M);
if(A&&A.wrap){A.resizeChild=this.el;this.el=this.el.wrap(typeof A.wrap=="object"?A.wrap:{cls:"xresizable-wrap"});
this.el.id=this.el.dom.id=A.resizeChild.id+"-rzwrap";this.el.setStyle("overflow","hidden");
this.el.setPositioning(A.resizeChild.getPositioning());A.resizeChild.clearPositioning();
if(!A.width||!A.height){var L=A.resizeChild.getSize();this.el.setSize(L.width,L.height);
}if(A.pinned&&!A.adjustments){A.adjustments="auto";}}this.proxy=this.el.createProxy({tag:"div",cls:"x-resizable-proxy",id:this.el.id+"-rzproxy"},Ext.getBody());
this.proxy.unselectable();this.proxy.enableDisplayMode("block");Ext.apply(this,A);
if(this.pinned){this.disableTrackOver=true;this.el.addClass("x-resizable-pinned");
}var C=this.el.getStyle("position");if(C!="absolute"&&C!="fixed"){this.el.setStyle("position","relative");
}if(!this.handles){this.handles="s,e,se";if(this.multiDirectional){this.handles+=",n,w";
}}if(this.handles=="all"){this.handles="n s e w ne nw se sw";}var F=this.handles.split(/\s*?[,;]\s*?| /);
var J=Ext.Resizable.positions;for(var B=0,G=F.length;B<G;B++){if(F[B]&&J[F[B]]){var E=J[F[B]];
this[E]=new Ext.Resizable.Handle(this,E,this.disableTrackOver,this.transparent,this.handleCls);
}}this.corner=this.southeast;if(this.handles.indexOf("n")!=-1||this.handles.indexOf("w")!=-1){this.updateBox=true;
}this.activeHandle=null;if(this.resizeChild){if(typeof this.resizeChild=="boolean"){this.resizeChild=Ext.get(this.el.dom.firstChild,true);
}else{this.resizeChild=Ext.get(this.resizeChild,true);}}if(this.adjustments=="auto"){var I=this.resizeChild;
var H=this.west,D=this.east,K=this.north,F=this.south;if(I&&(H||K)){I.position("relative");
I.setLeft(H?H.el.getWidth():0);I.setTop(K?K.el.getHeight():0);}this.adjustments=[(D?-D.el.getWidth():0)+(H?-H.el.getWidth():0),(K?-K.el.getHeight():0)+(F?-F.el.getHeight():0)-1];
}if(this.draggable){this.dd=this.dynamic?this.el.initDD(null):this.el.initDDProxy(null,{dragElId:this.proxy.id});
this.dd.setHandleElId(this.resizeChild?this.resizeChild.id:this.el.id);if(this.constrainTo){this.dd.constrainTo(this.constrainTo);
}}this.addEvents("beforeresize","resize");if(this.width!==null&&this.height!==null){this.resizeTo(this.width,this.height);
}else{this.updateChildSize();}if(Ext.isIE){this.el.dom.style.zoom=1;}Ext.Resizable.superclass.constructor.call(this);
},adjustments:[0,0],animate:false,disableTrackOver:false,draggable:false,duration:0.35,dynamic:false,easing:"easeOutStrong",enabled:true,handles:false,multiDirectional:false,height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:5,minWidth:5,maxHeight:10000,maxWidth:10000,minX:0,minY:0,pinned:false,preserveRatio:false,resizeChild:false,transparent:false,resizeTo:function(A,B){this.el.setSize(A,B);
this.updateChildSize();this.fireEvent("resize",this,A,B,null);},startSizing:function(B,A){this.fireEvent("beforeresize",this,B);
if(this.enabled){if(!this.overlay){this.overlay=this.el.createProxy({tag:"div",cls:"x-resizable-overlay",html:"&#160;"},Ext.getBody());
this.overlay.unselectable();this.overlay.enableDisplayMode("block");this.overlay.on({scope:this,mousemove:this.onMouseMove,mouseup:this.onMouseUp});
}this.overlay.setStyle("cursor",A.el.getStyle("cursor"));this.resizing=true;this.startBox=this.el.getBox();
this.startPoint=B.getXY();this.offsets=[(this.startBox.x+this.startBox.width)-this.startPoint[0],(this.startBox.y+this.startBox.height)-this.startPoint[1]];
this.overlay.setSize(Ext.lib.Dom.getViewWidth(true),Ext.lib.Dom.getViewHeight(true));
this.overlay.show();if(this.constrainTo){var C=Ext.get(this.constrainTo);this.resizeRegion=C.getRegion().adjust(C.getFrameWidth("t"),C.getFrameWidth("l"),-C.getFrameWidth("b"),-C.getFrameWidth("r"));
}this.proxy.setStyle("visibility","hidden");this.proxy.show();this.proxy.setBox(this.startBox);
if(!this.dynamic){this.proxy.setStyle("visibility","visible");}}},onMouseDown:function(B,A){if(this.enabled){A.stopEvent();
this.activeHandle=B;this.startSizing(A,B);}},onMouseUp:function(A){this.activeHandle=null;
var B=this.resizeElement();this.resizing=false;this.handleOut();this.overlay.hide();
this.proxy.hide();this.fireEvent("resize",this,B.width,B.height,A);},updateChildSize:function(){if(this.resizeChild){var A=this.el;
var B=this.resizeChild;var C=this.adjustments;if(A.dom.offsetWidth){var D=A.getSize(true);
B.setSize(D.width+C[0],D.height+C[1]);}if(Ext.isIE){setTimeout(function(){if(A.dom.offsetWidth){var E=A.getSize(true);
B.setSize(E.width+C[0],E.height+C[1]);}},10);}}},snap:function(D,B,C){if(!B||!D){return D;
}var A=D;var E=D%B;if(E>0){if(E>(B/2)){A=D+(B-E);}else{A=D-E;}}return Math.max(C,A);
},resizeElement:function(){var A=this.proxy.getBox();if(this.updateBox){this.el.setBox(A,false,this.animate,this.duration,null,this.easing);
}else{this.el.setSize(A.width,A.height,this.animate,this.duration,null,this.easing);
}this.updateChildSize();if(!this.dynamic){this.proxy.hide();}if(this.draggable&&this.constrainTo){this.dd.resetConstraints();
this.dd.constrainTo(this.constrainTo);}return A;},constrain:function(B,C,D,A){if(B-C<D){C=B-D;
}else{if(B-C>A){C=B-A;}}return C;},onMouseMove:function(y){if(this.enabled&&this.activeHandle){try{if(this.resizeRegion&&!this.resizeRegion.contains(y.getPoint())){return ;
}var K=this.curSize||this.startBox,R=this.startBox.x,N=this.startBox.y,U=R,T=N,S=K.width,L=K.height,X=S,Q=L,P=this.minWidth,e=this.minHeight,G=this.maxWidth,h=this.maxHeight,O=this.widthIncrement,V=this.heightIncrement,Y=y.getXY(),F=-(this.startPoint[0]-Math.max(this.minX,Y[0])),H=-(this.startPoint[1]-Math.max(this.minY,Y[1])),M=this.activeHandle.position,x,W;
switch(M){case"east":S+=F;S=Math.min(Math.max(P,S),G);break;case"south":L+=H;L=Math.min(Math.max(e,L),h);
break;case"southeast":S+=F;L+=H;S=Math.min(Math.max(P,S),G);L=Math.min(Math.max(e,L),h);
break;case"north":H=this.constrain(L,H,e,h);N+=H;L-=H;break;case"west":F=this.constrain(S,F,P,G);
R+=F;S-=F;break;case"northeast":S+=F;S=Math.min(Math.max(P,S),G);H=this.constrain(L,H,e,h);
N+=H;L-=H;break;case"northwest":F=this.constrain(S,F,P,G);H=this.constrain(L,H,e,h);
N+=H;L-=H;R+=F;S-=F;break;case"southwest":F=this.constrain(S,F,P,G);L+=H;L=Math.min(Math.max(e,L),h);
R+=F;S-=F;break;}var I=this.snap(S,O,P);var Z=this.snap(L,V,e);if(I!=S||Z!=L){switch(M){case"northeast":N-=Z-L;
break;case"north":N-=Z-L;break;case"southwest":R-=I-S;break;case"west":R-=I-S;break;
case"northwest":R-=I-S;N-=Z-L;break;}S=I;L=Z;}if(this.preserveRatio){switch(M){case"southeast":case"east":L=Q*(S/X);
L=Math.min(Math.max(e,L),h);S=X*(L/Q);break;case"south":S=X*(L/Q);S=Math.min(Math.max(P,S),G);
L=Q*(S/X);break;case"northeast":S=X*(L/Q);S=Math.min(Math.max(P,S),G);L=Q*(S/X);break;
case"north":x=S;S=X*(L/Q);S=Math.min(Math.max(P,S),G);L=Q*(S/X);R+=(x-S)/2;break;
case"southwest":L=Q*(S/X);L=Math.min(Math.max(e,L),h);x=S;S=X*(L/Q);R+=x-S;break;
case"west":W=L;L=Q*(S/X);L=Math.min(Math.max(e,L),h);N+=(W-L)/2;x=S;S=X*(L/Q);R+=x-S;
break;case"northwest":x=S;W=L;L=Q*(S/X);L=Math.min(Math.max(e,L),h);S=X*(L/Q);N+=W-L;
R+=x-S;break;}}this.proxy.setBounds(R,N,S,L);if(this.dynamic){this.resizeElement();
}}catch(J){}}},handleOver:function(){if(this.enabled){this.el.addClass("x-resizable-over");
}},handleOut:function(){if(!this.resizing){this.el.removeClass("x-resizable-over");
}},getEl:function(){return this.el;},getResizeChild:function(){return this.resizeChild;
},destroy:function(A){Ext.destroy(this.dd,this.overlay,this.proxy);this.overlay=null;
this.proxy=null;var B=Ext.Resizable.positions;for(var C in B){if(typeof B[C]!="function"&&this[B[C]]){this[B[C]].destroy();
}}if(A){this.el.update("");Ext.destroy(this.el);this.el=null;}this.purgeListeners();
},syncHandleHeight:function(){var A=this.el.getHeight(true);if(this.west){this.west.el.setHeight(A);
}if(this.east){this.east.el.setHeight(A);}}});Ext.Resizable.positions={n:"north",s:"south",e:"east",w:"west",se:"southeast",sw:"southwest",nw:"northwest",ne:"northeast"};
Ext.Resizable.Handle=Ext.extend(Object,{constructor:function(B,A,E,C,F){if(!this.tpl){var D=Ext.DomHelper.createTemplate({tag:"div",cls:"x-resizable-handle x-resizable-handle-{0}"});
D.compile();Ext.Resizable.Handle.prototype.tpl=D;}this.position=A;this.rz=B;this.el=this.tpl.append(B.el.dom,[this.position],true);
this.el.unselectable();if(C){this.el.setOpacity(0);}if(!Ext.isEmpty(F)){this.el.addClass(F);
}this.el.on("mousedown",this.onMouseDown,this);if(!E){this.el.on({scope:this,mouseover:this.onMouseOver,mouseout:this.onMouseOut});
}},afterResize:function(A){},onMouseDown:function(A){this.rz.onMouseDown(this,A);
},onMouseOver:function(A){this.rz.handleOver(this,A);},onMouseOut:function(A){this.rz.handleOut(this,A);
},destroy:function(){Ext.destroy(this.el);this.el=null;}});Ext.Window=Ext.extend(Ext.Panel,{baseCls:"x-window",resizable:true,draggable:true,closable:true,closeAction:"close",constrain:false,constrainHeader:false,plain:false,minimizable:false,maximizable:false,minHeight:100,minWidth:200,expandOnShow:true,collapsible:false,initHidden:undefined,hidden:true,elements:"header,body",frame:true,floating:true,initComponent:function(){this.initTools();
Ext.Window.superclass.initComponent.call(this);this.addEvents("resize","maximize","minimize","restore");
if(Ext.isDefined(this.initHidden)){this.hidden=this.initHidden;}if(this.hidden===false){this.hidden=true;
this.show();}},getState:function(){return Ext.apply(Ext.Window.superclass.getState.call(this)||{},this.getBox(true));
},onRender:function(A,B){Ext.Window.superclass.onRender.call(this,A,B);if(this.plain){this.el.addClass("x-window-plain");
}this.focusEl=this.el.createChild({tag:"a",href:"#",cls:"x-dlg-focus",tabIndex:"-1",html:"&#160;"});
this.focusEl.swallowEvent("click",true);this.proxy=this.el.createProxy("x-window-proxy");
this.proxy.enableDisplayMode("block");if(this.modal){this.mask=this.container.createChild({cls:"ext-el-mask"},this.el.dom);
this.mask.enableDisplayMode("block");this.mask.hide();this.mon(this.mask,"click",this.focus,this);
}if(this.maximizable){this.mon(this.header,"dblclick",this.toggleMaximize,this);}},initEvents:function(){Ext.Window.superclass.initEvents.call(this);
if(this.animateTarget){this.setAnimateTarget(this.animateTarget);}if(this.resizable){this.resizer=new Ext.Resizable(this.el,{minWidth:this.minWidth,minHeight:this.minHeight,handles:this.resizeHandles||"all",pinned:true,resizeElement:this.resizerAction,handleCls:"x-window-handle"});
this.resizer.window=this;this.mon(this.resizer,"beforeresize",this.beforeResize,this);
}if(this.draggable){this.header.addClass("x-window-draggable");}this.mon(this.el,"mousedown",this.toFront,this);
this.manager=this.manager||Ext.WindowMgr;this.manager.register(this);if(this.maximized){this.maximized=false;
this.maximize();}if(this.closable){var A=this.getKeyMap();A.on(27,this.onEsc,this);
A.disable();}},initDraggable:function(){this.dd=new Ext.Window.DD(this);},onEsc:function(B,A){A.stopEvent();
this[this.closeAction]();},beforeDestroy:function(){if(this.rendered){this.hide();
this.clearAnchor();Ext.destroy(this.focusEl,this.resizer,this.dd,this.proxy,this.mask);
}Ext.Window.superclass.beforeDestroy.call(this);},onDestroy:function(){if(this.manager){this.manager.unregister(this);
}Ext.Window.superclass.onDestroy.call(this);},initTools:function(){if(this.minimizable){this.addTool({id:"minimize",handler:this.minimize.createDelegate(this,[])});
}if(this.maximizable){this.addTool({id:"maximize",handler:this.maximize.createDelegate(this,[])});
this.addTool({id:"restore",handler:this.restore.createDelegate(this,[]),hidden:true});
}if(this.closable){this.addTool({id:"close",handler:this[this.closeAction].createDelegate(this,[])});
}},resizerAction:function(){var A=this.proxy.getBox();this.proxy.hide();this.window.handleResize(A);
return A;},beforeResize:function(){this.resizer.minHeight=Math.max(this.minHeight,this.getFrameHeight()+40);
this.resizer.minWidth=Math.max(this.minWidth,this.getFrameWidth()+40);this.resizeBox=this.el.getBox();
},updateHandles:function(){if(Ext.isIE&&this.resizer){this.resizer.syncHandleHeight();
this.el.repaint();}},handleResize:function(A){var B=this.resizeBox;if(B.x!=A.x||B.y!=A.y){this.updateBox(A);
}else{this.setSize(A);if(Ext.isIE6&&Ext.isStrict){this.doLayout();}}this.focus();
this.updateHandles();this.saveState();},focus:function(){var B=this.focusEl,E=this.defaultButton,D=typeof E,A,C;
if(Ext.isDefined(E)){if(Ext.isNumber(E)&&this.fbar){B=this.fbar.items.get(E);}else{if(Ext.isString(E)){B=Ext.getCmp(E);
}else{B=E;}}A=B.getEl();C=Ext.getDom(this.container);if(A&&C){if(!Ext.lib.Region.getRegion(C).contains(Ext.lib.Region.getRegion(A.dom))){return ;
}}}B=B||this.focusEl;B.focus.defer(10,B);},setAnimateTarget:function(A){A=Ext.get(A);
this.animateTarget=A;},beforeShow:function(){delete this.el.lastXY;delete this.el.lastLT;
if(this.x===undefined||this.y===undefined){var B=this.el.getAlignToXY(this.container,"c-c");
var A=this.el.translatePoints(B[0],B[1]);this.x=this.x===undefined?A.left:this.x;
this.y=this.y===undefined?A.top:this.y;}this.el.setLeftTop(this.x,this.y);if(this.expandOnShow){this.expand(false);
}if(this.modal){Ext.getBody().addClass("x-body-masked");this.mask.setSize(Ext.lib.Dom.getViewWidth(true),Ext.lib.Dom.getViewHeight(true));
this.mask.show();}},show:function(B,C,A){if(!this.rendered){this.render(Ext.getBody());
}if(this.hidden===false){this.toFront();return this;}if(this.fireEvent("beforeshow",this)===false){return this;
}if(C){this.on("show",C,A,{single:true});}this.hidden=false;if(Ext.isDefined(B)){this.setAnimateTarget(B);
}this.beforeShow();if(this.animateTarget){this.animShow();}else{this.afterShow();
}return this;},afterShow:function(A){if(this.isDestroyed){return false;}this.proxy.hide();
this.el.setStyle("display","block");this.el.show();if(this.maximized){this.fitContainer();
}if(Ext.isMac&&Ext.isGecko2){this.cascade(this.setAutoScroll);}if(this.monitorResize||this.modal||this.constrain||this.constrainHeader){Ext.EventManager.onWindowResize(this.onWindowResize,this);
}this.doConstrain();this.doLayout();if(this.keyMap){this.keyMap.enable();}this.toFront();
this.updateHandles();if(A&&(Ext.isIE||Ext.isWebKit)){var B=this.getSize();this.onResize(B.width,B.height);
}this.onShow();this.fireEvent("show",this);},animShow:function(){this.proxy.show();
this.proxy.setBox(this.animateTarget.getBox());this.proxy.setOpacity(0);var A=this.getBox();
this.el.setStyle("display","none");this.proxy.shift(Ext.apply(A,{callback:this.afterShow.createDelegate(this,[true],false),scope:this,easing:"easeNone",duration:0.25,opacity:0.5}));
},hide:function(B,C,A){if(this.hidden||this.fireEvent("beforehide",this)===false){return this;
}if(C){this.on("hide",C,A,{single:true});}this.hidden=true;if(B!==undefined){this.setAnimateTarget(B);
}if(this.modal){this.mask.hide();Ext.getBody().removeClass("x-body-masked");}if(this.animateTarget){this.animHide();
}else{this.el.hide();this.afterHide();}return this;},afterHide:function(){this.proxy.hide();
if(this.monitorResize||this.modal||this.constrain||this.constrainHeader){Ext.EventManager.removeResizeListener(this.onWindowResize,this);
}if(this.keyMap){this.keyMap.disable();}this.onHide();this.fireEvent("hide",this);
},animHide:function(){this.proxy.setOpacity(0.5);this.proxy.show();var A=this.getBox(false);
this.proxy.setBox(A);this.el.hide();this.proxy.shift(Ext.apply(this.animateTarget.getBox(),{callback:this.afterHide,scope:this,duration:0.25,easing:"easeNone",opacity:0}));
},onShow:Ext.emptyFn,onHide:Ext.emptyFn,onWindowResize:function(){if(this.maximized){this.fitContainer();
}if(this.modal){this.mask.setSize("100%","100%");var A=this.mask.dom.offsetHeight;
this.mask.setSize(Ext.lib.Dom.getViewWidth(true),Ext.lib.Dom.getViewHeight(true));
}this.doConstrain();},doConstrain:function(){if(this.constrain||this.constrainHeader){var A;
if(this.constrain){A={right:this.el.shadowOffset,left:this.el.shadowOffset,bottom:this.el.shadowOffset};
}else{var C=this.getSize();A={right:-(C.width-100),bottom:-(C.height-25)};}var B=this.el.getConstrainToXY(this.container,true,A);
if(B){this.setPosition(B[0],B[1]);}}},ghost:function(C){var B=this.createGhost(C);
var A=this.getBox(true);B.setLeftTop(A.x,A.y);B.setWidth(A.width);this.el.hide();
this.activeGhost=B;return B;},unghost:function(A,B){if(!this.activeGhost){return ;
}if(A!==false){this.el.show();this.focus.defer(10,this);if(Ext.isMac&&Ext.isGecko2){this.cascade(this.setAutoScroll);
}}if(B!==false){this.setPosition(this.activeGhost.getLeft(true),this.activeGhost.getTop(true));
}this.activeGhost.hide();this.activeGhost.remove();delete this.activeGhost;},minimize:function(){this.fireEvent("minimize",this);
return this;},close:function(){if(this.fireEvent("beforeclose",this)!==false){if(this.hidden){this.doClose();
}else{this.hide(null,this.doClose,this);}}},doClose:function(){this.fireEvent("close",this);
this.destroy();},maximize:function(){if(!this.maximized){this.expand(false);this.restoreSize=this.getSize();
this.restorePos=this.getPosition(true);if(this.maximizable){this.tools.maximize.hide();
this.tools.restore.show();}this.maximized=true;this.el.disableShadow();if(this.dd){this.dd.lock();
}if(this.collapsible){this.tools.toggle.hide();}this.el.addClass("x-window-maximized");
this.container.addClass("x-window-maximized-ct");this.setPosition(0,0);this.fitContainer();
this.fireEvent("maximize",this);}return this;},restore:function(){if(this.maximized){var A=this.tools;
this.el.removeClass("x-window-maximized");if(A.restore){A.restore.hide();}if(A.maximize){A.maximize.show();
}this.setPosition(this.restorePos[0],this.restorePos[1]);this.setSize(this.restoreSize.width,this.restoreSize.height);
delete this.restorePos;delete this.restoreSize;this.maximized=false;this.el.enableShadow(true);
if(this.dd){this.dd.unlock();}if(this.collapsible&&A.toggle){A.toggle.show();}this.container.removeClass("x-window-maximized-ct");
this.doConstrain();this.fireEvent("restore",this);}return this;},toggleMaximize:function(){return this[this.maximized?"restore":"maximize"]();
},fitContainer:function(){var A=this.container.getViewSize(false);this.setSize(A.width,A.height);
},setZIndex:function(A){if(this.modal){this.mask.setStyle("z-index",A);}this.el.setZIndex(++A);
A+=5;if(this.resizer){this.resizer.proxy.setStyle("z-index",++A);}this.lastZIndex=A;
},alignTo:function(B,D,C){var A=this.el.getAlignToXY(B,D,C);this.setPagePosition(A[0],A[1]);
return this;},anchorTo:function(D,B,A,C){this.clearAnchor();this.anchorTarget={el:D,alignment:B,offsets:A};
Ext.EventManager.onWindowResize(this.doAnchor,this);var E=typeof C;if(E!="undefined"){Ext.EventManager.on(window,"scroll",this.doAnchor,this,{buffer:E=="number"?C:50});
}return this.doAnchor();},doAnchor:function(){var A=this.anchorTarget;this.alignTo(A.el,A.alignment,A.offsets);
return this;},clearAnchor:function(){if(this.anchorTarget){Ext.EventManager.removeResizeListener(this.doAnchor,this);
Ext.EventManager.un(window,"scroll",this.doAnchor,this);delete this.anchorTarget;
}return this;},toFront:function(A){if(this.manager.bringToFront(this)){if(!A||!A.getTarget().focus){this.focus();
}}return this;},setActive:function(A){if(A){if(!this.maximized){this.el.enableShadow(true);
}this.fireEvent("activate",this);}else{this.el.disableShadow();this.fireEvent("deactivate",this);
}},toBack:function(){this.manager.sendToBack(this);return this;},center:function(){var A=this.el.getAlignToXY(this.container,"c-c");
this.setPagePosition(A[0],A[1]);return this;}});Ext.reg("window",Ext.Window);Ext.Window.DD=function(A){this.win=A;
Ext.Window.DD.superclass.constructor.call(this,A.el.id,"WindowDD-"+A.id);this.setHandleElId(A.header.id);
this.scroll=false;};Ext.extend(Ext.Window.DD,Ext.dd.DD,{moveOnly:true,headerOffsets:[100,25],startDrag:function(){var C=this.win;
this.proxy=C.ghost();if(C.constrain!==false){var B=C.el.shadowOffset;this.constrainTo(C.container,{right:B,left:B,bottom:B});
}else{if(C.constrainHeader!==false){var A=this.proxy.getSize();this.constrainTo(C.container,{right:-(A.width-this.headerOffsets[0]),bottom:-(A.height-this.headerOffsets[1])});
}}},b4Drag:Ext.emptyFn,onDrag:function(A){this.alignElWithMouse(this.proxy,A.getPageX(),A.getPageY());
},endDrag:function(A){this.win.unghost();this.win.saveState();}});Ext.WindowGroup=function(){var A={};
var B=[];var C=null;var F=function(I,H){return(!I._lastAccess||I._lastAccess<H._lastAccess)?-1:1;
};var D=function(){var I=B,K=I.length;if(K>0){I.sort(F);var L=I[0].manager.zseed;
for(var J=0;J<K;J++){var H=I[J];if(H&&!H.hidden){H.setZIndex(L+(J*10));}}}G();};var E=function(H){if(H!=C){if(C){C.setActive(false);
}C=H;if(H){H.setActive(true);}}};var G=function(){for(var H=B.length-1;H>=0;--H){if(!B[H].hidden){E(B[H]);
return ;}}E(null);};return{zseed:9000,register:function(H){if(H.manager){H.manager.unregister(H);
}H.manager=this;A[H.id]=H;B.push(H);H.on("hide",G);},unregister:function(H){delete H.manager;
delete A[H.id];H.un("hide",G);B.remove(H);},get:function(H){return typeof H=="object"?H:A[H];
},bringToFront:function(H){H=this.get(H);if(H!=C){H._lastAccess=new Date().getTime();
D();return true;}return false;},sendToBack:function(H){H=this.get(H);H._lastAccess=-(new Date().getTime());
D();return H;},hideAll:function(){for(var H in A){if(A[H]&&typeof A[H]!="function"&&A[H].isVisible()){A[H].hide();
}}},getActive:function(){return C;},getBy:function(I,L){var J=[];for(var K=B.length-1;
K>=0;--K){var H=B[K];if(I.call(L||H,H)!==false){J.push(H);}}return J;},each:function(I,H){for(var J in A){if(A[J]&&typeof A[J]!="function"){if(I.call(H||A[J],A[J])===false){return ;
}}}}};};Ext.WindowMgr=new Ext.WindowGroup();Ext.MessageBox=function(){var G,P,D,F,J,N,B,R,L,C,H,S,A,E,M,K="",T="",O=["ok","yes","no","cancel"];
var Q=function(W){A[W].blur();if(G.isVisible()){G.hide();V();Ext.callback(P.fn,P.scope||window,[W,E.dom.value,P],1);
}};var V=function(){if(P&&P.cls){G.el.removeClass(P.cls);}L.reset();};var U=function(Y,X,W){if(P&&P.closable!==false){G.hide();
V();}if(W){W.stopEvent();}};var I=function(X){var Y=0,W;if(!X){Ext.each(O,function(Z){A[Z].hide();
});return Y;}G.footer.dom.style.display="";Ext.iterate(A,function(Z,a){W=X[Z];if(W){a.show();
a.setText(Ext.isString(W)?W:Ext.MessageBox.buttonText[Z]);Y+=a.getEl().getWidth()+15;
}else{a.hide();}});return Y;};return{getDialog:function(X){if(!G){var Y=[];A={};Ext.each(O,function(Z){Y.push(A[Z]=new Ext.Button({text:this.buttonText[Z],handler:Q.createCallback(Z),hideMode:"offsets"}));
},this);G=new Ext.Window({autoCreate:true,title:X,resizable:false,constrain:true,constrainHeader:true,minimizable:false,maximizable:false,stateful:false,modal:true,shim:true,buttonAlign:"center",width:400,height:100,minHeight:80,plain:true,footer:true,closable:true,close:function(){if(P&&P.buttons&&P.buttons.no&&!P.buttons.cancel){Q("no");
}else{Q("cancel");}},fbar:new Ext.Toolbar({items:Y,enableOverflow:false})});G.render(document.body);
G.getEl().addClass("x-window-dlg");D=G.mask;J=G.body.createChild({html:'<div class="ext-mb-icon"></div><div class="ext-mb-content"><span class="ext-mb-text"></span><br /><div class="ext-mb-fix-cursor"><input type="text" class="ext-mb-input" /><textarea class="ext-mb-textarea"></textarea></div></div>'});
H=Ext.get(J.dom.firstChild);var W=J.dom.childNodes[1];N=Ext.get(W.firstChild);B=Ext.get(W.childNodes[2].firstChild);
B.enableDisplayMode();B.addKeyListener([10,13],function(){if(G.isVisible()&&P&&P.buttons){if(P.buttons.ok){Q("ok");
}else{if(P.buttons.yes){Q("yes");}}}});R=Ext.get(W.childNodes[2].childNodes[1]);R.enableDisplayMode();
L=new Ext.ProgressBar({renderTo:J});J.createChild({cls:"x-clear"});}return G;},updateText:function(Y){if(!G.isVisible()&&!P.width){G.setSize(this.maxWidth,100);
}N.update(Y||"&#160;");var X=T!=""?(H.getWidth()+H.getMargins("lr")):0,W=N.getWidth()+N.getMargins("lr"),b=G.getFrameWidth("lr"),Z=G.body.getFrameWidth("lr"),a;
if(Ext.isIE&&X>0){X+=3;}a=Math.max(Math.min(P.width||X+W+b+Z,P.maxWidth||this.maxWidth),Math.max(P.minWidth||this.minWidth,M||0));
if(P.prompt===true){E.setWidth(a-X-b-Z);}if(P.progress===true||P.wait===true){L.setSize(a-X-b-Z);
}if(Ext.isIE&&a==M){a+=4;}G.setSize(a,"auto").center();return this;},updateProgress:function(W,X,Y){L.updateProgress(W,X);
if(Y){this.updateText(Y);}return this;},isVisible:function(){return G&&G.isVisible();
},hide:function(){var W=G?G.activeGhost:null;if(this.isVisible()||W){G.hide();V();
if(W){G.unghost(false,false);}}return this;},show:function(X){if(this.isVisible()){this.hide();
}P=X;var Y=this.getDialog(P.title||"&#160;");Y.setTitle(P.title||"&#160;");var Z=(P.closable!==false&&P.progress!==true&&P.wait!==true);
Y.tools.close.setDisplayed(Z);E=B;P.prompt=P.prompt||(P.multiline?true:false);if(P.prompt){if(P.multiline){B.hide();
R.show();R.setHeight(Ext.isNumber(P.multiline)?P.multiline:this.defaultTextHeight);
E=R;}else{B.show();R.hide();}}else{B.hide();R.hide();}E.dom.value=P.value||"";if(P.prompt){Y.focusEl=E;
}else{var a=P.buttons;var W=null;if(a&&a.ok){W=A.ok;}else{if(a&&a.yes){W=A.yes;}}if(W){Y.focusEl=W;
}}if(P.iconCls){Y.setIconClass(P.iconCls);}this.setIcon(Ext.isDefined(P.icon)?P.icon:K);
M=I(P.buttons);L.setVisible(P.progress===true||P.wait===true);this.updateProgress(0,P.progressText);
this.updateText(P.msg);if(P.cls){Y.el.addClass(P.cls);}Y.proxyDrag=P.proxyDrag===true;
Y.modal=P.modal!==false;Y.mask=P.modal!==false?D:false;if(!Y.isVisible()){document.body.appendChild(G.el.dom);
Y.setAnimateTarget(P.animEl);Y.on("show",function(){if(Z===true){Y.keyMap.enable();
}else{Y.keyMap.disable();}},this,{single:true});Y.show(P.animEl);}if(P.wait===true){L.wait(P.waitConfig);
}return this;},setIcon:function(W){if(!G){K=W;return ;}K=undefined;if(W&&W!=""){H.removeClass("x-hidden");
H.replaceClass(T,W);J.addClass("x-dlg-icon");T=W;}else{H.replaceClass(T,"x-hidden");
J.removeClass("x-dlg-icon");T="";}return this;},progress:function(Y,W,X){this.show({title:Y,msg:W,buttons:false,progress:true,closable:false,minWidth:this.minProgressWidth,progressText:X});
return this;},wait:function(Y,W,X){this.show({title:W,msg:Y,buttons:false,closable:false,wait:true,modal:true,minWidth:this.minProgressWidth,waitConfig:X});
return this;},alert:function(X,Z,W,Y){this.show({title:X,msg:Z,buttons:this.OK,fn:W,scope:Y,minWidth:this.minWidth});
return this;},confirm:function(X,Z,W,Y){this.show({title:X,msg:Z,buttons:this.YESNO,fn:W,scope:Y,icon:this.QUESTION,minWidth:this.minWidth});
return this;},prompt:function(W,a,b,X,Z,Y){this.show({title:W,msg:a,buttons:this.OKCANCEL,fn:b,minWidth:this.minPromptWidth,scope:X,prompt:true,multiline:Z,value:Y});
return this;},OK:{ok:true},CANCEL:{cancel:true},OKCANCEL:{ok:true,cancel:true},YESNO:{yes:true,no:true},YESNOCANCEL:{yes:true,no:true,cancel:true},INFO:"ext-mb-info",WARNING:"ext-mb-warning",QUESTION:"ext-mb-question",ERROR:"ext-mb-error",defaultTextHeight:75,maxWidth:600,minWidth:100,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:"OK",cancel:"Cancel",yes:"Yes",no:"No"}};
}();Ext.Msg=Ext.MessageBox;Ext.dd.PanelProxy=function(B,A){this.panel=B;this.id=this.panel.id+"-ddproxy";
Ext.apply(this,A);};Ext.dd.PanelProxy.prototype={insertProxy:true,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost;
},getGhost:function(){return this.ghost;},getProxy:function(){return this.proxy;},hide:function(){if(this.ghost){if(this.proxy){this.proxy.remove();
delete this.proxy;}this.panel.el.dom.style.display="";this.ghost.remove();delete this.ghost;
}},show:function(){if(!this.ghost){this.ghost=this.panel.createGhost(undefined,undefined,Ext.getBody());
this.ghost.setXY(this.panel.el.getXY());if(this.insertProxy){this.proxy=this.panel.el.insertSibling({cls:"x-panel-dd-spacer"});
this.proxy.setSize(this.panel.getSize());}this.panel.el.dom.style.display="none";
}},repair:function(A,B,C){this.hide();if(typeof B=="function"){B.call(C||this);}},moveProxy:function(B,A){if(this.proxy){B.insertBefore(this.proxy.dom,A);
}}};Ext.Panel.DD=function(A,C){this.panel=A;this.dragData={panel:A};this.proxy=new Ext.dd.PanelProxy(A,C);
Ext.Panel.DD.superclass.constructor.call(this,A.el,C);var B=A.header;if(B){this.setHandleElId(B.id);
}(B?B:this.panel.body).setStyle("cursor","move");this.scroll=false;};Ext.extend(Ext.Panel.DD,Ext.dd.DragSource,{showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(B,A){this.proxy.show();
},b4MouseDown:function(A){var C=A.getPageX();var B=A.getPageY();this.autoOffset(C,B);
},onInitDrag:function(B,A){this.onStartDrag(B,A);return true;},createFrame:Ext.emptyFn,getDragEl:function(A){return this.proxy.ghost.dom;
},endDrag:function(A){this.proxy.hide();this.panel.saveState();},autoOffset:function(B,A){B-=this.startPageX;
A-=this.startPageY;this.setDelta(B,A);}});Ext.state.Provider=function(){this.addEvents("statechange");
this.state={};Ext.state.Provider.superclass.constructor.call(this);};Ext.extend(Ext.state.Provider,Ext.util.Observable,{get:function(A,B){return typeof this.state[A]=="undefined"?B:this.state[A];
},clear:function(A){delete this.state[A];this.fireEvent("statechange",this,A,null);
},set:function(B,A){this.state[B]=A;this.fireEvent("statechange",this,B,A);},decodeValue:function(D){var C=/^(a|n|d|b|s|o)\:(.*)$/;
var A=C.exec(unescape(D));if(!A||!A[1]){return ;}var B=A[1];var F=A[2];switch(B){case"n":return parseFloat(F);
case"d":return new Date(Date.parse(F));case"b":return(F=="1");case"a":var E=[];if(F!=""){Ext.each(F.split("^"),function(G){E.push(this.decodeValue(G));
},this);}return E;case"o":var E={};if(F!=""){Ext.each(F.split("^"),function(H){var G=H.split("=");
E[G[0]]=this.decodeValue(G[1]);},this);}return E;default:return F;}},encodeValue:function(E){var D;
if(typeof E=="number"){D="n:"+E;}else{if(typeof E=="boolean"){D="b:"+(E?"1":"0");
}else{if(Ext.isDate(E)){D="d:"+E.toGMTString();}else{if(Ext.isArray(E)){var A="";
for(var C=0,F=E.length;C<F;C++){A+=this.encodeValue(E[C]);if(C!=F-1){A+="^";}}D="a:"+A;
}else{if(typeof E=="object"){var A="";for(var B in E){if(typeof E[B]!="function"&&E[B]!==undefined){A+=B+"="+this.encodeValue(E[B])+"^";
}}D="o:"+A.substring(0,A.length-1);}else{D="s:"+E;}}}}}return escape(D);}});Ext.state.Manager=function(){var A=new Ext.state.Provider();
return{setProvider:function(B){A=B;},get:function(C,B){return A.get(C,B);},set:function(B,C){A.set(B,C);
},clear:function(B){A.clear(B);},getProvider:function(){return A;}};}();Ext.state.CookieProvider=function(A){Ext.state.CookieProvider.superclass.constructor.call(this);
this.path="/";this.expires=new Date(new Date().getTime()+(1000*60*60*24*7));this.domain=null;
this.secure=false;Ext.apply(this,A);this.state=this.readCookies();};Ext.extend(Ext.state.CookieProvider,Ext.state.Provider,{set:function(B,A){if(typeof A=="undefined"||A===null){this.clear(B);
return ;}this.setCookie(B,A);Ext.state.CookieProvider.superclass.set.call(this,B,A);
},clear:function(A){this.clearCookie(A);Ext.state.CookieProvider.superclass.clear.call(this,A);
},readCookies:function(){var B={};var A=document.cookie+";";var E=/\s?(.*?)=(.*?);/g;
var C;while((C=E.exec(A))!=null){var F=C[1];var D=C[2];if(F&&F.substring(0,3)=="ys-"){B[F.substr(3)]=this.decodeValue(D);
}}return B;},setCookie:function(B,A){document.cookie="ys-"+B+"="+this.encodeValue(A)+((this.expires==null)?"":("; expires="+this.expires.toGMTString()))+((this.path==null)?"":("; path="+this.path))+((this.domain==null)?"":("; domain="+this.domain))+((this.secure==true)?"; secure":"");
},clearCookie:function(A){document.cookie="ys-"+A+"=null; expires=Thu, 01-Jan-70 00:00:01 GMT"+((this.path==null)?"":("; path="+this.path))+((this.domain==null)?"":("; domain="+this.domain))+((this.secure==true)?"; secure":"");
}});Ext.DataView=Ext.extend(Ext.BoxComponent,{selectedClass:"x-view-selected",emptyText:"",deferEmptyText:true,trackOver:false,blockRefresh:false,last:false,initComponent:function(){Ext.DataView.superclass.initComponent.call(this);
if(Ext.isString(this.tpl)||Ext.isArray(this.tpl)){this.tpl=new Ext.XTemplate(this.tpl);
}this.addEvents("beforeclick","click","mouseenter","mouseleave","containerclick","dblclick","contextmenu","containercontextmenu","selectionchange","beforeselect");
this.store=Ext.StoreMgr.lookup(this.store);this.all=new Ext.CompositeElementLite();
this.selected=new Ext.CompositeElementLite();},afterRender:function(){Ext.DataView.superclass.afterRender.call(this);
this.mon(this.getTemplateTarget(),{click:this.onClick,dblclick:this.onDblClick,contextmenu:this.onContextMenu,scope:this});
if(this.overClass||this.trackOver){this.mon(this.getTemplateTarget(),{mouseover:this.onMouseOver,mouseout:this.onMouseOut,scope:this});
}if(this.store){this.bindStore(this.store,true);}},refresh:function(){this.clearSelections(false,true);
var A=this.getTemplateTarget();A.update("");var B=this.store.getRange();if(B.length<1){if(!this.deferEmptyText||this.hasSkippedEmptyText){A.update(this.emptyText);
}this.all.clear();}else{this.tpl.overwrite(A,this.collectData(B,0));this.all.fill(Ext.query(this.itemSelector,A.dom));
this.updateIndexes(0);}this.hasSkippedEmptyText=true;},getTemplateTarget:function(){return this.el;
},prepareData:function(A){return A;},collectData:function(C,B){var A=[];for(var D=0,E=C.length;
D<E;D++){A[A.length]=this.prepareData(C[D].data,B+D,C[D]);}return A;},bufferRender:function(B){var A=document.createElement("div");
this.tpl.overwrite(A,this.collectData(B));return Ext.query(this.itemSelector,A);},onUpdate:function(A,F){var D=this.store.indexOf(F);
if(D>-1){var C=this.isSelected(D);var E=this.all.elements[D];var B=this.bufferRender([F],D)[0];
this.all.replaceElement(D,B,true);if(C){this.selected.replaceElement(E,B);this.all.item(D).addClass(this.selectedClass);
}this.updateIndexes(D,D);}},onAdd:function(A,B,C){if(this.all.getCount()===0){this.refresh();
return ;}var F=this.bufferRender(B,C),D,E=this.all.elements;if(C<this.all.getCount()){D=this.all.item(C).insertSibling(F,"before",true);
E.splice.apply(E,[C,0].concat(F));}else{D=this.all.last().insertSibling(F,"after",true);
E.push.apply(E,F);}this.updateIndexes(C);},onRemove:function(B,C,A){this.deselect(A);
this.all.removeElement(A,true);this.updateIndexes(A);if(this.store.getCount()===0){this.refresh();
}},refreshNode:function(A){this.onUpdate(this.store,this.store.getAt(A));},updateIndexes:function(A,C){var B=this.all.elements;
A=A||0;C=C||((C===0)?0:(B.length-1));for(var D=A;D<=C;D++){B[D].viewIndex=D;}},getStore:function(){return this.store;
},bindStore:function(B,A){if(!A&&this.store){if(B!==this.store&&this.store.autoDestroy){this.store.destroy();
}else{this.store.un("beforeload",this.onBeforeLoad,this);this.store.un("datachanged",this.onDataChanged,this);
this.store.un("add",this.onAdd,this);this.store.un("remove",this.onRemove,this);this.store.un("update",this.onUpdate,this);
this.store.un("clear",this.refresh,this);}if(!B){this.store=null;}}if(B){B=Ext.StoreMgr.lookup(B);
B.on({scope:this,beforeload:this.onBeforeLoad,datachanged:this.onDataChanged,add:this.onAdd,remove:this.onRemove,update:this.onUpdate,clear:this.refresh});
}this.store=B;if(B){this.refresh();}},onDataChanged:function(){if(this.blockRefresh!==true){this.refresh.apply(this,arguments);
}},findItemFromChild:function(A){return Ext.fly(A).findParent(this.itemSelector,this.getTemplateTarget());
},onClick:function(B){var A=B.getTarget(this.itemSelector,this.getTemplateTarget());
if(A){var C=this.indexOf(A);if(this.onItemClick(A,C,B)!==false){this.fireEvent("click",this,C,A,B);
}}else{if(this.fireEvent("containerclick",this,B)!==false){this.onContainerClick(B);
}}},onContainerClick:function(A){this.clearSelections();},onContextMenu:function(A){var B=A.getTarget(this.itemSelector,this.getTemplateTarget());
if(B){this.fireEvent("contextmenu",this,this.indexOf(B),B,A);}else{this.fireEvent("containercontextmenu",this,A);
}},onDblClick:function(A){var B=A.getTarget(this.itemSelector,this.getTemplateTarget());
if(B){this.fireEvent("dblclick",this,this.indexOf(B),B,A);}},onMouseOver:function(A){var B=A.getTarget(this.itemSelector,this.getTemplateTarget());
if(B&&B!==this.lastItem){this.lastItem=B;Ext.fly(B).addClass(this.overClass);this.fireEvent("mouseenter",this,this.indexOf(B),B,A);
}},onMouseOut:function(A){if(this.lastItem){if(!A.within(this.lastItem,true,true)){Ext.fly(this.lastItem).removeClass(this.overClass);
this.fireEvent("mouseleave",this,this.indexOf(this.lastItem),this.lastItem,A);delete this.lastItem;
}}},onItemClick:function(A,C,B){if(this.fireEvent("beforeclick",this,C,A,B)===false){return false;
}if(this.multiSelect){this.doMultiSelection(A,C,B);B.preventDefault();}else{if(this.singleSelect){this.doSingleSelection(A,C,B);
B.preventDefault();}}return true;},doSingleSelection:function(A,C,B){if(B.ctrlKey&&this.isSelected(C)){this.deselect(C);
}else{this.select(C,false);}},doMultiSelection:function(C,D,A){if(A.shiftKey&&this.last!==false){var B=this.last;
this.selectRange(B,D,A.ctrlKey);this.last=B;}else{if((A.ctrlKey||this.simpleSelect)&&this.isSelected(D)){this.deselect(D);
}else{this.select(D,A.ctrlKey||A.shiftKey||this.simpleSelect);}}},getSelectionCount:function(){return this.selected.getCount();
},getSelectedNodes:function(){return this.selected.elements;},getSelectedIndexes:function(){var B=[],A=this.selected.elements;
for(var C=0,D=A.length;C<D;C++){B.push(A[C].viewIndex);}return B;},getSelectedRecords:function(){var A=[],C=this.selected.elements;
for(var B=0,D=C.length;B<D;B++){A[A.length]=this.store.getAt(C[B].viewIndex);}return A;
},getRecords:function(C){var B=[],A=C;for(var D=0,E=A.length;D<E;D++){B[B.length]=this.store.getAt(A[D].viewIndex);
}return B;},getRecord:function(A){return this.store.getAt(A.viewIndex);},clearSelections:function(B,A){if((this.multiSelect||this.singleSelect)&&this.selected.getCount()>0){if(!A){this.selected.removeClass(this.selectedClass);
}this.selected.clear();this.last=false;if(!B){this.fireEvent("selectionchange",this,this.selected.elements);
}}},isSelected:function(A){return this.selected.contains(this.getNode(A));},deselect:function(A){if(this.isSelected(A)){A=this.getNode(A);
this.selected.removeElement(A);if(this.last==A.viewIndex){this.last=false;}Ext.fly(A).removeClass(this.selectedClass);
this.fireEvent("selectionchange",this,this.selected.elements);}},select:function(B,A,D){if(Ext.isArray(B)){if(!A){this.clearSelections(true);
}for(var E=0,F=B.length;E<F;E++){this.select(B[E],true,true);}if(!D){this.fireEvent("selectionchange",this,this.selected.elements);
}}else{var C=this.getNode(B);if(!A){this.clearSelections(true);}if(C&&!this.isSelected(C)){if(this.fireEvent("beforeselect",this,C,this.selected.elements)!==false){Ext.fly(C).addClass(this.selectedClass);
this.selected.add(C);this.last=C.viewIndex;if(!D){this.fireEvent("selectionchange",this,this.selected.elements);
}}}}},selectRange:function(B,C,A){if(!A){this.clearSelections(true);}this.select(this.getNodes(B,C),true);
},getNode:function(A){if(Ext.isString(A)){return document.getElementById(A);}else{if(Ext.isNumber(A)){return this.all.elements[A];
}else{if(A instanceof Ext.data.Record){var B=this.store.indexOf(A);return this.all.elements[B];
}}}return A;},getNodes:function(B,E){var A=this.all.elements;B=B||0;E=!Ext.isDefined(E)?Math.max(A.length-1,0):E;
var C=[],D;if(B<=E){for(D=B;D<=E&&A[D];D++){C.push(A[D]);}}else{for(D=B;D>=E&&A[D];
D--){C.push(A[D]);}}return C;},indexOf:function(A){A=this.getNode(A);if(Ext.isNumber(A.viewIndex)){return A.viewIndex;
}return this.all.indexOf(A);},onBeforeLoad:function(){if(this.loadingText){this.clearSelections(false,true);
this.getTemplateTarget().update('<div class="loading-indicator">'+this.loadingText+"</div>");
this.all.clear();}},onDestroy:function(){this.all.clear();this.selected.clear();Ext.DataView.superclass.onDestroy.call(this);
this.bindStore(null);}});Ext.DataView.prototype.setStore=Ext.DataView.prototype.bindStore;
Ext.reg("dataview",Ext.DataView);Ext.list.ListView=Ext.extend(Ext.DataView,{itemSelector:"dl",selectedClass:"x-list-selected",overClass:"x-list-over",scrollOffset:undefined,columnResize:true,columnSort:true,maxWidth:Ext.isIE?99:100,initComponent:function(){if(this.columnResize){this.colResizer=new Ext.list.ColumnResizer(this.colResizer);
this.colResizer.init(this);}if(this.columnSort){this.colSorter=new Ext.list.Sorter(this.columnSort);
this.colSorter.init(this);}if(!this.internalTpl){this.internalTpl=new Ext.XTemplate('<div class="x-list-header"><div class="x-list-header-inner">','<tpl for="columns">','<div style="width:{[values.width*100]}%;text-align:{align};"><em unselectable="on" id="',this.id,'-xlhd-{#}">',"{header}","</em></div>","</tpl>",'<div class="x-clear"></div>',"</div></div>",'<div class="x-list-body"><div class="x-list-body-inner">',"</div></div>");
}if(!this.tpl){this.tpl=new Ext.XTemplate('<tpl for="rows">',"<dl>",'<tpl for="parent.columns">','<dt style="width:{[values.width*100]}%;text-align:{align};">','<em unselectable="on"<tpl if="cls"> class="{cls}</tpl>">',"{[values.tpl.apply(parent)]}","</em></dt>","</tpl>",'<div class="x-clear"></div>',"</dl>","</tpl>");
}var E=this.columns,C=0,B=0,F=E.length,G=[];for(var I=0;I<F;I++){var D=E[I];if(!D.isColumn){D.xtype=D.xtype?(/^lv/.test(D.xtype)?D.xtype:"lv"+D.xtype):"lvcolumn";
D=Ext.create(D);}if(D.width){C+=D.width*100;B++;}G.push(D);}E=this.columns=G;if(B<F){var J=F-B;
if(C<this.maxWidth){var H=((this.maxWidth-C)/J)/100;for(var A=0;A<F;A++){var D=E[A];
if(!D.width){D.width=H;}}}}Ext.list.ListView.superclass.initComponent.call(this);
},onRender:function(){this.autoEl={cls:"x-list-wrap"};Ext.list.ListView.superclass.onRender.apply(this,arguments);
this.internalTpl.overwrite(this.el,{columns:this.columns});this.innerBody=Ext.get(this.el.dom.childNodes[1].firstChild);
this.innerHd=Ext.get(this.el.dom.firstChild.firstChild);if(this.hideHeaders){this.el.dom.firstChild.style.display="none";
}},getTemplateTarget:function(){return this.innerBody;},collectData:function(){var A=Ext.list.ListView.superclass.collectData.apply(this,arguments);
return{columns:this.columns,rows:A};},verifyInternalSize:function(){if(this.lastSize){this.onResize(this.lastSize.width,this.lastSize.height);
}},onResize:function(D,B){var C=this.innerBody.dom;var A=this.innerHd.dom;if(!C){return ;
}var E=C.parentNode;if(Ext.isNumber(D)){var F=D-Ext.num(this.scrollOffset,Ext.getScrollBarWidth());
if(this.reserveScrollOffset||((E.offsetWidth-E.clientWidth)>10)){C.style.width=F+"px";
A.style.width=F+"px";}else{C.style.width=D+"px";A.style.width=D+"px";setTimeout(function(){if((E.offsetWidth-E.clientWidth)>10){C.style.width=F+"px";
A.style.width=F+"px";}},10);}}if(Ext.isNumber(B)){E.style.height=(B-A.parentNode.offsetHeight)+"px";
}},updateIndexes:function(){Ext.list.ListView.superclass.updateIndexes.apply(this,arguments);
this.verifyInternalSize();},findHeaderIndex:function(C){C=C.dom||C;var E=C.parentNode,B=E.parentNode.childNodes;
for(var D=0,A;A=B[D];D++){if(A==E){return D;}}return -1;},setHdWidths:function(){var C=this.innerHd.dom.getElementsByTagName("div");
for(var B=0,A=this.columns,D=A.length;B<D;B++){C[B].style.width=(A[B].width*100)+"%";
}}});Ext.reg("listview",Ext.list.ListView);Ext.ListView=Ext.list.ListView;Ext.list.Column=Ext.extend(Object,{isColumn:true,align:"left",header:"",width:null,cls:"",constructor:function(A){if(!A.tpl){A.tpl=new Ext.XTemplate("{"+A.dataIndex+"}");
}else{if(Ext.isString(A.tpl)){A.tpl=new Ext.XTemplate(A.tpl);}}Ext.apply(this,A);
}});Ext.reg("lvcolumn",Ext.list.Column);Ext.list.NumberColumn=Ext.extend(Ext.list.Column,{format:"0,000.00",constructor:function(A){A.tpl=A.tpl||new Ext.XTemplate("{"+A.dataIndex+':number("'+(A.format||this.format)+'")}');
Ext.list.NumberColumn.superclass.constructor.call(this,A);}});Ext.reg("lvnumbercolumn",Ext.list.NumberColumn);
Ext.list.DateColumn=Ext.extend(Ext.list.Column,{format:"m/d/Y",constructor:function(A){A.tpl=A.tpl||new Ext.XTemplate("{"+A.dataIndex+':date("'+(A.format||this.format)+'")}');
Ext.list.DateColumn.superclass.constructor.call(this,A);}});Ext.reg("lvdatecolumn",Ext.list.DateColumn);
Ext.list.BooleanColumn=Ext.extend(Ext.list.Column,{trueText:"true",falseText:"false",undefinedText:"&#160;",constructor:function(B){B.tpl=B.tpl||new Ext.XTemplate("{"+B.dataIndex+":this.format}");
var C=this.trueText,A=this.falseText,D=this.undefinedText;B.tpl.format=function(E){if(E===undefined){return D;
}if(!E||E==="false"){return A;}return C;};Ext.list.DateColumn.superclass.constructor.call(this,B);
}});Ext.reg("lvbooleancolumn",Ext.list.BooleanColumn);Ext.list.ColumnResizer=Ext.extend(Ext.util.Observable,{minPct:0.05,constructor:function(A){Ext.apply(this,A);
Ext.list.ColumnResizer.superclass.constructor.call(this);},init:function(A){this.view=A;
A.on("render",this.initEvents,this);},initEvents:function(A){A.mon(A.innerHd,"mousemove",this.handleHdMove,this);
this.tracker=new Ext.dd.DragTracker({onBeforeStart:this.onBeforeStart.createDelegate(this),onStart:this.onStart.createDelegate(this),onDrag:this.onDrag.createDelegate(this),onEnd:this.onEnd.createDelegate(this),tolerance:3,autoStart:300});
this.tracker.initEl(A.innerHd);A.on("beforedestroy",this.tracker.destroy,this.tracker);
},handleHdMove:function(A,G){var D=5,F=A.getPageX(),C=A.getTarget("em",3,true);if(C){var B=C.getRegion(),H=C.dom.style,E=C.dom.parentNode;
if(F-B.left<=D&&E!=E.parentNode.firstChild){this.activeHd=Ext.get(E.previousSibling.firstChild);
H.cursor=Ext.isWebKit?"e-resize":"col-resize";}else{if(B.right-F<=D&&E!=E.parentNode.lastChild.previousSibling){this.activeHd=C;
H.cursor=Ext.isWebKit?"w-resize":"col-resize";}else{delete this.activeHd;H.cursor="";
}}}},onBeforeStart:function(A){this.dragHd=this.activeHd;return !!this.dragHd;},onStart:function(B){this.view.disableHeaders=true;
this.proxy=this.view.el.createChild({cls:"x-list-resizer"});this.proxy.setHeight(this.view.el.getHeight());
var C=this.tracker.getXY()[0],A=this.view.innerHd.getWidth();this.hdX=this.dragHd.getX();
this.hdIndex=this.view.findHeaderIndex(this.dragHd);this.proxy.setX(this.hdX);this.proxy.setWidth(C-this.hdX);
this.minWidth=A*this.minPct;this.maxWidth=A-(this.minWidth*(this.view.columns.length-1-this.hdIndex));
},onDrag:function(A){var B=this.tracker.getXY()[0];this.proxy.setWidth((B-this.hdX).constrain(this.minWidth,this.maxWidth));
},onEnd:function(J){var E=this.proxy.getWidth();this.proxy.remove();var D=this.hdIndex,H=this.view,F=H.columns,I=F.length,C=this.view.innerHd.getWidth(),N=this.minPct*100,A=Math.ceil((E*H.maxWidth)/C),B=(F[D].width*100)-A,M=Math.floor(B/(I-1-D)),G=B-(M*(I-1-D));
for(var O=D+1;O<I;O++){var L=(F[O].width*100)+M,K=Math.max(N,L);if(L!=K){G+=L-K;}F[O].width=K/100;
}F[D].width=A/100;F[D+1].width+=(G/100);delete this.dragHd;H.setHdWidths();H.refresh();
setTimeout(function(){H.disableHeaders=false;},100);}});Ext.ListView.ColumnResizer=Ext.list.ColumnResizer;
Ext.list.Sorter=Ext.extend(Ext.util.Observable,{sortClasses:["sort-asc","sort-desc"],constructor:function(A){Ext.apply(this,A);
Ext.list.Sorter.superclass.constructor.call(this);},init:function(A){this.view=A;
A.on("render",this.initEvents,this);},initEvents:function(A){A.mon(A.innerHd,"click",this.onHdClick,this);
A.innerHd.setStyle("cursor","pointer");A.mon(A.store,"datachanged",this.updateSortState,this);
this.updateSortState.defer(10,this,[A.store]);},updateSortState:function(F){var A=F.getSortState();
if(!A){return ;}this.sortState=A;var C=this.view.columns,B=-1;for(var D=0,G=C.length;
D<G;D++){if(C[D].dataIndex==A.field){B=D;break;}}if(B!=-1){var E=A.direction;this.updateSortIcon(B,E);
}},updateSortIcon:function(B,D){var A=this.sortClasses;var C=this.view.innerHd.select("em").removeClass(A);
C.item(B).addClass(A[D=="DESC"?1:0]);},onHdClick:function(B){var A=B.getTarget("em",3);
if(A&&!this.view.disableHeaders){var C=this.view.findHeaderIndex(A);this.view.store.sort