/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(aR,U){function a3(){if(!al.isReady){try{ac.documentElement.doScroll("left")}catch(c){setTimeout(a3,1);return}al.ready()}}function M(s,c){c.src?al.ajax({url:c.src,async:false,dataType:"script"}):al.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function at(s,c,K,F,G,w){var A=s.length;if(typeof c==="object"){for(var J in c){at(s,J,c[J],F,G,K)}return s}if(K!==U){F=!w&&F&&al.isFunction(K);for(J=0;J<A;J++){G(s[J],c,F?K.call(s[J],J,G(s[J],c)):K,w)}return s}return A?G(s[0],c):U}function aI(){return(new Date).getTime()}function aq(){return false}function ap(){return true}function aN(s,c,w){w[0].type=s;return al.event.handle.apply(c,w)}function aj(O){var N,L=[],J=[],K=arguments,F,G,s,A,w,c;G=al.data(this,"events");if(!(O.liveFired===this||!G||!G.live||O.button&&O.type==="click")){O.liveFired=this;var P=G.live.slice(0);for(A=0;A<P.length;A++){G=P[A];G.origType.replace(aB,"")===O.type?J.push(G.selector):P.splice(A--,1)}F=al(O.target).closest(J,O.currentTarget);w=0;for(c=F.length;w<c;w++){for(A=0;A<P.length;A++){G=P[A];if(F[w].selector===G.selector){s=F[w].elem;J=null;if(G.preType==="mouseenter"||G.preType==="mouseleave"){J=al(O.relatedTarget).closest(G.selector)[0]}if(!J||J!==s){L.push({elem:s,handleObj:G})}}}}w=0;for(c=L.length;w<c;w++){F=L[w];O.currentTarget=F.elem;O.data=F.handleObj.data;O.handleObj=F.handleObj;if(F.handleObj.origHandler.apply(F.elem,K)===false){N=false;break}}return N}}function D(s,c){return"live."+(s&&s!=="*"?s+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function o(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function bm(s,c){var w=0;c.each(function(){if(this.nodeName===(s[w]&&s[w].nodeName)){var G=al.data(s[w++]),J=al.data(this,G);if(G=G&&G.events){delete J.handle;J.events={};for(var A in G){for(var F in G[A]){al.event.add(this,A,G[A][F],G[A][F].data)}}}}})}function a6(s,c,G){var A,F,w;c=c&&c[0]?c[0].ownerDocument||c[0]:ac;if(s.length===1&&typeof s[0]==="string"&&s[0].length<512&&c===ac&&!aS.test(s[0])&&(al.support.checkClone||!an.test(s[0]))){F=true;if(w=al.fragments[s[0]]){if(w!==1){A=w}}}if(!A){A=c.createDocumentFragment();al.clean(s,c,A,G)}if(F){al.fragments[s[0]]=w?A:1}return{fragment:A,cacheable:F}}function aG(s,c){var w={};al.each(I.concat.apply([],I.slice(0,c)),function(){w[this]=s});return w}function r(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var al=function(s,c){return new al.fn.init(s,c)},t=aR.jQuery,d=aR.$,ac=aR.document,aw,bc=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aW=/^.[^:#\[\.,]*$/,ar=/\S/,S=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,u=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,az=navigator.userAgent,b=false,ay=[],aE,a4=Object.prototype.toString,aY=Object.prototype.hasOwnProperty,aC=Array.prototype.push,ax=Array.prototype.slice,a9=Array.prototype.indexOf;al.fn=al.prototype={init:function(s,c){var A,w;if(!s){return this}if(s.nodeType){this.context=this[0]=s;this.length=1;return this}if(s==="body"&&!c){this.context=ac;this[0]=ac.body;this.selector="body";this.length=1;return this}if(typeof s==="string"){if((A=bc.exec(s))&&(A[1]||!c)){if(A[1]){w=c?c.ownerDocument||c:ac;if(s=u.exec(s)){if(al.isPlainObject(c)){s=[ac.createElement(s[1])];al.fn.attr.call(s,c,true)}else{s=[w.createElement(s[1])]}}else{s=a6([A[1]],[w]);s=(s.cacheable?s.fragment.cloneNode(true):s.fragment).childNodes}return al.merge(this,s)}else{if(c=ac.getElementById(A[2])){if(c.id!==A[2]){return aw.find(s)}this.length=1;this[0]=c}this.context=ac;this.selector=s;return this}}else{if(!c&&/^\w+$/.test(s)){this.selector=s;this.context=ac;s=ac.getElementsByTagName(s);return al.merge(this,s)}else{return !c||c.jquery?(c||aw).find(s):al(c).find(s)}}}else{if(al.isFunction(s)){return aw.ready(s)}}if(s.selector!==U){this.selector=s.selector;this.context=s.context}return al.makeArray(s,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return ax.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(s,c,A){var w=al();al.isArray(s)?aC.apply(w,s):al.merge(w,s);w.prevObject=this;w.context=this.context;if(c==="find"){w.selector=this.selector+(this.selector?" ":"")+A}else{if(c){w.selector=this.selector+"."+c+"("+A+")"}}return w},each:function(s,c){return al.each(this,s,c)},ready:function(c){al.bindReady();if(al.isReady){c.call(ac,al)}else{ay&&ay.push(c)}return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ax.apply(this,arguments),"slice",ax.call(arguments).join(","))},map:function(c){return this.pushStack(al.map(this,function(s,w){return c.call(s,w,s)}))},end:function(){return this.prevObject||al(null)},push:aC,sort:[].sort,splice:[].splice};al.fn.init.prototype=al.fn;al.extend=al.fn.extend=function(){var s=arguments[0]||{},c=1,K=arguments.length,F=false,G,w,A,J;if(typeof s==="boolean"){F=s;s=arguments[1]||{};c=2}if(typeof s!=="object"&&!al.isFunction(s)){s={}}if(K===c){s=this;--c}for(;c<K;c++){if((G=arguments[c])!=null){for(w in G){A=s[w];J=G[w];if(s!==J){if(F&&J&&(al.isPlainObject(J)||al.isArray(J))){A=A&&(al.isPlainObject(A)||al.isArray(A))?A:al.isArray(J)?[]:{};s[w]=al.extend(F,A,J)}else{if(J!==U){s[w]=J}}}}}}return s};al.extend({noConflict:function(c){aR.$=d;if(c){aR.jQuery=t}return al},isReady:false,ready:function(){if(!al.isReady){if(!ac.body){return setTimeout(al.ready,13)}al.isReady=true;if(ay){for(var s,c=0;s=ay[c++];){s.call(ac,al)}ay=null}al.fn.triggerHandler&&al(ac).triggerHandler("ready")}},bindReady:function(){if(!b){b=true;if(ac.readyState==="complete"){return al.ready()}if(ac.addEventListener){ac.addEventListener("DOMContentLoaded",aE,false);aR.addEventListener("load",al.ready,false)}else{if(ac.attachEvent){ac.attachEvent("onreadystatechange",aE);aR.attachEvent("onload",al.ready);var s=false;try{s=aR.frameElement==null}catch(c){}ac.documentElement.doScroll&&s&&a3()}}}},isFunction:function(c){return a4.call(c)==="[object Function]"},isArray:function(c){return a4.call(c)==="[object Array]"},isPlainObject:function(s){if(!s||a4.call(s)!=="[object Object]"||s.nodeType||s.setInterval){return false}if(s.constructor&&!aY.call(s,"constructor")&&!aY.call(s.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in s){}return c===U||aY.call(s,c)},isEmptyObject:function(s){for(var c in s){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}c=al.trim(c);if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aR.JSON&&aR.JSON.parse?aR.JSON.parse(c):(new Function("return "+c))()}else{al.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(s){if(s&&ar.test(s)){var c=ac.getElementsByTagName("head")[0]||ac.documentElement,w=ac.createElement("script");w.type="text/javascript";if(al.support.scriptEval){w.appendChild(ac.createTextNode(s))}else{w.text=s}c.insertBefore(w,c.firstChild);c.removeChild(w)}},nodeName:function(s,c){return s.nodeName&&s.nodeName.toUpperCase()===c.toUpperCase()},each:function(s,c,J){var F,G=0,w=s.length,A=w===U||al.isFunction(s);if(J){if(A){for(F in s){if(c.apply(s[F],J)===false){break}}}else{for(;G<w;){if(c.apply(s[G++],J)===false){break}}}}else{if(A){for(F in s){if(c.call(s[F],F,s[F])===false){break}}}else{for(J=s[0];G<w&&c.call(J,G,J)!==false;J=s[++G]){}}}return s},trim:function(c){return(c||"").replace(S,"")},makeArray:function(s,c){c=c||[];if(s!=null){s.length==null||typeof s==="string"||al.isFunction(s)||typeof s!=="function"&&s.setInterval?aC.call(c,s):al.merge(c,s)}return c},inArray:function(s,c){if(c.indexOf){return c.indexOf(s)}for(var A=0,w=c.length;A<w;A++){if(c[A]===s){return A}}return -1},merge:function(s,c){var F=s.length,w=0;if(typeof c.length==="number"){for(var A=c.length;w<A;w++){s[F++]=c[w]}}else{for(;c[w]!==U;){s[F++]=c[w++]}}s.length=F;return s},grep:function(s,c,G){for(var A=[],F=0,w=s.length;F<w;F++){!G!==!c(s[F],F)&&A.push(s[F])}return A},map:function(s,c,J){for(var F=[],G,w=0,A=s.length;w<A;w++){G=c(s[w],w,J);if(G!=null){F[F.length]=G}}return F.concat.apply([],F)},guid:1,proxy:function(s,c,w){if(arguments.length===2){if(typeof c==="string"){w=s;s=w[c];c=U}else{if(c&&!al.isFunction(c)){w=c;c=U}}}if(!c&&s){c=function(){return s.apply(w||this,arguments)}}if(s){c.guid=s.guid=s.guid||c.guid||al.guid++}return c},uaMatch:function(c){c=c.toLowerCase();c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},browser:{}});az=al.uaMatch(az);if(az.browser){al.browser[az.browser]=true;al.browser.version=az.version}if(al.browser.webkit){al.browser.safari=true}if(a9){al.inArray=function(s,c){return a9.call(c,s)}}aw=al(ac);if(ac.addEventListener){aE=function(){ac.removeEventListener("DOMContentLoaded",aE,false);al.ready()}}else{if(ac.attachEvent){aE=function(){if(ac.readyState==="complete"){ac.detachEvent("onreadystatechange",aE);al.ready()}}}}(function(){al.support={};var L=ac.documentElement,K=ac.createElement("script"),J=ac.createElement("div"),F="script"+aI();J.style.display="none";J.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var G=J.getElementsByTagName("*"),w=J.getElementsByTagName("a")[0];if(!(!G||!G.length||!w)){al.support={leadingWhitespace:J.firstChild.nodeType===3,tbody:!J.getElementsByTagName("tbody").length,htmlSerialize:!!J.getElementsByTagName("link").length,style:/red/.test(w.getAttribute("style")),hrefNormalized:w.getAttribute("href")==="/a",opacity:/^0.55$/.test(w.style.opacity),cssFloat:!!w.style.cssFloat,checkOn:J.getElementsByTagName("input")[0].value==="on",optSelected:ac.createElement("select").appendChild(ac.createElement("option")).selected,parentNode:J.removeChild(J.appendChild(ac.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};K.type="text/javascript";try{K.appendChild(ac.createTextNode("window."+F+"=1;"))}catch(A){}L.insertBefore(K,L.firstChild);if(aR[F]){al.support.scriptEval=true;delete aR[F]}try{delete K.test}catch(c){al.support.deleteExpando=false}L.removeChild(K);if(J.attachEvent&&J.fireEvent){J.attachEvent("onclick",function s(){al.support.noCloneEvent=false;J.detachEvent("onclick",s)});J.cloneNode(true).fireEvent("onclick")}J=ac.createElement("div");J.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";L=ac.createDocumentFragment();L.appendChild(J.firstChild);al.support.checkClone=L.cloneNode(true).cloneNode(true).lastChild.checked;al(function(){var N=ac.createElement("div");N.style.width=N.style.paddingLeft="1px";ac.body.appendChild(N);al.boxModel=al.support.boxModel=N.offsetWidth===2;ac.body.removeChild(N).style.display="none"});L=function(N){var P=ac.createElement("div");N="on"+N;var O=N in P;if(!O){P.setAttribute(N,"return;");O=typeof P[N]==="function"}return O};al.support.submitBubbles=L("submit");al.support.changeBubbles=L("change");L=K=J=G=w=null}})();al.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aK="jQuery"+aI(),e=0,aV={};al.extend({cache:{},expando:aK,noData:{embed:true,object:true,applet:true},data:function(s,c,F){if(!(s.nodeName&&al.noData[s.nodeName.toLowerCase()])){s=s==aR?aV:s;var w=s[aK],A=al.cache;if(!w&&typeof c==="string"&&F===U){return null}w||(w=++e);if(typeof c==="object"){s[aK]=w;A[w]=al.extend(true,{},c)}else{if(!A[w]){s[aK]=w;A[w]={}}}s=A[w];if(F!==U){s[c]=F}return typeof c==="string"?s[c]:s}},removeData:function(s,c){if(!(s.nodeName&&al.noData[s.nodeName.toLowerCase()])){s=s==aR?aV:s;var F=s[aK],w=al.cache,A=w[F];if(c){if(A){delete A[c];al.isEmptyObject(A)&&al.removeData(s)}}else{if(al.support.deleteExpando){delete s[al.expando]}else{s.removeAttribute&&s.removeAttribute(al.expando)}delete w[F]}}}});al.fn.extend({data:function(s,c){if(typeof s==="undefined"&&this.length){return al.data(this[0])}else{if(typeof s==="object"){return this.each(function(){al.data(this,s)})}}var A=s.split(".");A[1]=A[1]?"."+A[1]:"";if(c===U){var w=this.triggerHandler("getData"+A[1]+"!",[A[0]]);if(w===U&&this.length){w=al.data(this[0],s)}return w===U&&A[1]?this.data(A[0]):w}else{return this.trigger("setData"+A[1]+"!",[A[0],c]).each(function(){al.data(this,s,c)})}},removeData:function(c){return this.each(function(){al.removeData(this,c)})}});al.extend({queue:function(s,c,A){if(s){c=(c||"fx")+"queue";var w=al.data(s,c);if(!A){return w||[]}if(!w||al.isArray(A)){w=al.data(s,c,al.makeArray(A))}else{w.push(A)}return w}},dequeue:function(s,c){c=c||"fx";var A=al.queue(s,c),w=A.shift();if(w==="inprogress"){w=A.shift()}if(w){c==="fx"&&A.unshift("inprogress");w.call(s,function(){al.dequeue(s,c)})}}});al.fn.extend({queue:function(s,c){if(typeof s!=="string"){c=s;s="fx"}if(c===U){return al.queue(this[0],s)}return this.each(function(){var w=al.queue(this,s,c);s==="fx"&&w[0]!=="inprogress"&&al.dequeue(this,s)})},dequeue:function(c){return this.each(function(){al.dequeue(this,c)})},delay:function(s,c){s=al.fx?al.fx.speeds[s]||s:s;c=c||"fx";return this.queue(c,function(){var w=this;setTimeout(function(){al.dequeue(w,c)},s)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var bh=/[\n\t]/g,ae=/\s+/,bd=/\r/g,aP=/href|src|style/,aX=/(button|input)/i,aA=/(button|input|object|select|textarea)/i,ad=/^(a|area)$/i,a1=/radio|checkbox/;al.fn.extend({attr:function(s,c){return at(this,s,c,true,al.attr)},removeAttr:function(c){return this.each(function(){al.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(L){if(al.isFunction(L)){return this.each(function(O){var N=al(this);N.addClass(L.call(this,O,N.attr("class")))})}if(L&&typeof L==="string"){for(var K=(L||"").split(ae),J=0,F=this.length;J<F;J++){var G=this[J];if(G.nodeType===1){if(G.className){for(var w=" "+G.className+" ",A=G.className,c=0,s=K.length;c<s;c++){if(w.indexOf(" "+K[c]+" ")<0){A+=" "+K[c]}}G.className=al.trim(A)}else{G.className=L}}}}return this},removeClass:function(s){if(al.isFunction(s)){return this.each(function(L){var N=al(this);N.removeClass(s.call(this,L,N.attr("class")))})}if(s&&typeof s==="string"||s===U){for(var c=(s||"").split(ae),K=0,F=this.length;K<F;K++){var G=this[K];if(G.nodeType===1&&G.className){if(s){for(var w=(" "+G.className+" ").replace(bh," "),A=0,J=c.length;A<J;A++){w=w.replace(" "+c[A]+" "," ")}G.className=al.trim(w)}else{G.className=""}}}}return this},toggleClass:function(s,c){var A=typeof s,w=typeof c==="boolean";if(al.isFunction(s)){return this.each(function(G){var F=al(this);F.toggleClass(s.call(this,G,F.attr("class"),c),c)})}return this.each(function(){if(A==="string"){for(var K,G=0,J=al(this),L=c,F=s.split(ae);K=F[G++];){L=w?L:!J.hasClass(K);J[L?"addClass":"removeClass"](K)}}else{if(A==="undefined"||A==="boolean"){this.className&&al.data(this,"__className__",this.className);this.className=this.className||s===false?"":al.data(this,"__className__")||""}}})},hasClass:function(s){s=" "+s+" ";for(var c=0,w=this.length;c<w;c++){if((" "+this[c].className+" ").replace(bh," ").indexOf(s)>-1){return true}}return false},val:function(s){if(s===U){var c=this[0];if(c){if(al.nodeName(c,"option")){return(c.attributes.value||{}).specified?c.value:c.text}if(al.nodeName(c,"select")){var K=c.selectedIndex,F=[],G=c.options;c=c.type==="select-one";if(K<0){return null}var w=c?K:0;for(K=c?K+1:G.length;w<K;w++){var A=G[w];if(A.selected){s=al(A).val();if(c){return s}F.push(s)}}return F}if(a1.test(c.type)&&!al.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(bd,"")}return U}var J=al.isFunction(s);return this.each(function(L){var P=al(this),O=s;if(this.nodeType===1){if(J){O=s.call(this,L,P.val())}if(typeof O==="number"){O+=""}if(al.isArray(O)&&a1.test(this.type)){this.checked=al.inArray(P.val(),O)>=0}else{if(al.nodeName(this,"select")){var N=al.makeArray(O);al("option",this).each(function(){this.selected=al.inArray(al(this).val(),N)>=0});if(!N.length){this.selectedIndex=-1}}else{this.value=O}}}})}});al.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(s,c,G,A){if(!s||s.nodeType===3||s.nodeType===8){return U}if(A&&c in al.attrFn){return al(s)[c](G)}A=s.nodeType!==1||!al.isXMLDoc(s);var F=G!==U;c=A&&al.props[c]||c;if(s.nodeType===1){var w=aP.test(c);if(c in s&&A&&!w){if(F){c==="type"&&aX.test(s.nodeName)&&s.parentNode&&al.error("type property can't be changed");s[c]=G}if(al.nodeName(s,"form")&&s.getAttributeNode(c)){return s.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=s.getAttributeNode("tabIndex"))&&c.specified?c.value:aA.test(s.nodeName)||ad.test(s.nodeName)&&s.href?0:U}return s[c]}if(!al.support.style&&A&&c==="style"){if(F){s.style.cssText=""+G}return s.style.cssText}F&&s.setAttribute(c,""+G);s=!al.support.hrefNormalized&&A&&w?s.getAttribute(c,2):s.getAttribute(c);return s===null?U:s}return al.style(s,c,G)}});var aB=/\.(.*)$/,v=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s})};al.event={add:function(P,O,L,J){if(!(P.nodeType===3||P.nodeType===8)){if(P.setInterval&&P!==aR&&!P.frameElement){P=aR}var K,F;if(L.handler){K=L;L=K.handler}if(!L.guid){L.guid=al.guid++}if(F=al.data(P)){var G=F.events=F.events||{},s=F.handle;if(!s){F.handle=s=function(){return typeof al!=="undefined"&&!al.event.triggered?al.event.handle.apply(s.elem,arguments):U}}s.elem=P;O=O.split(" ");for(var A,w=0,c;A=O[w++];){F=K?al.extend({},K):{handler:L,data:J};if(A.indexOf(".")>-1){c=A.split(".");A=c.shift();F.namespace=c.slice(0).sort().join(".")}else{c=[];F.namespace=""}F.type=A;F.guid=L.guid;var Q=G[A],N=al.event.special[A]||{};if(!Q){Q=G[A]=[];if(!N.setup||N.setup.call(P,J,c,s)===false){if(P.addEventListener){P.addEventListener(A,s,false)}else{P.attachEvent&&P.attachEvent("on"+A,s)}}}if(N.add){N.add.call(P,F);if(!F.handler.guid){F.handler.guid=L.guid}}Q.push(F);al.event.global[A]=true}P=null}}},global:{},remove:function(R,Q,O,L){if(!(R.nodeType===3||R.nodeType===8)){var N,J=0,K,A,G,F,c,T,P=al.data(R),s=P&&P.events;if(P&&s){if(Q&&Q.type){O=Q.handler;Q=Q.type}if(!Q||typeof Q==="string"&&Q.charAt(0)==="."){Q=Q||"";for(N in s){al.event.remove(R,N+Q)}}else{for(Q=Q.split(" ");N=Q[J++];){F=N;K=N.indexOf(".")<0;A=[];if(!K){A=N.split(".");N=A.shift();G=new RegExp("(^|\\.)"+al.map(A.slice(0).sort(),v).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(c=s[N]){if(O){F=al.event.special[N]||{};for(w=L||0;w<c.length;w++){T=c[w];if(O.guid===T.guid){if(K||G.test(T.namespace)){L==null&&c.splice(w--,1);F.remove&&F.remove.call(R,T)}if(L!=null){break}}}if(c.length===0||L!=null&&c.length===1){if(!F.teardown||F.teardown.call(R,A)===false){aJ(R,N,P.handle)}delete s[N]}}else{for(var w=0;w<c.length;w++){T=c[w];if(K||G.test(T.namespace)){al.event.remove(R,F,T.handler,w);c.splice(w--,1)}}}}}if(al.isEmptyObject(s)){if(Q=P.handle){Q.elem=null}delete P.events;delete P.handle;al.isEmptyObject(P)&&al.removeData(R)}}}}},trigger:function(N,L,K,G){var J=N.type||N;if(!G){N=typeof N==="object"?N[aK]?N:al.extend(al.Event(J),N):al.Event(J);if(J.indexOf("!")>=0){N.type=J=J.slice(0,-1);N.exclusive=true}if(!K){N.stopPropagation();al.event.global[J]&&al.each(al.cache,function(){this.events&&this.events[J]&&al.event.trigger(N,L,this.handle.elem)})}if(!K||K.nodeType===3||K.nodeType===8){return U}N.result=U;N.target=K;L=al.makeArray(L);L.unshift(N)}N.currentTarget=K;(G=al.data(K,"handle"))&&G.apply(K,L);G=K.parentNode||K.ownerDocument;try{if(!(K&&K.nodeName&&al.noData[K.nodeName.toLowerCase()])){if(K["on"+J]&&K["on"+J].apply(K,L)===false){N.result=false}}}catch(A){}if(!N.isPropagationStopped()&&G){al.event.trigger(N,L,G,true)}else{if(!N.isDefaultPrevented()){G=N.target;var F,c=al.nodeName(G,"a")&&J==="click",w=al.event.special[J]||{};if((!w._default||w._default.call(K,N)===false)&&!c&&!(G&&G.nodeName&&al.noData[G.nodeName.toLowerCase()])){try{if(G[J]){if(F=G["on"+J]){G["on"+J]=null}al.event.triggered=true;G[J]()}}catch(s){}if(F){G["on"+J]=F}al.event.triggered=false}}}},handle:function(s){var c,J,F,G;s=arguments[0]=al.event.fix(s||aR.event);s.currentTarget=this;c=s.type.indexOf(".")<0&&!s.exclusive;if(!c){J=s.type.split(".");s.type=J.shift();F=new RegExp("(^|\\.)"+J.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}G=al.data(this,"events");J=G[s.type];if(G&&J){J=J.slice(0);G=0;for(var w=J.length;G<w;G++){var A=J[G];if(c||F.test(A.namespace)){s.handler=A.handler;s.data=A.data;s.handleObj=A;A=A.handler.apply(this,arguments);if(A!==U){s.result=A;if(A===false){s.preventDefault();s.stopPropagation()}}if(s.isImmediatePropagationStopped()){break}}}}return s.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(s){if(s[aK]){return s}var c=s;s=al.Event(c);for(var A=this.props.length,w;A;){w=this.props[--A];s[w]=c[w]}if(!s.target){s.target=s.srcElement||ac}if(s.target.nodeType===3){s.target=s.target.parentNode}if(!s.relatedTarget&&s.fromElement){s.relatedTarget=s.fromElement===s.target?s.toElement:s.fromElement}if(s.pageX==null&&s.clientX!=null){c=ac.documentElement;A=ac.body;s.pageX=s.clientX+(c&&c.scrollLeft||A&&A.scrollLeft||0)-(c&&c.clientLeft||A&&A.clientLeft||0);s.pageY=s.clientY+(c&&c.scrollTop||A&&A.scrollTop||0)-(c&&c.clientTop||A&&A.clientTop||0)}if(!s.which&&(s.charCode||s.charCode===0?s.charCode:s.keyCode)){s.which=s.charCode||s.keyCode}if(!s.metaKey&&s.ctrlKey){s.metaKey=s.ctrlKey}if(!s.which&&s.button!==U){s.which=s.button&1?1:s.button&2?3:s.button&4?2:0}return s},guid:100000000,proxy:al.proxy,special:{ready:{setup:al.bindReady,teardown:al.noop},live:{add:function(c){al.event.add(this,c.origType,al.extend({},c,{handler:aj}))},remove:function(s){var c=true,w=s.origType.replace(aB,"");al.each(al.data(this,"events").live||[],function(){if(w===this.origType.replace(aB,"")){return c=false}});c&&al.event.remove(this,s.origType,aj)}},beforeunload:{setup:function(s,c,w){if(this.setInterval){this.onbeforeunload=w}return false},teardown:function(s,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};var aJ=ac.removeEventListener?function(s,c,w){s.removeEventListener(c,w,false)}:function(s,c,w){s.detachEvent("on"+c,w)};al.Event=function(c){if(!this.preventDefault){return new al.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=aI();this[aK]=true};al.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ap;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=ap;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ap;this.stopPropagation()},isDefaultPrevented:aq,isPropagationStopped:aq,isImmediatePropagationStopped:aq};var ah=function(s){var c=s.relatedTarget;try{for(;c&&c!==this;){c=c.parentNode}if(c!==this){s.type=s.data;al.event.handle.apply(this,arguments)}}catch(w){}},B=function(c){c.type=c.data;al.event.handle.apply(this,arguments)};al.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(s,c){al.event.special[s]={setup:function(w){al.event.add(this,c,w&&w.selector?B:ah,s)},teardown:function(w){al.event.remove(this,c,w&&w.selector?B:ah)}}});if(!al.support.submitBubbles){al.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){al.event.add(this,"click.specialSubmit",function(s){var c=s.target,w=c.type;if((w==="submit"||w==="image")&&al(c).closest("form").length){return aN("submit",this,arguments)}});al.event.add(this,"keypress.specialSubmit",function(s){var c=s.target,w=c.type;if((w==="text"||w==="password")&&al(c).closest("form").length&&s.keyCode===13){return aN("submit",this,arguments)}})}else{return false}},teardown:function(){al.event.remove(this,".specialSubmit")}}}if(!al.support.changeBubbles){var x=/textarea|input|select/i,h,m=function(s){var c=s.type,w=s.value;if(c==="radio"||c==="checkbox"){w=s.checked}else{if(c==="select-multiple"){w=s.selectedIndex>-1?al.map(s.options,function(A){return A.selected}).join("-"):""}else{if(s.nodeName.toLowerCase()==="select"){w=s.selectedIndex}}}return w},bg=function(s,c){var F=s.target,w,A;if(!(!x.test(F.nodeName)||F.readOnly)){w=al.data(F,"_change_data");A=m(F);if(s.type!=="focusout"||F.type!=="radio"){al.data(F,"_change_data",A)}if(!(w===U||A===w)){if(w!=null||A){s.type="change";return al.event.trigger(s,c,F)}}}};al.event.special.change={filters:{focusout:bg,click:function(s){var c=s.target,w=c.type;if(w==="radio"||w==="checkbox"||c.nodeName.toLowerCase()==="select"){return bg.call(this,s)}},keydown:function(s){var c=s.target,w=c.type;if(s.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||s.keyCode===32&&(w==="checkbox"||w==="radio")||w==="select-multiple"){return bg.call(this,s)}},beforeactivate:function(c){c=c.target;al.data(c,"_change_data",m(c))}},setup:function(){if(this.type==="file"){return false}for(var c in h){al.event.add(this,c+".specialChange",h[c])}return x.test(this.nodeName)},teardown:function(){al.event.remove(this,".specialChange");return x.test(this.nodeName)}};h=al.event.special.change.filters}ac.addEventListener&&al.each({focus:"focusin",blur:"focusout"},function(s,c){function w(A){A=al.event.fix(A);A.type=c;return al.event.handle.call(this,A)}al.event.special[c]={setup:function(){this.addEventListener(s,w,true)},teardown:function(){this.removeEventListener(s,w,true)}}});al.each(["bind","one"],function(s,c){al.fn[c]=function(K,F,G){if(typeof K==="object"){for(var w in K){this[c](w,F,K[w],G)}return this}if(al.isFunction(F)){G=F;F=U}var A=c==="one"?al.proxy(G,function(L){al(this).unbind(L,A);return G.apply(this,arguments)}):G;if(K==="unload"&&c!=="one"){this.one(K,F,G)}else{w=0;for(var J=this.length;w<J;w++){al.event.add(this[w],K,A,F)}}return this}});al.fn.extend({unbind:function(s,c){if(typeof s==="object"&&!s.preventDefault){for(var A in s){this.unbind(A,s[A])}}else{A=0;for(var w=this.length;A<w;A++){al.event.remove(this[A],s,c)}}return this},delegate:function(s,c,A,w){return this.live(c,A,w,s)},undelegate:function(s,c,w){return arguments.length===0?this.unbind("live"):this.die(c,null,w,s)},trigger:function(s,c){return this.each(function(){al.event.trigger(s,c,this)})},triggerHandler:function(s,c){if(this[0]){s=al.Event(s);s.preventDefault();s.stopPropagation();al.event.trigger(s,c,this[0]);return s.result}},toggle:function(s){for(var c=arguments,w=1;w<c.length;){al.proxy(s,c[w++])}return this.click(al.proxy(s,function(A){var F=(al.data(this,"lastToggle"+s.guid)||0)%w;al.data(this,"lastToggle"+s.guid,F+1);A.preventDefault();return c[F].apply(this,arguments)||false}))},hover:function(s,c){return this.mouseenter(s).mouseleave(c||s)}});var bk={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};al.each(["live","die"],function(s,c){al.fn[c]=function(O,L,N,J){var K,A=0,G,F,w=J||this.selector,P=J?this:al(this.context);if(al.isFunction(L)){N=L;L=U}for(O=(O||"").split(" ");(K=O[A++])!=null;){J=aB.exec(K);G="";if(J){G=J[0];K=K.replace(aB,"")}if(K==="hover"){O.push("mouseenter"+G,"mouseleave"+G)}else{F=K;if(K==="focus"||K==="blur"){O.push(bk[K]+G);K+=G}else{K=(bk[K]||K)+G}c==="live"?P.each(function(){al.event.add(this,D(K,w),{data:L,selector:w,handler:N,origType:K,origHandler:N,preType:F})}):P.unbind(D(K,w),N)}}return this}});al.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(s,c){al.fn[c]=function(w){return w?this.bind(c,w):this.trigger(c)};if(al.attrFn){al.attrFn[c]=true}});aR.attachEvent&&!aR.addEventListener&&aR.attachEvent("onunload",function(){for(var s in al.cache){if(al.cache[s].handle){try{al.event.remove(al.cache[s].handle.elem)}catch(c){}}}});(function(){function W(ab){for(var aa="",Z,Y=0;ab[Y];Y++){Z=ab[Y];if(Z.nodeType===3||Z.nodeType===4){aa+=Z.nodeValue}else{if(Z.nodeType!==8){aa+=W(Z.childNodes)}}}return aa}function V(bb,ba,ab,aa,Y,Z){Y=0;for(var bp=aa.length;Y<bp;Y++){var bq=aa[Y];if(bq){bq=bq[bb];for(var bo=false;bq;){if(bq.sizcache===ab){bo=aa[bq.sizset];break}if(bq.nodeType===1&&!Z){bq.sizcache=ab;bq.sizset=Y}if(bq.nodeName.toLowerCase()===ba){bo=bq;break}bq=bq[bb]}aa[Y]=bo}}}function T(bb,ba,ab,aa,Y,Z){Y=0;for(var bp=aa.length;Y<bp;Y++){var bq=aa[Y];if(bq){bq=bq[bb];for(var bo=false;bq;){if(bq.sizcache===ab){bo=aa[bq.sizset];break}if(bq.nodeType===1){if(!Z){bq.sizcache=ab;bq.sizset=Y}if(typeof ba!=="string"){if(bq===ba){bo=true;break}}else{if(N.filter(ba,[bq]).length>0){bo=bq;break}}}bq=bq[bb]}aa[Y]=bo}}}var Q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,R=0,O=Object.prototype.toString,P=false,K=true;[0,0].sort(function(){K=false;return 0});var N=function(bp,bo,ba,ab){ba=ba||[];var Z=bo=bo||ac;if(bo.nodeType!==1&&bo.nodeType!==9){return[]}if(!bp||typeof bp!=="string"){return ba}for(var aa=[],bu,bv,br,bb,bt=true,bq=s(bo),bs=bp;(Q.exec(""),bu=Q.exec(bs))!==null;){bs=bu[3];aa.push(bu[1]);if(bu[2]){bb=bu[3];break}}if(aa.length>1&&F.exec(bp)){if(aa.length===2&&L.relative[aa[0]]){bv=X(aa[0]+aa[1],bo)}else{for(bv=L.relative[aa[0]]?[bo]:N(aa.shift(),bo);aa.length;){bp=aa.shift();if(L.relative[bp]){bp+=aa.shift()}bv=X(bp,bv)}}}else{if(!ab&&aa.length>1&&bo.nodeType===9&&!bq&&L.match.ID.test(aa[0])&&!L.match.ID.test(aa[aa.length-1])){bu=N.find(aa.shift(),bo,bq);bo=bu.expr?N.filter(bu.expr,bu.set)[0]:bu.set[0]}if(bo){bu=ab?{expr:aa.pop(),set:c(ab)}:N.find(aa.pop(),aa.length===1&&(aa[0]==="~"||aa[0]==="+")&&bo.parentNode?bo.parentNode:bo,bq);bv=bu.expr?N.filter(bu.expr,bu.set):bu.set;if(aa.length>0){br=c(bv)}else{bt=false}for(;aa.length;){var Y=aa.pop();bu=Y;if(L.relative[Y]){bu=aa.pop()}else{Y=""}if(bu==null){bu=bo}L.relative[Y](br,bu,bq)}}else{br=[]}}br||(br=bv);br||N.error(Y||bp);if(O.call(br)==="[object Array]"){if(bt){if(bo&&bo.nodeType===1){for(bp=0;br[bp]!=null;bp++){if(br[bp]&&(br[bp]===true||br[bp].nodeType===1&&A(bo,br[bp]))){ba.push(bv[bp])}}}else{for(bp=0;br[bp]!=null;bp++){br[bp]&&br[bp].nodeType===1&&ba.push(bv[bp])}}}else{ba.push.apply(ba,br)}}else{c(br,ba)}if(bb){N(bb,Z,ba,ab);N.uniqueSort(ba)}return ba};N.uniqueSort=function(Z){if(J){P=K;Z.sort(J);if(P){for(var Y=1;Y<Z.length;Y++){Z[Y]===Z[Y-1]&&Z.splice(Y--,1)}}}return Z};N.matches=function(Z,Y){return N(Z,null,null,Y)};N.find=function(bb,ba,ab){var aa,Y;if(!bb){return[]}for(var Z=0,bp=L.order.length;Z<bp;Z++){var bq=L.order[Z];if(Y=L.leftMatch[bq].exec(bb)){var bo=Y[1];Y.splice(1,1);if(bo.substr(bo.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");aa=L.find[bq](Y,ba,ab);if(aa!=null){bb=bb.replace(L.match[bq],"");break}}}}aa||(aa=ba.getElementsByTagName("*"));return{set:aa,expr:bb}};N.filter=function(bq,bp,bb,ab){for(var Z=bq,aa=[],bw=bp,bx,bt,bo=bp&&bp[0]&&s(bp[0]);bq&&bp.length;){for(var bv in L.filter){if((bx=L.leftMatch[bv].exec(bq))!=null&&bx[2]){var br=L.filter[bv],bu,Y;Y=bx[1];bt=false;bx.splice(1,1);if(Y.substr(Y.length-1)!=="\\"){if(bw===aa){aa=[]}if(L.preFilter[bv]){if(bx=L.preFilter[bv](bx,bw,bb,aa,ab,bo)){if(bx===true){continue}}else{bt=bu=true}}if(bx){for(var ba=0;(Y=bw[ba])!=null;ba++){if(Y){bu=br(Y,bx,ba,bw);var bs=ab^!!bu;if(bb&&bu!=null){if(bs){bt=true}else{bw[ba]=false}}else{if(bs){aa.push(Y);bt=true}}}}}if(bu!==U){bb||(bw=aa);bq=bq.replace(L.match[bv],"");if(!bt){return[]}break}}}}if(bq===Z){if(bt==null){N.error(bq)}else{break}}Z=bq}return bw};N.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var L=N.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Y){return Y.getAttribute("href")}},relative:{"+":function(ab,aa){var Z=typeof aa==="string",Y=Z&&!/\W/.test(aa);Z=Z&&!Y;if(Y){aa=aa.toLowerCase()}Y=0;for(var ba=ab.length,bb;Y<ba;Y++){if(bb=ab[Y]){for(;(bb=bb.previousSibling)&&bb.nodeType!==1;){}ab[Y]=Z||bb&&bb.nodeName.toLowerCase()===aa?bb||false:bb===aa}}Z&&N.filter(aa,ab,true)},">":function(ab,aa){var Z=typeof aa==="string";if(Z&&!/\W/.test(aa)){aa=aa.toLowerCase();for(var Y=0,ba=ab.length;Y<ba;Y++){var bb=ab[Y];if(bb){Z=bb.parentNode;ab[Y]=Z.nodeName.toLowerCase()===aa?Z:false}}}else{Y=0;for(ba=ab.length;Y<ba;Y++){if(bb=ab[Y]){ab[Y]=Z?bb.parentNode:bb.parentNode===aa}}Z&&N.filter(aa,ab,true)}},"":function(ab,aa,Z){var Y=R++,ba=T;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=V}ba("parentNode",aa,Y,ab,bb,Z)},"~":function(ab,aa,Z){var Y=R++,ba=T;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=V}ba("previousSibling",aa,Y,ab,bb,Z)}},find:{ID:function(aa,Z,Y){if(typeof Z.getElementById!=="undefined"&&!Y){return(aa=Z.getElementById(aa[1]))?[aa]:[]}},NAME:function(ab,aa){if(typeof aa.getElementsByName!=="undefined"){var Z=[];aa=aa.getElementsByName(ab[1]);for(var Y=0,ba=aa.length;Y<ba;Y++){aa[Y].getAttribute("name")===ab[1]&&Z.push(aa[Y])}return Z.length===0?null:Z}},TAG:function(Z,Y){return Y.getElementsByTagName(Z[1])}},preFilter:{CLASS:function(ba,ab,Z,Y,bb,bo){ba=" "+ba[1].replace(/\\/g,"")+" ";if(bo){return ba}bo=0;for(var aa;(aa=ab[bo])!=null;bo++){if(aa){if(bb^(aa.className&&(" "+aa.className+" ").replace(/[\t\n]/g," ").indexOf(ba)>=0)){Z||Y.push(aa)}else{if(Z){ab[bo]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")},TAG:function(Y){return Y[1].toLowerCase()},CHILD:function(Z){if(Z[1]==="nth"){var Y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Z[2]==="even"&&"2n"||Z[2]==="odd"&&"2n+1"||!/\D/.test(Z[2])&&"0n+"+Z[2]||Z[2]);Z[2]=Y[1]+(Y[2]||1)-0;Z[3]=Y[3]-0}Z[0]=R++;return Z},ATTR:function(ab,aa,Z,Y,ba,bb){aa=ab[1].replace(/\\/g,"");if(!bb&&L.attrMap[aa]){ab[1]=L.attrMap[aa]}if(ab[2]==="~="){ab[4]=" "+ab[4]+" "}return ab},PSEUDO:function(ab,aa,Z,Y,ba){if(ab[1]==="not"){if((Q.exec(ab[3])||"").length>1||/^\w/.test(ab[3])){ab[3]=N(ab[3],null,null,aa)}else{ab=N.filter(ab[3],aa,Z,true^ba);Z||Y.push.apply(Y,ab);return false}}else{if(L.match.POS.test(ab[0])||L.match.CHILD.test(ab[0])){return true}}return ab},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true},selected:function(Y){return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(aa,Z,Y){return !!N(Y[3],aa).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toLowerCase()==="button"},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Z,Y){return Y===0},last:function(ab,aa,Z,Y){return aa===Y.length-1},even:function(Z,Y){return Y%2===0},odd:function(Z,Y){return Y%2===1},lt:function(aa,Z,Y){return Z<Y[3]-0},gt:function(aa,Z,Y){return Z>Y[3]-0},nth:function(aa,Z,Y){return Y[3]-0===Z},eq:function(aa,Z,Y){return Y[3]-0===Z}},filter:{PSEUDO:function(ab,aa,Z,Y){var ba=aa[1],bb=L.filters[ba];if(bb){return bb(ab,Z,aa,Y)}else{if(ba==="contains"){return(ab.textContent||ab.innerText||W([ab])||"").indexOf(aa[3])>=0}else{if(ba==="not"){aa=aa[3];Z=0;for(Y=aa.length;Z<Y;Z++){if(aa[Z]===ab){return false}}return true}else{N.error("Syntax error, unrecognized expression: "+ba)}}}},CHILD:function(ba,ab){var Z=ab[1],Y=ba;switch(Z){case"only":case"first":for(;Y=Y.previousSibling;){if(Y.nodeType===1){return false}}if(Z==="first"){return true}Y=ba;case"last":for(;Y=Y.nextSibling;){if(Y.nodeType===1){return false}}return true;case"nth":Z=ab[2];var bb=ab[3];if(Z===1&&bb===0){return true}ab=ab[0];var bo=ba.parentNode;if(bo&&(bo.sizcache!==ab||!ba.nodeIndex)){var aa=0;for(Y=bo.firstChild;Y;Y=Y.nextSibling){if(Y.nodeType===1){Y.nodeIndex=++aa}}bo.sizcache=ab}ba=ba.nodeIndex-bb;return Z===0?ba===0:ba%Z===0&&ba/Z>=0}},ID:function(Z,Y){return Z.nodeType===1&&Z.getAttribute("id")===Y},TAG:function(Z,Y){return Y==="*"&&Z.nodeType===1||Z.nodeName.toLowerCase()===Y},CLASS:function(Z,Y){return(" "+(Z.className||Z.getAttribute("class"))+" ").indexOf(Y)>-1},ATTR:function(ab,aa){var Z=aa[1];ab=L.attrHandle[Z]?L.attrHandle[Z](ab):ab[Z]!=null?ab[Z]:ab.getAttribute(Z);Z=ab+"";var Y=aa[2];aa=aa[4];return ab==null?Y==="!=":Y==="="?Z===aa:Y==="*="?Z.indexOf(aa)>=0:Y==="~="?(" "+Z+" ").indexOf(aa)>=0:!aa?Z&&ab!==false:Y==="!="?Z!==aa:Y==="^="?Z.indexOf(aa)===0:Y==="$="?Z.substr(Z.length-aa.length)===aa:Y==="|="?Z===aa||Z.substr(0,aa.length+1)===aa+"-":false},POS:function(ab,aa,Z,Y){var ba=L.setFilters[aa[2]];if(ba){return ba(ab,Z,aa,Y)}}}},F=L.match.POS;for(var w in L.match){L.match[w]=new RegExp(L.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source);L.leftMatch[w]=new RegExp(/(^(?:.|\r|\n)*?)/.source+L.match[w].source.replace(/\\(\d+)/g,function(Z,Y){return"\\"+(Y-0+1)}))}var c=function(Z,Y){Z=Array.prototype.slice.call(Z,0);if(Y){Y.push.apply(Y,Z);return Y}return Z};try{Array.prototype.slice.call(ac.documentElement.childNodes,0)}catch(G){c=function(ab,aa){aa=aa||[];if(O.call(ab)==="[object Array]"){Array.prototype.push.apply(aa,ab)}else{if(typeof ab.length==="number"){for(var Z=0,Y=ab.length;Z<Y;Z++){aa.push(ab[Z])}}else{for(Z=0;ab[Z];Z++){aa.push(ab[Z])}}}return aa}}var J;if(ac.documentElement.compareDocumentPosition){J=function(Z,Y){if(!Z.compareDocumentPosition||!Y.compareDocumentPosition){if(Z==Y){P=true}return Z.compareDocumentPosition?-1:1}Z=Z.compareDocumentPosition(Y)&4?-1:Z===Y?0:1;if(Z===0){P=true}return Z}}else{if("sourceIndex" in ac.documentElement){J=function(Z,Y){if(!Z.sourceIndex||!Y.sourceIndex){if(Z==Y){P=true}return Z.sourceIndex?-1:1}Z=Z.sourceIndex-Y.sourceIndex;if(Z===0){P=true}return Z}}else{if(ac.createRange){J=function(ab,aa){if(!ab.ownerDocument||!aa.ownerDocument){if(ab==aa){P=true}return ab.ownerDocument?-1:1}var Z=ab.ownerDocument.createRange(),Y=aa.ownerDocument.createRange();Z.setStart(ab,0);Z.setEnd(ab,0);Y.setStart(aa,0);Y.setEnd(aa,0);ab=Z.compareBoundaryPoints(Range.START_TO_END,Y);if(ab===0){P=true}return ab}}}}(function(){var aa=ac.createElement("div"),Z="script"+(new Date).getTime();aa.innerHTML="<a name='"+Z+"'/>";var Y=ac.documentElement;Y.insertBefore(aa,Y.firstChild);if(ac.getElementById(Z)){L.find.ID=function(ab,ba,bb){if(typeof ba.getElementById!=="undefined"&&!bb){return(ba=ba.getElementById(ab[1]))?ba.id===ab[1]||typeof ba.getAttributeNode!=="undefined"&&ba.getAttributeNode("id").nodeValue===ab[1]?[ba]:U:[]}};L.filter.ID=function(ab,ba){var bb=typeof ab.getAttributeNode!=="undefined"&&ab.getAttributeNode("id");return ab.nodeType===1&&bb&&bb.nodeValue===ba}}Y.removeChild(aa);Y=aa=null})();(function(){var Y=ac.createElement("div");Y.appendChild(ac.createComment(""));if(Y.getElementsByTagName("*").length>0){L.find.TAG=function(ab,aa){aa=aa.getElementsByTagName(ab[1]);if(ab[1]==="*"){ab=[];for(var Z=0;aa[Z];Z++){aa[Z].nodeType===1&&ab.push(aa[Z])}aa=ab}return aa}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){L.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();ac.querySelectorAll&&function(){var aa=N,Z=ac.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){N=function(ab,bo,bp,ba){bo=bo||ac;if(!ba&&bo.nodeType===9&&!s(bo)){try{return c(bo.querySelectorAll(ab),bp)}catch(bb){}}return aa(ab,bo,bp,ba)};for(var Y in aa){N[Y]=aa[Y]}Z=null}}();(function(){var Y=ac.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Y.getElementsByClassName||Y.getElementsByClassName("e").length===0)){Y.lastChild.className="e";if(Y.getElementsByClassName("e").length!==1){L.order.splice(1,0,"CLASS");L.find.CLASS=function(ab,aa,Z){if(typeof aa.getElementsByClassName!=="undefined"&&!Z){return aa.getElementsByClassName(ab[1])}};Y=null}}})();var A=ac.compareDocumentPosition?function(Z,Y){return !!(Z.compareDocumentPosition(Y)&16)}:function(Z,Y){return Z!==Y&&(Z.contains?Z.contains(Y):true)},s=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},X=function(ab,aa){var Z=[],Y="",ba;for(aa=aa.nodeType?[aa]:aa;ba=L.match.PSEUDO.exec(ab);){Y+=ba[0];ab=ab.replace(L.match.PSEUDO,"")}ab=L.relative[ab]?ab+"*":ab;ba=0;for(var bb=aa.length;ba<bb;ba++){N(ab,aa[ba],Z)}return N.filter(Y,Z)};al.find=N;al.expr=N.selectors;al.expr[":"]=al.expr.filters;al.unique=N.uniqueSort;al.text=W;al.isXMLDoc=s;al.contains=A})();var g=/Until$/,be=/^(?:parents|prevUntil|prevAll)/,aZ=/,/;ax=Array.prototype.slice;var aO=function(s,c,A){if(al.isFunction(c)){return al.grep(s,function(G,F){return !!c.call(G,F,G)===A})}else{if(c.nodeType){return al.grep(s,function(F){return F===c===A})}else{if(typeof c==="string"){var w=al.grep(s,function(F){return F.nodeType===1});if(aW.test(c)){return al.filter(c,w,!A)}else{c=al.filter(c,w)}}}}return al.grep(s,function(F){return al.inArray(F,c)>=0===A})};al.fn.extend({find:function(s){for(var c=this.pushStack("","find",s),J=0,F=0,G=this.length;F<G;F++){J=c.length;al.find(s,this[F],c);if(F>0){for(var w=J;w<c.length;w++){for(var A=0;A<J;A++){if(c[A]===c[w]){c.splice(w--,1);break}}}}}return c},has:function(s){var c=al(s);return this.filter(function(){for(var A=0,w=c.length;A<w;A++){if(al.contains(this,c[A])){return true}}})},not:function(c){return this.pushStack(aO(this,c,false),"not",c)},filter:function(c){return this.pushStack(aO(this,c,true),"filter",c)},is:function(c){return !!c&&al.filter(c,this).length>0},closest:function(L,K){if(al.isArray(L)){var J=[],F=this[0],G,w={},A;if(F&&L.length){G=0;for(var c=L.length;G<c;G++){A=L[G];w[A]||(w[A]=al.expr.match.POS.test(A)?al(A,K||this.context):A)}for(;F&&F.ownerDocument&&F!==K;){for(A in w){G=w[A];if(G.jquery?G.index(F)>-1:al(F).is(G)){J.push({selector:A,elem:F});delete w[A]}}F=F.parentNode}}return J}var s=al.expr.match.POS.test(L)?al(L,K||this.context):null;return this.map(function(O,N){for(;N&&N.ownerDocument&&N!==K;){if(s?s.index(N)>-1:al(N).is(L)){return N}N=N.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return al.inArray(this[0],c?al(c):this.parent().children())}return al.inArray(c.jquery?c[0]:c,this)},add:function(s,c){s=typeof s==="string"?al(s,c||this.context):al.makeArray(s);c=al.merge(this.get(),s);return this.pushStack(o(s[0])||o(c[0])?c:al.unique(c))},andSelf:function(){return this.add(this.prevObject)}});al.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return al.dir(c,"parentNode")},parentsUntil:function(s,c,w){return al.dir(s,"parentNode",w)},next:function(c){return al.nth(c,2,"nextSibling")},prev:function(c){return al.nth(c,2,"previousSibling")},nextAll:function(c){return al.dir(c,"nextSibling")},prevAll:function(c){return al.dir(c,"previousSibling")},nextUntil:function(s,c,w){return al.dir(s,"nextSibling",w)},prevUntil:function(s,c,w){return al.dir(s,"previousSibling",w)},siblings:function(c){return al.sibling(c.parentNode.firstChild,c)},children:function(c){return al.sibling(c.firstChild)},contents:function(c){return al.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:al.makeArray(c.childNodes)}},function(s,c){al.fn[s]=function(F,w){var A=al.map(this,c,F);g.test(s)||(w=F);if(w&&typeof w==="string"){A=al.filter(w,A)}A=this.length>1?al.unique(A):A;if((this.length>1||aZ.test(w))&&be.test(s)){A=A.reverse()}return this.pushStack(A,s,ax.call(arguments).join(","))}});al.extend({filter:function(s,c,w){if(w){s=":not("+s+")"}return al.find.matches(s,c)},dir:function(s,c,A){var w=[];for(s=s[c];s&&s.nodeType!==9&&(A===U||s.nodeType!==1||!al(s).is(A));){s.nodeType===1&&w.push(s);s=s[c]}return w},nth:function(s,c,A){c=c||1;for(var w=0;s;s=s[A]){if(s.nodeType===1&&++w===c){break}}return s},sibling:function(s,c){for(var w=[];s;s=s.nextSibling){s.nodeType===1&&s!==c&&w.push(s)}return w}});var ak=/ jQuery\d+="(?:\d+|null)"/g,av=/^\s+/,E=/(<([\w:]+)[^>]*?)\/>/g,aF=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,p=/<([\w:]+)/,af=/<tbody/i,y=/<|&#?\w+;/,aS=/<script|<object|<embed|<option|<style/i,an=/checked\s*(?:[^=]|=\s*.checked.)/i,bn=function(s,c,w){return aF.test(w)?s:c+"></"+w+">"},aM={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};aM.optgroup=aM.option;aM.tbody=aM.tfoot=aM.colgroup=aM.caption=aM.thead;aM.th=aM.td;if(!al.support.htmlSerialize){aM._default=[1,"div<div>","</div>"]}al.fn.extend({text:function(c){if(al.isFunction(c)){return this.each(function(s){var w=al(this);w.text(c.call(this,s,w.text()))})}if(typeof c!=="object"&&c!==U){return this.empty().append((this[0]&&this[0].ownerDocument||ac).createTextNode(c))}return al.text(this)},wrapAll:function(s){if(al.isFunction(s)){return this.each(function(w){al(this).wrapAll(s.call(this,w))})}if(this[0]){var c=al(s,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var w=this;w.firstChild&&w.firstChild.nodeType===1;){w=w.firstChild}return w}).append(this)}return this},wrapInner:function(c){if(al.isFunction(c)){return this.each(function(s){al(this).wrapInner(c.call(this,s))})}return this.each(function(){var s=al(this),w=s.contents();w.length?w.wrapAll(c):s.append(c)})},wrap:function(c){return this.each(function(){al(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){al.nodeName(this,"body")||al(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this)})}else{if(arguments.length){var c=al(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,al(arguments[0]).toArray());return c}}},remove:function(s,c){for(var A=0,w;(w=this[A])!=null;A++){if(!s||al.filter(s,[w]).length){if(!c&&w.nodeType===1){al.cleanData(w.getElementsByTagName("*"));al.cleanData([w])}w.parentNode&&w.parentNode.removeChild(w)}}return this},empty:function(){for(var s=0,c;(c=this[s])!=null;s++){for(c.nodeType===1&&al.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(s){var c=this.map(function(){if(!al.support.noCloneEvent&&!al.isXMLDoc(this)){var A=this.outerHTML,w=this.ownerDocument;if(!A){A=w.createElement("div");A.appendChild(this.cloneNode(true));A=A.innerHTML}return al.clean([A.replace(ak,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(av,"")],w)[0]}else{return this.cloneNode(true)}});if(s===true){bm(this,c);bm(this.find("*"),c.find("*"))}return c},html:function(s){if(s===U){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ak,""):null}else{if(typeof s==="string"&&!aS.test(s)&&(al.support.leadingWhitespace||!av.test(s))&&!aM[(p.exec(s)||["",""])[1].toLowerCase()]){s=s.replace(E,bn);try{for(var c=0,A=this.length;c<A;c++){if(this[c].nodeType===1){al.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=s}}}catch(w){this.empty().append(s)}}else{al.isFunction(s)?this.each(function(J){var F=al(this),G=F.html();F.empty().append(function(){return s.call(this,J,G)})}):this.empty().append(s)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(al.isFunction(c)){return this.each(function(s){var A=al(this),w=A.html();A.replaceWith(c.call(this,s,w))})}if(typeof c!=="string"){c=al(c).detach()}return this.each(function(){var s=this.nextSibling,w=this.parentNode;al(this).remove();s?al(s).before(c):al(w).append(c)})}else{return this.pushStack(al(al.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(O,N,L){function J(P){return al.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P}var K,F,G=O[0],s=[],A;if(!al.support.checkClone&&arguments.length===3&&typeof G==="string"&&an.test(G)){return this.each(function(){al(this).domManip(O,N,L,true)})}if(al.isFunction(G)){return this.each(function(P){var Q=al(this);O[0]=G.call(this,P,N?Q.html():U);Q.domManip(O,N,L)})}if(this[0]){K=G&&G.parentNode;K=al.support.parentNode&&K&&K.nodeType===11&&K.childNodes.length===this.length?{fragment:K}:a6(O,this,s);A=K.fragment;if(F=A.childNodes.length===1?(A=A.firstChild):A.firstChild){N=N&&al.nodeName(F,"tr");for(var w=0,c=this.length;w<c;w++){L.call(N?J(this[w],F):this[w],w>0||K.cacheable||this.length>1?A.cloneNode(true):A)}}s.length&&al.each(s,M)}return this}});al.fragments={};al.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,c){al.fn[s]=function(J){var F=[];J=al(J);var G=this.length===1&&this[0].parentNode;if(G&&G.nodeType===11&&G.childNodes.length===1&&J.length===1){J[c](this[0]);return this}else{G=0;for(var w=J.length;G<w;G++){var A=(G>0?this.clone(true):this).get();al.fn[c].apply(al(J[G]),A);F=F.concat(A)}return this.pushStack(F,s,J.selector)}}});al.extend({clean:function(O,N,L,J){N=N||ac;if(typeof N.createElement==="undefined"){N=N.ownerDocument||N[0]&&N[0].ownerDocument||ac}for(var K=[],F=0,G;(G=O[F])!=null;F++){if(typeof G==="number"){G+=""}if(G){if(typeof G==="string"&&!y.test(G)){G=N.createTextNode(G)}else{if(typeof G==="string"){G=G.replace(E,bn);var s=(p.exec(G)||["",""])[1].toLowerCase(),A=aM[s]||aM._default,w=A[0],c=N.createElement("div");for(c.innerHTML=A[1]+G+A[2];w--;){c=c.lastChild}if(!al.support.tbody){w=af.test(G);s=s==="table"&&!w?c.firstChild&&c.firstChild.childNodes:A[1]==="<table>"&&!w?c.childNodes:[];for(A=s.length-1;A>=0;--A){al.nodeName(s[A],"tbody")&&!s[A].childNodes.length&&s[A].parentNode.removeChild(s[A])}}!al.support.leadingWhitespace&&av.test(G)&&c.insertBefore(N.createTextNode(av.exec(G)[0]),c.firstChild);G=c.childNodes}}if(G.nodeType){K.push(G)}else{K=al.merge(K,G)}}}if(L){for(F=0;K[F];F++){if(J&&al.nodeName(K[F],"script")&&(!K[F].type||K[F].type.toLowerCase()==="text/javascript")){J.push(K[F].parentNode?K[F].parentNode.removeChild(K[F]):K[F])}else{K[F].nodeType===1&&K.splice.apply(K,[F+1,0].concat(al.makeArray(K[F].getElementsByTagName("script"))));L.appendChild(K[F])}}}return K},cleanData:function(L){for(var K,J,F=al.cache,G=al.event.special,w=al.support.deleteExpando,A=0,c;(c=L[A])!=null;A++){if(J=c[al.expando]){K=F[J];if(K.events){for(var s in K.events){G[s]?al.event.remove(c,s):aJ(c,s,K.handle)}}if(w){delete c[al.expando]}else{c.removeAttribute&&c.removeAttribute(al.expando)}delete F[J]}}}});var k=/z-?index|font-?weight|opacity|zoom|line-?height/i,a7=/alpha\([^)]*\)/,aT=/opacity=([^)]*)/,aH=/float/i,ag=/-([a-z])/ig,bi=/([A-Z])/g,a2=/^-?\d+(?:px)?$/i,aL=/^-?\d/,ai={position:"absolute",visibility:"hidden",display:"block"},C=["Left","Right"],n=["Top","Bottom"],bl=ac.defaultView&&ac.defaultView.getComputedStyle,ao=al.support.cssFloat?"cssFloat":"styleFloat",z=function(s,c){return c.toUpperCase()};al.fn.css=function(s,c){return at(this,s,c,true,function(F,w,A){if(A===U){return al.curCSS(F,w)}if(typeof A==="number"&&!k.test(w)){A+="px"}al.style(F,w,A)})};al.extend({style:function(s,c,F){if(!s||s.nodeType===3||s.nodeType===8){return U}if((c==="width"||c==="height")&&parseFloat(F)<0){F=U}var w=s.style||s,A=F!==U;if(!al.support.opacity&&c==="opacity"){if(A){w.zoom=1;c=parseInt(F,10)+""==="NaN"?"":"alpha(opacity="+F*100+")";s=w.filter||al.curCSS(s,"filter")||"";w.filter=a7.test(s)?s.replace(a7,c):c}return w.filter&&w.filter.indexOf("opacity=")>=0?parseFloat(aT.exec(w.filter)[1])/100+"":""}if(aH.test(c)){c=ao}c=c.replace(ag,z);if(A){w[c]=F}return w[c]},css:function(s,c,J,F){if(c==="width"||c==="height"){var G,w=c==="width"?C:n;function A(){G=c==="width"?s.offsetWidth:s.offsetHeight;F!=="border"&&al.each(w,function(){F||(G-=parseFloat(al.curCSS(s,"padding"+this,true))||0);if(F==="margin"){G+=parseFloat(al.curCSS(s,"margin"+this,true))||0}else{G-=parseFloat(al.curCSS(s,"border"+this+"Width",true))||0}})}s.offsetWidth!==0?A():al.swap(s,ai,A);return Math.max(0,Math.round(G))}return al.curCSS(s,c,J)},curCSS:function(s,c,G){var A,F=s.style;if(!al.support.opacity&&c==="opacity"&&s.currentStyle){A=aT.test(s.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return A===""?"1":A}if(aH.test(c)){c=ao}if(!G&&F&&F[c]){A=F[c]}else{if(bl){if(aH.test(c)){c="float"}c=c.replace(bi,"-$1").toLowerCase();F=s.ownerDocument.defaultView;if(!F){return null}if(s=F.getComputedStyle(s,null)){A=s.getPropertyValue(c)}if(c==="opacity"&&A===""){A="1"}}else{if(s.currentStyle){G=c.replace(ag,z);A=s.currentStyle[c]||s.currentStyle[G];if(!a2.test(A)&&aL.test(A)){c=F.left;var w=s.runtimeStyle.left;s.runtimeStyle.left=s.currentStyle.left;F.left=G==="fontSize"?"1em":A||0;A=F.pixelLeft+"px";F.left=c;s.runtimeStyle.left=w}}}}return A},swap:function(s,c,F){var w={};for(var A in c){w[A]=s.style[A];s.style[A]=c[A]}F.call(s);for(A in c){s.style[A]=w[A]}}});if(al.expr&&al.expr.filters){al.expr.filters.hidden=function(s){var c=s.offsetWidth,A=s.offsetHeight,w=s.nodeName.toLowerCase()==="tr";return c===0&&A===0&&!w?true:c>0&&A>0&&!w?false:al.curCSS(s,"display")==="none"};al.expr.filters.visible=function(c){return !al.expr.filters.hidden(c)}}var a5=aI(),aQ=/<script(.|\s)*?\/script>/gi,am=/select|textarea/i,H=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aD=/=\?(&|$)/,l=/\?/,q=/(\?|&)_=.*?(&|$)/,a=/^(\w+:)?\/\/([^\/?#]+)/,a8=/%20/g,aU=al.fn.load;al.fn.extend({load:function(s,c,G){if(typeof s!=="string"){return aU.call(this,s)}else{if(!this.length){return this}}var A=s.indexOf(" ");if(A>=0){var F=s.slice(A,s.length);s=s.slice(0,A)}A="GET";if(c){if(al.isFunction(c)){G=c;c=null}else{if(typeof c==="object"){c=al.param(c,al.ajaxSettings.traditional);A="POST"}}}var w=this;al.ajax({url:s,type:A,dataType:"html",data:c,complete:function(J,K){if(K==="success"||K==="notmodified"){w.html(F?al("<div />").append(J.responseText.replace(aQ,"")).find(F):J.responseText)}G&&w.each(G,[J.responseText,K,J])}});return this},serialize:function(){return al.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?al.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||am.test(this.nodeName)||H.test(this.type))}).map(function(s,c){s=al(this).val();return s==null?null:al.isArray(s)?al.map(s,function(w){return{name:c.name,value:w}}):{name:c.name,value:s}}).get()}});al.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(s,c){al.fn[c]=function(w){return this.bind(c,w)}});al.extend({get:function(s,c,A,w){if(al.isFunction(c)){w=w||A;A=c;c=null}return al.ajax({type:"GET",url:s,data:c,success:A,dataType:w})},getScript:function(s,c){return al.get(s,null,c,"script")},getJSON:function(s,c,w){return al.get(s,c,w,"json")},post:function(s,c,A,w){if(al.isFunction(c)){w=w||A;A=c;c={}}return al.ajax({type:"POST",url:s,data:c,success:A,dataType:w})},ajaxSetup:function(c){al.extend(al.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aR.XMLHttpRequest&&(aR.location.protocol!=="file:"||!aR.ActiveXObject)?function(){return new aR.XMLHttpRequest}:function(){try{return new aR.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(aa){function Z(){X.success&&X.success.call(P,K,R,s);X.global&&W("ajaxSuccess",[s,X])}function Y(){X.complete&&X.complete.call(P,s,R);X.global&&W("ajaxComplete",[s,X]);X.global&&!--al.active&&al.event.trigger("ajaxStop")}function W(ba,bb){(X.context?al(X.context):al.event).trigger(ba,bb)}var X=al.extend(true,{},al.ajaxSettings,aa),Q,R,K,P=aa&&aa.context||X,L=X.type.toUpperCase();if(X.data&&X.processData&&typeof X.data!=="string"){X.data=al.param(X.data,X.traditional)}if(X.dataType==="jsonp"){if(L==="GET"){aD.test(X.url)||(X.url+=(l.test(X.url)?"&":"?")+(X.jsonp||"callback")+"=?")}else{if(!X.data||!aD.test(X.data)){X.data=(X.data?X.data+"&":"")+(X.jsonp||"callback")+"=?"}}X.dataType="json"}if(X.dataType==="json"&&(X.data&&aD.test(X.data)||aD.test(X.url))){Q=X.jsonpCallback||"jsonp"+a5++;if(X.data){X.data=(X.data+"").replace(aD,"="+Q+"$1")}X.url=X.url.replace(aD,"="+Q+"$1");X.dataType="script";aR[Q]=aR[Q]||function(ba){K=ba;Z();Y();aR[Q]=U;try{delete aR[Q]}catch(bb){}c&&c.removeChild(G)}}if(X.dataType==="script"&&X.cache===null){X.cache=false}if(X.cache===false&&L==="GET"){var F=aI(),w=X.url.replace(q,"$1_="+F+"$2");X.url=w+(w===X.url?(l.test(X.url)?"&":"?")+"_="+F:"")}if(X.data&&L==="GET"){X.url+=(l.test(X.url)?"&":"?")+X.data}X.global&&!al.active++&&al.event.trigger("ajaxStart");F=(F=a.exec(X.url))&&(F[1]&&F[1]!==location.protocol||F[2]!==location.host);if(X.dataType==="script"&&L==="GET"&&F){var c=ac.getElementsByTagName("head")[0]||ac.documentElement,G=ac.createElement("script");G.src=X.url;if(X.scriptCharset){G.charset=X.scriptCharset}if(!Q){var J=false;G.onload=G.onreadystatechange=function(){if(!J&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){J=true;Z();Y();G.onload=G.onreadystatechange=null;c&&G.parentNode&&c.removeChild(G)}}}c.insertBefore(G,c.firstChild);return U}var A=false,s=X.xhr();if(s){X.username?s.open(L,X.url,X.async,X.username,X.password):s.open(L,X.url,X.async);try{if(X.data||aa&&aa.contentType){s.setRequestHeader("Content-Type",X.contentType)}if(X.ifModified){al.lastModified[X.url]&&s.setRequestHeader("If-Modified-Since",al.lastModified[X.url]);al.etag[X.url]&&s.setRequestHeader("If-None-Match",al.etag[X.url])}F||s.setRequestHeader("X-Requested-With","XMLHttpRequest");s.setRequestHeader("Accept",X.dataType&&X.accepts[X.dataType]?X.accepts[X.dataType]+", */*":X.accepts._default)}catch(ab){}if(X.beforeSend&&X.beforeSend.call(P,s,X)===false){X.global&&!--al.active&&al.event.trigger("ajaxStop");s.abort();return false}X.global&&W("ajaxSend",[s,X]);var V=s.onreadystatechange=function(bb){if(!s||s.readyState===0||bb==="abort"){A||Y();A=true;if(s){s.onreadystatechange=al.noop}}else{if(!A&&s&&(s.readyState===4||bb==="timeout")){A=true;s.onreadystatechange=al.noop;R=bb==="timeout"?"timeout":!al.httpSuccess(s)?"error":X.ifModified&&al.httpNotModified(s,X.url)?"notmodified":"success";var bo;if(R==="success"){try{K=al.httpData(s,X.dataType,X)}catch(ba){R="parsererror";bo=ba}}if(R==="success"||R==="notmodified"){Q||Z()}else{al.handleError(X,s,R,bo)}Y();bb==="timeout"&&s.abort();if(X.async){s=null}}}};try{var T=s.abort;s.abort=function(){s&&T.call(s);V("abort")}}catch(O){}X.async&&X.timeout>0&&setTimeout(function(){s&&!A&&V("timeout")},X.timeout);try{s.send(L==="POST"||L==="PUT"||L==="DELETE"?X.data:null)}catch(N){al.handleError(X,s,null,N);Y()}X.async||V();return s}},handleError:function(s,c,A,w){if(s.error){s.error.call(s.context||s,c,A,w)}if(s.global){(s.context?al(s.context):al.event).trigger("ajaxError",[c,s,w])}},active:0,httpSuccess:function(s){try{return !s.status&&location.protocol==="file:"||s.status>=200&&s.status<300||s.status===304||s.status===1223||s.status===0}catch(c){}return false},httpNotModified:function(s,c){var A=s.getResponseHeader("Last-Modified"),w=s.getResponseHeader("Etag");if(A){al.lastModified[c]=A}if(w){al.etag[c]=w}return s.status===304||s.status===0},httpData:function(s,c,F){var w=s.getResponseHeader("content-type")||"",A=c==="xml"||!c&&w.indexOf("xml")>=0;s=A?s.responseXML:s.responseText;A&&s.documentElement.nodeName==="parsererror"&&al.error("parsererror");if(F&&F.dataFilter){s=F.dataFilter(s,c)}if(typeof s==="string"){if(c==="json"||!c&&w.indexOf("json")>=0){s=al.parseJSON(s)}else{if(c==="script"||!c&&w.indexOf("javascript")>=0){al.globalEval(s)}}}return s},param:function(s,c){function G(J,K){if(al.isArray(K)){al.each(K,function(L,N){c||/\[\]$/.test(J)?A(J,N):G(J+"["+(typeof N==="object"||al.isArray(N)?L:"")+"]",N)})}else{!c&&K!=null&&typeof K==="object"?al.each(K,function(L,N){G(J+"["+L+"]",N)}):A(J,K)}}function A(J,K){K=al.isFunction(K)?K():K;F[F.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var F=[];if(c===U){c=al.ajaxSettings.traditional}if(al.isArray(s)||s.jquery){al.each(s,function(){A(this.name,this.value)})}else{for(var w in s){G(w,s[w])}}return F.join("&").replace(a8,"+")}});var bj={},bf=/toggle|show|hide/,a0=/^([+-]=)?([\d+-.]+)(.*)$/,au,I=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];al.fn.extend({show:function(s,c){if(s||s===0){return this.animate(aG("show",3),s,c)}else{s=0;for(c=this.length;s<c;s++){var F=al.data(this[s],"olddisplay");this[s].style.display=F||"";if(al.css(this[s],"display")==="none"){F=this[s].nodeName;var w;if(bj[F]){w=bj[F]}else{var A=al("<"+F+" />").appendTo("body");w=A.css("display");if(w==="none"){w="block"}A.remove();bj[F]=w}al.data(this[s],"olddisplay",w)}}s=0;for(c=this.length;s<c;s++){this[s].style.display=al.data(this[s],"olddisplay")||""}return this}},hide:function(s,c){if(s||s===0){return this.animate(aG("hide",3),s,c)}else{s=0;for(c=this.length;s<c;s++){var w=al.data(this[s],"olddisplay");!w&&w!=="none"&&al.data(this[s],"olddisplay",al.css(this[s],"display"))}s=0;for(c=this.length;s<c;s++){this[s].style.display="none"}return this}},_toggle:al.fn.toggle,toggle:function(s,c){var w=typeof s==="boolean";if(al.isFunction(s)&&al.isFunction(c)){this._toggle.apply(this,arguments)}else{s==null||w?this.each(function(){var A=w?s:al(this).is(":hidden");al(this)[A?"show":"hide"]()}):this.animate(aG("toggle",3),s,c)}return this},fadeTo:function(s,c,w){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},s,w)},animate:function(s,c,F,w){var A=al.speed(c,F,w);if(al.isEmptyObject(s)){return this.each(A.complete)}return this[A.queue===false?"each":"queue"](function(){var J=al.extend({},A),K,L=this.nodeType===1&&al(this).is(":hidden"),G=this;for(K in s){var N=K.replace(ag,z);if(K!==N){s[N]=s[K];delete s[K];K=N}if(s[K]==="hide"&&L||s[K]==="show"&&!L){return J.complete.call(this)}if((K==="height"||K==="width")&&this.style){J.display=al.css(this,"display");J.overflow=this.style.overflow}if(al.isArray(s[K])){(J.specialEasing=J.specialEasing||{})[K]=s[K][1];s[K]=s[K][0]}}if(J.overflow!=null){this.style.overflow="hidden"}J.curAnim=al.extend({},s);al.each(s,function(P,O){var T=new al.fx(G,J,P);if(bf.test(O)){T[O==="toggle"?L?"show":"hide":O](s)}else{var R=a0.exec(O),V=T.cur(true)||0;if(R){O=parseFloat(R[2]);var Q=R[3]||"px";if(Q!=="px"){G.style[P]=(O||1)+Q;V=(O||1)/T.cur(true)*V;G.style[P]=V+Q}if(R[1]){O=(R[1]==="-="?-1:1)*O+V}T.custom(V,O,Q)}else{T.custom(V,O,"")}}});return true})},stop:function(s,c){var w=al.timers;s&&this.queue([]);this.each(function(){for(var A=w.length-1;A>=0;A--){if(w[A].elem===this){c&&w[A](true);w.splice(A,1)}}});c||this.dequeue();return this}});al.each({slideDown:aG("show",1),slideUp:aG("hide",1),slideToggle:aG("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(s,c){al.fn[s]=function(A,w){return this.animate(c,A,w)}});al.extend({speed:function(s,c,A){var w=s&&typeof s==="object"?s:{complete:A||!A&&c||al.isFunction(s)&&s,duration:s,easing:A&&c||c&&!al.isFunction(c)&&c};w.duration=al.fx.off?0:typeof w.duration==="number"?w.duration:al.fx.speeds[w.duration]||al.fx.speeds._default;w.old=w.complete;w.complete=function(){w.queue!==false&&al(this).dequeue();al.isFunction(w.old)&&w.old.call(this)};return w},easing:{linear:function(s,c,A,w){return A+w*s},swing:function(s,c,A,w){return(-Math.cos(s*Math.PI)/2+0.5)*w+A}},timers:[],fx:function(s,c,w){this.options=c;this.elem=s;this.prop=w;if(!c.orig){c.orig={}}}});al.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(al.fx.step[this.prop]||al.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(c=parseFloat(al.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(al.curCSS(this.elem,this.prop))||0},custom:function(s,c,F){function w(G){return A.step(G)}this.startTime=aI();this.start=s;this.end=c;this.unit=F||this.unit||"px";this.now=this.start;this.pos=this.state=0;var A=this;w.elem=this.elem;if(w()&&al.timers.push(w)&&!au){au=setInterval(al.fx.tick,13)}},show:function(){this.options.orig[this.prop]=al.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());al(this.elem).show()},hide:function(){this.options.orig[this.prop]=al.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(s){var c=aI(),F=true;if(s||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var w in this.options.curAnim){if(this.options.curAnim[w]!==true){F=false}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;s=al.data(this.elem,"olddisplay");this.elem.style.display=s?s:this.options.display;if(al.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&al(this.elem).hide();if(this.options.hide||this.options.show){for(var A in this.options.curAnim){al.style(this.elem,A,this.options.orig[A])}}this.options.complete.call(this.elem)}return false}else{A=c-this.startTime;this.state=A/this.options.duration;s=this.options.easing||(al.easing.swing?"swing":"linear");this.pos=al.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||s](this.state,A,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};al.extend(al.fx,{tick:function(){for(var s=al.timers,c=0;c<s.length;c++){s[c]()||s.splice(c--,1)}s.length||al.fx.stop()},stop:function(){clearInterval(au);au=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){al.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit}else{c.elem[c.prop]=c.now}}}});if(al.expr&&al.expr.filters){al.expr.filters.animated=function(c){return al.grep(al.timers,function(s){return c===s.elem}).length}}al.fn.offset="getBoundingClientRect" in ac.documentElement?function(s){var c=this[0];if(s){return this.each(function(F){al.offset.setOffset(this,s,F)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return al.offset.bodyOffset(c)}var A=c.getBoundingClientRect(),w=c.ownerDocument;c=w.body;w=w.documentElement;return{top:A.top+(self.pageYOffset||al.support.boxModel&&w.scrollTop||c.scrollTop)-(w.clientTop||c.clientTop||0),left:A.left+(self.pageXOffset||al.support.boxModel&&w.scrollLeft||c.scrollLeft)-(w.clientLeft||c.clientLeft||0)}}:function(N){var L=this[0];if(N){return this.each(function(O){al.offset.setOffset(this,N,O)})}if(!L||!L.ownerDocument){return null}if(L===L.ownerDocument.body){return al.offset.bodyOffset(L)}al.offset.initialize();var K=L.offsetParent,G=L,J=L.ownerDocument,A,F=J.documentElement,c=J.body;G=(J=J.defaultView)?J.getComputedStyle(L,null):L.currentStyle;for(var w=L.offsetTop,s=L.offsetLeft;(L=L.parentNode)&&L!==c&&L!==F;){if(al.offset.supportsFixedPosition&&G.position==="fixed"){break}A=J?J.getComputedStyle(L,null):L.currentStyle;w-=L.scrollTop;s-=L.scrollLeft;if(L===K){w+=L.offsetTop;s+=L.offsetLeft;if(al.offset.doesNotAddBorder&&!(al.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(L.nodeName))){w+=parseFloat(A.borderTopWidth)||0;s+=parseFloat(A.borderLeftWidth)||0}G=K;K=L.offsetParent}if(al.offset.subtractsBorderForOverflowNotVisible&&A.overflow!=="visible"){w+=parseFloat(A.borderTopWidth)||0;s+=parseFloat(A.borderLeftWidth)||0}G=A}if(G.position==="relative"||G.position==="static"){w+=c.offsetTop;s+=c.offsetLeft}if(al.offset.supportsFixedPosition&&G.position==="fixed"){w+=Math.max(F.scrollTop,c.scrollTop);s+=Math.max(F.scrollLeft,c.scrollLeft)}return{top:w,left:s}};al.offset={initialize:function(){var s=ac.body,c=ac.createElement("div"),G,A,F,w=parseFloat(al.curCSS(s,"marginTop",true))||0;al.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";s.insertBefore(c,s.firstChild);G=c.firstChild;A=G.firstChild;F=G.nextSibling.firstChild.firstChild;this.doesNotAddBorder=A.offsetTop!==5;this.doesAddBorderForTableAndCells=F.offsetTop===5;A.style.position="fixed";A.style.top="20px";this.supportsFixedPosition=A.offsetTop===20||A.offsetTop===15;A.style.position=A.style.top="";G.style.overflow="hidden";G.style.position="relative";this.subtractsBorderForOverflowNotVisible=A.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=s.offsetTop!==w;s.removeChild(c);al.offset.initialize=al.noop},bodyOffset:function(s){var c=s.offsetTop,w=s.offsetLeft;al.offset.initialize();if(al.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(al.curCSS(s,"marginTop",true))||0;w+=parseFloat(al.curCSS(s,"marginLeft",true))||0}return{top:c,left:w}},setOffset:function(s,c,J){if(/static/.test(al.curCSS(s,"position"))){s.style.position="relative"}var F=al(s),G=F.offset(),w=parseInt(al.curCSS(s,"top",true),10)||0,A=parseInt(al.curCSS(s,"left",true),10)||0;if(al.isFunction(c)){c=c.call(s,J,G)}J={top:c.top-G.top+w,left:c.left-G.left+A};"using" in c?c.using.call(s,J):F.css(J)}};al.fn.extend({position:function(){if(!this[0]){return null}var s=this[0],c=this.offsetParent(),A=this.offset(),w=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();A.top-=parseFloat(al.curCSS(s,"marginTop",true))||0;A.left-=parseFloat(al.curCSS(s,"marginLeft",true))||0;w.top+=parseFloat(al.curCSS(c[0],"borderTopWidth",true))||0;w.left+=parseFloat(al.curCSS(c[0],"borderLeftWidth",true))||0;return{top:A.top-w.top,left:A.left-w.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||ac.body;c&&!/^body|html$/i.test(c.nodeName)&&al.css(c,"position")==="static";){c=c.offsetParent}return c})}});al.each(["Left","Top"],function(s,c){var w="scroll"+c;al.fn[w]=function(F){var G=this[0],A;if(!G){return null}if(F!==U){return this.each(function(){if(A=r(this)){A.scrollTo(!s?F:al(A).scrollLeft(),s?F:al(A).scrollTop())}else{this[w]=F}})}else{return(A=r(G))?"pageXOffset" in A?A[s?"pageYOffset":"pageXOffset"]:al.support.boxModel&&A.document.documentElement[w]||A.document.body[w]:G[w]}}});al.each(["Height","Width"],function(s,c){var w=c.toLowerCase();al.fn["inner"+c]=function(){return this[0]?al.css(this[0],w,false,"padding"):null};al.fn["outer"+c]=function(A){return this[0]?al.css(this[0],w,false,A?"margin":"border"):null};al.fn[w]=function(A){var F=this[0];if(!F){return A==null?null:this}if(al.isFunction(A)){return this.each(function(G){var J=al(this);J[w](A.call(this,G,J[w]()))})}return"scrollTo" in F&&F.document?F.document.compatMode==="CSS1Compat"&&F.document.documentElement["client"+c]||F.document.body["client"+c]:F.nodeType===9?Math.max(F.documentElement["client"+c],F.body["scroll"+c],F.documentElement["scroll"+c],F.body["offset"+c],F.documentElement["offset"+c]):A===U?al.css(F,w):this.css(w,typeof A==="string"?A:A+"px")}});aR.jQuery=aR.$=al})(window);jQuery.cookie=function(a,m,l){if(typeof m!="undefined"){l=l||{};if(m===null){m="";l.expires=-1}var e="";if(l.expires&&(typeof l.expires=="number"||l.expires.toUTCString)){var b;if(typeof l.expires=="number"){b=new Date();b.setTime(b.getTime()+(l.expires*24*60*60*1000))}else{b=l.expires}e="; expires="+b.toUTCString()}var o=l.path?"; path="+l.path:"";var c=l.domain?"; domain="+l.domain:"";var k=l.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(m),e,o,c,k].join("")}else{var h=null;if(document.cookie&&document.cookie!=""){var n=document.cookie.split(";");for(var d=0;d<n.length;d++){var g=jQuery.trim(n[d]);if(g.substring(0,a.length+1)==(a+"=")){h=decodeURIComponent(g.substring(a.length+1));break}}}return h}};(function(a){a.extend(a.fn,{swapClass:function(d,c){var e=this.filter("."+d);this.filter("."+c).removeClass(c).addClass(d);e.removeClass(d).addClass(c);return this},replaceClass:function(d,c){return this.filter("."+d).removeClass(d).addClass(c).end()},hoverClass:function(c){c=c||"hover";return this.hover(function(){a(this).addClass(c)},function(){a(this).removeClass(c)})},heightToggle:function(c,d){c?this.animate({height:"toggle"},c,d):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();if(d){d.apply(this,arguments)}})},heightHide:function(c,d){if(c){this.animate({height:"hide"},c,d)}else{this.hide();if(d){this.each(d)}}},prepareBranches:function(c){if(!c.prerendered){this.filter(":last-child:not(ul)").addClass(b.last);this.filter((c.collapsed?"":"."+b.closed)+":not(."+b.open+")").find(">ul").hide()}return this.filter(":has(>ul)")},applyClasses:function(d,c){this.filter(":has(>ul):not(:has(>a))").find(">span").unbind("click");this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(e){c.apply(a(this).next())}).add(a("a",this)).hoverClass();if(!d.prerendered){this.filter(":has(>ul:hidden)").addClass(b.expandable).replaceClass(b.last,b.lastExpandable);this.not(":has(>ul:hidden)").addClass(b.collapsable).replaceClass(b.last,b.lastCollapsable);this.prepend('<div class="'+b.hitarea+'"/>').find("div."+b.hitarea).each(function(){var e="";a.each(a(this).parent().attr("class").split(" "),function(){e+=this+"-hitarea "});a(this).addClass(e)})}this.find("span").click(function(){if(a(this).parent().hasClass("collapsable")){getArticlesWithMenu(a(this).parent().attr("id"))}});this.find("div."+b.hitarea).click(c)},treeview:function(e){e=a.extend({cookieId:"treeview"},e);if(e.add){return this.trigger("add",[e.add])}if(e.toggle){var n=e.toggle;e.toggle=function(){return n.apply(a(this).parent()[0],arguments)}}function g(o,q){function p(r){return function(){c.apply(a("div."+b.hitarea,o).filter(function(){return r?a(this).parent("."+r).length:true}));return false}}a("a:eq(0)",q).click(p(b.collapsable));a("a:eq(1)",q).click(p(b.expandable));a("a:eq(2)",q).click(p())}function c(){a(this).parent().find(">.hitarea").swapClass(b.collapsableHitarea,b.expandableHitarea).swapClass(b.lastCollapsableHitarea,b.lastExpandableHitarea).end().swapClass(b.collapsable,b.expandable).swapClass(b.lastCollapsable,b.lastExpandable).find(">ul").heightToggle(e.animated,e.toggle);if(e.unique){a(this).parent().siblings().find(">.hitarea").replaceClass(b.collapsableHitarea,b.expandableHitarea).replaceClass(b.lastCollapsableHitarea,b.lastExpandableHitarea).end().replaceClass(b.collapsable,b.expandable).replaceClass(b.lastCollapsable,b.lastExpandable).find(">ul").heightHide(e.animated,e.toggle)}}function k(){function p(q){return q?1:0}var o=[];l.each(function(q,r){o[q]=a(r).is(":has(>ul:visible)")?1:0});a.cookie(e.cookieId,o.join(""))}function d(){var o=a.cookie(e.cookieId);if(o){var p=o.split("");l.each(function(q,r){a(r).find(">ul")[parseInt(p[q])?"show":"hide"]()})}}this.addClass("treeview");var l=this.find("li").prepareBranches(e);switch(e.persist){case"cookie":var m=e.toggle;e.toggle=function(){k();if(m){m.apply(this,arguments)}};d();break;case"location":var h=this.find("a").filter(function(){return this.href.toLowerCase()==location.href.toLowerCase()});if(h.length){h.addClass("selected").parents("ul, li").add(h.next()).show()}break}l.applyClasses(e,c);if(e.control){g(this,e.control);a(e.control).show()}return this.bind("add",function(p,o){a(o).prev().removeClass(b.last).removeClass(b.lastCollapsable).removeClass(b.lastExpandable).find(">.hitarea").removeClass(b.lastCollapsableHitarea).removeClass(b.lastExpandableHitarea);a(o).find("li").andSelf().prepareBranches(e).applyClasses(e,c)})}});var b=a.fn.treeview.classes={open:"open",closed:"closed",expandable:"expandable",expandableHitarea:"expandable-hitarea",lastExpandableHitarea:"lastExpandable-hitarea",collapsable:"collapsable",collapsableHitarea:"collapsable-hitarea",lastCollapsableHitarea:"lastCollapsable-hitarea",lastCollapsable:"lastCollapsable",lastExpandable:"lastExpandable",last:"last",hitarea:"hitarea",my:"my"};a.fn.Treeview=a.fn.treeview})(jQuery);(function(c){function b(e,d,h,g){c.ajax({type:"POST",url:e.url,data:"class=menu&method=defaultMethod&id="+d+"&main="+e.main+"&mid="+e.id+(typeof(expanded_all)!="undefined"&&expanded_all=="true"?"&expanded_all=true":""),dataType:"json",cache:true,success:function(k){if(e.main==1){e.main=0}if(d==0&&typeof(k.content)!="undefined"&&typeof(k.content.menu[0])!="undefined"&&k.content.menu[0].classes!="separator_menu"){c("div#optional_header_menu").show()}function l(n){var o=c("<li/>").attr("id",this.id||"").html("<span>"+this.text+"</span>").appendTo(n);if(this.classes=="separator_menu"){o.addClass(this.classes);if(!o.prev().hasClass("separator_menu")){o.prev().addClass("last")}}if(this.classes){o.children("span").addClass(this.classes);if(this.classes!="separator_menu"){o.find("span").click(function(){c("ul#leftMenu").find("span,a").removeClass("my");addMy(c(this))})}}if(this.expanded){o.addClass("open")}if(this.hasChildren||this.children&&this.children.length){var m=c("<ul/>").appendTo(o);if(this.hasChildren){o.addClass("hasChildren ");l.call({text:"placeholder",id:"placeholder",children:[]},m)}if(this.children&&this.children.length){c.each(this.children,l,[m])}}}if(typeof(k.content)!="undefined"){c.each(k.content.menu,l,[h])}c(g).treeview({add:h});c("#path").html(k.path);if(new_menu_id){refresh(new_menu_id);new_menu_id=""}else{}bindMenuItems();enableListHover();if(k.time){c("#czas_generowania").html(k.time)}if(k.error){showError(k.error);bindNotificationCloseButton()}}})}var a=c.fn.treeview;c.fn.treeview=function(e){if(!e.url){return a.apply(this,arguments)}var g=this;b(e,"0",this,g);var d=e.toggle;return a.call(this,c.extend({},e,{collapsed:true,toggle:function(){var k=c(this);if(k.hasClass("hasChildren")){var h=k.removeClass("hasChildren").find("ul");h.empty();b(e,this.id,h,g)}if(d){d.apply(this,arguments)}}}))}})(jQuery);(function(d){var e={put:function(k,h){(h||window).location.hash=this.encoder(k)},get:function(l){var k=((l||window).location.hash).replace(/^#/,"");try{return d.browser.mozilla?k:decodeURIComponent(k)}catch(h){return k}},encoder:encodeURIComponent};var a={id:"__jQuery_history",init:function(){var h='<iframe id="'+this.id+'" style="display:none" src="javascript:false;" />';d("body").prepend(h);return this},_document:function(){return d("#"+this.id)[0].contentWindow.document},put:function(k){var h=this._document();h.open();h.close();e.put(k,h)},get:function(){return e.get(this._document())}};function g(l){l=d.extend({unescape:false},l||{});e.encoder=k(l.unescape);function k(m){if(m===true){return function(n){return n}}if(typeof m=="string"&&(m=h(m.split("")))||typeof m=="function"){return function(n){return m(encodeURIComponent(n))}}return encodeURIComponent}function h(n){var m=new RegExp(d.map(n,encodeURIComponent).join("|"),"ig");return function(o){return o.replace(m,decodeURIComponent)}}}var c={};c.base={callback:undefined,type:undefined,check:function(){},load:function(h){},init:function(k,h){g(h);b.callback=k;b._options=h;b._init()},_init:function(){},_options:{}};c.timer={_appState:undefined,_init:function(){var h=e.get();b._appState=h;b.callback(h);setInterval(b.check,100)},check:function(){var h=e.get();if(h!=b._appState){b._appState=h;b.callback(h)}},load:function(h){if(h!=b._appState){e.put(h);b._appState=h;b.callback(h)}}};c.iframeTimer={_appState:undefined,_init:function(){var h=e.get();b._appState=h;a.init().put(h);b.callback(h);setInterval(b.check,100)},check:function(){var k=a.get(),h=e.get();if(h!=k){if(h==b._appState){b._appState=k;e.put(k);b.callback(k)}else{b._appState=h;a.put(h);b.callback(h)}}},load:function(h){if(h!=b._appState){e.put(h);a.put(h);b._appState=h;b.callback(h)}}};c.hashchangeEvent={_init:function(){b.callback(e.get());d(window).bind("hashchange",b.check)},check:function(){b.callback(e.get())},load:function(h){e.put(h)}};var b=d.extend({},c.base);if(d.browser.msie&&(d.browser.version<8||document.documentMode<8)){b.type="iframeTimer"}else{if("onhashchange" in window){b.type="hashchangeEvent"}else{b.type="timer"}}d.extend(b,c[b.type]);d.history=b})(jQuery);(function(a){a.jmap=a.jmap||{};a.jmap.store={};a.jmap.JDetails={name:"jMaps Google Maps Plugin",description:"jMaps is a jQuery plugin that makes google maps easy",version:"3.0",releaseDate:"19/04/2008",author:"Tane Piper <digitalspaghetti@gmail.com>",blog:"http://digitalspaghetti.me.uk",repository:"http://hg.digitalspaghetti.me.uk/jmaps",googleGroup:"http://groups.google.com/group/jmaps",licenceType:"MIT",licenceURL:"http://www.opensource.org/licenses/mit-license.php"};a.jmap.JErrors={en:{functionDoesNotExist:"jMap Error 1: The function does not exist",addressNotFound:"This address cannot be found.  Please modify your search.",browserNotCompatible:"This browser is reported as being not compatible with Google Maps.",cannotLoad:"Cannot load the Google Maps API at this time.  Please check your connection."},fr:{addressNotFound:"Cette adresse ne peut pas être trouvée. Veuillez modifier votre recherche.",browserNotCompatible:"Ce navigateur est rapporté en tant qu'étant non compatible avec des cartes de Google.",cannotLoad:"Ne peut pas charger les cartes api de Google actuellement. Veuillez vérifier votre raccordement."},de:{addressNotFound:"Diese Adresse kann nicht gefunden werden. Ändern Sie bitte Ihre Suche.",browserNotCompatible:"Diese Datenbanksuchroutine wird als seiend nicht kompatibel mit Google Diagrammen berichtet.",cannotLoad:"Kann nicht die Google Diagramme API diesmal laden. Überprüfen Sie bitte Ihren Anschluß."},nl:{addressNotFound:"Dit adres kan worden gevonden niet. Gelieve te wijzigen uw onderzoek.",browserNotCompatible:"Dit browser wordt gemeld zoals zijnd niet compatibel met Kaarten Google.",cannotLoad:"Kan de Google Kaarten API op dit moment laden niet. Gelieve te controleren uw verbinding."},es:{addressNotFound:"Esta dirección no puede ser encontrada. Modifique por favor su búsqueda.",browserNotCompatible:"Este browser se divulga como siendo no compatible con los mapas de Google.",cannotLoad:"No puede cargar los mapas API de Google en este tiempo. Compruebe por favor su conexión."},sv:{addressNotFound:"Denna adress kunde ej hittas. Var god justera din sökning",browserNotCompatible:"Denna webbläsare är ej kompatibel med Google Maps",cannotLoad:"Kan inte ladda Google Maps API för tillfället. Var god kontrollera din anslutning."}};a.jmap.JDefaults={language:"en",mapType:"map",mapCenter:[55.958858,-3.162302],mapDimensions:[400,400],mapZoom:12,mapControlSize:"small",mapEnableType:true,mapEnableOverview:false,mapEnableDragging:true,mapEnableInfoWindows:true,mapEnableDoubleClickZoom:false,mapEnableScrollZoom:false,mapEnableSmoothZoom:false,mapEnableGoogleBar:false,mapEnableScaleControl:false,mapShowjMapIcon:true,debugMode:false};a.jmap.JAdsManagerDefaults={publisherId:""};a.jmap.JFeedDefaults={feedUrl:"",mapCenter:[]};a.jmap.JGroundOverlayDefaults={overlaySouthWestBounds:[],overlayNorthEastBounds:[],overlayImage:""};a.jmap.JIconDefaults={iconImage:"",iconShadow:"",iconSize:null,iconShadowSize:null,iconAnchor:null,iconInfoWindowAnchor:null,iconPrintImage:"",iconMozPrintImage:"",iconPrintShadow:"",iconTransparent:""};a.jmap.JMarkerManagerDefaults={borderPadding:100,maxZoom:17,trackMarkers:false};a.jmap.JMarkerDefaults={pointLatLng:[],pointHTML:null,pointOpenHTMLEvent:"click",pointIsDraggable:false,pointIsRemovable:false,pointRemoveEvent:"dblclick",pointMinZoom:4,pointMaxZoom:17,pointIcon:null,pointMaxContent:null,pointMaxTitle:null};a.jmap.JPolygonDefaults={polygonPoints:[],polygonStrokeColor:"#000000",polygonStrokeWeight:5,polygonStrokeOpacity:1,polygonFillColor:"#ff0000",polygonFillOpacity:1,mapCenter:[],polygonClickable:true};a.jmap.JPolylineDefaults={polylinePoints:[],polylineStrokeColor:"#ff0000",polylineStrokeWidth:10,polylineStrokeOpacity:1,mapCenter:[],polylineGeodesic:false,polylineClickable:true};a.jmap.JScreenOverlayDefaults={};a.jmap.JSearchAddressDefaults={address:null,cache:{},countryCode:"uk"};a.jmap.JSearchDirectionsDefault={fromAddress:"",toAddress:"",directionsPanel:""};a.jmap.JTrafficDefaults={method:"create",mapCenter:[]};a.jmap.JMoveToDefaults={centerMethod:"normal",mapType:null,mapCenter:[],mapZoom:null};a.jmap.JSavePositionDefaults={recall:false};a.jmap.variables={mapType:"Unknown",mapCenter:[]};a.jmap.init=function(c,b,e){var b=a.extend({},a.jmap.JDefaults,b);var b=a.jmap.JOptions=a.meta?a.extend({},b,a(this).data()):b;a.jmap._initChecks(c);if(a.jmap._initChecks(c)==false){return}c.jmap=a.jmap.GMap2=new GMap2(c);if(b.mapShowjMapIcon){a.jmap.addScreenOverlay({imageUrl:"http://hg.digitalspaghetti.me.uk/jmaps/raw-file/3228fade0b3c/docs/images/jmaps-mapicon.png",screenXY:[70,10],overlayXY:[0,0],size:[42,25]})}var d=a.jmap._initMapType(b.mapType);c.jmap.setCenter(new GLatLng(b.mapCenter[0],b.mapCenter[1]),b.mapZoom,d);switch(b.mapControlSize){case"small":c.jmap.addControl(new GSmallMapControl());break;case"large":c.jmap.addControl(new GLargeMapControl());break}if(b.mapEnableType){c.jmap.addControl(new GMapTypeControl())}if(b.mapEnableOverview){c.jmap.addControl(new GOverviewMapControl())}if(!b.mapEnableDragging){c.jmap.disableDragging()}if(!b.mapEnableInfoWindows){c.jmap.disableInfoWindow()}if(b.mapEnableDoubleClickZoom){c.jmap.enableDoubleClickZoom()}if(b.mapEnableScrollZoom){c.jmap.enableScrollWheelZoom()}if(b.mapEnableSmoothZoom){c.jmap.enableContinuousZoom()}if(b.mapEnableGoogleBar){c.jmap.enableGoogleBar()}if(b.mapEnableScaleControl){c.jmap.addControl(new GScaleControl())}if(b.debugMode){console.log(c.jmap)}a.jmap.getMapType();if(typeof e=="function"){return e(c,b)}};a.jmap.addFeed=function(b,d){var b=a.extend({},a.jmap.JFeedDefaults,b);var c=new GGeoXml(b.feedUrl);a.jmap.GMap2.addOverlay(c);if(b.mapCenter[0]&&b.mapCenter[1]){a.jmap.GMap2.setCenter(new GLatLng(b.mapCenter[0],b.mapCenter[1]))}if(typeof d=="function"){return d(c,b)}};a.jmap.addGroundOverlay=function(c,d){var c=a.extend({},a.jmap.JGroundOverlayDefaults,c);var b=new GLatLngBounds(new GLatLng(c.overlaySouthWestBounds[0],c.overlaySouthWestBounds[1]),new GLatLng(c.overlayNorthEastBounds[0],c.overlayNorthEastBounds[1]));a.jmap.GGroundOverlay=new GGroundOverlay(c.overlayImage,b);a.jmap.GMap2.addOverlay(a.jmap.GGroundOverlay);if(typeof d=="function"){return d()}};a.jmap.hideGroundOverlay=function(b){a.jmap.GGroundOverlay.hide();if(typeof b=="function"){return b()}};a.jmap.showGroundOverlay=function(b){isHidden=a.jmap.GGroundOverlay.isHidden();if(isHidden){a.jmap.GGroundOverlay.show()}if(typeof b=="function"){return b()}};a.jmap.addMarker=function(c,e){var c=a.extend({},a.jmap.JMarkerDefaults,c);var b={};if(typeof c.pointIcon=="object"){a.extend(b,{icon:c.pointIcon})}if(c.pointIsDraggable){a.extend(b,{draggable:c.pointIsDraggable})}if(typeof GMarker=="undefined"){return}var d=new GMarker(new GLatLng(c.pointLatLng[0],c.pointLatLng[1]),b);if(c.pointHTML){GEvent.addListener(d,c.pointOpenHTMLEvent,function(){d.openInfoWindowHtml(c.pointHTML,{maxContent:c.pointMaxContent,maxTitle:c.pointMaxTitle})})}if(c.pointIsRemovable){GEvent.addListener(d,c.pointRemoveEvent,function(){a.jmap.GMap2.removeOverlay(d)})}if(a.jmap.GMarkerManager){a.jmap.GMarkerManager.addMarker(d,c.pointMinZoom,c.pointMaxZoom)}else{a.jmap.GMap2.addOverlay(d)}if(typeof e=="function"){return e()}};a.jmap.addScreenOverlay=function(c,d){var c=a.extend({},a.jmap.JScreenOverlayDefaults,c);var b=new GScreenOverlay(c.imageUrl,new GScreenPoint(c.screenXY[0],c.screenXY[1]),new GScreenPoint(c.overlayXY[0],c.overlayXY[1]),new GScreenSize(c.size[0],c.size[1]));a.jmap.GMap2.addOverlay(b);if(typeof d=="function"){return d(b,c)}};a.jmap.addPolygon=function(d,e){var d=a.extend({},a.jmap.JPolygonDefaults,d);b={};if(!d.polygonClickable){var b=a.extend({},b,{clickable:false})}if(d.mapCenter[0]&&d.mapCenter[1]){a.jmap.GMap2.setCenter(new GLatLng(d.mapCenter[0],d.mapCenter[1]))}var c=new GPolygon(d.polygonPoints,d.polygonStrokeColor,d.polygonStrokeWeight,d.polygonStrokeOpacity,d.polygonFillColor,d.polygonFillOpacity,b);a.jmap.GMap2.addOverlay(c);if(typeof e=="function"){return e()}};a.jmap.addPolyline=function(d,e){var d=a.extend({},a.jmap.JPolylineDefaults,d);var b={};if(d.polylineGeodesic){a.extend({},b,{geodesic:true})}if(!d.polylineClickable){a.extend({},b,{clickable:false})}if(d.mapCenter[0]&&d.mapCenter[1]){a.jmap.GMap2.setCenter(new GLatLng(d.mapCenter[0],d.mapCenter[1]))}var c=new GPolyline(d.polylinePoints,d.polylineStrokeColor,d.polylineStrokeWidth,d.polylineStrokeOpacity,b);a.jmap.GMap2.addOverlay(c);if(typeof e=="function"){return e()}};a.jmap.addTrafficInfo=function(b,c){var b=a.extend({},a.jmap.JTrafficDefaults,b);switch(b.method){case"create":a.jmap.GTrafficOverlay=new GTrafficOverlay;a.jmap.GMap2.addOverlay(a.jmap.GTrafficOverlay);if(b.mapCenter[0]&&b.mapCenter[1]){a.jmap.GMap2.setCenter(new GLatLng(b.mapCenter[0],b.mapCenter[1]))}break;case"destroy":a.jmap.GMap2.removeOverlay(a.jmap.GTrafficOverlay);break}if(typeof c=="function"){return c()}};a.jmap.disableTraffic=function(b){a.jmap.GTrafficOverlay.hide();if(typeof b=="function"){return b()}};a.jmap.enableTraffic=function(b){a.jmap.GTrafficOverlay.show();if(typeof b=="function"){return b()}};a.jmap.createAdsManager=function(b,c){var b=a.extend({},a.jmap.JAdsManagerDefaults,b);a.jmap.GAdsManager=new GAdsManager(a.jmap.GMap2,b.publisherId);if(typeof c=="function"){return c()}};a.jmap.hideAds=function(b){a.jmap.GAdsManager.disable();if(typeof b=="function"){return b()}};a.jmap.showAds=function(b){a.jmap.GAdsManager.enable();if(typeof b=="function"){return b()}};a.jmap.createGeoCache=function(b){a.jmap.GGeocodeCache=new GGeocodeCache();if(typeof b=="function"){return b()}};a.jmap.createGeoCoder=function(b,c){if(b){a.jmap.GClientGeocoder=new GClientGeocoder(b)}else{a.jmap.GClientGeocoder=new GClientGeocoder}if(typeof c=="function"){return c()}};a.jmap.createIcon=function(b){var b=a.extend({},a.jmap.JIconDefaults,b);var c=new GIcon(G_DEFAULT_ICON);if(b.iconImage){c.image=b.iconImage}if(b.iconShadow){c.shadow=b.iconShadow}if(b.iconSize){c.iconSize=b.iconSize}if(b.iconShadowSize){c.shadowSize=b.iconShadowSize}if(b.iconAnchor){c.iconAnchor=b.iconAnchor}if(b.iconInfoWindowAnchor){c.infoWindowAnchor=b.iconInfoWindowAnchor}return c};a.jmap.createMarkerManager=function(b,c){var b=a.extend({},a.jmap.JMarkerManagerDefaults,b);a.jmap.GMarkerManager=new GMarkerManager(a.jmap.GMap2,b);if(typeof c=="function"){return c()}};a.jmap.searchAddress=function(b,e){var b=a.extend({},a.jmap.JSearchAddressDefaults,b);var c=a.extend({},a.jmap.JMarkerManagerDefaults);if(typeof a.jmap.GClientGeocoder=="undefined"){var d=new GClientGeocoder}else{var d=a.jmap.GClientGeocoder}d.getLatLng(b.address,function(g){if(!g){}if(typeof e=="function"){return e(b,g)}})};a.jmap.searchDirections=function(c,d){var c=a.extend({},a.jmap.JSearchDirectionsDefaults,c);var b=a("#"+c.directionsPanel).get(0);a.jmap.GDirections=new GDirections(a.jmap.GMap2,b);a.jmap.GDirections.load(c.fromAddress+" to "+c.toAddress);if(typeof d=="function"){return d()}};a.jmap.moveTo=function(c,e){if(typeof GLatLng=="undefined"){return}var c=a.extend({},a.jmap.JMoveToDefaults,c);if(c.mapType){var d=a.jmap._initMapType(c.mapType)}var b=new GLatLng(c.mapCenter[0],c.mapCenter[1]);switch(c.centerMethod){case"normal":a.jmap.GMap2.setCenter(b,c.mapZoom,d);break;case"pan":a.jmap.GMap2.panTo(b);break}if(typeof e=="function"){return e()}};a.jmap.savePosition=function(b,c){var b=a.extend({},a.jmap.JMoveToDefaults,b);if(b.recall){a.jmap.GMap2.returnToSavedPosition()}else{a.jmap.GMap2.savePosition()}if(typeof c=="function"){return c()}};a.jmap.createKeyboardHandler=function(b){a.jmap.keyboardHandler=new GKeyboardHandler(a.jmap.GMap2);if(typeof b=="function"){return b()}};a.jmap.getMapType=function(){var b=a.jmap.GMap2.getMapTypes();var c=a.jmap.GMap2.getCurrentMapType();if(c.Hz){a.jmap.variables.mapType=c.Hz}};a.jmap.getCenter=function(){var b=a.jmap.GMap2.getCenter();a.jmap.variables.mapCenter=b;if(typeof callback=="function"){return callback(b)}};a.jmap.getBounds=function(){var b=a.jmap.GMap2.getBounds();a.jmap.variables.mapBounds=b;if(typeof callback=="function"){return callback(b)}};a.jmap._initMapType=function(b){switch(b){case"map":var c=G_NORMAL_MAP;break;case"sat":var c=G_SATELLITE_MAP;break;case"hybrid":var c=G_HYBRID_MAP;break}return c};a.jmap._initChecks=function(b){if(typeof GBrowserIsCompatible=="undefined"){a(b).text(a.jmap.JErrors[a.jmap.JOptions.language].cannotLoad).css({color:"#f00"});return false}if(!GBrowserIsCompatible()){a(b).text(a.jmap.JErrors[a.jmap.JOptions.language].browserNotCompatible).css({color:"#f00"});return false}};a.jmap.storePoints=function(b,c){a.jmap.store=a.extend({},a.jmap.store,b);if(typeof c=="function"){return c(a.jmap.store)}};a.fn.jmap=function(d,b,c){return this.each(function(){if(d=="init"){new a.jmap.init(this,b,c)}else{if(typeof d=="object"||d==null){new a.jmap.init(this,d,b)}else{if(typeof b=="function"){new a.jmap[d](b)}else{try{new a.jmap[d](b,c)}catch(e){return}}}}})}})(jQuery);Calendar=function(d,b,g,e){this.activeDiv=null;this.currentDateEl=null;this.checkDisabled=null;this.timeout=null;this.onSelected=g||null;this.onClose=e||null;this.dragging=false;this.hidden=false;this.minYear=1970;this.maxYear=2050;this.dateFormat=Calendar._TT.DEF_DATE_FORMAT;this.ttDateFormat=Calendar._TT.TT_DATE_FORMAT;this.isPopup=true;this.weekNumbers=true;this.mondayFirst=d;this.dateStr=b;this.ar_days=null;this.table=null;this.element=null;this.tbody=null;this.firstdayname=null;this.monthsCombo=null;this.yearsCombo=null;this.hilitedMonth=null;this.activeMonth=null;this.hilitedYear=null;this.activeYear=null;if(!Calendar._DN3){var a=new Array();for(var c=8;c>0;){a[--c]=Calendar._DN[c].substr(0,3)}Calendar._DN3=a;a=new Array();for(var c=12;c>0;){a[--c]=Calendar._MN[c].substr(0,3)}Calendar._MN3=a}};Calendar._C=null;Calendar.is_ie=((navigator.userAgent.toLowerCase().indexOf("msie")!=-1)&&(navigator.userAgent.toLowerCase().indexOf("opera")==-1));Calendar._DN3=null;Calendar._MN3=null;Calendar.getAbsolutePos=function(b){var c={x:b.offsetLeft,y:b.offsetTop};if(b.offsetParent){var a=Calendar.getAbsolutePos(b.offsetParent);c.x+=a.x;c.y+=a.y}return c};Calendar.isRelated=function(c,a){var d=a.relatedTarget;if(!d){var b=a.type;if(b=="mouseover"){d=a.fromElement}else{if(b=="mouseout"){d=a.toElement}}}while(d){if(d==c){return true}d=d.parentNode}return false};Calendar.removeClass=function(e,c){if(!(e&&e.className)){return}var a=e.className.split(" ");var b=new Array();for(var d=a.length;d>0;){if(a[--d]!=c){b[b.length]=a[d]}}e.className=b.join(" ")};Calendar.addClass=function(b,a){Calendar.removeClass(b,a);b.className+=" "+a};Calendar.getElement=function(a){if(Calendar.is_ie){return window.event.srcElement}else{return a.currentTarget}};Calendar.getTargetElement=function(a){if(Calendar.is_ie){return window.event.srcElement}else{return a.target}};Calendar.stopEvent=function(a){if(Calendar.is_ie){window.event.cancelBubble=true;window.event.returnValue=false}else{a.preventDefault();a.stopPropagation()}};Calendar.addEvent=function(b,a,c){if(Calendar.is_ie){b.attachEvent("on"+a,c)}else{b.addEventListener(a,c,true)}};Calendar.removeEvent=function(b,a,c){if(Calendar.is_ie){b.detachEvent("on"+a,c)}else{b.removeEventListener(a,c,true)}};Calendar.createElement=function(c,a){var b=null;if(document.createElementNS){b=document.createElementNS("http://www.w3.org/1999/xhtml",c)}else{b=document.createElement(c)}if(typeof a!="undefined"){a.appendChild(b)}return b};Calendar._add_evs=function(el){with(Calendar){addEvent(el,"mouseover",dayMouseOver);addEvent(el,"mousedown",dayMouseDown);addEvent(el,"mouseout",dayMouseOut);if(is_ie){addEvent(el,"dblclick",dayMouseDblClick);el.setAttribute("unselectable",true)}}};Calendar.findMonth=function(a){if(typeof a.month!="undefined"){return a}else{if(typeof a.parentNode.month!="undefined"){return a.parentNode}}return null};Calendar.findYear=function(a){if(typeof a.year!="undefined"){return a}else{if(typeof a.parentNode.year!="undefined"){return a.parentNode}}return null};Calendar.showMonthsCombo=function(){var c=Calendar._C;if(!c){return false}var c=c;var d=c.activeDiv;var b=c.monthsCombo;if(c.hilitedMonth){Calendar.removeClass(c.hilitedMonth,"hilite")}if(c.activeMonth){Calendar.removeClass(c.activeMonth,"active")}var a=c.monthsCombo.getElementsByTagName("div")[c.date.getMonth()];Calendar.addClass(a,"active");c.activeMonth=a;b.style.left=d.offsetLeft+"px";b.style.top=(d.offsetTop+d.offsetHeight)+"px";b.style.display="block"};Calendar.showYearsCombo=function(c){var e=Calendar._C;if(!e){return false}var e=e;var h=e.activeDiv;var k=e.yearsCombo;if(e.hilitedYear){Calendar.removeClass(e.hilitedYear,"hilite")}if(e.activeYear){Calendar.removeClass(e.activeYear,"active")}e.activeYear=null;var g=e.date.getFullYear()+(c?1:-1);var d=k.firstChild;var a=false;for(var b=12;b>0;--b){if(g>=e.minYear&&g<=e.maxYear){d.firstChild.data=g;d.year=g;d.style.display="block";a=true}else{d.style.display="none"}d=d.nextSibling;g+=c?2:-2}if(a){k.style.left=h.offsetLeft+"px";k.style.top=(h.offsetTop+h.offsetHeight)+"px";k.style.display="block"}};Calendar.tableMouseUp=function(ev){var cal=Calendar._C;if(!cal){return false}if(cal.timeout){clearTimeout(cal.timeout)}var el=cal.activeDiv;if(!el){return false}var target=Calendar.getTargetElement(ev);Calendar.removeClass(el,"active");if(target==el||target.parentNode==el){Calendar.cellClick(el)}var mon=Calendar.findMonth(target);var date=null;if(mon){date=new Date(cal.date);if(mon.month!=date.getMonth()){date.setMonth(mon.month);cal.setDate(date)}}else{var year=Calendar.findYear(target);if(year){date=new Date(cal.date);if(year.year!=date.getFullYear()){date.setFullYear(year.year);cal.setDate(date)}}}with(Calendar){removeEvent(document,"mouseup",tableMouseUp);removeEvent(document,"mouseover",tableMouseOver);removeEvent(document,"mousemove",tableMouseOver);cal._hideCombos();stopEvent(ev);_C=null}};Calendar.tableMouseOver=function(d){var e=Calendar._C;if(!e){return}var c=e.activeDiv;var g=Calendar.getTargetElement(d);if(g==c||g.parentNode==c){Calendar.addClass(c,"hilite active");Calendar.addClass(c.parentNode,"rowhilite")}else{Calendar.removeClass(c,"active");Calendar.removeClass(c,"hilite");Calendar.removeClass(c.parentNode,"rowhilite")}var b=Calendar.findMonth(g);if(b){if(b.month!=e.date.getMonth()){if(e.hilitedMonth){Calendar.removeClass(e.hilitedMonth,"hilite")}Calendar.addClass(b,"hilite");e.hilitedMonth=b}else{if(e.hilitedMonth){Calendar.removeClass(e.hilitedMonth,"hilite")}}}else{var a=Calendar.findYear(g);if(a){if(a.year!=e.date.getFullYear()){if(e.hilitedYear){Calendar.removeClass(e.hilitedYear,"hilite")}Calendar.addClass(a,"hilite");e.hilitedYear=a}else{if(e.hilitedYear){Calendar.removeClass(e.hilitedYear,"hilite")}}}}Calendar.stopEvent(d)};Calendar.tableMouseDown=function(a){if(Calendar.getTargetElement(a)==Calendar.getElement(a)){Calendar.stopEvent(a)}};Calendar.calDragIt=function(b){var c=Calendar._C;if(!(c&&c.dragging)){return false}var e;var d;if(Calendar.is_ie){d=window.event.clientY+document.body.scrollTop;e=window.event.clientX+document.body.scrollLeft}else{e=b.pageX;d=b.pageY}c.hideShowCovered();var a=c.element.style;a.left=(e-c.xOffs)+"px";a.top=(d-c.yOffs)+"px";Calendar.stopEvent(b)};Calendar.calDragEnd=function(ev){var cal=Calendar._C;if(!cal){return false}cal.dragging=false;with(Calendar){removeEvent(document,"mousemove",calDragIt);removeEvent(document,"mouseover",stopEvent);removeEvent(document,"mouseup",calDragEnd);tableMouseUp(ev)}cal.hideShowCovered()};Calendar.dayMouseDown=function(ev){var el=Calendar.getElement(ev);if(el.disabled){return false}var cal=el.calendar;cal.activeDiv=el;Calendar._C=cal;if(el.navtype!=300){with(Calendar){addClass(el,"hilite active");addEvent(document,"mouseover",tableMouseOver);addEvent(document,"mousemove",tableMouseOver);addEvent(document,"mouseup",tableMouseUp)}}else{if(cal.isPopup){cal._dragStart(ev)}}Calendar.stopEvent(ev);if(el.navtype==-1||el.navtype==1){cal.timeout=setTimeout("Calendar.showMonthsCombo()",250)}else{if(el.navtype==-2||el.navtype==2){cal.timeout=setTimeout((el.navtype>0)?"Calendar.showYearsCombo(true)":"Calendar.showYearsCombo(false)",250)}else{cal.timeout=null}}};Calendar.dayMouseDblClick=function(a){Calendar.cellClick(Calendar.getElement(a));if(Calendar.is_ie){document.selection.empty()}};Calendar.dayMouseOver=function(ev){var el=Calendar.getElement(ev);if(Calendar.isRelated(el,ev)||Calendar._C||el.disabled){return false}if(el.ttip){if(el.ttip.substr(0,1)=="_"){var date=null;with(el.calendar.date){date=new Date(getFullYear(),getMonth(),el.caldate)}el.ttip=date.print(el.calendar.ttDateFormat)+el.ttip.substr(1)}el.calendar.tooltips.firstChild.data=el.ttip}if(el.navtype!=300){Calendar.addClass(el,"hilite");if(el.caldate){Calendar.addClass(el.parentNode,"rowhilite")}}Calendar.stopEvent(ev)};Calendar.dayMouseOut=function(ev){with(Calendar){var el=getElement(ev);if(isRelated(el,ev)||_C||el.disabled){return false}removeClass(el,"hilite");if(el.caldate){removeClass(el.parentNode,"rowhilite")}el.calendar.tooltips.firstChild.data=_TT.SEL_DATE;stopEvent(ev)}};Calendar.cellClick=function(g){var h=g.calendar;var c=false;var b=false;var a=null;if(typeof g.navtype=="undefined"){Calendar.removeClass(h.currentDateEl,"selected");Calendar.addClass(g,"selected");c=(h.currentDateEl==g);if(!c){h.currentDateEl=g}h.date.setDate(g.caldate);a=h.date;b=true}else{if(g.navtype==200){Calendar.removeClass(g,"hilite");h.callCloseHandler();return}a=(g.navtype==0)?new Date():new Date(h.date);var e=a.getFullYear();var d=a.getMonth();function k(n){var o=a.getDate();var l=a.getMonthDays(n);if(o>l){a.setDate(l)}a.setMonth(n)}switch(g.navtype){case -2:if(e>h.minYear){a.setFullYear(e-1)}break;case -1:if(d>0){k(d-1)}else{if(e-->h.minYear){a.setFullYear(e);k(11)}}break;case 1:if(d<11){k(d+1)}else{if(e<h.maxYear){a.setFullYear(e+1);k(0)}}break;case 2:if(e<h.maxYear){a.setFullYear(e+1)}break;case 100:h.setMondayFirst(!h.mondayFirst);return}if(!a.equalsTo(h.date)){h.setDate(a);b=g.navtype==0}}if(b){h.callHandler()}if(c){Calendar.removeClass(g,"hilite");h.callCloseHandler()}};Calendar.prototype.create=function(o){var p=null;if(!o){p=document.getElementsByTagName("body")[0];this.isPopup=true}else{p=o;this.isPopup=false}this.date=this.dateStr?new Date(this.dateStr):new Date();var r=Calendar.createElement("table");this.table=r;r.cellSpacing=0;r.cellPadding=0;r.calendar=this;Calendar.addEvent(r,"mousedown",Calendar.tableMouseDown);var b=Calendar.createElement("div");this.element=b;b.className="calendar";if(this.isPopup){b.style.position="absolute";b.style.display="none"}b.appendChild(r);var l=Calendar.createElement("thead",r);var n=null;var s=null;var a=this;var e=function(v,u,t){n=Calendar.createElement("td",s);n.colSpan=u;n.className="button";Calendar._add_evs(n);n.calendar=a;n.navtype=t;if(v.substr(0,1)!="&"){n.appendChild(document.createTextNode(v))}else{n.innerHTML=v}return n};s=Calendar.createElement("tr",l);var c=6;(this.isPopup)&&--c;(this.weekNumbers)&&++c;e("-",1,100).ttip=Calendar._TT.TOGGLE;this.title=e("",c,300);this.title.className="title";if(this.isPopup){this.title.ttip=Calendar._TT.DRAG_TO_MOVE;this.title.style.cursor="move";e("&#x00d7;",1,200).ttip=Calendar._TT.CLOSE}s=Calendar.createElement("tr",l);s.className="headrow";this._nav_py=e("&#x00ab;",1,-2);this._nav_py.ttip=Calendar._TT.PREV_YEAR;this._nav_pm=e("&#x2039;",1,-1);this._nav_pm.ttip=Calendar._TT.PREV_MONTH;this._nav_now=e(Calendar._TT.TODAY,this.weekNumbers?4:3,0);this._nav_now.ttip=Calendar._TT.GO_TODAY;this._nav_nm=e("&#x203a;",1,1);this._nav_nm.ttip=Calendar._TT.NEXT_MONTH;this._nav_ny=e("&#x00bb;",1,2);this._nav_ny.ttip=Calendar._TT.NEXT_YEAR;s=Calendar.createElement("tr",l);s.className="daynames";if(this.weekNumbers){n=Calendar.createElement("td",s);n.className="name wn";n.appendChild(document.createTextNode(Calendar._TT.WK))}for(var k=7;k>0;--k){n=Calendar.createElement("td",s);n.appendChild(document.createTextNode(""));if(!k){n.navtype=100;n.calendar=this;Calendar._add_evs(n)}}this.firstdayname=(this.weekNumbers)?s.firstChild.nextSibling:s.firstChild;this._displayWeekdays();var h=Calendar.createElement("tbody",r);this.tbody=h;for(k=6;k>0;--k){s=Calendar.createElement("tr",h);if(this.weekNumbers){n=Calendar.createElement("td",s);n.appendChild(document.createTextNode(""))}for(var g=7;g>0;--g){n=Calendar.createElement("td",s);n.appendChild(document.createTextNode(""));n.calendar=this;Calendar._add_evs(n)}}var m=Calendar.createElement("tfoot",r);s=Calendar.createElement("tr",m);s.className="footrow";n=e(Calendar._TT.SEL_DATE,this.weekNumbers?8:7,300);n.className="ttip";if(this.isPopup){n.ttip=Calendar._TT.DRAG_TO_MOVE;n.style.cursor="move"}this.tooltips=n;b=Calendar.createElement("div",this.element);this.monthsCombo=b;b.className="combo";for(k=0;k<Calendar._MN.length;++k){var d=Calendar.createElement("div");d.className="label";d.month=k;d.appendChild(document.createTextNode(Calendar._MN3[k]));b.appendChild(d)}b=Calendar.createElement("div",this.element);this.yearsCombo=b;b.className="combo";for(k=12;k>0;--k){var q=Calendar.createElement("div");q.className="label";q.appendChild(document.createTextNode(""));b.appendChild(q)}this._init(this.mondayFirst,this.date);p.appendChild(this.element)};Calendar._keyEvent=function(e){if(!window.calendar){return false}(Calendar.is_ie)&&(e=window.event);var h=window.calendar;var a=(Calendar.is_ie||e.type=="keypress");if(e.ctrlKey){switch(e.keyCode){case 37:a&&Calendar.cellClick(h._nav_pm);break;case 38:a&&Calendar.cellClick(h._nav_py);break;case 39:a&&Calendar.cellClick(h._nav_nm);break;case 40:a&&Calendar.cellClick(h._nav_ny);break;default:return false}}else{switch(e.keyCode){case 32:Calendar.cellClick(h._nav_now);break;case 27:a&&h.hide();break;case 37:case 38:case 39:case 40:if(a){var b=h.date.getDate()-1;var c=h.currentDateEl;var g=null;var d=(e.keyCode==37)||(e.keyCode==38);switch(e.keyCode){case 37:(--b>=0)&&(g=h.ar_days[b]);break;case 38:b-=7;(b>=0)&&(g=h.ar_days[b]);break;case 39:(++b<h.ar_days.length)&&(g=h.ar_days[b]);break;case 40:b+=7;(b<h.ar_days.length)&&(g=h.ar_days[b]);break}if(!g){if(d){Calendar.cellClick(h._nav_pm)}else{Calendar.cellClick(h._nav_nm)}b=(d)?h.date.getMonthDays():1;c=h.currentDateEl;g=h.ar_days[b-1]}Calendar.removeClass(c,"selected");Calendar.addClass(g,"selected");h.date.setDate(g.caldate);h.currentDateEl=g}break;case 13:if(a){h.callHandler();h.hide()}break;default:return false}}Calendar.stopEvent(e)};Calendar.prototype._init=function(g,t){var r=new Date();var k=t.getFullYear();if(k<this.minYear){k=this.minYear;t.setFullYear(k)}else{if(k>this.maxYear){k=this.maxYear;t.setFullYear(k)}}this.mondayFirst=g;this.date=new Date(t);var u=t.getMonth();var x=t.getDate();var v=t.getMonthDays();t.setDate(1);var l=t.getDay();var q=g?1:0;var c=g?5:6;var b=g?6:0;if(g){l=(l>0)?(l-1):6}var e=1;var d=this.tbody.firstChild;var m=Calendar._MN3[u];var h=((r.getFullYear()==k)&&(r.getMonth()==u));var n=r.getDate();var w=t.getWeekNumber();var s=new Array();for(var p=0;p<6;++p){if(e>v){d.className="emptyrow";d=d.nextSibling;continue}var a=d.firstChild;if(this.weekNumbers){a.className="day wn";a.firstChild.data=w;a=a.nextSibling}++w;d.className="daysrow";for(var o=0;o<7;++o){a.className="day";if((!p&&o<l)||e>v){a.innerHTML="&nbsp;";a.disabled=true;a=a.nextSibling;continue}a.disabled=false;a.firstChild.data=e;if(typeof this.checkDisabled=="function"){t.setDate(e);if(this.checkDisabled(t)){a.className+=" disabled";a.disabled=true}}if(!a.disabled){s[s.length]=a;a.caldate=e;a.ttip="_";if(e==x){a.className+=" selected";this.currentDateEl=a}if(h&&(e==n)){a.className+=" today";a.ttip+=Calendar._TT.PART_TODAY}if(l==c||l==b){a.className+=" weekend"}}++e;((++l)^7)||(l=0);a=a.nextSibling}d=d.nextSibling}this.ar_days=s;this.title.firstChild.data=Calendar._MN[u]+", "+k};Calendar.prototype.setDate=function(a){if(!a.equalsTo(this.date)){this._init(this.mondayFirst,a)}};Calendar.prototype.setMondayFirst=function(a){this._init(a,this.date);this._displayWeekdays()};Calendar.prototype.setDisabledHandler=function(a){this.checkDisabled=a};Calendar.prototype.setRange=function(b,c){this.minYear=b;this.maxYear=c};Calendar.prototype.callHandler=function(){if(this.onSelected){this.onSelected(this,this.date.print(this.dateFormat))}};Calendar.prototype.callCloseHandler=function(){if(this.onClose){this.onClose(this)}this.hideShowCovered()};Calendar.prototype.destroy=function(){var a=this.element.parentNode;a.removeChild(this.element);Calendar._C=null;delete a};Calendar.prototype.reparent=function(b){var a=this.element;a.parentNode.removeChild(a);b.appendChild(a)};Calendar._checkCalendar=function(b){if(!window.calendar){return false}var a=Calendar.is_ie?Calendar.getElement(b):Calendar.getTargetElement(b);for(;a!=null&&a!=calendar.element;a=a.parentNode){}if(a==null){window.calendar.callCloseHandler();Calendar.stopEvent(b)}};Calendar.prototype.show=function(){var e=this.table.getElementsByTagName("tr");for(var d=e.length;d>0;){var g=e[--d];Calendar.removeClass(g,"rowhilite");var c=g.getElementsByTagName("td");for(var b=c.length;b>0;){var a=c[--b];Calendar.removeClass(a,"hilite");Calendar.removeClass(a,"active")}}this.element.style.display="block";this.hidden=false;if(this.isPopup){window.calendar=this;Calendar.addEvent(document,"keydown",Calendar._keyEvent);Calendar.addEvent(document,"keypress",Calendar._keyEvent);Calendar.addEvent(document,"mousedown",Calendar._checkCalendar)}this.hideShowCovered()};Calendar.prototype.hide=function(){if(this.isPopup){Calendar.removeEvent(document,"keydown",Calendar._keyEvent);Calendar.removeEvent(document,"keypress",Calendar._keyEvent);Calendar.removeEvent(document,"mousedown",Calendar._checkCalendar)}this.element.style.display="none";this.hidden=true;this.hideShowCovered()};Calendar.prototype.showAt=function(a,c){var b=this.element.style;b.left=a+"px";b.top=c+"px";this.show()};Calendar.prototype.showAtElement=function(a){var b=Calendar.getAbsolutePos(a);this.showAt(b.x,b.y+a.offsetHeight)};Calendar.prototype.setDateFormat=function(a){this.dateFormat=a};Calendar.prototype.setTtDateFormat=function(a){this.ttDateFormat=a};Calendar.prototype.parseDate=function(n,c){var p=0;var e=-1;var k=0;var q=n.split(/\W+/);if(!c){c=this.dateFormat}var o=c.split(/\W+/);var h=0,g=0;for(h=0;h<q.length;++h){if(o[h]=="D"||o[h]=="DD"){continue}if(o[h]=="d"||o[h]=="dd"){k=parseInt(q[h],10)}if(o[h]=="m"||o[h]=="mm"){e=parseInt(q[h],10)-1}if(o[h]=="y"){p=parseInt(q[h],10)}if(o[h]=="yy"){p=parseInt(q[h],10)+1900}if(o[h]=="M"||o[h]=="MM"){for(g=0;g<12;++g){if(Calendar._MN[g].substr(0,q[h].length).toLowerCase()==q[h].toLowerCase()){e=g;break}}}}if(p!=0&&e!=-1&&k!=0){this.setDate(new Date(p,e,k));return}p=0;e=-1;k=0;for(h=0;h<q.length;++h){if(q[h].search(/[a-zA-Z]+/)!=-1){var r=-1;for(g=0;g<12;++g){if(Calendar._MN[g].substr(0,q[h].length).toLowerCase()==q[h].toLowerCase()){r=g;break}}if(r!=-1){if(e!=-1){k=e+1}e=r}}else{if(parseInt(q[h],10)<=12&&e==-1){e=q[h]-1}else{if(parseInt(q[h],10)>31&&p==0){p=q[h]}else{if(k==0){k=q[h]}}}}}if(p==0){var l=new Date();p=l.getFullYear()}if(e!=-1&&k!=0){this.setDate(new Date(p,e,k))}};Calendar.prototype.hideShowCovered=function(){var t=new Array("applet","iframe","select");var b=this.element;var a=Calendar.getAbsolutePos(b);var e=a.x;var c=b.offsetWidth+e;var s=a.y;var r=b.offsetHeight+s;for(var h=t.length;h>0;){var g=document.getElementsByTagName(t[--h]);var d=null;for(var m=g.length;m>0;){d=g[--m];a=Calendar.getAbsolutePos(d);var q=a.x;var o=d.offsetWidth+q;var n=a.y;var l=d.offsetHeight+n;if(this.hidden||(q>c)||(o<e)||(n>r)||(l<s)){d.style.visibility="visible"}else{d.style.visibility="hidden"}}}};Calendar.prototype._displayWeekdays=function(){var c=this.mondayFirst?0:1;var b=this.mondayFirst?6:0;var e=this.mondayFirst?5:6;var a=this.firstdayname;for(var d=0;d<7;++d){a.className="day name";if(!d){a.ttip=this.mondayFirst?Calendar._TT.SUN_FIRST:Calendar._TT.MON_FIRST;a.navtype=100;a.calendar=this;Calendar._add_evs(a)}if(d==b||d==e){Calendar.addClass(a,"weekend")}a.firstChild.data=Calendar._DN3[d+1-c];a=a.nextSibling}};Calendar.prototype._hideCombos=function(){this.monthsCombo.style.display="none";this.yearsCombo.style.display="none"};Calendar.prototype._dragStart=function(ev){if(this.dragging){return}this.dragging=true;var posX;var posY;if(Calendar.is_ie){posY=window.event.clientY+document.body.scrollTop;posX=window.event.clientX+document.body.scrollLeft}else{posY=ev.clientY+window.scrollY;posX=ev.clientX+window.scrollX}var st=this.element.style;this.xOffs=posX-parseInt(st.left);this.yOffs=posY-parseInt(st.top);with(Calendar){addEvent(document,"mousemove",calDragIt);addEvent(document,"mouseover",stopEvent);addEvent(document,"mouseup",calDragEnd)}};Date._MD=new Array(31,28,31,30,31,30,31,31,30,31,30,31);Date.SECOND=1000;Date.MINUTE=60*Date.SECOND;Date.HOUR=60*Date.MINUTE;Date.DAY=24*Date.HOUR;Date.WEEK=7*Date.DAY;Date.prototype.getMonthDays=function(b){var a=this.getFullYear();if(typeof b=="undefined"){b=this.getMonth()}if(((0==(a%4))&&((0!=(a%100))||(0==(a%400))))&&b==1){return 29}else{return Date._MD[b]}};Date.prototype.getWeekNumber=function(){var b=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var d=new Date(this.getFullYear(),0,1,0,0,0);var c=b-d;var a=d.getDay();(a>3)&&(a-=4)||(a+=3);return Math.round(((c/Date.DAY)+a)/7)};Date.prototype.equalsTo=function(a){return((this.getFullYear()==a.getFullYear())&&(this.getMonth()==a.getMonth())&&(this.getDate()==a.getDate()))};Date.prototype.print=function(frm){var str=new String(frm);var m=this.getMonth();var d=this.getDate();var y=this.getFullYear();var wn=this.getWeekNumber();var w=this.getDay();var s=new Array();s.d=d;s.dd=(d<10)?("0"+d):d;s.m=1+m;s.mm=(m<9)?("0"+(1+m)):(1+m);s.y=y;s.yy=new String(y).substr(2,2);s.w=wn;s.ww=(wn<10)?("0"+wn):wn;with(Calendar){s.D=_DN3[w];s.DD=_DN[w];s.M=_MN3[m];s.MM=_MN[m]}var re=/(.*)(\W|^)(d|dd|m|mm|y|yy|MM|M|DD|D|w|ww)(\W|$)(.*)/;while(re.exec(str)!=null){str=RegExp.$1+RegExp.$2+s[RegExp.$3]+RegExp.$4+RegExp.$5}return str};window.calendar=null;Calendar._DN=new Array("Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela");Calendar._MN=new Array("Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień");Calendar._TT=new Array();Calendar._TT.TOGGLE="Zmień pierwszy dzień tygodnia";Calendar._TT.PREV_YEAR="Poprzedni rok (menu)";Calendar._TT.PREV_MONTH="Poprzedni miesiąc menu";Calendar._TT.GO_TODAY="Skocz do dzisiaj";Calendar._TT.NEXT_MONTH="Następny miesiąc (menu)";Calendar._TT.NEXT_YEAR="Następny rok (menu)";Calendar._TT.SEL_DATE="Wybierz datę";Calendar._TT.DRAG_TO_MOVE="Przeciągnij";Calendar._TT.PART_TODAY=" (dzisiaj)";Calendar._TT.MON_FIRST="Wyświtlaj poniedziałek jako pierwszy";Calendar._TT.SUN_FIRST="Wyświetlaj niedzielę jako pierwszą";Calendar._TT.CLOSE="Zamknij";Calendar._TT.TODAY="Dzisiaj";Calendar._TT.DEF_DATE_FORMAT="y-mm-dd";Calendar._TT.TT_DATE_FORMAT="D, M d";Calendar._TT.WK="tyd";(function(c){var b=null,a={},g=null,e=null,d={sourceType:"attribute",source:"title",activateOn:"hover",insertInto:"body",addClass:"levitip",topOffset:10,leftOffset:10,closeDelay:100,dropShadow:true,useHoverIntent:true,hiSensitivity:7,hiInterval:50,onOpen:function(){},onClose:function(){}};c.extend({LeviTip:function(k,h){this.init(k,h)}});c.extend(c.LeviTip,{addSourceHandler:function(h){if(h.get&&h.type){a[h.type]=h}},closeLeviTip:function(){if(b){b.close()}},setDefaults:function(h){c.extend(d,h)},prototype:{init:function(m,k){if(!m){return}this.settings=c.extend({},d,k);this.target=m;this.timer=this.tipHover=false;this.handler=a[this.settings.sourceType]||0;this.pos={cx:0,cy:0,px:0,py:0};var h=this,l=(this.settings.activateOn=="hover"?function(n){if(h.settings.activateOn=="hover"){h.hoverIn(n)}}:function(){});if(!g){e=c('<div class="innerbox"></div>');g=c('<div><div class="shadowbox1"></div><div class="shadowbox2"></div><div class="shadowbox3"></div></div>').append(e);g.css({position:"absolute",display:"none"}).addClass("levitipouter").appendTo("body");if(c.browser.msie&&(!c.browser.version||parseInt(c.browser.version)<=6)&&c.fn.bgiframe){g.bgiframe()}}if(!this.handler){return}if(this.handler.prepare){this.handler.prepare(this)}if(c.fn.hoverIntent&&this.settings.useHoverIntent){c(m).hoverIntent({interval:this.settings.hiInterval,sensitivity:this.settings.hiSensitivity,over:l,out:function(){h.hoverOut()},timeout:0})}else{c(m).hover(l,function(){h.hoverOut()})}if(this.settings.activateOn=="click"){c(m).click(function(n){h.hoverIn(n)})}},hoverIn:function(m){if(b){if(b==this){if(this.timer){clearTimeout(this.timer)}return}else{b.close();b=null}}var l=(this.settings.insertInto=="target")?this.target:(this.settings.insertInto=="body")?"body":this.settings.insertInto;g.appendTo(l).css({visibility:"hidden",display:"block"});var k=this.handler.get(this);if(!k){return}e.html(k).children().show();if(this.settings.addClass){e.addClass(this.settings.addClass)}if(this.settings.dropShadow){g.addClass("outerbox")}this.pos={cx:m.clientX,cy:m.clientY,px:m.pageX,py:m.pageY};this.setPosition();g.css({display:"none",visibility:""}).show();b=this;if(this.settings.insertInto=="body"){var h=this;g.hover(function(n){h.tipHoverIn(n)},function(){h.tipHoverOut()})}if(this.settings.onOpen){this.settings.onOpen(g,this.target)}},hoverOut:function(){var h=this;this.timer=setTimeout(function(){if(!h.tipHover){h.close()}},this.settings.closeDelay)},tipHoverIn:function(){this.tipHover=true},tipHoverOut:function(){this.tipHover=false;this.hoverOut()},setPosition:function(){var p,p,m=c(window).width(),k=c(window).height(),o,n;o=g.offsetParent();n=(this.settings.insertInto=="body")?{left:0,top:0,scrollLeft:0,scrollTop:0}:o.offset();if(this.settings.insertInto=="target"&&o.css("position")=="fixed"){posX=this.pos.cx;p=this.pos.cy}else{posX=this.pos.px;p=this.pos.py}posX+=this.settings.leftOffset-n.left-n.scrollLeft;p+=this.settings.topOffset-n.top-n.scrollTop;if(m<this.pos.cx+g[0].clientWidth+this.settings.leftOffset){var l=c(window).scrollLeft();posX-=g[0].clientWidth+this.settings.leftOffset*2;if(n.left-l+posX<0){posX-=n.left-l+posX}}if(k<this.pos.cy+g[0].clientHeight+this.settings.topOffset){var h=c(window).scrollTop();p-=g[0].clientHeight+this.settings.topOffset*2;if(n.top-h+p<0){p-=n.top-h+p}}g.css({left:posX,top:p})},close:function(){if(this.timer){clearTimeout(this.timer)}g.hide().unbind("mouseover").unbind("mouseout").css({left:0,top:0}).removeClass("outerbox");if(this.settings.addClass){e.removeClass(this.settings.addClass)}b=false;if(this.handler.end){this.handler.end(this)}if(this.settings.onClose){this.settings.onClose(g,this.target)}}}});c.fn.extend({leviTip:function(h){return this.each(function(){new c.LeviTip(this,h)})}});c.LeviTip.addSourceHandler({type:"attribute",get:function(k){var h=c(k.target).attr(k.settings.source);if(k.settings.source=="title"){k.titleAttr=h;c(k.target).attr("title","")}return h},end:function(h){if(h.settings.source=="title"&&h.titleAttr){c(h.target).attr("title",h.titleAttr)}}});c.LeviTip.addSourceHandler({type:"element",prepare:function(h){if(h.settings.hideSourceElement){c(h.settings.source).hide()}},get:function(h){var k=[];if(h.settings.source){k=c(h.settings.source);if(k.length){k=k.clone(true).show()}}return k}});c.LeviTip.addSourceHandler({type:"firstchild",prepare:function(h){if(h.settings.hideSourceElement){c(h.target.firstChild).hide()}},get:function(h){var k=c(h.target.firstChild);if(k.length){k=k.clone(true).show()}return k}})})(jQuery);(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:".",debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms")}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s)}else{alert(s)}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug=""}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter)}else{if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter)}}if(!p){p=detectParserForColumn(table,cells[i])}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n"}list.push(p)}}if(table.config.debug){log(parsersDebug)}return list}function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i<l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i]}}return parsers[0]}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i]}}return false}function buildCache(table){if(table.config.debug){var cacheTime=new Date()}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]))}cols.push(i);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime)}return cache}function getElementText(config,node){if(!node){return""}var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML}else{t=node.innerHTML}}else{if(typeof(config.textExtraction)=="function"){t=config.textExtraction(node)}else{t=$(node).text()}}return t}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j<l;j++){tableBody[0].appendChild(o[j])}}}if(table.config.appender){table.config.appender(table,rows)}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime)}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd")},0)}function buildHeaders(table){if(table.config.debug){var time=new Date()}var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++){tableHeadersRows[i]=0}$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(!this.sortDisabled){$(this).addClass(table.config.cssHeader)}table.config.headerList[index]=this});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders)}return $tableHeaders}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell)}}}return arr}function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true}return false}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true}return false}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table)}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i]}}}function formatSortingOrder(v){if(typeof(v)!="Number"){i=(v.toLowerCase()=="desc")?1:0}else{i=(v==(0||1))?v:0}return i}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true}}return false}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this)}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]])}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$("<colgroup>");$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($("<col>").css("width",$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date()}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc");var e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { "}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; "}dynamicExp+="return 0; ";dynamicExp+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime)}return cache}function sortText(a,b){return((a<b)?-1:((a>b)?1:0))}function sortTextDesc(a,b){return((b<a)?-1:((b>a)?1:0))}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}function getCachedSortType(parsers,i){return parsers[i].type}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return}var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j])}}}config.sortList.push([i,this.order])}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else{config.sortList.push([i,this.order])}}setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache))},1);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind("update",function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this)}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind("appendCache",function(){appendToTable(this,cache)}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this)}).bind("applyWidgets",function(){applyWidget(this)});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false}}if(a){parsers.push(parser)}};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.isDigit=function(s,config){var DECIMAL="\\"+config.decimal;var exp="/(^[+]?0("+DECIMAL+"0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)"+DECIMAL+"(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*"+DECIMAL+"0+$)/";return RegExp(exp).test($.trim(s))};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild){this.removeChild(this.firstChild)}}empty.apply(table.tBodies[0])}else{table.tBodies[0].innerHTML=""}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true},format:function(s){return $.trim(s.toLowerCase())},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""))},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""))},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2")}else{if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else{if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime())},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?"sortValue":c.parserMetadataName;return $(cell).metadata()[p]},type:"numeric"});ts.addParser({id:"polskie",is:function(s){return false},format:function(s){return s.toLowerCase().replace(/ą/,"azz").replace(/ć/,"czz").replace(/ę/,"ezz").replace(/ł/,"lzz").replace(/ń/,"nzz").replace(/ó/,"ozz").replace(/ś/,"szz").replace(/ż/,"zzz").replace(/ź/,"zzzz")},type:"text"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date()}$("tr:visible",table.tBodies[0]).filter(":even").removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(":odd").removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time)}}})})(jQuery);var tb_pathToImage="smarty/templates/"+defaultLayout+"/images/loadingAnimation.gif";
/*!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image();imgLoader.src=tb_pathToImage});function tb_init(a){$(a).click(function(){var c=this.title||this.name||null;var b=this.href||this.alt;var d=this.rel||false;tb_show(c,b,d);this.blur();return false})}function tb_show(n,a,b){$("#sendmailResult").empty();try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay").addClass("TB_overlayBG")}if(n===null){n=""}$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var k;if(a.indexOf("?")!==-1){k=a.substr(0,a.indexOf("?"))}else{k=a}var g=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var m=k.toLowerCase().match(g);if(m==".jpg"||m==".jpeg"||m==".png"||m==".gif"||m==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(b){TB_TempArray=$("a[@rel="+b+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var c=TB_TempArray[TB_Counter].href.toLowerCase().match(g);if(!(TB_TempArray[TB_Counter].href==a)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var r=tb_getPageSize();var p=r[0]-150;var t=r[1]-150;var s=imgPreloader.width;var o=imgPreloader.height;if(s>p){o=o*(p/s);s=p;if(o>t){s=s*(t/o);o=t}}else{if(o>t){s=s*(t/o);o=t;if(s>p){o=o*(p/s);s=p}}}TB_WIDTH=s+30;TB_HEIGHT=o+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+a+"' width='"+s+"' height='"+o+"' alt='"+n+"'/></a><div id='TB_caption'>"+n+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function e(){if($(document).unbind("click",e)){$(document).unbind("click",e)}$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,b);return false}$("#TB_prev").click(e)}if(!(TB_NextHTML==="")){function q(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,b);return false}$("#TB_next").click(q)}document.onkeydown=function(u){if(u==null){keycode=event.keyCode}else{keycode=u.which}if(keycode==27){tb_remove()}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";q()}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";e()}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=a}else{var l=a.replace(/^[^\?]+\??/,"");var d=tb_parseQuery(l);TB_WIDTH=(d.width*1)+30||630;TB_HEIGHT=(d.height*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(a.indexOf("TB_iframe")!=-1){urlNoQuery=a.split("TB_");$("#TB_iframeContent").remove();if(d.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else{if($("#TB_window").css("display")!="block"){if(d.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><img src='smarty/templates/"+defaultLayout+"/images/close.jpg' /></a></div><div id='TB_ajaxWindowTitle'>"+n+"</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(n)}}$("#TB_closeWindowButton").click(tb_remove);if(a.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+d.inlineId).children());$("#TB_window").unload(function(){$("#"+d.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else{if(a.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else{$("#TB_ajaxContent").load(a+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}}}if(!d.modal){document.onkeyup=function(o){if(o==null){keycode=event.keyCode}else{keycode=o.which}if(keycode==27){tb_remove()}}}}catch(h){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"})}}function tb_parseQuery(d){var h={};if(!d){return h}var a=d.split(/[;&]/);for(var c=0;c<a.length;c++){var e=a[c].split("=");if(!e||e.length!=2){continue}var b=unescape(e[0]);var g=unescape(e[1]);g=g.replace(/\+/g," ");h[b]=g}return h}function tb_getPageSize(){var c=document.documentElement;var a=window.innerWidth||self.innerWidth||(c&&c.clientWidth)||document.body.clientWidth;var b=window.innerHeight||self.innerHeight||(c&&c.clientHeight)||document.body.clientHeight;arrayPageSize=[a,b];return arrayPageSize}function tb_detectMacXFF(){var a=navigator.userAgent.toLowerCase();if(a.indexOf("mac")!=-1&&a.indexOf("firefox")!=-1){return true}}(function(a){a.browserTest=function(e,h){var g="unknown",d="X",b=function(m,l){for(var c=0;c<l.length;c=c+1){m=m.replace(l[c][0],l[c][1])}return m},k=function(n,m,l,p){var o={name:b((m.exec(n)||[g,g])[1],l)};o[o.name]=true;o.version=(p.exec(n)||[d,d,d,d])[3];if(o.name.match(/safari/)&&o.version>400){o.version="2.0"}if(o.name==="presto"){o.version=(a.browser.version>9.27)?"futhark":"linear_b"}o.versionNumber=parseFloat(o.version,10)||0;o.versionX=(o.version!==d)?(o.version+"").substr(0,1):d;o.className=o.name+o.versionX;return o};e=(e.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?b(e,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,""],["Chrome Safari","Chrome"],["KHTML","Konqueror"],["Minefield","Firefox"],["Navigator","Netscape"]]):e).toLowerCase();a.browser=a.extend((!h)?a.browser:{},k(e,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));a.layout=k(e,/(gecko|konqueror|msie|opera|webkit)/,[["konqueror","khtml"],["msie","trident"],["opera","presto"]],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);a.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[g])[0].replace("sunos","solaris")};if(!h){a("html").addClass([a.os.name,a.browser.name,a.browser.className,a.layout.name,a.layout.className].join(" "))}};a.browserTest(navigator.userAgent)})(jQuery);(function(c){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var d=function(e){e=e.replace(/\x0d\x0a/g,"\x0a");var g="";for(var k=0;k<e.length;k++){var h=e.charCodeAt(k);if(h<128){g+=String.fromCharCode(h)}else{if((h>127)&&(h<2048)){g+=String.fromCharCode((h>>6)|192);g+=String.fromCharCode((h&63)|128)}else{g+=String.fromCharCode((h>>12)|224);g+=String.fromCharCode(((h>>6)&63)|128);g+=String.fromCharCode((h&63)|128)}}}return g};var b=function(e){var h="";var g=0;var k=c1=c2=0;while(g<e.length){k=e.charCodeAt(g);if(k<128){h+=String.fromCharCode(k);g++}else{if((k>191)&&(k<224)){c2=e.charCodeAt(g+1);h+=String.fromCharCode(((k&31)<<6)|(c2&63));g+=2}else{c2=e.charCodeAt(g+1);c3=e.charCodeAt(g+2);h+=String.fromCharCode(((k&15)<<12)|((c2&63)<<6)|(c3&63));g+=3}}}return h};c.extend({base64Encode:function(h){var g="";var p,n,l,q,o,m,k;var e=0;h=d(h);while(e<h.length){p=h.charCodeAt(e++);n=h.charCodeAt(e++);l=h.charCodeAt(e++);q=p>>2;o=((p&3)<<4)|(n>>4);m=((n&15)<<2)|(l>>6);k=l&63;if(isNaN(n)){m=k=64}else{if(isNaN(l)){k=64}}g=g+a.charAt(q)+a.charAt(o)+a.charAt(m)+a.charAt(k)}return g},base64Decode:function(h){var g="";var p,n,l;var q,o,m,k;var e=0;h=h.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(e<h.length){q=a.indexOf(h.charAt(e++));o=a.indexOf(h.charAt(e++));m=a.indexOf(h.charAt(e++));k=a.indexOf(h.charAt(e++));p=(q<<2)|(o>>4);n=((o&15)<<4)|(m>>2);l=((m&3)<<6)|k;g=g+String.fromCharCode(p);if(m!=64){g=g+String.fromCharCode(n)}if(k!=64){g=g+String.fromCharCode(l)}}g=b(g);return g}})})(jQuery);(function(g){g.tools=g.tools||{version:{}};g.tools.version.tooltip="1.0.2";var d={toggle:[function(){this.getTip().show();this.getTip().css({visibility:"visible"})},function(){this.getTip().hide();this.getTip().css({visibility:"hidden"})}],fade:[function(){this.getTip().fadeIn(this.getConf().fadeInSpeed)},function(){this.getTip().fadeOut(this.getConf().fadeOutSpeed)}]};g.tools.addTipEffect=function(c,a,b){d[c]=[a,b]};g.tools.addTipEffect("slideup",function(){var b=this.getConf();var a=b.slideOffset||10;this.getTip().css({opacity:0}).animate({top:"-="+a,opacity:b.opacity},b.slideInSpeed||200).show()},function(){var b=this.getConf();var a=b.slideOffset||10;this.getTip().animate({top:"-="+a,opacity:0},b.slideOutSpeed||200,function(){g(this).hide().animate({top:"+="+(a*2)},0)})});function e(l,m){var n=this;var c=l.next();if(m.tip){if(m.tip.indexOf("#")!=-1){c=g(m.tip)}else{c=l.nextAll(m.tip).eq(0);if(!c.length){c=l.parent().nextAll(m.tip).eq(0)}}}function a(o,h){g(n).bind(o,function(q,p){if(h&&h.call(this)===false&&p){p.proceed=false}});return n}g.each(m,function(o,h){if(g.isFunction(h)){a(o,h)}});var k=l.is("input, textarea");l.bind("mouseover",function(h){h.target=this;n.show(h);c.hover(function(){n.show()},function(){n.hide()})});l.bind("mouseout",function(){n.hide()});c.css("opacity",m.opacity);var b=0;g.extend(n,{show:function(u){if(u){l=g(u.target)}clearTimeout(b);if(c.is(":animated")||c.is(":visible")){return n}var v={proceed:true};g(n).trigger("onBeforeShow",v);if(!v.proceed){return n}var w=l.position().top-c.outerHeight();var s=c.outerHeight()+l.outerHeight();var t=m.position[0];if(t=="center"){w+=s/2}if(t=="bottom"){w+=s}var p=l.outerWidth()+c.outerWidth();var h=l.position().left+l.outerWidth();t=m.position[1];if(t=="center"){h-=p/2}if(t=="left"){h-=p}w+=m.offset[0];h+=m.offset[1];c.css({position:"absolute",top:w,left:h});d[m.effect][0].call(n);g(n).trigger("onShow");return n},hide:function(){clearTimeout(b);b=setTimeout(function(){if(!c.is(":visible")){return n}var h={proceed:true};g(n).trigger("onBeforeHide",h);if(!h.proceed){return n}d[m.effect][1].call(n);g(n).trigger("onHide")},m.delay||1);return n},isShown:function(){return c.is(":visible, :animated")},getConf:function(){return m},getTip:function(){return c},getTrigger:function(){return l},onBeforeShow:function(h){return a("onBeforeShow",h)},onShow:function(h){return a("onShow",h)},onBeforeHide:function(h){return a("onBeforeHide",h)},onHide:function(h){return a("onHide",h)}})}g.prototype.tooltip=function(c){var b=this.eq(typeof c=="number"?c:0).data("tooltip");if(b){return b}var a={tip:null,effect:"slideup",delay:30,opacity:1,position:["top","center"],offset:[0,0],api:false};if(g.isFunction(c)){c={onBeforeShow:c}}g.extend(a,c);this.each(function(){b=new e(g(this),a);g(this).data("tooltip",b)});return a.api?b:this}})(jQuery);(function(c){var a=c.scrollTo=function(d,g,h){c(window).scrollTo(d,g,h)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var d=this,g=!d.nodeName||c.inArray(d.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!g){return d}var h=(d.contentWindow||d).document||d.ownerDocument||d;return c.browser.safari||h.compatMode=="BackCompat"?h.body:h.documentElement})};c.fn.scrollTo=function(g,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(g=="max"){g=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var p=this,n=c(p),o=g,l,m={},h=n.is("html,body");switch(typeof o){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(o)){o=b(o);break}o=c(o,this);case"object":if(o.is||o.style){l=(o=c(o)).offset()}}c.each(d.axis.split(""),function(s,t){var v=t=="x"?"Left":"Top",u=v.toLowerCase(),x="scroll"+v,r=p[x],q=a.max(p,t);if(l){m[x]=l[u]+(h?0:r-n.offset()[u]);if(d.margin){m[x]-=parseInt(o.css("margin"+v))||0;m[x]-=parseInt(o.css("border"+v+"Width"))||0}m[x]+=d.offset[u]||0;if(d.over[u]){m[x]+=o[t=="x"?"width":"height"]()*d.over[u]}}else{var w=o[u];m[x]=w.slice&&w.slice(-1)=="%"?parseFloat(w)/100*q:w}if(/^\d+$/.test(m[x])){m[x]=m[x]<=0?0:Math.min(m[x],q)}if(!s&&d.queue){if(r!=m[x]){k(d.onAfterFirst)}delete m[x]}});k(d.onAfter);function k(q){n.animate(m,e,d.easing,q&&function(){q.call(this,g,d)})}}).end()};a.max=function(k,n){var p=n=="x"?"Width":"Height",o="scroll"+p;if(!c(k).is("html,body")){return k[o]-c(k)[p.toLowerCase()]()}var q="client"+p,g=k.ownerDocument.documentElement,d=k.ownerDocument.body;return Math.max(g[o],d[o])-Math.min(g[q],d[q])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);
/*
 * Ext JS Library 3.3.1
 * Copyright(c) 2006-2010 Sencha Inc.
 * licensing@sencha.com
 * http://www.sencha.com/license
 */
window.undefined=window.undefined;Ext={version:"3.3.1",versionDetail:{major:3,minor:3,patch:1}};Ext.apply=function(d,e,b){if(b){Ext.apply(d,b)}if(d&&e&&typeof e=="object"){for(var a in e){d[a]=e[a]}}return d};(function(){var n=0,B=Object.prototype.toString,x=navigator.userAgent.toLowerCase(),C=function(e){return e.test(x)},d=document,q=d.documentMode,c=d.compatMode=="CSS1Compat",E=C(/opera/),k=C(/\bchrome\b/),y=C(/webkit/),w=!k&&C(/safari/),b=w&&C(/applewebkit\/4/),a=w&&C(/version\/3/),F=w&&C(/version\/4/),v=!E&&C(/msie/),t=v&&(C(/msie 7/)||q==7),s=v&&(C(/msie 8/)&&q!=7),u=v&&!t&&!s,r=!y&&C(/gecko/),m=r&&C(/rv:1\.8/),p=r&&C(/rv:1\.9/),z=v&&!c,D=C(/windows|win32/),h=C(/macintosh|mac os x/),g=C(/adobeair/),o=C(/linux/),l=/^https/i.test(window.location.protocol);if(u){try{d.execCommand("BackgroundImageCache",false,true)}catch(A){}}Ext.apply(Ext,{SSL_SECURE_URL:l&&v?'javascript:""':"about:blank",isStrict:c,isSecure:l,isReady:false,enableForcedBoxModel:false,enableGarbageCollector:true,enableListenerCollection:false,enableNestedListenerRemoval:false,USE_NATIVE_JSON:false,applyIf:function(G,H){if(G){for(var e in H){if(!Ext.isDefined(G[e])){G[e]=H[e]}}}return G},id:function(G,e){G=Ext.getDom(G,true)||{};if(!G.id){G.id=(e||"ext-gen")+(++n)}return G.id},extend:function(){var G=function(I){for(var H in I){this[H]=I[H]}};var e=Object.prototype.constructor;return function(M,J,L){if(typeof J=="object"){L=J;J=M;M=L.constructor!=e?L.constructor:function(){J.apply(this,arguments)}}var I=function(){},K,H=J.prototype;I.prototype=H;K=M.prototype=new I();K.constructor=M;M.superclass=H;if(H.constructor==e){H.constructor=J}M.override=function(N){Ext.override(M,N)};K.superclass=K.supr=(function(){return H});K.override=G;Ext.override(M,L);M.extend=function(N){return Ext.extend(M,N)};return M}}(),override:function(e,H){if(H){var G=e.prototype;Ext.apply(G,H);if(Ext.isIE&&H.hasOwnProperty("toString")){G.toString=H.toString}}},namespace:function(){var G,e;Ext.each(arguments,function(H){e=H.split(".");G=window[e[0]]=window[e[0]]||{};Ext.each(e.slice(1),function(I){G=G[I]=G[I]||{}})});return G},urlEncode:function(K,J){var H,G=[],I=encodeURIComponent;Ext.iterate(K,function(e,L){H=Ext.isEmpty(L);Ext.each(H?e:L,function(M){G.push("&",I(e),"=",(!Ext.isEmpty(M)&&(M!=e||!H))?(Ext.isDate(M)?Ext.encode(M).replace(/"/g,""):I(M)):"")})});if(!J){G.shift();J=""}return J+G.join("")},urlDecode:function(H,G){if(Ext.isEmpty(H)){return{}}var K={},J=H.split("&"),L=decodeURIComponent,e,I;Ext.each(J,function(M){M=M.split("=");e=L(M[0]);I=L(M[1]);K[e]=G||!K[e]?I:[].concat(K[e]).concat(I)});return K},urlAppend:function(e,G){if(!Ext.isEmpty(G)){return e+(e.indexOf("?")===-1?"?":"&")+G}return e},toArray:function(){return v?function(H,K,I,J){J=[];for(var G=0,e=H.length;G<e;G++){J.push(H[G])}return J.slice(K||0,I||J.length)}:function(e,H,G){return Array.prototype.slice.call(e,H||0,G||e.length)}}(),isIterable:function(e){if(Ext.isArray(e)||e.callee){return true}if(/NodeList|HTMLCollection/.test(B.call(e))){return true}return((typeof e.nextNode!="undefined"||e.item)&&Ext.isNumber(e.length))},each:function(J,I,H){if(Ext.isEmpty(J,true)){return}if(!Ext.isIterable(J)||Ext.isPrimitive(J)){J=[J]}for(var G=0,e=J.length;G<e;G++){if(I.call(H||J[G],J[G],G,J)===false){return G}}},iterate:function(H,G,e){if(Ext.isEmpty(H)){return}if(Ext.isIterable(H)){Ext.each(H,G,e);return}else{if(typeof H=="object"){for(var I in H){if(H.hasOwnProperty(I)){if(G.call(e||H,I,H[I],H)===false){return}}}}}},getDom:function(G,H){if(!G||!d){return null}if(G.dom){return G.dom}else{if(typeof G=="string"){var I=d.getElementById(G);if(I&&v&&H){if(G==I.getAttribute("id")){return I}else{return null}}return I}else{return G}}},getBody:function(){return Ext.get(d.body||d.documentElement)},getHead:function(){var e;return function(){if(e==undefined){e=Ext.get(d.getElementsByTagName("head")[0])}return e}}(),removeNode:v&&!s?function(){var e;return function(G){if(G&&G.tagName!="BODY"){(Ext.enableNestedListenerRemoval)?Ext.EventManager.purgeElement(G,true):Ext.EventManager.removeAll(G);e=e||d.createElement("div");e.appendChild(G);e.innerHTML="";delete Ext.elCache[G.id]}}}():function(e){if(e&&e.parentNode&&e.tagName!="BODY"){(Ext.enableNestedListenerRemoval)?Ext.EventManager.purgeElement(e,true):Ext.EventManager.removeAll(e);e.parentNode.removeChild(e);delete Ext.elCache[e.id]}},isEmpty:function(e,G){return e===null||e===undefined||((Ext.isArray(e)&&!e.length))||(!G?e==="":false)},isArray:function(e){return B.apply(e)==="[object Array]"},isDate:function(e){return B.apply(e)==="[object Date]"},isObject:function(e){return !!e&&Object.prototype.toString.call(e)==="[object Object]"},isPrimitive:function(e){return Ext.isString(e)||Ext.isNumber(e)||Ext.isBoolean(e)},isFunction:function(e){return B.apply(e)==="[object Function]"},isNumber:function(e){return typeof e==="number"&&isFinite(e)},isString:function(e){return typeof e==="string"},isBoolean:function(e){return typeof e==="boolean"},isElement:function(e){return e?!!e.tagName:false},isDefined:function(e){return typeof e!=="undefined"},isOpera:E,isWebKit:y,isChrome:k,isSafari:w,isSafari3:a,isSafari4:F,isSafari2:b,isIE:v,isIE6:u,isIE7:t,isIE8:s,isGecko:r,isGecko2:m,isGecko3:p,isBorderBox:z,isLinux:o,isWindows:D,isMac:h,isAir:g});Ext.ns=Ext.namespace})();Ext.ns("Ext.util","Ext.lib","Ext.data","Ext.supports");Ext.elCache={};Ext.apply(Function.prototype,{createInterceptor:function(c,a){var b=this;return !Ext.isFunction(c)?this:function(){var e=this,d=arguments;c.target=e;c.method=b;return(c.apply(a||e||window,d)!==false)?b.apply(e||window,d):null}},createCallback:function(){var a=arguments,b=this;return function(){return b.apply(window,a)}},createDelegate:function(d,a,b){var c=this;return function(){var g=a||arguments;if(b===true){g=Array.prototype.slice.call(arguments,0);g=g.concat(a)}else{if(Ext.isNumber(b)){g=Array.prototype.slice.call(arguments,0);var e=[b,0].concat(a);Array.prototype.splice.apply(g,e)}}return c.apply(d||window,g)}},defer:function(b,e,a,d){var c=this.createDelegate(e,a,d);if(b>0){return setTimeout(c,b)}c();return 0}});Ext.applyIf(String,{format:function(b){var a=Ext.toArray(arguments,1);return b.replace(/\{(\d+)\}/g,function(c,d){return a[d]})}});Ext.applyIf(Array.prototype,{indexOf:function(b,c){var a=this.length;c=c||0;c+=(c<0)?a:0;for(;c<a;++c){if(this[c]===b){return c}}return -1},remove:function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}});Ext.util.TaskRunner=function(c){c=c||10;var d=[],h=[],b=0,e=false,g=function(){e=false;clearInterval(b);b=0},k=function(){if(!e){e=true;b=setInterval(l,c)}},a=function(m){h.push(m);if(m.onStop){m.onStop.apply(m.scope||m)}},l=function(){var o=h.length,q=new Date().getTime();if(o>0){for(var s=0;s<o;s++){d.remove(h[s])}h=[];if(d.length<1){g();return}}for(var s=0,r,n,p,m=d.length;s<m;++s){r=d[s];n=q-r.taskRunTime;if(r.interval<=n){p=r.run.apply(r.scope||r,r.args||[++r.taskRunCount]);r.taskRunTime=q;if(p===false||r.taskRunCount===r.repeat){a(r);return}}if(r.duration&&r.duration<=(q-r.taskStartTime)){a(r)}}};this.start=function(m){d.push(m);m.taskStartTime=new Date().getTime();m.taskRunTime=0;m.taskRunCount=0;k();return m};this.stop=function(m){a(m);return m};this.stopAll=function(){g();for(var n=0,m=d.length;n<m;n++){if(d[n].onStop){d[n].onStop()}}d=[];h=[]}};Ext.TaskMgr=new Ext.util.TaskRunner();if(typeof jQuery=="undefined"){throw"Unable to load Ext, jQuery not found."}(function(){var b;Ext.lib.Dom={getViewWidth:function(d){return d?Math.max(jQuery(document).width(),jQuery(window).width()):jQuery(window).width()},getViewHeight:function(d){return d?Math.max(jQuery(document).height(),jQuery(window).height()):jQuery(window).height()},isAncestor:function(e,g){var d=false;e=Ext.getDom(e);g=Ext.getDom(g);if(e&&g){if(e.contains){return e.contains(g)}else{if(e.compareDocumentPosition){return !!(e.compareDocumentPosition(g)&16)}else{while(g=g.parentNode){d=g==e||d}}}}return d},getRegion:function(d){return Ext.lib.Region.getRegion(d)},getY:function(d){return this.getXY(d)[1]},getX:function(d){return this.getXY(d)[0]},getXY:function(g){var e,m,n,s,l=(document.body||document.documentElement);g=Ext.getDom(g);if(g==l){return[0,0]}if(g.getBoundingClientRect){n=g.getBoundingClientRect();s=c(document).getScroll();return[Math.round(n.left+s.left),Math.round(n.top+s.top)]}var q=0,o=0;e=g;var d=c(g).getStyle("position")=="absolute";while(e){q+=e.offsetLeft;o+=e.offsetTop;if(!d&&c(e).getStyle("position")=="absolute"){d=true}if(Ext.isGecko){m=c(e);var r=parseInt(m.getStyle("borderTopWidth"),10)||0;var h=parseInt(m.getStyle("borderLeftWidth"),10)||0;q+=h;o+=r;if(e!=g&&m.getStyle("overflow")!="visible"){q+=h;o+=r}}e=e.offsetParent}if(Ext.isSafari&&d){q-=l.offsetLeft;o-=l.offsetTop}if(Ext.isGecko&&!d){var k=c(l);q+=parseInt(k.getStyle("borderLeftWidth"),10)||0;o+=parseInt(k.getStyle("borderTopWidth"),10)||0}e=g.parentNode;while(e&&e!=l){if(!Ext.isOpera||(e.tagName!="TR"&&c(e).getStyle("display")!="inline")){q-=e.scrollLeft;o-=e.scrollTop}e=e.parentNode}return[q,o]},setXY:function(d,e){d=Ext.fly(d,"_setXY");d.position();var g=d.translatePoints(e);if(e[0]!==false){d.dom.style.left=g.left+"px"}if(e[1]!==false){d.dom.style.top=g.top+"px"}},setX:function(e,d){this.setXY(e,[d,false])},setY:function(d,e){this.setXY(d,[false,e])}};function c(d){if(!b){b=new Ext.Element.Flyweight()}b.dom=d;return b}Ext.lib.Event={getPageX:function(d){d=d.browserEvent||d;return d.pageX},getPageY:function(d){d=d.browserEvent||d;return d.pageY},getXY:function(d){d=d.browserEvent||d;return[d.pageX,d.pageY]},getTarget:function(d){return d.target},on:function(k,d,h,g,e){jQuery(k).bind(d,h)},un:function(g,d,e){jQuery(g).unbind(d,e)},purgeElement:function(d){jQuery(d).unbind()},preventDefault:function(d){d=d.browserEvent||d;if(d.preventDefault){d.preventDefault()}else{d.returnValue=false}},stopPropagation:function(d){d=d.browserEvent||d;if(d.stopPropagation){d.stopPropagation()}else{d.cancelBubble=true}},stopEvent:function(d){this.preventDefault(d);this.stopPropagation(d)},onAvailable:function(l,e,d){var k=new Date();var g=function(){if(k.getElapsed()>10000){clearInterval(h)}var m=document.getElementById(l);if(m){clearInterval(h);e.call(d||window,m)}};var h=setInterval(g,50)},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(e){e=e.browserEvent||e;var d=e.relatedTarget;if(!d){if(e.type=="mouseout"){d=e.toElement}else{if(e.type=="mouseover"){d=e.fromElement}}}return this.resolveTextNode(d)}};Ext.lib.Ajax=function(){var d=function(g){return function(k,h){if((h=="error"||h=="timeout")&&g.failure){g.failure.call(g.scope||window,e(g,k))}else{if(g.success){g.success.call(g.scope||window,e(g,k))}}}};var e=function(g,o){var k={},h,l,m;try{h=o.getAllResponseHeaders();Ext.each(h.replace(/\r\n/g,"\n").split("\n"),function(p){l=p.indexOf(":");if(l>=0){m=p.substr(0,l).toLowerCase();if(p.charAt(l+1)==" "){++l}k[m]=p.substr(l+1)}})}catch(n){}return{responseText:o.responseText,responseXML:o.responseXML,argument:g.argument,status:o.status,statusText:o.statusText,getResponseHeader:function(p){return k[p.toLowerCase()]},getAllResponseHeaders:function(){return h}}};return{request:function(n,l,g,m,k){var p={type:n,url:l,data:m,timeout:g.timeout,complete:d(g)};if(k){var h=k.headers;if(k.xmlData){p.data=k.xmlData;p.processData=false;p.type=(n?n:(k.method?k.method:"POST"));if(!h||!h["Content-Type"]){p.contentType="text/xml"}}else{if(k.jsonData){p.data=typeof k.jsonData=="object"?Ext.encode(k.jsonData):k.jsonData;p.processData=false;p.type=(n?n:(k.method?k.method:"POST"));if(!h||!h["Content-Type"]){p.contentType="application/json"}}}if(h){p.beforeSend=function(q){for(var o in h){if(h.hasOwnProperty(o)){q.setRequestHeader(o,h[o])}}}}}jQuery.ajax(p)},formRequest:function(l,k,g,n,m,h){jQuery.ajax({type:Ext.getDom(l).method||"POST",url:k,data:jQuery(l).serialize()+(n?"&"+n:""),timeout:g.timeout,complete:d(g)})},isCallInProgress:function(g){return false},abort:function(g){return false},serializeForm:function(g){return jQuery(g.dom||g).serialize()}}}();Ext.lib.Anim=function(){var d=function(e,h){var g=true;return{stop:function(k){},isAnimated:function(){return g},proxyCallback:function(){g=false;Ext.callback(e,h)}}};return{scroll:function(k,g,n,m,e,h){var l=d(e,h);k=Ext.getDom(k);if(typeof g.scroll.to[0]=="number"){k.scrollLeft=g.scroll.to[0]}if(typeof g.scroll.to[1]=="number"){k.scrollTop=g.scroll.to[1]}l.proxyCallback();return l},motion:function(k,g,m,l,e,h){return this.run(k,g,m,l,e,h)},color:function(k,g,n,m,e,h){var l=d(e,h);l.proxyCallback();return l},run:function(l,t,q,g,m,v,u){var p=d(m,v),r=Ext.fly(l,"_animrun");var h={};for(var n in t){switch(n){case"points":var s,x;r.position();if(s=t.points.by){var w=r.getXY();x=r.translatePoints([w[0]+s[0],w[1]+s[1]])}else{x=r.translatePoints(t.points.to)}h.left=x.left;h.top=x.top;if(!parseInt(r.getStyle("left"),10)){r.setLeft(0)}if(!parseInt(r.getStyle("top"),10)){r.setTop(0)}if(t.points.from){r.setXY(t.points.from)}break;case"width":h.width=t.width.to;if(t.width.from){r.setWidth(t.width.from)}break;case"height":h.height=t.height.to;if(t.height.from){r.setHeight(t.height.from)}break;case"opacity":h.opacity=t.opacity.to;if(t.opacity.from){r.setOpacity(t.opacity.from)}break;case"left":h.left=t.left.to;if(t.left.from){r.setLeft(t.left.from)}break;case"top":h.top=t.top.to;if(t.top.from){r.setTop(t.top.from)}break;case"callback":case"scope":case"xy":break;default:h[n]=t[n].to;if(t[n].from){r.setStyle(n,t[n].from)}break}}jQuery(l).animate(h,q*1000,undefined,p.proxyCallback);return p}}}();Ext.lib.Region=function(g,h,d,e){this.top=g;this[1]=g;this.right=h;this.bottom=d;this.left=e;this[0]=e};Ext.lib.Region.prototype={contains:function(d){return(d.left>=this.left&&d.right<=this.right&&d.top>=this.top&&d.bottom<=this.bottom)},getArea:function(){return((this.bottom-this.top)*(this.right-this.left))},intersect:function(k){var g=Math.max(this.top,k.top);var h=Math.min(this.right,k.right);var d=Math.min(this.bottom,k.bottom);var e=Math.max(this.left,k.left);if(d>=g&&h>=e){return new Ext.lib.Region(g,h,d,e)}else{return null}},union:function(k){var g=Math.min(this.top,k.top);var h=Math.max(this.right,k.right);var d=Math.max(this.bottom,k.bottom);var e=Math.min(this.left,k.left);return new Ext.lib.Region(g,h,d,e)},constrainTo:function(d){this.top=this.top.constrain(d.top,d.bottom);this.bottom=this.bottom.constrain(d.top,d.bottom);this.left=this.left.constrain(d.left,d.right);this.right=this.right.constrain(d.left,d.right);return this},adjust:function(g,e,d,h){this.top+=g;this.left+=e;this.right+=h;this.bottom+=d;return this}};Ext.lib.Region.getRegion=function(h){var m=Ext.lib.Dom.getXY(h);var g=m[1];var k=m[0]+h.offsetWidth;var d=m[1]+h.offsetHeight;var e=m[0];return new Ext.lib.Region(g,k,d,e)};Ext.lib.Point=function(d,e){if(Ext.isArray(d)){e=d[1];d=d[0]}this.x=this.right=this.left=this[0]=d;this.y=this.top=this.bottom=this[1]=e};Ext.lib.Point.prototype=new Ext.lib.Region();if(Ext.isIE){function a(){var d=Function.prototype;delete d.createSequence;delete d.defer;delete d.createDelegate;delete d.createCallback;delete d.createInterceptor;window.detachEvent("onunload",a)}window.attachEvent("onunload",a)}})();(function(){var n=Ext.util,l=Ext.each,o=true,m=false;n.Observable=function(){var b=this,a=b.events;if(b.listeners){b.on(b.listeners);delete b.listeners}b.events=a||{}};n.Observable.prototype={filterOptRe:/^(?:scope|delay|buffer|single)$/,fireEvent:function(){var b=Array.prototype.slice.call(arguments,0),k=b[0].toLowerCase(),h=this,a=o,e=h.events[k],c,g,d;if(h.eventsSuspended===o){if(g=h.eventQueue){g.push(b)}}else{if(typeof e=="object"){if(e.bubble){if(e.fire.apply(e,b.slice(1))===m){return m}d=h.getBubbleTarget&&h.getBubbleTarget();if(d&&d.enableBubble){c=d.events[k];if(!c||typeof c!="object"||!c.bubble){d.enableBubble(k)}return d.fireEvent.apply(d,b)}}else{b.shift();a=e.fire.apply(e,b)}}}return a},addListener:function(b,k,a,d){var h=this,e,c,g;if(typeof b=="object"){d=b;for(e in d){c=d[e];if(!h.filterOptRe.test(e)){h.addListener(e,c.fn||c,c.scope||d.scope,c.fn?c:d)}}}else{b=b.toLowerCase();g=h.events[b]||o;if(typeof g=="boolean"){h.events[b]=g=new n.Event(h,b)}g.addListener(k,a,typeof d=="object"?d:{})}},removeListener:function(b,d,a){var c=this.events[b.toLowerCase()];if(typeof c=="object"){c.removeListener(d,a)}},purgeListeners:function(){var c=this.events,b,a;for(a in c){b=c[a];if(typeof b=="object"){b.clearListeners()}}},addEvents:function(c){var d=this;d.events=d.events||{};if(typeof c=="string"){var b=arguments,a=b.length;while(a--){d.events[b[a]]=d.events[b[a]]||o}}else{Ext.applyIf(d.events,c)}},hasListener:function(b){var a=this.events[b.toLowerCase()];return typeof a=="object"&&a.listeners.length>0},suspendEvents:function(a){this.eventsSuspended=o;if(a&&!this.eventQueue){this.eventQueue=[]}},resumeEvents:function(){var b=this,a=b.eventQueue||[];b.eventsSuspended=m;delete b.eventQueue;l(a,function(c){b.fireEvent.apply(b,c)})}};var q=n.Observable.prototype;q.on=q.addListener;q.un=q.removeListener;n.Observable.releaseCapture=function(a){a.fireEvent=q.fireEvent};function p(a,c,b){return function(){if(c.target==arguments[0]){a.apply(b,Array.prototype.slice.call(arguments,0))}}}function s(c,b,a,d){a.task=new n.DelayedTask();return function(){a.task.delay(b.buffer,c,d,Array.prototype.slice.call(arguments,0))}}function r(d,c,a,b){return function(){c.removeListener(a,b);return d.apply(b,arguments)}}function t(c,b,a,d){return function(){var e=new n.DelayedTask(),g=Array.prototype.slice.call(arguments,0);if(!a.tasks){a.tasks=[]}a.tasks.push(e);e.delay(b.delay||10,function(){a.tasks.remove(e);c.apply(d,g)},d)}}n.Event=function(a,b){this.name=b;this.obj=a;this.listeners=[]};n.Event.prototype={addListener:function(c,d,e){var b=this,a;d=d||b.obj;if(!b.isListening(c,d)){a=b.createListener(c,d,e);if(b.firing){b.listeners=b.listeners.slice(0)}b.listeners.push(a)}},createListener:function(c,d,b){b=b||{};d=d||this.obj;var a={fn:c,scope:d,options:b},e=c;if(b.target){e=p(e,b,d)}if(b.delay){e=t(e,b,a,d)}if(b.single){e=r(e,this,c,d)}if(b.buffer){e=s(e,b,a,d)}a.fireFn=e;return a},findListener:function(c,d){var b=this.listeners,e=b.length,a;d=d||this.obj;while(e--){a=b[e];if(a){if(a.fn==c&&a.scope==d){return e}}}return -1},isListening:function(a,b){return this.findListener(a,b)!=-1},removeListener:function(c,d){var e,a,h,b=this,g=m;if((e=b.findListener(c,d))!=-1){if(b.firing){b.listeners=b.listeners.slice(0)}a=b.listeners[e];if(a.task){a.task.cancel();delete a.task}h=a.tasks&&a.tasks.length;if(h){while(h--){a.tasks[h].cancel()}delete a.tasks}b.listeners.splice(e,1);g=o}return g},clearListeners:function(){var b=this,a=b.listeners,c=a.length;while(c--){b.removeListener(a[c].fn,a[c].scope)}},fire:function(){var b=this,c=b.listeners,a=c.length,d=0,g;if(a>0){b.firing=o;var e=Array.prototype.slice.call(arguments,0);for(;d<a;d++){g=c[d];if(g&&g.fireFn.apply(g.scope||b.obj||window,e)===m){return(b.firing=m)}}}b.firing=m;return o}}})();Ext.DomHelper=function(){var y=null,K=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,I=/^table|tbody|tr|td$/i,Q=/tag|children|cn|html$/i,C=/td|tr|tbody/i,G=/([a-z0-9-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,A=/end/i,D,H="afterbegin",F="afterend",R="beforebegin",E="beforeend",T="<table>",M="</table>",S=T+"<tbody>",L="</tbody>"+M,J=S+"<tr>",z="</tr>"+L;function N(h,c,e,b,a,g){var d=D.insertHtml(b,Ext.getDom(h),B(c));return e?Ext.get(d,true):d}function B(c){var e="",h,d,g,b;if(typeof c=="string"){e=c}else{if(Ext.isArray(c)){for(var a=0;a<c.length;a++){if(c[a]){e+=B(c[a])}}}else{e+="<"+(c.tag=c.tag||"div");for(h in c){d=c[h];if(!Q.test(h)){if(typeof d=="object"){e+=" "+h+'="';for(g in d){e+=g+":"+d[g]+";"}e+='"'}else{e+=" "+({cls:"class",htmlFor:"for"}[h]||h)+'="'+d+'"'}}}if(K.test(c.tag)){e+="/>"}else{e+=">";if((b=c.children||c.cn)){e+=B(b)}else{if(c.html){e+=c.html}}e+="</"+c.tag+">"}}}return e}function O(b,g,k,d){y.innerHTML=[g,k,d].join("");var h=-1,a=y,e;while(++h<b){a=a.firstChild}if(e=a.nextSibling){var c=document.createDocumentFragment();while(a){e=a.nextSibling;c.appendChild(a);a=e}a=c}return a}function P(g,d,e,a){var c,b;y=y||document.createElement("div");if(g=="td"&&(d==H||d==E)||!C.test(g)&&(d==R||d==F)){return}b=d==R?e:d==F?e.nextSibling:d==H?e.firstChild:null;if(d==R||d==F){e=e.parentNode}if(g=="td"||(g=="tr"&&(d==E||d==H))){c=O(4,J,a,z)}else{if((g=="tbody"&&(d==E||d==H))||(g=="tr"&&(d==R||d==F))){c=O(3,S,a,L)}else{c=O(2,T,a,M)}}e.insertBefore(c,b);return c}D={markup:function(a){return B(a)},applyStyles:function(c,b){if(b){var a;c=Ext.fly(c);if(typeof b=="function"){b=b.call()}if(typeof b=="string"){G.lastIndex=0;while((a=G.exec(b))){c.setStyle(a[1],a[2])}}else{if(typeof b=="object"){c.setStyle(b)}}}},insertHtml:function(a,g,m){var b={},d,k,l,h,c,e;a=a.toLowerCase();b[R]=["BeforeBegin","previousSibling"];b[F]=["AfterEnd","nextSibling"];if(g.insertAdjacentHTML){if(I.test(g.tagName)&&(e=P(g.tagName.toLowerCase(),a,g,m))){return e}b[H]=["AfterBegin","firstChild"];b[E]=["BeforeEnd","lastChild"];if((d=b[a])){g.insertAdjacentHTML(d[0],m);return g[d[1]]}}else{l=g.ownerDocument.createRange();k="setStart"+(A.test(a)?"After":"Before");if(b[a]){l[k](g);h=l.createContextualFragment(m);g.parentNode.insertBefore(h,a==R?g:g.nextSibling);return g[(a==R?"previous":"next")+"Sibling"]}else{c=(a==H?"first":"last")+"Child";if(g.firstChild){l[k](g[c]);h=l.createContextualFragment(m);if(a==H){g.insertBefore(h,g.firstChild)}else{g.appendChild(h)}}else{g.innerHTML=m}return g[c]}}throw'Illegal insertion point -> "'+a+'"'},insertBefore:function(c,a,b){return N(c,a,b,R)},insertAfter:function(c,a,b){return N(c,a,b,F,"nextSibling")},insertFirst:function(c,a,b){return N(c,a,b,H,"firstChild")},append:function(c,a,b){return N(c,a,b,E,"",true)},overwrite:function(c,a,b){c=Ext.getDom(c);c.innerHTML=B(a);return b?Ext.get(c.firstChild):c.firstChild},createHtml:B};return D}();Ext.Template=function(m){var l=this,q=arguments,o=[],p;if(Ext.isArray(m)){m=m.join("")}else{if(q.length>1){for(var n=0,a=q.length;n<a;n++){p=q[n];if(typeof p=="object"){Ext.apply(l,p)}else{o.push(p)}}m=o.join("")}}l.html=m;if(l.compiled){l.compile()}};Ext.Template.prototype={re:/\{([\w-]+)\}/g,applyTemplate:function(d){var c=this;return c.compiled?c.compiled(d):c.html.replace(c.re,function(b,a){return d[a]!==undefined?d[a]:""})},set:function(e,g){var d=this;d.html=e;d.compiled=null;return g?d.compile():d},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(d,e,g){return this.doInsert("afterBegin",d,e,g)},insertBefore:function(d,e,g){return this.doInsert("beforeBegin",d,e,g)},insertAfter:function(d,e,g){return this.doInsert("afterEnd",d,e,g)},append:function(d,e,g){return this.doInsert("beforeEnd",d,e,g)},doInsert:function(m,k,g,h){k=Ext.getDom(k);var l=Ext.DomHelper.insertHtml(m,k,this.applyTemplate(g));return h?Ext.get(l,true):l},overwrite:function(d,e,g){d=Ext.getDom(d);d.innerHTML=this.applyTemplate(e);return g?Ext.get(d.firstChild,true):d.firstChild}};Ext.Template.prototype.apply=Ext.Template.prototype.applyTemplate;Ext.Template.from=function(c,d){c=Ext.getDom(c);return new Ext.Template(c.value||c.innerHTML,d||"")};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,xml,hasXml;for(var i=0,ci;ci=cs[i];i++){if(ci.nodeType!=1){continue}if(!hasXml){xml=Ext.DomQuery.isXml(ci);hasXml=true}if(!xml){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(n,o,k){var m=this,l,h=function(){clearInterval(l);l=null;n.apply(o,k||[])};m.delay=function(c,a,b,d){m.cancel();n=a||n;o=b||o;k=d||k;l=setInterval(h,c)};m.cancel=function(){if(l){clearInterval(l);l=null}}};(function(){var p=document;Ext.Element=function(a,d){var c=typeof a=="string"?p.getElementById(a):a,b;if(!c){return null}b=c.id;if(!d&&b&&Ext.elCache[b]){return Ext.elCache[b].el}this.dom=c;this.id=b||Ext.id(c)};var s=Ext.DomHelper,r=Ext.Element,v=Ext.elCache;r.prototype={set:function(b,e){var d=this.dom,a,c,e=(e!==false)&&!!d.setAttribute;for(a in b){if(b.hasOwnProperty(a)){c=b[a];if(a=="style"){s.applyStyles(d,c)}else{if(a=="cls"){d.className=c}else{if(e){d.setAttribute(a,c)}else{d[a]=c}}}}}return this},defaultUnit:"px",is:function(a){return Ext.DomQuery.is(this.dom,a)},focus:function(b,c){var a=this,c=c||a.dom;try{if(Number(b)){a.focus.defer(b,null,[null,c])}else{c.focus()}}catch(d){}return a},blur:function(){try{this.dom.blur()}catch(a){}return this},getValue:function(a){var b=this.dom.value;return a?parseInt(b,10):b},addListener:function(a,b,c,d){Ext.EventManager.on(this.dom,a,b,c||this,d);return this},removeListener:function(a,b,c){Ext.EventManager.removeListener(this.dom,a,b,c||this);return this},removeAllListeners:function(){Ext.EventManager.removeAll(this.dom);return this},purgeAllListeners:function(){Ext.EventManager.purgeElement(this,true);return this},addUnits:function(a){if(a===""||a=="auto"||a===undefined){a=a||""}else{if(!isNaN(a)||!o.test(a)){a=a+(this.defaultUnit||"px")}}return a},load:function(c,b,a){Ext.Ajax.request(Ext.apply({params:b,url:c.url||c,callback:a,el:this.dom,indicatorText:c.indicatorText||""},Ext.isObject(c)?c:{}));return this},isBorderBox:function(){return Ext.isBorderBox||Ext.isForcedBorderBox||q[(this.dom.tagName||"").toLowerCase()]},remove:function(){var a=this,b=a.dom;if(b){delete a.dom;Ext.removeNode(b)}},hover:function(e,a,c,d){var b=this;b.on("mouseenter",e,c||b.dom,d);b.on("mouseleave",a,c||b.dom,d);return b},contains:function(a){return !a?false:Ext.lib.Dom.isAncestor(this.dom,a.dom?a.dom:a)},getAttributeNS:function(b,a){return this.getAttribute(a,b)},getAttribute:Ext.isIE?function(a,c){var b=this.dom,d=typeof b[c+":"+a];if(["undefined","unknown"].indexOf(d)==-1){return b[c+":"+a]}return b[a]}:function(a,c){var b=this.dom;return b.getAttributeNS(c,a)||b.getAttribute(c+":"+a)||b.getAttribute(a)||b[a]},update:function(a){if(this.dom){this.dom.innerHTML=a}return this}};var m=r.prototype;r.addMethods=function(a){Ext.apply(m,a)};m.on=m.addListener;m.un=m.removeListener;m.autoBoxAdjust=true;var o=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,t;r.get=function(e){var a,b,c;if(!e){return null}if(typeof e=="string"){if(!(b=p.getElementById(e))){return null}if(v[e]&&v[e].el){a=v[e].el;a.dom=b}else{a=r.addToCache(new r(b))}return a}else{if(e.tagName){if(!(c=e.id)){c=Ext.id(e)}if(v[c]&&v[c].el){a=v[c].el;a.dom=e}else{a=r.addToCache(new r(e))}return a}else{if(e instanceof r){if(e!=t){if(Ext.isIE&&(e.id==undefined||e.id=="")){e.dom=e.dom}else{e.dom=p.getElementById(e.id)||e.dom}}return e}else{if(e.isComposite){return e}else{if(Ext.isArray(e)){return r.select(e)}else{if(e==p){if(!t){var d=function(){};d.prototype=r.prototype;t=new d();t.dom=p}return t}}}}}}return null};r.addToCache=function(a,b){b=b||a.id;v[b]={el:a,data:{},events:{}};return a};r.data=function(d,a,c){d=r.get(d);if(!d){return null}var b=v[d.id].data;if(arguments.length==2){return b[a]}else{return(b[a]=c)}};function n(){if(!Ext.enableGarbageCollector){clearInterval(r.collectorThreadId)}else{var a,d,b,c;for(a in v){c=v[a];if(c.skipGC){continue}d=c.el;b=d.dom;if(!b||!b.parentNode||(!b.offsetParent&&!p.getElementById(a))){if(Ext.enableListenerCollection){Ext.EventManager.removeAll(b)}delete v[a]}}if(Ext.isIE){var e={};for(a in v){e[a]=v[a]}v=Ext.elCache=e}}}r.collectorThreadId=setInterval(n,30000);var u=function(){};u.prototype=r.prototype;r.Flyweight=function(a){this.dom=a};r.Flyweight.prototype=new u();r.Flyweight.prototype.isFlyweight=true;r._flyweights={};r.fly=function(b,a){var c=null;a=a||"_global";if(b=Ext.getDom(b)){(r._flyweights[a]=r._flyweights[a]||new r.Flyweight()).dom=b;c=r._flyweights[a]}return c};Ext.get=r.get;Ext.fly=r.fly;var q=Ext.isStrict?{select:1}:{input:1,select:1,textarea:1};if(Ext.isIE||Ext.isGecko){q.button=1}})();Ext.Element.addMethods(function(){var l="parentNode",g="nextSibling",m="previousSibling",k=Ext.DomQuery,h=Ext.get;return{findParent:function(p,a,e){var c=this.dom,o=document.body,b=0,d;if(Ext.isGecko&&Object.prototype.toString.call(c)=="[object XULElement]"){return null}a=a||50;if(isNaN(a)){d=Ext.getDom(a);a=Number.MAX_VALUE}while(c&&c.nodeType==1&&b<a&&c!=o&&c!=d){if(k.is(c,p)){return e?h(c):c}b++;c=c.parentNode}return null},findParentNode:function(a,b,d){var c=Ext.fly(this.dom.parentNode,"_internal");return c?c.findParent(a,b,d):null},up:function(a,b){return this.findParentNode(a,b,true)},select:function(a){return Ext.Element.select(a,this.dom)},query:function(a){return k.select(a,this.dom)},child:function(c,b){var a=k.selectNode(c,this.dom);return b?a:h(a)},down:function(c,b){var a=k.selectNode(" > "+c,this.dom);return b?a:h(a)},parent:function(b,a){return this.matchNode(l,l,b,a)},next:function(b,a){return this.matchNode(g,g,b,a)},prev:function(b,a){return this.matchNode(m,m,b,a)},first:function(b,a){return this.matchNode(g,"firstChild",b,a)},last:function(b,a){return this.matchNode(m,"lastChild",b,a)},matchNode:function(d,a,e,c){var b=this.dom[a];while(b){if(b.nodeType==1&&(!e||k.is(b,e))){return !c?h(b):b}b=b[d]}return null}}}());Ext.Element.addMethods(function(){var g=Ext.getDom,e=Ext.get,d=Ext.DomHelper;return{appendChild:function(a){return e(a).appendTo(this)},appendTo:function(a){g(a).appendChild(this.dom);return this},insertBefore:function(a){(a=g(a)).parentNode.insertBefore(this.dom,a);return this},insertAfter:function(a){(a=g(a)).parentNode.insertBefore(this.dom,a.nextSibling);return this},insertFirst:function(a,b){a=a||{};if(a.nodeType||a.dom||typeof a=="string"){a=g(a);this.dom.insertBefore(a,this.dom.firstChild);return !b?e(a):a}else{return this.createChild(a,this.dom.firstChild,b)}},replace:function(a){a=e(a);this.insertBefore(a);a.remove();return this},replaceWith:function(b){var a=this;if(b.nodeType||b.dom||typeof b=="string"){b=g(b);a.dom.parentNode.insertBefore(b,a.dom)}else{b=d.insertBefore(a.dom,b)}delete Ext.elCache[a.id];Ext.removeNode(a.dom);a.id=Ext.id(a.dom=b);Ext.Element.addToCache(a.isFlyweight?new Ext.Element(a.dom):a);return a},createChild:function(b,c,a){b=b||{tag:"div"};return c?d.insertBefore(c,b,a!==true):d[!this.dom.firstChild?"overwrite":"append"](this.dom,b,a!==true)},wrap:function(c,b){var a=d.insertBefore(this.dom,c||{tag:"div"},!b);a.dom?a.dom.appendChild(this.dom):a.appendChild(this.dom);return a},insertHtml:function(c,b,k){var a=d.insertHtml(c,this.dom,b);return k?Ext.get(a):a}}}());Ext.Element.addMethods(function(){var U=Ext.supports,ad={},H=/(-[a-z])/gi,N=document.defaultView,O=/alpha\(opacity=(.*)\)/i,Z=/^\s+|\s+$/g,S=Ext.Element,K=/\s+/,ai=/\w/g,ag="padding",ah="margin",G="border",M="-left",R="-right",I="-top",W="-bottom",ab="-width",Q=Math,V="hidden",af="isClipped",aa="overflow",X="overflow-x",Y="overflow-y",P="originalClip",ac={l:G+M+ab,r:G+R+ab,t:G+I+ab,b:G+W+ab},ae={l:ag+M,r:ag+R,t:ag+I,b:ag+W},aj={l:ah+M,r:ah+R,t:ah+I,b:ah+W},L=Ext.Element.data;function T(b,a){return a.charAt(1).toUpperCase()}function J(a){return ad[a]||(ad[a]=a=="float"?(U.cssFloat?"cssFloat":"styleFloat"):a.replace(H,T))}return{adjustWidth:function(c){var b=this;var a=(typeof c=="number");if(a&&b.autoBoxAdjust&&!b.isBorderBox()){c-=(b.getBorderWidth("lr")+b.getPadding("lr"))}return(a&&c<0)?0:c},adjustHeight:function(c){var b=this;var a=(typeof c=="number");if(a&&b.autoBoxAdjust&&!b.isBorderBox()){c-=(b.getBorderWidth("tb")+b.getPadding("tb"))}return(a&&c<0)?0:c},addClass:function(b){var a=this,c,g,d,e=[];if(!Ext.isArray(b)){if(typeof b=="string"&&!this.hasClass(b)){a.dom.className+=" "+b}}else{for(c=0,g=b.length;c<g;c++){d=b[c];if(typeof d=="string"&&(" "+a.dom.className+" ").indexOf(" "+d+" ")==-1){e.push(d)}}if(e.length){a.dom.className+=" "+e.join(" ")}}return a},removeClass:function(a){var h=this,b,e,g,c,d;if(!Ext.isArray(a)){a=[a]}if(h.dom&&h.dom.className){d=h.dom.className.replace(Z,"").split(K);for(b=0,g=a.length;b<g;b++){c=a[b];if(typeof c=="string"){c=c.replace(Z,"");e=d.indexOf(c);if(e!=-1){d.splice(e,1)}}}h.dom.className=d.join(" ")}return h},radioClass:function(b){var a=this.dom.parentNode.childNodes,d,c,e;b=Ext.isArray(b)?b:[b];for(c=0,e=a.length;c<e;c++){d=a[c];if(d&&d.nodeType==1){Ext.fly(d,"_internal").removeClass(b)}}return this.addClass(b)},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(a,b){return this.removeClass(a).addClass(b)},isStyle:function(b,a){return this.getStyle(b)==a},getStyle:function(){return N&&N.getComputedStyle?function(a){var c=this.dom,g,d,e,b;if(c==document){return null}a=J(a);e=(g=c.style[a])?g:(d=N.getComputedStyle(c,""))?d[a]:null;if(a=="marginRight"&&e!="0px"&&!U.correctRightMargin){b=c.style.display;c.style.display="inline-block";e=N.getComputedStyle(c,"").marginRight;c.style.display=b}if(a=="backgroundColor"&&e=="rgba(0, 0, 0, 0)"&&!U.correctTransparentColor){e="transparent"}return e}:function(a){var c=this.dom,e,d;if(c==document){return null}if(a=="opacity"){if(c.style.filter.match){if(e=c.style.filter.match(O)){var b=parseFloat(e[1]);if(!isNaN(b)){return b?b/100:0}}}return 1}a=J(a);return c.style[a]||((d=c.currentStyle)?d[a]:null)}}(),getColor:function(g,e,a){var c=this.getStyle(g),d=(typeof a!="undefined")?a:"#",b;if(!c||(/transparent|inherit/.test(c))){return e}if(/^r/.test(c)){Ext.each(c.slice(4,c.length-1).split(","),function(h){b=parseInt(h,10);d+=(b<16?"0":"")+b.toString(16)})}else{c=c.replace("#","");d+=c.length==3?c.replace(/^(\w)(\w)(\w)$/,"$1$1$2$2$3$3"):c}return(d.length>5?d.toLowerCase():e)},setStyle:function(a,b){var d,c;if(typeof a!="object"){d={};d[a]=b;a=d}for(c in a){b=a[c];c=="opacity"?this.setOpacity(b):this.dom.style[J(c)]=b}return this},setOpacity:function(e,g){var b=this,d=b.dom.style;if(!g||!b.anim){if(Ext.isIE){var c=e<1?"alpha(opacity="+e*100+")":"",a=d.filter.replace(O,"").replace(Z,"");d.zoom=1;d.filter=a+(a.length>0?" ":"")+c}else{d.opacity=e}}else{b.anim({opacity:{to:e}},b.preanim(arguments,1),null,0.35,"easeIn")}return b},clearOpacity:function(){var a=this.dom.style;if(Ext.isIE){if(!Ext.isEmpty(a.filter)){a.filter=a.filter.replace(O,"").replace(Z,"")}}else{a.opacity=a["-moz-opacity"]=a["-khtml-opacity"]=""}return this},getHeight:function(c){var d=this,a=d.dom,b=Ext.isIE&&d.isStyle("display","none"),e=Q.max(a.offsetHeight,b?0:a.clientHeight)||0;e=!c?e:e-d.getBorderWidth("tb")-d.getPadding("tb");return e<0?0:e},getWidth:function(d){var c=this,a=c.dom,b=Ext.isIE&&c.isStyle("display","none"),e=Q.max(a.offsetWidth,b?0:a.clientWidth)||0;e=!d?e:e-c.getBorderWidth("lr")-c.getPadding("lr");return e<0?0:e},setWidth:function(b,c){var a=this;b=a.adjustWidth(b);!c||!a.anim?a.dom.style.width=a.addUnits(b):a.anim({width:{to:b}},a.preanim(arguments,1));return a},setHeight:function(c,b){var a=this;c=a.adjustHeight(c);!b||!a.anim?a.dom.style.height=a.addUnits(c):a.anim({height:{to:c}},a.preanim(arguments,1));return a},getBorderWidth:function(a){return this.addStyles(a,ac)},getPadding:function(a){return this.addStyles(a,ae)},clip:function(){var b=this,a=b.dom;if(!L(a,af)){L(a,af,true);L(a,P,{o:b.getStyle(aa),x:b.getStyle(X),y:b.getStyle(Y)});b.setStyle(aa,V);b.setStyle(X,V);b.setStyle(Y,V)}return b},unclip:function(){var c=this,a=c.dom;if(L(a,af)){L(a,af,false);var b=L(a,P);if(b.o){c.setStyle(aa,b.o)}if(b.x){c.setStyle(X,b.x)}if(b.y){c.setStyle(Y,b.y)}}return c},addStyles:function(h,k){var b=0,a=h.match(ai),c,d,e,g=a.length;for(e=0;e<g;e++){c=a[e];d=c&&parseInt(this.getStyle(k[c]),10);if(d){b+=Q.abs(d)}}return b},margins:aj}}());(function(){var v=Ext.lib.Dom,u="left",q="right",s="top",o="bottom",p="position",t="static",r="relative",n="auto",m="z-index";Ext.Element.addMethods({getX:function(){return v.getX(this.dom)},getY:function(){return v.getY(this.dom)},getXY:function(){return v.getXY(this.dom)},getOffsetsTo:function(a){var b=this.getXY(),c=Ext.fly(a,"_internal").getXY();return[b[0]-c[0],b[1]-c[1]]},setX:function(a,b){return this.setXY([a,this.getY()],this.animTest(arguments,b,1))},setY:function(b,a){return this.setXY([this.getX(),b],this.animTest(arguments,a,1))},setLeft:function(a){this.setStyle(u,this.addUnits(a));return this},setTop:function(a){this.setStyle(s,this.addUnits(a));return this},setRight:function(a){this.setStyle(q,this.addUnits(a));return this},setBottom:function(a){this.setStyle(o,this.addUnits(a));return this},setXY:function(b,a){var c=this;if(!a||!c.anim){v.setXY(c.dom,b)}else{c.anim({points:{to:b}},c.preanim(arguments,1),"motion")}return c},setLocation:function(a,b,c){return this.setXY([a,b],this.animTest(arguments,c,2))},moveTo:function(a,b,c){return this.setXY([a,b],this.animTest(arguments,c,2))},getLeft:function(a){return !a?this.getX():parseInt(this.getStyle(u),10)||0},getRight:function(a){var b=this;return !a?b.getX()+b.getWidth():(b.getLeft(true)+b.getWidth())||0},getTop:function(a){return !a?this.getY():parseInt(this.getStyle(s),10)||0},getBottom:function(a){var b=this;return !a?b.getY()+b.getHeight():(b.getTop(true)+b.getHeight())||0},position:function(b,c,a,d){var e=this;if(!b&&e.isStyle(p,t)){e.setStyle(p,r)}else{if(b){e.setStyle(p,b)}}if(c){e.setStyle(m,c)}if(a||d){e.setXY([a||false,d||false])}},clearPositioning:function(a){a=a||"";this.setStyle({left:a,right:a,top:a,bottom:a,"z-index":"",position:t});return this},getPositioning:function(){var a=this.getStyle(u);var b=this.getStyle(s);return{position:this.getStyle(p),left:a,right:a?"":this.getStyle(q),top:b,bottom:b?"":this.getStyle(o),"z-index":this.getStyle(m)}},setPositioning:function(a){var b=this,c=b.dom.style;b.setStyle(a);if(a.right==n){c.right=""}if(a.bottom==n){c.bottom=""}return b},translatePoints:function(a,b){b=isNaN(a[1])?b:a[1];a=isNaN(a[0])?a:a[0];var e=this,d=e.isStyle(p,r),c=e.getXY(),h=parseInt(e.getStyle(u),10),g=parseInt(e.getStyle(s),10);h=!isNaN(h)?h:(d?0:e.dom.offsetLeft);g=!isNaN(g)?g:(d?0:e.dom.offsetTop);return{left:(a-c[0]+h),top:(b-c[1]+g)}},animTest:function(c,a,b){return !!a&&this.preanim?this.preanim(c,b):false}})})();Ext.Element.addMethods({isScrollable:function(){var b=this.dom;return b.scrollHeight>b.clientHeight||b.scrollWidth>b.clientWidth},scrollTo:function(d,c){this.dom["scroll"+(/top/i.test(d)?"Top":"Left")]=c;return this},getScroll:function(){var l=this.dom,m=document,k=m.body,p=m.documentElement,d,n,o;if(l==m||l==k){if(Ext.isIE&&Ext.isStrict){d=p.scrollLeft;n=p.scrollTop}else{d=window.pageXOffset;n=window.pageYOffset}o={left:d||(k?k.scrollLeft:0),top:n||(k?k.scrollTop:0)}}else{o={left:l.scrollLeft,top:l.scrollTop}}return o}});Ext.Element.VISIBILITY=1;Ext.Element.DISPLAY=2;Ext.Element.OFFSETS=3;Ext.Element.ASCLASS=4;Ext.Element.visibilityCls="x-hide-nosize";Ext.Element.addMethods(function(){var B=Ext.Element,r="opacity",x="visibility",A="display",C="hidden",t="offsets",w="asclass",u="none",F="nosize",E="originalDisplay",D="visibilityMode",z="isVisible",y=B.data,v=function(a){var b=y(a,E);if(b===undefined){y(a,E,b="")}return b},s=function(a){var b=y(a,D);if(b===undefined){y(a,D,b=1)}return b};return{originalDisplay:"",visibilityMode:1,setVisibilityMode:function(a){y(this.dom,D,a);return this},animate:function(d,b,c,a,e){this.anim(d,{duration:b,callback:c,easing:a},e);return this},anim:function(d,c,g,a,e,h){g=g||"run";c=c||{};var b=this,k=Ext.lib.Anim[g](b.dom,d,(c.duration||a)||0.35,(c.easing||e)||"easeOut",function(){if(h){h.call(b)}if(c.callback){c.callback.call(c.scope||b,b,c)}},b);c.anim=k;return k},preanim:function(b,a){return !b[a]?false:(typeof b[a]=="object"?b[a]:{duration:b[a+1],callback:b[a+2],easing:b[a+3]})},isVisible:function(){var c=this,a=c.dom,b=y(a,z);if(typeof b=="boolean"){return b}b=!c.isStyle(x,C)&&!c.isStyle(A,u)&&!((s(a)==B.ASCLASS)&&c.hasClass(c.visibilityCls||B.visibilityCls));y(a,z,b);return b},setVisible:function(h,a){var d=this,l,b,c,e,g=d.dom,k=s(g);if(typeof a=="string"){switch(a){case A:k=B.DISPLAY;break;case x:k=B.VISIBILITY;break;case t:k=B.OFFSETS;break;case F:case w:k=B.ASCLASS;break}d.setVisibilityMode(k);a=false}if(!a||!d.anim){if(k==B.ASCLASS){d[h?"removeClass":"addClass"](d.visibilityCls||B.visibilityCls)}else{if(k==B.DISPLAY){return d.setDisplayed(h)}else{if(k==B.OFFSETS){if(!h){d.hideModeStyles={position:d.getStyle("position"),top:d.getStyle("top"),left:d.getStyle("left")};d.applyStyles({position:"absolute",top:"-10000px",left:"-10000px"})}else{d.applyStyles(d.hideModeStyles||{position:"",top:"",left:""});delete d.hideModeStyles}}else{d.fixDisplay();g.style.visibility=h?"visible":C}}}}else{if(h){d.setOpacity(0.01);d.setVisible(true)}d.anim({opacity:{to:(h?1:0)}},d.preanim(arguments,1),null,0.35,"easeIn",function(){h||d.setVisible(false).setOpacity(1)})}y(g,z,h);return d},hasMetrics:function(){var a=this.dom;return this.isVisible()||(s(a)==B.VISIBILITY)},toggle:function(b){var a=this;a.setVisible(!a.isVisible(),a.preanim(arguments,0));return a},setDisplayed:function(a){if(typeof a=="boolean"){a=a?v(this.dom):u}this.setStyle(A,a);return this},fixDisplay:function(){var a=this;if(a.isStyle(A,u)){a.setStyle(x,C);a.setStyle(A,v(this.dom));if(a.isStyle(A,u)){a.setStyle(A,"block")}}},hide:function(a){if(typeof a=="string"){this.setVisible(false,a);return this}this.setVisible(false,this.preanim(arguments,0));return this},show:function(a){if(typeof a=="string"){this.setVisible(true,a);return this}this.setVisible(true,this.preanim(arguments,0));return this}}}());(function(){var C=null,M=undefined,S=true,H=false,T="setX",V="setY",ab="setXY",P="left",R="bottom",I="top",Q="right",K="height",W="width",U="points",E="hidden",O="absolute",G="visible",X="motion",N="position",J="easeOut",Y=new Ext.Element.Flyweight(),F={},D=function(a){return a||{}},L=function(a){Y.dom=a;Y.id=Ext.id(a);return Y},Z=function(a){if(!F[a]){F[a]=[]}return F[a]},aa=function(a,b){F[a]=b};Ext.enableFx=S;Ext.Fx={switchStatements:function(b,a,c){return a.apply(this,c[b])},slideIn:function(m,p){p=D(p);var k=this,n=k.dom,e=n.style,c,b,g,q,a,e,l,d,h,o;m=m||"t";k.queueFx(p,function(){c=L(n).getXY();L(n).fixDisplay();b=L(n).getFxRestore();g={x:c[0],y:c[1],0:c[0],1:c[1],width:n.offsetWidth,height:n.offsetHeight};g.right=g.x+g.width;g.bottom=g.y+g.height;L(n).setWidth(g.width).setHeight(g.height);q=L(n).fxWrap(b.pos,p,E);e.visibility=G;e.position=O;function s(){L(n).fxUnwrap(q,b.pos,p);e.width=b.width;e.height=b.height;L(n).afterFx(p)}d={to:[g.x,g.y]};h={to:g.width};o={to:g.height};function r(y,B,x,A,v,t,ae,af,ag,w,z){var u={};L(y).setWidth(x).setHeight(A);if(L(y)[v]){L(y)[v](t)}B[ae]=B[af]="0";if(ag){u.width=ag}if(w){u.height=w}if(z){u.points=z}return u}l=L(n).switchStatements(m.toLowerCase(),r,{t:[q,e,g.width,0,C,C,P,R,C,o,C],l:[q,e,0,g.height,C,C,Q,I,h,C,C],r:[q,e,g.width,g.height,T,g.right,P,I,C,C,d],b:[q,e,g.width,g.height,V,g.bottom,P,I,C,o,d],tl:[q,e,0,0,C,C,Q,R,h,o,d],bl:[q,e,0,0,V,g.y+g.height,Q,I,h,o,d],br:[q,e,0,0,ab,[g.right,g.bottom],P,I,h,o,d],tr:[q,e,0,0,T,g.x+g.width,P,R,h,o,d]});e.visibility=G;L(q).show();arguments.callee.anim=L(q).fxanim(l,p,X,0.5,J,s)});return k},slideOut:function(l,n){n=D(n);var h=this,m=h.dom,d=m.style,c=h.getXY(),a,b,g,e,k={to:0};l=l||"t";h.queueFx(n,function(){b=L(m).getFxRestore();g={x:c[0],y:c[1],0:c[0],1:c[1],width:m.offsetWidth,height:m.offsetHeight};g.right=g.x+g.width;g.bottom=g.y+g.height;L(m).setWidth(g.width).setHeight(g.height);a=L(m).fxWrap(b.pos,n,G);d.visibility=G;d.position=O;L(a).setWidth(g.width).setHeight(g.height);function p(){n.useDisplay?L(m).setDisplayed(H):L(m).hide();L(m).fxUnwrap(a,b.pos,n);d.width=b.width;d.height=b.height;L(m).afterFx(n)}function o(z,r,t,q,v,s,w,u,x){var y={};z[r]=z[t]="0";y[q]=v;if(s){y[s]=w}if(u){y[u]=x}return y}e=L(m).switchStatements(l.toLowerCase(),o,{t:[d,P,R,K,k],l:[d,Q,I,W,k],r:[d,P,I,W,k,U,{to:[g.right,g.y]}],b:[d,P,I,K,k,U,{to:[g.x,g.bottom]}],tl:[d,Q,R,W,k,K,k],bl:[d,Q,I,W,k,K,k,U,{to:[g.x,g.bottom]}],br:[d,P,I,W,k,K,k,U,{to:[g.x+g.width,g.bottom]}],tr:[d,P,R,W,k,K,k,U,{to:[g.right,g.y]}]});arguments.callee.anim=L(a).fxanim(e,n,X,0.5,J,p)});return h},puff:function(a){a=D(a);var c=this,b=c.dom,g=b.style,e,h,d;c.queueFx(a,function(){e=L(b).getWidth();h=L(b).getHeight();L(b).clearOpacity();L(b).show();d=L(b).getFxRestore();function k(){a.useDisplay?L(b).setDisplayed(H):L(b).hide();L(b).clearOpacity();L(b).setPositioning(d.pos);g.width=d.width;g.height=d.height;g.fontSize="";L(b).afterFx(a)}arguments.callee.anim=L(b).fxanim({width:{to:L(b).adjustWidth(e*2)},height:{to:L(b).adjustHeight(h*2)},points:{by:[-e*0.5,-h*0.5]},opacity:{to:0},fontSize:{to:200,unit:"%"}},a,X,0.5,J,k)});return c},switchOff:function(a){a=D(a);var c=this,b=c.dom,e=b.style,d;c.queueFx(a,function(){L(b).clearOpacity();L(b).clip();d=L(b).getFxRestore();function g(){a.useDisplay?L(b).setDisplayed(H):L(b).hide();L(b).clearOpacity();L(b).setPositioning(d.pos);e.width=d.width;e.height=d.height;L(b).afterFx(a)}L(b).fxanim({opacity:{to:0.3}},C,C,0.1,C,function(){L(b).clearOpacity();(function(){L(b).fxanim({height:{to:1},points:{by:[0,L(b).getHeight()*0.5]}},a,X,0.3,"easeIn",g)}).defer(100)})});return c},highlight:function(e,a){a=D(a);var c=this,b=c.dom,h=a.attr||"backgroundColor",g={},d;c.queueFx(a,function(){L(b).clearOpacity();L(b).show();function k(){b.style[h]=d;L(b).afterFx(a)}d=b.style[h];g[h]={from:e||"ffff9c",to:a.endColor||L(b).getColor(h)||"ffffff"};arguments.callee.anim=L(b).fxanim(g,a,"color",1,"easeIn",k)});return c},frame:function(h,d,a){a=D(a);var e=this,b=e.dom,g,c;e.queueFx(a,function(){h=h||"#C3DAF9";if(h.length==6){h="#"+h}d=d||1;L(b).show();var n=L(b).getXY(),l={x:n[0],y:n[1],0:n[0],1:n[1],width:b.offsetWidth,height:b.offsetHeight},m=function(){g=L(document.body||document.documentElement).createChild({style:{position:O,"z-index":35000,border:"0px solid "+h}});return g.queueFx({},k)};arguments.callee.anim={isAnimated:true,stop:function(){d=0;g.stopFx()}};function k(){var o=Ext.isBorderBox?2:1;c=g.anim({top:{from:l.y,to:l.y-20},left:{from:l.x,to:l.x-20},borderWidth:{from:0,to:10},opacity:{from:1,to:0},height:{from:l.height,to:l.height+20*o},width:{from:l.width,to:l.width+20*o}},{duration:a.duration||1,callback:function(){g.remove();--d>0?m():L(b).afterFx(a)}});arguments.callee.anim={isAnimated:true,stop:function(){c.stop()}}}m()});return e},pause:function(a){var b=this.dom,c;this.queueFx({},function(){c=setTimeout(function(){L(b).afterFx({})},a*1000);arguments.callee.anim={isAnimated:true,stop:function(){clearTimeout(c);L(b).afterFx({})}}});return this},fadeIn:function(b){b=D(b);var d=this,c=d.dom,a=b.endOpacity||1;d.queueFx(b,function(){L(c).setOpacity(0);L(c).fixDisplay();c.style.visibility=G;arguments.callee.anim=L(c).fxanim({opacity:{to:a}},b,C,0.5,J,function(){if(a==1){L(c).clearOpacity()}L(c).afterFx(b)})});return d},fadeOut:function(b){b=D(b);var d=this,c=d.dom,e=c.style,a=b.endOpacity||0;d.queueFx(b,function(){arguments.callee.anim=L(c).fxanim({opacity:{to:a}},b,C,0.5,J,function(){if(a==0){Ext.Element.data(c,"visibilityMode")==Ext.Element.DISPLAY||b.useDisplay?e.display="none":e.visibility=E;L(c).clearOpacity()}L(c).afterFx(b)})});return d},scale:function(c,b,a){this.shift(Ext.apply({},a,{width:c,height:b}));return this},shift:function(a){a=D(a);var b=this.dom,c={};this.queueFx(a,function(){for(var d in a){if(a[d]!=M){c[d]={to:a[d]}}}c.width?c.width.to=L(b).adjustWidth(a.width):c;c.height?c.height.to=L(b).adjustWidth(a.height):c;if(c.x||c.y||c.xy){c.points=c.xy||{to:[c.x?c.x.to:L(b).getX(),c.y?c.y.to:L(b).getY()]}}arguments.callee.anim=L(b).fxanim(c,a,X,0.35,J,function(){L(b).afterFx(a)})});return this},ghost:function(l,a){a=D(a);var h=this,m=h.dom,d=m.style,g={opacity:{to:0},points:{}},c=g.points,b,e,k;l=l||"b";h.queueFx(a,function(){b=L(m).getFxRestore();e=L(m).getWidth();k=L(m).getHeight();function n(){a.useDisplay?L(m).setDisplayed(H):L(m).hide();L(m).clearOpacity();L(m).setPositioning(b.pos);d.width=b.width;d.height=b.height;L(m).afterFx(a)}c.by=L(m).switchStatements(l.toLowerCase(),function(o,p){return[o,p]},{t:[0,-k],l:[-e,0],r:[e,0],b:[0,k],tl:[-e,-k],bl:[-e,k],br:[e,k],tr:[e,-k]});arguments.callee.anim=L(m).fxanim(g,a,X,0.5,J,n)});return h},syncFx:function(){var a=this;a.fxDefaults=Ext.apply(a.fxDefaults||{},{block:H,concurrent:S,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=Z(this.dom.id)[0];if(a){a.call(this)}},hasActiveFx:function(){return Z(this.dom.id)[0]},stopFx:function(d){var c=this,a=c.dom.id;if(c.hasActiveFx()){var b=Z(a)[0];if(b&&b.anim){if(b.anim.isAnimated){aa(a,[b]);b.anim.stop(d!==undefined?d:S)}else{aa(a,[])}}}return c},beforeFx:function(a){if(this.hasActiveFx()&&!a.concurrent){if(a.stopFx){this.stopFx();return S}return H}return S},hasFxBlock:function(){var a=Z(this.dom.id);return a&&a[0]&&a[0].block},queueFx:function(a,d){var c=L(this.dom);if(!c.hasFxBlock()){Ext.applyIf(a,c.fxDefaults);if(!a.concurrent){var b=c.beforeFx(a);d.block=a.block;Z(c.dom.id).push(d);if(b){c.nextFx()}}else{d.call(c)}}return c},fxWrap:function(a,c,e){var d=this.dom,g,h;if(!c.wrap||!(g=Ext.getDom(c.wrap))){if(c.fixPosition){h=L(d).getXY()}var b=document.createElement("div");b.style.visibility=e;g=d.parentNode.insertBefore(b,d);L(g).setPositioning(a);if(L(g).isStyle(N,"static")){L(g).position("relative")}L(d).clearPositioning("auto");L(g).clip();g.appendChild(d);if(h){L(g).setXY(h)}}return g},fxUnwrap:function(d,a,b){var c=this.dom;L(c).clearPositioning();L(c).setPositioning(a);if(!b.wrap){var e=L(d).dom.parentNode;e.insertBefore(c,d);L(d).remove()}},getFxRestore:function(){var a=this.dom.style;return{pos:this.getPositioning(),width:a.width,height:a.height}},afterFx:function(b){var c=this.dom,a=c.id;if(b.afterStyle){L(c).setStyle(b.afterStyle)}if(b.afterCls){L(c).addClass(b.afterCls)}if(b.remove==S){L(c).remove()}if(b.callback){b.callback.call(b.scope,L(c))}if(!b.concurrent){Z(a).shift();L(c).nextFx()}},fxanim:function(d,c,g,b,e,h){g=g||"run";c=c||{};var a=Ext.lib.Anim[g](this.dom,d,(c.duration||b)||0.35,(c.easing||e)||J,h,this);c.anim=a;return a}};Ext.Fx.resize=Ext.Fx.scale;Ext.Element.addMethods(Ext.Fx)})();Ext.CompositeElementLite=function(c,d){this.elements=[];this.add(c,d);this.el=new Ext.Element.Flyweight()};Ext.CompositeElementLite.prototype={isComposite:true,getElement:function(d){var c=this.el;c.dom=d;c.id=d.id;return c},transformElement:function(b){return Ext.getDom(b)},getCount:function(){return this.elements.length},add:function(n,h){var m=this,l=m.elements;if(!n){return this}if(typeof n=="string"){n=Ext.Element.selectorFunction(n,h)}else{if(n.isComposite){n=n.elements}else{if(!Ext.isIterable(n)){n=[n]}}}for(var o=0,k=n.length;o<k;++o){l.push(m.transformElement(n[o]))}return m},invoke:function(o,e){var n=this,p=n.elements,l=p.length,m,q;for(q=0;q<l;q++){m=p[q];if(m){Ext.Element.prototype[o].apply(n.getElement(m),e)}}return n},item:function(e){var h=this,k=h.elements[e],g=null;if(k){g=h.getElement(k)}return g},addListener:function(e,o,p,q){var r=this.elements,n=r.length,s,m;for(s=0;s<n;s++){m=r[s];if(m){Ext.EventManager.on(m,e,o,p||m,q)}}return this},each:function(o,p){var n=this,q=n.elements,l=q.length,e,m;for(e=0;e<l;e++){m=q[e];if(m){m=this.getElement(m);if(o.call(p||m,m,n,e)===false){break}}}return n},fill:function(d){var c=this;c.elements=[];c.add(d);return c},filter:function(g){var e=[],h=this,k=Ext.isFunction(g)?g:function(a){return a.is(g)};h.each(function(a,c,b){if(k(a,b)!==false){e[e.length]=h.transformElement(a)}});h.elements=e;return h},indexOf:function(b){return this.elements.indexOf(this.transformElement(b))},replaceElement:function(l,m,h){var d=!isNaN(l)?l:this.indexOf(l),k;if(d>-1){m=Ext.getDom(m);if(h){k=this.elements[d];k.parentNode.insertBefore(m,k);Ext.removeNode(k)}this.elements.splice(d,1,m)}return this},clear:function(){this.elements=[]}};Ext.CompositeElementLite.prototype.on=Ext.CompositeElementLite.prototype.addListener;Ext.CompositeElementLite.importElementMethods=function(){var g,d=Ext.Element.prototype,e=Ext.CompositeElementLite.prototype;for(g in d){if(typeof d[g]=="function"){(function(a){e[a]=e[a]||function(){return this.invoke(a,arguments)}}).call(e,g)}}};Ext.CompositeElementLite.importElementMethods();if(Ext.DomQuery){Ext.Element.selectorFunction=Ext.DomQuery.select}Ext.Element.select=function(e,d){var g;if(typeof e=="string"){g=Ext.Element.selectorFunction(e,d)}else{if(e.length!==undefined){g=e}else{throw"Invalid selector"}}return new Ext.CompositeElementLite(g)};Ext.select=Ext.Element.select;(function(){var k="beforerequest",p="requestcomplete",q="requestexception",n=undefined,r="load",m="POST",l="GET",o=window;Ext.data.Connection=function(a){Ext.apply(this,a);this.addEvents(k,p,q);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(b){var v=this;if(v.fireEvent(k,v,b)){if(b.el){if(!Ext.isEmpty(b.indicatorText)){v.indicatorText='<div class="loading-indicator">'+b.indicatorText+"</div>"}if(v.indicatorText){Ext.getDom(b.el).innerHTML=v.indicatorText}b.success=(Ext.isFunction(b.success)?b.success:function(){}).createInterceptor(function(s){Ext.getDom(b.el).innerHTML=s.responseText})}var d=b.params,e=b.url||v.url,g,a={success:v.handleResponse,failure:v.handleFailure,scope:v,argument:{options:b},timeout:Ext.num(b.timeout,v.timeout)},c,h;if(Ext.isFunction(d)){d=d.call(b.scope||o,b)}d=Ext.urlEncode(v.extraParams,Ext.isObject(d)?Ext.urlEncode(d):d);if(Ext.isFunction(e)){e=e.call(b.scope||o,b)}if((c=Ext.getDom(b.form))){e=e||c.action;if(b.isUpload||(/multipart\/form-data/i.test(c.getAttribute("enctype")))){return v.doFormUpload.call(v,b,d,e)}h=Ext.lib.Ajax.serializeForm(c);d=d?(d+"&"+h):h}g=b.method||v.method||((d||b.xmlData||b.jsonData)?m:l);if(g===l&&(v.disableCaching&&b.disableCaching!==false)||b.disableCaching===true){var w=b.disableCachingParam||v.disableCachingParam;e=Ext.urlAppend(e,w+"="+(new Date().getTime()))}b.headers=Ext.apply(b.headers||{},v.defaultHeaders||{});if(b.autoAbort===true||v.autoAbort){v.abort()}if((g==l||b.xmlData||b.jsonData)&&d){e=Ext.urlAppend(e,d);d=""}return(v.transId=Ext.lib.Ajax.request(g,e,a,d,b))}else{return b.callback?b.callback.apply(b.scope,[b,n,n]):null}},isLoading:function(a){return a?Ext.lib.Ajax.isCallInProgress(a):!!this.transId},abort:function(a){if(a||this.isLoading()){Ext.lib.Ajax.abort(a||this.transId)}},handleResponse:function(b){this.transId=false;var a=b.argument.options;b.argument=a?a.argument:null;this.fireEvent(p,this,b,a);if(a.success){a.success.call(a.scope,b,a)}if(a.callback){a.callback.call(a.scope,a,true,b)}},handleFailure:function(c,a){this.transId=false;var b=c.argument.options;c.argument=b?b.argument:null;this.fireEvent(q,this,c,b,a);if(b.failure){b.failure.call(b.scope,c,b)}if(b.callback){b.callback.call(b.scope,b,false,c)}},doFormUpload:function(a,h,g){var e=Ext.id(),x=document,B=x.createElement("iframe"),d=Ext.getDom(a.form),y=[],z,b="multipart/form-data",c={target:d.target,method:d.method,encoding:d.encoding,enctype:d.enctype,action:d.action};Ext.fly(B).set({id:e,name:e,cls:"x-hidden",src:Ext.SSL_SECURE_URL});x.body.appendChild(B);if(Ext.isIE){document.frames[e].name=e}Ext.fly(d).set({target:e,method:m,enctype:b,encoding:b,action:g||c.action});Ext.iterate(Ext.urlDecode(h,false),function(s,t){z=x.createElement("input");Ext.fly(z).set({type:"hidden",value:t,name:s});d.appendChild(z);y.push(z)});function A(){var C=this,t={responseText:"",responseXML:null,argument:a.argument},w,s;try{w=B.contentWindow.document||B.contentDocument||o.frames[e].document;if(w){if(w.body){if(/textarea/i.test((s=w.body.firstChild||{}).tagName)){t.responseText=s.value}else{t.responseText=w.body.innerHTML}}t.responseXML=w.XMLDocument||w}}catch(v){}Ext.EventManager.removeListener(B,r,A,C);C.fireEvent(p,C,t,a);function u(F,G,H){if(Ext.isFunction(F)){F.apply(G,H)}}u(a.success,a.scope,[t,a]);u(a.callback,a.scope,[a,true,t]);if(!C.debugUploads){setTimeout(function(){Ext.removeNode(B)},100)}}Ext.EventManager.on(B,r,A,this);d.submit();Ext.fly(d).set(c);Ext.each(y,function(s){Ext.removeNode(s)})}})})();Ext.Ajax=new Ext.data.Connection({autoAbort:false,serializeForm:function(b){return Ext.lib.Ajax.serializeForm(b)}});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":"\\f","\r":"\\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.EventManager=function(){var Q,N,V=false,T=Ext.isGecko||Ext.isWebKit||Ext.isSafari,P=Ext.lib.Event,L=Ext.lib.Dom,ab=document,O=window,K="DOMContentLoaded",I="complete",Y=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/,H=[];function R(d){var a=false,e=0,g=H.length,c=false,b;if(d){if(d.getElementById||d.navigator){for(;e<g;++e){b=H[e];if(b.el===d){a=b.id;break}}if(!a){a=Ext.id(d);H.push({id:a,el:d});c=true}}else{a=Ext.id(d)}if(!Ext.elCache[a]){Ext.Element.addToCache(new Ext.Element(d),a);if(c){Ext.elCache[a].skipGC=true}}}return a}function S(l,h,d,k,m,b){l=Ext.getDom(l);var a=R(l),c=Ext.elCache[a].events,g;g=P.on(l,h,m);c[h]=c[h]||[];c[h].push([d,m,b,g,k]);if(l.addEventListener&&h=="mousewheel"){var e=["DOMMouseScroll",m,false];l.addEventListener.apply(l,e);Ext.EventManager.addListener(O,"unload",function(){l.removeEventListener.apply(l,e)})}if(l==ab&&h=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.addListener(m)}}function aa(){if(window!=top){return false}try{ab.documentElement.doScroll("left")}catch(a){return false}ac();return true}function M(a){if(Ext.isIE&&aa()){return true}if(ab.readyState==I){ac();return true}V||(N=setTimeout(arguments.callee,2));return false}var U;function W(a){U||(U=Ext.query("style, link[rel=stylesheet]"));if(U.length==ab.styleSheets.length){ac();return true}V||(N=setTimeout(arguments.callee,2));return false}function D(a){ab.removeEventListener(K,arguments.callee,false);W()}function ac(a){if(!V){V=true;if(N){clearTimeout(N)}if(T){ab.removeEventListener(K,ac,false)}if(Ext.isIE&&M.bindIE){ab.detachEvent("onreadystatechange",M)}P.un(O,"load",arguments.callee)}if(Q&&!Ext.isReady){Ext.isReady=true;Q.fire();Q.listeners=[]}}function ad(){Q||(Q=new Ext.util.Event());if(T){ab.addEventListener(K,ac,false)}if(Ext.isIE){if(!M()){M.bindIE=true;ab.attachEvent("onreadystatechange",M)}}else{if(Ext.isOpera){(ab.readyState==I&&W())||ab.addEventListener(K,D,false)}else{if(Ext.isWebKit){M()}}}P.on(O,"load",ac)}function E(b,a){return function(){var c=Ext.toArray(arguments);if(a.target==Ext.EventObject.setEvent(c[0]).target){b.apply(this,c)}}}function F(b,a,c){return function(d){c.delay(a.buffer,b,null,[new Ext.EventObjectImpl(d)])}}function J(a,b,e,c,d){return function(g){Ext.EventManager.removeListener(b,e,c,d);a(g)}}function Z(b,a,c){return function(d){var e=new Ext.util.DelayedTask(b);if(!c.tasks){c.tasks=[]}c.tasks.push(e);e.delay(a.delay||10,b,null,[new Ext.EventObjectImpl(d)])}}function X(e,g,a,c,b){var l=(!a||typeof a=="boolean")?{}:a,k=Ext.getDom(e),h;c=c||l.fn;b=b||l.scope;if(!k){throw'Error listening for "'+g+'". Element "'+e+"\" doesn't exist."}function d(m){if(!Ext){return}m=Ext.EventObject.setEvent(m);var n;if(l.delegate){if(!(n=m.getTarget(l.delegate,k))){return}}else{n=m.target}if(l.stopEvent){m.stopEvent()}if(l.preventDefault){m.preventDefault()}if(l.stopPropagation){m.stopPropagation()}if(l.normalized===false){m=m.browserEvent}c.call(b||k,m,n,l)}if(l.target){d=E(d,l)}if(l.delay){d=Z(d,l,c)}if(l.single){d=J(d,k,g,c,b)}if(l.buffer){h=new Ext.util.DelayedTask(d);d=F(d,l,h)}S(k,g,c,h,d,b);return d}var G={addListener:function(g,k,d,e,h){if(typeof k=="object"){var a=k,c,b;for(c in a){b=a[c];if(!Y.test(c)){if(Ext.isFunction(b)){X(g,c,a,b,a.scope)}else{X(g,c,b)}}}}else{X(g,k,h,d,e)}},removeListener:function(n,h,c,b){n=Ext.getDom(n);var a=R(n),e=n&&(Ext.elCache[a].events)[h]||[],o,k,m,l,g,d;for(k=0,g=e.length;k<g;k++){if(Ext.isArray(d=e[k])&&d[0]==c&&(!b||d[2]==b)){if(d[4]){d[4].cancel()}l=c.tasks&&c.tasks.length;if(l){while(l--){c.tasks[l].cancel()}delete c.tasks}o=d[1];P.un(n,h,P.extAdapter?d[3]:o);if(o&&n.addEventListener&&h=="mousewheel"){n.removeEventListener("DOMMouseScroll",o,false)}if(o&&n==ab&&h=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.removeListener(o)}e.splice(k,1);if(e.length===0){delete Ext.elCache[a].events[h]}for(l in Ext.elCache[a].events){return false}Ext.elCache[a].events={};return false}}},removeAll:function(m){m=Ext.getDom(m);var n=R(m),e=Ext.elCache[n]||{},b=e.events||{},g,h,d,l,c,k,a;for(l in b){if(b.hasOwnProperty(l)){g=b[l];for(h=0,d=g.length;h<d;h++){c=g[h];if(c[4]){c[4].cancel()}if(c[0].tasks&&(k=c[0].tasks.length)){while(k--){c[0].tasks[k].cancel()}delete c.tasks}a=c[1];P.un(m,l,P.extAdapter?c[3]:a);if(m.addEventListener&&a&&l=="mousewheel"){m.removeEventListener("DOMMouseScroll",a,false)}if(a&&m==ab&&l=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.removeListener(a)}}}}if(Ext.elCache[n]){Ext.elCache[n].events={}}},getListeners:function(c,g){c=Ext.getDom(c);var a=R(c),e=Ext.elCache[a]||{},b=e.events||{},d=[];if(b&&b[g]){return b[g]}else{return null}},purgeElement:function(k,a,g){k=Ext.getDom(k);var l=R(k),c=Ext.elCache[l]||{},b=c.events||{},h,d,e;if(g){if(b&&b.hasOwnProperty(g)){d=b[g];for(h=0,e=d.length;h<e;h++){Ext.EventManager.removeListener(k,g,d[h][0])}}}else{Ext.EventManager.removeAll(k)}if(a&&k&&k.childNodes){for(h=0,e=k.childNodes.length;h<e;h++){Ext.EventManager.purgeElement(k.childNodes[h],a,g)}}},_unload:function(){var e;for(e in Ext.elCache){Ext.EventManager.removeAll(e)}delete Ext.elCache;delete Ext.Element._flyweights;var a,d,b,c=Ext.lib.Ajax;(typeof c.conn=="object")?d=c.conn:d={};for(b in d){a=d[b];if(a){c.abort({conn:a,tId:b})}}},onDocumentReady:function(a,b,c){if(Ext.isReady){Q||(Q=new Ext.util.Event());Q.addListener(a,b,c);Q.fire();Q.listeners=[]}else{if(!Q){ad()}c=c||{};c.delay=c.delay||1;Q.addListener(a,b,c)}},fireDocReady:ac};G.on=G.addListener;G.un=G.removeListener;G.stoppedMouseDownEvent=new Ext.util.Event();return G}();Ext.onReady=Ext.EventManager.onDocumentReady;(function(){var b=function(){var g=document.body||document.getElementsByTagName("body")[0];if(!g){return false}var a=[" ",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){a.push("ext-safari "+(Ext.isSafari2?"ext-safari2":(Ext.isSafari3?"ext-safari3":"ext-safari4")))}else{if(Ext.isChrome){a.push("ext-chrome")}}if(Ext.isMac){a.push("ext-mac")}if(Ext.isLinux){a.push("ext-linux")}if(Ext.isStrict||Ext.isBorderBox){var e=g.parentNode;if(e){Ext.fly(e,"_internal").addClass(((Ext.isStrict&&Ext.isIE)||(!Ext.enableForcedBoxModel&&!Ext.isIE))?" ext-strict":" ext-border-box")}}if(Ext.enableForcedBoxModel&&!Ext.isIE){Ext.isForcedBorderBox=true;a.push("ext-forced-border-box")}Ext.fly(g,"_internal").addClass(a);return true};if(!b()){Ext.onReady(b)}})();(function(){var c=Ext.apply(Ext.supports,{correctRightMargin:true,correctTransparentColor:true,cssFloat:true});var d=function(){var a=document.createElement("div"),b=document,k,h;a.innerHTML='<div style="height:30px;width:50px;"><div style="height:20px;width:20px;"></div></div><div style="float:left;background-color:transparent;">';b.body.appendChild(a);h=a.lastChild;if((k=b.defaultView)){if(k.getComputedStyle(a.firstChild.firstChild,null).marginRight!="0px"){c.correctRightMargin=false}if(k.getComputedStyle(h,null).backgroundColor!="transparent"){c.correctTransparentColor=false}}c.cssFloat=!!h.style.cssFloat;b.body.removeChild(a)};if(Ext.isReady){d()}else{Ext.onReady(d)}})();Ext.EventObject=function(){var e=Ext.lib.Event,k=/(dbl)?click/,g={3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35},h=Ext.isIE?{1:0,4:1,2:2}:{0:0,1:1,2:2};Ext.EventObjectImpl=function(a){if(a){this.setEvent(a.browserEvent||a)}};Ext.EventObjectImpl.prototype={setEvent:function(a){var b=this;if(a==b||(a&&a.browserEvent)){return a}b.browserEvent=a;if(a){b.button=a.button?h[a.button]:(a.which?a.which-1:-1);if(k.test(a.type)&&b.button==-1){b.button=0}b.type=a.type;b.shiftKey=a.shiftKey;b.ctrlKey=a.ctrlKey||a.metaKey||false;b.altKey=a.altKey;b.keyCode=a.keyCode;b.charCode=a.charCode;b.target=e.getTarget(a);b.xy=e.getXY(a)}else{b.button=-1;b.shiftKey=false;b.ctrlKey=false;b.altKey=false;b.keyCode=0;b.charCode=0;b.target=null;b.xy=[0,0]}return b},stopEvent:function(){var a=this;if(a.browserEvent){if(a.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(a)}e.stopEvent(a.browserEvent)}},preventDefault:function(){if(this.browserEvent){e.preventDefault(this.browserEvent)}},stopPropagation:function(){var a=this;if(a.browserEvent){if(a.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(a)}e.stopPropagation(a.browserEvent)}},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.normalizeKey(this.keyCode||this.charCode)},normalizeKey:function(a){return Ext.isSafari?(g[a]||a):a},getPageX:function(){return this.xy[0]},getPageY:function(){return this.xy[1]},getXY:function(){return this.xy},getTarget:function(b,a,c){return b?Ext.fly(this.target).findParent(b,a,c):(c?Ext.get(this.target):this.target)},getRelatedTarget:function(){return this.browserEvent?e.getRelatedTarget(this.browserEvent):null},getWheelDelta:function(){var b=this.browserEvent;var a=0;if(b.wheelDelta){a=b.wheelDelta/120}else{if(b.detail){a=-b.detail/3}}return a},within:function(b,a,d){if(b){var c=this[a?"getRelatedTarget":"getTarget"]();return c&&((d?(c==Ext.getDom(b)):false)||Ext.fly(b).contains(c))}return false}};return new Ext.EventObjectImpl()}();Ext.Loader=Ext.apply({},{load:function(p,q,o,v){var o=o||this,s=document.getElementsByTagName("head")[0],w=document.createDocumentFragment(),x=p.length,r=0,t=this;var n=function(a){s.appendChild(t.buildScriptTag(p[a],u))};var u=function(){r++;if(x==r&&typeof q=="function"){q.call(o)}else{if(v===true){n(r)}}};if(v===true){n.call(this,0)}else{Ext.each(p,function(a,b){w.appendChild(this.buildScriptTag(a,u))},this);s.appendChild(w)}},buildScriptTag:function(d,g){var e=document.createElement("script");e.type="text/javascript";e.src=d;if(e.readyState){e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete"){e.onreadystatechange=null;g()}}}else{e.onload=g}return e}});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 g=Ext,e=0,d=null;return{emptyFn:function(){},BLANK_IMAGE_URL:Ext.isIE6||Ext.isIE7||Ext.isAir?"http://www.extjs.com/s.gif":"data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",extendX:function(b,a){return Ext.extend(b,a(b.prototype))},getDoc:function(){return Ext.get(document)},num:function(a,b){a=Number(Ext.isEmpty(a)||Ext.isArray(a)||typeof a=="boolean"||(typeof a=="string"&&a.trim().length==0)?NaN:a);return isNaN(a)?b:a},value:function(a,c,b){return Ext.isEmpty(a,b)?c:a},escapeRe:function(a){return a.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},sequence:function(a,k,b,c){a[k]=a[k].createSequence(b,c)},addBehaviors:function(a){if(!Ext.isReady){Ext.onReady(function(){Ext.addBehaviors(a)})}else{var k={},b,l,c;for(l in a){if((b=l.split("@"))[1]){c=b[0];if(!k[c]){k[c]=Ext.select(c)}k[c].on(b[1],a[l])}}k=null}},getScrollBarWidth:function(c){if(!Ext.isReady){return 0}if(c===true||d===null){var a=Ext.getBody().createChild('<div class="x-hide-offsets" style="width:100px;height:50px;overflow:hidden;"><div style="height:200px;"></div></div>'),b=a.child("div",true);var k=b.offsetWidth;a.setStyle("overflow",(Ext.isWebKit||Ext.isGecko)?"auto":"scroll");var l=b.offsetWidth;a.remove();d=k-l+2}return d},combine:function(){var c=arguments,l=c.length,a=[];for(var b=0;b<l;b++){var m=c[b];if(Ext.isArray(m)){a=a.concat(m)}else{if(m.length!==undefined&&!m.substr){a=a.concat(Array.prototype.slice.call(m,0))}else{a.push(m)}}}return a},copyTo:function(c,b,a){if(typeof a=="string"){a=a.split(/[,;\s]/)}Ext.each(a,function(k){if(b.hasOwnProperty(k)){c[k]=b[k]}},this);return c},destroy:function(){Ext.each(arguments,function(a){if(a){if(Ext.isArray(a)){this.destroy.apply(this,a)}else{if(typeof a.destroy=="function"){a.destroy()}else{if(a.dom){a.remove()}}}}},this)},destroyMembers:function(a,c,o,n){for(var b=1,p=arguments,q=p.length;b<q;b++){Ext.destroy(a[p[b]]);delete a[p[b]]}},clean:function(b){var a=[];Ext.each(b,function(c){if(!!c){a.push(c)}});return a},unique:function(c){var b=[],a={};Ext.each(c,function(k){if(!a[k]){b.push(k)}a[k]=true});return b},flatten:function(c){var a=[];function b(k){Ext.each(k,function(h){if(Ext.isArray(h)){b(h)}else{a.push(h)}});return a}return b(c)},min:function(c,b){var a=c[0];b=b||function(k,l){return k<l?-1:1};Ext.each(c,function(k){a=b(a,k)==-1?a:k});return a},max:function(c,b){var a=c[0];b=b||function(k,l){return k>l?1:-1};Ext.each(c,function(k){a=b(a,k)==1?a:k});return a},mean:function(a){return a.length>0?Ext.sum(a)/a.length:undefined},sum:function(b){var a=0;Ext.each(b,function(c){a+=c});return a},partition:function(c,b){var a=[[],[]];Ext.each(c,function(n,m,o){a[(b&&b(n,m,o))||(!b&&n)?0:1].push(n)});return a},invoke:function(k,c){var a=[],b=Array.prototype.slice.call(arguments,2);Ext.each(k,function(m,h){if(m&&typeof m[c]=="function"){a.push(m[c].apply(m,b))}else{a.push(undefined)}});return a},pluck:function(c,a){var b=[];Ext.each(c,function(k){b.push(k[a])});return b},zip:function(){var s=Ext.partition(arguments,function(h){return typeof h!="function"}),c=s[0],a=s[1][0],r=Ext.max(Ext.pluck(c,"length")),o=[];for(var b=0;b<r;b++){o[b]=[];if(a){o[b]=a.apply(a,Ext.pluck(c,b))}else{for(var p=0,q=c.length;p<q;p++){o[b].push(c[p][b])}}}return o},getCmp:function(a){return Ext.ComponentMgr.get(a)},useShims:g.isIE6||(g.isMac&&g.isGecko2),type:function(a){if(a===undefined||a===null){return false}if(a.htmlElement){return"element"}var b=typeof a;if(b=="object"&&a.nodeName){switch(a.nodeType){case 1:return"element";case 3:return(/\S/).test(a.nodeValue)?"textnode":"whitespace"}}if(b=="object"||b=="function"){switch(a.constructor){case Array:return"array";case RegExp:return"regexp";case Date:return"date"}if(typeof a.length=="number"&&typeof a.item=="function"){return"nodelist"}}return b},intercept:function(a,k,b,c){a[k]=a[k].createInterceptor(b,c)},callback:function(k,a,b,c){if(typeof k=="function"){if(c){k.defer(c,a,b||[])}else{k.apply(a,b||[])}}}}}());Ext.apply(Function.prototype,{createSequence:function(d,e){var g=this;return(typeof d!="function")?this:function(){var a=g.apply(this||window,arguments);d.apply(e||this||window,arguments);return a}}});Ext.applyIf(String,{escape:function(b){return b.replace(/('|\\)/g,"\\$1")},leftPad:function(h,e,k){var g=String(h);if(!k){k=" "}while(g.length<e){g=k+g}return g}});String.prototype.toggle=function(c,d){return this==c?d:c};String.prototype.trim=function(){var b=/^\s+|\s+$/g;return function(){return this.replace(b,"")}}();Date.prototype.getElapsed=function(b){return Math.abs((b||new Date()).getTime()-this.getTime())};Ext.applyIf(Number.prototype,{constrain:function(c,d){return Math.min(Math.max(this,c),d)}});Ext.lib.Dom.getRegion=function(b){return Ext.lib.Region.getRegion(b)};Ext.lib.Region=function(l,h,b,m){var k=this;k.top=l;k[1]=l;k.right=h;k.bottom=b;k.left=m;k[0]=m};Ext.lib.Region.prototype={contains:function(c){var d=this;return(c.left>=d.left&&c.right<=d.right&&c.top>=d.top&&c.bottom<=d.bottom)},getArea:function(){var b=this;return((b.bottom-b.top)*(b.right-b.left))},intersect:function(k){var l=this,n=Math.max(l.top,k.top),m=Math.min(l.right,k.right),b=Math.min(l.bottom,k.bottom),o=Math.max(l.left,k.left);if(b>=n&&m>=o){return new Ext.lib.Region(n,m,b,o)}},union:function(k){var l=this,n=Math.min(l.top,k.top),m=Math.max(l.right,k.right),b=Math.max(l.bottom,k.bottom),o=Math.min(l.left,k.left);return new Ext.lib.Region(n,m,b,o)},constrainTo:function(c){var d=this;d.top=d.top.constrain(c.top,c.bottom);d.bottom=d.bottom.constrain(c.top,c.bottom);d.left=d.left.constrain(c.left,c.right);d.right=d.right.constrain(c.left,c.right);return d},adjust:function(l,m,b,h){var k=this;k.top+=l;k.left+=m;k.right+=h;k.bottom+=b;return k}};Ext.lib.Region.getRegion=function(m){var k=Ext.lib.Dom.getXY(m),n=k[1],l=k[0]+m.offsetWidth,b=k[1]+m.offsetHeight,o=k[0];return new Ext.lib.Region(n,l,b,o)};Ext.lib.Point=function(e,g){if(Ext.isArray(e)){g=e[1];e=e[0]}var d=this;d.x=d.right=d.left=d[0]=e;d.y=d.top=d.bottom=d[1]=g};Ext.lib.Point.prototype=new Ext.lib.Region();Ext.apply(Ext.DomHelper,function(){var p,l="afterbegin",n="afterend",m="beforebegin",q="beforeend",k=/tag|children|cn|html$/i;function o(h,e,g,d,a,c){h=Ext.getDom(h);var b;if(p.useDom){b=r(e,null);if(c){h.appendChild(b)}else{(a=="firstChild"?h:h.parentNode).insertBefore(b,h[a]||h)}}else{b=Ext.DomHelper.insertHtml(d,h,Ext.DomHelper.createHtml(e))}return g?Ext.get(b,true):b}function r(g,y){var e,h=document,b,x,d,w;if(Ext.isArray(g)){e=h.createDocumentFragment();for(var a=0,c=g.length;a<c;a++){r(g[a],e)}}else{if(typeof g=="string"){e=h.createTextNode(g)}else{e=h.createElement(g.tag||"div");b=!!e.setAttribute;for(var x in g){if(!k.test(x)){d=g[x];if(x=="cls"){e.className=d}else{if(b){e.setAttribute(x,d)}else{e[x]=d}}}}Ext.DomHelper.applyStyles(e,g.style);if((w=g.children||g.cn)){r(w,e)}else{if(g.html){e.innerHTML=g.html}}}}if(y){y.appendChild(e)}return e}p={createTemplate:function(a){var b=Ext.DomHelper.createHtml(a);return new Ext.Template(b)},useDom:false,insertBefore:function(c,a,b){return o(c,a,b,m)},insertAfter:function(c,a,b){return o(c,a,b,n,"nextSibling")},insertFirst:function(c,a,b){return o(c,a,b,l,"firstChild")},append:function(c,a,b){return o(c,a,b,q,"",true)},createDom:r};return p}());Ext.apply(Ext.Template.prototype,{disableFormats:false,re:/\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,argsRe:/^\s*['"](.*)["']\s*$/,compileARe:/\\/g,compileBRe:/(\r\n|\n)/g,compileCRe:/'/g,applyTemplate:function(h){var l=this,k=l.disableFormats!==true,m=Ext.util.Format,o=l;if(l.compiled){return l.compiled(h)}function n(b,r,d,a){if(d&&k){if(d.substr(0,5)=="this."){return o.call(d.substr(5),h[r],h)}else{if(a){var e=l.argsRe;a=a.split(",");for(var g=0,c=a.length;g<c;g++){a[g]=a[g].replace(e,"$1")}a=[h[r]].concat(a)}else{a=[h[r]]}return m[d].apply(m,a)}}else{return h[r]!==undefined?h[r]:""}}return l.html.replace(l.re,n)},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(me.compileARe,"\\\\").replace(me.compileBRe,"\\n").replace(me.compileCRe,"\\'").replace(me.re,fn)+"';};"}else{body=["this.compiled = function(values){ return ['"];body.push(me.html.replace(me.compileARe,"\\\\").replace(me.compileBRe,"\\n").replace(me.compileCRe,"\\'").replace(me.re,fn));body.push("'].join('');};");body=body.join("")}eval(body);return me},call:function(g,d,e){return this[g](d,e)}});Ext.Template.prototype.apply=Ext.Template.prototype.applyTemplate;Ext.util.Functions={createInterceptor:function(k,e,g){var h=k;if(!Ext.isFunction(e)){return k}else{return function(){var a=this,b=arguments;e.target=a;e.method=k;return(e.apply(g||a||window,b)!==false)?k.apply(a||window,b):null}}},createDelegate:function(k,h,e,g){if(!Ext.isFunction(k)){return k}return function(){var a=e||arguments;if(g===true){a=Array.prototype.slice.call(arguments,0);a=a.concat(e)}else{if(Ext.isNumber(g)){a=Array.prototype.slice.call(arguments,0);var b=[g,0].concat(e);Array.prototype.splice.apply(a,b)}}return k.apply(h||window,a)}},defer:function(l,m,k,g,h){l=Ext.util.Functions.createDelegate(l,k,g,h);if(m>0){return setTimeout(l,m)}l();return 0},createSequence:function(g,d,e){if(!Ext.isFunction(d)){return g}else{return function(){var a=g.apply(this||window,arguments);d.apply(e||this||window,arguments);return a}}}};Ext.defer=Ext.util.Functions.defer;Ext.createInterceptor=Ext.util.Functions.createInterceptor;Ext.createSequence=Ext.util.Functions.createSequence;Ext.createDelegate=Ext.util.Functions.createDelegate;Ext.apply(Ext.util.Observable.prototype,function(){function b(e){var l=(this.methodEvents=this.methodEvents||{})[e],o,p,n,m=this;if(!l){this.methodEvents[e]=l={};l.originalFn=this[e];l.methodName=e;l.before=[];l.after=[];var a=function(c,d,g){if((p=c.apply(d||m,g))!==undefined){if(typeof p=="object"){if(p.returnValue!==undefined){o=p.returnValue}else{o=p}n=!!p.cancel}else{if(p===false){n=true}else{o=p}}}};this[e]=function(){var c=Array.prototype.slice.call(arguments,0),d;o=p=undefined;n=false;for(var h=0,g=l.before.length;h<g;h++){d=l.before[h];a(d.fn,d.scope,c);if(n){return o}}if((p=l.originalFn.apply(m,c))!==undefined){o=p}for(var h=0,g=l.after.length;h<g;h++){d=l.after[h];a(d.fn,d.scope,c);if(n){return o}}return o}}return l}return{beforeMethod:function(e,g,a){b.call(this,e).before.push({fn:g,scope:a})},afterMethod:function(e,g,a){b.call(this,e).after.push({fn:g,scope:a})},removeMethodListener:function(e,m,n){var l=this.getMethodEvent(e);for(var o=0,a=l.before.length;o<a;o++){if(l.before[o].fn==m&&l.before[o].scope==n){l.before.splice(o,1);return}}for(var o=0,a=l.after.length;o<a;o++){if(l.after[o].fn==m&&l.after[o].scope==n){l.after.splice(o,1);return}}},relayEvents:function(l,o){var m=this;function n(c){return function(){return m.fireEvent.apply(m,[c].concat(Array.prototype.slice.call(arguments,0)))}}for(var p=0,a=o.length;p<a;p++){var q=o[p];m.events[q]=m.events[q]||true;l.on(q,n(q),m)}},enableBubble:function(m){var l=this;if(!Ext.isEmpty(m)){m=Ext.isArray(m)?m:Array.prototype.slice.call(arguments,0);for(var n=0,a=m.length;n<a;n++){var o=m[n];o=o.toLowerCase();var k=l.events[o]||true;if(typeof k=="boolean"){k=new Ext.util.Event(l,o);l.events[o]=k}k.bubble=true}}}}}());Ext.util.Observable.capture=function(g,d,e){g.fireEvent=g.fireEvent.createInterceptor(d,e)};Ext.util.Observable.observeClass=function(c,d){if(c){if(!c.fireEvent){Ext.apply(c,new Ext.util.Observable());Ext.util.Observable.capture(c.prototype,c.fireEvent,c)}if(typeof d=="object"){c.on(d)}return c}};Ext.apply(Ext.EventManager,function(){var r,l,p,s,t=Ext.lib.Dom,m=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/,n=0,o=0,q=Ext.isWebKit?Ext.num(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1])>=525:!((Ext.isGecko&&!Ext.isWindows)||Ext.isOpera);return{doResizeEvent:function(){var a=t.getViewHeight(),b=t.getViewWidth();if(o!=a||n!=b){r.fire(n=b,o=a)}},onWindowResize:function(c,a,b){if(!r){r=new Ext.util.Event();l=new Ext.util.DelayedTask(this.doResizeEvent);Ext.EventManager.on(window,"resize",this.fireWindowResize,this)}r.addListener(c,a,b)},fireWindowResize:function(){if(r){l.delay(100)}},onTextResize:function(c,d,b){if(!p){p=new Ext.util.Event();var a=new Ext.Element(document.createElement("div"));a.dom.className="x-text-resize";a.dom.innerHTML="X";a.appendTo(document.body);s=a.dom.offsetHeight;setInterval(function(){if(a.dom.offsetHeight!=s){p.fire(s,s=a.dom.offsetHeight)}},this.textResizeInterval)}p.addListener(c,d,b)},removeResizeListener:function(a,b){if(r){r.removeListener(a,b)}},fireResize:function(){if(r){r.fire(t.getViewWidth(),t.getViewHeight())}},textResizeInterval:50,ieDeferSrc:false,getKeyEvent:function(){return q?"keydown":"keypress"},useKeydown:q}}());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 c=this,d=this.normalizeKey(c.keyCode);return(d>=33&&d<=40)||d==c.RETURN||d==c.TAB||d==c.ESC},isSpecialKey:function(){var b=this.normalizeKey(this.keyCode);return(this.type=="keypress"&&this.ctrlKey)||this.isNavKeyPress()||(b==this.BACKSPACE)||(b>=16&&b<=20)||(b>=44&&b<=46)},getPoint:function(){return new Ext.lib.Point(this.xy[0],this.xy[1])},hasModifier:function(){return((this.ctrlKey||this.altKey)||this.shiftKey)}});Ext.Element.addMethods({swallowEvent:function(g,e){var h=this;function k(a){a.stopPropagation();if(e){a.preventDefault()}}if(Ext.isArray(g)){Ext.each(g,function(a){h.on(a,k)});return h}h.on(g,k);return h},relayEvent:function(d,c){this.on(d,function(a){c.fireEvent(d,a)})},clean:function(h){var n=this,m=n.dom,l=m.firstChild,o=-1;if(Ext.Element.data(m,"isCleaned")&&h!==true){return n}while(l){var k=l.nextSibling;if(l.nodeType==3&&!(/\S/.test(l.nodeValue))){m.removeChild(l)}else{l.nodeIndex=++o}l=k}Ext.Element.data(m,"isCleaned",true);return n},load:function(){var b=this.getUpdater();b.update.apply(b,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(typeof callback=="function"){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(typeof callback=="function"){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(h,k,l){h=(typeof h=="object")?h:{tag:"div",cls:h};var m=this,g=k?Ext.DomHelper.append(k,h,true):Ext.DomHelper.insertBefore(m.dom,h,true);if(l&&m.setBox&&m.getBox){g.setBox(m.getBox())}return g}});Ext.Element.prototype.getUpdateManager=Ext.Element.prototype.getUpdater;Ext.Element.addMethods({getAnchorXY:function(y,s,D){y=(y||"tl").toLowerCase();D=D||{};var u=this,B=u.dom==document.body||u.dom==document,o=D.width||B?Ext.lib.Dom.getViewWidth():u.getWidth(),w=D.height||B?Ext.lib.Dom.getViewHeight():u.getHeight(),h,C=Math.round,A=u.getXY(),r=u.getScroll(),v=B?r.left:!s?A[0]:0,x=B?r.top:!s?A[1]:0,z={c:[C(o*0.5),C(w*0.5)],t:[C(o*0.5),0],l:[0,C(w*0.5)],r:[o,C(w*0.5)],b:[C(o*0.5),w],tl:[0,0],bl:[0,w],br:[o,w],tr:[o,0]};h=z[y];return[h[0]+v,h[1]+x]},anchorTo:function(w,r,v,x,o,n){var q=this,t=q.dom,p=!Ext.isEmpty(o),u=function(){Ext.fly(t).alignTo(w,r,v,x);Ext.callback(n,Ext.fly(t))},s=this.getAnchor();this.removeAnchor();Ext.apply(s,{fn:u,scroll:p});Ext.EventManager.onWindowResize(u,null);if(p){Ext.EventManager.on(window,"scroll",u,null,{buffer:!isNaN(o)?o:50})}u.call(q);return q},removeAnchor:function(){var c=this,d=this.getAnchor();if(d&&d.fn){Ext.EventManager.removeResizeListener(d.fn);if(d.scroll){Ext.EventManager.un(window,"scroll",d.fn)}delete d.fn}return c},getAnchor:function(){var d=Ext.Element.data,g=this.dom;if(!g){return}var e=d(g,"_anchor");if(!e){e=d(g,"_anchor",{})}return e},getAlignToXY:function(ae,Y,W){ae=Ext.get(ae);if(!ae||!ae.dom){throw"Element.alignToXY with an element that doesn't exist"}W=W||[0,0];Y=(!Y||Y=="?"?"tl-bl?":(!(/-/).test(Y)&&Y!==""?"tl-"+Y:Y||"tl-bl")).toLowerCase();var m=this,w=m.dom,d,h,X,aa,T,P,p,R=Ext.lib.Dom.getViewWidth()-10,x=Ext.lib.Dom.getViewHeight()-10,ag,ad,ac,ab,y,Z,c=document,o=c.documentElement,V=c.body,Q=(o.scrollLeft||V.scrollLeft||0)+5,S=(o.scrollTop||V.scrollTop||0)+5,r=false,af="",ah="",U=Y.match(/^([a-z]+)-([a-z]+)(\?)?$/);if(!U){throw"Element.alignTo with an invalid alignment "+Y}af=U[1];ah=U[2];r=!!U[3];d=m.getAnchorXY(af,true);h=ae.getAnchorXY(ah,false);X=h[0]-d[0]+W[0];aa=h[1]-d[1]+W[1];if(r){T=m.getWidth();P=m.getHeight();p=ae.getRegion();ag=af.charAt(0);ad=af.charAt(af.length-1);ac=ah.charAt(0);ab=ah.charAt(ah.length-1);y=((ag=="t"&&ac=="b")||(ag=="b"&&ac=="t"));Z=((ad=="r"&&ab=="l")||(ad=="l"&&ab=="r"));if(X+T>R+Q){X=Z?p.left-T:R+Q-T}if(X<Q){X=Z?p.right:Q}if(aa+P>x+S){aa=y?p.top-P:x+S-P}if(aa<S){aa=y?p.bottom:S}}return[X,aa]},alignTo:function(m,h,k,g){var l=this;return l.setXY(l.getAlignToXY(m,h,k),l.preanim&&!!g?l.preanim(arguments,3):false)},adjustForConstraints:function(g,e,d){return this.getConstrainToXY(e||document,false,d,g)||g},getConstrainToXY:function(g,h,m,k){var l={top:0,left:0,bottom:0,right:0};return function(N,F,K,I){N=Ext.get(N);K=K?Ext.applyIf(K,l):l;var H,e,a=0,b=0;if(N.dom==document.body||N.dom==document){H=Ext.lib.Dom.getViewWidth();e=Ext.lib.Dom.getViewHeight()}else{H=N.dom.clientWidth;e=N.dom.clientHeight;if(!F){var c=N.getXY();a=c[0];b=c[1]}}var d=N.getScroll();a+=K.left+d.left;b+=K.top+d.top;H-=K.right;e-=K.bottom;var x=a+H,O=b+e,M=I||(!F?this.getXY():[this.getLeft(true),this.getTop(true)]),y=M[0],G=M[1],L=this.getConstrainOffset(),w=this.dom.offsetWidth+L,s=this.dom.offsetHeight+L;var J=false;if((y+w)>x){y=x-w;J=true}if((G+s)>O){G=O-s;J=true}if(y<a){y=a;J=true}if(G<b){G=b;J=true}return J?[y,G]:false}}(),getConstrainOffset:function(){return 0},getCenterXY:function(){return this.getAlignToXY(document,"c-c")},center:function(b){return this.alignTo(b||document,"c-c")}});Ext.Element.addMethods({select:function(d,c){return Ext.Element.select(d,c,this.dom)}});Ext.apply(Ext.Element.prototype,function(){var g=Ext.getDom,e=Ext.get,d=Ext.DomHelper;return{insertSibling:function(c,n,m){var b=this,o,p=(n||"before").toLowerCase()=="after",a;if(Ext.isArray(c)){a=b;Ext.each(c,function(h){o=Ext.fly(a,"_internal").insertSibling(h,n,m);if(p){a=o}});return o}c=c||{};if(c.nodeType||c.dom){o=b.dom.parentNode.insertBefore(g(c),p?b.dom.nextSibling:b.dom);if(!m){o=e(o)}}else{if(p&&!b.dom.nextSibling){o=d.append(b.dom.parentNode,c,!m)}else{o=d[p?"insertAfter":"insertBefore"](b.dom,c,!m)}}return o}}}());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 d="_internal",c=/(\d+\.?\d+)px/;return{applyStyles:function(a){Ext.DomHelper.applyStyles(this.dom,a);return this},getStyles:function(){var a={};Ext.each(arguments,function(b){a[b]=this.getStyle(b)},this);return a},setOverflow:function(b){var a=this.dom;if(b=="auto"&&Ext.isMac&&Ext.isGecko2){a.style.overflow="hidden";(function(){a.style.overflow="auto"}).defer(1)}else{a.style.overflow=b}},boxWrap:function(b){b=b||"x-box";var a=Ext.get(this.insertHtml("beforeBegin","<div class='"+b+"'>"+String.format(Ext.Element.boxMarkup,b)+"</div>"));Ext.DomQuery.selectNode("."+b+"-mc",a.dom).appendChild(this.dom);return a},setSize:function(b,k,h){var a=this;if(typeof b=="object"){k=b.height;b=b.width}b=a.adjustWidth(b);k=a.adjustHeight(k);if(!h||!a.anim){a.dom.style.width=a.addUnits(b);a.dom.style.height=a.addUnits(k)}else{a.anim({width:{to:b},height:{to:k}},a.preanim(arguments,2))}return a},getComputedHeight:function(){var a=this,b=Math.max(a.dom.offsetHeight,a.dom.clientHeight);if(!b){b=parseFloat(a.getStyle("height"))||0;if(!a.isBorderBox()){b+=a.getFrameWidth("tb")}}return b},getComputedWidth:function(){var a=Math.max(this.dom.offsetWidth,this.dom.clientWidth);if(!a){a=parseFloat(this.getStyle("width"))||0;if(!this.isBorderBox()){a+=this.getFrameWidth("lr")}}return a},getFrameWidth:function(a,b){return b&&this.isBorderBox()?0:(this.getPadding(a)+this.getBorderWidth(a))},addClassOnOver:function(a){this.hover(function(){Ext.fly(this,d).addClass(a)},function(){Ext.fly(this,d).removeClass(a)});return this},addClassOnFocus:function(a){this.on("focus",function(){Ext.fly(this,d).addClass(a)},this.dom);this.on("blur",function(){Ext.fly(this,d).removeClass(a)},this.dom);return this},addClassOnClick:function(b){var a=this.dom;this.on("mousedown",function(){Ext.fly(a,d).addClass(b);var h=Ext.getDoc(),k=function(){Ext.fly(a,d).removeClass(b);h.removeListener("mouseup",k)};h.on("mouseup",k)});return this},getViewSize:function(){var b=document,a=this.dom,l=(a==b||a==b.body);if(l){var k=Ext.lib.Dom;return{width:k.getViewWidth(),height:k.getViewHeight()}}else{return{width:a.clientWidth,height:a.clientHeight}}},getStyleSize:function(){var h=this,s,o,a=document,r=this.dom,q=(r==a||r==a.body),p=r.style;if(q){var b=Ext.lib.Dom;return{width:b.getViewWidth(),height:b.getViewHeight()}}if(p.width&&p.width!="auto"){s=parseFloat(p.width);if(h.isBorderBox()){s-=h.getFrameWidth("lr")}}if(p.height&&p.height!="auto"){o=parseFloat(p.height);if(h.isBorderBox()){o-=h.getFrameWidth("tb")}}return{width:s||h.getWidth(true),height:o||h.getHeight(true)}},getSize:function(a){return{width:this.getWidth(a),height:this.getHeight(a)}},repaint:function(){var a=this.dom;this.addClass("x-repaint");setTimeout(function(){Ext.fly(a).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(l){var k=this,m,b={t:"top",l:"left",r:"right",b:"bottom"},a={};if(!l){for(m in k.margins){a[b[m]]=parseFloat(k.getStyle(k.margins[m]))||0}return a}else{return k.addStyles.call(k,l,k.margins)}}}}());Ext.Element.addMethods({setBox:function(m,l,h){var n=this,k=m.width,o=m.height;if((l&&!n.autoBoxAdjust)&&!n.isBorderBox()){k-=(n.getBorderWidth("lr")+n.getPadding("lr"));o-=(n.getBorderWidth("tb")+n.getPadding("tb"))}n.setBounds(m.x,m.y,k,o,n.animTest.call(n,arguments,h,2));return n},getBox:function(w,b){var r=this,E,A,h,B=r.getBorderWidth,H=r.getPadding,z,D,F,l;if(!b){E=r.getXY()}else{A=parseInt(r.getStyle("left"),10)||0;h=parseInt(r.getStyle("top"),10)||0;E=[A,h]}var C=r.dom,G=C.offsetWidth,y=C.offsetHeight,t;if(!w){t={x:E[0],y:E[1],0:E[0],1:E[1],width:G,height:y}}else{z=B.call(r,"l")+H.call(r,"l");D=B.call(r,"r")+H.call(r,"r");F=B.call(r,"t")+H.call(r,"t");l=B.call(r,"b")+H.call(r,"b");t={x:E[0]+z,y:E[1]+F,0:E[0]+z,1:E[1]+F,width:G-(z+D),height:y-(F+l)}}t.right=t.x+t.width;t.bottom=t.y+t.height;return t},move:function(r,y,x){var u=this,o=u.getXY(),q=o[0],s=o[1],w=[q-y,s],p=[q+y,s],t=[q,s-y],z=[q,s+y],v={l:w,left:w,r:p,right:p,t:t,top:t,up:t,b:z,bottom:z,down:z};r=r.toLowerCase();u.moveTo(v[r][0],v[r][1],u.animTest.call(u,arguments,x,2))},setLeftTop:function(h,k){var e=this,g=e.dom.style;g.left=e.addUnits(h);g.top=e.addUnits(k);return e},getRegion:function(){return Ext.lib.Dom.getRegion(this.dom)},setBounds:function(h,l,n,k,o){var m=this;if(!o||!m.anim){m.setSize(n,k);m.setLocation(h,l)}else{m.anim({points:{to:[h,l]},width:{to:m.adjustWidth(n)},height:{to:m.adjustHeight(k)}},m.preanim(arguments,4),"motion")}return m},setRegion:function(c,d){return this.setBounds(c.left,c.top,c.right-c.left,c.bottom-c.top,this.animTest.call(this,arguments,d,1))}});Ext.Element.addMethods({scrollTo:function(k,p,l){var o=/top/i.test(k),q=this,n=q.dom,m;if(!l||!q.anim){m="scroll"+(o?"Top":"Left");n[m]=p}else{m="scroll"+(o?"Left":"Top");q.anim({scroll:{to:o?[n[m],p]:[p,n[m]]}},q.preanim(arguments,2),"scroll")}return q},scrollIntoView:function(y,t){var b=Ext.getDom(y)||Ext.getBody().dom,w=this.dom,x=this.getOffsetsTo(b),o=x[0]+b.scrollLeft,B=x[1]+b.scrollTop,D=B+w.offsetHeight,z=o+w.offsetWidth,A=b.clientHeight,l=parseInt(b.scrollTop,10),C=parseInt(b.scrollLeft,10),r=l+A,c=C+b.clientWidth;if(w.offsetHeight>A||B<l){b.scrollTop=B}else{if(D>r){b.scrollTop=D-A}}b.scrollTop=b.scrollTop;if(t!==false){if(w.offsetWidth>b.clientWidth||o<C){b.scrollLeft=o}else{if(z>c){b.scrollLeft=z-b.clientWidth}}b.scrollLeft=b.scrollLeft}return this},scrollChildIntoView:function(c,d){Ext.fly(c,"_scrollChildIntoView").scrollIntoView(this,d)},scroll:function(s,A,y){if(!this.isScrollable()){return false}var x=this.dom,w=x.scrollLeft,h=x.scrollTop,r=x.scrollWidth,t=x.scrollHeight,v=x.clientWidth,B=x.clientHeight,z=false,l,u={l:Math.min(w+A,r-v),r:l=Math.max(w-A,0),t:Math.max(h-A,0),b:Math.min(h+A,t-B)};u.d=u.b;u.u=u.t;s=s.substr(0,1);if((l=u[s])>-1){z=true;this.scrollTo(s=="l"||s=="r"?"left":"top",l,this.preanim(arguments,2))}return z}});Ext.Element.addMethods(function(){var p="visibility",k="display",l="hidden",m="none",q="x-masked",n="x-masked-relative",o=Ext.Element.data;return{isVisible:function(c){var b=!this.isStyle(p,l)&&!this.isStyle(k,m),a=this.dom.parentNode;if(c!==true||!b){return b}while(a&&!(/^body/i.test(a.tagName))){if(!Ext.fly(a,"_isVisible").isVisible()){return false}a=a.parentNode}return true},isDisplayed:function(){return !this.isStyle(k,m)},enableDisplayMode:function(a){this.setVisibilityMode(Ext.Element.DISPLAY);if(!Ext.isEmpty(a)){o(this.dom,"originalDisplay",a)}return this},mask:function(s,d){var b=this,g=b.dom,c=Ext.DomHelper,e="ext-el-mask-msg",t,a;if(!(/^body/i.test(g.tagName)&&b.getStyle("position")=="static")){b.addClass(n)}if(t=o(g,"maskMsg")){t.remove()}if(t=o(g,"mask")){t.remove()}a=c.append(g,{cls:"ext-el-mask"},true);o(g,"mask",a);b.addClass(q);a.setDisplayed(true);if(typeof s=="string"){var h=c.append(g,{cls:e,cn:{tag:"div"}},true);o(g,"maskMsg",h);h.dom.className=d?e+" "+d:e;h.dom.firstChild.innerHTML=s;h.setDisplayed(true);h.center(b)}if(Ext.isIE&&!(Ext.isIE7&&Ext.isStrict)&&b.getStyle("height")=="auto"){a.setSize(undefined,b.getHeight())}return a},unmask:function(){var b=this,a=b.dom,d=o(a,"mask"),c=o(a,"maskMsg");if(d){if(c){c.remove();o(a,"maskMsg",undefined)}d.remove();o(a,"mask",undefined);b.removeClass([q,n])}},isMasked:function(){var a=o(this.dom,"mask");return a&&a.isVisible()},createShim:function(){var b=document.createElement("iframe"),a;b.frameBorder="0";b.className="ext-shim";b.src=Ext.SSL_SECURE_URL;a=Ext.get(this.dom.parentNode.insertBefore(b,this.dom));a.autoBoxAdjust=false;return a}}}());Ext.Element.addMethods({addKeyListener:function(e,h,k){var g;if(typeof e!="object"||Ext.isArray(e)){g={key:e,fn:h,scope:k}}else{g={key:e.key,shift:e.shift,ctrl:e.ctrl,alt:e.alt,fn:h,scope:k}}return new Ext.KeyMap(this,g)},addKeyMap:function(b){return new Ext.KeyMap(this,b)}});Ext.CompositeElementLite.importElementMethods();Ext.apply(Ext.CompositeElementLite.prototype,{addElements:function(g,e){if(!g){return this}if(typeof g=="string"){g=Ext.Element.selectorFunction(g,e)}var d=this.elements;Ext.each(g,function(a){d.push(Ext.get(a))});return this},first:function(){return this.item(0)},last:function(){return this.item(this.getCount()-1)},contains:function(b){return this.indexOf(b)!=-1},removeElement:function(l,k){var m=this,h=this.elements,g;Ext.each(l,function(a){if((g=(h[a]||h[a=m.indexOf(a)]))){if(k){if(g.dom){g.remove()}else{Ext.removeNode(g)}}h.splice(a,1)}});return this}});Ext.CompositeElement=Ext.extend(Ext.CompositeElementLite,{constructor:function(c,d){this.elements=[];this.add(c,d)},getElement:function(b){return b},transformElement:function(b){return Ext.get(b)}});Ext.Element.select=function(g,h,e){var k;if(typeof g=="string"){k=Ext.Element.selectorFunction(g,e)}else{if(g.length!==undefined){k=g}else{throw"Invalid selector"}}return(h===true)?new Ext.CompositeElement(k):new Ext.CompositeElementLite(k)};Ext.select=Ext.Element.select;Ext.UpdateManager=Ext.Updater=Ext.extend(Ext.util.Observable,function(){var h="beforeupdate",n="update",o="failure";function k(c){var b=this;b.transaction=null;if(c.argument.form&&c.argument.reset){try{c.argument.form.reset()}catch(a){}}if(b.loadScripts){b.renderer.render(b.el,c,b,l.createDelegate(b,[c]))}else{b.renderer.render(b.el,c,b);l.call(b,c)}}function l(c,b,a){this.fireEvent(b||n,this.el,c);if(Ext.isFunction(c.argument.callback)){c.argument.callback.call(c.argument.scope,this.el,Ext.isEmpty(a)?true:false,c,c.argument.options)}}function m(a){l.call(this,a,o,!!(this.transaction=null))}return{constructor:function(b,c){var a=this;b=Ext.get(b);if(!c&&b.updateManager){return b.updateManager}a.el=b;a.defaultUrl=null;a.addEvents(h,n,o);Ext.apply(a,Ext.Updater.defaults);a.transaction=null;a.refreshDelegate=a.refresh.createDelegate(a);a.updateDelegate=a.update.createDelegate(a);a.formUpdateDelegate=(a.formUpdate||function(){}).createDelegate(a);a.renderer=a.renderer||a.getDefaultRenderer();Ext.Updater.superclass.constructor.call(a)},setRenderer:function(a){this.renderer=a},getRenderer:function(){return this.renderer},getDefaultRenderer:function(){return new Ext.Updater.BasicRenderer()},setDefaultUrl:function(a){this.defaultUrl=a},getEl:function(){return this.el},update:function(d,r,g,a){var b=this,e,c;if(b.fireEvent(h,b.el,d,r)!==false){if(Ext.isObject(d)){e=d;d=e.url;r=r||e.params;g=g||e.callback;a=a||e.discardUrl;c=e.scope;if(!Ext.isEmpty(e.nocache)){b.disableCaching=e.nocache}if(!Ext.isEmpty(e.text)){b.indicatorText='<div class="loading-indicator">'+e.text+"</div>"}if(!Ext.isEmpty(e.scripts)){b.loadScripts=e.scripts}if(!Ext.isEmpty(e.timeout)){b.timeout=e.timeout}}b.showLoading();if(!a){b.defaultUrl=d}if(Ext.isFunction(d)){d=d.call(b)}var s=Ext.apply({},{url:d,params:(Ext.isFunction(r)&&c)?r.createDelegate(c):r,success:k,failure:m,scope:b,callback:undefined,timeout:(b.timeout*1000),disableCaching:b.disableCaching,argument:{options:e,url:d,form:null,callback:g,scope:c||window,params:r}},e);b.transaction=Ext.Ajax.request(s)}},formUpdate:function(b,e,c,a){var d=this;if(d.fireEvent(h,d.el,b,e)!==false){if(Ext.isFunction(e)){e=e.call(d)}b=Ext.getDom(b);d.transaction=Ext.Ajax.request({form:b,url:e,success:k,failure:m,scope:d,timeout:(d.timeout*1000),argument:{url:e,form:b,callback:a,reset:c}});d.showLoading.defer(1,d)}},startAutoRefresh:function(d,c,a,g,e){var b=this;if(e){b.update(c||b.defaultUrl,a,g,true)}if(b.autoRefreshProcId){clearInterval(b.autoRefreshProcId)}b.autoRefreshProcId=setInterval(b.update.createDelegate(b,[c||b.defaultUrl,a,g,true]),d*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(a){if(this.defaultUrl){this.update(this.defaultUrl,null,a,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(l,m,k,g){var h=Ext.get(l).getUpdater();Ext.apply(h,g);h.update(m,k,g?g.callback:null)};Ext.Updater.BasicRenderer=function(){};Ext.Updater.BasicRenderer.prototype={render:function(k,g,e,h){k.update(g.responseText,e.loadScripts,h)}};(function(){Date.useStrict=false;function c(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(/\{(\d+)\}/g,function(k,h){return b[h]})}Date.formatCodeToRegex=function(b,g){var a=Date.parseCodes[b];if(a){a=typeof a=="function"?a():a;Date.parseCodes[b]=a}return a?Ext.applyIf({c:a.c?c(a.c,g||"{0}"):a.c},a):{g:0,c:null,s:Ext.escapeRe(b)}};var d=Date.formatCodeToRegex;Ext.apply(Date,{parseFunctions:{"M$":function(h,k){var b=new RegExp("\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/");var a=(h||"").match(b);return a?new Date(((a[1]||"")+a[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(a){return Date.monthNames[a].substring(0,3)},getShortDayName:function(a){return Date.dayNames[a].substring(0,3)},getMonthNumber:function(a){return Date.monthNumbers[a.substring(0,1).toUpperCase()+a.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:"String.leftPad(this.getFullYear(), 4, '0')",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 a="Y-m-dTH:i:sP",e=[],l=0,n=a.length;l<n;++l){var b=a.charAt(l);e.push(b=="T"?"'T'":Date.getFormatCode(b))}return e.join(" + ")},U:"Math.round(this.getTime() / 1000)"},isValid:function(q,t,r,a,h,b,m){a=a||0;h=h||0;b=b||0;m=m||0;var s=new Date(q<100?100:q,t-1,r,a,h,b,m).add(Date.YEAR,q<100?q-100:0);return q==s.getFullYear()&&t==s.getMonth()+1&&r==s.getDate()&&a==s.getHours()&&h==s.getMinutes()&&b==s.getSeconds()&&m==s.getMilliseconds()},parseDate:function(h,a,k){var b=Date.parseFunctions;if(b[a]==null){Date.createParser(a)}return b[a](h,Ext.isDefined(k)?k:Date.useStrict)},getFormatCode:function(a){var b=Date.formatCodes[a];if(b){b=typeof b=="function"?b():b;Date.formatCodes[a]=b}return b||("'"+String.escape(a)+"'")},createFormat:function(a){var b=[],m=false,k="";for(var l=0;l<a.length;++l){k=a.charAt(l);if(!m&&k=="\\"){m=true}else{if(m){m=false;b.push("'"+String.escape(k)+"'")}else{b.push(Date.getFormatCode(k))}}}Date.formatFunctions[a]=new Function("return "+b.join("+"))},createParser:function(){var a=["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 < 100 ? 100 : y, 0, 1, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0);","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 < 100 ? 100 : y, m, d, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0);","}","}","}","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(r){var x=Date.parseRegexes.length,b=1,w=[],s=[],t=false,y="",u=0,v,q;for(;u<r.length;++u){y=r.charAt(u);if(!t&&y=="\\"){t=true}else{if(t){t=false;s.push(String.escape(y))}else{v=d(y,b);b+=v.g;s.push(v.s);if(v.g&&v.c){if(v.calcLast){q=v.c}else{w.push(v.c)}}}}}if(q){w.push(q)}Date.parseRegexes[x]=new RegExp("^"+s.join("")+"$","i");Date.parseFunctions[r]=new Function("input","strict",c(a,x,w.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 b=[],a=0;a<7;b.push(Date.getShortDayName(a)),++a){}return{g:0,c:null,s:"(?:"+b.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 b=[],a=0;a<12;b.push(Date.getShortMonthName(a)),++a){}return Ext.applyIf({s:"("+b.join("|")+")"},d("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 d("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:function(){return d("A")},A:{calcLast:true,g:1,c:"if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(AM|PM|am|pm)"},g:function(){return d("G")},G:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(\\d{1,2})"},h:function(){return d("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 b=[],k=[d("Y",1),d("m",2),d("d",3),d("h",4),d("i",5),d("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){",d("P",8).c,"}else{",d("O",8).c,"}","}"].join("\n")}];for(var a=0,h=k.length;a<h;++a){b.push(k[a].c)}return{g:1,c:b.join(""),s:[k[0].s,"(?:","-",k[1].s,"(?:","-",k[2].s,"(?:","(?:T| )?",k[3].s,":",k[4].s,"(?::",k[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(b){if(Date.formatFunctions[b]==null){Date.createFormat(b)}return Date.formatFunctions[b].call(this)},getTimezone:function(){return this.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,4})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/,"$1$2").replace(/[^A-Z]/g,"")},getGMTOffset:function(b){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+(b?":":"")+String.leftPad(Math.abs(this.getTimezoneOffset()%60),2,"0")},getDayOfYear:function(){var d=0,h=this.clone(),g=this.getMonth(),k;for(k=0,h.setDate(1),h.setMonth(0);k<g;h.setMonth(++k)){d+=h.getDaysInMonth()}return d+this.getDate()-1},getWeekOfYear:function(){var d=86400000,c=7*d;return function(){var b=Date.UTC(this.getFullYear(),this.getMonth(),this.getDate()+3)/d,g=Math.floor(b/7),a=new Date(g*c).getUTCFullYear();return g-Math.floor(Date.UTC(a,0,7)/c)+1}}(),isLeapYear:function(){var b=this.getFullYear();return !!((b&3)==0&&(b%100||(b%400==0&&b)))},getFirstDayOfMonth:function(){var b=(this.getDay()-(this.getDate()-1))%7;return(b<0)?(b+7):b},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 b=[31,28,31,30,31,30,31,31,30,31,30,31];return function(){var a=this.getMonth();return a==1&&this.isLeapYear()?29:b[a]}}(),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(h){if(h){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,k=this.add(Date.HOUR,d);k.getDate()!=c;d++,k=this.add(Date.HOUR,d)){}this.setDate(c);this.setHours(k.getHours())}return this},add:function(d,k){var h=this.clone();if(!d||k===0){return h}switch(d.toLowerCase()){case Date.MILLI:h.setMilliseconds(this.getMilliseconds()+k);break;case Date.SECOND:h.setSeconds(this.getSeconds()+k);break;case Date.MINUTE:h.setMinutes(this.getMinutes()+k);break;case Date.HOUR:h.setHours(this.getHours()+k);break;case Date.DAY:h.setDate(this.getDate()+k);break;case Date.MONTH:var g=this.getDate();if(g>28){g=Math.min(g,this.getFirstDateOfMonth().add("mo",k).getLastDateOfMonth().getDate())}h.setDate(g);h.setMonth(this.getMonth()+k);break;case Date.YEAR:h.setFullYear(this.getFullYear()+k);break}return h},between:function(g,e){var d=this.getTime();return g.getTime()<=d&&d<=e.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(g){if(g<=-1){var h=Math.ceil(-g),k=Math.ceil(h/12),e=(h%12)?12-h%12:0;this.setFullYear(this.getFullYear()-k);return this._xMonth(e)}else{return this._xMonth(g)}},setDate:function(b){return this.setTime(this.getTime()-(this.getDate()-b)*86400000)}})}Ext.util.MixedCollection=function(c,d){this.items=[];this.map={};this.keys=[];this.length=0;this.addEvents("clear","add","replace","remove","sort");this.allowFunctions=c===true;if(d){this.getKey=d}Ext.util.MixedCollection.superclass.constructor.call(this)};Ext.extend(Ext.util.MixedCollection,Ext.util.Observable,{allowFunctions:false,add:function(d,g){if(arguments.length==1){g=arguments[0];d=this.getKey(g)}if(typeof d!="undefined"&&d!==null){var e=this.map[d];if(typeof e!="undefined"){return this.replace(d,g)}this.map[d]=g}this.length++;this.items.push(g);this.keys.push(d);this.fireEvent("add",this.length-1,g,d);return g},getKey:function(b){return b.id},replace:function(k,h){if(arguments.length==1){h=arguments[0];k=this.getKey(h)}var g=this.map[k];if(typeof k=="undefined"||k===null||typeof g=="undefined"){return this.add(k,h)}var e=this.indexOfKey(k);this.items[e]=h;this.map[k]=h;this.fireEvent("replace",k,g,h);return h},addAll:function(k){if(arguments.length>1||Ext.isArray(k)){var g=arguments.length>1?arguments:k;for(var l=0,h=g.length;l<h;l++){this.add(g[l])}}else{for(var m in k){if(this.allowFunctions||typeof k[m]!="function"){this.add(m,k[m])}}}},each:function(k,l){var g=[].concat(this.items);for(var m=0,h=g.length;m<h;m++){if(k.call(l||g[m],g[m],m,h)===false){break}}},eachKey:function(h,k){for(var e=0,g=this.keys.length;e<g;e++){h.call(k||window,this.keys[e],this.items[e],e,g)}},find:function(h,k){for(var e=0,g=this.items.length;e<g;e++){if(h.call(k||window,this.items[e],this.keys[e])){return this.items[e]}}return null},insert:function(e,d,g){if(arguments.length==2){g=arguments[1];d=this.getKey(g)}if(this.containsKey(d)){this.suspendEvents();this.removeKey(d);this.resumeEvents()}if(e>=this.length){return this.add(d,g)}this.length++;this.items.splice(e,0,g);if(typeof d!="undefined"&&d!==null){this.map[d]=g}this.keys.splice(e,0,d);this.fireEvent("add",e,g,d);return g},remove:function(b){return this.removeAt(this.indexOf(b))},removeAt:function(e){if(e<this.length&&e>=0){this.length--;var g=this.items[e];this.items.splice(e,1);var d=this.keys[e];if(typeof d!="undefined"){delete this.map[d]}this.keys.splice(e,1);this.fireEvent("remove",g,d);return g}return false},removeKey:function(b){return this.removeAt(this.indexOfKey(b))},getCount:function(){return this.length},indexOf:function(b){return this.items.indexOf(b)},indexOfKey:function(b){return this.keys.indexOf(b)},item:function(d){var e=this.map[d],g=e!==undefined?e:(typeof d=="number")?this.items[d]:undefined;return typeof g!="function"||this.allowFunctions?g:null},itemAt:function(b){return this.items[b]},key:function(b){return this.map[b]},contains:function(b){return this.indexOf(b)!=-1},containsKey:function(b){return typeof this.map[b]!="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(n,u,o){var s,r,t=String(u).toUpperCase()=="DESC"?-1:1,p=[],c=this.keys,q=this.items;o=o||function(a,b){return a-b};for(s=0,r=q.length;s<r;s++){p[p.length]={key:c[s],value:q[s],index:s}}p.sort(function(a,d){var b=o(a[n],d[n])*t;if(b===0){b=(a.index<d.index?-1:1)}return b});for(s=0,r=p.length;s<r;s++){q[s]=p[s].value;c[s]=p[s].key}this.fireEvent("sort",this)},sort:function(d,c){this._sort("value",d,c)},reorder:function(p){this.suspendEvents();var k=this.items,q=0,n=k.length,l=[],o=[],m;for(m in p){l[p[m]]=k[m]}for(q=0;q<n;q++){if(p[q]==undefined){o.push(k[q])}}for(q=0;q<n;q++){if(l[q]==undefined){l[q]=o.shift()}}this.clear();this.addAll(l);this.resumeEvents();this.fireEvent("sort",this)},keySort:function(d,c){this._sort("key",d,c||function(h,k){var a=String(h).toUpperCase(),b=String(k).toUpperCase();return a>b?1:(a<b?-1:0)})},getRange:function(k,h){var g=this.items;if(g.length<1){return[]}k=k||0;h=Math.min(typeof h=="undefined"?this.length-1:h,this.length-1);var m,l=[];if(k<=h){for(m=k;m<=h;m++){l[l.length]=g[m]}}else{for(m=k;m>=h;m--){l[l.length]=g[m]}}return l},filter:function(k,e,h,g){if(Ext.isEmpty(e,false)){return this.clone()}e=this.createValueMatcher(e,h,g);return this.filterBy(function(a){return a&&e.test(a[k])})},filterBy:function(n,o){var m=new Ext.util.MixedCollection();m.getKey=this.getKey;var k=this.keys,p=this.items;for(var q=0,l=p.length;q<l;q++){if(n.call(o||this,p[q],k[q])){m.add(k[q],p[q])}}return m},findIndex:function(m,g,k,l,h){if(Ext.isEmpty(g,false)){return -1}g=this.createValueMatcher(g,l,h);return this.findIndexBy(function(a){return a&&g.test(a[m])},null,k)},findIndexBy:function(n,o,m){var k=this.keys,p=this.items;for(var q=(m||0),l=p.length;q<l;q++){if(n.call(o||this,p[q],k[q])){return q}}return -1},createValueMatcher:function(m,k,h,g){if(!m.exec){var l=Ext.escapeRe;m=String(m);if(k===true){m=l(m)}else{m="^"+l(m);if(g===true){m+="$"}}m=new RegExp(m,h?"":"i")}return m},clone:function(){var k=new Ext.util.MixedCollection();var g=this.keys,l=this.items;for(var m=0,h=l.length;m<h;m++){k.add(g[m],l[m])}k.getKey=this.getKey;return k}});Ext.util.MixedCollection.prototype.get=Ext.util.MixedCollection.prototype.item;Ext.AbstractManager=Ext.extend(Object,{typeName:"type",constructor:function(b){Ext.apply(this,b||{});this.all=new Ext.util.MixedCollection();this.types={}},get:function(b){return this.all.get(b)},register:function(b){this.all.add(b)},unregister:function(b){this.all.remove(b)},registerType:function(c,d){this.types[c]=d;d[this.typeName]=c},isRegistered:function(b){return this.types[b]!==undefined},create:function(g,h){var e=g[this.typeName]||g.type||h,k=this.types[e];if(k==undefined){throw new Error(String.format("The '{0}' type has not been registered with this manager",e))}return new k(g)},onAvailable:function(h,k,e){var g=this.all;g.on("add",function(b,a){if(a.id==h){k.call(e||a,a);g.un("add",k,e)}})}});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,i;for(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 m=this,P=m.html,H=/<tpl\b[^>]*>((?:(?=([^<]+))\2|<(?!tpl\b[^>]*>))*?)<\/tpl>/,T=/^<tpl\b[^>]*?for="(.*?)"/,D=/^<tpl\b[^>]*?if="(.*?)"/,s=/^<tpl\b[^>]*?exec="(.*?)"/,G,J=0,O=[],L="values",C="parent",N="xindex",M="xcount",S="return ",U="with(values){ ";P=["<tpl>",P,"</tpl>"].join("");while((G=P.match(H))){var V=G[0].match(T),W=G[0].match(D),I=G[0].match(s),R=null,Q=null,F=null,K=V&&V[1]?V[1]:"";if(W){R=W&&W[1]?W[1]:null;if(R){Q=new Function(L,C,N,M,U+S+(Ext.util.Format.htmlDecode(R))+"; }")}}if(I){R=I&&I[1]?I[1]:null;if(R){F=new Function(L,C,N,M,U+(Ext.util.Format.htmlDecode(R))+"; }")}}if(K){switch(K){case".":K=new Function(L,C,U+S+L+"; }");break;case"..":K=new Function(L,C,U+S+C+"; }");break;default:K=new Function(L,C,U+S+K+"; }")}}O.push({id:J,target:K,exec:F,test:Q,body:G[1]||""});P=P.replace(G[0],"{xtpl"+J+"}");++J}for(var E=O.length-1;E>=0;--E){m.compileTpl(O[E])}m.master=O[O.length-1];m.tpls=O};Ext.extend(Ext.XTemplate,Ext.Template,{re:/\{([\w-\.\#]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\\]\s?[\d\.\+\-\*\\\(\)]+)?\}/g,codeRe:/\{\[((?:\\\]|.|\n)*?)\]\}/g,applySubTemplate:function(y,q,r,v,w){var s=this,t,o=s.tpls[y],p,x=[];if((o.test&&!o.test.call(s,q,r,v,w))||(o.exec&&o.exec.call(s,q,r,v,w))){return""}p=o.target?o.target.call(s,q,r):q;t=p.length;r=o.target?q:r;if(o.target&&Ext.isArray(p)){for(var u=0,t=p.length;u<t;u++){x[x.length]=o.compiled.call(s,p[u],r,u+1,t)}return x.join("")}return o.compiled.call(s,p,r,v,w)},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(b){return this.master.compiled.call(this,b,{},1,1)},compile:function(){return this}});Ext.XTemplate.prototype.apply=Ext.XTemplate.prototype.applyTemplate;Ext.XTemplate.from=function(b){b=Ext.getDom(b);return new Ext.XTemplate(b.value||b.innerHTML)};Ext.util.CSS=function(){var h=null;var k=document;var e=/(-[a-z])/gi;var g=function(b,a){return a.charAt(1).toUpperCase()};return{createStyleSheet:function(d,a){var n;var o=k.getElementsByTagName("head")[0];var b=k.createElement("style");b.setAttribute("type","text/css");if(a){b.setAttribute("id",a)}if(Ext.isIE){o.appendChild(b);n=b.styleSheet;n.cssText=d}else{try{b.appendChild(k.createTextNode(d))}catch(c){b.cssText=d}o.appendChild(b);n=b.styleSheet?b.styleSheet:(b.sheet||k.styleSheets[k.styleSheets.length-1])}this.cacheStyleSheet(n);return n},removeStyleSheet:function(a){var b=k.getElementById(a);if(b){b.parentNode.removeChild(b)}},swapStyleSheet:function(a,c){this.removeStyleSheet(a);var b=k.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("type","text/css");b.setAttribute("id",a);b.setAttribute("href",c);k.getElementsByTagName("head")[0].appendChild(b)},refreshCache:function(){return this.getRules(true)},cacheStyleSheet:function(c){if(!h){h={}}try{var a=c.cssRules||c.rules;for(var d=a.length-1;d>=0;--d){h[a[d].selectorText.toLowerCase()]=a[d]}}catch(b){}},getRules:function(d){if(h===null||d){h={};var b=k.styleSheets;for(var c=0,n=b.length;c<n;c++){try{this.cacheStyleSheet(b[c])}catch(a){}}}return h},getRule:function(d,b){var c=this.getRules(b);if(!Ext.isArray(d)){return c[d.toLowerCase()]}for(var a=0;a<d.length;a++){if(c[d[a]]){return c[d[a].toLowerCase()]}}return null},updateRule:function(m,b,c){if(!Ext.isArray(m)){var a=this.getRule(m);if(a){a.style[b.replace(e,g)]=c;return true}}else{for(var d=0;d<m.length;d++){if(this.updateRule(m[d],b,c)){return true}}}return false}}}();Ext.util.ClickRepeater=Ext.extend(Ext.util.Observable,{constructor:function(c,d){this.el=Ext.get(c);this.el.unselectable();Ext.apply(this,d);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)},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(b){if(b||!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(b){this[b?"disable":"enable"]()},eventOptions:function(b){if(this.preventDefault){b.preventDefault()}if(this.stopDefault){b.stopEvent()}},destroy:function(){this.disable(true);Ext.destroy(this.el);this.purgeListeners()},handleDblClick:function(b){clearTimeout(this.timer);this.el.blur();this.fireEvent("mousedown",this,b);this.fireEvent("click",this,b)},handleMouseDown:function(b){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,b);this.fireEvent("click",this,b);if(this.accelerate){this.delay=400}this.timer=this.click.defer(this.delay||this.interval,this,[b])},click:function(b){this.fireEvent("click",this,b);this.timer=this.click.defer(this.accelerate?this.easeOutExpo(this.mousedownTime.getElapsed(),400,-390,12000):this.interval,this,[b])},easeOutExpo:function(k,b,c,d){return(k==d)?b+c:c*(-Math.pow(2,-10*k/d)+1)+b},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(b){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,b)}});Ext.KeyNav=function(c,d){this.el=Ext.get(c);Ext.apply(this,d);if(!this.disabled){this.disabled=true;this.enable()}};Ext.KeyNav.prototype={disabled:false,defaultEventAction:"stopEvent",forceKeyDown:false,relay:function(g){var e=g.getKey(),d=this.keyToHandler[e];if(d&&this[d]){if(this.doRelay(g,this[d],d)!==true){g[this.defaultEventAction]()}}},doRelay:function(g,d,e){return d.call(this.scope||this,g,e)},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(c){var d=c.getKey();if(d>=37&&d<=40){c.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(b){this[b?"disable":"enable"]()},isKeydown:function(){return this.forceKeyDown||Ext.EventManager.useKeydown}};Ext.KeyMap=function(g,d,e){this.el=Ext.get(g);this.eventName=e||"keydown";this.bindings=[];if(d){this.addBinding(d)}this.enable()};Ext.KeyMap.prototype={stopEvent:false,addBinding:function(u){if(Ext.isArray(u)){Ext.each(u,function(a){this.addBinding(a)},this);return}var n=u.key,q=u.fn||u.handler,m=u.scope;if(u.stopEvent){this.stopEvent=u.stopEvent}if(typeof n=="string"){var p=[];var r=n.toUpperCase();for(var t=0,s=r.length;t<s;t++){p.push(r.charCodeAt(t))}n=p}var v=Ext.isArray(n);var o=function(b){if(this.checkModifiers(u,b)){var d=b.getKey();if(v){for(var c=0,a=n.length;c<a;c++){if(n[c]==d){if(this.stopEvent){b.stopEvent()}q.call(m||window,d,b);return}}}else{if(d==n){if(this.stopEvent){b.stopEvent()}q.call(m||window,d,b)}}}};this.bindings.push(o)},checkModifiers:function(e,n){var m,p,o=["shift","ctrl","alt"];for(var q=0,l=o.length;q<l;++q){p=o[q];m=e[p];if(!(m===undefined||(m===n[p+"Key"]))){return false}}return true},on:function(k,p,q){var m,l,o,n;if(typeof k=="object"&&!Ext.isArray(k)){m=k.key;l=k.shift;o=k.ctrl;n=k.alt}else{m=k}this.addBinding({key:m,shift:l,ctrl:o,alt:n,fn:p,scope:q})},handleKeyDown:function(e){if(this.enabled){var k=this.bindings;for(var h=0,b=k.length;h<b;h++){k[h].call(this,e)}}},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(b){this[b?"disable":"enable"]()}};Ext.util.TextMetrics=function(){var b;return{measure:function(a,g,e){if(!b){b=Ext.util.TextMetrics.Instance(a,e)}b.bind(a);b.setFixedWidth(e||"auto");return b.getSize(g)},createInstance:function(a,d){return Ext.util.TextMetrics.Instance(a,d)}}}();Ext.util.TextMetrics.Instance=function(e,h){var k=new Ext.Element(document.createElement("div"));document.body.appendChild(k.dom);k.position("absolute");k.setLeftTop(-1000,-1000);k.hide();if(h){k.setWidth(h)}var g={getSize:function(a){k.update(a);var b=k.getSize();k.update("");return b},bind:function(a){k.setStyle(Ext.fly(a).getStyles("font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"))},setFixedWidth:function(a){k.setWidth(a)},getWidth:function(a){k.dom.style.width="auto";return this.getSize(a).width},getHeight:function(a){return this.getSize(a).height}};g.bind(e);return g};Ext.Element.addMethods({getTextWidth:function(g,d,e){return(Ext.util.TextMetrics.measure(this.dom,Ext.value(g,this.dom.innerHTML,true)).width).constrain(d||0,e||1000000)}});Ext.util.Cookies={set:function(r,p){var l=arguments;var m=arguments.length;var k=(m>2)?l[2]:null;var n=(m>3)?l[3]:"/";var q=(m>4)?l[4]:null;var o=(m>5)?l[5]:false;document.cookie=r+"="+escape(p)+((k===null)?"":("; expires="+k.toGMTString()))+((n===null)?"":("; path="+n))+((q===null)?"":("; domain="+q))+((o===true)?"; secure":"")},get:function(n){var h=n+"=";var l=h.length;var k=document.cookie.length;var m=0;var o=0;while(m<k){o=m+l;if(document.cookie.substring(m,o)==h){return Ext.util.Cookies.getCookieVal(o)}m=document.cookie.indexOf(" ",m)+1;if(m===0){break}}return null},clear:function(b){if(Ext.util.Cookies.get(b)){document.cookie=b+"=; expires=Thu, 01-Jan-70 00:00:01 GMT"}},getCookieVal:function(c){var d=document.cookie.indexOf(";",c);if(d==-1){d=document.cookie.length}return unescape(document.cookie.substring(c,d))}};Ext.handleError=function(b){throw b};Ext.Error=function(b){this.message=(this.lang[b])?this.lang[b]:b};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 g=new Ext.util.MixedCollection();var d={};var e={};return{register:function(a){g.add(a)},unregister:function(a){g.remove(a)},get:function(a){return g.get(a)},onAvailable:function(a,b,c){g.on("add",function(l,k){if(k.id==a){b.call(c||k,k);g.un("add",b,c)}})},all:g,types:d,ptypes:e,isRegistered:function(a){return d[a]!==undefined},isPluginRegistered:function(a){return e[a]!==undefined},registerType:function(a,b){d[a]=b;b.xtype=a},create:function(b,a){return b.render?b:new d[b.xtype||a](b)},registerPlugin:function(a,b){e[a]=b;b.ptype=a},createPlugin:function(b,a){var c=e[b.ptype||a];if(c.init){return c}else{return new c(b)}}}}();Ext.reg=Ext.ComponentMgr.registerType;Ext.preg=Ext.ComponentMgr.registerPlugin;Ext.create=Ext.ComponentMgr.create;Ext.Component=function(d){d=d||{};if(d.initialConfig){if(d.isAction){this.baseAction=d}d=d.initialConfig}else{if(d.tagName||d.dom||Ext.isString(d)){d={applyTo:d,id:d.id||d}}}this.initialConfig=d;Ext.apply(this,d);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 g=0,e=this.plugins.length;g<e;g++){this.plugins[g]=this.initPlugin(this.plugins[g])}}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(b){if(b.ptype&&!Ext.isFunction(b.init)){b=Ext.ComponentMgr.createPlugin(b)}else{if(Ext.isString(b)){b=Ext.ComponentMgr.createPlugin({ptype:b})}}b.init(this);return b},initComponent:function(){if(this.listeners){this.on(this.listeners);delete this.listeners}this.enableBubble(this.bubbleEvents)},render:function(e,g){if(!this.rendered&&this.fireEvent("beforerender",this)!==false){if(!e&&this.el){this.el=Ext.get(this.el);e=this.el.dom.parentNode;this.allowDomMove=false}this.container=Ext.get(e);if(this.ctCls){this.container.addClass(this.ctCls)}this.rendered=true;if(g!==undefined){if(Ext.isNumber(g)){g=this.container.dom.childNodes[g]}else{g=Ext.getDom(g)}}this.onRender(this.container,g||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 k=this.getContentTarget();if(this.html){k.update(Ext.DomHelper.markup(this.html));delete this.html}if(this.contentEl){var h=Ext.getDom(this.contentEl);Ext.fly(h).removeClass(["x-hidden","x-hide-display"]);k.appendChild(h)}if(this.tpl){if(!this.tpl.compile){this.tpl=new Ext.XTemplate(this.tpl)}if(this.data){this.tpl[this.tplWriteMode](k,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(g,l,h){var m=this.getContentTarget();if(this.tpl&&typeof g!=="string"){this.tpl[this.tplWriteMode](m,g||{})}else{var k=Ext.isObject(g)?Ext.DomHelper.markup(g):g;m.update(k,l,h)}},onAdded:function(d,c){this.ownerCt=d;this.initRef();this.fireEvent("added",this,d,c)},onRemoved:function(){this.removeRef();this.fireEvent("removed",this,this.ownerCt);delete this.ownerCt},initRef:function(){if(this.ref&&!this.refOwner){var h=this.ref.split("/"),k=h.length,e=0,g=this;while(g&&e<k){g=g.ownerCt;++e}if(g){g[this.refName=h[--e]]=this;this.refOwner=g}}},removeRef:function(){if(this.refOwner&&this.refName){delete this.refOwner[this.refName];delete this.refOwner}},initState:function(){if(Ext.state.Manager){var c=this.getStateId();if(c){var d=Ext.state.Manager.get(c);if(d){if(this.fireEvent("beforestaterestore",this,d)!==false){this.applyState(Ext.apply({},d));this.fireEvent("staterestore",this,d)}}}}},getStateId:function(){return this.stateId||((/^(ext-comp-|ext-gen)/).test(String(this.id))?null:this.id)},initStateEvents:function(){if(this.stateEvents){for(var d=0,c;c=this.stateEvents[d];d++){this.on(c,this.saveState,this,{delay:100})}}},applyState:function(b){if(b){Ext.apply(this,b)}},getState:function(){return null},saveState:function(){if(Ext.state.Manager&&this.stateful!==false){var c=this.getStateId();if(c){var d=this.getState();if(this.fireEvent("beforestatesave",this,d)!==false){Ext.state.Manager.set(c,d);this.fireEvent("statesave",this,d)}}}},applyToMarkup:function(b){this.allowDomMove=false;this.el=Ext.get(b);this.render(this.el.dom.parentNode)},addClass:function(b){if(this.el){this.el.addClass(b)}else{this.cls=this.cls?this.cls+" "+b:b}return this},removeClass:function(b){if(this.el){this.el.removeClass(b)}else{if(this.cls){this.cls=this.cls.split(" ").remove(b).join(" ")}}return this},onRender:function(d,e){if(!this.el&&this.autoEl){if(Ext.isString(this.autoEl)){this.el=document.createElement(this.autoEl)}else{var g=document.createElement("div");Ext.DomHelper.overwrite(g,this.autoEl);this.el=g.firstChild}if(!this.el.id){this.el.id=this.getId()}}if(this.el){this.el=Ext.get(this.el);if(this.allowDomMove!==false){d.dom.insertBefore(this.el.dom,e);if(g){Ext.removeNode(g);g=null}}}},getAutoCreate:function(){var b=Ext.isObject(this.autoCreate)?this.autoCreate:Ext.apply({},this.defaultAutoCreate);if(this.id&&!b.id){b.id=this.id}return b},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 d=arguments;for(var g=0,e=d.length;g<e;++g){delete this[d[g]]}},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(c,d){if(d){this.focusTask=new Ext.util.DelayedTask(this.focus,this,[c,false]);this.focusTask.delay(Ext.isNumber(d)?d:10);return this}if(this.rendered&&!this.isDestroyed){this.el.focus();if(c===true){this.el.dom.select()}}return this},blur:function(){if(this.rendered){this.el.blur()}return this},disable:function(b){if(this.rendered){this.onDisable()}this.disabled=true;if(b!==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(b){return this[b?"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(b){return this[b?"show":"hide"]()},isVisible:function(){return this.rendered&&this.getVisibilityEl().isVisible()},cloneConfig:function(d){d=d||{};var g=d.id||Ext.id();var e=Ext.applyIf(d,this.initialConfig);e.id=g;return new this.constructor(e)},getXType:function(){return this.constructor.xtype},isXType:function(c,d){if(Ext.isFunction(c)){c=c.xtype}else{if(Ext.isObject(c)){c=c.constructor.xtype}}return !d?("/"+this.getXTypes()+"/").indexOf("/"+c+"/")!=-1:this.constructor.xtype==c},getXTypes:function(){var e=this.constructor;if(!e.xtypes){var g=[],c=this;while(c&&c.constructor.xtype){g.unshift(c.constructor.xtype);c=c.constructor.superclass}e.xtypeChain=g;e.xtypes=g.join("/")}return e.xtypes},findParentBy:function(d){for(var c=this.ownerCt;(c!=null)&&!d(c,this);c=c.ownerCt){}return c||null},findParentByType:function(c,d){return this.findParentBy(function(a){return a.isXType(c,d)})},bubble:function(k,e,g){var h=this;while(h){if(k.apply(e||h,g||[h])===false){break}h=h.ownerCt}return this},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(b){b.item.un(b.ename,b.fn,b.scope)},this);this.mons=[]},createMons:function(){if(!this.mons){this.mons=[];this.on("beforedestroy",this.clearMons,this,{single:true})}},mon:function(p,e,q,r,l){this.createMons();if(Ext.isObject(e)){var m=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/;var n=e;for(var o in n){if(m.test(o)){continue}if(Ext.isFunction(n[o])){this.mons.push({item:p,ename:o,fn:n[o],scope:n.scope});p.on(o,n[o],n.scope,n)}else{this.mons.push({item:p,ename:o,fn:n[o],scope:n.scope});p.on(o,n[o])}}return}this.mons.push({item:p,ename:e,fn:q,scope:r});p.on(e,q,r,l)},mun:function(o,s,p,q){var n,r;this.createMons();for(var l=0,m=this.mons.length;l<m;++l){r=this.mons[l];if(o===r.item&&s==r.ename&&p===r.fn&&q===r.scope){this.mons.splice(l,1);o.un(s,p,q);n=true;break}}return n},nextSibling:function(){if(this.ownerCt){var b=this.ownerCt.items.indexOf(this);if(b!=-1&&b+1<this.ownerCt.items.getCount()){return this.ownerCt.items.itemAt(b+1)}}return null},previousSibling:function(){if(this.ownerCt){var b=this.ownerCt.items.indexOf(this);if(b>0){return this.ownerCt.items.itemAt(b-1)}}return null},getBubbleTarget:function(){return this.ownerCt}});Ext.reg("component",Ext.Component);Ext.Action=Ext.extend(Object,{constructor:function(b){this.initialConfig=b;this.itemId=b.itemId=(b.itemId||b.id||Ext.id());this.items=[]},isAction:true,setText:function(b){this.initialConfig.text=b;this.callEach("setText",[b])},getText:function(){return this.initialConfig.text},setIconClass:function(b){this.initialConfig.iconCls=b;this.callEach("setIconClass",[b])},getIconClass:function(){return this.initialConfig.iconCls},setDisabled:function(b){this.initialConfig.disabled=b;this.callEach("setDisabled",[b])},enable:function(){this.setDisabled(false)},disable:function(){this.setDisabled(true)},isDisabled:function(){return this.initialConfig.disabled},setHidden:function(b){this.initialConfig.hidden=b;this.callEach("setVisible",[!b])},show:function(){this.setHidden(false)},hide:function(){this.setHidden(true)},isHidden:function(){return this.initialConfig.hidden},setHandler:function(c,d){this.initialConfig.handler=c;this.initialConfig.scope=d;this.callEach("setHandler",[c,d])},each:function(c,d){Ext.each(this.items,c,d)},callEach:function(k,g){var l=this.items;for(var m=0,h=l.length;m<h;m++){l[m][k].apply(l[m],g)}},addComponent:function(b){this.items.push(b);b.on("destroy",this.removeComponent,this)},removeComponent:function(b){this.items.remove(b)},execute:function(){this.initialConfig.handler.apply(this.initialConfig.scope||window,arguments)}});(function(){Ext.Layer=function(m,n){m=m||{};var l=Ext.DomHelper,b=m.parentEl,k=b?Ext.getDom(b):document.body;if(n){this.dom=Ext.getDom(n)}if(!this.dom){var a=m.dh||{tag:"div",cls:"x-layer"};this.dom=l.append(k,a)}if(m.cls){this.addClass(m.cls)}this.constrain=m.constrain!==false;this.setVisibilityMode(Ext.Element.VISIBILITY);if(m.id){this.id=this.dom.id=m.id}else{this.id=Ext.id(this.dom)}this.zindex=m.zindex||this.getZIndex();this.position("absolute",this.zindex);if(m.shadow){this.shadowOffset=m.shadowOffset||4;this.shadow=new Ext.Shadow({offset:this.shadowOffset,mode:m.shadow})}else{this.shadowOffset=0}this.useShim=m.shim!==false&&Ext.useShims;this.useDisplay=m.useDisplay;this.hide()};var d=Ext.Element.prototype;var c=[];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 a=c.shift();if(!a){a=this.createShim();a.enableDisplayMode("block");a.dom.style.display="none";a.dom.style.visibility="visible"}var b=this.dom.parentNode;if(a.dom.parentNode!=b){b.insertBefore(a.dom,this.dom)}a.setStyle("z-index",this.getZIndex()-2);this.shim=a;return a},hideShim:function(){if(this.shim){this.shim.setDisplayed(false);c.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(a){if(this.shadow){this.shadowDisabled=false;this.shadowOffset=this.lastShadowOffset;delete this.lastShadowOffset;if(a){this.sync(true)}}},sync:function(u){var b=this.shadow;if(!this.updating&&this.isVisible()&&(b||this.useShim)){var r=this.getShim(),h=this.getWidth(),q=this.getHeight(),t=this.getLeft(true),a=this.getTop(true);if(b&&!this.shadowDisabled){if(u&&!b.isVisible()){b.show(this)}else{b.realign(t,a,h,q)}if(r){if(u){r.show()}var l=b.el.getXY(),s=r.dom.style,v=b.el.getSize();s.left=(l[0])+"px";s.top=(l[1])+"px";s.width=(v.width)+"px";s.height=(v.height)+"px"}}else{if(r){if(u){r.show()}r.setSize(h,q);r.setLeftTop(t,a)}}}},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(a){if(this.shadow){this.shadow.hide()}this.hideShim()},constrainXY:function(){if(this.constrain){var s=Ext.lib.Dom.getViewWidth(),w=Ext.lib.Dom.getViewHeight();var a=Ext.getDoc().getScroll();var b=this.getXY();var r=b[0],t=b[1];var x=this.shadowOffset;var q=this.dom.offsetWidth+x,v=this.dom.offsetHeight+x;var u=false;if((r+q)>s+a.left){r=s-q-x;u=true}if((t+v)>w+a.top){t=w-v-x;u=true}if(r<a.left){r=a.left;u=true}if(t<a.top){t=a.top;u=true}if(u){if(this.avoidY){var h=this.avoidY;if(t<=h&&(t+v)>=h){t=h-v-5}}b=[r,t];this.storeXY(b);d.setXY.call(this,b);this.sync()}}return this},getConstrainOffset:function(){return this.shadowOffset},isVisible:function(){return this.visible},showAction:function(){this.visible=true;if(this.useDisplay===true){this.setDisplayed("")}else{if(this.lastXY){d.setXY.call(this,this.lastXY)}else{if(this.lastLT){d.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(n,o,b,a,e){if(n){this.showAction()}if(o&&n){var p=function(){this.sync(true);if(a){a()}}.createDelegate(this);d.setVisible.call(this,true,true,b,p,e)}else{if(!n){this.hideUnders(true)}var p=a;if(o){p=function(){this.hideAction();if(a){a()}}.createDelegate(this)}d.setVisible.call(this,n,o,b,p,e);if(n){this.sync(true)}else{if(!o){this.hideAction()}}}return this},storeXY:function(a){delete this.lastLT;this.lastXY=a},storeLeftTop:function(a,b){delete this.lastXY;this.lastLT=[a,b]},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(a){this.storeLeftTop(a,this.getTop(true));d.setLeft.apply(this,arguments);this.sync();return this},setTop:function(a){this.storeLeftTop(this.getLeft(true),a);d.setTop.apply(this,arguments);this.sync();return this},setLeftTop:function(a,b){this.storeLeftTop(a,b);d.setLeftTop.apply(this,arguments);this.sync();return this},setXY:function(e,o,b,a,n){this.fixDisplay();this.beforeAction();this.storeXY(e);var p=this.createCB(a);d.setXY.call(this,e,o,b,p,n);if(!o){p()}return this},createCB:function(a){var b=this;return function(){b.constrainXY();b.sync(true);if(a){a()}}},setX:function(n,m,b,a,e){this.setXY([n,this.getY()],m,b,a,e);return this},setY:function(a,n,e,b,m){this.setXY([this.getX(),a],n,e,b,m);return this},setSize:function(e,b,h,r,q,a){this.beforeAction();var p=this.createCB(q);d.setSize.call(this,e,b,h,r,p,a);if(!h){p()}return this},setWidth:function(n,o,b,a,e){this.beforeAction();var p=this.createCB(a);d.setWidth.call(this,n,o,b,p,e);if(!o){p()}return this},setHeight:function(e,h,a,p,b){this.beforeAction();var o=this.createCB(p);d.setHeight.call(this,e,h,a,o,b);if(!h){o()}return this},setBounds:function(b,h,a,u,e,s,r,t){this.beforeAction();var v=this.createCB(r);if(!e){this.storeXY([b,h]);d.setXY.call(this,[b,h]);d.setSize.call(this,a,u,e,s,v,t);v()}else{d.setBounds.call(this,b,h,a,u,e,s,v,t)}return this},setZIndex:function(a){this.zindex=a;this.setStyle("z-index",a+2);if(this.shadow){this.shadow.setZIndex(a+1)}if(this.shim){this.shim.setStyle("z-index",a)}return this}})})();Ext.Shadow=function(h){Ext.apply(this,h);if(typeof this.mode!="string"){this.mode=this.defaultMode}var g=this.offset,k={h:0},a=Math.floor(this.offset/2);switch(this.mode.toLowerCase()){case"drop":k.w=0;k.l=k.t=g;k.t-=1;if(Ext.isIE){k.l-=this.offset+a;k.t-=this.offset+a;k.w-=a;k.h-=a;k.t+=1}break;case"sides":k.w=(g*2);k.l=-g;k.t=g-1;if(Ext.isIE){k.l-=(this.offset-a);k.t-=this.offset+a;k.l+=1;k.w-=(this.offset-a)*2;k.w-=a+1;k.h-=1}break;case"frame":k.w=k.h=(g*2);k.l=k.t=-g;k.t+=1;k.h-=2;if(Ext.isIE){k.l-=(this.offset-a);k.t-=(this.offset-a);k.l+=1;k.w-=(this.offset+a+1);k.h-=(this.offset+a);k.h+=1}break}this.adjusts=k};Ext.Shadow.prototype={offset:4,defaultMode:"drop",show:function(b){b=Ext.get(b);if(!this.el){this.el=Ext.Shadow.Pool.pull();if(this.el.dom.nextSibling!=b.dom){this.el.insertBefore(b)}}this.el.setStyle("z-index",this.zIndex||parseInt(b.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(b.getLeft(true),b.getTop(true),b.getWidth(),b.getHeight());this.el.dom.style.display="block"},isVisible:function(){return this.el?true:false},realign:function(B,D,a,y){if(!this.el){return}var l=this.adjusts,t=this.el.dom,C=t.style,x=0,d=(a+l.w),z=(y+l.h),w=d+"px",h=z+"px",s,A;C.left=(B+l.l)+"px";C.top=(D+l.t)+"px";if(C.width!=w||C.height!=h){C.width=w;C.height=h;if(!Ext.isIE){s=t.childNodes;A=Math.max(0,(d-12))+"px";s[0].childNodes[1].style.width=A;s[1].childNodes[1].style.width=A;s[2].childNodes[1].style.width=A;s[1].style.height=Math.max(0,(z-12))+"px"}}},hide:function(){if(this.el){this.el.dom.style.display="none";Ext.Shadow.Pool.push(this.el);delete this.el}},setZIndex:function(b){this.zIndex=b;if(this.el){this.el.setStyle("z-index",b)}}};Ext.Shadow.Pool=function(){var c=[],d=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 a=c.shift();if(!a){a=Ext.get(Ext.DomHelper.insertHtml("beforeBegin",document.body.firstChild,d));a.autoBoxAdjust=false}return a},push:function(a){c.push(a)}}}();Ext.BoxComponent=Ext.extend(Ext.Component,{initComponent:function(){Ext.BoxComponent.superclass.initComponent.call(this);this.addEvents("resize","move")},boxReady:false,deferHeight:false,setSize:function(h,n){if(typeof h=="object"){n=h.height;h=h.width}if(Ext.isDefined(h)&&Ext.isDefined(this.boxMinWidth)&&(h<this.boxMinWidth)){h=this.boxMinWidth}if(Ext.isDefined(n)&&Ext.isDefined(this.boxMinHeight)&&(n<this.boxMinHeight)){n=this.boxMinHeight}if(Ext.isDefined(h)&&Ext.isDefined(this.boxMaxWidth)&&(h>this.boxMaxWidth)){h=this.boxMaxWidth}if(Ext.isDefined(n)&&Ext.isDefined(this.boxMaxHeight)&&(n>this.boxMaxHeight)){n=this.boxMaxHeight}if(!this.boxReady){this.width=h;this.height=n;return this}if(this.cacheSizes!==false&&this.lastSize&&this.lastSize.width==h&&this.lastSize.height==n){return this}this.lastSize={width:h,height:n};var o=this.adjustSize(h,n),l=o.width,k=o.height,m;if(l!==undefined||k!==undefined){m=this.getResizeEl();if(!this.deferHeight&&l!==undefined&&k!==undefined){m.setSize(l,k)}else{if(!this.deferHeight&&k!==undefined){m.setHeight(k)}else{if(l!==undefined){m.setWidth(l)}}}this.onResize(l,k,h,n);this.fireEvent("resize",this,l,k,h,n)}return this},setWidth:function(b){return this.setSize(b)},setHeight:function(b){return this.setSize(undefined,b)},getSize:function(){return this.getResizeEl().getSize()},getWidth:function(){return this.getResizeEl().getWidth()},getHeight:function(){return this.getResizeEl().getHeight()},getOuterSize:function(){var b=this.getResizeEl();return{width:b.getWidth()+b.getMargins("lr"),height:b.getHeight()+b.getMargins("tb")}},getPosition:function(d){var c=this.getPositionEl();if(d===true){return[c.getLeft(true),c.getTop(true)]}return this.xy||c.getXY()},getBox:function(e){var g=this.getPosition(e);var d=this.getSize();d.x=g[0];d.y=g[1];return d},updateBox:function(b){this.setSize(b.width,b.height);this.setPagePosition(b.x,b.y);return this},getResizeEl:function(){return this.resizeEl||this.el},setAutoScroll:function(b){if(this.rendered){this.getContentTarget().setOverflow(b?"auto":"")}this.autoScroll=b;return this},setPosition:function(k,l){if(k&&typeof k[1]=="number"){l=k[1];k=k[0]}this.x=k;this.y=l;if(!this.boxReady){return this}var h=this.adjustPosition(k,l);var m=h.x,n=h.y;var o=this.getPositionEl();if(m!==undefined||n!==undefined){if(m!==undefined&&n!==undefined){o.setLeftTop(m,n)}else{if(m!==undefined){o.setLeft(m)}else{if(n!==undefined){o.setTop(n)}}}this.onPosition(m,n);this.fireEvent("move",this,m,n)}return this},setPagePosition:function(e,g){if(e&&typeof e[1]=="number"){g=e[1];e=e[0]}this.pageX=e;this.pageY=g;if(!this.boxReady){return}if(e===undefined||g===undefined){return}var d=this.getPositionEl().translatePoints(e,g);this.setPosition(d.left,d.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(h,e,g,k){},onPosition:function(d,c){},adjustSize:function(d,c){if(this.autoWidth){d="auto"}if(this.autoHeight){c="auto"}return{width:d,height:c}},adjustPosition:function(d,c){return{x:d,y:c}}});Ext.reg("box",Ext.BoxComponent);Ext.Spacer=Ext.extend(Ext.BoxComponent,{autoEl:"div"});Ext.reg("spacer",Ext.Spacer);Ext.SplitBar=function(m,k,g,l,h){this.el=Ext.get(m,true);this.el.dom.unselectable="on";this.resizingEl=Ext.get(k,true);this.orientation=g||Ext.SplitBar.HORIZONTAL;this.minSize=0;this.maxSize=2000;this.animate=false;this.useShim=false;this.shim=null;if(!h){this.proxy=Ext.SplitBar.createProxy(this.orientation)}else{this.proxy=Ext.get(h).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=l||(this.el.getX()>this.resizingEl.getX()?Ext.SplitBar.LEFT:Ext.SplitBar.RIGHT);this.el.addClass("x-splitbar-h")}else{this.placement=l||(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(h,k){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 m=this.adapter.getElementSize(this);this.activeMinSize=this.getMinimumSize();this.activeMaxSize=this.getMaximumSize();var l=m-this.activeMinSize;var g=Math.max(this.activeMaxSize-m,0);if(this.orientation==Ext.SplitBar.HORIZONTAL){this.dd.resetConstraints();this.dd.setXConstraint(this.placement==Ext.SplitBar.LEFT?l:g,this.placement==Ext.SplitBar.LEFT?g:l,this.tickSize);this.dd.setYConstraint(0,0)}else{this.dd.resetConstraints();this.dd.setXConstraint(0,0);this.dd.setYConstraint(this.placement==Ext.SplitBar.TOP?l:g,this.placement==Ext.SplitBar.TOP?g:l,this.tickSize)}this.dragSpecs.startSize=m;this.dragSpecs.startPoint=[h,k];Ext.dd.DDProxy.prototype.b4StartDrag.call(this.dd,h,k)},onEndProxyDrag:function(g){Ext.get(this.proxy).setDisplayed(false);var d=Ext.lib.Event.getXY(g);if(this.overlay){Ext.destroy(this.overlay);delete this.overlay}var e;if(this.orientation==Ext.SplitBar.HORIZONTAL){e=this.dragSpecs.startSize+(this.placement==Ext.SplitBar.LEFT?d[0]-this.dragSpecs.startPoint[0]:this.dragSpecs.startPoint[0]-d[0])}else{e=this.dragSpecs.startSize+(this.placement==Ext.SplitBar.TOP?d[1]-this.dragSpecs.startPoint[1]:this.dragSpecs.startPoint[1]-d[1])}e=Math.min(Math.max(e,this.activeMinSize),this.activeMaxSize);if(e!=this.dragSpecs.startSize){if(this.fireEvent("beforeapply",this,e)!==false){this.adapter.setElementSize(this,e);this.fireEvent("moved",this,e);this.fireEvent("resize",this,e)}}},getAdapter:function(){return this.adapter},setAdapter:function(b){this.adapter=b;this.adapter.init(this)},getMinimumSize:function(){return this.minSize},setMinimumSize:function(b){this.minSize=b},getMaximumSize:function(){return this.maxSize},setMaximumSize:function(b){this.maxSize=b},setCurrentSize:function(c){var d=this.animate;this.animate=false;this.adapter.setElementSize(this,c);this.animate=d},destroy:function(b){Ext.destroy(this.shim,Ext.get(this.proxy));this.dd.unreg();if(b){this.el.remove()}this.purgeListeners()}});Ext.SplitBar.createProxy=function(d){var g=new Ext.Element(document.createElement("div"));document.body.appendChild(g.dom);g.unselectable();var e="x-splitbar-proxy";g.addClass(e+" "+(d==Ext.SplitBar.HORIZONTAL?e+"-h":e+"-v"));return g.dom};Ext.SplitBar.BasicLayoutAdapter=function(){};Ext.SplitBar.BasicLayoutAdapter.prototype={init:function(b){},getElementSize:function(b){if(b.orientation==Ext.SplitBar.HORIZONTAL){return b.resizingEl.getWidth()}else{return b.resizingEl.getHeight()}},setElementSize:function(d,e,g){if(d.orientation==Ext.SplitBar.HORIZONTAL){if(!d.animate){d.resizingEl.setWidth(e);if(g){g(d,e)}}else{d.resizingEl.setWidth(e,true,0.1,g,"easeOut")}}else{if(!d.animate){d.resizingEl.setHeight(e);if(g){g(d,e)}}else{d.resizingEl.setHeight(e,true,0.1,g,"easeOut")}}}};Ext.SplitBar.AbsoluteLayoutAdapter=function(b){this.basic=new Ext.SplitBar.BasicLayoutAdapter();this.container=Ext.get(b)};Ext.SplitBar.AbsoluteLayoutAdapter.prototype={init:function(b){this.basic.init(b)},getElementSize:function(b){return this.basic.getElementSize(b)},setElementSize:function(d,e,g){this.basic.setElementSize(d,e,this.moveSplitter.createDelegate(this,[d]))},moveSplitter:function(d){var c=Ext.SplitBar;switch(d.placement){case c.LEFT:d.el.setX(d.resizingEl.getRight());break;case c.RIGHT:d.el.setStyle("right",(this.container.getWidth()-d.resizingEl.getLeft())+"px");break;case c.TOP:d.el.setY(d.resizingEl.getBottom());break;case c.BOTTOM:d.el.setY(d.resizingEl.getTop()-d.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 b=this.items;if(b){delete this.items;this.add(b)}},initItems:function(){if(!this.items){this.items=new Ext.util.MixedCollection(false,this.getComponentId);this.getLayout()}},setLayout:function(b){if(this.layout&&this.layout!=b){this.layout.setContainer(null)}this.layout=b;this.initItems();b.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&&this.layout.setActiveItem){var b=this.activeItem;delete this.activeItem;this.layout.setActiveItem(b)}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(b){return b.getItemId()},add:function(c){this.initItems();var l=arguments.length>1;if(l||Ext.isArray(c)){var h=[];Ext.each(l?arguments:c,function(a){h.push(this.add(a))},this);return h}var k=this.lookupComponent(this.applyDefaults(c));var m=this.items.length;if(this.fireEvent("beforeadd",this,k,m)!==false&&this.onBeforeAdd(k)!==false){this.items.add(k);k.onAdded(this,m);this.onAdd(k);this.fireEvent("add",this,k,m)}return k},onAdd:function(b){},onAdded:function(d,c){this.ownerCt=d;this.initRef();this.cascade(function(a){a.initRef()});this.fireEvent("added",this,d,c)},insert:function(p,c){var q=arguments,n=q.length,l=[],o,m;this.initItems();if(n>2){for(o=n-1;o>=1;--o){l.push(this.insert(p,q[o]))}return l}m=this.lookupComponent(this.applyDefaults(c));p=Math.min(p,this.items.length);if(this.fireEvent("beforeadd",this,m,p)!==false&&this.onBeforeAdd(m)!==false){if(m.ownerCt==this){this.items.remove(m)}this.items.insert(p,m);m.onAdded(this,p);this.onAdd(m);this.fireEvent("add",this,m,p)}return m},applyDefaults:function(c){var d=this.defaults;if(d){if(Ext.isFunction(d)){d=d.call(this,c)}if(Ext.isString(c)){c=Ext.ComponentMgr.get(c);Ext.apply(c,d)}else{if(!c.events){Ext.applyIf(c.isAction?c.initialConfig:c,d)}else{Ext.apply(c,d)}}}return c},onBeforeAdd:function(b){if(b.ownerCt){b.ownerCt.remove(b,false)}if(this.hideBorders===true){b.border=(b.border===true)}},remove:function(e,c){this.initItems();var g=this.getComponent(e);if(g&&this.fireEvent("beforeremove",this,g)!==false){this.doRemove(g,c);this.fireEvent("remove",this,g)}return g},onRemove:function(b){},doRemove:function(h,k){var c=this.layout,g=c&&this.rendered;if(g){c.onRemove(h)}this.items.remove(h);h.onRemoved();this.onRemove(h);if(k===true||(k!==false&&this.autoDestroy)){h.destroy()}if(g){c.afterRemove(h)}},removeAll:function(o){this.initItems();var m,l=[],h=[];this.items.each(function(a){l.push(a)});for(var n=0,k=l.length;n<k;++n){m=l[n];this.remove(m,o);if(m.ownerCt!==this){h.push(m)}}return h},getComponent:function(b){if(Ext.isObject(b)){b=b.getItemId()}return this.items.get(b)},lookupComponent:function(b){if(Ext.isString(b)){return Ext.ComponentMgr.get(b)}else{if(!b.events){return this.createComponent(b)}}return b},createComponent:function(e,g){if(e.render){return e}var c=Ext.create(Ext.apply({ownerCt:this},e),g||this.defaultType);delete c.initialConfig.ownerCt;delete c.ownerCt;return c},canLayout:function(){var b=this.getVisibilityEl();return b&&b.dom&&!b.isStyle("display","none")},doLayout:function(q,r){var n=this.rendered,o=r||this.forceLayout;if(this.collapsed||!this.canLayout()){this.deferLayout=this.deferLayout||!q;if(!o){return}q=q&&!this.deferLayout}else{delete this.deferLayout}if(n&&this.layout){this.layout.layout()}if(q!==true&&this.items){var s=this.items.items;for(var c=0,m=s.length;c<m;c++){var p=s[c];if(p.doLayout){p.doLayout(false,o)}}}if(n){this.onLayout(q,o)}this.hasLayout=true;delete this.forceLayout},onLayout:Ext.emptyFn,shouldBufferLayout:function(){var b=this.hasLayout;if(this.ownerCt){return b?!this.hasLayoutPending():false}return b},hasLayoutPending:function(){var b=false;this.ownerCt.bubble(function(a){if(a.layoutPending){b=true;return false}});return b},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 b=new Ext.layout.AutoLayout(this.layoutConfig);this.setLayout(b)}return this.layout},beforeDestroy:function(){var b;if(this.items){while(b=this.items.first()){this.doRemove(b,true)}}if(this.monitorResize){Ext.EventManager.removeResizeListener(this.doLayout,this)}Ext.destroy(this.layout);Ext.Container.superclass.beforeDestroy.call(this)},cascade:function(l,m,h){if(l.apply(m||this,h||[this])!==false){if(this.items){var n=this.items.items;for(var o=0,k=n.length;o<k;o++){if(n[o].cascade){n[o].cascade(l,m,h)}else{l.apply(m||n[o],h||[n[o]])}}}}return this},findById:function(g){var e=null,d=this;this.cascade(function(a){if(d!=a&&a.id===g){e=a;return false}});return e},findByType:function(c,d){return this.findBy(function(a){return a.isXType(c,d)})},find:function(c,d){return this.findBy(function(a){return a[c]===d})},findBy:function(h,k){var g=[],e=this;this.cascade(function(a){if(e!=a&&h.call(k||a,a,e)===true){g.push(a)}});return g},get:function(b){return this.getComponent(b)}});Ext.Container.LAYOUTS={};Ext.reg("container",Ext.Container);Ext.layout.ContainerLayout=Ext.extend(Object,{monitorResize:false,activeItem:null,constructor:function(b){this.id=Ext.id(null,"ext-layout-");Ext.apply(this,b)},type:"container",IEMeasureHack:function(p,s){var u=p.dom.childNodes,t=u.length,c,d=[],e,r,q;for(r=0;r<t;r++){c=u[r];e=Ext.get(c);if(e){d[r]=e.getStyle("display");e.setStyle({display:"none"})}}q=p?p.getViewSize(s):{};for(r=0;r<t;r++){c=u[r];e=Ext.get(c);if(e){e.setStyle({display:d[r]})}}return q},getLayoutTargetSize:Ext.EmptyFn,layout:function(){var d=this.container,c=d.getLayoutTarget();if(!(this.hasLayout||Ext.isEmpty(this.targetCls))){c.addClass(this.targetCls)}this.onLayout(d,c);d.fireEvent("afterlayout",d,this)},onLayout:function(d,c){this.renderAll(d,c)},isValidParent:function(c,d){return d&&c.getPositionEl().dom.parentNode==(d.dom||d)},renderAll:function(n,m){var c=n.items.items,o,l,k=c.length;for(o=0;o<k;o++){l=c[o];if(l&&(!l.rendered||!this.isValidParent(l,m))){this.renderItem(l,o,m)}}},renderItem:function(g,e,c){if(g){if(!g.rendered){g.render(c,e);this.configureItem(g)}else{if(!this.isValidParent(g,c)){if(Ext.isNumber(e)){e=c.dom.childNodes[e]}c.dom.insertBefore(g.getPositionEl().dom,e||null);g.container=c;this.configureItem(g)}}}},getRenderedItems:function(o){var p=o.getLayoutTarget(),n=o.items.items,l=n.length,q,m,c=[];for(q=0;q<l;q++){if((m=n[q]).rendered&&this.isValidParent(m,p)&&m.shouldLayout!==false){c.push(m)}}return c},configureItem:function(c){if(this.extraCls){var d=c.getPositionEl?c.getPositionEl():c;d.addClass(this.extraCls)}if(c.doLayout&&this.forceLayout){c.doLayout()}if(this.renderHidden&&c!=this.activeItem){c.hide()}},onRemove:function(c){if(this.activeItem==c){delete this.activeItem}if(c.rendered&&this.extraCls){var d=c.getPositionEl?c.getPositionEl():c;d.removeClass(this.extraCls)}},afterRemove:function(b){if(b.removeRestore){b.removeMode="container";delete b.removeRestore}},onResize:function(){var d=this.container,b;if(d.collapsed){return}if(b=d.bufferResize&&d.shouldBufferLayout()){if(!this.resizeTask){this.resizeTask=new Ext.util.DelayedTask(this.runLayout,this);this.resizeBuffer=Ext.isNumber(b)?b:50}d.layoutPending=true;this.resizeTask.delay(this.resizeBuffer)}else{this.runLayout()}},runLayout:function(){var b=this.container;this.layout();b.onLayout();delete b.layoutPending},setContainer:function(c){if(this.monitorResize&&c!=this.container){var d=this.container;if(d){d.un(d.resizeEvent,this.onResize,this)}if(c){c.on(c.resizeEvent,this.onResize,this)}}this.container=c},parseMargins:function(d){if(Ext.isNumber(d)){d=d.toString()}var g=d.split(" "),e=g.length;if(e==1){g[1]=g[2]=g[3]=g[0]}else{if(e==2){g[2]=g[0];g[3]=g[1]}else{if(e==3){g[3]=g[1]}}}return{top:parseInt(g[0],10)||0,right:parseInt(g[1],10)||0,bottom:parseInt(g[2],10)||0,left:parseInt(g[3],10)||0}},fieldTpl:(function(){var b=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>");b.disableFormats=true;return b.compile()})(),destroy:function(){if(this.resizeTask&&this.resizeTask.cancel){this.resizeTask.cancel()}if(this.container){this.container.un(this.container.resizeEvent,this.onResize,this)}if(!Ext.isEmpty(this.targetCls)){var b=this.container.getLayoutTarget();if(b){b.removeClass(this.targetCls)}}}});Ext.layout.AutoLayout=Ext.extend(Ext.layout.ContainerLayout,{type:"auto",monitorResize:true,onLayout:function(o,m){Ext.layout.AutoLayout.superclass.onLayout.call(this,o,m);var n=this.getRenderedItems(o),k=n.length,c,l;for(c=0;c<k;c++){l=n[c];if(l.doLayout){l.doLayout(true)}}}});Ext.Container.LAYOUTS.auto=Ext.layout.AutoLayout;Ext.layout.FitLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"fit",getLayoutTargetSize:function(){var b=this.container.getLayoutTarget();if(!b){return{}}return b.getStyleSize()},onLayout:function(d,c){Ext.layout.FitLayout.superclass.onLayout.call(this,d,c);if(!d.collapsed){this.setItemSize(this.activeItem||d.items.itemAt(0),this.getLayoutTargetSize())}},setItemSize:function(c,d){if(c&&d.height>0){c.setSize(d)}}});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(h){var g=this.activeItem,e=this.container;h=e.getComponent(h);if(h&&g!=h){if(g){g.hide();if(g.hidden!==true){return false}g.fireEvent("deactivate",g)}var k=h.doLayout&&(this.layoutOnCardChange||!h.rendered);this.activeItem=h;delete h.deferLayout;h.show();this.layout();if(k){h.doLayout()}h.fireEvent("activate",h)}},renderAll:function(d,c){if(this.deferredRender){this.renderItem(this.activeItem,undefined,c)}else{Ext.layout.CardLayout.superclass.renderAll.call(this,d,c)}}});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 c=this.container.getLayoutTarget(),d={};if(c){d=c.getViewSize();if(Ext.isIE&&Ext.isStrict&&d.width==0){d=c.getStyleSize()}d.width-=c.getPadding("lr");d.height-=c.getPadding("tb")}return d},onLayout:function(I,y){Ext.layout.AnchorLayout.superclass.onLayout.call(this,I,y);var F=this.getLayoutTargetSize(),K=F.width,G=F.height,E=y.getStyle("overflow"),H=this.getRenderedItems(I),B=H.length,N=[],L,S,z,J,M,Q,O,P,A=0,C,R;if(K<20&&G<20){return}if(I.anchorSize){if(typeof I.anchorSize=="number"){S=I.anchorSize}else{S=I.anchorSize.width;z=I.anchorSize.height}}else{S=I.initialConfig.width;z=I.initialConfig.height}for(C=0;C<B;C++){J=H[C];R=J.getPositionEl();if(!J.anchor&&J.items&&!Ext.isNumber(J.width)&&!(Ext.isIE6&&Ext.isStrict)){J.anchor=this.defaultAnchor}if(J.anchor){M=J.anchorSpec;if(!M){P=J.anchor.split(" ");J.anchorSpec=M={right:this.parseAnchor(P[0],J.initialConfig.width,S),bottom:this.parseAnchor(P[1],J.initialConfig.height,z)}}Q=M.right?this.adjustWidthAnchor(M.right(K)-R.getMargins("lr"),J):undefined;O=M.bottom?this.adjustHeightAnchor(M.bottom(G)-R.getMargins("tb"),J):undefined;if(Q||O){N.push({component:J,width:Q||undefined,height:O||undefined})}}}for(C=0,B=N.length;C<B;C++){L=N[C];L.component.setSize(L.width,L.height)}if(E&&E!="hidden"&&!this.adjustmentPass){var D=this.getLayoutTargetSize();if(D.width!=F.width||D.height!=F.height){this.adjustmentPass=true;this.onLayout(I,y)}}delete this.adjustmentPass},parseAnchor:function(o,k,a){if(o&&o!="none"){var m;if(this.parseAnchorRE.test(o)){var l=a-k;return function(b){if(b!==m){m=b;return b-l}}}else{if(o.indexOf("%")!=-1){var n=parseFloat(o.replace("%",""))*0.01;return function(b){if(b!==m){m=b;return Math.floor(b*n)}}}else{o=parseInt(o,10);if(!isNaN(o)){return function(b){if(b!==m){m=b;return b+o}}}}}}return false},adjustWidthAnchor:function(c,d){return c},adjustHeightAnchor:function(c,d){return c}});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(c,d){return this.innerCt&&c.getPositionEl().dom.parentNode==this.innerCt.dom},getLayoutTargetSize:function(){var c=this.container.getLayoutTarget(),d;if(c){d=c.getViewSize();if(Ext.isIE&&Ext.isStrict&&d.width==0){d=c.getStyleSize()}d.width-=c.getPadding("lr");d.height-=c.getPadding("tb")}return d},renderAll:function(d,c){if(!this.innerCt){this.innerCt=c.createChild({cls:"x-column-inner"});this.innerCt.createChild({cls:"x-clear"})}Ext.layout.ColumnLayout.superclass.renderAll.call(this,d,this.innerCt)},onLayout:function(y,v){var x=y.items.items,w=x.length,t,A,B,m=[];this.renderAll(y,v);var C=this.getLayoutTargetSize();if(C.width<1&&C.height<1){return}var h=C.width-this.scrollOffset,z=C.height,c=h;this.innerCt.setWidth(h);for(A=0;A<w;A++){t=x[A];B=t.getPositionEl().getMargins("lr");m[A]=B;if(!t.columnWidth){c-=(t.getWidth()+B)}}c=c<0?0:c;for(A=0;A<w;A++){t=x[A];B=m[A];if(t.columnWidth){t.setSize(Math.floor(t.columnWidth*c)-B)}}if(Ext.isIE){if(A=v.getStyle("overflow")&&A!="hidden"&&!this.adjustmentPass){var u=this.getLayoutTargetSize();if(u.width!=C.width){this.adjustmentPass=true;this.onLayout(y,v)}}}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 b=this.container.getLayoutTarget();return b?b.getViewSize():{}},onLayout:function(Y,e){var X,Q,w,U,c=Y.items.items,O=c.length;if(!this.rendered){X=[];for(Q=0;Q<O;Q++){w=c[Q];U=w.region;if(w.collapsed){X.push(w)}w.collapsed=false;if(!w.rendered){w.render(e,Q);w.getPositionEl().addClass("x-border-panel")}this[U]=U!="center"&&w.split?new Ext.layout.BorderLayout.SplitRegion(this,w.initialConfig,U):new Ext.layout.BorderLayout.Region(this,w.initialConfig,U);this[U].render(e,w)}this.rendered=true}var m=this.getLayoutTargetSize();if(m.width<20||m.height<20){if(X){this.restoreCollapsed=X}return}else{if(this.restoreCollapsed){X=this.restoreCollapsed;delete this.restoreCollapsed}}var L=m.width,N=m.height,M=L,S=N,R=0,P=0,b=this.north,s=this.south,V=this.west,K=this.east,w=this.center,h,T,Z,n;if(!w&&Ext.layout.BorderLayout.WARN!==false){throw"No center region defined in BorderLayout "+Y.id}if(b&&b.isVisible()){h=b.getSize();T=b.getMargins();h.width=L-(T.left+T.right);h.x=T.left;h.y=T.top;R=h.height+h.y+T.bottom;S-=R;b.applyLayout(h)}if(s&&s.isVisible()){h=s.getSize();T=s.getMargins();h.width=L-(T.left+T.right);h.x=T.left;n=(h.height+T.top+T.bottom);h.y=N-n+T.top;S-=n;s.applyLayout(h)}if(V&&V.isVisible()){h=V.getSize();T=V.getMargins();h.height=S-(T.top+T.bottom);h.x=T.left;h.y=R+T.top;Z=(h.width+T.left+T.right);P+=Z;M-=Z;V.applyLayout(h)}if(K&&K.isVisible()){h=K.getSize();T=K.getMargins();h.height=S-(T.top+T.bottom);Z=(h.width+T.left+T.right);h.x=L-Z+T.left;h.y=R+T.top;M-=Z;K.applyLayout(h)}if(w){T=w.getMargins();var W={x:P+T.left,y:R+T.top,width:M-(T.left+T.right),height:S-(T.top+T.bottom)};w.applyLayout(W)}if(X){for(Q=0,O=X.length;Q<O;Q++){X[Q].collapse(false)}}if(Ext.isIE&&Ext.isStrict){e.repaint()}if(Q=e.getStyle("overflow")&&Q!="hidden"&&!this.adjustmentPass){var aa=this.getLayoutTargetSize();if(aa.width!=m.width||aa.height!=m.height){this.adjustmentPass=true;this.onLayout(Y,e)}}delete this.adjustmentPass},destroy:function(){var d=["north","south","east","west"],e,g;for(e=0;e<d.length;e++){g=this[d[e]];if(g){if(g.destroy){g.destroy()}else{if(g.split){g.split.destroy(true)}}}}Ext.layout.BorderLayout.superclass.destroy.call(this)}});Ext.layout.BorderLayout.Region=function(d,e,g){Ext.apply(this,e);this.layout=d;this.position=g;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||{},g=="north"||g=="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(e,k){this.panel=k;k.el.enableDisplayMode();this.targetEl=e;this.el=k.el;var g=k.getState,h=this.position;k.getState=function(){return Ext.apply(g.call(k)||{},this.state)}.createDelegate(this);if(h!="center"){k.allowQueuedExpand=false;k.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){k.collapseEl="el";k.slideAnchor=this.getSlideAnchor()}if(k.tools&&k.tools.toggle){k.tools.toggle.addClass("x-tool-collapse-"+h);k.tools.toggle.addClassOnOver("x-tool-collapse-"+h+"-over")}}},getCollapsedEl:function(){if(!this.collapsedEl){if(!this.toolTemplate){var c=new Ext.Template('<div class="x-tool x-tool-{id}">&#160;</div>');c.disableFormats=true;c.compile();Ext.layout.BorderLayout.Region.prototype.toolTemplate=c}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 d=this.expandToolEl=this.toolTemplate.append(this.collapsedEl.dom,{id:"expand-"+this.position},true);d.addClassOnOver("x-tool-expand-"+this.position+"-over");d.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(b){if(this.isSlid){this.panel.expand(false)}else{this.panel.expand()}},onCollapseClick:function(b){this.panel.collapse()},beforeCollapse:function(g,e){this.lastAnim=e;if(this.splitEl){this.splitEl.hide()}this.getCollapsedEl().show();var d=this.panel.getEl();this.originalZIndex=d.getStyle("z-index");d.setStyle("z-index",100);this.isCollapsed=true;this.layout.layout()},onCollapse:function(b){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(d){if(this.isSlid){this.afterSlideIn()}var c=this.getCollapsedEl();this.el.show();if(this.position=="east"||this.position=="west"){this.panel.setSize(undefined,c.getHeight())}else{this.panel.setSize(c.getWidth(),undefined)}c.hide();c.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(b){if(this.isSlid){b.stopPropagation();this.slideIn()}else{b.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(b){this.panel=b},getMinWidth:function(){return this.minWidth},getMinHeight:function(){return this.minHeight},applyLayoutCollapsed:function(d){var c=this.getCollapsedEl();c.setLeftTop(d.x,d.y);c.setSize(d.width,d.height)},applyLayout:function(b){if(this.isCollapsed){this.applyLayoutCollapsed(b)}else{this.panel.setPosition(b.x,b.y);this.panel.setSize(b.width,b.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(b){if(!b.within(this.el,true)){this.autoHideSlideTask.delay(500)}},mouseover:function(b){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 d=this.panel.tools,g,e;if(d&&d.toggle){d.toggle.hide()}this.el.show();e=this.panel.collapsed;this.panel.collapsed=false;if(this.position=="east"||this.position=="west"){g=this.panel.deferHeight;this.panel.deferHeight=false;this.panel.setSize(undefined,this.collapsedEl.getHeight());this.panel.deferHeight=g}else{this.panel.setSize(this.collapsedEl.getWidth(),undefined)}this.panel.collapsed=e;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 b=this.panel.tools;if(b&&b.toggle){b.toggle.show()}},slideIn:function(b){if(!this.isSlid||this.el.hasActiveFx()){Ext.callback(b);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(b)},scope:this,block:true})}else{this.el.hide();this.afterSlideIn()}},slideInIf:function(b){if(!b.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 b=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 c=this.collapsedEl,d=this.cmargins;switch(this.position){case"west":return[-(d.right+c.getWidth()+d.left),0];break;case"east":return[d.right+c.getWidth()+d.left,0];break;case"north":return[0,-(d.top+d.bottom+c.getHeight())];break;case"south":return[0,d.top+d.bottom+c.getHeight()];break}},destroy:function(){if(this.autoHideSlideTask&&this.autoHideSlideTask.cancel){this.autoHideSlideTask.cancel()}Ext.destroyMembers(this,"miniCollapsedEl","collapsedEl","expandToolEl")}};Ext.layout.BorderLayout.SplitRegion=function(d,e,g){Ext.layout.BorderLayout.SplitRegion.superclass.constructor.call(this,d,e,g);this.applyLayout=this.applyFns[g]};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(k){if(this.isCollapsed){return this.applyLayoutCollapsed(k)}var h=this.splitEl.dom,e=h.style;this.panel.setPosition(k.x,k.y);var g=h.offsetWidth;e.left=(k.x+k.width-g)+"px";e.top=(k.y)+"px";e.height=Math.max(0,k.height)+"px";this.panel.setSize(k.width-g,k.height)},east:function(k){if(this.isCollapsed){return this.applyLayoutCollapsed(k)}var h=this.splitEl.dom,e=h.style;var g=h.offsetWidth;this.panel.setPosition(k.x+g,k.y);e.left=(k.x)+"px";e.top=(k.y)+"px";e.height=Math.max(0,k.height)+"px";this.panel.setSize(k.width-g,k.height)},north:function(k){if(this.isCollapsed){return this.applyLayoutCollapsed(k)}var h=this.splitEl.dom,e=h.style;var g=h.offsetHeight;this.panel.setPosition(k.x,k.y);e.left=(k.x)+"px";e.top=(k.y+k.height-g)+"px";e.width=Math.max(0,k.width)+"px";this.panel.setSize(k.width,k.height-g)},south:function(k){if(this.isCollapsed){return this.applyLayoutCollapsed(k)}var h=this.splitEl.dom,e=h.style;var g=h.offsetHeight;this.panel.setPosition(k.x,k.y+g);e.left=(k.x)+"px";e.top=(k.y)+"px";e.width=Math.max(0,k.width)+"px";this.panel.setSize(k.width,k.height-g)}},render:function(g,k){Ext.layout.BorderLayout.SplitRegion.superclass.render.call(this,g,k);var h=this.position;this.splitEl=g.createChild({cls:"x-layout-split x-layout-split-"+h,html:"&#160;",id:this.panel.id+"-xsplit"});if(this.collapseMode=="mini"){this.miniSplitEl=this.splitEl.createChild({cls:"x-layout-mini x-layout-mini-"+h,html:"&#160;"});this.miniSplitEl.addClassOnOver("x-layout-mini-over");this.miniSplitEl.on("click",this.onCollapseClick,this,{stopEvent:true})}var e=this.splitSettings[h];this.split=new Ext.SplitBar(this.splitEl.dom,k.el,e.orientation);this.split.tickSize=this.tickSize;this.split.placement=e.placement;this.split.getMaximumSize=this[e.maxFn].createDelegate(this);this.split.minSize=this.minSize||this[e.minProp];this.split.on("beforeapply",this.onSplitMove,this);this.split.useShim=this.useShim===true;this.maxSize=this.maxSize||this[e.maxProp];if(k.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 b=this.panel.getSize();if(this.position=="north"||this.position=="south"){b.height+=this.splitEl.dom.offsetHeight}else{b.width+=this.splitEl.dom.offsetWidth}return b},getHMaxSize:function(){var c=this.maxSize||10000;var d=this.layout.center;return Math.min(c,(this.el.getWidth()+d.el.getWidth())-d.getMinWidth())},getVMaxSize:function(){var c=this.maxSize||10000;var d=this.layout.center;return Math.min(c,(this.el.getHeight()+d.el.getHeight())-d.getMinHeight())},onSplitMove:function(d,e){var g=this.panel.getSize();this.lastSplitSize=e;if(this.position=="north"||this.position=="south"){this.panel.setSize(g.width,e);this.state.height=e}else{this.panel.setSize(e,g.height);this.state.width=e}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:true,type:"form",onRemove:function(g){Ext.layout.FormLayout.superclass.onRemove.call(this,g);if(this.trackLabels){g.un("show",this.onFieldShow,this);g.un("hide",this.onFieldHide,this)}var c=g.getPositionEl(),e=g.getItemCt&&g.getItemCt();if(g.rendered&&e){if(c&&c.dom){c.insertAfter(e)}Ext.destroy(e);Ext.destroyMembers(g,"label","itemCt");if(g.customItemCt){Ext.destroyMembers(g,"getItemCt","customItemCt")}}},setContainer:function(d){Ext.layout.FormLayout.superclass.setContainer.call(this,d);if(d.labelAlign){d.addClass("x-form-label-"+d.labelAlign)}if(d.hideLabels){Ext.apply(this,{labelStyle:"display:none",elementStyle:"padding-left:0;",labelAdjust:0})}else{this.labelSeparator=Ext.isDefined(d.labelSeparator)?d.labelSeparator:this.labelSeparator;d.labelWidth=d.labelWidth||100;if(Ext.isNumber(d.labelWidth)){var c=Ext.isNumber(d.labelPad)?d.labelPad:5;Ext.apply(this,{labelAdjust:d.labelWidth+c,labelStyle:"width:"+d.labelWidth+"px;",elementStyle:"padding-left:"+(d.labelWidth+c)+"px"})}if(d.labelAlign=="top"){Ext.apply(this,{labelStyle:"width:auto;",labelAdjust:0,elementStyle:"padding-left:0;"})}}},isHide:function(b){return b.hideLabel||this.container.hideLabels},onFieldShow:function(b){b.getItemCt().removeClass("x-hide-"+b.hideMode);if(b.isComposite){b.doLayout()}},onFieldHide:function(b){b.getItemCt().addClass("x-hide-"+b.hideMode)},getLabelStyle:function(k){var g="",m=[this.labelStyle,k];for(var l=0,h=m.length;l<h;++l){if(m[l]){g+=m[l];if(g.substr(-1,1)!=";"){g+=";"}}}return g},renderItem:function(h,g,k){if(h&&(h.isFormField||h.fieldLabel)&&h.inputType!="hidden"){var c=this.getTemplateArgs(h);if(Ext.isNumber(g)){g=k.dom.childNodes[g]||null}if(g){h.itemCt=this.fieldTpl.insertBefore(g,c,true)}else{h.itemCt=this.fieldTpl.append(k,c,true)}if(!h.getItemCt){Ext.apply(h,{getItemCt:function(){return h.itemCt},customItemCt:true})}h.label=h.getItemCt().child("label.x-form-item-label");if(!h.rendered){h.render("x-form-el-"+h.id)}else{if(!this.isValidParent(h,k)){Ext.fly("x-form-el-"+h.id).appendChild(h.getPositionEl())}}if(this.trackLabels){if(h.hidden){this.onFieldHide(h)}h.on({scope:this,show:this.onFieldShow,hide:this.onFieldHide})}this.configureItem(h)}else{Ext.layout.FormLayout.superclass.renderItem.apply(this,arguments)}},getTemplateArgs:function(c){var d=!c.fieldLabel||c.hideLabel;return{id:c.id,label:c.fieldLabel,itemCls:(c.itemCls||this.container.itemCls||"")+(c.hideLabel?" x-hide-label":""),clearCls:c.clearCls||"x-form-clear-left",labelStyle:this.getLabelStyle(c.labelStyle),elementStyle:this.elementStyle||"",labelSeparator:d?"":(Ext.isDefined(c.labelSeparator)?c.labelSeparator:this.labelSeparator)}},adjustWidthAnchor:function(e,g){if(g.label&&!this.isHide(g)&&(this.container.labelAlign!="top")){var c=Ext.isIE6||(Ext.isIE&&!Ext.isStrict);return e-this.labelAdjust+(c?-3:0)}return e},adjustHeightAnchor:function(d,c){if(c.label&&!this.isHide(c)&&(this.container.labelAlign=="top")){return d-c.label.getHeight()}return d},isValidParent:function(c,d){return d&&this.container.getEl().contains(c.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(b){if(this.animate===false){b.animCollapse=false}b.collapsible=true;if(this.autoWidth){b.autoWidth=true}if(this.titleCollapse){b.titleCollapse=true}if(this.hideCollapseTool){b.hideCollapseTool=true}if(this.collapseFirst!==undefined){b.collapseFirst=this.collapseFirst}if(!this.activeItem&&!b.collapsed){this.setActiveItem(b,true)}else{if(this.activeItem&&this.activeItem!=b){b.collapsed=true}}Ext.layout.AccordionLayout.superclass.renderItem.apply(this,arguments);b.header.addClass("x-accordion-hd");b.on("beforeexpand",this.beforeExpand,this)},onRemove:function(b){Ext.layout.AccordionLayout.superclass.onRemove.call(this,b);if(b.rendered){b.header.removeClass("x-accordion-hd")}b.un("beforeexpand",this.beforeExpand,this)},beforeExpand:function(g,d){var e=this.activeItem;if(e){if(this.sequence){delete this.activeItem;if(!e.collapsed){e.collapse({callback:function(){g.expand(d||true)},scope:this});return false}}else{e.collapse(this.animate)}}this.setActive(g);if(this.activeOnTop){g.el.dom.parentNode.insertBefore(g.el.dom,g.el.dom.parentNode.firstChild)}this.layout()},setItemSize:function(n,o){if(this.fill&&n){var p=0,q,k=this.getRenderedItems(this.container),l=k.length,m;for(q=0;q<l;q++){if((m=k[q])!=n&&!m.hidden){p+=m.header.getHeight()}}o.height-=p;n.setSize(o)}},setActiveItem:function(b){this.setActive(b,true)},setActive:function(g,d){var e=this.activeItem;g=this.container.getComponent(g);if(e!=g){if(g.rendered&&g.collapsed&&d){g.expand()}else{if(e){e.fireEvent("deactivate",e)}this.activeItem=g;g.fireEvent("activate",g)}}}});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(b){Ext.layout.TableLayout.superclass.setContainer.call(this,b);this.currentRow=0;this.currentColumn=0;this.cells=[]},onLayout:function(o,m){var n=o.items.items,k=n.length,l,c;if(!this.table){m.addClass("x-table-layout-ct");this.table=m.createChild(Ext.apply({tag:"table",cls:"x-table-layout",cellspacing:0,cn:{tag:"tbody"}},this.tableAttrs),null,true)}this.renderAll(o,m)},getRow:function(d){var c=this.table.tBodies[0].childNodes[d];if(!c){c=document.createElement("tr");this.table.tBodies[0].appendChild(c)}return c},getNextCell:function(m){var l=this.getNextNonSpan(this.currentColumn,this.currentRow);var p=this.currentColumn=l[0],q=this.currentRow=l[1];for(var n=q;n<q+(m.rowspan||1);n++){if(!this.cells[n]){this.cells[n]=[]}for(var r=p;r<p+(m.colspan||1);r++){this.cells[n][r]=true}}var o=document.createElement("td");if(m.cellId){o.id=m.cellId}var c="x-table-layout-cell";if(m.cellCls){c+=" "+m.cellCls}o.className=c;if(m.colspan){o.colSpan=m.colspan}if(m.rowspan){o.rowSpan=m.rowspan}this.getRow(q).appendChild(o);return o},getNextNonSpan:function(e,g){var d=this.columns;while((d&&e>=d)||(this.cells[g]&&this.cells[g][e])){if(d&&e>=d){g++;e=0}else{e++}}return[e,g]},renderItem:function(h,g,k){if(!this.table){this.table=k.createChild(Ext.apply({tag:"table",cls:"x-table-layout",cellspacing:0,cn:{tag:"tbody"}},this.tableAttrs),null,true)}if(h&&!h.rendered){h.render(this.getNextCell(h));this.configureItem(h)}else{if(h&&!this.isValidParent(h,k)){var c=this.getNextCell(h);c.insertBefore(h.getPositionEl().dom,null);h.container=Ext.get(c);this.configureItem(h)}}},isValidParent:function(c,d){return c.getPositionEl().up("table",5).dom.parentNode===(d.dom||d)},destroy:function(){delete this.table;Ext.layout.TableLayout.superclass.destroy.call(this)}});Ext.Container.LAYOUTS.table=Ext.layout.TableLayout;Ext.layout.AbsoluteLayout=Ext.extend(Ext.layout.AnchorLayout,{extraCls:"x-abs-layout-item",type:"absolute",onLayout:function(d,c){c.position();this.paddingLeft=c.getPadding("l");this.paddingTop=c.getPadding("t");Ext.layout.AbsoluteLayout.superclass.onLayout.call(this,d,c)},adjustWidthAnchor:function(c,d){return c?c-d.getPosition(true)[0]+this.paddingLeft:c},adjustHeightAnchor:function(c,d){return c?c-d.getPosition(true)[1]+this.paddingTop:c}});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(g){Ext.layout.BoxLayout.superclass.constructor.call(this,g);if(Ext.isString(this.defaultMargins)){this.defaultMargins=this.parseMargins(this.defaultMargins)}var h=this.overflowHandler;if(typeof h=="string"){h={type:h}}var k="none";if(h&&h.type!=undefined){k=h.type}var e=Ext.layout.boxOverflow[k];if(e[this.type]){e=e[this.type]}this.overflowHandler=new e(this,h)},onLayout:function(u,p){Ext.layout.BoxLayout.superclass.onLayout.call(this,u,p);var s=this.getLayoutTargetSize(),o=this.getVisibleItems(u),t=this.calculateChildBoxes(o,s),q=t.boxes,n=t.meta;if(s.width>0){var m=this.overflowHandler,v=n.tooNarrow?"handleOverflow":"clearOverflow";var r=m[v](t,s);if(r){if(r.targetSize){s=r.targetSize}if(r.recalculate){o=this.getVisibleItems(u);t=this.calculateChildBoxes(o,s);q=t.boxes}}}this.layoutTargetLastSize=s;this.childBoxCache=t;this.updateInnerCtSize(s,t);this.updateChildBoxes(q);this.handleTargetOverflow(s,u,p)},updateChildBoxes:function(m){for(var g=0,k=m.length;g<k;g++){var l=m[g],h=l.component;if(l.dirtySize){h.setSize(l.width,l.height)}if(isNaN(l.left)||isNaN(l.top)){continue}h.setPosition(l.left,l.top)}},updateInnerCtSize:function(r,n){var m=this.align,o=this.padding,p=r.width,l=r.height;if(this.type=="hbox"){var k=p,q=n.meta.maxHeight+o.top+o.bottom;if(m=="stretch"){q=l}else{if(m=="middle"){q=Math.max(l,q)}}}else{var q=l,k=n.meta.maxWidth+o.left+o.right;if(m=="stretch"){k=p}else{if(m=="center"){k=Math.max(p,k)}}}this.innerCt.setSize(k||undefined,q||undefined)},handleTargetOverflow:function(l,h,m){var k=m.getStyle("overflow");if(k&&k!="hidden"&&!this.adjustmentPass){var g=this.getLayoutTargetSize();if(g.width!=l.width||g.height!=l.height){this.adjustmentPass=true;this.onLayout(h,m)}}delete this.adjustmentPass},isValidParent:function(c,d){return this.innerCt&&c.getPositionEl().dom.parentNode==this.innerCt.dom},getVisibleItems:function(o){var o=o||this.container,p=o.getLayoutTarget(),n=o.items.items,l=n.length,q,m,c=[];for(q=0;q<l;q++){if((m=n[q]).rendered&&this.isValidParent(m,p)&&m.hidden!==true&&m.collapsed!==true&&m.shouldLayout!==false){c.push(m)}}return c},renderAll:function(d,c){if(!this.innerCt){this.innerCt=c.createChild({cls:this.innerCls});this.padding=this.parseMargins(this.padding)}Ext.layout.BoxLayout.superclass.renderAll.call(this,d,this.innerCt)},getLayoutTargetSize:function(){var c=this.container.getLayoutTarget(),d;if(c){d=c.getViewSize();if(Ext.isIE&&Ext.isStrict&&d.width==0){d=c.getStyleSize()}d.width-=c.getPadding("lr");d.height-=c.getPadding("tb")}return d},renderItem:function(b){if(Ext.isString(b.margins)){b.margins=this.parseMargins(b.margins)}else{if(!b.margins){b.margins=this.defaultMargins}}Ext.layout.BoxLayout.superclass.renderItem.apply(this,arguments)},destroy:function(){Ext.destroy(this.overflowHandler);Ext.layout.BoxLayout.superclass.destroy.apply(this,arguments)}});Ext.ns("Ext.layout.boxOverflow");Ext.layout.boxOverflow.None=Ext.extend(Object,{constructor:function(c,d){this.layout=c;Ext.apply(this,d||{})},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn});Ext.layout.boxOverflow.none=Ext.layout.boxOverflow.None;Ext.layout.boxOverflow.Menu=Ext.extend(Ext.layout.boxOverflow.None,{afterCls:"x-strip-right",noItemsMenuText:'<div class="x-toolbar-no-items">(None)</div>',constructor:function(b){Ext.layout.boxOverflow.Menu.superclass.constructor.apply(this,arguments);this.menuItems=[]},createInnerElements:function(){if(!this.afterCt){this.afterCt=this.layout.innerCt.insertSibling({cls:this.afterCls},"before")}},clearOverflow:function(k,l){var m=l.width+(this.afterCt?this.afterCt.getWidth():0),h=this.menuItems;this.hideTrigger();for(var o=0,n=h.length;o<n;o++){h.pop().component.show()}return{targetSize:{height:l.height,width:m}}},showTrigger:function(){this.createMenu();this.menuTrigger.show()},hideTrigger:function(){if(this.menuTrigger!=undefined){this.menuTrigger.hide()}},beforeMenuShow:function(m){var k=this.menuItems,l=k.length,n,o;var q=function(a,b){return a.isXType("buttongroup")&&!(b instanceof Ext.Toolbar.Separator)};this.clearMenu();m.removeAll();for(var p=0;p<l;p++){n=k[p].component;if(o&&(q(n,o)||q(o,n))){m.add("-")}this.addComponentToMenu(m,n);o=n}if(m.items.length<1){m.add(this.noItemsMenuText)}},createMenuConfig:function(k,g){var e=Ext.apply({},k.initialConfig),h=k.toggleGroup;Ext.copyTo(e,k,["iconCls","icon","itemId","disabled","handler","scope","menu"]);Ext.apply(e,{text:k.overflowText||k.text,hideOnClick:g});if(h||k.enableToggle){Ext.apply(e,{group:h,checked:k.pressed,listeners:{checkchange:function(a,b){k.toggle(b)}}})}delete e.ownerCt;delete e.xtype;delete e.id;return e},addComponentToMenu:function(c,d){if(d instanceof Ext.Toolbar.Separator){c.add("-")}else{if(Ext.isFunction(d.isXType)){if(d.isXType("splitbutton")){c.add(this.createMenuConfig(d,true))}else{if(d.isXType("button")){c.add(this.createMenuConfig(d,!d.menu))}else{if(d.isXType("buttongroup")){d.items.each(function(a){this.addComponentToMenu(c,a)},this)}}}}}},clearMenu:function(){var b=this.moreMenu;if(b&&b.items){b.items.each(function(a){delete a.menu})}},createMenu:function(){if(!this.menuTrigger){this.createInnerElements();this.menu=new Ext.menu.Menu({ownerCt:this.layout.container,listeners:{scope:this,beforeshow:this.beforeMenuShow}});this.menuTrigger=new Ext.Button({iconCls:"x-toolbar-more-icon",cls:"x-toolbar-more",menu:this.menu,renderTo:this.afterCt})}},destroy:function(){Ext.destroy(this.menu,this.menuTrigger)}});Ext.layout.boxOverflow.menu=Ext.layout.boxOverflow.Menu;Ext.layout.boxOverflow.HorizontalMenu=Ext.extend(Ext.layout.boxOverflow.Menu,{constructor:function(){Ext.layout.boxOverflow.HorizontalMenu.superclass.constructor.apply(this,arguments);var g=this,d=g.layout,e=d.calculateChildBoxes;d.calculateChildBoxes=function(r,n){var a=e.apply(d,arguments),b=a.meta,q=g.menuItems;var c=0;for(var p=0,o=q.length;p<o;p++){c+=q[p].width}b.minimumWidth+=c;b.tooNarrow=b.minimumWidth>n.width;return a}},handleOverflow:function(E,B){this.showTrigger();var z=B.width-this.afterCt.getWidth(),y=E.boxes,D=0,I=false;for(var v=0,F=y.length;v<F;v++){D+=y[v].width}var H=z-D,C=0;for(var v=0,F=this.menuItems.length;v<F;v++){var w=this.menuItems[v],x=w.component,G=w.width;if(G<H){x.show();H-=G;C++;I=true}else{break}}if(I){this.menuItems=this.menuItems.slice(C)}else{for(var A=y.length-1;A>=0;A--){var t=y[A].component,u=y[A].left+y[A].width;if(u>=z){this.menuItems.unshift({component:t,width:y[A].width});t.hide()}else{break}}}if(this.menuItems.length==0){this.hideTrigger()}return{targetSize:{height:B.height,width:z},recalculate:I}}});Ext.layout.boxOverflow.menu.hbox=Ext.layout.boxOverflow.HorizontalMenu;Ext.layout.boxOverflow.Scroller=Ext.extend(Ext.layout.boxOverflow.None,{animateScroll:true,scrollIncrement:100,wheelIncrement:3,scrollRepeatInterval:400,scrollDuration:0.4,beforeCls:"x-strip-left",afterCls:"x-strip-right",scrollerCls:"x-strip-scroller",beforeScrollerCls:"x-strip-scroller-left",afterScrollerCls:"x-strip-scroller-right",createWheelListener:function(){this.layout.innerCt.on({scope:this,mousewheel:function(b){b.stopEvent();this.scrollBy(b.getWheelDelta()*this.wheelIncrement*-1,false)}})},handleOverflow:function(d,c){this.createInnerElements();this.showScrollers()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){this.createScrollers();this.beforeScroller.show();this.afterScroller.show();this.updateScrollButtons()},hideScrollers:function(){if(this.beforeScroller!=undefined){this.beforeScroller.hide();this.afterScroller.hide()}},createScrollers:function(){if(!this.beforeScroller&&!this.afterScroller){var d=this.beforeCt.createChild({cls:String.format("{0} {1} ",this.scrollerCls,this.beforeScrollerCls)});var c=this.afterCt.createChild({cls:String.format("{0} {1}",this.scrollerCls,this.afterScrollerCls)});d.addClassOnOver(this.beforeScrollerCls+"-hover");c.addClassOnOver(this.afterScrollerCls+"-hover");d.setVisibilityMode(Ext.Element.DISPLAY);c.setVisibilityMode(Ext.Element.DISPLAY);this.beforeRepeater=new Ext.util.ClickRepeater(d,{interval:this.scrollRepeatInterval,handler:this.scrollLeft,scope:this});this.afterRepeater=new Ext.util.ClickRepeater(c,{interval:this.scrollRepeatInterval,handler:this.scrollRight,scope:this});this.beforeScroller=d;this.afterScroller=c}},destroy:function(){Ext.destroy(this.beforeScroller,this.afterScroller,this.beforeRepeater,this.afterRepeater,this.beforeCt,this.afterCt)},scrollBy:function(c,d){this.scrollTo(this.getScrollPosition()+c,d)},getItem:function(b){if(Ext.isString(b)){b=Ext.getCmp(b)}else{if(Ext.isNumber(b)){b=this.items[b]}}return b},getScrollAnim:function(){return{duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){if(this.beforeScroller==undefined||this.afterScroller==undefined){return}var h=this.atExtremeBefore()?"addClass":"removeClass",k=this.atExtremeAfter()?"addClass":"removeClass",g=this.beforeScrollerCls+"-disabled",e=this.afterScrollerCls+"-disabled";this.beforeScroller[h](g);this.afterScroller[k](e);this.scrolling=false},atExtremeBefore:function(){return this.getScrollPosition()===0},scrollLeft:function(b){this.scrollBy(-this.scrollIncrement,b)},scrollRight:function(b){this.scrollBy(this.scrollIncrement,b)},scrollToItem:function(l,g){l=this.getItem(l);if(l!=undefined){var h=this.getItemVisibility(l);if(!h.fullyVisible){var m=l.getBox(true,true),k=m.x;if(h.hiddenRight){k-=(this.layout.innerCt.getWidth()-m.width)}this.scrollTo(k,g)}}},getItemVisibility:function(m){var n=this.getItem(m).getBox(true,true),k=n.x,o=n.x+n.width,l=this.getScrollPosition(),h=this.layout.innerCt.getWidth()+l;return{hiddenLeft:k<l,hiddenRight:o>h,fullyVisible:k>l&&o<h}}});Ext.layout.boxOverflow.scroller=Ext.layout.boxOverflow.Scroller;Ext.layout.boxOverflow.VerticalScroller=Ext.extend(Ext.layout.boxOverflow.Scroller,{scrollIncrement:75,wheelIncrement:2,handleOverflow:function(d,c){Ext.layout.boxOverflow.VerticalScroller.superclass.handleOverflow.apply(this,arguments);return{targetSize:{height:c.height-(this.beforeCt.getHeight()+this.afterCt.getHeight()),width:c.width}}},createInnerElements:function(){var b=this.layout.innerCt;if(!this.beforeCt){this.beforeCt=b.insertSibling({cls:this.beforeCls},"before");this.afterCt=b.insertSibling({cls:this.afterCls},"after");this.createWheelListener()}},scrollTo:function(g,e){var h=this.getScrollPosition(),k=g.constrain(0,this.getMaxScrollBottom());if(k!=h&&!this.scrolling){if(e==undefined){e=this.animateScroll}this.layout.innerCt.scrollTo("top",k,e?this.getScrollAnim():false);if(e){this.scrolling=true}else{this.scrolling=false;this.updateScrollButtons()}}},getScrollPosition:function(){return parseInt(this.layout.innerCt.dom.scrollTop,10)||0},getMaxScrollBottom:function(){return this.layout.innerCt.dom.scrollHeight-this.layout.innerCt.getHeight()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollBottom()}});Ext.layout.boxOverflow.scroller.vbox=Ext.layout.boxOverflow.VerticalScroller;Ext.layout.boxOverflow.HorizontalScroller=Ext.extend(Ext.layout.boxOverflow.Scroller,{handleOverflow:function(d,c){Ext.layout.boxOverflow.HorizontalScroller.superclass.handleOverflow.apply(this,arguments);return{targetSize:{height:c.height,width:c.width-(this.beforeCt.getWidth()+this.afterCt.getWidth())}}},createInnerElements:function(){var b=this.layout.innerCt;if(!this.beforeCt){this.afterCt=b.insertSibling({cls:this.afterCls},"before");this.beforeCt=b.insertSibling({cls:this.beforeCls},"before");this.createWheelListener()}},scrollTo:function(g,e){var h=this.getScrollPosition(),k=g.constrain(0,this.getMaxScrollRight());if(k!=h&&!this.scrolling){if(e==undefined){e=this.animateScroll}this.layout.innerCt.scrollTo("left",k,e?this.getScrollAnim():false);if(e){this.scrolling=true}else{this.scrolling=false;this.updateScrollButtons()}}},getScrollPosition:function(){return parseInt(this.layout.innerCt.dom.scrollLeft,10)||0},getMaxScrollRight:function(){return this.layout.innerCt.dom.scrollWidth-this.layout.innerCt.getWidth()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollRight()}});Ext.layout.boxOverflow.scroller.hbox=Ext.layout.boxOverflow.HorizontalScroller;Ext.layout.HBoxLayout=Ext.extend(Ext.layout.BoxLayout,{align:"top",type:"hbox",calculateChildBoxes:function(aG,aU){var ar=aG.length,af=this.padding,au=af.top,ac=af.left,az=au+af.bottom,ai=ac+af.right,aV=aU.width-this.scrollOffset,aR=aU.height,aJ=Math.max(0,aR-az),ah=this.pack=="start",aa=this.pack=="center",ax=this.pack=="end",al=0,ag=0,ad=0,aM=0,Z=0,ap=[],aN,an,ak,ab,aB,aO,ae,ao,aT,aA,aH,aj;for(ae=0;ae<ar;ae++){aN=aG[ae];ak=aN.height;an=aN.width;aO=!aN.hasLayout&&typeof aN.doLayout=="function";if(typeof an!="number"){if(aN.flex&&!an){ad+=aN.flex}else{if(!an&&aO){aN.doLayout()}ab=aN.getSize();an=ab.width;ak=ab.height}}aB=aN.margins;aA=aB.left+aB.right;al+=aA+(an||0);aM+=aA+(aN.flex?aN.minWidth||0:an);Z+=aA+(aN.minWidth||an||0);if(typeof ak!="number"){if(aO){aN.doLayout()}ak=aN.getHeight()}ag=Math.max(ag,ak+aB.top+aB.bottom);ap.push({component:aN,height:ak||undefined,width:an||undefined})}var am=aM-aV,aI=Z>aV;var aK=Math.max(0,aV-al-ai);if(aI){for(ae=0;ae<ar;ae++){ap[ae].width=aG[ae].minWidth||aG[ae].width||ap[ae].width}}else{if(am>0){var av=[];for(var at=0,aC=ar;at<aC;at++){var aw=aG[at],aE=aw.minWidth||0;if(aw.flex){ap[at].width=aE}else{av.push({minWidth:aE,available:ap[at].width-aE,index:at})}}av.sort(function(b,a){return b.available>a.available?1:-1});for(var ae=0,aC=av.length;ae<aC;ae++){var aq=av[ae].index;if(aq==undefined){continue}var aw=aG[aq],aL=ap[aq],aD=aL.width,aE=aw.minWidth,aS=Math.max(aE,aD-Math.ceil(am/(aC-ae))),aQ=aD-aS;ap[aq].width=aS;am-=aQ}}else{var aP=aK,aF=ad;for(ae=0;ae<ar;ae++){aN=aG[ae];ao=ap[ae];aB=aN.margins;aH=aB.top+aB.bottom;if(ah&&aN.flex&&!aN.width){aT=Math.ceil((aN.flex/aF)*aP);aP-=aT;aF-=aN.flex;ao.width=aT;ao.dirtySize=true}}}}if(aa){ac+=aK/2}else{if(ax){ac+=aK}}for(ae=0;ae<ar;ae++){aN=aG[ae];ao=ap[ae];aB=aN.margins;ac+=aB.left;aH=aB.top+aB.bottom;ao.left=ac;ao.top=au+aB.top;switch(this.align){case"stretch":aj=aJ-aH;ao.height=aj.constrain(aN.minHeight||0,aN.maxHeight||1000000);ao.dirtySize=true;break;case"stretchmax":aj=ag-aH;ao.height=aj.constrain(aN.minHeight||0,aN.maxHeight||1000000);ao.dirtySize=true;break;case"middle":var ay=aJ-ao.height-aH;if(ay>0){ao.top=au+aH+(ay/2)}}ac+=ao.width+aB.right}return{boxes:ap,meta:{maxHeight:ag,nonFlexWidth:al,desiredWidth:aM,minimumWidth:Z,shortfall:aM-aV,tooNarrow:aI}}}});Ext.Container.LAYOUTS.hbox=Ext.layout.HBoxLayout;Ext.layout.VBoxLayout=Ext.extend(Ext.layout.BoxLayout,{align:"left",type:"vbox",calculateChildBoxes:function(aI,aU){var ar=aI.length,ae=this.padding,au=ae.top,ab=ae.left,az=au+ae.bottom,ah=ab+ae.right,aV=aU.width-this.scrollOffset,aS=aU.height,al=Math.max(0,aV-ah),ag=this.pack=="start",Z=this.pack=="center",ax=this.pack=="end",aM=0,aC=0,ac=0,ak=0,aK=0,ap=[],aO,an,ai,aa,aD,aP,ad,ao,aT,aA,aJ,aR;for(ad=0;ad<ar;ad++){aO=aI[ad];ai=aO.height;an=aO.width;aP=!aO.hasLayout&&typeof aO.doLayout=="function";if(typeof ai!="number"){if(aO.flex&&!ai){ac+=aO.flex}else{if(!ai&&aP){aO.doLayout()}aa=aO.getSize();an=aa.width;ai=aa.height}}aD=aO.margins;aJ=aD.top+aD.bottom;aM+=aJ+(ai||0);ak+=aJ+(aO.flex?aO.minHeight||0:ai);aK+=aJ+(aO.minHeight||ai||0);if(typeof an!="number"){if(aP){aO.doLayout()}an=aO.getWidth()}aC=Math.max(aC,an+aD.left+aD.right);ap.push({component:aO,height:ai||undefined,width:an||undefined})}var aj=ak-aS,aL=aK>aS;var aG=Math.max(0,(aS-aM-az));if(aL){for(ad=0,aF=ar;ad<aF;ad++){ap[ad].height=aI[ad].minHeight||aI[ad].height||ap[ad].height}}else{if(aj>0){var am=[];for(var at=0,aF=ar;at<aF;at++){var aw=aI[at],aE=aw.minHeight||0;if(aw.flex){ap[at].height=aE}else{am.push({minHeight:aE,available:ap[at].height-aE,index:at})}}am.sort(function(b,a){return b.available>a.available?1:-1});for(var ad=0,aF=am.length;ad<aF;ad++){var aq=am[ad].index;if(aq==undefined){continue}var aw=aI[aq],aN=ap[aq],aB=aN.height,aE=aw.minHeight,av=Math.max(aE,aB-Math.ceil(aj/(aF-ad))),aQ=aB-av;ap[aq].height=av;aj-=aQ}}else{var af=aG,aH=ac;for(ad=0;ad<ar;ad++){aO=aI[ad];ao=ap[ad];aD=aO.margins;aA=aD.left+aD.right;if(ag&&aO.flex&&!aO.height){flexedHeight=Math.ceil((aO.flex/aH)*af);af-=flexedHeight;aH-=aO.flex;ao.height=flexedHeight;ao.dirtySize=true}}}}if(Z){au+=aG/2}else{if(ax){au+=aG}}for(ad=0;ad<ar;ad++){aO=aI[ad];ao=ap[ad];aD=aO.margins;au+=aD.top;aA=aD.left+aD.right;ao.left=ab+aD.left;ao.top=au;switch(this.align){case"stretch":aR=al-aA;ao.width=aR.constrain(aO.minWidth||0,aO.maxWidth||1000000);ao.dirtySize=true;break;case"stretchmax":aR=aC-aA;ao.width=aR.constrain(aO.minWidth||0,aO.maxWidth||1000000);ao.dirtySize=true;break;case"center":var ay=al-ao.width-aA;if(ay>0){ao.left=ab+aA+(ay/2)}}au+=ao.height+aD.bottom}return{boxes:ap,meta:{maxWidth:aC,nonFlexHeight:aM,desiredHeight:ak,minimumHeight:aK,shortfall:ak-aS,tooNarrow:aL}}}});Ext.Container.LAYOUTS.vbox=Ext.layout.VBoxLayout;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(t,q){if(!this.leftTr){var r=t.buttonAlign=="center"?"center":"left";q.addClass("x-toolbar-layout-ct");q.insertHtml("beforeEnd",String.format(this.tableHTML,r));this.leftTr=q.child("tr.x-toolbar-left-row",true);this.rightTr=q.child("tr.x-toolbar-right-row",true);this.extrasTr=q.child("tr.x-toolbar-extras-row",true);if(this.hiddenItem==undefined){this.hiddenItems=[]}}var p=t.buttonAlign=="right"?this.rightTr:this.leftTr,o=t.items.items,u=0;for(var v=0,s=o.length,c;v<s;v++,u++){c=o[v];if(c.isFill){p=this.rightTr;u=-1}else{if(!c.rendered){c.render(this.insertCell(c,p,u));this.configureItem(c)}else{if(!c.xtbHidden&&!this.isValidParent(c,p.childNodes[u])){var w=this.insertCell(c,p,u);w.appendChild(c.getPositionEl().dom);c.container=Ext.get(w)}}}}this.cleanup(this.leftTr);this.cleanup(this.rightTr);this.cleanup(this.extrasTr);this.fitToSize(q)},cleanup:function(c){var h=c.childNodes,g,k;for(g=h.length-1;g>=0&&(k=h[g]);g--){if(!k.firstChild){c.removeChild(k)}}},insertCell:function(h,c,g){var k=document.createElement("td");k.className="x-toolbar-cell";c.insertBefore(k,c.childNodes[g]||null);return k},hideItem:function(b){this.hiddenItems.push(b);b.xtbHidden=true;b.xtbWidth=b.getPositionEl().dom.parentNode.offsetWidth;b.hide()},unhideItem:function(b){b.show();b.xtbHidden=false;this.hiddenItems.remove(b)},getItemWidth:function(b){return b.hidden?(b.xtbWidth||0):b.getPositionEl().dom.parentNode.offsetWidth},fitToSize:function(u){if(this.container.enableOverflow===false){return}var B=u.dom.clientWidth,v=u.dom.firstChild.offsetWidth,s=B-this.triggerWidth,C=this.lastWidth||0,A=this.hiddenItems,y=A.length!=0,r=B>=C;this.lastWidth=B;if(v>B||(y&&r)){var t=this.container.items.items,w=t.length,z=0,q;for(var x=0;x<w;x++){q=t[x];if(!q.isFill){z+=this.getItemWidth(q);if(z>s){if(!(q.hidden||q.xtbHidden)){this.hideItem(q)}}else{if(q.xtbHidden){this.unhideItem(q)}}}}}y=A.length!=0;if(y){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(k,g){var e=Ext.apply({},k.initialConfig),h=k.toggleGroup;Ext.copyTo(e,k,["iconCls","icon","itemId","disabled","handler","scope","menu"]);Ext.apply(e,{text:k.overflowText||k.text,hideOnClick:g});if(h||k.enableToggle){Ext.apply(e,{group:h,checked:k.pressed,listeners:{checkchange:function(a,b){k.toggle(b)}}})}delete e.ownerCt;delete e.xtype;delete e.id;return e},addComponentToMenu:function(c,d){if(d instanceof Ext.Toolbar.Separator){c.add("-")}else{if(Ext.isFunction(d.isXType)){if(d.isXType("splitbutton")){c.add(this.createMenuConfig(d,true))}else{if(d.isXType("button")){c.add(this.createMenuConfig(d,!d.menu))}else{if(d.isXType("buttongroup")){d.items.each(function(a){this.addComponentToMenu(c,a)},this)}}}}}},clearMenu:function(){var b=this.moreMenu;if(b&&b.items){b.items.each(function(a){delete a.menu})}},beforeMoreShow:function(m){var k=this.container.items.items,l=k.length,n,o;var q=function(a,b){return a.isXType("buttongroup")&&!(b instanceof Ext.Toolbar.Separator)};this.clearMenu();m.removeAll();for(var p=0;p<l;p++){n=k[p];if(n.xtbHidden){if(o&&(q(n,o)||q(o,n))){m.add("-")}this.addComponentToMenu(m,n);o=n}}if(m.items.length<1){m.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 b=this.insertCell(this.more,this.extrasTr,100);this.more.render(b)}},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(b){this.monitorResize=!b.floating;b.on("autosize",this.doAutoSize,this);Ext.layout.MenuLayout.superclass.setContainer.call(this,b)},renderItem:function(c,a,h){if(!this.itemTpl){this.itemTpl=Ext.layout.MenuLayout.prototype.itemTpl=new Ext.XTemplate('<li id="{itemId}" class="{itemCls}">','<tpl if="needsIcon">','<img alt="{altText}" src="{icon}" class="{iconCls}"/>',"</tpl>","</li>")}if(c&&!c.rendered){if(Ext.isNumber(a)){a=h.dom.childNodes[a]}var k=this.getItemArgs(c);c.render(c.positionEl=a?this.itemTpl.insertBefore(a,k,true):this.itemTpl.append(h,k,true));c.positionEl.menuItemId=c.getItemId();if(!k.isMenuItem&&k.needsIcon){c.positionEl.addClass("x-menu-list-item-indent")}this.configureItem(c)}else{if(c&&!this.isValidParent(c,h)){if(Ext.isNumber(a)){a=h.dom.childNodes[a]}h.dom.insertBefore(c.getActionEl().dom,a||null)}}},getItemArgs:function(g){var e=g instanceof Ext.menu.Item,c=!(e||g instanceof Ext.menu.Separator);return{isMenuItem:e,needsIcon:c&&(g.icon||g.iconCls),icon:g.icon||Ext.BLANK_IMAGE_URL,iconCls:"x-menu-item-icon "+(g.iconCls||""),itemId:"x-menu-el-"+g.id,itemCls:"x-menu-list-item ",altText:g.altText||""}},isValidParent:function(c,d){return c.el.up("li.x-menu-list-item",5).dom.parentNode===(d.dom||d)},onLayout:function(d,c){Ext.layout.MenuLayout.superclass.onLayout.call(this,d,c);this.doAutoSize()},doAutoSize:function(){var k=this.container,g=k.width;if(k.floating){if(g){k.setWidth(g)}else{if(Ext.isIE){k.setWidth(Ext.isStrict&&(Ext.isIE7||Ext.isIE8)?"auto":k.minWidth);var h=k.getEl(),e=h.dom.offsetWidth;k.setWidth(k.getLayoutTarget().getWidth()+h.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(d,c){this.fireEvent("resize",this,d,c,d,c)}});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(c){var d=this.minButtonWidth;this.elements+=",footer";this.fbar=this.createToolbar(c,{buttonAlign:this.buttonAlign,toolbarCls:"x-panel-fbar",enableOverflow:false,defaults:function(a){return{minWidth:a.minWidth||d}}});this.fbar.items.each(function(a){a.minWidth=a.minWidth||this.minButtonWidth},this);this.buttons=this.fbar.items.items},createToolbar:function(d,g){var e;if(Ext.isArray(d)){d={items:d}}e=d.events?Ext.apply(d,g):this.createComponent(Ext.apply({},d,g),"toolbar");this.toolbars.push(e);return e},createElement:function(e,g){if(this[e]){g.appendChild(this[e].dom);return}if(e==="bwrap"||this.elements.indexOf(e)!=-1){if(this[e+"Cfg"]){this[e]=Ext.fly(g).createChild(this[e+"Cfg"])}else{var d=document.createElement("div");d.className=this[e+"Cls"];this[e]=Ext.get(g.appendChild(d))}if(this[e+"CssClass"]){this[e].addClass(this[e+"CssClass"])}if(this[e+"Style"]){this[e].applyStyles(this[e+"Style"])}}},onRender:function(r,s){Ext.Panel.superclass.onRender.call(this,r,s);this.createClasses();var v=this.el,q=v.dom,n,p;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){p=this.tools;this.elements+=(this.header!==false)?",header":""}this.tools={};v.addClass(this.baseCls);if(q.firstChild){this.header=v.down("."+this.headerCls);this.bwrap=v.down("."+this.bwrapCls);var o=this.bwrap?this.bwrap:v;this.tbar=o.down("."+this.tbarCls);this.body=o.down("."+this.bodyCls);this.bbar=o.down("."+this.bbarCls);this.footer=o.down("."+this.footerCls);this.fromMarkup=true}if(this.preventBodyReset===true){v.addClass("x-panel-reset")}if(this.cls){v.addClass(this.cls)}if(this.buttons){this.elements+=",footer"}if(this.frame){v.insertHtml("afterBegin",String.format(Ext.Element.boxMarkup,this.baseCls));this.createElement("header",q.firstChild.firstChild.firstChild);this.createElement("bwrap",q);n=this.bwrap.dom;var t=q.childNodes[1],u=q.childNodes[2];n.appendChild(t);n.appendChild(u);var d=n.firstChild.firstChild.firstChild;this.createElement("tbar",d);this.createElement("body",d);this.createElement("bbar",d);this.createElement("footer",n.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(d)}else{this.createElement("header",q);this.createElement("bwrap",q);n=this.bwrap.dom;this.createElement("tbar",n);this.createElement("body",n);this.createElement("bbar",n);this.createElement("footer",n);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(p){this.addTool.apply(this,p)}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(g){var h=this.iconCls;this.iconCls=g;if(this.rendered&&this.header){if(this.frame){this.header.addClass("x-panel-icon");this.header.replaceClass(h,this.iconCls)}else{var k=this.header,m=k.child("img.x-panel-inline-icon");if(m){Ext.fly(m).replaceClass(h,this.iconCls)}else{var l=k.child("span."+this.headerTextCls);if(l){Ext.DomHelper.insertBefore(l.dom,{tag:"img",alt:"",src:Ext.BLANK_IMAGE_URL,cls:"x-panel-inline-icon "+this.iconCls})}}}}this.fireEvent("iconchange",this,g,h)},makeFloating:function(b){this.floating=true;this.el=new Ext.Layer(Ext.apply({},b,{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(e,g,d){if(!this.fbar){this.createFbar([])}if(g){if(Ext.isString(e)){e={text:e}}e=Ext.apply({handler:g,scope:d},e)}return this.fbar.add(e)},addTool:function(){if(!this.rendered){if(!this.tools){this.tools=[]}Ext.each(arguments,function(b){this.tools.push(b)},this);return}if(!this[this.toolTarget]){return}if(!this.toolTemplate){var m=new Ext.Template('<div class="x-tool x-tool-{id}">&#160;</div>');m.disableFormats=true;m.compile();Ext.Panel.prototype.toolTemplate=m}for(var n=0,p=arguments,q=p.length;n<q;n++){var a=p[n];if(!this.tools[a.id]){var l="x-tool-"+a.id+"-over";var o=this.toolTemplate.insertFirst(this[this.toolTarget],a,true);this.tools[a.id]=o;o.enableDisplayMode("block");this.mon(o,"click",this.createToolHandler(o,a,l,this));if(a.on){this.mon(o,a.on)}if(a.hidden){o.hide()}if(a.qtip){if(Ext.isObject(a.qtip)){Ext.QuickTips.register(Ext.apply({target:o.id},a.qtip))}else{o.dom.qtip=a.qtip}}o.addClassOnOver(l)}}},onLayout:function(c,d){Ext.Panel.superclass.onLayout.apply(this,arguments);if(this.hasLayout&&this.toolbars.length>0){Ext.each(this.toolbars,function(a){a.doLayout(undefined,d)});this.syncHeight()}},syncHeight:function(){var e=this.toolbarHeight,k=this.body,g=this.lastSize.height,h;if(this.autoHeight||!Ext.isDefined(g)||g=="auto"){return}if(e!=this.getToolbarHeight()){e=Math.max(0,g-this.getFrameHeight());k.setHeight(e);h=k.getSize();this.toolbarHeight=this.getToolbarHeight();this.onBodyResize(h.width,h.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(k,g,h,e){return function(a){k.removeClass(h);if(g.stopEvent!==false){a.stopEvent()}if(g.handler){g.handler.call(g.scope||k,a,k,e,g)}}},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(b){b.doLayout();b.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(b){if(this.floating){this.el.beforeAction()}if(b!==false){this.el.addClass("x-panel-animated")}},afterEffect:function(b){this.syncShadow();this.el.removeClass("x-panel-animated")},createEffect:function(k,a,h){var g={scope:h,block:true};if(k===true){g.callback=a;return g}else{if(!k.callback){g.callback=a}else{g.callback=function(){a.call(h);Ext.callback(k.callback,k.scope)}}}return Ext.applyIf(g,k)},collapse:function(c){if(this.collapsed||this.el.hasFxBlock()||this.fireEvent("beforecollapse",this,c)===false){return}var d=c===true||(c!==false&&this.animCollapse);this.beforeEffect(d);this.onCollapse(d,c);return this},onCollapse:function(d,c){if(d){this[this.collapseEl].slideOut(this.slideAnchor,Ext.apply(this.createEffect(c||true,this.afterCollapse,this),this.collapseDefaults))}else{this[this.collapseEl].hide(this.hideMode);this.afterCollapse(false)}},afterCollapse:function(b){this.collapsed=true;this.el.addClass(this.collapsedCls);if(b!==false){this[this.collapseEl].hide(this.hideMode)}this.afterEffect(b);this.cascade(function(a){if(a.lastSize){a.lastSize={width:undefined,height:undefined}}});this.fireEvent("collapse",this)},expand:function(c){if(!this.collapsed||this.el.hasFxBlock()||this.fireEvent("beforeexpand",this,c)===false){return}var d=c===true||(c!==false&&this.animCollapse);this.el.removeClass(this.collapsedCls);this.beforeEffect(d);this.onExpand(d,c);return this},onExpand:function(d,c){if(d){this[this.collapseEl].slideIn(this.slideAnchor,Ext.apply(this.createEffect(c||true,this.afterExpand,this),this.expandDefaults))}else{this[this.collapseEl].show(this.hideMode);this.afterExpand(false)}},afterExpand:function(b){this.collapsed=false;if(b!==false){this[this.collapseEl].show(this.hideMode)}this.afterEffect(b);if(this.deferLayout){delete this.deferLayout;this.doLayout(true)}this.fireEvent("expand",this)},toggleCollapse:function(b){this[this.collapsed?"expand":"collapse"](b);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(l,n,o,m){var k=l,h=n;if(Ext.isDefined(k)||Ext.isDefined(h)){if(!this.collapsed){if(Ext.isNumber(k)){this.body.setWidth(k=this.adjustBodyWidth(k-this.getFrameWidth()))}else{if(k=="auto"){k=this.body.setWidth("auto").dom.offsetWidth}else{k=this.body.dom.offsetWidth}}if(this.tbar){this.tbar.setWidth(k);if(this.topToolbar){this.topToolbar.setSize(k)}}if(this.bbar){this.bbar.setWidth(k);if(this.bottomToolbar){this.bottomToolbar.setSize(k);if(Ext.isIE){this.bbar.setStyle("position","static");this.bbar.setStyle("position","")}}}if(this.footer){this.footer.setWidth(k);if(this.fbar){this.fbar.setSize(Ext.isIE?(k-this.footer.getFrameWidth("lr")):"auto")}}if(Ext.isNumber(h)){h=Math.max(0,h-this.getFrameHeight());this.body.setHeight(h)}else{if(h=="auto"){this.body.setHeight(h)}}if(this.disabled&&this.el._mask){this.el._mask.setSize(this.el.dom.clientWidth,this.el.getHeight())}}else{this.queuedBodySize={width:k,height:h};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(k,h)}this.syncShadow();Ext.Panel.superclass.onResize.call(this,l,n,o,m)},onBodyResize:function(d,c){this.fireEvent("bodyresize",this,d,c)},getToolbarHeight:function(){var b=0;if(this.rendered){Ext.each(this.toolbars,function(a){b+=a.getHeight()},this)}return b},adjustBodyHeight:function(b){return b},adjustBodyWidth:function(b){return b},onPosition:function(){this.syncShadow()},getFrameWidth:function(){var c=this.el.getFrameWidth("lr")+this.bwrap.getFrameWidth("lr");if(this.frame){var d=this.bwrap.dom.firstChild;c+=(Ext.fly(d).getFrameWidth("l")+Ext.fly(d.firstChild).getFrameWidth("r"));c+=this.mc.getFrameWidth("lr")}return c},getFrameHeight:function(){var b=this.el.getFrameWidth("tb")+this.bwrap.getFrameWidth("tb");b+=(this.tbar?this.tbar.getHeight():0)+(this.bbar?this.bbar.getHeight():0);if(this.frame){b+=this.el.dom.firstChild.offsetHeight+this.ft.dom.offsetHeight+this.mc.getFrameWidth("tb")}else{b+=(this.header?this.header.getHeight():0)+(this.footer?this.footer.getHeight():0)}return b},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(c,d){this.title=c;if(this.header&&this.headerAsText){this.header.child("span").update(c)}if(d){this.setIconClass(d)}this.fireEvent("titlechange",this,c);return this},getUpdater:function(){return this.body.getUpdater()},load:function(){var b=this.body.getUpdater();b.update.apply(b,arguments);return this},beforeDestroy:function(){Ext.Panel.superclass.beforeDestroy.call(this);if(this.header){this.header.removeAllListeners()}if(this.tools){for(var b in this.tools){Ext.destroy(this.tools[b])}}if(this.toolbars.length>0){Ext.each(this.toolbars,function(a){a.un("afterlayout",this.syncHeight,this);a.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.tbar,this.bbar,this.body,this.mc,this.bwrap,this.dd);if(this.fbar){Ext.destroy(this.fbar,this.fbar.el)}}Ext.destroy(this.toolbars)},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(h,k,g){var l=document.createElement("div");l.className="x-panel-ghost "+(h?h:"");if(this.header){l.appendChild(this.el.dom.firstChild.cloneNode(true))}Ext.fly(l.appendChild(document.createElement("ul"))).setHeight(this.bwrap.getHeight());l.style.width=this.el.dom.offsetWidth+"px";if(!g){this.container.dom.appendChild(l)}else{Ext.getDom(g).appendChild(l)}if(k!==false&&this.el.useShim!==false){var m=new Ext.Layer({shadow:false,useDisplay:true,constrain:false},l);m.show();return m}else{return new Ext.Element(l)}},doAutoLoad:function(){var b=this.body.getUpdater();if(this.renderer){b.setRenderer(this.renderer)}b.update(Ext.isObject(this.autoLoad)?this.autoLoad:{url:this.autoLoad})},getTool:function(b){return this.tools[b]}});Ext.reg("panel",Ext.Panel);Ext.Editor=function(c,d){if(c.field){this.field=Ext.create(c.field,"textfield");d=Ext.apply({},c);delete d.field}else{this.field=c}Ext.Editor.superclass.constructor.call(this,d)};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(c,d){this.el=new Ext.Layer({shadow:this.shadow,cls:"x-editor",parentEl:c,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(k,l){var e=l.getKey(),h=this.completeOnEnter&&e==l.ENTER,m=this.cancelOnEsc&&e==l.ESC;if(h||m){l.stopEvent();if(h){this.completeEdit()}else{this.cancelEdit()}if(k.triggerBlur){k.triggerBlur()}}this.fireEvent("specialkey",k,l)},startEdit:function(d,g){if(this.editing){this.completeEdit()}this.boundEl=Ext.get(d);var e=g!==undefined?g:this.boundEl.dom.innerHTML;if(!this.rendered){this.render(this.parentEl||document.body)}if(this.fireEvent("beforestartedit",this,this.boundEl,e)!==false){this.startValue=e;this.field.reset();this.field.setValue(e);this.realign(true);this.editing=true;this.show()}},doAutoSize:function(){if(this.autoSize){var c=this.boundEl.getSize(),d=this.field.getSize();switch(this.autoSize){case"width":this.setSize(c.width,d.height);break;case"height":this.setSize(d.width,c.height);break;case"none":this.setSize(d.width,d.height);break;default:this.setSize(c.width,c.height)}}},setSize:function(d,c){delete this.field.lastSize;this.field.setSize(d,c);if(this.el){if(Ext.isGecko2||Ext.isOpera||(Ext.isIE7&&Ext.isStrict)){this.el.setSize(d,c)}this.el.sync()}},realign:function(b){if(b===true){this.doAutoSize()}this.el.alignTo(this.boundEl,this.alignment,this.offsets)},completeEdit:function(d){if(!this.editing){return}if(this.field.assertValue){this.field.assertValue()}var c=this.getValue();if(!this.field.isValid()){if(this.revertInvalid!==false){this.cancelEdit(d)}return}if(String(c)===String(this.startValue)&&this.ignoreNoChange){this.hideEdit(d);return}if(this.fireEvent("beforecomplete",this,c,this.startValue)!==false){c=this.getValue();if(this.updateEl&&this.boundEl){this.boundEl.update(c)}this.hideEdit(d);this.fireEvent("complete",this,c,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(d){if(this.editing){var c=this.getValue();this.setValue(this.startValue);this.hideEdit(d);this.fireEvent("canceledit",this,c,this.startValue)}},hideEdit:function(b){if(b!==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(b){this.field.setValue(b)},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(d,e){this.autoEl={tag:"div",cls:this.itemCls};Ext.ColorPalette.superclass.onRender.call(this,d,e);var g=this.tpl||new Ext.XTemplate('<tpl for="."><a href="#" class="color-{.}" hidefocus="on"><em><span style="background:#{.}" unselectable="on">&#160;</span></em></a></tpl>');g.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 b=this.value;this.value=null;this.select(b,true)}},handleClick:function(c,e){c.preventDefault();if(!this.disabled){var g=e.className.match(/(?:^|\s)color-(.{6})(?:\s|$)/)[1];this.select(g.toUpperCase())}},select:function(d,e){d=d.replace("#","");if(d!=this.value||this.allowReselect){var g=this.el;if(this.value){g.child("a.color-"+this.value).removeClass("x-color-palette-sel")}g.child("a.color-"+d).addClass("x-color-palette-sel");this.value=d;if(e!==true){this.fireEvent("select",this,d)}}}});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 d=this.disabledDates,e=d.length-1,g="(?:";Ext.each(d,function(a,b){g+=Ext.isDate(a)?"^"+Ext.escapeRe(a.dateFormat(this.format))+"$":d[b];if(b!=e){g+="|"}},this);this.disabledDatesRE=new RegExp(g+")")}},setDisabledDates:function(b){if(Ext.isArray(b)){this.disabledDates=b;this.disabledDatesRE=null}else{this.disabledDatesRE=b}this.initDisabledDays();this.update(this.value,true)},setDisabledDays:function(b){this.disabledDays=b;this.update(this.value,true)},setMinDate:function(b){this.minDate=b;this.update(this.value,true)},setMaxDate:function(b){this.maxDate=b;this.update(this.value,true)},setValue:function(b){this.value=b.clearTime(true);this.update(this.value)},getValue:function(){return this.value},focus:function(){this.update(this.activeDate)},onEnable:function(b){Ext.DatePicker.superclass.onEnable.call(this);this.doDisabled(false);this.update(b?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(b){Ext.fly(b).repaint()})}},doDisabled:function(b){this.keyNav.setDisabled(b);this.prevRepeater.setDisabled(b);this.nextRepeater.setDisabled(b);if(this.showToday){this.todayKeyListener.setDisabled(b);this.todayBtn.setDisabled(b)}},onRender:function(r,d){var n=['<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>'],s=this.dayNames,p;for(p=0;p<7;p++){var m=this.startDay+p;if(m>6){m=m-7}n.push("<th><span>",s[m].substr(0,1),"</span></th>")}n[n.length]="</tr></thead><tbody><tr>";for(p=0;p<42;p++){if(p%7===0&&p!==0){n[n.length]="</tr><tr>"}n[n.length]='<td><a href="#" hidefocus="on" class="x-date-date" tabIndex="1"><em><span></span></em></a></td>'}n.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 o=document.createElement("div");o.className="x-date-picker";o.innerHTML=n.join("");r.dom.insertBefore(o,d);this.el=Ext.get(o);this.eventEl=Ext.get(o.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(a){if(a.ctrlKey){this.showPrevMonth()}else{this.update(this.activeDate.add("d",-1))}},right:function(a){if(a.ctrlKey){this.showNextMonth()}else{this.update(this.activeDate.add("d",1))}},up:function(a){if(a.ctrlKey){this.showNextYear()}else{this.update(this.activeDate.add("d",-7))}},down:function(a){if(a.ctrlKey){this.showPrevYear()}else{this.update(this.activeDate.add("d",7))}},pageUp:function(a){this.showNextMonth()},pageDown:function(a){this.showPrevMonth()},enter:function(a){a.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 q=(new Date()).dateFormat(this.format);this.todayBtn=new Ext.Button({renderTo:this.el.child("td.x-date-bottom",true),text:String.format(this.todayText,q),tooltip:String.format(this.todayTip,q),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 d=['<table border="0" cellspacing="0">'];for(var c=0;c<6;c++){d.push('<tr><td class="x-date-mp-month"><a href="#">',Date.getShortMonthName(c),"</a></td>",'<td class="x-date-mp-month x-date-mp-sep"><a href="#">',Date.getShortMonthName(c+6),"</a></td>",c===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>')}d.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(d.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(g,b,a){a+=1;if((a%2)===0){g.dom.xmonth=5+Math.round(a*0.5)}else{g.dom.xmonth=Math.round((a-1)*0.5)}})}},showMonthPicker:function(){if(!this.disabled){this.createMonthPicker();var b=this.el.getSize();this.monthPicker.setSize(b);this.monthPicker.child("table").setSize(b);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(k){this.mpyear=k;var m=this.mpYears.elements;for(var g=1;g<=10;g++){var l=m[g-1],h;if((g%2)===0){h=k+Math.round(g*0.5);l.firstChild.innerHTML=h;l.xyear=h}else{h=k-(5-Math.round(g*0.5));l.firstChild.innerHTML=h;l.xyear=h}this.mpYears.item(g-1)[h==this.mpSelYear?"addClass":"removeClass"]("x-date-mp-sel")}},updateMPMonth:function(b){this.mpMonths.each(function(a,g,e){a[a.dom.xmonth==b?"addClass":"removeClass"]("x-date-mp-sel")})},selectMPMonth:function(b){},onMonthClick:function(l,d){l.stopEvent();var m=new Ext.Element(d),e;if(m.is("button.x-date-mp-cancel")){this.hideMonthPicker()}else{if(m.is("button.x-date-mp-ok")){var k=new Date(this.mpSelYear,this.mpSelMonth,(this.activeDate||this.value).getDate());if(k.getMonth()!=this.mpSelMonth){k=new Date(this.mpSelYear,this.mpSelMonth,1).getLastDateOfMonth()}this.update(k);this.hideMonthPicker()}else{if((e=m.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=m.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(m.is("a.x-date-mp-prev")){this.updateMPYear(this.mpyear-10)}else{if(m.is("a.x-date-mp-next")){this.updateMPYear(this.mpyear+10)}}}}}}},onMonthDblClick:function(h,e){h.stopEvent();var k=new Ext.Element(e),g;if((g=k.up("td.x-date-mp-month",2))){this.update(new Date(this.mpSelYear,g.dom.xmonth,(this.activeDate||this.value).getDate()));this.hideMonthPicker()}else{if((g=k.up("td.x-date-mp-year",2))){this.update(new Date(g.dom.xyear,this.mpSelMonth,(this.activeDate||this.value).getDate()));this.hideMonthPicker()}}},hideMonthPicker:function(b){if(this.monthPicker){if(b===true){this.monthPicker.hide()}else{this.monthPicker.slideOut("t",{duration:0.2})}}},showPrevMonth:function(b){this.update(this.activeDate.add("mo",-1))},showNextMonth:function(b){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(d){d.stopEvent();if(!this.disabled){var c=d.getWheelDelta();if(c>0){this.showPrevMonth()}else{if(c<0){this.showNextMonth()}}}},handleDateClick:function(c,d){c.stopEvent();if(!this.disabled&&d.dateValue&&!Ext.fly(d.parentNode).hasClass("x-date-disabled")){this.cancelFocus=this.focusOnSelect===false;this.setValue(new Date(d.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(M,X){if(this.rendered){var ak=this.activeDate,W=this.isVisible();this.activeDate=M;if(!X&&ak&&this.el){var Z=M.getTime();if(ak.getMonth()==M.getMonth()&&ak.getFullYear()==M.getFullYear()){this.cells.removeClass("x-date-selected");this.cells.each(function(a){if(a.dom.firstChild.dateValue==Z){a.addClass("x-date-selected");if(W&&!this.cancelFocus){Ext.fly(a.dom.firstChild).focus(50)}return false}},this);return}}var ad=M.getDaysInMonth(),U=M.getFirstDateOfMonth(),ag=U.getDay()-this.startDay;if(ag<0){ag+=7}ad+=ag;var V=M.add("mo",-1),af=V.getDaysInMonth()-ag,ah=this.cells.elements,T=this.textNodes,R=(new Date(V.getFullYear(),V.getMonth(),af,this.initHour)),S=new Date().clearTime().getTime(),L=M.clearTime(true).getTime(),O=this.minDate?this.minDate.clearTime(true):Number.NEGATIVE_INFINITY,d=this.maxDate?this.maxDate.clearTime(true):Number.POSITIVE_INFINITY,N=this.disabledDatesRE,Q=this.disabledDatesText,w=this.disabledDays?this.disabledDays.join(""):false,P=this.disabledDaysText,Y=this.format;if(this.showToday){var ab=new Date().clearTime(),ai=(ab<O||ab>d||(N&&Y&&N.test(ab.dateFormat(Y)))||(w&&w.indexOf(ab.getDay())!=-1));if(!this.disabled){this.todayBtn.setDisabled(ai);this.todayKeyListener[ai?"disable":"enable"]()}}var ac=function(b,e){e.title="";var c=R.clearTime(true).getTime();e.firstChild.dateValue=c;if(c==S){e.className+=" x-date-today";e.title=b.todayText}if(c==L){e.className+=" x-date-selected";if(W){Ext.fly(e.firstChild).focus(50)}}if(c<O){e.className=" x-date-disabled";e.title=b.minText;return}if(c>d){e.className=" x-date-disabled";e.title=b.maxText;return}if(w){if(w.indexOf(R.getDay())!=-1){e.title=P;e.className=" x-date-disabled"}}if(N&&Y){var a=R.dateFormat(Y);if(N.test(a)){e.title=Q.replace("%0",a);e.className=" x-date-disabled"}}};var t=0;for(;t<ag;t++){T[t].innerHTML=(++af);R.setDate(R.getDate()+1);ah[t].className="x-date-prevday";ac(this,ah[t])}for(;t<ad;t++){var aj=t-ag+1;T[t].innerHTML=(aj);R.setDate(R.getDate()+1);ah[t].className="x-date-active";ac(this,ah[t])}var K=0;for(;t<42;t++){T[t].innerHTML=(++K);R.setDate(R.getDate()+1);ah[t].className="x-date-nextday";ac(this,ah[t])}this.mbtn.setText(this.monthNames[M.getMonth()]+" "+M.getFullYear());if(!this.internalRender){var ae=this.el.dom.firstChild,aa=ae.offsetWidth;this.el.setWidth(aa+this.el.getBorderWidth("lr"));Ext.fly(ae).setWidth(aa);this.internalRender=true;if(Ext.isOpera&&!this.secondPass){ae.rows[0].cells[1].style.width=(aa-(ae.rows[0].cells[0].offsetWidth+ae.rows[0].cells[2].offsetWidth))+"px";this.secondPass=true;this.update.defer(10,this,[M])}}}},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(g,d){this.el=Ext.get(g);Ext.apply(this,d);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 e=this.el.getUpdater();e.showLoadIndicator=false;e.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 b=this.el.getUpdater();b.un("beforeupdate",this.onBeforeLoad,this);b.un("update",this.onLoad,this);b.un("failure",this.onLoad,this)}}};Ext.ns("Ext.slider");Ext.slider.Thumb=Ext.extend(Object,{dragging:false,constructor:function(b){Ext.apply(this,b||{},{cls:"x-slider-thumb",constrain:false});Ext.slider.Thumb.superclass.constructor.call(this,b);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 b=this.el;b.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(b)},onBeforeDragStart:function(b){if(this.disabled){return false}else{this.slider.promoteThumb(this);return true}},onDragStart:function(b){this.el.addClass("x-slider-thumb-drag");this.dragging=true;this.dragStartValue=this.value;this.slider.fireEvent("dragstart",this.slider,b,this)},onDrag:function(m){var o=this.slider,e=this.index,n=this.getNewValue();if(this.constrain){var k=o.thumbs[e+1],l=o.thumbs[e-1];if(l!=undefined&&n<=l.value){n=l.value}if(k!=undefined&&n>=k.value){n=k.value}}o.setValue(e,n,false);o.fireEvent("drag",o,m,this)},getNewValue:function(){var d=this.slider,c=d.innerEl.translatePoints(this.tracker.getXY());return Ext.util.Format.round(d.reverseValue(c.left),d.decimalPrecision)},onDragEnd:function(g){var e=this.slider,d=this.value;this.el.removeClass("x-slider-thumb-drag");this.dragging=false;e.fireEvent("dragend",e,g);if(this.dragStartValue!=d){e.fireEvent("changecomplete",e,d,this)}},destroy:function(){Ext.destroyMembers(this,"tracker","el")}});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,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 d=this.values;for(var c=0;c<d.length;c++){this.addThumb(d[c])}if(this.vertical){Ext.apply(this,Ext.slider.Vertical)}},addThumb:function(c){var d=new Ext.slider.Thumb({value:c,slider:this,index:this.thumbs.length,constrain:this.constrainThumbs});this.thumbs.push(d);if(this.rendered){d.render()}},promoteThumb:function(n){var k=this.thumbs,l,h;for(var m=0,o=k.length;m<o;m++){h=k[m];if(h==n){l=this.topThumbZIndex}else{l=""}h.el.setStyle("zIndex",l)}},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 c=0;c<this.thumbs.length;c++){this.thumbs[c].render()}var d=this.innerEl.child(".x-slider-thumb");this.halfThumb=(this.vertical?d.getHeight():d.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(h){if(this.disabled){return}var k=false;for(var e=0;e<this.thumbs.length;e++){k=k||h.target==this.thumbs[e].el.dom}if(this.clickToChange&&!k){var g=this.innerEl.translatePoints(h.getXY());this.onClickChange(g)}this.focus()},onClickChange:function(g){if(g.top>this.clickRange[0]&&g.top<this.clickRange[1]){var e=this.getNearest(g,"left"),d=e.index;this.setValue(d,Ext.util.Format.round(this.reverseValue(g.left),this.decimalPrecision),undefined,true)}},getNearest:function(q,x){var o=x=="top"?this.innerEl.getHeight()-q[x]:q[x],t=this.reverseValue(o),r=(this.maxValue-this.minValue)+5,u=0,w=null;for(var v=0;v<this.thumbs.length;v++){var y=this.thumbs[v],p=y.value,s=Math.abs(p-t);if(Math.abs(s<=r)){w=y;u=v;r=s}}return w},onKeyDown:function(d){if(this.disabled||this.thumbs.length!==1){d.preventDefault();return}var e=d.getKey(),g;switch(e){case d.UP:case d.RIGHT:d.stopEvent();g=d.ctrlKey?this.maxValue:this.getValue(0)+this.keyIncrement;this.setValue(0,g,undefined,true);break;case d.DOWN:case d.LEFT:d.stopEvent();g=d.ctrlKey?this.minValue:this.getValue(0)-this.keyIncrement;this.setValue(0,g,undefined,true);break;default:d.preventDefault()}},doSnap:function(e){if(!(this.increment&&e)){return e}var h=e,k=this.increment,g=e%k;if(g!=0){h-=g;if(g*2>=k){h+=k}else{if(g*2<-k){h-=k}}}return h.constrain(this.minValue,this.maxValue)},afterRender:function(){Ext.slider.MultiSlider.superclass.afterRender.apply(this,arguments);for(var g=0;g<this.thumbs.length;g++){var d=this.thumbs[g];if(d.value!==undefined){var e=this.normalizeValue(d.value);if(e!==d.value){this.setValue(g,e,false)}else{this.moveThumb(g,this.translateValue(e),false)}}}},getRatio:function(){var d=this.innerEl.getWidth(),c=this.maxValue-this.minValue;return c==0?d:(d/c)},normalizeValue:function(b){b=this.doSnap(b);b=Ext.util.Format.round(b,this.decimalPrecision);b=b.constrain(this.minValue,this.maxValue);return b},setMinValue:function(k){this.minValue=k;var l=0,g=this.thumbs,h=g.length,m;for(;l<h;++l){m=g[l];m.value=m.value<k?k:m.value}this.syncThumb()},setMaxValue:function(k){this.maxValue=k;var l=0,g=this.thumbs,h=g.length,m;for(;l<h;++l){m=g[l];m.value=m.value>k?k:m.value}this.syncThumb()},setValue:function(n,o,h,l){var k=this.thumbs[n],m=k.el;o=this.normalizeValue(o);if(o!==k.value&&this.fireEvent("beforechange",this,o,k.value,k)!==false){k.value=o;if(this.rendered){this.moveThumb(n,this.translateValue(o),h!==false);this.fireEvent("change",this,o,k);if(l){this.fireEvent("changecomplete",this,o,k)}}}},translateValue:function(d){var c=this.getRatio();return(d*c)-(this.minValue*c)-this.halfThumb},reverseValue:function(c){var d=this.getRatio();return(c+(this.minValue*d))/d},moveThumb:function(h,k,e){var g=this.thumbs[h].el;if(!e||this.animate===false){g.setLeft(k)}else{g.shift({left:k,stopFx:true,duration:0.35})}},focus:function(){this.focusEl.focus(10)},onResize:function(m,k){var g=this.thumbs,h=g.length,l=0;for(;l<h;++l){g[l].el.stopFx()}if(Ext.isNumber(m)){this.innerEl.setWidth(m-(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 e=0;e<this.thumbs.length;e++){var g=this.thumbs[e],k=g.el;g.disable();if(Ext.isIE){var h=k.getXY();k.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(h)}}},onEnable:function(){Ext.slider.MultiSlider.superclass.onEnable.call(this);for(var d=0;d<this.thumbs.length;d++){var e=this.thumbs[d],g=e.el;e.enable();if(Ext.isIE){this.innerEl.removeClass(this.disabledClass).dom.disabled=false;if(this.thumbHolder){this.thumbHolder.hide()}g.show();this.syncThumb()}}},syncThumb:function(){if(this.rendered){for(var b=0;b<this.thumbs.length;b++){this.moveThumb(b,this.translateValue(this.thumbs[b].value))}}},getValue:function(b){return this.thumbs[b].value},getValues:function(){var d=[];for(var c=0;c<this.thumbs.length;c++){d.push(this.thumbs[c].value)}return d},beforeDestroy:function(){var d=this.thumbs;for(var g=0,e=d.length;g<e;++g){d[g].destroy();d[g]=null}Ext.destroyMembers(this,"endEl","innerEl","focusEl","thumbHolder");Ext.slider.MultiSlider.superclass.beforeDestroy.call(this)}});Ext.reg("multislider",Ext.slider.MultiSlider);Ext.slider.SingleSlider=Ext.extend(Ext.slider.MultiSlider,{constructor:function(b){b=b||{};Ext.applyIf(b,{values:[b.value||0]});Ext.slider.SingleSlider.superclass.constructor.call(this,b)},getValue:function(){return Ext.slider.SingleSlider.superclass.getValue.call(this,0)},setValue:function(h,e){var k=Ext.toArray(arguments),g=k.length;if(g==1||(g<=3&&typeof arguments[1]!="number")){k.unshift(0)}return Ext.slider.SingleSlider.superclass.setValue.apply(this,k)},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(d,c){this.innerEl.setHeight(c-(this.el.getPadding("t")+this.endEl.getPadding("b")));this.syncThumb()},getRatio:function(){var c=this.innerEl.getHeight(),d=this.maxValue-this.minValue;return c/d},moveThumb:function(l,m,g){var h=this.thumbs[l],k=h.el;if(!g||this.animate===false){k.setBottom(m)}else{k.shift({bottom:m,stopFx:true,duration:0.35})}},onClickChange:function(k){if(k.left>this.clickRange[0]&&k.left<this.clickRange[1]){var g=this.getNearest(k,"top"),e=g.index,h=this.minValue+this.reverseValue(this.innerEl.getHeight()-k.top);this.setValue(e,Ext.util.Format.round(h,this.decimalPrecision),undefined,true)}}};Ext.slider.Thumb.Vertical={getNewValue:function(){var e=this.slider,k=e.innerEl,h=k.translatePoints(this.tracker.getXY()),g=k.getHeight()-h.top;return e.minValue+Ext.util.Format.round(g/e.getRatio(),e.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(l,h){var m=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=h?m.insertBefore(h,{cls:this.baseCls},true):m.append(l,{cls:this.baseCls},true);if(this.id){this.el.dom.id=this.id}var g=this.el.dom.firstChild;this.progressBar=Ext.get(g.firstChild);if(this.textEl){this.textEl=Ext.get(this.textEl);delete this.textTopEl}else{this.textTopEl=Ext.get(this.progressBar.dom.firstChild);var k=Ext.get(g.childNodes[1]);this.textTopEl.setStyle("z-index",99).addClass("x-hidden");this.textEl=new Ext.CompositeElement([this.textTopEl.dom.firstChild,k.dom.firstChild]);this.textEl.setWidth(g.offsetWidth)}this.progressBar.setHeight(g.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(k,h,e){this.value=k||0;if(h){this.updateText(h)}if(this.rendered&&!this.isDestroyed){var g=Math.floor(k*this.el.dom.firstChild.offsetWidth);this.progressBar.setWidth(g,e===true||(e!==false&&this.animate));if(this.textTopEl){this.textTopEl.removeClass("x-hidden").setWidth(g)}}this.fireEvent("update",this,k,h);return this},wait:function(c){if(!this.waitTimer){var d=this;c=c||{};this.updateText(c.text);this.waitTimer=Ext.TaskMgr.start({run:function(b){var a=c.increment||10;b-=1;this.updateProgress(((((b+a)%a)+1)*(100/a))*0.01,null,c.animate)},interval:c.interval||1000,duration:c.duration,onStop:function(){if(c.fn){c.fn.apply(c.scope||this)}this.reset()},scope:d})}return this},isWaiting:function(){return this.waitTimer!==null},updateText:function(b){this.text=b||"&#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(e,g){Ext.ProgressBar.superclass.setSize.call(this,e,g);if(this.textTopEl){var d=this.el.dom.firstChild;this.textEl.setSize(d.offsetWidth,d.offsetHeight)}this.syncProgressBar();return this},reset:function(b){this.updateProgress(0);if(this.textTopEl){this.textTopEl.addClass("x-hidden")}this.clearTimer();if(b===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 d=Ext.EventManager;var c=Ext.lib.Dom;Ext.dd.DragDrop=function(a,g,b){if(a){this.init(a,g,b)}};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(b,a){},startDrag:function(b,a){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(b,a){},b4DragOver:function(a){},onDragOver:function(b,a){},b4DragOut:function(a){},onDragOut:function(b,a){},b4DragDrop:function(a){},onDragDrop:function(b,a){},onInvalidDrop:function(a){},b4EndDrag:function(a){},endDrag:function(a){},b4MouseDown:function(a){},onMouseDown:function(a){},onMouseUp:function(a){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(t,v,a){if(Ext.isNumber(v)){v={left:v,right:v,top:v,bottom:v}}v=v||this.defaultPadding;var r=Ext.get(this.getEl()).getBox(),y=Ext.get(t),b=y.getScroll(),s,x=y.dom;if(x==document.body){s={x:b.left,y:b.top,width:Ext.lib.Dom.getViewWidth(),height:Ext.lib.Dom.getViewHeight()}}else{var q=y.getXY();s={x:q[0],y:q[1],width:x.clientWidth,height:x.clientHeight}}var u=r.y-s.y,w=r.x-s.x;this.resetConstraints();this.setXConstraint(w-(v.left||0),s.width-w-r.width-(v.right||0),this.xTickSize);this.setYConstraint(u-(v.top||0),s.height-u-r.height-(v.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(a,g,b){this.initTarget(a,g,b);d.on(this.id,"mousedown",this.handleMouseDown,this)},initTarget:function(a,g,b){this.config=b||{};this.DDM=Ext.dd.DDM;this.groups={};if(typeof a!=="string"){a=Ext.id(a)}this.id=a;this.addToGroup((g)?g:"default");this.handleElId=a;this.setDragElId(a);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(b,k,a,h){if(!k&&0!==k){this.padding=[b,b,b,b]}else{if(!a&&0!==a){this.padding=[b,k,b,k]}else{this.padding=[b,k,a,h]}}},setInitPosition:function(k,l){var b=this.getEl();if(!this.DDM.verifyEl(b)){return}var m=k||0;var n=l||0;var a=c.getXY(b);this.initPageX=a[0]-m;this.initPageY=a[1]-n;this.lastPageX=a[0];this.lastPageY=a[1];this.setStartPosition(a)},setStartPosition:function(a){var b=a||c.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=b[0];this.startPageY=b[1]},addToGroup:function(a){this.groups[a]=true;this.DDM.regDragDrop(this,a)},removeFromGroup:function(a){if(this.groups[a]){delete this.groups[a]}this.DDM.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(a){if(typeof a!=="string"){a=Ext.id(a)}this.handleElId=a;this.DDM.regHandle(this.id,a)},setOuterHandleElId:function(a){if(typeof a!=="string"){a=Ext.id(a)}d.on(a,"mousedown",this.handleMouseDown,this);this.setHandleElId(a);this.hasOuterHandles=true},unreg:function(){d.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(a,b){if(this.primaryButtonOnly&&a.button!=0){return}if(this.isLocked()){return}this.DDM.refreshCache(this.groups);var e=new Ext.lib.Point(Ext.lib.Event.getPageX(a),Ext.lib.Event.getPageY(a));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(e,this)){}else{if(this.clickValidator(a)){this.setStartPosition();this.b4MouseDown(a);this.onMouseDown(a);this.DDM.handleMouseDown(a,this);this.DDM.stopEvent(a)}else{}}},clickValidator:function(a){var b=a.getTarget();return(this.isValidHandleChild(b)&&(this.id==this.handleElId||this.DDM.handleWasClicked(b,this.id)))},addInvalidHandleType:function(b){var a=b.toUpperCase();this.invalidHandleTypes[a]=a},addInvalidHandleId:function(a){if(typeof a!=="string"){a=Ext.id(a)}this.invalidHandleIds[a]=a},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(b){var a=b.toUpperCase();delete this.invalidHandleTypes[a]},removeInvalidHandleId:function(a){if(typeof a!=="string"){a=Ext.id(a)}delete this.invalidHandleIds[a]},removeInvalidHandleClass:function(b){for(var a=0,g=this.invalidHandleClasses.length;a<g;++a){if(this.invalidHandleClasses[a]==b){delete this.invalidHandleClasses[a]}}},isValidHandleChild:function(e){var m=true;var a;try{a=e.nodeName.toUpperCase()}catch(b){a=e.nodeName}m=m&&!this.invalidHandleTypes[a];m=m&&!this.invalidHandleIds[e.id];for(var n=0,o=this.invalidHandleClasses.length;m&&n<o;++n){m=!Ext.fly(e).hasClass(this.invalidHandleClasses[n])}return m},setXTicks:function(a,k){this.xTicks=[];this.xTickSize=k;var b={};for(var h=this.initPageX;h>=this.minX;h=h-k){if(!b[h]){this.xTicks[this.xTicks.length]=h;b[h]=true}}for(h=this.initPageX;h<=this.maxX;h=h+k){if(!b[h]){this.xTicks[this.xTicks.length]=h;b[h]=true}}this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(a,k){this.yTicks=[];this.yTickSize=k;var b={};for(var h=this.initPageY;h>=this.minY;h=h-k){if(!b[h]){this.yTicks[this.yTicks.length]=h;b[h]=true}}for(h=this.initPageY;h<=this.maxY;h=h+k){if(!b[h]){this.yTicks[this.yTicks.length]=h;b[h]=true}}this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(a,b,g){this.leftConstraint=a;this.rightConstraint=b;this.minX=this.initPageX-a;this.maxX=this.initPageX+b;if(g){this.setXTicks(this.initPageX,g)}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(g,a,b){this.topConstraint=g;this.bottomConstraint=a;this.minY=this.initPageY-g;this.maxY=this.initPageY+a;if(b){this.setYTicks(this.initPageY,b)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var a=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var b=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(a,b)}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(a,n){if(!n){return a}else{if(n[0]>=a){return n[0]}else{for(var p=0,q=n.length;p<q;++p){var o=p+1;if(n[o]&&n[o]>=a){var b=a-n[p];var m=n[o]-a;return(m>b)?n[p]:n[o]}}return n[n.length-1]}}},toString:function(){return("DragDrop "+this.id)}}})();if(!Ext.dd.DragDropMgr){Ext.dd.DragDropMgr=function(){var b=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(l,m){for(var k in this.ids){for(var a in this.ids[k]){var h=this.ids[k][a];if(!this.isTypeOfDD(h)){continue}h[l].apply(h,m)}}},_onLoad:function(){this.init();b.on(document,"mouseup",this.handleMouseUp,this,true);b.on(document,"mousemove",this.handleMouseMove,this,true);b.on(window,"unload",this._onUnload,this,true);b.on(window,"resize",this._onResize,this,true)},_onResize:function(a){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(d,a){if(!this.initialized){this.init()}if(!this.ids[a]){this.ids[a]={}}this.ids[a][d.id]=d},removeDDFromGroup:function(e,a){if(!this.ids[a]){this.ids[a]={}}var g=this.ids[a];if(g&&g[e.id]){delete g[e.id]}},_remove:function(d){for(var a in d.groups){if(a&&this.ids[a]&&this.ids[a][d.id]){delete this.ids[a][d.id]}}delete this.handleIds[d.id]},regHandle:function(d,a){if(!this.handleIds[d]){this.handleIds[d]={}}this.handleIds[d][a]=a},isDragDrop:function(a){return(this.getDDById(a))?true:false},getRelated:function(k,o){var l=[];for(var m in k.groups){for(var n in this.ids[m]){var a=this.ids[m][n];if(!this.isTypeOfDD(a)){continue}if(!o||a.isTarget){l[l.length]=a}}}return l},isLegalTarget:function(h,k){var m=this.getRelated(h,true);for(var l=0,a=m.length;l<a;++l){if(m[l].id==k.id){return true}}return false},isTypeOfDD:function(a){return(a&&a.__ygDragDrop)},isHandle:function(d,a){return(this.handleIds[d]&&this.handleIds[d][a])},getDDById:function(d){for(var a in this.ids){if(this.ids[a][d]){return this.ids[a][d]}}return null},handleMouseDown:function(e,g){if(Ext.QuickTips){Ext.QuickTips.ddDisable()}if(this.dragCurrent){this.handleMouseUp(e)}this.currentTarget=e.getTarget();this.dragCurrent=g;var a=g.getEl();this.startX=e.getPageX();this.startY=e.getPageY();this.deltaX=this.startX-a.offsetLeft;this.deltaY=this.startY-a.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var c=Ext.dd.DDM;c.startDrag(c.startX,c.startY)},this.clickTimeThresh)},startDrag:function(a,d){clearTimeout(this.clickTimeout);if(this.dragCurrent){this.dragCurrent.b4StartDrag(a,d);this.dragCurrent.startDrag(a,d)}this.dragThreshMet=true},handleMouseUp:function(a){if(Ext.QuickTips){Ext.QuickTips.ddEnable()}if(!this.dragCurrent){return}clearTimeout(this.clickTimeout);if(this.dragThreshMet){this.fireEvents(a,true)}else{}this.stopDrag(a);this.stopEvent(a)},stopEvent:function(a){if(this.stopPropagation){a.stopPropagation()}if(this.preventDefault){a.preventDefault()}},stopDrag:function(a){if(this.dragCurrent){if(this.dragThreshMet){this.dragCurrent.b4EndDrag(a);this.dragCurrent.endDrag(a)}this.dragCurrent.onMouseUp(a)}this.dragCurrent=null;this.dragOvers={}},handleMouseMove:function(e){if(!this.dragCurrent){return true}if(Ext.isIE&&(e.button!==0&&e.button!==1&&e.button!==2)){this.stopEvent(e);return this.handleMouseUp(e)}if(!this.dragThreshMet){var g=Math.abs(this.startX-e.getPageX());var a=Math.abs(this.startY-e.getPageY());if(g>this.clickPixelThresh||a>this.clickPixelThresh){this.startDrag(this.startX,this.startY)}}if(this.dragThreshMet){this.dragCurrent.b4Drag(e);this.dragCurrent.onDrag(e);if(!this.dragCurrent.moveOnly){this.fireEvents(e,false)}}this.stopEvent(e);return true},fireEvents:function(u,t){var a=this.dragCurrent;if(!a||a.isLocked()){return}var E=u.getPoint();var D=[];var A=[];var w=[];var y=[];var B=[];for(var z in this.dragOvers){var C=this.dragOvers[z];if(!this.isTypeOfDD(C)){continue}if(!this.isOverTarget(E,C,this.mode)){A.push(C)}D[z]=true;delete this.dragOvers[z]}for(var e in a.groups){if("string"!=typeof e){continue}for(z in this.ids[e]){var x=this.ids[e][z];if(!this.isTypeOfDD(x)){continue}if(x.isTarget&&!x.isLocked()&&((x!=a)||(a.ignoreSelf===false))){if(this.isOverTarget(E,x,this.mode)){if(t){y.push(x)}else{if(!D[x.id]){B.push(x)}else{w.push(x)}this.dragOvers[x.id]=x}}}}}if(this.mode){if(A.length){a.b4DragOut(u,A);a.onDragOut(u,A)}if(B.length){a.onDragEnter(u,B)}if(w.length){a.b4DragOver(u,w);a.onDragOver(u,w)}if(y.length){a.b4DragDrop(u,y);a.onDragDrop(u,y)}}else{var v=0;for(z=0,v=A.length;z<v;++z){a.b4DragOut(u,A[z].id);a.onDragOut(u,A[z].id)}for(z=0,v=B.length;z<v;++z){a.onDragEnter(u,B[z].id)}for(z=0,v=w.length;z<v;++z){a.b4DragOver(u,w[z].id);a.onDragOver(u,w[z].id)}for(z=0,v=y.length;z<v;++z){a.b4DragDrop(u,y[z].id);a.onDragDrop(u,y[z].id)}}if(t&&!y.length){a.onInvalidDrop(u)}},getBestMatch:function(l){var h=null;var m=l.length;if(m==1){h=l[0]}else{for(var k=0;k<m;++k){var a=l[k];if(a.cursorIsOver){h=a;break}else{if(!h||h.overlap.getArea()<a.overlap.getArea()){h=a}}}}return h},refreshCache:function(m){for(var a in m){if("string"!=typeof a){continue}for(var l in this.ids[a]){var k=this.ids[a][l];if(this.isTypeOfDD(k)){var h=this.getLocation(k);if(h){this.locationCache[k.id]=h}else{delete this.locationCache[k.id]}}}}},verifyEl:function(g){if(g){var a;if(Ext.isIE){try{a=g.offsetParent}catch(e){}}else{a=g.offsetParent}if(a){return true}}return false},getLocation:function(u){if(!this.isTypeOfDD(u)){return null}var w=u.getEl(),l,x,y,a,e,A,z,r,v;try{l=Ext.lib.Dom.getXY(w)}catch(t){}if(!l){return null}x=l[0];y=x+w.offsetWidth;a=l[1];e=a+w.offsetHeight;A=a-u.padding[0];z=y+u.padding[1];r=e+u.padding[2];v=x-u.padding[3];return new Ext.lib.Region(A,z,r,v)},isOverTarget:function(a,t,r){var p=this.locationCache[t.id];if(!p||!this.useCache){p=this.getLocation(t);this.locationCache[t.id]=p}if(!p){return false}t.cursorIsOver=p.contains(a);var m=this.dragCurrent;if(!m||!m.getTargetCoord||(!r&&!m.constrainX&&!m.constrainY)){return t.cursorIsOver}t.overlap=null;var o=m.getTargetCoord(a.x,a.y);var s=m.getDragEl();var q=new Ext.lib.Region(o.y,o.x+s.offsetWidth,o.y+s.offsetHeight,o.x);var n=q.intersect(p);if(n){t.overlap=n;return(r)?true:t.cursorIsOver}else{return false}},_onUnload:function(d,a){Ext.dd.DragDropMgr.unregAll()},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null}this._execOnAll("unreg",[]);for(var a in this.elementCache){delete this.elementCache[a]}this.elementCache={};this.ids={}},elementCache:{},getElWrapper:function(d){var a=this.elementCache[d];if(!a||!a.el){a=this.elementCache[d]=new this.ElementWrapper(Ext.getDom(d))}return a},getElement:function(a){return Ext.getDom(a)},getCss:function(d){var a=Ext.getDom(d);return(a)?a.style:null},ElementWrapper:function(a){this.el=a||null;this.id=this.el&&a.id;this.css=this.el&&a.style},getPosX:function(a){return Ext.lib.Dom.getX(a)},getPosY:function(a){return Ext.lib.Dom.getY(a)},swapNode:function(h,a){if(h.swapNode){h.swapNode(a)}else{var g=a.parentNode;var k=a.nextSibling;if(k==h){g.insertBefore(h,a)}else{if(a==h.nextSibling){g.insertBefore(a,h)}else{h.parentNode.replaceChild(a,h);g.insertBefore(h,k)}}}},getScroll:function(){var h,a,g=document.documentElement,k=document.body;if(g&&(g.scrollTop||g.scrollLeft)){h=g.scrollTop;a=g.scrollLeft}else{if(k){h=k.scrollTop;a=k.scrollLeft}else{}}return{top:h,left:a}},getStyle:function(d,a){return Ext.fly(d).getStyle(a)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(a,e){var g=Ext.lib.Dom.getXY(e);Ext.lib.Dom.setXY(a,g)},numericSort:function(a,e){return(a-e)},_timeoutCount:0,_addListeners:function(){var a=Ext.dd.DDM;if(Ext.lib.Event&&document){a._onLoad()}else{if(a._timeoutCount>2000){}else{setTimeout(a._addListeners,10);if(document&&document.body){a._timeoutCount+=1}}}},handleWasClicked:function(a,e){if(this.isHandle(e,a.id)){return true}else{var g=a.parentNode;while(g){if(this.isHandle(e,g.id)){return true}else{g=g.parentNode}}}return false}}}();Ext.dd.DDM=Ext.dd.DragDropMgr;Ext.dd.DDM._addListeners()}Ext.dd.DD=function(g,e,d){if(g){this.init(g,e,d)}};Ext.extend(Ext.dd.DD,Ext.dd.DragDrop,{scroll:true,autoOffset:function(k,e){var g=k-this.startPageX;var h=e-this.startPageY;this.setDelta(g,h)},setDelta:function(c,d){this.deltaX=c;this.deltaY=d},setDragElPos:function(g,d){var e=this.getDragEl();this.alignElWithMouse(e,g,d)},alignElWithMouse:function(r,n,o){var p=this.getTargetCoord(n,o);var k=r.dom?r:Ext.fly(r,"_dd");if(!this.deltaSetXY){var m=[p.x,p.y];k.setXY(m);var q=k.getLeft(true);var l=k.getTop(true);this.deltaSetXY=[q-p.x,l-p.y]}else{k.setLeftTop(p.x+this.deltaSetXY[0],p.y+this.deltaSetXY[1])}this.cachePosition(p.x,p.y);this.autoScroll(p.x,p.y,r.offsetHeight,r.offsetWidth);return p},cachePosition:function(d,e){if(d){this.lastPageX=d;this.lastPageY=e}else{var g=Ext.lib.Dom.getXY(this.getEl());this.lastPageX=g[0];this.lastPageY=g[1]}},autoScroll:function(u,v,z,t){if(this.scroll){var s=Ext.lib.Dom.getViewHeight();var C=Ext.lib.Dom.getViewWidth();var h=this.DDM.getScrollTop();var A=this.DDM.getScrollLeft();var w=z+v;var r=t+u;var x=(s+h-v-this.deltaY);var y=(C+A-u-this.deltaX);var B=40;var D=(document.all)?80:30;if(w>s&&x<B){window.scrollTo(A,h+D)}if(v<h&&h>0&&v-h<B){window.scrollTo(A,h-D)}if(r>C&&y<B){window.scrollTo(A+D,h)}if(u<A&&A>0&&u-A<B){window.scrollTo(A-D,h)}}},getTargetCoord:function(k,e){var g=k-this.deltaX;var h=e-this.deltaY;if(this.constrainX){if(g<this.minX){g=this.minX}if(g>this.maxX){g=this.maxX}}if(this.constrainY){if(h<this.minY){h=this.minY}if(h>this.maxY){h=this.maxY}}g=this.getTick(g,this.xTicks);h=this.getTick(h,this.yTicks);return{x:g,y:h}},applyConfig:function(){Ext.dd.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(b){this.autoOffset(b.getPageX(),b.getPageY())},b4Drag:function(b){this.setDragElPos(b.getPageX(),b.getPageY())},toString:function(){return("DD "+this.id)}});Ext.dd.DDProxy=function(g,e,d){if(g){this.init(g,e,d);this.initFrame()}};Ext.dd.DDProxy.dragElId="ygddfdiv";Ext.extend(Ext.dd.DDProxy,Ext.dd.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var e=this;var g=document.body;if(!g||!g.firstChild){setTimeout(function(){e.createFrame()},50);return}var h=this.getDragEl();if(!h){h=document.createElement("div");h.id=this.dragElId;var k=h.style;k.position="absolute";k.visibility="hidden";k.cursor="move";k.border="2px solid #aaa";k.zIndex=999;g.insertBefore(h,g.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(k,l){var m=this.getEl();var h=this.getDragEl();var g=h.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(g.width,10)/2),Math.round(parseInt(g.height,10)/2))}this.setDragElPos(k,l);Ext.fly(h).show()},_resizeProxy:function(){if(this.resizeFrame){var b=this.getEl();Ext.fly(this.getDragEl()).setSize(b.offsetWidth,b.offsetHeight)}},b4MouseDown:function(d){var e=d.getPageX();var g=d.getPageY();this.autoOffset(e,g);this.setDragElPos(e,g)},b4StartDrag:function(d,c){this.showFrame(d,c)},b4EndDrag:function(b){Ext.fly(this.getDragEl()).hide()},endDrag:function(g){var d=this.getEl();var e=this.getDragEl();e.style.visibility="";this.beforeMove();d.style.visibility="hidden";Ext.dd.DDM.moveToEl(d,e);e.style.visibility="hidden";d.style.visibility="";this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return("DDProxy "+this.id)}});Ext.dd.DDTarget=function(g,e,d){if(g){this.initTarget(g,e,d)}};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(b){Ext.apply(this,b);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,b)},initEl:function(b){this.el=Ext.get(b);b.on("mousedown",this.onMouseDown,this,this.delegate?{delegate:this.delegate}:undefined)},destroy:function(){this.el.un("mousedown",this.onMouseDown,this);delete this.el},onMouseDown:function(c,d){if(this.fireEvent("mousedown",this,c)!==false&&this.onBeforeStart(c)!==false){this.startXY=this.lastXY=c.getXY();this.dragTarget=this.delegate?d:this.el.dom;if(this.preventDefault!==false){c.preventDefault()}Ext.getDoc().on({scope:this,mouseup:this.onMouseUp,mousemove:this.onMouseMove,selectstart:this.stopSelect});if(this.autoStart){this.timer=this.triggerStart.defer(this.autoStart===true?1000:this.autoStart,this,[c])}}},onMouseMove:function(h,k){if(this.active&&Ext.isIE&&!h.browserEvent.button){h.preventDefault();this.onMouseUp(h);return}h.preventDefault();var e=h.getXY(),g=this.startXY;this.lastXY=e;if(!this.active){if(Math.abs(g[0]-e[0])>this.tolerance||Math.abs(g[1]-e[1])>this.tolerance){this.triggerStart(h)}else{return}}this.fireEvent("mousemove",this,h);this.onDrag(h);this.fireEvent("drag",this,h)},onMouseUp:function(g){var d=Ext.getDoc(),e=this.active;d.un("mousemove",this.onMouseMove,this);d.un("mouseup",this.onMouseUp,this);d.un("selectstart",this.stopSelect,this);g.preventDefault();this.clearStart();this.active=false;delete this.elRegion;this.fireEvent("mouseup",this,g);if(e){this.onEnd(g);this.fireEvent("dragend",this,g)}},triggerStart:function(b){this.clearStart();this.active=true;this.onStart(b);this.fireEvent("dragstart",this,b)},clearStart:function(){if(this.timer){clearTimeout(this.timer);delete this.timer}},stopSelect:function(b){b.stopEvent();return false},onBeforeStart:function(b){},onStart:function(b){},onDrag:function(b){},onEnd:function(b){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getXY:function(b){return b?this.constrainModes[b].call(this,this.lastXY):this.lastXY},getOffset:function(g){var d=this.getXY(g),e=this.startXY;return[e[0]-d[0],e[1]-d[1]]},constrainModes:{point:function(c){if(!this.elRegion){this.elRegion=this.getDragCt().getRegion()}var d=this.dragRegion;d.left=c[0];d.top=c[1];d.right=c[0];d.bottom=c[1];d.constrainTo(this.elRegion);return[d.left,d.top]}}});Ext.dd.ScrollManager=function(){var t=Ext.dd.DragDropMgr;var r={};var u=null;var o={};var p=function(a){u=null;v()};var n=function(){if(t.dragCurrent){t.refreshCache(t.dragCurrent.groups)}};var s=function(){if(t.dragCurrent){var a=Ext.dd.ScrollManager;var b=o.el.ddScrollConfig?o.el.ddScrollConfig.increment:a.increment;if(!a.animate){if(o.el.scroll(o.dir,b)){n()}}else{o.el.scroll(o.dir,b,true,a.animDuration,n)}}};var v=function(){if(o.id){clearInterval(o.id)}o.id=0;o.el=null;o.dir=""};var q=function(d,a){v();o.el=d;o.dir=a;var b=d.ddScrollConfig?d.ddScrollConfig.ddGroup:undefined,c=(d.ddScrollConfig&&d.ddScrollConfig.frequency)?d.ddScrollConfig.frequency:Ext.dd.ScrollManager.frequency;if(b===undefined||t.dragCurrent.ddGroup==b){o.id=setInterval(s,c)}};var m=function(b,l){if(l||!t.dragCurrent){return}var k=Ext.dd.ScrollManager;if(!u||u!=t.dragCurrent){u=t.dragCurrent;k.refreshCache()}var h=Ext.lib.Event.getXY(b);var g=new Ext.lib.Point(h[0],h[1]);for(var d in r){var c=r[d],e=c._region;var a=c.ddScrollConfig?c.ddScrollConfig:k;if(e&&e.contains(g)&&c.isScrollable()){if(e.bottom-g.y<=a.vthresh){if(o.el!=c){q(c,"down")}return}else{if(e.right-g.x<=a.hthresh){if(o.el!=c){q(c,"left")}return}else{if(g.y-e.top<=a.vthresh){if(o.el!=c){q(c,"up")}return}else{if(g.x-e.left<=a.hthresh){if(o.el!=c){q(c,"right")}return}}}}}}v()};t.fireEvents=t.fireEvents.createSequence(m,t);t.stopDrag=t.stopDrag.createSequence(p,t);return{register:function(b){if(Ext.isArray(b)){for(var c=0,a=b.length;c<a;c++){this.register(b[c])}}else{b=Ext.get(b);r[b.id]=b}},unregister:function(b){if(Ext.isArray(b)){for(var c=0,a=b.length;c<a;c++){this.unregister(b[c])}}else{b=Ext.get(b);delete r[b.id]}},vthresh:25,hthresh:25,increment:100,frequency:500,animate:true,animDuration:0.4,ddGroup:undefined,refreshCache:function(){for(var a in r){if(typeof r[a]=="object"){r[a]._region=r[a].getRegion()}}}}}();Ext.dd.Registry=function(){var h={};var e={};var g=0;var k=function(b,c){if(typeof b=="string"){return b}var a=b.id;if(!a&&c!==false){a="extdd-"+(++g);b.id=a}return a};return{register:function(b,a){a=a||{};if(typeof b=="string"){b=document.getElementById(b)}a.ddel=b;h[k(b)]=a;if(a.isHandle!==false){e[a.ddel.id]=a}if(a.handles){var c=a.handles;for(var d=0,m=c.length;d<m;d++){e[k(c[d])]=a}}},unregister:function(c){var a=k(c,false);var b=h[a];if(b){delete h[a];if(b.handles){var d=b.handles;for(var n=0,o=d.length;n<o;n++){delete e[k(d[n],false)]}}}},getHandle:function(a){if(typeof a!="string"){a=a.id}return e[a]},getHandleFromEvent:function(a){var b=Ext.lib.Event.getTarget(a);return b?e[b.id]:null},getTarget:function(a){if(typeof a!="string"){a=a.id}return h[a]},getTargetFromEvent:function(a){var b=Ext.lib.Event.getTarget(a);return b?h[b.id]||e[b.id]:null}}}();Ext.dd.StatusProxy=function(b){Ext.apply(this,b);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:!b||b.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(b){b=b||this.dropNotAllowed;if(this.dropStatus!=b){this.el.replaceClass(this.dropStatus,b);this.dropStatus=b}},reset:function(b){this.el.dom.className="x-dd-drag-proxy "+this.dropNotAllowed;this.dropStatus=this.dropNotAllowed;if(b){this.ghost.update("")}},update:function(d){if(typeof d=="string"){this.ghost.update(d)}else{this.ghost.update("");d.style.margin="0";this.ghost.dom.appendChild(d)}var c=this.ghost.dom.firstChild;if(c){Ext.fly(c).setStyle("float","none")}},getEl:function(){return this.el},getGhost:function(){return this.ghost},hide:function(b){this.el.hide();if(b){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(d,g,e){this.callback=g;this.scope=e;if(d&&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:d,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(c,d){this.el=Ext.get(c);if(!this.dragData){this.dragData={}}Ext.apply(this,d);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(b){return this.dragData},onDragEnter:function(k,h){var e=Ext.dd.DragDropMgr.getDDById(h);this.cachedTarget=e;if(this.beforeDragEnter(e,k,h)!==false){if(e.isNotifyTarget){var g=e.notifyEnter(this,k,this.dragData);this.proxy.setStatus(g)}else{this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(e,k,h)}}},beforeDragEnter:function(d,e,g){return true},alignElWithMouse:function(){Ext.dd.DragSource.superclass.alignElWithMouse.apply(this,arguments);this.proxy.sync()},onDragOver:function(k,h){var e=this.cachedTarget||Ext.dd.DragDropMgr.getDDById(h);if(this.beforeDragOver(e,k,h)!==false){if(e.isNotifyTarget){var g=e.notifyOver(this,k,this.dragData);this.proxy.setStatus(g)}if(this.afterDragOver){this.afterDragOver(e,k,h)}}},beforeDragOver:function(d,e,g){return true},onDragOut:function(d,g){var e=this.cachedTarget||Ext.dd.DragDropMgr.getDDById(g);if(this.beforeDragOut(e,d,g)!==false){if(e.isNotifyTarget){e.notifyOut(this,d,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(e,d,g)}}this.cachedTarget=null},beforeDragOut:function(d,e,g){return true},onDragDrop:function(d,g){var e=this.cachedTarget||Ext.dd.DragDropMgr.getDDById(g);if(this.beforeDragDrop(e,d,g)!==false){if(e.isNotifyTarget){if(e.notifyDrop(this,d,this.dragData)){this.onValidDrop(e,d,g)}else{this.onInvalidDrop(e,d,g)}}else{this.onValidDrop(e,d,g)}if(this.afterDragDrop){this.afterDragDrop(e,d,g)}}delete this.cachedTarget},beforeDragDrop:function(d,e,g){return true},onValidDrop:function(d,e,g){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(d,e,g)}},getRepairXY:function(c,d){return this.el.getXY()},onInvalidDrop:function(d,e,g){this.beforeInvalidDrop(d,e,g);if(this.cachedTarget){if(this.cachedTarget.isNotifyTarget){this.cachedTarget.notifyOut(this,e,this.dragData)}this.cacheTarget=null}this.proxy.repair(this.getRepairXY(e,this.dragData),this.afterRepair,this);if(this.afterInvalidDrop){this.afterInvalidDrop(e,g)}},afterRepair:function(){if(Ext.enableFx){this.el.highlight(this.hlColor||"c3daf9")}this.dragging=false},beforeInvalidDrop:function(d,e,g){return true},handleMouseDown:function(c){if(this.dragging){return}var d=this.getDragData(c);if(d&&this.onBeforeDrag(d,c)!==false){this.dragData=d;this.proxy.stop();Ext.dd.DragSource.superclass.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(d,c){return true},onStartDrag:Ext.emptyFn,startDrag:function(d,c){this.proxy.reset();this.dragging=true;this.proxy.update("");this.onInitDrag(d,c);this.proxy.show()},onInitDrag:function(e,g){var d=this.el.dom.cloneNode(true);d.id=Ext.id();this.proxy.update(d);this.onStartDrag(e,g);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(b){},endDrag:function(b){this.onEndDrag(this.dragData,b)},onEndDrag:function(d,c){},autoOffset:function(d,c){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DragSource.superclass.destroy.call(this);Ext.destroy(this.proxy)}});Ext.dd.DropTarget=Ext.extend(Ext.dd.DDTarget,{constructor:function(c,d){this.el=Ext.get(c);Ext.apply(this,d);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})},dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",isTarget:true,isNotifyTarget:true,notifyEnter:function(e,g,d){if(this.overClass){this.el.addClass(this.overClass)}return this.dropAllowed},notifyOver:function(e,g,d){return this.dropAllowed},notifyOut:function(e,g,d){if(this.overClass){this.el.removeClass(this.overClass)}},notifyDrop:function(e,g,d){return false},destroy:function(){Ext.dd.DropTarget.superclass.destroy.call(this);if(this.containerScroll){Ext.dd.ScrollManager.unregister(this.el)}}});Ext.dd.DragZone=Ext.extend(Ext.dd.DragSource,{constructor:function(c,d){Ext.dd.DragZone.superclass.constructor.call(this,c,d);if(this.containerScroll){Ext.dd.ScrollManager.register(this.el)}},getDragData:function(b){return Ext.dd.Registry.getHandleFromEvent(b)},onInitDrag:function(d,c){this.proxy.update(this.dragData.ddel.cloneNode(true));this.onStartDrag(d,c);return true},afterRepair:function(){if(Ext.enableFx){Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor||"c3daf9")}this.dragging=false},getRepairXY:function(b){return Ext.Element.fly(this.dragData.ddel).getXY()},destroy:function(){Ext.dd.DragZone.superclass.destroy.call(this);if(this.containerScroll){Ext.dd.ScrollManager.unregister(this.el)}}});Ext.dd.DropZone=function(c,d){Ext.dd.DropZone.superclass.constructor.call(this,c,d)};Ext.extend(Ext.dd.DropZone,Ext.dd.DropTarget,{getTargetFromEvent:function(b){return Ext.dd.Registry.getTargetFromEvent(b)},onNodeEnter:function(h,g,k,e){},onNodeOver:function(h,g,k,e){return this.dropAllowed},onNodeOut:function(h,g,k,e){},onNodeDrop:function(h,g,k,e){return false},onContainerOver:function(e,g,d){return this.dropNotAllowed},onContainerDrop:function(e,g,d){return false},notifyEnter:function(e,g,d){return this.dropNotAllowed},notifyOver:function(g,k,e){var h=this.getTargetFromEvent(k);if(!h){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,g,k,e);this.lastOverNode=null}return this.onContainerOver(g,k,e)}if(this.lastOverNode!=h){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,g,k,e)}this.onNodeEnter(h,g,k,e);this.lastOverNode=h}return this.onNodeOver(h,g,k,e)},notifyOut:function(e,g,d){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,e,g,d);this.lastOverNode=null}},notifyDrop:function(g,k,e){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,g,k,e);this.lastOverNode=null}var h=this.getTargetFromEvent(k);return h?this.onNodeDrop(h,g,k,e):this.onContainerDrop(g,k,e)},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)}});Ext.Element.addMethods({initDD:function(k,e,h){var g=new Ext.dd.DD(Ext.id(this.dom),k,e);return Ext.apply(g,h)},initDDProxy:function(k,e,h){var g=new Ext.dd.DDProxy(Ext.id(this.dom),k,e);return Ext.apply(g,h)},initDDTarget:function(k,e,h){var g=new Ext.dd.DDTarget(Ext.id(this.dom),k,e);return Ext.apply(g,h)}});Ext.data.Api=(function(){var b={};return{actions:{create:"create",read:"read",update:"update",destroy:"destroy"},restActions:{create:"POST",read:"GET",update:"PUT",destroy:"DELETE"},isAction:function(a){return(Ext.data.Api.actions[a])?true:false},getVerb:function(a){if(b[a]){return b[a]}for(var d in this.actions){if(this.actions[d]===a){b[a]=d;break}}return(b[a]!==undefined)?b[a]:null},isValid:function(a){var g=[];var h=this.actions;for(var k in a){if(!(k in h)){g.push(k)}}return(!g.length)?true:g},hasUniqueUrl:function(m,h){var a=(m.api[h])?m.api[h].url:null;var k=true;for(var l in m.api){if((k=(l===h)?true:(m.api[l].url!=a)?true:false)===false){break}}return k},prepare:function(a){if(!a.api){a.api={}}for(var e in this.actions){var g=this.actions[e];a.api[g]=a.api[g]||a.url||a.directFn;if(typeof(a.api[g])=="string"){a.api[g]={url:a.api[g],method:(a.restful===true)?Ext.data.Api.restActions[g]:undefined}}}},restify:function(a){a.restful=true;for(var d in this.restActions){a.api[this.actions[d]].method||(a.api[this.actions[d]].method=this.restActions[d])}a.onWrite=a.onWrite.createInterceptor(function(l,c,n,o){var p=c.reader;var m=new Ext.data.Response({action:l,raw:n});switch(n.status){case 200:return true;break;case 201:if(Ext.isEmpty(m.raw.responseText)){m.success=true}else{return true}break;case 204:m.success=true;m.data=null;break;default:return true;break}if(m.success===true){this.fireEvent("write",this,l,m.data,m,o,c.request.arg)}else{this.fireEvent("exception",this,"remote",l,c,m,o)}c.request.callback.call(c.request.scope,m.data,m,m.success);return false},a)}}})();Ext.data.Response=function(c,d){Ext.apply(this,c,{raw:d})};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(c,d){this.arg=d;Ext.Error.call(this,c)},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(b){return b},stripTagsRE:/<\/?[^>]+>/gi,asText:function(b){return String(b).replace(this.stripTagsRE,"")},asUCText:function(b){return String(b).toUpperCase().replace(this.stripTagsRE,"")},asUCString:function(b){return String(b).toUpperCase()},asDate:function(b){if(!b){return 0}if(Ext.isDate(b)){return b.getTime()}return Date.parse(String(b))},asFloat:function(d){var c=parseFloat(String(d).replace(/,/g,""));return isNaN(c)?0:c},asInt:function(d){var c=parseInt(String(d).replace(/,/g,""),10);return isNaN(c)?0:c}};Ext.data.Record=function(d,c){this.id=(c||c===0)?c:Ext.data.Record.id(this);this.data=d||{}};Ext.data.Record.create=function(k){var m=Ext.extend(Ext.data.Record,{});var l=m.prototype;l.fields=new Ext.util.MixedCollection(false,function(a){return a.name});for(var g=0,h=k.length;g<h;g++){l.fields.add(new Ext.data.Field(k[g]))}m.getField=function(a){return l.fields.get(a)};return m};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(b){b.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(b){this.store=b},set:function(e,g){var d=Ext.isPrimitive(g)?String:Ext.encode;if(d(this.data[e])==d(g)){return}this.dirty=true;if(!this.modified){this.modified={}}if(this.modified[e]===undefined){this.modified[e]=this.data[e]}this.data[e]=g;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(b){return this.data[b]},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(d){var e=this.modified;for(var g in e){if(typeof e[g]!="function"){this.data[g]=e[g]}}this.dirty=false;delete this.modified;this.editing=false;if(d!==true){this.afterReject()}},commit:function(b){this.dirty=false;delete this.modified;this.editing=false;if(b!==true){this.afterCommit()}},getChanges:function(){var e=this.modified,d={};for(var g in e){if(e.hasOwnProperty(g)){d[g]=this.data[g]}}return d},hasError:function(){return this.error!==null},clearError:function(){this.error=null},copy:function(b){return new this.constructor(Ext.apply({},this.data),b||this.id)},isModified:function(b){return !!(this.modified&&this.modified.hasOwnProperty(b))},isValid:function(){return this.fields.find(function(b){return(b.allowBlank===false&&Ext.isEmpty(this.data[b.name]))?true:false},this)?false:true},markDirty:function(){this.dirty=true;if(!this.modified){this.modified={}}this.fields.each(function(b){this.modified[b.name]=this.data[b.name]},this)}};Ext.StoreMgr=Ext.apply(new Ext.util.MixedCollection(),{register:function(){for(var d=0,c;(c=arguments[d]);d++){this.add(c)}},unregister:function(){for(var d=0,c;(c=arguments[d]);d++){this.remove(this.lookup(c))}},lookup:function(k){if(Ext.isArray(k)){var g=["field1"],l=!Ext.isArray(k[0]);if(!l){for(var m=2,h=k[0].length;m<=h;++m){g.push("field"+m)}}return new Ext.data.ArrayStore({fields:g,data:k,expandData:l,autoDestroy:true,autoCreated:true})}return Ext.isObject(k)?(k.events?k:Ext.create(k,"store")):this.get(k)},getKey:function(b){return b.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(b){this.data=new Ext.util.MixedCollection(false);this.data.getKey=function(a){return a.id};this.removed=[];if(b&&b.data){this.inlineData=b.data;delete b.data}Ext.apply(this,b);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(d){var e=undefined,g=(d.format||"json").toLowerCase();switch(g){case"json":e=Ext.data.JsonWriter;break;case"xml":e=Ext.data.XmlWriter;break;default:e=Ext.data.JsonWriter}return new e(d)},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(m){var k,h,g,l;m=[].concat(m);if(m.length<1){return}for(k=0,h=m.length;k<h;k++){g=m[k];g.join(this);if(g.dirty||g.phantom){this.modified.push(g)}}l=this.data.length;this.data.addAll(m);if(this.snapshot){this.snapshot.addAll(m)}this.fireEvent("add",this,m,l)},addSorted:function(d){var c=this.findInsertIndex(d);this.insert(c,d)},doUpdate:function(b){this.data.replace(b.id,b);if(this.snapshot){this.snapshot.replace(b.id,b)}this.fireEvent("update",this,b,Ext.data.Record.COMMIT)},remove:function(d){if(Ext.isArray(d)){Ext.each(d,function(a){this.remove(a)},this);return}var c=this.data.indexOf(d);if(c>-1){d.join(null);this.data.removeAt(c)}if(this.pruneModifiedRecords){this.modified.remove(d)}if(this.snapshot){this.snapshot.remove(d)}if(c>-1){this.fireEvent("remove",this,d,c)}},removeAt:function(b){this.remove(this.getAt(b))},removeAll:function(c){var d=[];this.each(function(a){d.push(a)});this.clearData();if(this.snapshot){this.snapshot.clear()}if(this.pruneModifiedRecords){this.modified=[]}if(c!==true){this.fireEvent("clear",this,d)}},onClear:function(c,d){Ext.each(d,function(a,b){this.destroyRecord(this,a,b)},this)},insert:function(l,m){var k,h,g;m=[].concat(m);for(k=0,h=m.length;k<h;k++){g=m[k];this.data.insert(l+k,g);g.join(this);if(g.dirty||g.phantom){this.modified.push(g)}}if(this.snapshot){this.snapshot.addAll(m)}this.fireEvent("add",this,m,l)},indexOf:function(b){return this.data.indexOf(b)},indexOfId:function(b){return this.data.indexOfKey(b)},getById:function(b){return(this.snapshot||this.data).key(b)},getAt:function(b){return this.data.itemAt(b)},getRange:function(c,d){return this.data.getRange(c,d)},storeOptions:function(b){b=Ext.apply({},b);delete b.callback;delete b.scope;this.lastOptions=b},clearData:function(){this.data.each(function(b){b.join(null)});this.data.clear()},load:function(d){d=Ext.apply({},d);this.storeOptions(d);if(this.sortInfo&&this.remoteSort){var e=this.paramNames;d.params=Ext.apply({},d.params);d.params[e.sort]=this.sortInfo.field;d.params[e.dir]=this.sortInfo.direction}try{return this.execute("read",null,d)}catch(g){this.handleException(g);return false}},updateRecord:function(d,e,g){if(g==Ext.data.Record.EDIT&&this.autoSave===true&&(!e.phantom||(e.phantom&&e.isValid()))){this.save()}},createRecords:function(q,k,o){var p=this.modified,m=k.length,l,n;for(n=0;n<m;n++){l=k[n];if(l.phantom&&l.isValid()){l.markDirty();if(p.indexOf(l)==-1){p.push(l)}}}if(this.autoSave===true){this.save()}},destroyRecord:function(d,e,g){if(this.modified.indexOf(e)!=-1){this.modified.remove(e)}if(!e.phantom){this.removed.push(e);e.lastIndex=g;if(this.autoSave===true){this.save()}}},execute:function(k,h,m,g){if(!Ext.data.Api.isAction(k)){throw new Ext.data.Api.Error("execute",k)}m=Ext.applyIf(m||{},{params:{}});if(g!==undefined){this.addToBatch(g)}var l=true;if(k==="read"){l=this.fireEvent("beforeload",this,m);Ext.applyIf(m.params,this.baseParams)}else{if(this.writer.listful===true&&this.restful!==true){h=(Ext.isArray(h))?h:[h]}else{if(Ext.isArray(h)&&h.length==1){h=h.shift()}}if((l=this.fireEvent("beforewrite",this,k,h,m))!==false){this.writer.apply(m.params,this.baseParams,k,h)}}if(l!==false){if(this.writer&&this.proxy.url&&!this.proxy.restful&&!Ext.data.Api.hasUniqueUrl(this.proxy,k)){m.params.xaction=k}this.proxy.request(Ext.data.Api.actions[k],h,m.params,this.reader,this.createCallback(k,h,g),this,m)}return l},save:function(){if(!this.writer){throw new Ext.data.Store.Error("writer-undefined")}var o=[],n,m,q,s={},r;if(this.removed.length){o.push(["destroy",this.removed])}var t=[].concat(this.getModifiedRecords());if(t.length){var p=[];for(r=t.length-1;r>=0;r--){if(t[r].phantom===true){var u=t.splice(r,1).shift();if(u.isValid()){p.push(u)}}else{if(!t[r].isValid()){t.splice(r,1)}}}if(p.length){o.push(["create",p])}if(t.length){o.push(["update",t])}}n=o.length;if(n){q=++this.batchCounter;for(r=0;r<n;++r){m=o[r];s[m[0]]=m[1]}if(this.fireEvent("beforesave",this,s)!==false){for(r=0;r<n;++r){m=o[r];this.doTransaction(m[0],m[1],q)}return q}}return -1},doTransaction:function(m,h,o){function l(b){try{this.execute(m,b,undefined,o)}catch(a){this.handleException(a)}}if(this.batch===false){for(var n=0,k=h.length;n<k;n++){l.call(this,h[n])}}else{l.call(this,h)}},addToBatch:function(k){var b=this.batches,h=this.batchKey+k,g=b[h];if(!g){b[h]=g={id:k,count:0,data:{}}}++g.count},removeFromBatch:function(o,l,m){var p=this.batches,n=this.batchKey+o,k=p[n],b;if(k){b=k.data[l]||[];k.data[l]=b.concat(m);if(k.count===1){m=k.data;delete p[n];this.fireEvent("save",this,o,m)}else{--k.count}}},createCallback:function(k,g,e){var h=Ext.data.Api.actions;return(k=="read")?this.loadRecords:function(b,c,a){this["on"+Ext.util.Format.capitalize(k)+"Records"](a,g,[].concat(b));if(a===true){this.fireEvent("write",this,k,b,c,g)}this.removeFromBatch(e,k,b)}},clearModified:function(d){if(Ext.isArray(d)){for(var c=d.length-1;c>=0;c--){this.modified.splice(this.modified.indexOf(d[c]),1)}}else{this.modified.splice(this.modified.indexOf(d),1)}},reMap:function(e){if(Ext.isArray(e)){for(var h=0,g=e.length;h<g;h++){this.reMap(e[h])}}else{delete this.data.map[e._phid];this.data.map[e.id]=e;var k=this.data.keys.indexOf(e._phid);this.data.keys.splice(k,1,e.id);delete e._phid}},onCreateRecords:function(h,g,e){if(h===true){try{this.reader.realize(g,e);this.reMap(g)}catch(k){this.handleException(k);if(Ext.isArray(g)){this.onCreateRecords(h,g,e)}}}},onUpdateRecords:function(h,g,e){if(h===true){try{this.reader.update(g,e)}catch(k){this.handleException(k);if(Ext.isArray(g)){this.onUpdateRecords(h,g,e)}}}},onDestroyRecords:function(k,g,l){g=(g instanceof Ext.data.Record)?[g]:[].concat(g);for(var m=0,h=g.length;m<h;m++){this.removed.splice(this.removed.indexOf(g[m]),1)}if(k===false){for(m=g.length-1;m>=0;m--){this.insert(g[m].lastIndex,g[m])}}},handleException:function(b){Ext.handleError(b)},reload:function(b){this.load(Ext.applyIf(b||{},this.lastOptions))},loadRecords:function(v,n,q){var s,r;if(this.isDestroyed===true){return}if(!v||q===false){if(q!==false){this.fireEvent("load",this,[],n)}if(n.callback){n.callback.call(n.scope||this,[],n,false,v)}return}var w=v.records,p=v.totalRecords||w.length;if(!n||n.add!==true){if(this.pruneModifiedRecords){this.modified=[]}for(s=0,r=w.length;s<r;s++){w[s].join(this)}if(this.snapshot){this.data=this.snapshot;delete this.snapshot}this.clearData();this.data.addAll(w);this.totalLength=p;this.applySort();this.fireEvent("datachanged",this)}else{var o=[],t,u=0;for(s=0,r=w.length;s<r;++s){t=w[s];if(this.indexOfId(t.id)>-1){this.doUpdate(t)}else{o.push(t);++u}}this.totalLength=Math.max(p,this.data.length+u);this.add(o)}this.fireEvent("load",this,w,n);if(n.callback){n.callback.call(n.scope||this,w,n,true)}},loadData:function(g,e){var d=this.reader.readRecords(g);this.loadRecords(d,{add:e},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 m=this.hasMultiSort?this.multiSortInfo:this.sortInfo,n=m.direction||"ASC",o=m.sorters,s=[];if(!this.hasMultiSort){o=[{direction:n,field:m.field}]}for(var r=0,l=o.length;r<l;r++){s.push(this.createSortFunction(o[r].field,o[r].direction))}if(s.length==0){return}var p=n.toUpperCase()=="DESC"?-1:1;var q=function(e,a){var b=s[0].call(this,e,a);if(s.length>1){for(var c=1,d=s.length;c<d;c++){b=b||s[c].call(this,e,a)}}return p*b};this.data.sort(n,q);if(this.snapshot&&this.snapshot!=this.data){this.snapshot.sort(n,q)}},createSortFunction:function(k,e){e=e||"ASC";var g=e.toUpperCase()=="DESC"?-1:1;var h=this.fields.get(k).sortType;return function(c,d){var a=h(c.data[k]),b=h(d.data[k]);return g*(a>b?1:(a<b?-1:0))}},setDefaultSort:function(c,d){d=d?d.toUpperCase():"ASC";this.sortInfo={field:c,direction:d};this.sortToggle[c]=d},sort:function(c,d){if(Ext.isArray(arguments[0])){return this.multiSort.call(this,c,d)}else{return this.singleSort(c,d)}},singleSort:function(l,o){var m=this.fields.get(l);if(!m){return false}var h=m.name,k=this.sortInfo||null,n=this.sortToggle?this.sortToggle[h]:null;if(!o){if(k&&k.field==h){o=(this.sortToggle[h]||"ASC").toggle("ASC","DESC")}else{o=m.sortDir}}this.sortToggle[h]=o;this.sortInfo={field:h,direction:o};this.hasMultiSort=false;if(this.remoteSort){if(!this.load(this.lastOptions)){if(n){this.sortToggle[h]=n}if(k){this.sortInfo=k}}}else{this.applySort();this.fireEvent("datachanged",this)}return true},multiSort:function(c,d){this.hasMultiSort=true;d=d||"ASC";if(this.multiSortInfo&&d==this.multiSortInfo.direction){d=d.toggle("ASC","DESC")}this.multiSortInfo={sorters:c,direction:d};if(this.remoteSort){this.singleSort(c[0].field,c[0].direction)}else{this.applySort();this.fireEvent("datachanged",this)}},each:function(c,d){this.data.each(c,d)},getModifiedRecords:function(){return this.modified},sum:function(m,l,k){var o=this.data.items,h=0;l=l||0;k=(k||k===0)?k:o.length-1;for(var n=l;n<=k;n++){h+=(o[n].data[m]||0)}return h},createFilterFn:function(l,m,k,h,g){if(Ext.isEmpty(m,false)){return false}m=this.data.createValueMatcher(m,k,h,g);return function(a){return m.test(a.data[l])}},createMultipleFilterFn:function(b){return function(a){var l=true;for(var p=0,q=b.length;p<q;p++){var m=b[p],n=m.fn,o=m.scope;l=l&&n.call(o,a)}return l}},filter:function(q,r,u,t,w){var s;if(Ext.isObject(q)){q=[q]}if(Ext.isArray(q)){var z=[];for(var v=0,x=q.length;v<x;v++){var A=q[v],y=A.fn,p=A.scope||this;if(!Ext.isFunction(y)){y=this.createFilterFn(A.property,A.value,A.anyMatch,A.caseSensitive,A.exactMatch)}z.push({fn:y,scope:p})}s=this.createMultipleFilterFn(z)}else{s=this.createFilterFn(q,r,u,t,w)}return s?this.filterBy(s):this.clearFilter()},filterBy:function(c,d){this.snapshot=this.snapshot||this.data;this.data=this.queryBy(c,d||this);this.fireEvent("datachanged",this)},clearFilter:function(b){if(this.isFiltered()){this.data=this.snapshot;delete this.snapshot;if(b!==true){this.fireEvent("datachanged",this)}}},isFiltered:function(){return !!this.snapshot&&this.snapshot!=this.data},query:function(l,m,k,h){var g=this.createFilterFn(l,m,k,h);return g?this.queryBy(g):this.data.clone()},queryBy:function(d,e){var g=this.snapshot||this.data;return g.filterBy(d,e||this)},find:function(n,o,l,m,k){var h=this.createFilterFn(n,o,m,k);return h?this.data.findIndexBy(h,null,l):-1},findExact:function(d,e,g){return this.data.findIndexBy(function(a){return a.get(d)===e},this,g)},findBy:function(d,e,g){return this.data.findIndexBy(d,e,g)},collect:function(q,p,v){var r=(v===true&&this.snapshot)?this.snapshot.items:this.data.items;var l,d,w=[],u={};for(var t=0,s=r.length;t<s;t++){l=r[t].data[q];d=String(l);if((p||!Ext.isEmpty(l))&&!u[d]){u[d]=true;w[w.length]=l}}return w},afterEdit:function(b){if(this.modified.indexOf(b)==-1){this.modified.push(b)}this.fireEvent("update",this,b,Ext.data.Record.EDIT)},afterReject:function(b){this.modified.remove(b);this.fireEvent("update",this,b,Ext.data.Record.REJECT)},afterCommit:function(b){this.modified.remove(b);this.fireEvent("update",this,b,Ext.data.Record.COMMIT)},commitChanges:function(){var e=this.modified.slice(0),g=e.length,d;for(d=0;d<g;d++){e[d].commit()}this.modified=[];this.removed=[]},rejectChanges:function(){var h=this.modified.slice(0),k=this.removed.slice(0).reverse(),m=h.length,l=k.length,g;for(g=0;g<m;g++){h[g].reject()}for(g=0;g<l;g++){this.insert(k[g].lastIndex||0,k[g]);k[g].reject()}this.modified=[];this.removed=[]},onMetaChange:function(b){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(e){this.suspendEvents();var g=this.data.clone();this.data.add(e);this.applySort();var d=this.data.indexOf(e);this.data=g;this.resumeEvents();return d},setBaseParam:function(d,c){this.baseParams=this.baseParams||{};this.baseParams[d]=c}});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(e){if(Ext.isString(e)){e={name:e}}Ext.apply(this,e);var h=Ext.data.Types,g=this.sortType,k;if(this.type){if(Ext.isString(this.type)){this.type=Ext.data.Types[this.type.toUpperCase()]||h.AUTO}}else{this.type=h.AUTO}if(Ext.isString(g)){this.sortType=Ext.data.SortTypes[g]}else{if(Ext.isEmpty(g)){this.sortType=this.type.sortType}}if(!this.convert){this.convert=this.type.convert}},dateFormat:null,useNull:false,defaultValue:"",mapping:null,sortType:null,sortDir:"ASC",allowBlank:true});Ext.data.DataReader=function(d,c){this.meta=d;this.recordType=Ext.isArray(c)?Ext.data.Record.create(c):c;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(e,g){if(Ext.isArray(e)){for(var d=e.length-1;d>=0;d--){if(Ext.isArray(g)){this.realize(e.splice(d,1).shift(),g.splice(d,1).shift())}else{this.realize(e.splice(d,1).shift(),g)}}}else{if(Ext.isArray(g)&&g.length==1){g=g.shift()}if(!this.isData(g)){throw new Ext.data.DataReader.Error("realize",e)}e.phantom=false;e._phid=e.id;e.id=this.getId(g);e.data=g;e.commit()}},update:function(e,g){if(Ext.isArray(e)){for(var d=e.length-1;d>=0;d--){if(Ext.isArray(g)){this.update(e.splice(d,1).shift(),g.splice(d,1).shift())}else{this.update(e.splice(d,1).shift(),g)}}}else{if(Ext.isArray(g)&&g.length==1){g=g.shift()}if(this.isData(g)){e.data=Ext.apply(e.data,g)}e.commit()}},extractData:function(s,A){var t=(this instanceof Ext.data.JsonReader)?"json":"node";var y=[];if(this.isData(s)&&!(this instanceof Ext.data.XmlReader)){s=[s]}var u=this.recordType.prototype.fields,n=u.items,q=u.length,y=[];if(A===true){var r=this.recordType;for(var w=0;w<s.length;w++){var z=s[w];var v=new r(this.extractValues(z,n,q),this.getId(z));v[t]=z;y.push(v)}}else{for(var w=0;w<s.length;w++){var x=this.extractValues(s[w],n,q);x[this.meta.idProperty]=this.getId(s[w]);y.push(x)}}return y},isData:function(b){return(b&&Ext.isObject(b)&&!Ext.isEmpty(this.getId(b)))?true:false},onMetaChange:function(b){delete this.ef;this.meta=b;this.recordType=Ext.data.Record.create(b.fields);this.buildExtractors()}};Ext.data.DataReader.Error=Ext.extend(Ext.Error,{constructor:function(c,d){this.arg=d;Ext.Error.call(this,c)},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(b){Ext.apply(this,b)};Ext.data.DataWriter.prototype={writeAllFields:false,listful:false,apply:function(m,l,n,k){var o=[],h=n+"Record";if(Ext.isArray(k)){Ext.each(k,function(a){o.push(this[h](a))},this)}else{if(k instanceof Ext.data.Record){o=this[h](k)}}this.render(m,l,o)},render:Ext.emptyFn,updateRecord:Ext.emptyFn,createRecord:Ext.emptyFn,destroyRecord:Ext.emptyFn,toHash:function(l,o){var m=l.fields.map,n={},h=(this.writeAllFields===false&&l.phantom===false)?l.getChanges():l.data,k;Ext.iterate(h,function(a,b){if((k=m[a])){n[k.mapping?k.mapping:k.name]=b}});if(l.phantom){if(l.fields.containsKey(this.meta.idProperty)&&Ext.isEmpty(l.data[this.meta.idProperty])){delete n[this.meta.idProperty]}}else{n[this.meta.idProperty]=l.id}return n},toArray:function(c){var d=[];Ext.iterate(c,function(a,b){d.push({name:a,value:b})},this);return d}};Ext.data.DataProxy=function(d){d=d||{};this.api=d.api;this.url=d.url;this.restful=d.restful;this.listeners=d.listeners;this.prettyUrls=d.prettyUrls;this.addEvents("exception","beforeload","load","loadexception","beforewrite","write");Ext.data.DataProxy.superclass.constructor.call(this);try{Ext.data.Api.prepare(this)}catch(c){if(c instanceof Ext.data.Api.Error){c.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 b=Ext.data.Api.isValid(arguments[0]);if(b===true){this.api=arguments[0]}else{throw new Ext.data.Api.Error("invalid",b)}}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(b){return(this.api[b])?true:false},request:function(o,k,n,l,m,p,q){if(!this.api[o]&&!this.load){throw new Ext.data.DataProxy.Error("action-undefined",o)}n=n||{};if((o===Ext.data.Api.actions.read)?this.fireEvent("beforeload",this,n):this.fireEvent("beforewrite",this,o,k,n)!==false){this.doRequest.apply(this,arguments)}else{m.call(p||this,null,q,false)}},load:null,doRequest:function(o,k,n,l,m,p,q){this.load(n,l,m,p,q)},onRead:Ext.emptyFn,onWrite:Ext.emptyFn,buildUrl:function(l,g){g=g||null;var m=(this.conn&&this.conn.url)?this.conn.url:(this.api[l])?this.api[l].url:this.url;if(!m){throw new Ext.data.Api.Error("invalid-url",l)}var k=null;var h=m.match(/(.*)(\.json|\.xml|\.html)$/);if(h){k=h[2];m=h[1]}if((this.restful===true||this.prettyUrls===true)&&g instanceof Ext.data.Record&&!g.phantom){m+="/"+g.id}return(k===null)?m:m+k},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(c,d){this.arg=d;Ext.Error.call(this,c)},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(b){Ext.apply(this,b)};Ext.data.Request.prototype={action:undefined,rs:undefined,params:undefined,callback:Ext.emptyFn,scope:undefined,reader:undefined};Ext.data.Response=function(b){Ext.apply(this,b)};Ext.data.Response.prototype={action:undefined,success:undefined,message:undefined,data:undefined,raw:undefined,records:undefined};Ext.data.ScriptTagProxy=function(b){Ext.apply(this,b);Ext.data.ScriptTagProxy.superclass.constructor.call(this,b);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(v,u,w,t,r,q,p){var x=Ext.urlEncode(Ext.apply(w,this.extraParams));var y=this.buildUrl(v,u);if(!y){throw new Ext.data.Api.Error("invalid-url",y)}y=Ext.urlAppend(y,x);if(this.nocache){y=Ext.urlAppend(y,"_dc="+(new Date().getTime()))}var z=++Ext.data.ScriptTagProxy.TRANS_ID;var o={id:z,action:v,cb:"stcCallback"+z,scriptId:"stcScript"+z,params:w,arg:p,url:y,callback:r,scope:q,reader:t};window[o.cb]=this.createCallback(v,u,o);y+=String.format("&{0}={1}",this.callbackParam,o.cb);if(this.autoAbort!==false){this.abort()}o.timeoutId=this.handleFailure.defer(this.timeout,this,[o]);var s=document.createElement("script");s.setAttribute("src",y);s.setAttribute("type","text/javascript");s.setAttribute("id",o.scriptId);this.head.appendChild(s);this.trans=o},createCallback:function(h,e,k){var g=this;return function(a){g.trans=false;g.destroyTrans(k,true);if(h===Ext.data.Api.actions.read){g.onRead.call(g,h,k,a)}else{g.onWrite.call(g,h,k,a,e)}}},onRead:function(l,m,e){var h;try{h=m.reader.readRecords(e)}catch(k){this.fireEvent("loadexception",this,m,e,k);this.fireEvent("exception",this,"response",l,m,e,k);m.callback.call(m.scope||window,null,m.arg,false);return}if(h.success===false){this.fireEvent("loadexception",this,m,e);this.fireEvent("exception",this,"remote",l,m,e,null)}else{this.fireEvent("load",this,e,m.arg)}m.callback.call(m.scope||window,h,m.arg,h.success)},onWrite:function(m,n,p,e){var k=n.reader;try{var o=k.readResponse(m,p)}catch(l){this.fireEvent("exception",this,"response",m,n,o,l);n.callback.call(n.scope||window,null,o,false);return}if(!o.success===true){this.fireEvent("exception",this,"remote",m,n,o,e);n.callback.call(n.scope||window,null,o,false);return}this.fireEvent("write",this,m,o.data,o,e,n.arg);n.callback.call(n.scope||window,o.data,o,true)},isLoading:function(){return this.trans?true:false},abort:function(){if(this.isLoading()){this.destroyTrans(this.trans)}},destroyTrans:function(d,e){this.head.removeChild(document.getElementById(d.scriptId));clearTimeout(d.timeoutId);if(e){window[d.cb]=undefined;try{delete window[d.cb]}catch(g){}}else{window[d.cb]=function(){window[d.cb]=undefined;try{delete window[d.cb]}catch(a){}}}},handleFailure:function(b){this.trans=false;this.destroyTrans(b,false);if(b.action===Ext.data.Api.actions.read){this.fireEvent("loadexception",this,null,b.arg)}this.fireEvent("exception",this,"response",b.action,{response:null,options:b.arg});b.callback.call(b.scope||window,null,b.arg,false)},destroy:function(){this.abort();Ext.data.ScriptTagProxy.superclass.destroy.call(this)}});Ext.data.HttpProxy=function(e){Ext.data.HttpProxy.superclass.constructor.call(this,e);this.conn=e;this.conn.url=null;this.useAjax=!e||!e.events;var g=Ext.data.Api.actions;this.activeRequest={};for(var d in g){this.activeRequest[g[d]]=undefined}};Ext.extend(Ext.data.HttpProxy,Ext.data.DataProxy,{getConnection:function(){return this.useAjax?Ext.Ajax:this.conn},setUrl:function(d,c){this.conn.url=d;if(c===true){this.url=d;this.api=null;Ext.data.Api.prepare(this)}},doRequest:function(o,q,m,r,k,p,l){var n={method:(this.api[o])?this.api[o]["method"]:undefined,request:{callback:k,scope:p,arg:l},reader:r,callback:this.createCallback(o,q),scope:this};if(m.jsonData){n.jsonData=m.jsonData}else{if(m.xmlData){n.xmlData=m.xmlData}else{n.params=m||{}}}this.conn.url=this.buildUrl(o,q);if(this.useAjax){Ext.applyIf(n,this.conn);if(this.activeRequest[o]){}this.activeRequest[o]=Ext.Ajax.request(n)}else{this.conn.request(n)}this.conn.url=null},createCallback:function(c,d){return function(a,b,g){this.activeRequest[c]=undefined;if(!b){if(c===Ext.data.Api.actions.read){this.fireEvent("loadexception",this,a,g)}this.fireEvent("exception",this,"response",c,a,g);a.request.callback.call(a.request.scope,null,a.request.arg,false);return}if(c===Ext.data.Api.actions.read){this.onRead(c,a,g)}else{this.onWrite(c,a,g,d)}}},onRead:function(n,l,e){var k;try{k=l.reader.read(e)}catch(m){this.fireEvent("loadexception",this,l,e,m);this.fireEvent("exception",this,"response",n,l,e,m);l.request.callback.call(l.request.scope,null,l.request.arg,false);return}if(k.success===false){this.fireEvent("loadexception",this,l,e);var o=l.reader.readResponse(n,e);this.fireEvent("exception",this,"remote",n,l,o,null)}else{this.fireEvent("load",this,l,l.request.arg)}l.request.callback.call(l.request.scope,k,l.request.arg,k.success)},onWrite:function(n,l,p,e){var k=l.reader;var o;try{o=k.readResponse(n,p)}catch(m){this.fireEvent("exception",this,"response",n,l,p,m);l.request.callback.call(l.request.scope,null,l.request.arg,false);return}if(o.success===true){this.fireEvent("write",this,n,o.data,o,e,l.request.arg)}else{this.fireEvent("exception",this,"remote",n,l,o,e)}l.request.callback.call(l.request.scope,o.data,o,o.success)},destroy:function(){if(!this.useAjax){this.conn.abort()}else{if(this.activeRequest){var c=Ext.data.Api.actions;for(var d in c){if(this.activeRequest[c[d]]){Ext.Ajax.abort(this.activeRequest[c[d]])}}}}Ext.data.HttpProxy.superclass.destroy.call(this)}});Ext.data.MemoryProxy=function(c){var d={};d[Ext.data.Api.actions.read]=true;Ext.data.MemoryProxy.superclass.constructor.call(this,{api:d});this.data=c};Ext.extend(Ext.data.MemoryProxy,Ext.data.DataProxy,{doRequest:function(s,r,t,q,o,n,m){t=t||{};var e;try{e=q.readRecords(this.data)}catch(p){this.fireEvent("loadexception",this,null,m,p);this.fireEvent("exception",this,"response",s,m,null,p);o.call(n,null,m,false);return}o.call(n,e,m,true)}});Ext.data.Types=new function(){var b=Ext.data.SortTypes;Ext.apply(this,{stripRe:/[\$,%]/g,AUTO:{convert:function(a){return a},sortType:b.none,type:"auto"},STRING:{convert:function(a){return(a===undefined||a===null)?"":String(a)},sortType:b.asUCString,type:"string"},INT:{convert:function(a){return a!==undefined&&a!==null&&a!==""?parseInt(String(a).replace(Ext.data.Types.stripRe,""),10):(this.useNull?null:0)},sortType:b.none,type:"int"},FLOAT:{convert:function(a){return a!==undefined&&a!==null&&a!==""?parseFloat(String(a).replace(Ext.data.Types.stripRe,""),10):(this.useNull?null:0)},sortType:b.none,type:"float"},BOOL:{convert:function(a){return a===true||a==="true"||a==1},sortType:b.none,type:"bool"},DATE:{convert:function(g){var e=this.dateFormat;if(!g){return null}if(Ext.isDate(g)){return g}if(e){if(e=="timestamp"){return new Date(g*1000)}if(e=="time"){return new Date(parseInt(g,10))}return Date.parseDate(g,e)}var a=Date.parse(g);return a?new Date(a):null},sortType:b.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(b){Ext.data.JsonWriter.superclass.constructor.call(this,b)},render:function(k,h,e){if(this.encode===true){Ext.apply(k,h);k[this.meta.root]=Ext.encode(e)}else{var g=Ext.apply({},h);g[this.meta.root]=e;k.jsonData=g}},createRecord:function(b){return this.toHash(b)},updateRecord:function(b){return this.toHash(b)},destroyRecord:function(c){if(this.encodeDelete){var d={};d[this.meta.idProperty]=c.id;return d}else{return c.id}}});Ext.data.JsonReader=function(d,c){d=d||{};Ext.applyIf(d,{idProperty:"id",successProperty:"success",totalProperty:"total"});Ext.data.JsonReader.superclass.constructor.call(this,d,c||d.fields)};Ext.extend(Ext.data.JsonReader,Ext.data.DataReader,{read:function(e){var d=e.responseText;var g=Ext.decode(d);if(!g){throw {message:"JsonReader.read: Json object not found"}}return this.readRecords(g)},readResponse:function(m,h){var l=(h.responseText!==undefined)?Ext.decode(h.responseText):h;if(!l){throw new Ext.data.JsonReader.Error("response")}var k=this.getRoot(l);if(m===Ext.data.Api.actions.create){var n=Ext.isDefined(k);if(n&&Ext.isEmpty(k)){throw new Ext.data.JsonReader.Error("root-empty",this.meta.root)}else{if(!n){throw new Ext.data.JsonReader.Error("root-undefined-response",this.meta.root)}}}var o=new Ext.data.Response({action:m,success:this.getSuccess(l),data:(k)?this.extractData(k,false):[],message:this.getMessage(l),raw:l});if(Ext.isEmpty(o.success)){throw new Ext.data.JsonReader.Error("successProperty-response",this.meta.successProperty)}return o},readRecords:function(x){this.jsonData=x;if(x.metaData){this.onMetaChange(x.metaData)}var c=this.meta,s=this.recordType,w=s.prototype.fields,o=w.items,r=w.length,q;var t=this.getRoot(x),u=t.length,v=u,p=true;if(c.totalProperty){q=parseInt(this.getTotal(x),10);if(!isNaN(q)){v=q}}if(c.successProperty){q=this.getSuccess(x);if(q===false||q==="false"){p=false}}return{success:p,records:this.extractData(t,true),totalRecords:v}},buildExtractors:function(){if(this.ef){return}var g=this.meta,p=this.recordType,q=p.prototype.fields,n=q.items,o=q.length;if(g.totalProperty){this.getTotal=this.createAccessor(g.totalProperty)}if(g.successProperty){this.getSuccess=this.createAccessor(g.successProperty)}if(g.messageProperty){this.getMessage=this.createAccessor(g.messageProperty)}this.getRoot=g.root?this.createAccessor(g.root):function(a){return a};if(g.id||g.idProperty){var r=this.createAccessor(g.id||g.idProperty);this.getId=function(a){var b=r(a);return(b===undefined||b==="")?null:b}}else{this.getId=function(){return null}}var s=[];for(var t=0;t<o;t++){q=n[t];var u=(q.mapping!==undefined&&q.mapping!==null)?q.mapping:q.name;s.push(this.createAccessor(u))}this.ef=s},simpleAccess:function(c,d){return c[d]},createAccessor:function(){var b=/[\[\.]/;return function(d){if(Ext.isEmpty(d)){return Ext.emptyFn}if(Ext.isFunction(d)){return d}var a=String(d).search(b);if(a>=0){return new Function("obj","return obj"+(a>0?".":"")+d)}return function(c){return c[d]}}}(),extractValues:function(m,p,l){var n,q={};for(var o=0;o<l;o++){n=p[o];var k=this.ef[o](m);q[n.name]=n.convert((k!==undefined)?k:n.defaultValue,m)}return q}});Ext.data.JsonReader.Error=Ext.extend(Ext.Error,{constructor:function(c,d){this.arg=d;Ext.Error.call(this,c)},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,N=J?Ext.num(J.idIndex,J.id):null,P=this.recordType,E=P.prototype.fields,k=[],M=true,L;var v=this.getRoot(D);for(var n=0,H=v.length;n<H;n++){var C=v[n],Q={},G=((N||N===0)&&C[N]!==undefined&&C[N]!==""?C[N]:null);for(var o=0,I=E.length;o<I;o++){var F=E.items[o],s=F.mapping!==undefined&&F.mapping!==null?F.mapping:o;L=C[s]!==undefined?C[s]:F.defaultValue;L=F.convert(L,C);Q[F.name]=L}var O=new P(Q,G);O.json=C;k[k.length]=O}var K=k.length;if(J.totalProperty){L=parseInt(this.getTotal(D),10);if(!isNaN(L)){K=L}}if(J.successProperty){L=this.getSuccess(D);if(L===false||L==="false"){M=false}}return{success:M,records:k,totalRecords:K}}});Ext.data.ArrayStore=Ext.extend(Ext.data.Store,{constructor:function(b){Ext.data.ArrayStore.superclass.constructor.call(this,Ext.apply(b,{reader:new Ext.data.ArrayReader(b)}))},loadData:function(k,g){if(this.expandData===true){var l=[];for(var m=0,h=k.length;m<h;m++){l[l.length]=[k[m]]}k=l}Ext.data.ArrayStore.superclass.loadData.call(this,k,g)}});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(b){Ext.data.JsonStore.superclass.constructor.call(this,Ext.apply(b,{reader:new Ext.data.JsonReader(b)}))}});Ext.reg("jsonstore",Ext.data.JsonStore);Ext.data.XmlWriter=function(b){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="."><\u003fxml version="{version}" encoding="{encoding}"\u003f><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(d,g,e){g=this.toArray(g);d.xmlData=this.tpl.applyTemplate({version:this.xmlVersion,encoding:this.xmlEncoding,documentRoot:(g.length>0||this.forceDocumentRoot===true)?this.documentRoot:false,record:this.meta.record,root:this.root,baseParams:g,records:(Ext.isArray(e[0]))?e:[e]})},createRecord:function(b){return this.toArray(this.toHash(b))},updateRecord:function(b){return this.toArray(this.toHash(b))},destroyRecord:function(c){var d={};d[this.meta.idProperty]=c.id;return this.toArray(d)}});Ext.data.XmlReader=function(d,c){d=d||{};Ext.applyIf(d,{idProperty:d.idProperty||d.idPath||d.id,successProperty:d.successProperty||d.success});Ext.data.XmlReader.superclass.constructor.call(this,d,c||d.fields)};Ext.extend(Ext.data.XmlReader,Ext.data.DataReader,{read:function(d){var c=d.responseXML;if(!c){throw {message:"XmlReader.read: XML Document not available"}}return this.readRecords(c)},readRecords:function(n){this.xmlData=n;var k=n.documentElement||n,o=Ext.DomQuery,l=0,m=true;if(this.meta.totalProperty){l=this.getTotal(k,0)}if(this.meta.successProperty){m=this.getSuccess(k)}var h=this.extractData(o.select(this.meta.record,k),true);return{success:m,records:h,totalRecords:l||h.length}},readResponse:function(n,k){var o=Ext.DomQuery,m=k.responseXML,l=m.documentElement||m;var q=new Ext.data.Response({action:n,success:this.getSuccess(l),message:this.getMessage(l),data:this.extractData(o.select(this.meta.record,l)||o.select(this.meta.root,l),false),raw:m});if(Ext.isEmpty(q.success)){throw new Ext.data.DataReader.Error("successProperty-response",this.meta.successProperty)}if(n===Ext.data.Api.actions.create){var p=Ext.isDefined(q.data);if(p&&Ext.isEmpty(q.data)){throw new Ext.data.JsonReader.Error("root-empty",this.meta.root)}else{if(!p){throw new Ext.data.JsonReader.Error("root-undefined-response",this.meta.root)}}}return q},getSuccess:function(){return true},buildExtractors:function(){if(this.ef){return}var g=this.meta,p=this.recordType,q=p.prototype.fields,n=q.items,o=q.length;if(g.totalProperty){this.getTotal=this.createAccessor(g.totalProperty)}if(g.successProperty){this.getSuccess=this.createAccessor(g.successProperty)}if(g.messageProperty){this.getMessage=this.createAccessor(g.messageProperty)}this.getRoot=function(a){return(!Ext.isEmpty(a[this.meta.record]))?a[this.meta.record]:a[this.meta.root]};if(g.idPath||g.idProperty){var r=this.createAccessor(g.idPath||g.idProperty);this.getId=function(b){var a=r(b)||b.id;return(a===undefined||a==="")?null:a}}else{this.getId=function(){return null}}var s=[];for(var t=0;t<o;t++){q=n[t];var u=(q.mapping!==undefined&&q.mapping!==null)?q.mapping:q.name;s.push(this.createAccessor(u))}this.ef=s},createAccessor:function(){var b=Ext.DomQuery;return function(a){if(Ext.isFunction(a)){return a}switch(a){case this.meta.totalProperty:return function(g,e){return b.selectNumber(a,g,e)};break;case this.meta.successProperty:return function(l,k){var m=b.selectValue(a,l,true);var h=m!==false&&m!=="false";return h};break;default:return function(g,e){return b.selectValue(a,g,e)};break}}}(),extractValues:function(m,p,l){var n,q={};for(var o=0;o<l;o++){n=p[o];var k=this.ef[o](m);q[n.name]=n.convert((k!==undefined)?k:n.defaultValue,m)}return q}});Ext.data.XmlStore=Ext.extend(Ext.data.Store,{constructor:function(b){Ext.data.XmlStore.superclass.constructor.call(this,Ext.apply(b,{reader:new Ext.data.XmlReader(b)}))}});Ext.reg("xmlstore",Ext.data.XmlStore);Ext.data.GroupingStore=Ext.extend(Ext.data.Store,{constructor:function(l){l=l||{};this.hasMultiSort=true;this.multiSortInfo=this.multiSortInfo||{sorters:[]};var k=this.multiSortInfo.sorters,m=l.groupField||this.groupField,g=l.sortInfo||this.sortInfo,h=l.groupDir||this.groupDir;if(m){k.push({field:m,direction:h})}if(g){k.push(g)}Ext.data.GroupingStore.superclass.constructor.call(this,l);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 b=this.lastOptions;if(b&&b.params){delete b.params.groupBy;delete b.params.groupDir}this.reload()}else{this.sort();this.fireEvent("datachanged",this)}},groupBy:function(k,h,l){l=l?(String(l).toUpperCase()=="DESC"?"DESC":"ASC"):this.groupDir;if(this.groupField==k&&this.groupDir==l&&!h){return}var m=this.multiSortInfo.sorters;if(m.length>0&&m[0].field==this.groupField){m.shift()}this.groupField=k;this.groupDir=l;this.applyGroupField();var g=function(){this.fireEvent("groupchange",this,this.getGroupState())};if(this.groupOnSort){this.sort(k,l);g.call(this);return}if(this.remoteGroup){this.on("load",g,this,{single:true});this.reload()}else{this.sort(m);g.call(this)}},sort:function(m,q){if(this.remoteSort){return Ext.data.GroupingStore.superclass.sort.call(this,m,q)}var n=[];if(Ext.isArray(arguments[0])){n=arguments[0]}else{if(m==undefined){n=this.sortInfo?[this.sortInfo]:[]}else{var o=this.fields.get(m);if(!o){return false}var k=o.name,l=this.sortInfo||null,p=this.sortToggle?this.sortToggle[k]:null;if(!q){if(l&&l.field==k){q=(this.sortToggle[k]||"ASC").toggle("ASC","DESC")}else{q=o.sortDir}}this.sortToggle[k]=q;this.sortInfo={field:k,direction:q};n=[this.sortInfo]}}if(this.groupField){n.unshift({direction:this.groupDir,field:this.groupField})}return this.multiSort.call(this,n,q)},applyGroupField:function(){if(this.remoteGroup){if(!this.baseParams){this.baseParams={}}Ext.apply(this.baseParams,{groupBy:this.groupField,groupDir:this.groupDir});var b=this.lastOptions;if(b&&b.params){b.params.groupDir=this.groupDir;delete b.params.groupBy}}},applyGrouping:function(b){if(this.groupField!==false){this.groupBy(this.groupField,true,this.groupDir);return true}else{if(b===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(b){Ext.apply(this,b);if(typeof this.paramOrder=="string"){this.paramOrder=this.paramOrder.split(/[\s,|]/)}Ext.data.DirectProxy.superclass.constructor.call(this,b)};Ext.extend(Ext.data.DirectProxy,Ext.data.DataProxy,{paramOrder:undefined,paramsAsHash:true,directFn:undefined,doRequest:function(z,y,A,w,s,r,p){var t=[],u=this.api[z]||this.directFn;switch(z){case Ext.data.Api.actions.create:t.push(A.jsonData);break;case Ext.data.Api.actions.read:if(u.directCfg.method.len>0){if(this.paramOrder){for(var x=0,v=this.paramOrder.length;x<v;x++){t.push(A[this.paramOrder[x]])}}else{if(this.paramsAsHash){t.push(A)}}}break;case Ext.data.Api.actions.update:t.push(A.jsonData);break;case Ext.data.Api.actions.destroy:t.push(A.jsonData);break}var q={params:A||{},request:{callback:s,scope:r,arg:p},reader:w};t.push(this.createCallback(z,y,q),this);u.apply(window,t)},createCallback:function(h,g,e){var k=this;return function(b,a){if(!a.status){if(h===Ext.data.Api.actions.read){k.fireEvent("loadexception",k,e,a,null)}k.fireEvent("exception",k,"remote",h,e,a,null);e.request.callback.call(e.request.scope,null,e.request.arg,false);return}if(h===Ext.data.Api.actions.read){k.onRead(h,e,b,a)}else{k.onWrite(h,e,b,a,g)}}},onRead:function(l,m,k,n){var h;try{h=m.reader.readRecords(k)}catch(o){this.fireEvent("loadexception",this,m,n,o);this.fireEvent("exception",this,"response",l,m,n,o);m.request.callback.call(m.request.scope,null,m.request.arg,false);return}this.fireEvent("load",this,n,m.request.arg);m.request.callback.call(m.request.scope,h,m.request.arg,true)},onWrite:function(n,p,l,q,k){var o=p.reader.extractData(p.reader.getRoot(l),false);var m=p.reader.getSuccess(l);m=(m!==false);if(m){this.fireEvent("write",this,n,o,q,k,p.request.arg)}else{this.fireEvent("exception",this,"remote",n,p,l,k)}p.request.callback.call(p.request.scope,o,q,m)}});Ext.data.DirectStore=Ext.extend(Ext.data.Store,{constructor:function(d){var c=Ext.apply({},{batchTransactions:false},d);Ext.data.DirectStore.superclass.constructor.call(this,Ext.apply(c,{proxy:Ext.isDefined(c.proxy)?c.proxy:new Ext.data.DirectProxy(Ext.copyTo({},c,"paramOrder,paramsAsHash,directFn,api")),reader:(!Ext.isDefined(c.reader)&&c.fields)?new Ext.data.JsonReader(Ext.copyTo({},c,"totalProperty,root,idProperty"),c.fields):c.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(g){var k=arguments;if(k.length>1){for(var h=0,a=k.length;h<a;h++){this.addProvider(k[h])}return}if(!g.events){g=new Ext.Direct.PROVIDERS[g.type](g)}g.id=g.id||Ext.id();this.providers[g.id]=g;g.on("data",this.onProviderData,this);g.on("exception",this.onProviderException,this);if(!g.isConnected()){g.connect()}return g},getProvider:function(b){return this.providers[b]},removeProvider:function(c){var d=c.id?c:this.providers[c];d.un("data",this.onProviderData,this);d.un("exception",this.onProviderException,this);delete this.providers[d.id];return d},addTransaction:function(b){this.transactions[b.tid]=b;return b},removeTransaction:function(b){delete this.transactions[b.tid||b];return b},getTransaction:function(b){return this.transactions[b.tid||b]},onProviderData:function(h,k){if(Ext.isArray(k)){for(var e=0,g=k.length;e<g;e++){this.onProviderData(h,k[e])}return}if(k.name&&k.name!="event"&&k.name!="exception"){this.fireEvent(k.name,k)}else{if(k.type=="exception"){this.fireEvent("exception",k)}}this.fireEvent("event",k,h)},createEvent:function(d,c){return new Ext.Direct.eventTypes[d.type](Ext.apply(d,c))}});Ext.Direct=new Ext.Direct();Ext.Direct.TID=1;Ext.Direct.PROVIDERS={};Ext.Direct.Transaction=function(b){Ext.apply(this,b);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(b){Ext.apply(this,b)};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(b){Ext.apply(this,b);this.addEvents("connect","disconnect","data","exception");Ext.direct.Provider.superclass.constructor.call(this,b)},isConnected:function(){return false},connect:Ext.emptyFn,disconnect:Ext.emptyFn});Ext.direct.JsonProvider=Ext.extend(Ext.direct.Provider,{parseResponse:function(b){if(!Ext.isEmpty(b.responseText)){if(typeof b.responseText=="object"){return b.responseText}return Ext.decode(b.responseText)}return null},getEvents:function(m){var o=null;try{o=this.parseResponse(m)}catch(n){var p=new Ext.Direct.ExceptionEvent({data:n,xhr:m,code:Ext.Direct.exceptions.PARSE,message:"Error parsing json response: \n\n "+o});return[p]}var q=[];if(Ext.isArray(o)){for(var e=0,l=o.length;e<l;e++){q.push(Ext.Direct.createEvent(o[e]))}}else{q.push(Ext.Direct.createEvent(o))}return q}});Ext.direct.PollingProvider=Ext.extend(Ext.direct.JsonProvider,{priority:3,interval:3000,constructor:function(b){Ext.direct.PollingProvider.superclass.constructor.call(this,b);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(p,m,n){if(m){var q=this.getEvents(n);for(var e=0,l=q.length;e<l;e++){var o=q[e];this.fireEvent("data",this,o)}}else{var o=new Ext.Direct.ExceptionEvent({data:o,code:Ext.Direct.exceptions.TRANSPORT,message:"Unable to connect to the server.",xhr:n});this.fireEvent("data",this,o)}}});Ext.Direct.PROVIDERS.polling=Ext.direct.PollingProvider;Ext.direct.RemotingProvider=Ext.extend(Ext.direct.JsonProvider,{enableBuffer:10,maxRetries:1,timeout:undefined,constructor:function(b){Ext.direct.RemotingProvider.superclass.constructor.call(this,b);this.addEvents("beforecall","call");this.namespace=(Ext.isString(this.namespace))?Ext.ns(this.namespace):this.namespace||window;this.transactions={};this.callBuffer=[]},initAPI:function(){var n=this.actions;for(var m in n){var q=this.namespace[m]||(this.namespace[m]={}),p=n[m];for(var o=0,c=p.length;o<c;o++){var l=p[o];q[l.name]=this.createMethod(m,l)}}},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(u,p,o){if(p){var n=this.getEvents(o);for(var t=0,s=n.length;t<s;t++){var r=n[t],e=this.getTransaction(r);this.fireEvent("data",this,r);if(e){this.doCallback(e,r,true);Ext.Direct.removeTransaction(e)}}}else{var q=[].concat(u.ts);for(var t=0,s=q.length;t<s;t++){var e=this.getTransaction(q[t]);if(e&&e.retryCount<this.maxRetries){e.retry()}else{var r=new Ext.Direct.ExceptionEvent({data:r,transaction:e,code:Ext.Direct.exceptions.TRANSPORT,message:"Unable to connect to the server.",xhr:o});this.fireEvent("data",this,r);if(e){this.doCallback(e,r,false);Ext.Direct.removeTransaction(e)}}}}},getCallData:function(b){return{action:b.action,method:b.method,data:b.data,type:"rpc",tid:b.tid}},doSend:function(n){var l={url:this.url,callback:this.onData,scope:this,ts:n,timeout:this.timeout},h;if(Ext.isArray(n)){h=[];for(var o=0,k=n.length;o<k;o++){h.push(this.getCallData(
