Ext={version:"3.0"};window.undefined=window.undefined;Ext.apply=function(e,g,d){if(d){Ext.apply(e,d)}if(e&&g&&typeof g=="object"){for(var b in g){e[b]=g[b]}}return e};(function(){var g=0,r=navigator.userAgent.toLowerCase(),x=function(e){return e.test(r)},l=document.compatMode=="CSS1Compat",z=x(/opera/),i=x(/chrome/),s=x(/webkit/),v=!i&&x(/safari/),b=v&&x(/version\/3/),A=v&&x(/version\/4/),q=!z&&x(/msie/),p=q&&x(/msie 7/),o=q&&x(/msie 8/),n=!s&&x(/gecko/),c=n&&x(/rv:1\.9/),t=q&&!l,y=x(/windows|win32/),k=x(/macintosh|mac os x/),j=x(/adobeair/),m=x(/linux/),d=/^https/i.test(window.location.protocol);if(q&&!p){try{document.execCommand("BackgroundImageCache",false,true)}catch(u){}}Ext.apply(Ext,{isStrict:l,isSecure:d,isReady:false,enableGarbageCollector:true,enableListenerCollection:false,applyIf:function(B,C){if(B){for(var e in C){if(Ext.isEmpty(B[e])){B[e]=C[e]}}}return B},id:function(e,B){return(e=Ext.getDom(e)||{}).id=e.id||(B||"ext-gen")+(++g)},extend:function(){var B=function(D){for(var C in D){this[C]=D[C]}};var e=Object.prototype.constructor;return function(I,E,H){if(Ext.isObject(E)){H=E;E=I;I=H.constructor!=e?H.constructor:function(){E.apply(this,arguments)}}var D=function(){},G,C=E.prototype;D.prototype=C;G=I.prototype=new D();G.constructor=I;I.superclass=C;if(C.constructor==e){C.constructor=E}I.override=function(F){Ext.override(I,F)};G.superclass=G.supr=(function(){return C});G.override=B;Ext.override(I,H);I.extend=function(F){Ext.extend(I,F)};return I}}(),override:function(e,C){if(C){var B=e.prototype;Ext.apply(B,C);if(Ext.isIE&&C.toString!=e.toString){B.toString=C.toString}}},namespace:function(){var B,e;Ext.each(arguments,function(C){e=C.split(".");B=window[e[0]]=window[e[0]]||{};Ext.each(e.slice(1),function(D){B=B[D]=B[D]||{}})});return B},urlEncode:function(F,E){var B=[],C,D=encodeURIComponent;for(C in F){Ext.each(F[C]||C,function(G,e){B.push("&",D(C),"=",G!=C?D(G):"")})}if(!E){B.shift();E=""}return E+B.join("")},urlDecode:function(C,B){var F={},E=C.split("&"),G=decodeURIComponent,e,D;Ext.each(E,function(H){H=H.split("=");e=G(H[0]);D=G(H[1]);F[e]=B||!F[e]?D:[].concat(F[e]).concat(D)});return F},toArray:function(){return q?function(e,D,B,C){C=[];Ext.each(e,function(E){C.push(E)});return C.slice(D||0,B||C.length)}:function(e,C,B){return Array.prototype.slice.call(e,C||0,B||e.length)}}(),each:function(E,D,C){if(Ext.isEmpty(E,true)){return}if(typeof E.length=="undefined"||typeof E=="string"){E=[E]}for(var B=0,e=E.length;B<e;B++){if(D.call(C||E[B],E[B],B,E)===false){return B}}},getDom:function(e){if(!e||!document){return null}return e.dom?e.dom:(typeof e=="string"?document.getElementById(e):e)},getBody:function(){return Ext.get(document.body||document.documentElement)},removeNode:q?function(){var e;return function(B){if(B&&B.tagName!="BODY"){e=e||document.createElement("div");e.appendChild(B);e.innerHTML=""}}}():function(e){if(e&&e.parentNode&&e.tagName!="BODY"){e.parentNode.removeChild(e)}},isEmpty:function(B,e){return B===null||B===undefined||((Ext.isArray(B)&&!B.length))||(!e?B==="":false)},isArray:function(e){return Object.prototype.toString.apply(e)==="[object Array]"},isObject:function(e){return e&&typeof e=="object"},isPrimitive:function(e){var B=typeof e;return B=="string"||B=="number"||B=="boolean"},isFunction:function(e){return typeof e=="function"},isOpera:z,isWebKit:s,isChrome:i,isSafari:v,isSafari3:b,isSafari4:A,isSafari2:v&&!b,isIE:q,isIE6:q&&!p&&!o,isIE7:p,isIE8:o,isGecko:n,isGecko2:n&&!c,isGecko3:c,isBorderBox:t,isLinux:m,isWindows:y,isMac:k,isAir:j});Ext.ns=Ext.namespace})();Ext.ns("Ext","Ext.util","Ext.lib","Ext.data");Ext.apply(Function.prototype,{createInterceptor:function(c,b){var d=this;return !Ext.isFunction(c)?this:function(){var g=this,e=arguments;c.target=g;c.method=d;return(c.apply(b||g||window,e)!==false)?d.apply(g||window,e):null}},createCallback:function(){var b=arguments,c=this;return function(){return c.apply(window,b)}},createDelegate:function(d,c,b){var e=this;return function(){var i=c||arguments;if(b===true){i=Array.prototype.slice.call(arguments,0);i=i.concat(c)}else{if(typeof b=="number"){i=Array.prototype.slice.call(arguments,0);var g=[b,0].concat(c);Array.prototype.splice.apply(i,g)}}return e.apply(d||window,i)}},defer:function(d,g,c,b){var e=this.createDelegate(g,c,b);if(d){return setTimeout(e,d)}e();return 0}});Ext.applyIf(String,{format:function(c){var b=Ext.toArray(arguments,1);return c.replace(/\{(\d+)\}/g,function(d,e){return b[e]})}});Ext.applyIf(Array.prototype,{indexOf:function(d){for(var c=0,b=this.length;c<b;c++){if(this[c]==d){return c}}return -1},remove:function(c){var b=this.indexOf(c);if(b!=-1){this.splice(b,1)}return this}});Ext.util.TaskRunner=function(g){g=g||10;var i=[],b=[],c=0,j=false,e=function(){j=false;clearInterval(c);c=0},k=function(){if(!j){j=true;c=setInterval(l,g)}},d=function(m){b.push(m);if(m.onStop){m.onStop.apply(m.scope||m)}},l=function(){var o=b.length,q=new Date().getTime();if(o>0){for(var s=0;s<o;s++){i.remove(b[s])}b=[];if(i.length<1){e();return}}for(var s=0,r,n,p,m=i.length;s<m;++s){r=i[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){d(r);return}}if(r.duration&&r.duration<=(q-r.taskStartTime)){d(r)}}};this.start=function(m){i.push(m);m.taskStartTime=new Date().getTime();m.taskRunTime=0;m.taskRunCount=0;k();return m};this.stop=function(m){d(m);return m};this.stopAll=function(){e();for(var n=0,m=i.length;n<m;n++){if(i[n].onStop){i[n].onStop()}}i=[];b=[]}};Ext.TaskMgr=new Ext.util.TaskRunner();(function(){var c;function d(e){if(!c){c=new Ext.Element.Flyweight()}c.dom=e;return c}(function(){var i=document,e=i.compatMode=="CSS1Compat",g=Math.max,j=parseInt;Ext.lib.Dom={isAncestor:function(l,m){var k=false;l=Ext.getDom(l);m=Ext.getDom(m);if(l&&m){if(l.contains){return l.contains(m)}else{if(l.compareDocumentPosition){return !!(l.compareDocumentPosition(m)&16)}else{while(m=m.parentNode){k=m==l||k}}}}return k},getViewWidth:function(k){return k?this.getDocumentWidth():this.getViewportWidth()},getViewHeight:function(k){return k?this.getDocumentHeight():this.getViewportHeight()},getDocumentHeight:function(){return g(!e?i.body.scrollHeight:i.documentElement.scrollHeight,this.getViewportHeight())},getDocumentWidth:function(){return g(!e?i.body.scrollWidth:i.documentElement.scrollWidth,this.getViewportWidth())},getViewportHeight:function(){return Ext.isIE?(Ext.isStrict?i.documentElement.clientHeight:i.body.clientHeight):self.innerHeight},getViewportWidth:function(){return !Ext.isStrict&&!Ext.isOpera?i.body.clientWidth:Ext.isIE?i.documentElement.clientWidth:self.innerWidth},getY:function(k){return this.getXY(k)[1]},getX:function(k){return this.getXY(k)[0]},getXY:function(m){var l,s,u,A,n,o,z=0,t=0,v,k,q=(i.body||i.documentElement),r=[0,0];m=Ext.getDom(m);if(m!=q){if(m.getBoundingClientRect){u=m.getBoundingClientRect();v=d(document).getScroll();r=[u.left+v.left,u.top+v.top]}else{l=m;k=d(m).isStyle("position","absolute");while(l){s=d(l);z+=l.offsetLeft;t+=l.offsetTop;k=k||s.isStyle("position","absolute");if(Ext.isGecko){t+=A=j(s.getStyle("borderTopWidth"),10)||0;z+=n=j(s.getStyle("borderLeftWidth"),10)||0;if(l!=m&&!s.isStyle("overflow","visible")){z+=n;t+=A}}l=l.offsetParent}if(Ext.isSafari&&k){z-=q.offsetLeft;t-=q.offsetTop}if(Ext.isGecko&&!k){o=d(q);z+=j(o.getStyle("borderLeftWidth"),10)||0;t+=j(o.getStyle("borderTopWidth"),10)||0}l=m.parentNode;while(l&&l!=q){if(!Ext.isOpera||(l.tagName!="TR"&&!d(l).isStyle("display","inline"))){z-=l.scrollLeft;t-=l.scrollTop}l=l.parentNode}r=[z,t]}}return r},setXY:function(l,m){(l=Ext.fly(l,"_setXY")).position();var n=l.translatePoints(m),k=l.dom.style,o;for(o in n){if(!isNaN(n[o])){k[o]=n[o]+"px"}}},setX:function(l,k){this.setXY(l,[k,false])},setY:function(k,l){this.setXY(k,[false,l])}}})();Ext.lib.Event=function(){var y=false,v=[],i=[],C=0,r=[],e,E=false,m=window,H=document,n=200,t=20,D=0,s=1,k=2,o=3,u=3,z=4,g=function(){var I;if(m.addEventListener){I=function(M,K,L,J){if(K=="mouseenter"){L=L.createInterceptor(q);M.addEventListener("mouseover",L,(J))}else{if(K=="mouseleave"){L=L.createInterceptor(q);M.addEventListener("mouseout",L,(J))}else{M.addEventListener(K,L,(J))}}return L}}else{if(m.attachEvent){I=function(M,K,L,J){M.attachEvent("on"+K,L);return L}}else{I=function(){}}}return I}(),j=function(){var I;if(m.removeEventListener){I=function(M,K,L,J){if(K=="mouseenter"){K="mouseover"}else{if(K=="mouseleave"){K="mouseout"}}M.removeEventListener(K,L,(J))}}else{if(m.detachEvent){I=function(L,J,K){L.detachEvent("on"+J,K)}}else{I=function(){}}}return I}();function q(K){var J=K.relatedTarget,I=Object.prototype.toString.apply(J)=="[object XULElement]";if(!J){return false}return(!I&&J!=this&&this.tag!="document"&&!x(this,J))}function x(I,K){while(K){if(K===I){return true}try{K=K.parentNode}catch(J){return false}if(K&&(K.nodeType!=1)){K=null}}return false}function B(L,I,K){var J=-1;Ext.each(v,function(M,N){if(M&&M[k]==K&&M[D]==L&&M[s]==I){J=N}});return J}function F(){var I=false,L=[],J,K=!y||(C>0);if(!E){E=true;Ext.each(r,function(N,O,M){if(N&&(J=H.getElementById(N.id))){if(!N.checkReady||y||J.nextSibling||(H&&H.body)){J=N.override?(N.override===true?N.obj:N.override):J;N.fn.call(J,N.obj);r[O]=null}else{L.push(item)}}});C=(L.length==0)?0:C-1;if(K){p()}else{clearInterval(e);e=null}I=!(E=false)}return I}function p(){if(!Ext.isEmpty(e)){var I=function(){F()};e=setInterval(I,A.POLL_INTERVAL)}}function G(){var I=Ext.get(H).getScroll();return[I.top,I.top]}function l(I,J){I=I.browserEvent||I;var K=I["page"+J];if(!K&&0!=K){K=I["client"+J]||0;if(Ext.isIE){K+=G()[J=="X"?0:1]}}return K}var A={onAvailable:function(K,I,L,J){r.push({id:K,fn:I,obj:L,override:J,checkReady:false});C=this.POLL_RETRYS;p()},addListener:function(L,I,K){var J;L=Ext.getDom(L);if(L&&K){if("unload"==I){J=!!(i[i.length]=[L,I,K])}else{v.push([L,I,K,J=g(L,I,K,false)])}}return !!J},removeListener:function(N,J,M){var L=false,K,I;N=Ext.getDom(N);if(!M){L=this.purgeElement(N,false,J)}else{if("unload"==J){Ext.each(i,function(P,Q,O){if(P&&P[0]==N&&P[1]==evantName&&P[2]==M){i.splice(Q,1);L=true}})}else{K=arguments[3]||B(N,J,M);I=v[K];if(N&&I){j(N,J,I[o],false);I[o]=I[k]=null;v.splice(K,1);L=true}}}return L},getTarget:function(I){I=I.browserEvent||I;return this.resolveTextNode(I.target||I.srcElement)},resolveTextNode:function(I){return Ext.isSafari&&I&&3==I.nodeType?I.parentNode:I},getPageX:function(I){return l(I,"X")},getPageY:function(I){return l(I,"Y")},getXY:function(I){return[this.getPageX(I),this.getPageY(I)]},getRelatedTarget:function(I){I=I.browserEvent||I;return this.resolveTextNode(I.relatedTarget||(I.type=="mouseout"?I.toElement:I.type=="mouseover"?I.fromElement:null))},stopEvent:function(I){this.stopPropagation(I);this.preventDefault(I)},stopPropagation:function(I){I=I.browserEvent||I;if(I.stopPropagation){I.stopPropagation()}else{I.cancelBubble=true}},preventDefault:function(I){I=I.browserEvent||I;if(I.preventDefault){I.preventDefault()}else{I.returnValue=false}},getEvent:function(I){I=I||m.event;if(!I){var J=this.getEvent.caller;while(J){I=J.arguments[0];if(I&&Event==I.constructor){break}J=J.caller}}return I},getCharCode:function(I){I=I.browserEvent||I;return I.charCode||I.keyCode||0},_load:function(J){y=true;var I=Ext.lib.Event;if(Ext.isIE){j(m,"load",I._load)}},purgeElement:function(J,L,I){var K=this;Ext.each(K.getListeners(J,I),function(M){if(M){K.removeListener(J,M.type,M.fn)}});if(L&&J&&J.childNodes){Ext.each(J.childNodes,function(M){K.purgeElement(M,L,I)})}},getListeners:function(L,J){var M=this,K=[],I=[v,i];if(J){I.splice(J=="unload"?0:1,1)}else{I=I[0].concat(I[1])}Ext.each(I,function(N,O){if(N&&N[M.EL]==L&&(!J||J==N[M.type])){K.push({type:N[s],fn:N[k],obj:N[u],adjust:N[z],index:O})}});return K.length?K:null},_unload:function(P){var O=Ext.lib.Event,M,L,J,I,K,N;Ext.each(i,function(Q){if(Q){N=Q[z]?(Q[z]===true?Q[u]:Q[z]):m;Q[k].call(N,O.getEvent(P),Q[u])}});i=null;if(v&&(L=v.length)){while(L){if(J=v[K=--L]){O.removeListener(J[D],J[s],J[k],K)}}}j(m,"unload",O._unload)}};A.on=A.addListener;A.un=A.removeListener;if(H&&H.body){A._load()}else{g(m,"load",A._load)}g(m,"unload",A._unload);F();return A}();Ext.lib.Ajax=function(){var i=["MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];function j(t){var s=t.conn,u;function r(v,x){for(u in x){if(x.hasOwnProperty(u)){v.setRequestHeader(u,x[u])}}}if(m.defaultHeaders){r(s,m.defaultHeaders)}if(m.headers){r(s,m.headers);m.headers=null}}function e(t,s,r){return{tId:t,status:r?-1:0,statusText:r?"transaction aborted":"communication failure",argument:s}}function k(r,s){(m.headers=m.headers||{})[r]=s}function p(x,u){var r={},s,t=x.conn;try{s=x.conn.getAllResponseHeaders();Ext.each(s.split("\n"),function(y){var z=y.split(":");r[z[0]]=z[1]})}catch(v){}return{tId:x.tId,status:t.status,statusText:t.statusText,getResponseHeader:r,getAllResponseHeaders:s,responseText:t.responseText,responseXML:t.responseXML,argument:u}}function g(v,x,s){var r=v.conn.status,u,t;if(x){u=r||13030;if(u>=200&&u<300){t=p(v,x.argument);if(x.success){x.success.call(x.scope,t)}}else{if([12002,12029,12030,12031,12152,13030].indexOf(u)>-1){t=e(v.tId,x.argument,(s?s:false));if(x.failure){x.failure.call(x.scope,t)}}else{t=p(v,x.argument);if(x.failure){x.failure.call(x.scope,t)}}}}v=v.conn=t=null}function o(t,x){x=x||{};var r=t.conn,v=t.tId,s=m.poll,u=x.timeout||null;if(u){m.timeout[v]=setTimeout(function(){m.abort(t,x,true)},u)}s[v]=setInterval(function(){if(r&&r.readyState==4){clearInterval(s[v]);s[v]=null;if(u){clearTimeout(m.timeout[v]);m.timeout[v]=null}g(t,x)}},m.pollInterval)}function l(v,s,u,r){var t=n()||null;if(t){t.conn.open(v,s,true);if(m.useDefaultXhrHeader){k("X-Requested-With",m.defaultXhrHeader)}if(r&&m.useDefaultHeader&&(!m.headers||!m.headers["Content-Type"])){k("Content-Type",m.defaultPostHeader)}if(m.defaultHeaders||m.headers){j(t)}o(t,u);t.conn.send(r||null)}return t}function n(){var s;try{if(s=q(m.transactionId)){m.transactionId++}}catch(r){}finally{return s}}function q(u){var r;try{r=new XMLHttpRequest()}catch(t){for(var s=0;s<i.length;++s){try{r=new ActiveXObject(i[s]);break}catch(t){}}}finally{return{conn:r,tId:u}}}var m={request:function(z,x,r,y,s){if(s){var v=this,u=s.xmlData,t=s.jsonData;Ext.applyIf(v,s);if(u||t){k("Content-Type",u?"text/xml":"application/json");y=u||Ext.encode(t)}}return l(z||s.method||"POST",x,r,y)},serializeForm:function(s){var t=s.elements||(document.forms[s]||Ext.getDom(s)).elements,A=false,z=encodeURIComponent,x,B,r,u,v="",y;Ext.each(t,function(C){r=C.name;y=C.type;if(!C.disabled&&r){if(/select-(one|multiple)/i.test(y)){Ext.each(C.options,function(D){if(D.selected){v+=String.format("{0}={1}&",z(r),(D.hasAttribute?D.hasAttribute("value"):D.getAttribute("value")!==null)?D.value:D.text)}})}else{if(!/file|undefined|reset|button/i.test(y)){if(!(/radio|checkbox/i.test(y)&&!C.checked)&&!(y=="submit"&&A)){v+=z(r)+"="+z(C.value)+"&";A=/submit/i.test(y)}}}}});return v.substr(0,v.length-1)},useDefaultHeader:true,defaultPostHeader:"application/x-www-form-urlencoded; charset=UTF-8",useDefaultXhrHeader:true,defaultXhrHeader:"XMLHttpRequest",poll:{},timeout:{},pollInterval:50,transactionId:0,abort:function(u,x,r){var t=this,v=u.tId,s=false;if(t.isCallInProgress(u)){u.conn.abort();clearInterval(t.poll[v]);t.poll[v]=null;if(r){t.timeout[v]=null}g(u,x,(s=true))}return s},isCallInProgress:function(r){return r.conn&&!{1:1,4:4}[r.conn.readyState]}};return m}();(function(){var j=Ext.lib,g=/width|height|opacity|padding/i,e=/width|height|top$|bottom$|left$|right$/i,i=/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i;j.Anim={motion:function(n,l,o,p,k,m){return this.run(n,l,o,p,k,m,j.Motion)},run:function(o,l,p,q,k,n,m){m=m||j.AnimBase;anim=new m(o,l,p,j.Easing[q]||q);anim.animate(function(){if(k){k.call(n)}});return anim}};j.AnimBase=function(l,k,m,n){if(l){this.init(l,k,m,n)}};j.AnimBase.prototype={doMethod:function(k,n,l){var m=this;return m.method(m.curFrame,n,l-n,m.totalFrames)},setAttr:function(k,m,l){if(g.test(k)&&m<0){m=0}Ext.fly(this.el,"_anim").setStyle(k,m+l)},getAttr:function(l){var n=d(this.el),m=n.getStyle(l),k;if(m!=="auto"&&!i.test(m)){return parseFloat(m)}k=n["get"+l.charAt(0).toUpperCase()+l.substr(1)];return k?k.call(n):0},setRunAttr:function(o){var q=this,n=Ext.isEmpty,r=q.attrs[o],u=r.unit,p=r.by,s=r.from,t=r.to,l=(q.runAttrs[o]={}),k,m;if(n(t)&&n(p)){return false}k=!n(s)?s:q.getAttr(o);m=!n(t)?t:[];if(!n(p)){if(Ext.isArray(k)){Ext.each(k,function(x,y,z){m[y]=x+p[y]})}else{m=k+p}}l.start=k;l.end=m;l.unit=!n(u)?u:(e.test(o)?"px":"")},init:function(m,l,q,k){var s=this,o=0,p=j.Easing,t=j.AnimMgr;s.attrs=l||{};s.dur=q||1;s.method=k||p.easeNone;s.useSec=true;s.curFrame=0;s.totalFrames=t.fps;s.el=Ext.getDom(m);s.isAnimated=false;s.startTime=null;s.runAttrs={};s.animate=function(z,v){function y(){var A=this;A.onComplete.removeListener(y);if(typeof z=="function"){z.call(v||A,A)}}var x=this;x.onComplete.addListener(y,x);x.curFrame=0;x.totalFrames=(x.useSec)?Math.ceil(t.fps*q):q;if(!x.isAnimated){t.registerElement(x)}};s.stop=function(v){if(v){s.curFrame=s.totalFrames;s._onTween.fire()}t.stop(s)};function u(){s.onStart.fire();s.runAttrs={};for(var v in s.attrs){s.setRunAttr(v)}s.isAnimated=!!(s.startTime=new Date());o=0}function r(){s.onTween.fire({duration:new Date()-s.startTime,curFrame:s.curFrame});for(var v in s.runAttrs){var x=s.runAttrs[v];s.setAttr(v,s.doMethod(v,x.start,x.end),x.unit)}o++}function n(){s.isAnimated=false;s.onComplete.fire({duration:(new Date()-s.startTime)/1000,frames:o,fps:o/this.duration});o=0}s.onStart=new Ext.util.Event(s);s.onTween=new Ext.util.Event(s);s.onComplete=new Ext.util.Event(s);(s._onStart=new Ext.util.Event(s)).addListener(u);(s._onTween=new Ext.util.Event(s)).addListener(r);(s._onComplete=new Ext.util.Event(s)).addListener(n)}};j.AnimMgr=function(){var k=new Ext.util.TaskRunner(),m;function l(o){var s=o.totalFrames,r=o.curFrame,q=o.dur,p=(r*q*1000/s),n=(new Date()-o.startTime),t=0;if(n<q*1000){t=Math.round((n/p-1)*r)}else{t=s-(r+1)}if(t>0&&isFinite(t)){if(r+t>=s){t=s-(r+1)}o.curFrame+=t}}m={fps:1000,delay:1,registerElement:function(n){n.run=function(o){if(!o||!o.isAnimated){return}if(o.curFrame++<o.totalFrames){if(o.useSec){l(o)}o._onTween.fire()}else{m.stop(o)}};n.args=[n];n.scope=m;n.onStop=function(){n._onComplete.fire()};n.interval=m.delay;k.start(n);n._onStart.fire()},stop:function(n){k.stop(n)}};return m}();j.Easing={easeNone:function(l,k,n,m){return n*l/m+k},easeIn:function(l,k,n,m){return n*(l/=m)*l+k},easeOut:function(l,k,n,m){return -n*(l/=m)*(l-2)+k}};(function(){function l(u,r){var n=u.length,q=u.slice(0),v=(1-r),p,o;for(o=1;o<n;++o){for(p=0;p<n-o;++p){var s=q[p];s[0]=v*s[0]+r*q[p+1][0];s[1]=v*s[1]+r*q[p+1][1]}}return[q[0][0],q[0][1]]}j.Motion=function(o,n,p,q){if(o){j.Motion.superclass.constructor.call(this,o,n,p,q)}};Ext.extend(j.Motion,j.AnimBase);var m=j.Motion.superclass,k=/^points$/i;Ext.apply(j.Motion.prototype,{setAttr:function(n,r,q){var o=m.setAttr,p=this;if(k.test(n)){q=q||"px";o.call(p,"left",r[0],q);o.call(p,"top",r[1],q)}else{o.call(p,n,r,q)}},getAttr:function(n){var o=m.getAttr,p=this;return k.test(n)?[o.call(p,"left"),o.call(p,"top")]:o.call(p,n)},doMethod:function(n,q,o){var p=this;return k.test(n)?l(p.runAttrs[n],p.method(p.curFrame,0,100,p.totalFrames)/100):m.doMethod.call(p,n,q,o)},setRunAttr:function(t){var u=this;if(k.test(t)){var o=u.el,y=u.attrs,x=y.points,q=x.control||[],s=u.runAttrs,r=j.Dom.getXY,v=y.points.from||r(o),n;function p(z,C,B){var A=B?r(u.el):[0,0];return z?[(z[0]||0)-A[0]+C[0],(z[1]||0)-A[1]+C[1]]:null}q=typeof q=="string"?[q]:Ext.toArray(q);Ext.fly(o,"_anim").position();j.Dom.setXY(o,v);s[t]=[n=u.getAttr("points")].concat(q);s[t].push(p(x.to||x.by||null,n,!Ext.isEmpty(x.to)))}else{m.setRunAttr.call(u,t)}}})})()})();(function(){var e=Math.abs,k=Math.PI,j=Math.asin,i=Math.pow,g=Math.sin;Ext.apply(Ext.lib.Easing,{easeBoth:function(m,l,o,n){return((m/=n/2)<1)?o/2*m*m+l:-o/2*((--m)*(m-2)-1)+l},easeInStrong:function(m,l,o,n){return o*(m/=n)*m*m*m+l},easeOutStrong:function(m,l,o,n){return -o*((m=m/n-1)*m*m*m-1)+l},easeBothStrong:function(m,l,o,n){return((m/=n/2)<1)?o/2*m*m*m*m+l:-o/2*((m-=2)*m*m*m-2)+l},elasticIn:function(n,l,u,r,m,q){if(n==0||(n/=r)==1){return n==0?l:l+u}q=q||(r*0.3);var o;if(m>=e(u)){o=q/(2*k)*j(u/m)}else{m=u;o=q/4}return -(m*i(2,10*(n-=1))*g((n*r-o)*(2*k)/q))+l},elasticOut:function(n,l,u,r,m,q){if(n==0||(n/=r)==1){return n==0?l:l+u}q=q||(r*0.3);var o;if(m>=e(u)){o=q/(2*k)*j(u/m)}else{m=u;o=q/4}return m*i(2,-10*n)*g((n*r-o)*(2*k)/q)+u+l},elasticBoth:function(n,l,u,r,m,q){if(n==0||(n/=r/2)==2){return n==0?l:l+u}q=q||(r*(0.3*1.5));var o;if(m>=e(u)){o=q/(2*k)*j(u/m)}else{m=u;o=q/4}return n<1?-0.5*(m*i(2,10*(n-=1))*g((n*r-o)*(2*k)/q))+l:m*i(2,-10*(n-=1))*g((n*r-o)*(2*k)/q)*0.5+u+l},backIn:function(m,l,p,o,n){n=n||1.70158;return p*(m/=o)*m*((n+1)*m-n)+l},backOut:function(m,l,p,o,n){if(!n){n=1.70158}return p*((m=m/o-1)*m*((n+1)*m+n)+1)+l},backBoth:function(m,l,p,o,n){n=n||1.70158;return((m/=o/2)<1)?p/2*(m*m*(((n*=(1.525))+1)*m-n))+l:p/2*((m-=2)*m*(((n*=(1.525))+1)*m+n)+2)+l},bounceIn:function(m,l,o,n){return o-this.bounceOut(n-m,0,o,n)+l},bounceOut:function(m,l,o,n){if((m/=n)<(1/2.75)){return o*(7.5625*m*m)+l}else{if(m<(2/2.75)){return o*(7.5625*(m-=(1.5/2.75))*m+0.75)+l}else{if(m<(2.5/2.75)){return o*(7.5625*(m-=(2.25/2.75))*m+0.9375)+l}}}return o*(7.5625*(m-=(2.625/2.75))*m+0.984375)+l},bounceBoth:function(m,l,o,n){return(m<n/2)?this.bounceIn(m*2,0,o,n)*0.5+l:this.bounceOut(m*2-n,0,o,n)*0.5+o*0.5+l}})})();(function(){Ext.lib.Anim.color=function(n,l,o,p,k,m){return Ext.lib.Anim.run(n,l,o,p,k,m,Ext.lib.ColorAnim)};Ext.lib.ColorAnim=function(l,k,m,n){Ext.lib.ColorAnim.superclass.constructor.call(this,l,k,m,n)};Ext.extend(Ext.lib.ColorAnim,Ext.lib.AnimBase);var j=Ext.lib.ColorAnim.superclass,e=/color$/i,g=/^transparent|rgba\(0, 0, 0, 0\)$/;function i(k){var l=parseInt,m;if(k.length==3){m=k}else{if(k.charAt(0)=="r"){m=k.replace(/[^0-9,]/g,"").split(",");m=[l(m[1],10),l(m[2],10),l(m[3],10)]}else{if(k.length<6){m=k.replace("#","").match(/./g);m=[l(m[0]+m[0],16),l(m[1]+m[1],16),l(m[2]+m[2],16)]}else{m=k.replace("#","").match(/./g);m=[l(m[0]+m[1],16),l(m[2]+m[3],16),l(m[4]+m[5],16)]}}}return m}Ext.apply(Ext.lib.ColorAnim.prototype,{getAttr:function(k){var m=this,l=m.el,n;if(e.test(k)){while(l&&g.test(n=d(l).getStyle(k))){l=l.parentNode;n="fff"}}else{n=j.getAttr.call(m,k)}return n},doMethod:function(k,p,l){var n=this,o,m=Math.floor;if(e.test(k)){o=[];Ext.each(p,function(q,r){o[r]=j.doMethod.call(n,k,q,l[r])});o="rgb("+m(o[0])+","+m(o[1])+","+m(o[2])+")"}else{o=j.doMethod.call(n,k,p,l)}return o},setRunAttr:function(k){var n=this,p=Ext.isEmpty;j.setRunAttr.call(n,k);if(e.test(k)){var m=n.attrs[k],o=n.runAttrs[k],q=i(o.start),l=i(o.end);if(p(m.to)&&!p(m.by)){l=i(m.by);Ext.each(q,function(r,s){l[s]=r+l[s]})}o.start=q;o.end=l}}})})();(function(){Ext.lib.Anim.scroll=function(m,k,n,o,j,l){return Ext.lib.Anim.run(m,k,n,o,j,l,Ext.lib.Scroll)};Ext.lib.Scroll=function(k,j,l,m){if(k){Ext.lib.Scroll.superclass.constructor.call(this,k,j,l,m)}};Ext.extend(Ext.lib.Scroll,Ext.lib.ColorAnim);var e=Ext.lib,i=e.Scroll.superclass,g="scroll";Ext.apply(e.Scroll.prototype,{toString:function(){var j=this.el;return("Scroll "+(j.id||j.tagName))},doMethod:function(j,p,k){var n,m=this,o=m.curFrame,l=m.totalFrames;if(j==g){n=[m.method(o,p[0],k[0]-p[0],l),m.method(o,p[1],k[1]-p[1],l)]}else{n=i.doMethod.call(m,j,p,k)}return n},getAttr:function(j){var l=null,k=this;if(j==g){l=[k.el.scrollLeft,k.el.scrollTop]}else{l=i.getAttr.call(k,j)}return l},setAttr:function(j,m,l){var k=this;if(j==g){k.el.scrollLeft=m[0];k.el.scrollTop=m[1]}else{i.setAttr.call(k,j,m,l)}}})})();if(Ext.isIE){function b(){var e=Function.prototype;delete e.createSequence;delete e.defer;delete e.createDelegate;delete e.createCallback;delete e.createInterceptor;window.detachEvent("onunload",b)}window.attachEvent("onunload",b)}})();Ext.DomHelper=function(){var u=null,l=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,n=/^table|tbody|tr|td$/i,r,o="afterbegin",p="afterend",d="beforebegin",q="beforeend",b="<table>",j="</table>",c=b+"<tbody>",k="</tbody>"+j,m=c+"<tr>",t="</tr>"+k;function i(z,B,A,C,y,v){var x=r.insertHtml(C,Ext.getDom(z),s(B));return A?Ext.get(x,true):x}function s(B){var y="",x,A,z,v,C;if(typeof B=="string"){y=B}else{if(Ext.isArray(B)){Ext.each(B,function(D){y+=s(D)})}else{y+="<"+(B.tag=B.tag||"div");for(x in B){A=B[x];if(!/tag|children|cn|html$/i.test(x)&&!Ext.isFunction(A)){if(Ext.isObject(A)){y+=" "+x+"='";for(z in A){v=A[z];y+=!Ext.isFunction(v)?z+":"+v+";":""}y+="'"}else{y+=" "+({cls:"class",htmlFor:"for"}[x]||x)+"='"+A+"'"}}}if(l.test(B.tag)){y+="/>"}else{y+=">";if(C=B.children||B.cn){y+=s(C)}else{if(B.html){y+=B.html}}y+="</"+B.tag+">"}}}return y}function g(B,z,y,A){u.innerHTML=[z,y,A].join("");var v=-1,x=u;while(++v<B){x=x.firstChild}return x}function e(v,x,z,y){var A,B;u=u||document.createElement("div");if(v=="td"&&(x==o||x==q)||!/td|tr|tbody/i.test(v)&&(x==d||x==p)){return}B=x==d?z:x==p?z.nextSibling:x==o?z.firstChild:null;if(x==d||x==p){z=z.parentNode}if(v=="td"||(v=="tr"&&(x==q||x==o))){A=g(4,m,y,t)}else{if((v=="tbody"&&(x==q||x==o))||(v=="tr"&&(x==d||x==p))){A=g(3,c,y,k)}else{A=g(2,b,y,j)}}z.insertBefore(A,B);return A}r={markup:function(v){return s(v)},insertHtml:function(B,v,C){var A={},y,E,D,F,z,x;B=B.toLowerCase();A[d]=["BeforeBegin","previousSibling"];A[p]=["AfterEnd","nextSibling"];if(v.insertAdjacentHTML){if(n.test(v.tagName)&&(x=e(v.tagName.toLowerCase(),B,v,C))){return x}A[o]=["AfterBegin","firstChild"];A[q]=["BeforeEnd","lastChild"];if(y=A[B]){v.insertAdjacentHTML(y[0],C);return v[y[1]]}}else{D=v.ownerDocument.createRange();E="setStart"+(/end/i.test(B)?"After":"Before");if(A[B]){D[E](v);F=D.createContextualFragment(C);v.parentNode.insertBefore(F,B==d?v:v.nextSibling);return v[(B==d?"previous":"next")+"Sibling"]}else{z=(B==o?"first":"last")+"Child";if(v.firstChild){D[E](v[z]);F=D.createContextualFragment(C);B==o?v.insertBefore(F,v.firstChild):v.appendChild(F)}else{v.innerHTML=C}return v[z]}}throw'Illegal insertion point -> "'+B+'"'},insertBefore:function(v,y,x){return i(v,y,x,d)},insertAfter:function(v,y,x){return i(v,y,x,p,"nextSibling")},insertFirst:function(v,y,x){return i(v,y,x,o,"firstChild")},append:function(v,y,x){return i(v,y,x,q,"",true)},overwrite:function(v,y,x){v=Ext.getDom(v);v.innerHTML=s(y);return x?Ext.get(v.firstChild):v.firstChild},createHtml:s};return r}();Ext.Template=function(d){var e=this,b=arguments,c=[];if(Ext.isArray(d)){d=d.join("")}else{if(b.length>1){Ext.each(b,function(g){if(Ext.isObject(g)){Ext.apply(e,g)}else{c.push(g)}});d=c.join("")}}e.html=d;if(e.compiled){e.compile()}};Ext.Template.prototype={applyTemplate:function(b){var c=this;return c.compiled?c.compiled(b):c.html.replace(c.re,function(d,e){return b[e]!==undefined?b[e]:""})},set:function(b,d){var c=this;c.html=b;c.compiled=null;return d?c.compile():c},re:/\{([\w-]+)\}/g,compile:function(){var me=this,sep=Ext.isGecko?"+":",";function fn(m,name){name="values['"+name+"']";return"'"+sep+name+" == undefined ? '' : "+name+args+")"+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(c,b,d){return this.doInsert("afterBegin",c,b,d)},insertBefore:function(c,b,d){return this.doInsert("beforeBegin",c,b,d)},insertAfter:function(c,b,d){return this.doInsert("afterEnd",c,b,d)},append:function(c,b,d){return this.doInsert("beforeEnd",c,b,d)},doInsert:function(d,g,c,b){g=Ext.getDom(g);var e=Ext.DomHelper.insertHtml(d,g,this.applyTemplate(c));return b?Ext.get(e,true):e},overwrite:function(c,b,d){c=Ext.getDom(c);c.innerHTML=this.applyTemplate(b);return d?Ext.get(c.firstChild,true):c.firstChild}};Ext.Template.prototype.apply=Ext.Template.prototype.applyTemplate;Ext.Template.from=function(c,b){c=Ext.getDom(c);return new Ext.Template(c.value||c.innerHTML,b||"")};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(p,index){var i=0,n=p.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(d){var n=d.firstChild,ni=-1,nx;while(n){nx=n.nextSibling;if(n.nodeType==3&&!nonSpace.test(n.nodeValue)){d.removeChild(n)}else{n.nodeIndex=++ni}n=nx}return this}function byClassName(c,a,v){if(!v){return c}var r=[],ri=-1,cn;for(var i=0,ci;ci=c[i];i++){if((" "+ci.className+" ").indexOf(v)!=-1){r[++ri]=ci}}return r}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.children||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=="~"){for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&(n.nodeType!=1||(tagName=="*"||n.tagName.toLowerCase()!=tagName))){}if(n){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 r=[],ri=-1;tagName=tagName.toLowerCase();for(var i=0,ci;ci=cs[i];i++){if(ci.nodeType==1&&ci.tagName.toLowerCase()==tagName){r[++ri]=ci}}return r}function byId(cs,attr,id){if(cs.tagName||cs==document){cs=[cs]}if(!id){return cs}var r=[],ri=-1;for(var i=0,ci;ci=cs[i];i++){if(ci&&ci.id==id){r[++ri]=ci;return r}}return r}function byAttribute(cs,attr,value,op,custom){var r=[],ri=-1,st=custom=="{",f=Ext.DomQuery.operators[op];for(var i=0,ci;ci=cs[i];i++){var a;if(st){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)}}}}if((f&&f(a,value))||(!f&&a)){r[++ri]=ci}}return r}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&&c1[0].selectSingleNode){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,null,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"],q=path,mode,lq,tk=Ext.DomQuery.matchers,tklen=tk.length,mm,lmode=q.match(modeRe);if(lmode&&lmode[1]){fn[fn.length]='mode="'+lmode[1].replace(trimRe,"")+'";';q=q.replace(lmode[1],"")}while(path.substr(0,1)=="/"){path=path.substr(1)}while(q&&lq!=q){lq=q;var tm=q.match(tagTokenRe);if(type=="select"){if(tm){if(tm[1]=="#"){fn[fn.length]='n = quickId(n, mode, root, "'+tm[2]+'");'}else{fn[fn.length]='n = getNodes(n, mode, "'+tm[2]+'");'}q=q.replace(tm[0],"")}else{if(q.substr(0,1)!="@"){fn[fn.length]='n = getNodes(n, mode, "*");'}}}else{if(tm){if(tm[1]=="#"){fn[fn.length]='n = byId(n, null, "'+tm[2]+'");'}else{fn[fn.length]='n = byTag(n, "'+tm[2]+'");'}q=q.replace(tm[0],"")}}while(!(mm=q.match(modeRe))){var matched=false;for(var j=0;j<tklen;j++){var t=tk[j];var m=q.match(t.re);if(m){fn[fn.length]=t.select.replace(tplRe,function(x,i){return m[i]});q=q.replace(m[0],"");matched=true;break}}if(!matched){throw'Error parsing selector, parsing failed at "'+q+'"'}}if(mm[1]){fn[fn.length]='mode="'+mm[1].replace(trimRe,"")+'";';q=q.replace(mm[1],"")}}fn[fn.length]="return nodup(n);\n}";eval(fn.join(""));return f},select:function(path,root,type){if(!root||root==document){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 p=paths[i].replace(trimRe,"");if(!cache[p]){cache[p]=Ext.DomQuery.compile(p);if(!cache[p]){throw p+" is not a valid selector"}}var result=cache[p](root);if(result&&result!=document){results=results.concat(result)}}if(paths.length>1){return nodup(results)}return results},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;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, null, " {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, null, "{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;(function(){var j=Ext.util,l=Ext.toArray,k=Ext.each,b=Ext.isObject;TRUE=true,FALSE=false;j.Observable=function(){var m=this,n=m.events;if(m.listeners){m.on(m.listeners);delete m.listeners}m.events=n||{}};j.Observable.prototype=function(){var n=/^(?:scope|delay|buffer|single)$/,m=function(o){return o.toLowerCase()};return{fireEvent:function(){var o=l(arguments),r=m(o[0]),s=this,p=TRUE,u=s.events[r],t,v;if(s.eventsSuspended===TRUE){if(t=s.suspendedEventsQueue){t.push(o)}}else{if(b(u)&&u.bubble){if(u.fire.apply(u,o.slice(1))===FALSE){return FALSE}v=s.getBubbleTarget&&s.getBubbleTarget();if(v&&v.enableBubble){v.enableBubble(r);return v.fireEvent.apply(v,o)}}else{if(b(u)){o.shift();p=u.fire.apply(u,o)}}}return p},addListener:function(r,u,x,q){var t=this,s,y,v,p;if(b(r)){q=r;for(s in q){y=q[s];if(!n.test(s)){t.addListener(s,y.fn||y,y.scope||q.scope,y.fn?y:q)}}}else{r=m(r);p=t.events[r]||TRUE;if(typeof p=="boolean"){t.events[r]=p=new j.Event(t,r)}p.addListener(u,x,b(q)?q:{})}},removeListener:function(o,q,p){var r=this.events[m(o)];if(b(r)){r.removeListener(q,p)}},purgeListeners:function(){var q=this.events,o,p;for(p in q){o=q[p];if(b(o)){o.clearListeners()}}},addEvents:function(q){var p=this;p.events=p.events||{};if(typeof q=="string"){k(arguments,function(o){p.events[o]=p.events[o]||TRUE})}else{Ext.applyIf(p.events,q)}},hasListener:function(o){var p=this.events[o];return b(p)&&p.listeners.length>0},suspendEvents:function(o){this.eventsSuspended=TRUE;if(o){this.suspendedEventsQueue=[]}},resumeEvents:function(){var o=this;o.eventsSuspended=!delete o.suspendedEventQueue;k(o.suspendedEventsQueue,function(p){o.fireEvent.apply(o,p)})}}}();var g=j.Observable.prototype;g.on=g.addListener;g.un=g.removeListener;j.Observable.releaseCapture=function(m){m.fireEvent=g.fireEvent};function i(n,p,m){return function(){if(p.target==arguments[0]){n.apply(m,l(arguments))}}}function d(p,q,n){var m=new j.DelayedTask();return function(){m.delay(q.buffer,p,n,l(arguments))}}function e(o,p,n,m){return function(){p.removeListener(n,m);return o.apply(m,arguments)}}function c(n,p,m){return function(){var o=l(arguments);(function(){n.apply(m,o)}).defer(p.delay||10)}}j.Event=function(n,m){this.name=m;this.obj=n;this.listeners=[]};j.Event.prototype={addListener:function(p,o,n){var q=this,m;o=o||q.obj;if(!q.isListening(p,o)){m=q.createListener(p,o,n);if(q.firing){q.listeners=q.listeners.slice(0)}q.listeners.push(m)}},createListener:function(q,p,r){r=r||{},p=p||this.obj;var m={fn:q,scope:p,options:r},n=q;if(r.target){n=i(n,r,p)}if(r.delay){n=c(n,r,p)}if(r.single){n=e(n,this,q,p)}if(r.buffer){n=d(n,r,p)}m.fireFn=n;return m},findListener:function(p,o){var n,m=-1;k(this.listeners,function(q,r){n=q.scope;if(q.fn==p&&(n==o||n==this.obj)){m=r;return FALSE}},this);return m},isListening:function(n,m){return this.findListener(n,m)!=-1},removeListener:function(p,o){var n,q=this,m=FALSE;if((n=q.findListener(p,o))!=-1){if(q.firing){q.listeners=q.listeners.slice(0)}q.listeners.splice(n,1);m=TRUE}return m},clearListeners:function(){this.listeners=[]},fire:function(){var o=this,n=l(arguments),m=TRUE;k(o.listeners,function(p){o.firing=TRUE;if(p.fireFn.apply(p.scope||o.obj||window,n)===FALSE){return m=o.firing=FALSE}});o.firing=FALSE;return m}}})();Ext.EventManager=function(){var u,n,k=false,m=Ext.lib.Event,o=Ext.lib.Dom,c=document,v=window,i="ie-deferred-loader",p="DOMContentLoaded",g={};function l(C,y,B,A,z){var E=Ext.id(C),D=g[E]=g[E]||{};(D[y]=D[y]||[]).push([B,A,z]);m.on(C,y,A);if(y=="mousewheel"&&C.addEventListener){var x=["DOMMouseScroll",A,false];C.addEventListener.apply(C,x);m.on(window,"unload",function(){C.removeEventListener.apply(C,x)})}if(y=="mousedown"&&C==document){Ext.EventManager.stoppedMouseDownEvent.addListener(A)}}function d(){if(!k){Ext.isReady=k=true;if(n){clearInterval(n)}if(Ext.isGecko||Ext.isOpera){c.removeEventListener(p,d,false)}if(Ext.isIE){var x=c.getElementById(i);if(x){x.onreadystatechange=null;x.parentNode.removeChild(x)}}if(u){u.fire();u.clearListeners()}}}function b(){var x="complete";u=new Ext.util.Event();if(Ext.isGecko||Ext.isOpera){c.addEventListener(p,d,false)}else{if(Ext.isIE){c.write("<script id="+i+' defer="defer" src="//:"><\/script>');c.getElementById(i).onreadystatechange=function(){if(this.readyState==x){d()}}}else{if(Ext.isSafari){n=setInterval(function(){if(c.readyState==x){d()}},10)}}}m.on(v,"load",d)}function s(x,y){return function(){var z=Ext.toArray(arguments);if(y.target==Ext.EventObject.setEvent(z[0]).target){x.apply(this,z)}}}function t(y,z){var x=new Ext.util.DelayedTask(y);return function(A){x.delay(z.buffer,y,null,[new Ext.EventObjectImpl(A)])}}function q(B,A,x,z,y){return function(C){Ext.EventManager.removeListener(A,x,z,y);B(C)}}function e(x,y){return function(z){z=new Ext.EventObjectImpl(z);setTimeout(function(){x(z)},y.delay||10)}}function j(z,y,x,D,C){var E=!Ext.isObject(x)?{}:x,B=Ext.getDom(z);D=D||E.fn;C=C||E.scope;if(!B){throw'Error listening for "'+y+'". Element "'+z+"\" doesn't exist."}function A(G){if(!Ext){return}G=Ext.EventObject.setEvent(G);var F;if(E.delegate){if(!(F=G.getTarget(E.delegate,B))){return}}else{F=G.target}if(E.stopEvent){G.stopEvent()}if(E.preventDefault){G.preventDefault()}if(E.stopPropagation){G.stopPropagation()}if(E.normalized){G=G.browserEvent}D.call(C||B,G,F,E)}if(E.target){A=s(A,E)}if(E.delay){A=e(A,E)}if(E.single){A=q(A,B,y,D,C)}if(E.buffer){A=t(A,E)}l(B,y,D,A,C);return A}var r={addListener:function(z,x,B,A,y){if(Ext.isObject(x)){var E=x,C,D;for(C in E){D=E[C];if(!propRe.test(C)){if(Ext.isFunction(D)){j(z,C,E,D,E.scope)}else{j(z,C,D)}}}}else{j(z,x,y,B,A)}},removeListener:function(y,x,C,B){var A=Ext.getDom(y),D=Ext.id(A),z;Ext.each((g[D]||{})[x],function(F,G,E){if(Ext.isArray(F)&&F[0]==C&&(!B||F[2]==B)){m.un(A,x,z=F[1]);E.splice(G,1);return false}});if(x=="mousewheel"&&A.addEventListener&&z){A.removeEventListener("DOMMouseScroll",z,false)}if(x=="mousedown"&&A==c&&z){Ext.EventManager.stoppedMouseDownEvent.removeListener(z)}},removeAll:function(y){var A=Ext.id(y=Ext.getDom(y)),z=g[A],x;for(x in z){if(z.hasOwnProperty(x)){Ext.each(z[x],function(B){m.un(y,x,B.wrap)})}}g[A]=null},onDocumentReady:function(z,y,x){if(k){u.addListener(z,y,x);u.fire();u.clearListeners()}else{if(!u){b()}x=x||{};x.delay=x.delay||1;u.addListener(z,y,x)}},elHash:g};r.on=r.addListener;r.un=r.removeListener;r.stoppedMouseDownEvent=new Ext.util.Event();return r}();Ext.onReady=Ext.EventManager.onDocumentReady;(function(){var b=function(){var d=document.body||document.getElementsByTagName("body")[0];if(!d){return false}var c=[" ",Ext.isIE?"ext-ie "+(Ext.isIE6?"ext-ie6":(Ext.isIE7?"ext-ie7":"ext-ie8")):Ext.isGecko?"ext-gecko "+(Ext.isGecko2?"ext-gecko2":"ext-gecko3"):Ext.isOpera?"ext-opera":Ext.isSafari?"ext-safari":Ext.isChrome?"ext-chrome":""];if(Ext.isMac){c.push("ext-mac")}if(Ext.isLinux){c.push("ext-linux")}if(Ext.isBorderBox){c.push("ext-border-box")}if(Ext.isStrict){var e=d.parentNode;if(e){e.className+=" ext-strict"}}d.className+=c.join(" ");return true};if(!b()){Ext.onReady(b)}})();Ext.EventObject=function(){var c=Ext.lib.Event,b={3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35},d=Ext.isIE?{1:0,4:1,2:2}:(Ext.isWebKit?{1:0,2:1,3:2}:{0:0,1:1,2:2});Ext.EventObjectImpl=function(g){if(g){this.setEvent(g.browserEvent||g)}};Ext.EventObjectImpl.prototype={setEvent:function(i){var g=this;if(i==g||(i&&i.browserEvent)){return i}g.browserEvent=i;if(i){g.button=i.button?d[i.button]:(i.which?i.which-1:-1);if(i.type=="click"&&g.button==-1){g.button=0}g.type=i.type;g.shiftKey=i.shiftKey;g.ctrlKey=i.ctrlKey||i.metaKey;g.altKey=i.altKey;g.keyCode=i.keyCode;g.charCode=i.charCode;g.target=c.getTarget(i);g.xy=c.getXY(i)}else{g.button=-1;g.shiftKey=false;g.ctrlKey=false;g.altKey=false;g.keyCode=0;g.charCode=0;g.target=null;g.xy=[0,0]}return g},stopEvent:function(){var e=this;if(e.browserEvent){if(e.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(e)}c.stopEvent(e.browserEvent)}},preventDefault:function(){if(this.browserEvent){c.preventDefault(this.browserEvent)}},stopPropagation:function(){var e=this;if(e.browserEvent){if(e.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(e)}c.stopPropagation(e.browserEvent)}},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){var e=this.keyCode||this.charCode;return Ext.isSafari?(b[e]||e):e},getPageX:function(){return this.xy[0]},getPageY:function(){return this.xy[1]},getXY:function(){return this.xy},getTarget:function(g,i,e){return g?Ext.fly(this.target).findParent(g,i,e):(e?Ext.get(this.target):this.target)},getRelatedTarget:function(){return this.browserEvent?c.getRelatedTarget(this.browserEvent):null},getWheelDelta:function(){var g=this.browserEvent;var i=0;if(g.wheelDelta){i=g.wheelDelta/120}else{if(g.detail){i=-g.detail/3}}return i},within:function(i,j,e){var g=this[j?"getRelatedTarget":"getTarget"]();return g&&((e?(g==Ext.getDom(i)):false)||Ext.fly(i).contains(g))}};return new Ext.EventObjectImpl()}();(function(){var k=document;Ext.Element=function(p,q){var r=typeof p=="string"?k.getElementById(p):p,s;if(!r){return null}s=r.id;if(!q&&s&&Ext.Element.cache[s]){return Ext.Element.cache[s]}this.dom=r;this.id=s||Ext.id(r)};var b=Ext.lib.Dom,g=Ext.DomHelper,n=Ext.lib.Event,e=Ext.lib.Anim,i=Ext.Element;i.prototype={set:function(t,q){var r=this.dom,p,s;for(p in t){s=t[p];if(p!="style"&&!Ext.isFunction(s)){if(p=="cls"){r.className=s}else{if(t.hasOwnProperty(p)){if(q||!!r.setAttribute){r.setAttribute(p,s)}else{r[p]=s}}}}}if(t.style){Ext.DomHelper.applyStyles(r,t.style)}return this},defaultUnit:"px",is:function(p){return Ext.DomQuery.is(this.dom,p)},focus:function(r){var p=this;try{if(!isNaN(r)){p.focus.defer(r,p)}else{p.dom.focus()}}catch(q){}return p},blur:function(){try{this.dom.blur()}catch(p){}return this},getValue:function(p){var q=this.dom.value;return p?parseInt(q,10):q},addListener:function(p,s,r,q){Ext.EventManager.on(this.dom,p,s,r||this,q);return this},removeListener:function(p,r,q){Ext.EventManager.removeListener(this.dom,p,r,q||this);return this},removeAllListeners:function(){Ext.EventManager.removeAll(this.dom);return this},addUnits:function(p){if(p===""||p=="auto"||p===undefined){p=p||""}else{if(!isNaN(p)||!l.test(p)){p=p+(this.defaultUnit||"px")}}return p},load:function(q,r,p){Ext.Ajax.request(Ext.apply({params:r,url:q.url||q,callback:p,el:this,indicatorText:q.indicatorText||""},Ext.isObject(q)?q:{}));return this},isBorderBox:function(){return j[(this.dom.tagName||"").toLowerCase()]||Ext.isBorderBox},remove:function(){Ext.removeNode(this.dom);delete i.cache[this.dom.id]},hover:function(q,p,s,r){var t=this;t.on("mouseenter",q,s||t.dom,r);t.on("mouseleave",p,s||t.dom,r);return t},contains:function(p){return !p?false:Ext.lib.Dom.isAncestor(this.dom,p.dom?p.dom:p)},getAttributeNS:Ext.isIE?function(r,p){var s=this.dom,q=typeof s[r+":"+p];if(!Ext.isEmpty(q)&&q!="unknown"){return s[r+":"+p]}return s[p]}:function(q,p){var r=this.dom;return r.getAttributeNS(q,p)||r.getAttribute(q+":"+p)||r.getAttribute(p)||r[p]},update:function(p){this.dom.innerHTML=p}};var o=i.prototype;i.addMethods=function(p){Ext.apply(o,p)};o.on=o.addListener;o.un=o.removeListener;o.autoBoxAdjust=true;var l=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,d;i.cache={};i.get=function(q){var p,t,s;if(!q){return null}if(typeof q=="string"){if(!(t=k.getElementById(q))){return null}if(p=i.cache[q]){p.dom=t}else{p=i.cache[q]=new i(t)}return p}else{if(q.tagName){if(!(s=q.id)){s=Ext.id(q)}if(p=i.cache[s]){p.dom=q}else{p=i.cache[s]=new i(q)}return p}else{if(q instanceof i){if(q!=d){q.dom=k.getElementById(q.id)||q.dom;i.cache[q.id]=q}return q}else{if(q.isComposite){return q}else{if(Ext.isArray(q)){return i.select(q)}else{if(q==k){if(!d){var r=function(){};r.prototype=i.prototype;d=new r();d.dom=k}return d}}}}}}return null};function m(){if(!Ext.enableGarbageCollector){clearInterval(i.collectorThread)}else{var p,q,r;for(p in i.cache){q=i.cache[p];r=q.dom;if(!r||!r.parentNode||(!r.offsetParent&&!k.getElementById(p))){delete i.cache[p];if(r&&Ext.enableListenerCollection){Ext.EventManager.removeAll(r)}}}}}i.collectorThreadId=setInterval(m,30000);var c=function(){};c.prototype=i.prototype;i.Flyweight=function(p){this.dom=p};i.Flyweight.prototype=new c();i.Flyweight.prototype.isFlyweight=true;i._flyweights={};i.fly=function(r,p){var q=null;p=p||"_global";if(r=Ext.getDom(r)){(i._flyweights[p]=i._flyweights[p]||new i.Flyweight()).dom=r;q=i._flyweights[p]}return q};Ext.get=i.get;Ext.fly=i.fly;var j=Ext.isStrict?{select:1}:{input:1,select:1,textarea:1};if(Ext.isIE||Ext.isGecko){j.button=1}Ext.EventManager.on(window,"unload",function(){delete i.cache;delete i._flyweights})})();Ext.Element.addMethods(function(){var e="parentNode",c="nextSibling",d="previousSibling",g=Ext.DomQuery,b=Ext.get;return{findParent:function(o,n,j){var l=this.dom,i=document.body,m=0,k;n=n||50;if(isNaN(n)){k=Ext.getDom(n);n=10}while(l&&l.nodeType==1&&m<n&&l!=i&&l!=k){if(g.is(l,o)){return j?b(l):l}m++;l=l.parentNode}return null},findParentNode:function(l,k,i){var j=Ext.fly(this.dom.parentNode,"_internal");return j?j.findParent(l,k,i):null},up:function(j,i){return this.findParentNode(j,i,true)},select:function(i,j){return Ext.Element.select(i,j,this.dom)},query:function(i,j){return g.select(i,this.dom)},child:function(i,j){var k=g.selectNode(i,this.dom);return j?k:b(k)},down:function(i,j){var k=g.selectNode(" > "+i,this.dom);return j?k:b(k)},parent:function(i,j){return this.matchNode(e,e,i,j)},next:function(i,j){return this.matchNode(c,c,i,j)},prev:function(i,j){return this.matchNode(d,d,i,j)},first:function(i,j){return this.matchNode(c,"firstChild",i,j)},last:function(i,j){return this.matchNode(d,"lastChild",i,j)},matchNode:function(j,m,i,k){var l=this.dom[m];while(l){if(l.nodeType==1&&(!i||g.is(l,i))){return !k?b(l):l}l=l[j]}return null}}}());Ext.Element.addMethods(function(){var d=Ext.getDom,b=Ext.get,c=Ext.DomHelper;return{appendChild:function(e){return b(e).appendTo(this)},appendTo:function(e){d(e).appendChild(this.dom);return this},insertBefore:function(e){(e=d(e)).parentNode.insertBefore(this.dom,e);return this},insertAfter:function(e){d(e).parentNode.insertBefore(this.dom,e.nextSibling);return this},insertFirst:function(g,e){g=g||{};if(Ext.isObject(g)&&!g.nodeType&&!g.dom){return this.createChild(g,this.dom.firstChild,e)}else{g=d(g);this.dom.insertBefore(g,this.dom.firstChild);return !e?b(g):g}},replace:function(e){e=b(e);this.insertBefore(e);e.remove();return this},replaceWith:function(g){var i=this,e=Ext.Element;if(Ext.isObject(g)&&!g.nodeType&&!g.dom){g=c.insertBefore(i.dom,g)}else{g=d(g);i.dom.parentNode.insertBefore(g,i.dom)}delete El.cache[i.id];Ext.removeNode(i.dom);i.id=Ext.id(i.dom=g);return e.cache[i.id]=i},createChild:function(g,e,i){g=g||{tag:"div"};return e?c.insertBefore(e,g,i!==true):c[!this.dom.firstChild?"overwrite":"append"](this.dom,g,i!==true)},wrap:function(e,g){var i=c.insertBefore(this.dom,e||{tag:"div"},!g);i.dom?i.dom.appendChild(this.dom):i.appendChild(this.dom);return i},insertHtml:function(g,i,e){var j=c.insertHtml(g,this.dom,i);return e?Ext.get(j):j}}}());Ext.Element.addMethods(function(){var g={},t=/(-[a-z])/gi,c={},p=document.defaultView,v=Ext.Element,e="padding",d="margin",u="border",q="-left",n="-right",s="-top",l="-bottom",j="-width",k={l:u+q+j,r:u+n+j,t:u+s+j,b:u+l+j},i={l:e+q,r:e+n,t:e+s,b:e+l},b={l:d+q,r:d+n,t:d+s,b:d+l};function o(x,y){return y.charAt(1).toUpperCase()}function m(y,x){var z=0;Ext.each(y.match(/\w/g),function(A){if(A=parseInt(this.getStyle(x[A]),10)){z+=Math.abs(A)}},this);return z}function r(x){return g[x]||(g[x]=x.replace(t,o))}return{adjustWidth:function(x){var y=this;if(typeof x=="number"&&y.autoBoxAdjust&&!y.isBorderBox()){x-=(y.getBorderWidth("lr")+y.getPadding("lr"));x=x<0?0:x}return x},adjustHeight:function(x){var y=this;if(typeof x=="number"&&y.autoBoxAdjust&&!y.isBorderBox()){x-=(y.getBorderWidth("tb")+y.getPadding("tb"));x=x<0?0:x}return x},addClass:function(x){var y=this;Ext.each(x,function(z){y.dom.className+=(!y.hasClass(z)&&z?" "+z:"")});return y},radioClass:function(x){Ext.each(this.dom.parentNode.childNodes,function(y){if(y.nodeType==1){Ext.get(y).removeClass(x)}});return this.addClass(x)},removeClass:function(x){var y=this;if(y.dom.className){Ext.each(x,function(z){y.dom.className=y.dom.className.replace(c[z]=c[z]||new RegExp("(?:^|\\s+)"+z+"(?:\\s+|$)","g")," ")})}return y},toggleClass:function(x){return this.hasClass(x)?this.removeClass(x):this.addClass(x)},hasClass:function(x){return x&&(" "+this.dom.className+" ").indexOf(" "+x+" ")!=-1},replaceClass:function(y,x){return this.removeClass(y).addClass(x)},isStyle:function(x,y){return this.getStyle(x)==y},getStyle:function(){return p&&p.getComputedStyle?function(A){var z=this.dom,x,y;if(z==document){return null}A=A=="float"?"cssFloat":A;return(x=z.style[A])?x:(y=p.getComputedStyle(z,""))?y[r(A)]:null}:function(B){var z=this.dom,x,y;if(z==document){return null}if(B=="opacity"){if(z.style.filter.match){if(x=z.style.filter.match(/alpha\(opacity=(.*)\)/i)){var A=parseFloat(x[1]);if(!isNaN(A)){return A?A/100:0}}}return 1}B=B=="float"?"styleFloat":B;return z.style[B]||((y=z.currentStyle)?y[r(B)]:null)}}(),getColor:function(x,y,B){var A=this.getStyle(x),z=B||"#";if(!A||A=="transparent"||A=="inherit"){return y}if(/^r/.test(A)){Ext.each(A.slice(4,A.length-1).split(","),function(C){h=(C*1).toString(16);z+=h<16?"0"+h:h})}else{z+=A.replace("#","").replace(/^(\w)(\w)(\w)$/,"$1$1$2$2$3$3")}return z.length>5?z.toLowerCase():y},setStyle:function(B,A){var y,z,x;if(!Ext.isObject(B)){y={};y[B]=A;B=y}for(z in B){A=B[z];x=r(z);x=="opacity"?this.setOpacity(A):this.dom.style[x]=A}return this},setOpacity:function(y,x){var A=this,z=A.dom.style;if(!x||!A.anim){if(Ext.isIE){z.zoom=1;z.filter=(z.filter||"").replace(/alpha\([^\)]*\)/gi,"")+(y==1?"":" alpha(opacity="+y*100+")")}else{z.opacity=y}}else{A.anim({opacity:{to:y}},A.preanim(arguments,1),null,0.35,"easeIn")}return A},clearOpacity:function(){var x=this.dom.style;if(window.ActiveXObject){if(typeof x.filter=="string"&&(/alpha/i).test(x.filter)){x.filter=""}}else{x.opacity="";x["-moz-opacity"]="";x["-khtml-opacity"]=""}return this},getHeight:function(y){var x=this.dom.offsetHeight||0;x=!y?x:x-this.getBorderWidth("tb")-this.getPadding("tb");return x<0?0:x},getWidth:function(y){var x=this.dom.offsetWidth||0;x=!y?x:x-this.getBorderWidth("lr")-this.getPadding("lr");return x<0?0:x},setWidth:function(y,x){var z=this;y=z.adjustWidth(y);!x||!z.anim?z.dom.style.width=z.addUnits(y):z.anim({width:{to:y}},z.preanim(arguments,1));return z},setHeight:function(x,y){var z=this;x=z.adjustHeight(x);!y||!z.anim?z.dom.style.height=z.addUnits(x):z.anim({height:{to:x}},z.preanim(arguments,1));return z},getBorderWidth:function(x){return m.call(this,x,k)},getPadding:function(x){return m.call(this,x,i)},clip:function(){var x=this;if(!x.isClipped){x.isClipped=true;x.originalClip={o:x.getStyle("overflow"),x:x.getStyle("overflow-x"),y:x.getStyle("overflow-y")};x.setStyle("overflow","hidden");x.setStyle("overflow-x","hidden");x.setStyle("overflow-y","hidden")}return x},unclip:function(){var x=this;if(x.isClipped){x.isClipped=false;var y=x.originalClip;if(y.o){x.setStyle("overflow",y.o)}if(y.x){x.setStyle("overflow-x",y.x)}if(y.y){x.setStyle("overflow-y",y.y)}}return x},addStyles:m,margins:b}}());(function(){var c=Ext.lib.Dom;function b(e,d,g){return this.preanim&&!!d?this.preanim(e,g):false}Ext.Element.addMethods({getX:function(){return c.getX(this.dom)},getY:function(){return c.getY(this.dom)},getXY:function(){return c.getXY(this.dom)},getOffsetsTo:function(d){var i=this.getXY(),g=Ext.fly(d,"_internal").getXY();return[i[0]-g[0],i[1]-g[1]]},setX:function(d,e){return this.setXY([d,this.getY()],b.call(this,arguments,e,1))},setY:function(e,d){return this.setXY([this.getX(),e],b.call(this,arguments,d,1))},setLeft:function(d){this.setStyle("left",this.addUnits(d));return this},setTop:function(d){this.setStyle("top",this.addUnits(d));return this},setRight:function(d){this.setStyle("right",this.addUnits(d));return this},setBottom:function(d){this.setStyle("bottom",this.addUnits(d));return this},setXY:function(g,d){var e=this;if(!d||!e.anim){c.setXY(e.dom,g)}else{e.anim({points:{to:g}},e.preanim(arguments,1),"motion")}return e},setLocation:function(d,g,e){return this.setXY([d,g],b.call(this,arguments,e,2))},moveTo:function(d,g,e){return this.setXY([d,g],b.call(this,arguments,e,2))},getLeft:function(d){return !d?this.getX():parseInt(this.getStyle("left"),10)||0},getRight:function(d){var e=this;return !d?e.getX()+e.getWidth():(e.getLeft(true)+e.getWidth())||0},getTop:function(d){return !d?this.getY():parseInt(this.getStyle("top"),10)||0},getBottom:function(d){var e=this;return !d?e.getY()+e.getHeight():(e.getTop(true)+e.getHeight())||0},position:function(j,i,d,g){var e=this;if(!j&&e.isStyle("position","static")){e.setStyle("position","relative")}else{if(j){e.setStyle("position",j)}}if(i){e.setStyle("z-index",i)}if(d||g){e.setXY([d||false,g||false])}},clearPositioning:function(d){d=d||"";this.setStyle({left:d,right:d,top:d,bottom:d,"z-index":"",position:"static"});return this},getPositioning:function(){var i=this;function e(j){return i.getStyle(j)}var d=e("left"),g=e("top");return{position:e("position"),left:d,right:d?"":e("right"),top:g,bottom:g?"":e("bottom"),"z-index":e("z-index")}},setPositioning:function(d){var g=this,e=g.dom.style;g.setStyle(d);if(d.right=="auto"){e.right=""}if(d.bottom=="auto"){e.bottom=""}return g},translatePoints:function(d,m){m=isNaN(d[1])?m:d[1];d=isNaN(d[0])?d:d[0];var i=this,j=i.isStyle("position","relative"),k=i.getXY(),e=parseInt(i.getStyle("left"),10),g=parseInt(i.getStyle("top"),10);e=!isNaN(e)?e:(j?0:i.dom.offsetLeft);g=!isNaN(g)?g:(j?0:i.dom.offsetTop);return{left:(d-k[0]+e),top:(m-k[1]+g)}},animTest:b})})();Ext.Element.addMethods({isScrollable:function(){var b=this.dom;return b.scrollHeight>b.clientHeight||b.scrollWidth>b.clientWidth},scrollTo:function(b,c){this.dom["scroll"+(/top/i.test(b)?"Top":"Left")]=c;return this},getScroll:function(){var k=this.dom,j=document,b=j.body,e=j.documentElement,c,i,g;if(k==j||k==b){if(Ext.isIE&&Ext.isStrict){c=e.scrollLeft;i=e.scrollTop}else{c=window.pageXOffset;i=window.pageYOffset}g={left:c||(b?b.scrollLeft:0),top:i||(b?b.scrollTop:0)}}else{g={left:k.scrollLeft,top:k.scrollTop}}return g}});Ext.Element.VISIBILITY=1;Ext.Element.DISPLAY=2;Ext.Element.addMethods(function(){var e="visibility",d="display",b="hidden",g="none",c=Ext.Element.DISPLAY;return{originalDisplay:"",visibilityMode:1,setVisibilityMode:function(i){this.visibilityMode=i;return this},animate:function(j,l,k,m,i){this.anim(j,{duration:l,callback:k,easing:m},i);return this},anim:function(l,m,j,o,k,i){j=j||"run";m=m||{};var n=this,p=Ext.lib.Anim[j](n.dom,l,(m.duration||o)||0.35,(m.easing||k)||"easeOut",function(){if(i){i.call(n)}if(m.callback){m.callback.call(m.scope||n,n,m)}},n);m.anim=p;return p},preanim:function(j,k){return !j[k]?false:(Ext.isObject(j[k])?j[k]:{duration:j[k+1],callback:j[k+2],easing:j[k+3]})},isVisible:function(i){return !this.isStyle(e,b)||!this.isStyle(d,g)},setVisible:function(l,i){var k=this,j=k.visibilityMode;if(!i||!k.anim){if(k.visibilityMode==c){k.setDisplayed(l)}else{k.fixDisplay();k.dom.style.visibility=l?"visible":b}}else{if(l){k.setOpacity(0.01);k.setVisible(true)}k.anim({opacity:{to:(l?1:0)}},k.preanim(arguments,1),null,0.35,"easeIn",function(){if(!l){if(j==c){style.display=g}else{style.visibility=b}Ext.get(k.dom).setOpacity(1)}})}return k},toggle:function(i){var j=this;j.setVisible(!j.isVisible(),j.preanim(arguments,0));return j},setDisplayed:function(i){if(typeof i=="boolean"){i=i?this.originalDisplay:g}this.setStyle(d,i);return this},fixDisplay:function(){var i=this;if(i.isStyle(d,g)){i.setStyle(e,b);i.setStyle(d,i.originalDisplay);if(i.isStyle(d,g)){i.setStyle(d,"block")}}},hide:function(i){this.setVisible(false,this.preanim(arguments,0));return this},show:function(i){this.setVisible(true,this.preanim(arguments,0));return this}}}());(function(){var u=null,x=undefined,j=true,r=false,i="setX",e="setY",b="setXY",m="left",k="bottom",q="top",l="right",o="height",d="width",g="points",t="hidden",v="absolute",s="visible",c="motion",n="position",p="easeOut";Ext.enableFx=j;Ext.Fx={switchStatements:function(z,A,y){return A.apply(this,y[z])},slideIn:function(F,B){var H=this,C=H.getFxEl(),y,J,A,z,K,G,M,I,E,L=H.getXY(),D=H.dom;B=B||{};F=F||"t";C.queueFx(B,function(){K=H.dom.style;H.fixDisplay();y=H.getFxRestore();J={x:L[0],y:L[1],0:L[0],1:L[1],width:D.offsetWidth,height:D.offsetHeight};J.right=J.x+J.width;J.bottom=J.y+J.height;H.setWidth(J.width).setHeight(J.height);A=H.fxWrap(y.pos,B,t);K.visibility=s;K.position=v;function N(){C.fxUnwrap(A,y.pos,B);K.width=y.width;K.height=y.height;C.afterFx(B)}M={to:[J.x,J.y]};I={to:J.width};E={to:J.height};function O(S,P,T,Q,V,X,aa,Z,Y,U,R){var W={};S.setWidth(T).setHeight(Q);if(S[V]){S[V](X)}P[aa]=P[Z]="0";if(Y){W.width=Y}if(U){W.height=U}if(R){W.points=R}return W}G=H.switchStatements(F.toLowerCase(),O,{t:[A,K,J.width,0,u,u,m,k,u,E,u],l:[A,K,0,J.height,u,u,l,q,I,u,u],r:[A,K,0,J.height,i,J.right,m,q,I,u,M],b:[A,K,J.width,0,e,J.bottom,m,q,u,E,M],tl:[A,K,0,0,u,u,l,k,I,u,M],bl:[A,K,0,0,e,J.y+J.height,l,q,I,E,M],br:[A,K,0,0,b,[J.right,J.bottom],m,q,I,E,M],tr:[0,0,i,J.x+J.width,m,k,I,E,M]});K.visibility=s;A.show();arguments.callee.anim=A.fxanim(G,B,c,0.5,p,N)});return H},slideOut:function(D,A){var F=this,B=F.getFxEl(),J=F.getXY(),C=F.dom,z,I,y,G,H,E={to:0};A=A||{};D=D||"t";B.queueFx(A,function(){y=F.getFxRestore();G={x:J[0],y:J[1],0:J[0],1:J[1],width:C.offsetWidth,height:C.offsetHeight};G.right=G.x+G.width;G.bottom=G.y+G.height;F.setWidth(G.width).setHeight(G.height);z=F.fxWrap(y.pos,A,s);I=F.dom.style;I.visibility=s;I.position=v;z.setWidth(G.width).setHeight(G.height);function K(){A.useDisplay?B.setDisplayed(r):B.hide();B.fxUnwrap(z,y.pos,A);I.width=y.width;I.height=y.height;B.afterFx(A)}function L(M,U,S,V,Q,T,P,R,O){var N={};M[U]=M[S]="0";N[V]=Q;if(T){N[T]=P}if(R){N[R]=O}return N}H=F.switchStatements(D.toLowerCase(),L,{t:[I,m,k,o,E],l:[I,l,q,d,E],r:[I,m,q,d,E,g,{to:[G.right,G.y]}],b:[I,m,q,o,E,g,{to:[G.x,G.bottom]}],tl:[I,l,k,d,E,o,E],bl:[I,l,q,d,E,o,E,g,{to:[G.X,G.bottom]}],br:[I,m,q,d,E,o,E,g,{to:[G.x+G.width,G.bottom]}],tr:[I,m,k,d,E,o,E,g,{to:[G.right,G.y]}]});arguments.callee.anim=z.fxanim(H,A,c,0.5,p,K)});return F},puff:function(E){E=E||{};var D=this,B=D.getFxEl(),C,z=D.dom.style,A=D.getWidth(),y=D.getHeight();B.queueFx(E,function(){D.clearOpacity();D.show();C=D.getFxRestore();function F(){E.useDisplay?B.setDisplayed(r):B.hide();B.clearOpacity();B.setPositioning(C.pos);z.width=C.width;z.height=C.height;z.fontSize="";B.afterFx(E)}arguments.callee.anim=D.fxanim({width:{to:D.adjustWidth(A*2)},height:{to:D.adjustHeight(y*2)},points:{by:[-A*0.5,-y*0.5]},opacity:{to:0},fontSize:{to:200,unit:"%"}},E,c,0.5,p,F)});return D},switchOff:function(A){A=A||{};var z=this,y=z.getFxEl();y.queueFx(A,function(){z.clearOpacity();z.clip();var C=z.getFxRestore(),B=z.dom.style,D=function(){A.useDisplay?y.setDisplayed(r):y.hide();y.clearOpacity();y.setPositioning(C.pos);B.width=C.width;B.height=C.height;y.afterFx(A)};z.fxanim({opacity:{to:0.3}},u,u,0.1,u,function(){z.clearOpacity();(function(){z.fxanim({height:{to:1},points:{by:[0,z.getHeight()*0.5]}},A,c,0.3,"easeIn",D)}).defer(100)})});return z},highlight:function(A,D){D=D||{};var C=this,B=C.getFxEl(),y=D.attr||"backgroundColor",z={};B.queueFx(D,function(){C.clearOpacity();C.show();function E(){B.dom.style[y]=C.dom.style[y];B.afterFx(D)}z[y]={from:A||"ffff9c",to:D.endColor||C.getColor(y)||"ffffff"};arguments.callee.anim=C.fxanim(z,D,"color",1,"easeIn",E)});return C},frame:function(y,B,C){var A=this,z=A.getFxEl();C=C||{};z.queueFx(C,function(){y=y||"#C3DAF9";if(y.length==6){y="#"+y}B=B||1;A.show();var F=A.getXY(),G=A.dom,D={x:F[0],y:F[1],0:F[0],1:F[1],width:G.offsetWidth,height:G.offsetHeight};function E(){var H=Ext.get(document.body||document.documentElement).createChild({style:{visbility:t,position:v,"z-index":35000,border:"0px solid "+y}}),I=Ext.isBorderBox?2:1;H.animate({top:{from:D.y,to:D.y-20},left:{from:D.x,to:D.x-20},borderWidth:{from:0,to:10},opacity:{from:1,to:0},height:{from:D.height,to:D.height+20*I},width:{from:D.width,to:D.width+20*I}},C.duration||1,function(){H.remove();--B>0?E():z.afterFx(C)})}E.call(A)});return A},pause:function(z){var y=this.getFxEl();y.queueFx({},function(){setTimeout(function(){y.afterFx({})},z*1000)});return this},fadeIn:function(A){var z=this,y=z.getFxEl();A=A||{};y.queueFx(A,function(){z.setOpacity(0);z.fixDisplay();z.dom.style.visibility=s;var B=A.endOpacity||1;arguments.callee.anim=z.fxanim({opacity:{to:B}},A,u,0.5,p,function(){if(B==1){this.clearOpacity()}y.afterFx(A)})});return z},fadeOut:function(B){B=B||{};var A=this,z=A.dom.style,y=A.getFxEl(),C=B.endOpacity||0;y.queueFx(B,function(){arguments.callee.anim=A.fxanim({opacity:{to:C}},B,u,0.5,p,function(){if(C==0){A.visibilityMode==Ext.Element.DISPLAY||B.useDisplay?z.display="none":z.visibility=t;A.clearOpacity()}y.afterFx(B)})});return A},scale:function(y,z,B){var A=this;A.shift(Ext.apply({},B,{width:y,height:z}));return A},shift:function(A){var z=this;A=A||{};var y=z.getFxEl();y.queueFx(A,function(){var B={};for(prop in A){if(A[prop]!=x){B[prop]={to:A[prop]}}}B.width?B.width.to=z.adjustWidth(A.width):B;B.height?B.height.to=z.adjustWidth(A.height):B;if(B.x||B.y||B.xy){B.points=B.xy||{to:[B.x?B.x.to:z.getX(),B.y?B.y.to:z.getY()]}}arguments.callee.anim=z.fxanim(B,A,c,0.35,p,function(){y.afterFx(A)})});return z},ghost:function(y,B){var A=this,z=A.getFxEl();B=B||{};y=y||"b";z.queueFx(B,function(){var C=A.getFxRestore();w=A.getWidth(),h=A.getHeight();st=A.dom.style,after=function(){if(B.useDisplay){z.setDisplayed(r)}else{z.hide()}z.clearOpacity();z.setPositioning(C.pos);st.width=C.width;st.width=C.width;z.afterFx(B)},a={opacity:{to:0},points:{}},pt=a.points;pt.by=A.switchStatements(y.toLowerCase(),function(E,D){return[E,D]},{t:[0,-h],l:[-w,0],r:[w,0],b:[0,h],tl:[-w,-h],bl:[-w,h],br:[w,h],tr:[w,-h]});arguments.callee.anim=A.fxanim(a,B,c,0.5,p,after)});return A},syncFx:function(){var y=this;y.fxDefaults=Ext.apply(y.fxDefaults||{},{block:r,concurrent:j,stopFx:r});return y},sequenceFx:function(){var y=this;y.fxDefaults=Ext.apply(y.fxDefaults||{},{block:r,concurrent:r,stopFx:r});return y},nextFx:function(){var y=this.fxQueue[0];if(y){y.call(this)}},hasActiveFx:function(){return this.fxQueue&&this.fxQueue[0]},stopFx:function(y){var z=this;if(z.hasActiveFx()){var A=z.fxQueue[0];if(A&&A.anim&&A.anim.isAnimated){z.fxQueue=[A];A.anim.stop(y!==undefined?y:true)}}return z},beforeFx:function(y){if(this.hasActiveFx()&&!y.concurrent){if(y.stopFx){this.stopFx();return j}return r}return j},hasFxBlock:function(){var y=this.fxQueue;return y&&y[0]&&y[0].block},queueFx:function(B,y){var z=this;if(!z.fxQueue){z.fxQueue=[]}if(!z.hasFxBlock()){Ext.applyIf(B,z.fxDefaults);if(!B.concurrent){var A=z.beforeFx(B);y.block=B.block;z.fxQueue.push(y);if(A){z.nextFx()}}else{y.call(z)}}return z},fxWrap:function(E,C,B){var A=this,z,y;if(!C.wrap||!(z=Ext.get(C.wrap))){if(C.fixPosition){y=A.getXY()}var D=document.createElement("div");D.style.visibility=B;z=Ext.get(A.dom.parentNode.insertBefore(D,A.dom));z.setPositioning(E);if(z.isStyle(n,"static")){z.position("relative")}A.clearPositioning("auto");z.clip();z.dom.appendChild(A.dom);if(y){z.setXY(y)}}return z},fxUnwrap:function(y,B,A){var z=this;z.clearPositioning();z.setPositioning(B);if(!A.wrap){y.dom.parentNode.insertBefore(z.dom,y.dom);y.remove()}},getFxRestore:function(){var y=this.dom.style;return{pos:this.getPositioning(),width:y.width,height:y.height}},afterFx:function(z){var y=this;if(z.afterStyle){y.setStyle(z.afterStyle)}if(z.afterCls){y.addClass(z.afterCls)}if(z.remove==j){y.remove()}if(z.callback){z.callback.call(z.scope,y)}if(!z.concurrent){y.fxQueue.shift();y.nextFx()}},getFxEl:function(){return Ext.get(this.dom)},fxanim:function(B,C,z,D,A,y){z=z||"run";C=C||{};var E=Ext.lib.Anim[z](this.dom,B,(C.duration||D)||0.35,(C.easing||A)||p,y,this);C.anim=E;return E}};Ext.Fx.resize=Ext.Fx.scale;Ext.Element.addMethods(Ext.Fx)})();Ext.CompositeElementLite=function(c,b){this.elements=[];this.add(c,b);this.el=new Ext.Element.Flyweight()};Ext.CompositeElementLite.prototype={isComposite:true,getCount:function(){return this.elements.length},add:function(c){if(c){if(Ext.isArray(c)){this.elements=this.elements.concat(c)}else{var b=this.elements;Ext.each(c,function(d){b.push(d)})}}return this},invoke:function(e,b){var c=this.elements,d=this.el;Ext.each(c,function(g){d.dom=g;Ext.Element.prototype[e].apply(d,b)});return this},item:function(b){var c=this;if(!c.elements[b]){return null}c.el.dom=c.elements[b];return c.el},addListener:function(b,e,d,c){Ext.each(this.elements,function(g){Ext.EventManager.on(g,b,e,d||g,c)});return this},each:function(d,c){var e=this,b=e.el;Ext.each(e.elements,function(j,g){b.dom=j;return d.call(c||b,b,e,g)});return e},indexOf:function(b){return this.elements.indexOf(Ext.getDom(b))},replaceElement:function(g,e,b){var c=!isNaN(g)?g:this.indexOf(g),i;if(c>-1){e=Ext.getDom(e);if(b){i=this.elements[c];i.parentNode.insertBefore(e,i);Ext.removeNode(i)}this.elements.splice(c,1,e)}return this},clear:function(){this.elements=[]}};Ext.CompositeElementLite.prototype.on=Ext.CompositeElementLite.prototype.addListener;(function(){var d,c=Ext.Element.prototype,b=Ext.CompositeElementLite.prototype;for(var d in c){if(Ext.isFunction(c[d])){(function(e){b[e]=b[e]||function(){return this.invoke(e,arguments)}}).call(b,d)}}})();if(Ext.DomQuery){Ext.Element.selectorFunction=Ext.DomQuery.select}Ext.Element.select=function(b,e,c){var d;if(typeof b=="string"){d=Ext.Element.selectorFunction(b,c)}else{if(b.length!==undefined){d=b}else{throw"Invalid selector"}}return new Ext.CompositeElementLite(d)};Ext.select=Ext.Element.select;(function(){var c="beforerequest",l="requestcomplete",k="requestexception",i="load",g="POST",j="GET",e=window;Ext.data.Connection=function(m){Ext.apply(this,m);this.addEvents(c,l,k);Ext.data.Connection.superclass.constructor.call(this)};function b(m){this.transId=false;var n=m.argument.options;m.argument=n?n.argument:null;this.fireEvent(l,this,m,n);if(n.success){n.success.call(n.scope,m,n)}if(n.callback){n.callback.call(n.scope,n,true,m)}}function d(m,o){this.transId=false;var n=m.argument.options;m.argument=n?n.argument:null;this.fireEvent(k,this,m,n,o);if(n.failure){n.failure.call(n.scope,m,n)}if(n.callback){n.callback.call(n.scope,n,false,m)}}Ext.extend(Ext.data.Connection,Ext.util.Observable,{timeout:30000,autoAbort:false,disableCaching:true,disableCachingParam:"_dc",request:function(s){var v=this;if(v.fireEvent(c,v,s)){if(s.el){if(!Ext.isEmpty(s.indicatorText)){v.indicatorText='<div class="loading-indicator">'+s.indicatorText+"</div>"}if(v.indicatorText){Ext.getDom(s.el).innerHTML=v.indicatorText}s.success=(Ext.isFunction(s.success)?s.success:function(){}).createInterceptor(function(o){Ext.getDom(s.el).innerHTML=o.responseText})}var q=s.params,n=s.url||v.url,m,t={success:b,failure:d,scope:v,argument:{options:s},timeout:s.timeout||v.timeout},r,x;if(Ext.isFunction(q)){q=q.call(s.scope||e,s)}q=Ext.urlEncode(v.extraParams,typeof q=="object"?Ext.urlEncode(q):q);if(Ext.isFunction(n)){n=n.call(s.scope||e,s)}if(r=Ext.getDom(s.form)){n=n||r.action;x=Ext.lib.Ajax.serializeForm(r);q=q?(q+"&"+x):x}m=s.method||v.method||((q||s.xmlData||s.jsonData)?g:j);if(m==j&&(v.disableCaching||s.disableCaching!==false)){var u=s.disableCachingParam||v.disableCachingParam;n+=(n.indexOf("?")!=-1?"&":"?")+u+"="+(new Date().getTime())}s.headers=Ext.apply(s.headers||{},v.defaultHeaders||{});if(s.autoAbort===true||v.autoAbort){v.abort()}if((m==j||s.xmlData||s.jsonData)&&q){n+=(/\?/.test(n)?"&":"?")+q;q=""}return v.transId=Ext.lib.Ajax.request(m,n,t,q,s)}else{return s.callback?s.callback.apply(s.scope,[s,,]):null}},isLoading:function(m){return m?Ext.lib.Ajax.isCallInProgress(m):!!this.transId},abort:function(m){if(m||this.isLoading()){Ext.lib.Ajax.abort(m||this.transId)}}})})();Ext.Ajax=new Ext.data.Connection({autoAbort:false,serializeForm:function(b){return Ext.lib.Ajax.serializeForm(b)}});Ext.util.DelayedTask=function(i,j,e){var g=this,c=null,b=c,d,l,k=function(){var m=new Date().getTime();if(m-l>=d){clearInterval(b);b=c;i.apply(j,e||[])}};g.delay=function(n,p,o,m){if(b&&n!=d){this.cancel()}d=n;l=new Date().getTime();i=p||i;j=o||j;e=m||e;if(!b){b=setInterval(k,d)}};g.cancel=function(){if(b){clearInterval(b);b=c}}};

Ext.ns('Ext.ux');

Ext.ux.Menu = Ext.extend(Ext.util.Observable, {
    direction: 'horizontal',
    delay: 0.2,
    autoWidth: true,
    transitionType: 'fade',
    transitionDuration: 0.3,
    animate: true,
    currentClass: 'current',

    constructor: function(elId, config) {
        config = config || {};
        Ext.apply(this, config);

        Ext.ux.Menu.superclass.constructor.call(this, config);

        this.addEvents(
            'show',
            'hide',
            'click'
        );

        this.el = Ext.get(elId);

        this.initMarkup();
        this.initEvents();

        this.setCurrent();
    },

    initMarkup: function(){
        this.container = this.el.wrap({cls: 'ux-menu-container', style: 'z-index: ' + --Ext.ux.Menu.zSeed});
        this.items = this.el.select('li');

        this.el.addClass('ux-menu ux-menu-' + this.direction);
        this.el.select('>li').addClass('ux-menu-item-main');

        this.el.select('li:has(>ul)').addClass('ux-menu-item-parent').each(function(item) {
            item.down('a')
                .addClass('ux-menu-link-parent')
                .createChild({tag: 'span', cls: 'ux-menu-arrow'});
        });
        
        this.el.select('li:first-child>a').addClass('ux-menu-link-first');
        this.el.select('li:last-child>a').addClass('ux-menu-link-last');

        // create clear fixes for the floating stuff
        this.container.addClass('ux-menu-clearfix');

        // if autoWidth make every submenu as wide as its biggest child;
        if(this.autoWidth) {
            this.doAutoWidth();
        }

        var subs = this.el.select('ul');
        subs.addClass('ux-menu-sub');
        
        //ie6 and ie7/ie8 quirksmode need iframes behind the submenus
        if(Ext.isBorderBox || Ext.isIE7) {
            subs.each(function(item) {
                item.parent().createChild({tag: 'iframe', cls: 'ux-menu-ie-iframe'})
                    .setWidth(item.getWidth())
                    .setHeight(item.getHeight());
            });
        }
        
        subs.addClass('ux-menu-hidden');
    },

    initEvents: function() {
        this.showTask = new Ext.util.DelayedTask(this.showMenu, this);
        this.hideTask = new Ext.util.DelayedTask(function() {
            this.showTask.cancel();
            this.hideAll();
            this.fireEvent('hide');
        }, this);

        this.el.hover(function() {
            this.hideTask.cancel();
        }, function() {
            this.hideTask.delay(this.delay*1000);
        }, this);

        // for each item that has a submenu, create a mouseenter function that shows its submenu
        // delay 5 to make sure enter is fired after mouseover
        this.el.select('li.ux-menu-item-parent').on('mouseenter', this.onParentEnter, false, {me: this, delay: 5});

        // listen for mouseover events on items to hide other items submenus and remove hovers
        this.el.on('mouseover', function(ev, t) {
            this.manageSiblings(t);
            // if this item does not have a submenu, the showMenu task for a sibling could potentially still be fired, so cancel it
            if(!Ext.fly(t).hasClass('ux-menu-item-parent')) {
                this.showTask.cancel();
            }
        }, this, {delegate: 'li'});

        this.el.on('click', function(ev, t) {
            return this.fireEvent('click', ev, t, this);
        }, this, {delegate: 'a'})
    },

    onParentEnter: function(ev, link, o) {
        var item = Ext.get(this),
            me = o.me;

        // if this item is in a submenu and contains a submenu, check if the submenu is not still animating
        if(!item.hasClass('ux-menu-item-main') && item.parent('ul').hasActiveFx()) {
            item.parent('ul').stopFx(true);
        }

        // if submenu is already shown dont do anything
        if(!item.child('ul').hasClass('ux-menu-hidden')) {
            return;
        }
        
        me.showTask.delay(me.delay*1000, false, false, [item]);   
    },

    showMenu : function(item) {
        var menu = item.child('ul'),
            x = y = 0;

        item.select('>a').addClass('ux-menu-link-hover');

        // some different configurations require different positioning
        if(this.direction == 'horizontal' && item.hasClass('ux-menu-item-main')) {
            y = item.getHeight()+1;
        }
        else {
            x = item.getWidth()+1;
        }

        // if its ie, force a repaint of the submenu
        if(Ext.isIE) {
            menu.select('ul').addClass('ux-menu-hidden');
            // ie bugs...
            if(Ext.isBorderBox || Ext.isIE7) {
                item.down('iframe').setStyle({left: x + 'px', top: y + 'px', display: 'block'});
            }
        }

        menu.setStyle({left: x + 'px', top: y + 'px'}).removeClass('ux-menu-hidden');

        if(this.animate) {
            switch(this.transitionType) {
                case 'slide':
                    if(this.direction == 'horizontal' && item.hasClass('ux-menu-item-main')) {
                        menu.slideIn('t', {
                            duration: this.transitionDuration
                        });
                    }
                    else {
                        menu.slideIn('l', {
                            duration: this.transitionDuration
                        });
                    }
                break;

                default:
                    menu.setOpacity(0.001).fadeIn({
                        duration: this.transitionDuration
                    });
                break
            }
        }
        
        this.fireEvent('show', item, menu, this);
    },

    manageSiblings: function(item) {
        var item = Ext.get(item);
        item.parent().select('li.ux-menu-item-parent').each(function(child) {
            if(child.dom.id !== item.dom.id) {
                child.select('>a').removeClass('ux-menu-link-hover');
                child.select('ul').stopFx(false).addClass('ux-menu-hidden');
                if (Ext.isBorderBox || Ext.isIE7) {
                    child.select('iframe').setStyle('display', 'none');
                }
            }
        });
    },

    hideAll: function() {
        this.manageSiblings(this.el);
    },
    
    setCurrent: function() {
        var els = this.el.query('.' + this.currentClass);
        if(!els.length) {
            return;
        }
        var item = Ext.get(els[els.length-1]).removeClass(this.currentClass).findParent('li', null, true);
        while(item && item.parent('.ux-menu')) {
            item.down('a').addClass(this.currentClass);
            item = item.parent('li');
        }
    },

    doAutoWidth: function() {
        var fixWidth = function(sub) {
            var widest = 0;
            var items = sub.select('>li');

            sub.setStyle({width: 3000 + 'px'});
            items.each(function(item) {
                widest = Math.max(widest, item.getWidth());
            });

            widest = Ext.isIE ? widest + 1 : widest;
            items.setWidth(widest + 'px');
            sub.setWidth(widest +22+ 'px');
        }

        if(this.direction == 'vertical') {
            this.container.select('ul').each(fixWidth);
        }
        else {
            this.el.select('ul').each(fixWidth);
        }
        
    }
});

Ext.ux.Menu.zSeed = 10000;

function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} 
function printWindow(){
  bV = parseInt(navigator.appVersion);
  if (bV >= 4)
    window.print()
}


Ext.onReady(function() {
    new Ext.ux.Menu('simple-horizontal-menu', {
        transitionType: 'slide',
        direction: 'horizontal',
        delay: 0.2,
        autoWidth: true,
        transitionDuration: 0.3,
        animate: true,
        currentClass: 'current'
    });
});

window.onload = externalLinks;
window.status = "Wkręt-Met";