Ext={version:"3.0"};window.undefined=window.undefined;Ext.apply=function(i,h,c){if(c){Ext.apply(i,c)}if(i&&h&&typeof h=="object"){for(var g in h){i[g]=h[g]}}return i};(function(){var P=0,F=navigator.userAgent.toLowerCase(),A=function(a){return a.test(F)},L=document.compatMode=="CSS1Compat",y=A(/opera/),O=A(/chrome/),E=A(/webkit/),B=!O&&A(/safari/),S=B&&A(/version\/3/),e=B&&A(/version\/4/),G=!y&&A(/msie/),H=G&&A(/msie 7/),I=G&&A(/msie 8/),J=!E&&A(/gecko/),R=J&&A(/rv:1\.9/),D=G&&!L,z=A(/windows|win32/),M=A(/macintosh|mac os x/),N=A(/adobeair/),K=A(/linux/),Q=/^https/i.test(window.location.protocol);if(G&&!(H||I)){try{document.execCommand("BackgroundImageCache",false,true)}catch(C){}}Ext.apply(Ext,{isStrict:L,isSecure:Q,isReady:false,enableGarbageCollector:true,enableListenerCollection:false,USE_NATIVE_JSON:false,applyIf:function(c,b){if(c){for(var a in b){if(Ext.isEmpty(c[a])){c[a]=b[a]}}}return c},id:function(a,b){return(a=Ext.getDom(a)||{}).id=a.id||(b||"ext-gen")+(++P)},extend:function(){var b=function(c){for(var d in c){this[d]=c[d]}};var a=Object.prototype.constructor;return function(d,j,g){if(Ext.isObject(j)){g=j;j=d;d=g.constructor!=a?g.constructor:function(){j.apply(this,arguments)}}var c=function(){},i,h=j.prototype;c.prototype=h;i=d.prototype=new c();i.constructor=d;d.superclass=h;if(h.constructor==a){h.constructor=j}d.override=function(k){Ext.override(d,k)};i.superclass=i.supr=(function(){return h});i.override=b;Ext.override(d,g);d.extend=function(k){Ext.extend(d,k)};return d}}(),override:function(a,b){if(b){var c=a.prototype;Ext.apply(c,b);if(Ext.isIE&&b.toString!=a.toString){c.toString=b.toString}}},namespace:function(){var b,a;Ext.each(arguments,function(c){a=c.split(".");b=window[a[0]]=window[a[0]]||{};Ext.each(a.slice(1),function(d){b=b[d]=b[d]||{}})});return b},urlEncode:function(c,g){var d=[],b,a=encodeURIComponent;for(b in c){Ext.each(c[b]||b,function(i,h){d.push("&",a(b),"=",i!=b?a(i):"")})}if(!g){d.shift();g=""}return g+d.join("")},urlDecode:function(g,i){var d={},h=g.split("&"),c=decodeURIComponent,b,a;Ext.each(h,function(j){j=j.split("=");b=c(j[0]);a=c(j[1]);d[b]=i||!d[b]?a:[].concat(d[b]).concat(a)});return d},toArray:function(){return G?function(b,a,d,c){c=[];Ext.each(b,function(g){c.push(g)});return c.slice(a||0,d||c.length)}:function(a,b,c){return Array.prototype.slice.call(a,b||0,c||a.length)}}(),each:function(g,a,c){if(Ext.isEmpty(g,true)){return}if(typeof g.length=="undefined"||typeof g=="string"){g=[g]}for(var d=0,b=g.length;d<b;d++){if(a.call(c||g[d],g[d],d,g)===false){return d}}},getDom:function(a){if(!a||!document){return null}return a.dom?a.dom:(typeof a=="string"?document.getElementById(a):a)},getBody:function(){return Ext.get(document.body||document.documentElement)},removeNode:G?function(){var a;return function(b){if(b&&b.tagName!="BODY"){a=a||document.createElement("div");a.appendChild(b);a.innerHTML=""}}}():function(a){if(a&&a.parentNode&&a.tagName!="BODY"){a.parentNode.removeChild(a)}},isEmpty:function(b,a){return b===null||b===undefined||((Ext.isArray(b)&&!b.length))||(!a?b==="":false)},isArray:function(a){return Object.prototype.toString.apply(a)==="[object Array]"},isObject:function(a){return a&&typeof a=="object"},isPrimitive:function(a){var b=typeof a;return b=="string"||b=="number"||b=="boolean"},isFunction:function(a){return typeof a=="function"},isOpera:y,isWebKit:E,isChrome:O,isSafari:B,isSafari3:S,isSafari4:e,isSafari2:B&&!S,isIE:G,isIE6:G&&!H&&!I,isIE7:H,isIE8:I,isGecko:J,isGecko2:J&&!R,isGecko3:R,isBorderBox:D,isLinux:K,isWindows:z,isMac:M,isAir:N});Ext.ns=Ext.namespace})();Ext.ns("Ext","Ext.util","Ext.lib","Ext.data");Ext.apply(Function.prototype,{createInterceptor:function(d,e){var g=this;return !Ext.isFunction(d)?this:function(){var a=this,b=arguments;d.target=a;d.method=g;return(d.apply(e||a||window,b)!==false)?g.apply(a||window,b):null}},createCallback:function(){var d=arguments,c=this;return function(){return c.apply(window,d)}},createDelegate:function(i,e,g){var h=this;return function(){var a=e||arguments;if(g===true){a=Array.prototype.slice.call(arguments,0);a=a.concat(e)}else{if(typeof g=="number"){a=Array.prototype.slice.call(arguments,0);var b=[g,0].concat(e);Array.prototype.splice.apply(a,b)}}return h.apply(i||window,a)}},defer:function(k,i,g,h){var j=this.createDelegate(i,g,h);if(k>0){return setTimeout(j,k)}j();return 0}});Ext.applyIf(String,{format:function(c){var d=Ext.toArray(arguments,1);return c.replace(/\{(\d+)\}/g,function(b,a){return d[a]})}});Ext.applyIf(Array.prototype,{indexOf:function(g){for(var d=0,e=this.length;d<e;d++){if(this[d]==g){return d}}return -1},remove:function(c){var d=this.indexOf(c);if(d!=-1){this.splice(d,1)}return this}});Ext.util.TaskRunner=function(o){o=o||10;var n=[],s=[],r=0,m=false,p=function(){m=false;clearInterval(r);r=0},l=function(){if(!m){m=true;r=setInterval(k,o)}},q=function(a){s.push(a);if(a.onStop){a.onStop.apply(a.scope||a)}},k=function(){var a=s.length,g=new Date().getTime();if(a>0){for(var d=0;d<a;d++){n.remove(s[d])}s=[];if(n.length<1){p();return}}for(var d=0,e,b,h,c=n.length;d<c;++d){e=n[d];b=g-e.taskRunTime;if(e.interval<=b){h=e.run.apply(e.scope||e,e.args||[++e.taskRunCount]);e.taskRunTime=g;if(h===false||e.taskRunCount===e.repeat){q(e);return}}if(e.duration&&e.duration<=(g-e.taskStartTime)){q(e)}}};this.start=function(a){n.push(a);a.taskStartTime=new Date().getTime();a.taskRunTime=0;a.taskRunCount=0;l();return a};this.stop=function(a){q(a);return a};this.stopAll=function(){p();for(var a=0,b=n.length;a<b;a++){if(n[a].onStop){n[a].onStop()}}n=[];s=[]}};Ext.TaskMgr=new Ext.util.TaskRunner();(function(){var d;function g(a){if(!d){d=new Ext.Element.Flyweight()}d.dom=a;return d}(function(){var b=document,i=b.compatMode=="CSS1Compat",c=Math.max,a=parseInt;Ext.lib.Dom={isAncestor:function(l,h){var m=false;l=Ext.getDom(l);h=Ext.getDom(h);if(l&&h){if(l.contains){return l.contains(h)}else{if(l.compareDocumentPosition){return !!(l.compareDocumentPosition(h)&16)}else{while(h=h.parentNode){m=h==l||m}}}}return m},getViewWidth:function(h){return h?this.getDocumentWidth():this.getViewportWidth()},getViewHeight:function(h){return h?this.getDocumentHeight():this.getViewportHeight()},getDocumentHeight:function(){return c(!i?b.body.scrollHeight:b.documentElement.scrollHeight,this.getViewportHeight())},getDocumentWidth:function(){return c(!i?b.body.scrollWidth:b.documentElement.scrollWidth,this.getViewportWidth())},getViewportHeight:function(){return Ext.isIE?(Ext.isStrict?b.documentElement.clientHeight:b.body.clientHeight):self.innerHeight},getViewportWidth:function(){return !Ext.isStrict&&!Ext.isOpera?b.body.clientWidth:Ext.isIE?b.documentElement.clientWidth:self.innerWidth},getY:function(h){return this.getXY(h)[1]},getX:function(h){return this.getXY(h)[0]},getXY:function(A){var B,p,G,D,z,y,E=0,h=0,F,C,x=(b.body||b.documentElement),w=[0,0];A=Ext.getDom(A);if(A!=x){if(A.getBoundingClientRect){G=A.getBoundingClientRect();F=g(document).getScroll();w=[G.left+F.left,G.top+F.top]}else{B=A;C=g(A).isStyle("position","absolute");while(B){p=g(B);E+=B.offsetLeft;h+=B.offsetTop;C=C||p.isStyle("position","absolute");if(Ext.isGecko){h+=D=a(p.getStyle("borderTopWidth"),10)||0;E+=z=a(p.getStyle("borderLeftWidth"),10)||0;if(B!=A&&!p.isStyle("overflow","visible")){E+=z;h+=D}}B=B.offsetParent}if(Ext.isSafari&&C){E-=x.offsetLeft;h-=x.offsetTop}if(Ext.isGecko&&!C){y=g(x);E+=a(y.getStyle("borderLeftWidth"),10)||0;h+=a(y.getStyle("borderTopWidth"),10)||0}B=A.parentNode;while(B&&B!=x){if(!Ext.isOpera||(B.tagName!="TR"&&!g(B).isStyle("display","inline"))){E-=B.scrollLeft;h-=B.scrollTop}B=B.parentNode}w=[E,h]}}return w},setXY:function(p,o){(p=Ext.fly(p,"_setXY")).position();var n=p.translatePoints(o),q=p.dom.style,h;for(h in n){if(!isNaN(n[h])){q[h]=n[h]+"px"}}},setX:function(h,k){this.setXY(h,[k,false])},setY:function(k,h){this.setXY(k,[false,h])}}})();Ext.lib.Event=function(){var G=false,J=[],aa=[],a=0,R=[],ac,O=false,W=window,I=document,V=200,N=20,Q=0,P=1,Y=2,U=3,L=3,F=4,ab=function(){var h;if(W.addEventListener){h=function(i,k,j,l){if(k=="mouseenter"){j=j.createInterceptor(S);i.addEventListener("mouseover",j,(l))}else{if(k=="mouseleave"){j=j.createInterceptor(S);i.addEventListener("mouseout",j,(l))}else{i.addEventListener(k,j,(l))}}return j}}else{if(W.attachEvent){h=function(i,k,j,l){i.attachEvent("on"+k,j);return j}}else{h=function(){}}}return h}(),Z=function(){var h;if(W.removeEventListener){h=function(i,k,j,l){if(k=="mouseenter"){k="mouseover"}else{if(k=="mouseleave"){k="mouseout"}}i.removeEventListener(k,j,(l))}}else{if(W.detachEvent){h=function(i,k,j){i.detachEvent("on"+k,j)}}else{h=function(){}}}return h}();function S(h){var i=h.relatedTarget,j=Object.prototype.toString.apply(i)=="[object XULElement]";if(!i){return false}return(!j&&i!=this&&this.tag!="document"&&!H(this,i))}function H(j,h){while(h){if(h===j){return true}try{h=h.parentNode}catch(i){return false}if(h&&(h.nodeType!=1)){h=null}}return false}function b(h,k,i){var j=-1;Ext.each(J,function(m,l){if(m&&m[Y]==i&&m[Q]==h&&m[P]==k){j=l}});return j}function M(){var k=false,h=[],j,i=!G||(a>0);if(!O){O=true;Ext.each(R,function(m,l,n){if(m&&(j=I.getElementById(m.id))){if(!m.checkReady||G||j.nextSibling||(I&&I.body)){j=m.override?(m.override===true?m.obj:m.override):j;m.fn.call(j,m.obj);R[l]=null}else{h.push(item)}}});a=(h.length==0)?0:a-1;if(i){T()}else{clearInterval(ac);ac=null}k=!(O=false)}return k}function T(){if(!ac){var h=function(){M()};ac=setInterval(h,c.POLL_INTERVAL)}}function K(){var h=Ext.get(I).getScroll();return[h.top,h.top]}function X(j,i){j=j.browserEvent||j;var h=j["page"+i];if(!h&&0!=h){h=j["client"+i]||0;if(Ext.isIE){h+=K()[i=="X"?0:1]}}return h}var c={onAvailable:function(i,k,h,j){R.push({id:i,fn:k,obj:h,override:j,checkReady:false});a=this.POLL_RETRYS;T()},addListener:function(h,k,i){var j;h=Ext.getDom(h);if(h&&i){if("unload"==k){j=!!(aa[aa.length]=[h,k,i])}else{J.push([h,k,i,j=ab(h,k,i,false)])}}return !!j},removeListener:function(h,l,i){var j=false,k,m;h=Ext.getDom(h);if(!i){j=this.purgeElement(h,false,l)}else{if("unload"==l){Ext.each(aa,function(p,o,n){if(p&&p[0]==h&&p[1]==evantName&&p[2]==i){aa.splice(o,1);j=true}})}else{k=arguments[3]||b(h,l,i);m=J[k];if(h&&m){Z(h,l,m[U],false);m[U]=m[Y]=null;J.splice(k,1);j=true}}}return j},getTarget:function(h){h=h.browserEvent||h;return this.resolveTextNode(h.target||h.srcElement)},resolveTextNode:function(h){return Ext.isSafari&&h&&3==h.nodeType?h.parentNode:h},getPageX:function(h){return X(h,"X")},getPageY:function(h){return X(h,"Y")},getXY:function(h){return[this.getPageX(h),this.getPageY(h)]},getRelatedTarget:function(h){h=h.browserEvent||h;return this.resolveTextNode(h.relatedTarget||(h.type=="mouseout"?h.toElement:h.type=="mouseover"?h.fromElement:null))},stopEvent:function(h){this.stopPropagation(h);this.preventDefault(h)},stopPropagation:function(h){h=h.browserEvent||h;if(h.stopPropagation){h.stopPropagation()}else{h.cancelBubble=true}},preventDefault:function(h){h=h.browserEvent||h;if(h.preventDefault){h.preventDefault()}else{h.returnValue=false}},getEvent:function(i){i=i||W.event;if(!i){var h=this.getEvent.caller;while(h){i=h.arguments[0];if(i&&Event==i.constructor){break}h=h.caller}}return i},getCharCode:function(h){h=h.browserEvent||h;return h.charCode||h.keyCode||0},_load:function(h){G=true;var i=Ext.lib.Event;if(Ext.isIE&&h!==true){Z(W,"load",i._load)}},purgeElement:function(j,h,k){var i=this;Ext.each(i.getListeners(j,k),function(l){if(l){i.removeListener(j,l.type,l.fn)}});if(h&&j&&j.childNodes){Ext.each(j.childNodes,function(l){i.purgeElement(l,h,k)})}},getListeners:function(i,k){var h=this,j=[],l=[J,aa];if(k){l.splice(k=="unload"?0:1,1)}else{l=l[0].concat(l[1])}Ext.each(l,function(n,m){if(n&&n[h.EL]==i&&(!k||k==n[h.type])){j.push({type:n[P],fn:n[Y],obj:n[L],adjust:n[F],index:m})}});return j.length?j:null},_unload:function(o){var h=Ext.lib.Event,j,k,m,n,l,i;Ext.each(aa,function(p){if(p){i=p[F]?(p[F]===true?p[L]:p[F]):W;p[Y].call(i,h.getEvent(o),p[L])}});aa=null;if(J&&(k=J.length)){while(k){if(m=J[l=--k]){h.removeListener(m[Q],m[P],m[Y],l)}}}Z(W,"unload",h._unload)}};c.on=c.addListener;c.un=c.removeListener;if(I&&I.body){c._load(true)}else{ab(W,"load",c._load)}ab(W,"unload",c._unload);M();return c}();Ext.lib.Ajax=function(){var w=["MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];function v(i){var j=i.conn,h;function k(m,l){for(h in l){if(l.hasOwnProperty(h)){m.setRequestHeader(h,l[h])}}}if(s.defaultHeaders){k(j,s.defaultHeaders)}if(s.headers){k(j,s.headers);s.headers=null}}function y(h,i,j,k){return{tId:h,status:j?-1:0,statusText:j?"transaction aborted":"communication failure",isAbort:true,isTimeout:true,argument:i}}function t(i,h){(s.headers=s.headers||{})[i]=h}function b(h,j){var m={},l,k=h.conn;try{l=h.conn.getAllResponseHeaders();Ext.each(l.split("\n"),function(o){var n=o.split(":");m[n[0]]=n[1]})}catch(i){}return{tId:h.tId,status:k.status,statusText:k.statusText,getResponseHeader:m,getAllResponseHeaders:l,responseText:k.responseText,responseXML:k.responseXML,argument:j}}function c(h){h.conn=null;h=null}function x(i,h,m,n){if(!h){c(i);return}var k,l;try{if(i.conn.status!==undefined&&i.conn.status!=0){k=i.conn.status}else{k=13030}}catch(j){k=13030}if((k>=200&&k<300)||(Ext.isIE&&k==1223)){l=b(i,h.argument);if(h.success){if(!h.scope){h.success(l)}else{h.success.apply(h.scope,[l])}}}else{switch(k){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:l=y(i.tId,h.argument,(m?m:false),n);if(h.failure){if(!h.scope){h.failure(l)}else{h.failure.apply(h.scope,[l])}}break;default:l=b(i,h.argument);if(h.failure){if(!h.scope){h.failure(l)}else{h.failure.apply(h.scope,[l])}}}}c(i);l=null}function q(k,h){h=h||{};var m=k.conn,i=k.tId,l=s.poll,j=h.timeout||null;if(j){s.timeout[i]=setTimeout(function(){s.abort(k,h,true)},j)}l[i]=setInterval(function(){if(m&&m.readyState==4){clearInterval(l[i]);l[i]=null;if(j){clearTimeout(s.timeout[i]);s.timeout[i]=null}x(k,h)}},s.pollInterval)}function u(h,k,i,l){var j=r()||null;if(j){j.conn.open(h,k,true);if(s.useDefaultXhrHeader){t("X-Requested-With",s.defaultXhrHeader)}if(l&&s.useDefaultHeader&&(!s.headers||!s.headers["Content-Type"])){t("Content-Type",s.defaultPostHeader)}if(s.defaultHeaders||s.headers){v(j)}q(j,i);j.conn.send(l||null)}return j}function r(){var h;try{if(h=a(s.transactionId)){s.transactionId++}}catch(i){}finally{return h}}function a(h){var k;try{k=new XMLHttpRequest()}catch(i){for(var j=0;j<w.length;++j){try{k=new ActiveXObject(w[j]);break}catch(i){}}}finally{return{conn:k,tId:h}}}var s={request:function(h,j,o,i,n){if(n){var k=this,l=n.xmlData,m=n.jsonData;Ext.applyIf(k,n);if(l||m){t("Content-Type",l?"text/xml":"application/json");i=l||Ext.encode(m)}}return u(h||n.method||"POST",j,o,i)},serializeForm:function(h){var A=h.elements||(document.forms[h]||Ext.getDom(h)).elements,k=false,l=encodeURIComponent,n,j,i,p,o="",m;Ext.each(A,function(z){i=z.name;m=z.type;if(!z.disabled&&i){if(/select-(one|multiple)/i.test(m)){Ext.each(z.options,function(C){if(C.selected){o+=String.format("{0}={1}&",l(i),(C.hasAttribute?C.hasAttribute("value"):C.getAttribute("value")!==null)?C.value:C.text)}})}else{if(!/file|undefined|reset|button/i.test(m)){if(!(/radio|checkbox/i.test(m)&&!z.checked)&&!(m=="submit"&&k)){o+=l(i)+"="+l(z.value)+"&";k=/submit/i.test(m)}}}}});return o.substr(0,o.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(j,h,m){var k=this,i=j.tId,l=false;if(k.isCallInProgress(j)){j.conn.abort();clearInterval(k.poll[i]);k.poll[i]=null;if(m){k.timeout[i]=null}x(j,h,(l=true),m)}return l},isCallInProgress:function(h){return h.conn&&!{0:true,4:true}[h.conn.readyState]}};return s}();(function(){var a=Ext.lib,c=/width|height|opacity|padding/i,i=/width|height|top$|bottom$|left$|right$/i,b=/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i;a.Anim={motion:function(o,q,h,s,r,p){return this.run(o,q,h,s,r,p,a.Motion)},run:function(h,s,v,u,t,q,r){r=r||a.AnimBase;var w=new r(h,s,v,a.Easing[u]||u);w.animate(function(){if(t){t.call(q)}});return w}};a.AnimBase=function(n,o,m,h){if(n){this.init(n,o,m,h)}};a.AnimBase.prototype={doMethod:function(o,h,n){var m=this;return m.method(m.curFrame,h,n-h,m.totalFrames)},setAttr:function(m,h,l){if(c.test(m)&&h<0){h=0}Ext.fly(this.el,"_anim").setStyle(m,h+l)},getAttr:function(n){var h=g(this.el),m=h.getStyle(n),o;if(m!=="auto"&&!b.test(m)){return parseFloat(m)}o=h["get"+n.charAt(0).toUpperCase()+n.substr(1)];return o?o.call(h):0},setRunAttr:function(x){var v=this,y=Ext.isEmpty,u=v.attrs[x],C=u.unit,w=u.by,t=u.from,h=u.to,A=(v.runAttrs[x]={}),B,z;if(y(h)&&y(w)){return false}B=!y(t)?t:v.getAttr(x);z=!y(h)?h:[];if(!y(w)){if(Ext.isArray(B)){Ext.each(B,function(l,k,j){z[k]=l+w[k]})}else{z=B+w}}A.start=B;A.end=z;A.unit=!y(C)?C:(i.test(x)?"px":"")},init:function(z,A,v,B){var t=this,x=0,w=a.Easing,h=a.AnimMgr;t.attrs=A||{};t.dur=v||1;t.method=B||w.easeNone;t.useSec=true;t.curFrame=0;t.totalFrames=h.fps;t.el=Ext.getDom(z);t.isAnimated=false;t.startTime=null;t.runAttrs={};t.animate=function(j,m){function k(){var n=this;n.onComplete.removeListener(k);if(typeof j=="function"){j.call(m||n,n)}}var l=this;l.onComplete.addListener(k,l);l.curFrame=0;l.totalFrames=(l.useSec)?Math.ceil(h.fps*v):v;if(!l.isAnimated){h.registerElement(l)}};t.stop=function(j){if(j){t.curFrame=t.totalFrames;t._onTween.fire()}h.stop(t)};function C(){t.onStart.fire();t.runAttrs={};for(var j in t.attrs){t.setRunAttr(j)}t.isAnimated=!!(t.startTime=new Date());x=0}function u(){t.onTween.fire({duration:new Date()-t.startTime,curFrame:t.curFrame});for(var k in t.runAttrs){var j=t.runAttrs[k];t.setAttr(k,t.doMethod(k,j.start,j.end),j.unit)}x++}function y(){t.isAnimated=false;t.onComplete.fire({duration:(new Date()-t.startTime)/1000,frames:x,fps:x/this.duration});x=0}t.onStart=new Ext.util.Event(t);t.onTween=new Ext.util.Event(t);t.onComplete=new Ext.util.Event(t);(t._onStart=new Ext.util.Event(t)).addListener(C);(t._onTween=new Ext.util.Event(t)).addListener(u);(t._onComplete=new Ext.util.Event(t)).addListener(y)}};a.AnimMgr=function(){var m=new Ext.util.TaskRunner(),h;function l(j){var t=j.totalFrames,u=j.curFrame,v=j.dur,w=(u*v*1000/t),k=(new Date()-j.startTime),s=0;if(k<v*1000){s=Math.round((k/w-1)*u)}else{s=t-(u+1)}if(s>0&&isFinite(s)){if(u+s>=t){s=t-(u+1)}j.curFrame+=s}}h={fps:1000,delay:1,registerElement:function(j){j.run=function(k){if(!k||!k.isAnimated){return}if(k.curFrame++<k.totalFrames){if(k.useSec){l(k)}k._onTween.fire()}else{h.stop(k)}};j.args=[j];j.scope=h;j.onStop=function(){j._onComplete.fire()};j.interval=h.delay;m.start(j);j._onStart.fire()},stop:function(j){m.stop(j)}};return h}();a.Easing={easeNone:function(n,o,h,m){return h*n/m+o},easeIn:function(n,o,h,m){return h*(n/=m)*n+o},easeOut:function(n,o,h,m){return -h*(n/=m)*(n-2)+o}};(function(){function l(u,w){var k=u.length,x=u.slice(0),t=(1-w),y,j;for(j=1;j<k;++j){for(y=0;y<k-j;++y){var v=x[y];v[0]=t*v[0]+w*x[y+1][0];v[1]=t*v[1]+w*x[y+1][1]}}return[x[0][0],x[0][1]]}a.Motion=function(j,k,q,p){if(j){a.Motion.superclass.constructor.call(this,j,k,q,p)}};Ext.extend(a.Motion,a.AnimBase);var h=a.Motion.superclass,m=/^points$/i;Ext.apply(a.Motion.prototype,{setAttr:function(k,q,r){var j=h.setAttr,s=this;if(m.test(k)){r=r||"px";j.call(s,"left",q[0],r);j.call(s,"top",q[1],r)}else{j.call(s,k,q,r)}},getAttr:function(k){var j=h.getAttr,o=this;return m.test(k)?[j.call(o,"left"),j.call(o,"top")]:j.call(o,k)},doMethod:function(k,p,j){var q=this;return m.test(k)?l(q.runAttrs[k],q.method(q.curFrame,0,100,q.totalFrames)/100):h.doMethod.call(q,k,p,j)},setRunAttr:function(j){var E=this;if(m.test(j)){var z=E.el,B=E.attrs,C=B.points,x=C.control||[],k=E.runAttrs,w=a.Dom.getXY,D=B.points.from||w(z),A;function y(o,p,q){var n=q?w(E.el):[0,0];return o?[(o[0]||0)-n[0]+p[0],(o[1]||0)-n[1]+p[1]]:null}x=typeof x=="string"?[x]:Ext.toArray(x);Ext.fly(z,"_anim").position();a.Dom.setXY(z,D);k[j]=[A=E.getAttr("points")].concat(x);k[j].push(y(C.to||C.by||null,A,!Ext.isEmpty(C.to)))}else{h.setRunAttr.call(E,j)}}})})()})();(function(){var m=Math.abs,a=Math.PI,b=Math.asin,c=Math.pow,l=Math.sin,k=Ext.lib;Ext.apply(k.Easing,{easeBoth:function(i,j,o,h){return((i/=h/2)<1)?o/2*i*i+j:-o/2*((--i)*(i-2)-1)+j},easeInStrong:function(i,j,o,h){return o*(i/=h)*i*i*i+j},easeOutStrong:function(i,j,o,h){return -o*((i=i/h-1)*i*i*i-1)+j},easeBothStrong:function(i,j,o,h){return((i/=h/2)<1)?o/2*i*i*i*i+j:-o/2*((i-=2)*i*i*i-2)+j},elasticIn:function(h,j,p,s,i,t){if(h==0||(h/=s)==1){return h==0?j:j+p}t=t||(s*0.3);var u;if(i>=m(p)){u=t/(2*a)*b(p/i)}else{i=p;u=t/4}return -(i*c(2,10*(h-=1))*l((h*s-u)*(2*a)/t))+j},elasticOut:function(h,j,p,s,i,t){if(h==0||(h/=s)==1){return h==0?j:j+p}t=t||(s*0.3);var u;if(i>=m(p)){u=t/(2*a)*b(p/i)}else{i=p;u=t/4}return i*c(2,-10*h)*l((h*s-u)*(2*a)/t)+p+j},elasticBoth:function(h,j,p,s,i,t){if(h==0||(h/=s/2)==2){return h==0?j:j+p}t=t||(s*(0.3*1.5));var u;if(i>=m(p)){u=t/(2*a)*b(p/i)}else{i=p;u=t/4}return h<1?-0.5*(i*c(2,10*(h-=1))*l((h*s-u)*(2*a)/t))+j:i*c(2,-10*(h-=1))*l((h*s-u)*(2*a)/t)*0.5+p+j},backIn:function(i,j,p,q,h){h=h||1.70158;return p*(i/=q)*i*((h+1)*i-h)+j},backOut:function(i,j,p,q,h){if(!h){h=1.70158}return p*((i=i/q-1)*i*((h+1)*i+h)+1)+j},backBoth:function(i,j,p,q,h){h=h||1.70158;return((i/=q/2)<1)?p/2*(i*i*(((h*=(1.525))+1)*i-h))+j:p/2*((i-=2)*i*(((h*=(1.525))+1)*i+h)+2)+j},bounceIn:function(i,j,o,h){return o-k.Easing.bounceOut(h-i,0,o,h)+j},bounceOut:function(i,j,o,h){if((i/=h)<(1/2.75)){return o*(7.5625*i*i)+j}else{if(i<(2/2.75)){return o*(7.5625*(i-=(1.5/2.75))*i+0.75)+j}else{if(i<(2.5/2.75)){return o*(7.5625*(i-=(2.25/2.75))*i+0.9375)+j}}}return o*(7.5625*(i-=(2.625/2.75))*i+0.984375)+j},bounceBoth:function(i,j,o,h){return(i<h/2)?k.Easing.bounceIn(i*2,0,o,h)*0.5+j:k.Easing.bounceOut(i*2-h,0,o,h)*0.5+o*0.5+j}})})();(function(){var c=Ext.lib;c.Anim.color=function(h,p,s,r,q,i){return c.Anim.run(h,p,s,r,q,i,c.ColorAnim)};c.ColorAnim=function(n,o,i,h){c.ColorAnim.superclass.constructor.call(this,n,o,i,h)};Ext.extend(c.ColorAnim,c.AnimBase);var a=c.ColorAnim.superclass,k=/color$/i,j=/^transparent|rgba\(0, 0, 0, 0\)$/;function b(m){var i=parseInt,h;if(m.length==3){h=m}else{if(m.charAt(0)=="r"){h=m.replace(/[^0-9,]/g,"").split(",");h=[i(h[1],10),i(h[2],10),i(h[3],10)]}else{if(m.length<6){h=m.replace("#","").match(/./g);h=[i(h[0]+h[0],16),i(h[1]+h[1],16),i(h[2]+h[2],16)]}else{h=m.replace("#","").match(/./g);h=[i(h[0]+h[1],16),i(h[2]+h[3],16),i(h[4]+h[5],16)]}}}return h}Ext.apply(c.ColorAnim.prototype,{getAttr:function(o){var i=this,n=i.el,h;if(k.test(o)){while(n&&j.test(h=g(n).getStyle(o))){n=n.parentNode;h="fff"}}else{h=a.getAttr.call(i,o)}return h},doMethod:function(q,r,p){var h=this,s,i=Math.floor;if(k.test(q)){s=[];Ext.each(r,function(m,l){s[l]=a.doMethod.call(h,q,m,p[l])});s="rgb("+i(s[0])+","+i(s[1])+","+i(s[2])+")"}else{s=a.doMethod.call(h,q,r,p)}return s},setRunAttr:function(r){var h=this,t=Ext.isEmpty;a.setRunAttr.call(h,r);if(k.test(r)){var i=h.attrs[r],u=h.runAttrs[r],s=b(u.start),q=b(u.end);if(t(i.to)&&!t(i.by)){q=b(i.by);Ext.each(s,function(m,l){q[l]=m+q[l]})}u.start=s;u.end=q}}})})();(function(){var i=Ext.lib;i.Anim.scroll=function(o,q,h,s,r,p){return i.Anim.run(o,q,h,s,r,p,i.Scroll)};i.Scroll=function(n,o,m,h){if(n){i.Scroll.superclass.constructor.call(this,n,o,m,h)}};Ext.extend(i.Scroll,i.ColorAnim);var c=Ext.lib,a=i.Scroll.superclass,b="scroll";Ext.apply(i.Scroll.prototype,{toString:function(){var h=this.el;return("Scroll "+(h.id||h.tagName))},doMethod:function(s,t,r){var h,p=this,u=p.curFrame,q=p.totalFrames;if(s==b){h=[p.method(u,t[0],r[0]-t[0],q),p.method(u,t[1],r[1]-t[1],q)]}else{h=a.doMethod.call(p,s,t,r)}return h},getAttr:function(m){var h=null,l=this;if(m==b){h=[l.el.scrollLeft,l.el.scrollTop]}else{h=a.getAttr.call(l,m)}return h},setAttr:function(o,h,m){var n=this;if(o==b){n.el.scrollLeft=h[0];n.el.scrollTop=h[1]}else{a.setAttr.call(n,o,h,m)}}})})();if(Ext.isIE){function e(){var a=Function.prototype;delete a.createSequence;delete a.defer;delete a.createDelegate;delete a.createCallback;delete a.createInterceptor;window.detachEvent("onunload",e)}window.attachEvent("onunload",e)}})();(function(){var p=Ext.util,m=Ext.toArray,n=Ext.each,w=Ext.isObject,q=true,o=false;p.Observable=function(){var a=this,b=a.events;if(a.listeners){a.on(a.listeners);delete a.listeners}a.events=b||{}};p.Observable.prototype=function(){var b=/^(?:scope|delay|buffer|single)$/,a=function(c){return c.toLowerCase()};return{fireEvent:function(){var j=m(arguments),h=a(j[0]),g=this,i=q,d=g.events[h],e,c;if(g.eventsSuspended===q){if(e=g.suspendedEventsQueue){e.push(j)}}else{if(w(d)&&d.bubble){if(d.fire.apply(d,j.slice(1))===o){return o}c=g.getBubbleTarget&&g.getBubbleTarget();if(c&&c.enableBubble){c.enableBubble(h);return c.fireEvent.apply(c,j)}}else{if(w(d)){j.shift();i=d.fire.apply(d,j)}}}return i},addListener:function(c,j,h,d){var k=this,l,g,i,e;if(w(c)){d=c;for(l in d){g=d[l];if(!b.test(l)){k.addListener(l,g.fn||g,g.scope||d.scope,g.fn?g:d)}}}else{c=a(c);e=k.events[c]||q;if(typeof e=="boolean"){k.events[c]=e=new p.Event(k,c)}e.addListener(j,h,w(d)?d:{})}},removeListener:function(g,d,e){var c=this.events[a(g)];if(w(c)){c.removeListener(d,e)}},purgeListeners:function(){var c=this.events,e,d;for(d in c){e=c[d];if(w(e)){e.clearListeners()}}},addEvents:function(c){var d=this;d.events=d.events||{};if(typeof c=="string"){n(arguments,function(e){d.events[e]=d.events[e]||q})}else{Ext.applyIf(d.events,c)}},hasListener:function(d){var c=this.events[d];return w(c)&&c.listeners.length>0},suspendEvents:function(c){this.eventsSuspended=q;if(c){this.suspendedEventsQueue=[]}},resumeEvents:function(){var c=this;c.eventsSuspended=!delete c.suspendedEventQueue;n(c.suspendedEventsQueue,function(d){c.fireEvent.apply(c,d)})}}}();var s=p.Observable.prototype;s.on=s.addListener;s.un=s.removeListener;p.Observable.releaseCapture=function(a){a.fireEvent=s.fireEvent};function r(c,b,a){return function(){if(b.target==arguments[0]){c.apply(a,m(arguments))}}}function u(c,b,d){var a=new p.DelayedTask();return function(){a.delay(b.buffer,c,d,m(arguments))}}function t(c,b,d,a){return function(){b.removeListener(d,a);return c.apply(a,arguments)}}function v(c,b,a){return function(){var d=m(arguments);(function(){c.apply(a,d)}).defer(b.delay||10)}}p.Event=function(b,a){this.name=a;this.obj=b;this.listeners=[]};p.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=r(e,b,d)}if(b.delay){e=v(e,b,d)}if(b.single){e=t(e,this,c,d)}if(b.buffer){e=u(e,b,d)}a.fireFn=e;return a},findListener:function(b,c){var d,a=-1;n(this.listeners,function(g,e){d=g.scope;if(g.fn==b&&(d==c||d==this.obj)){a=e;return o}},this);return a},isListening:function(b,a){return this.findListener(b,a)!=-1},removeListener:function(c,d){var e,b=this,a=o;if((e=b.findListener(c,d))!=-1){if(b.firing){b.listeners=b.listeners.slice(0)}b.listeners.splice(e,1);a=q}return a},clearListeners:function(){this.listeners=[]},fire:function(){var b=this,c=m(arguments),a=q;n(b.listeners,function(d){b.firing=q;if(d.fireFn.apply(d.scope||b.obj||window,c)===o){return a=b.firing=o}});b.firing=o;return a}}})();Ext.DomHelper=function(){var t=null,C=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,A=/^table|tbody|tr|td$/i,w,z="afterbegin",y="afterend",I="beforebegin",x="beforeend",K="<table>",E="</table>",J=K+"<tbody>",D="</tbody>"+E,B=J+"<tr>",u="</tr>"+D;function F(b,h,a,g,c,e){var d=w.insertHtml(g,Ext.getDom(b),v(h));return a?Ext.get(d,true):d}function v(h){var c="",d,a,b,e,g;if(typeof h=="string"){c=h}else{if(Ext.isArray(h)){Ext.each(h,function(i){c+=v(i)})}else{c+="<"+(h.tag=h.tag||"div");for(d in h){a=h[d];if(!/tag|children|cn|html$/i.test(d)&&!Ext.isFunction(a)){if(Ext.isObject(a)){c+=" "+d+"='";for(b in a){e=a[b];c+=!Ext.isFunction(e)?b+":"+e+";":""}c+="'"}else{c+=" "+({cls:"class",htmlFor:"for"}[d]||d)+"='"+a+"'"}}}if(C.test(h.tag)){c+="/>"}else{c+=">";if(g=h.children||h.cn){c+=v(g)}else{if(h.html){c+=h.html}}c+="</"+h.tag+">"}}}return c}function G(g,b,c,a){t.innerHTML=[b,c,a].join("");var e=-1,d=t;while(++e<g){d=d.firstChild}return d}function H(e,d,b,c){var a,g;t=t||document.createElement("div");if(e=="td"&&(d==z||d==x)||!/td|tr|tbody/i.test(e)&&(d==I||d==y)){return}g=d==I?b:d==y?b.nextSibling:d==z?b.firstChild:null;if(d==I||d==y){b=b.parentNode}if(e=="td"||(e=="tr"&&(d==x||d==z))){a=G(4,B,c,u)}else{if((e=="tbody"&&(d==x||d==z))||(e=="tr"&&(d==I||d==y))){a=G(3,J,c,D)}else{a=G(2,K,c,E)}}b.insertBefore(a,g);return a}w={markup:function(a){return v(a)},insertHtml:function(e,k,d){var g={},i,b,c,a,h,j;e=e.toLowerCase();g[I]=["BeforeBegin","previousSibling"];g[y]=["AfterEnd","nextSibling"];if(k.insertAdjacentHTML){if(A.test(k.tagName)&&(j=H(k.tagName.toLowerCase(),e,k,d))){return j}g[z]=["AfterBegin","firstChild"];g[x]=["BeforeEnd","lastChild"];if(i=g[e]){k.insertAdjacentHTML(i[0],d);return k[i[1]]}}else{c=k.ownerDocument.createRange();b="setStart"+(/end/i.test(e)?"After":"Before");if(g[e]){c[b](k);a=c.createContextualFragment(d);k.parentNode.insertBefore(a,e==I?k:k.nextSibling);return k[(e==I?"previous":"next")+"Sibling"]}else{h=(e==z?"first":"last")+"Child";if(k.firstChild){c[b](k[h]);a=c.createContextualFragment(d);e==z?k.insertBefore(a,k.firstChild):k.appendChild(a)}else{k.innerHTML=d}return k[h]}}throw'Illegal insertion point -> "'+e+'"'},insertBefore:function(c,a,b){return F(c,a,b,I)},insertAfter:function(c,a,b){return F(c,a,b,y,"nextSibling")},insertFirst:function(c,a,b){return F(c,a,b,z,"firstChild")},append:function(c,a,b){return F(c,a,b,x,"",true)},overwrite:function(c,a,b){c=Ext.getDom(c);c.innerHTML=v(a);return b?Ext.get(c.firstChild):c.firstChild},createHtml:v};return w}();Ext.Template=function(h){var g=this,a=arguments,i=[];if(Ext.isArray(h)){h=h.join("")}else{if(a.length>1){Ext.each(a,function(b){if(Ext.isObject(b)){Ext.apply(g,b)}else{i.push(b)}});h=i.join("")}}g.html=h;if(g.compiled){g.compile()}};Ext.Template.prototype={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},re:/\{([\w-]+)\}/g,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(k,i,g,h){i=Ext.getDom(i);var j=Ext.DomHelper.insertHtml(k,i,this.applyTemplate(g));return h?Ext.get(j,true):j},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(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++){if(ci.nodeType!=1){continue}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;Ext.EventManager=function(){var w,D,G=false,E=Ext.lib.Event,C=Ext.lib.Dom,N=document,v=window,J="ie-deferred-loader",B="DOMContentLoaded",K={},I=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/;function F(b,c,g,i,a){var e=Ext.id(b),h=K[e]=K[e]||{};(h[c]=h[c]||[]).push([g,i,a]);E.on(b,c,i);if(c=="mousewheel"&&b.addEventListener){var d=["DOMMouseScroll",i,false];b.addEventListener.apply(b,d);E.on(window,"unload",function(){b.removeEventListener.apply(b,d)})}if(c=="mousedown"&&b==document){Ext.EventManager.stoppedMouseDownEvent.addListener(i)}}function M(){if(!G){Ext.isReady=G=true;if(D){clearInterval(D)}if(Ext.isGecko||Ext.isOpera){N.removeEventListener(B,M,false)}if(Ext.isIE){var a=N.getElementById(J);if(a){a.onreadystatechange=null;a.parentNode.removeChild(a)}}if(w){w.fire();w.clearListeners()}}}function O(){var a="complete";w=new Ext.util.Event();if(Ext.isGecko||Ext.isOpera){N.addEventListener(B,M,false)}else{if(Ext.isIE){N.write("<script id="+J+' defer="defer" src="//:"><\/script>');N.getElementById(J).onreadystatechange=function(){if(this.readyState==a){M()}}}else{if(Ext.isWebKit){D=setInterval(function(){if(N.readyState==a){M()}},10)}}}E.on(v,"load",M)}function y(b,a){return function(){var c=Ext.toArray(arguments);if(a.target==Ext.EventObject.setEvent(c[0]).target){b.apply(this,c)}}}function x(b,a){var c=new Ext.util.DelayedTask(b);return function(d){c.delay(a.buffer,b,null,[new Ext.EventObjectImpl(d)])}}function A(d,e,c,a,b){return function(g){Ext.EventManager.removeListener(e,c,a,b);d(g)}}function L(b,a){return function(c){c=new Ext.EventObjectImpl(c);setTimeout(function(){b(c)},a.delay||10)}}function H(b,c,d,i,a){var g=!Ext.isObject(d)?{}:d,e=Ext.getDom(b);i=i||g.fn;a=a||g.scope;if(!e){throw'Error listening for "'+c+'". Element "'+b+"\" doesn't exist."}function h(j){if(!Ext){return}j=Ext.EventObject.setEvent(j);var k;if(g.delegate){if(!(k=j.getTarget(g.delegate,e))){return}}else{k=j.target}if(g.stopEvent){j.stopEvent()}if(g.preventDefault){j.preventDefault()}if(g.stopPropagation){j.stopPropagation()}if(g.normalized){j=j.browserEvent}i.call(a||e,j,k,g)}if(g.target){h=y(h,g)}if(g.delay){h=L(h,g)}if(g.single){h=A(h,e,c,i,a)}if(g.buffer){h=x(h,g)}F(e,c,i,h,a);return h}var z={addListener:function(b,d,g,i,c){if(Ext.isObject(d)){var e=d,a,h;for(a in e){h=e[a];if(!I.test(a)){if(Ext.isFunction(h)){H(b,a,e,h,e.scope)}else{H(b,a,h)}}}}else{H(b,d,c,g,i)}},removeListener:function(c,d,b,e){var h=Ext.getDom(c),g=Ext.id(h),a;Ext.each((K[g]||{})[d],function(j,i,k){if(Ext.isArray(j)&&j[0]==b&&(!e||j[2]==e)){E.un(h,d,a=j[1]);k.splice(i,1);return false}});if(d=="mousewheel"&&h.addEventListener&&a){h.removeEventListener("DOMMouseScroll",a,false)}if(d=="mousedown"&&h==N&&a){Ext.EventManager.stoppedMouseDownEvent.removeListener(a)}},removeAll:function(b){var d=Ext.id(b=Ext.getDom(b)),a=K[d],c;for(c in a){if(a.hasOwnProperty(c)){Ext.each(a[c],function(e){E.un(b,c,e.wrap)})}}K[d]=null},onDocumentReady:function(a,b,c){if(G){w.addListener(a,b,c);w.fire();w.clearListeners()}else{if(!w){O()}c=c||{};c.delay=c.delay||1;w.addListener(a,b,c)}},elHash:K};z.on=z.addListener;z.un=z.removeListener;z.stoppedMouseDownEvent=new Ext.util.Event();return z}();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":Ext.isSafari?"ext-safari":Ext.isChrome?"ext-chrome":""];if(Ext.isMac){a.push("ext-mac")}if(Ext.isLinux){a.push("ext-linux")}if(Ext.isBorderBox){a.push("ext-border-box")}if(Ext.isStrict){var e=g.parentNode;if(e){e.className+=" ext-strict"}}g.className+=a.join(" ");return true};if(!b()){Ext.onReady(b)}})();Ext.EventObject=function(){var d=Ext.lib.Event,e={3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35},g=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(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?g[a.button]:(a.which?a.which-1:-1);if(a.type=="click"&&b.button==-1){b.button=0}b.type=a.type;b.shiftKey=a.shiftKey;b.ctrlKey=a.ctrlKey||a.metaKey;b.altKey=a.altKey;b.keyCode=a.keyCode;b.charCode=a.charCode;b.target=d.getTarget(a);b.xy=d.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)}d.stopEvent(a.browserEvent)}},preventDefault:function(){if(this.browserEvent){d.preventDefault(this.browserEvent)}},stopPropagation:function(){var a=this;if(a.browserEvent){if(a.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(a)}d.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?(e[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?d.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,i){var c=this[a?"getRelatedTarget":"getTarget"]();return c&&((i?(c==Ext.getDom(b)):false)||Ext.fly(b).contains(c))}};return new Ext.EventObjectImpl()}();(function(){var r=document;Ext.Element=function(d,c){var b=typeof d=="string"?r.getElementById(d):d,a;if(!b){return null}a=b.id;if(!c&&a&&Ext.Element.cache[a]){return Ext.Element.cache[a]}this.dom=b;this.id=a||Ext.id(b)};var y=Ext.lib.Dom,u=Ext.DomHelper,o=Ext.lib.Event,v=Ext.lib.Anim,t=Ext.Element;t.prototype={set:function(a,d){var c=this.dom,e,b;for(e in a){b=a[e];if(e!="style"&&!Ext.isFunction(b)){if(e=="cls"){c.className=b}else{if(a.hasOwnProperty(e)){if(d||!!c.setAttribute){c.setAttribute(e,b)}else{c[e]=b}}}}}if(a.style){Ext.DomHelper.applyStyles(c,a.style)}return this},defaultUnit:"px",is:function(a){return Ext.DomQuery.is(this.dom,a)},focus:function(a){var c=this;try{if(!isNaN(a)){c.focus.defer(a,c)}else{c.dom.focus()}}catch(b){}return c},blur:function(){try{this.dom.blur()}catch(a){}return this},getValue:function(b){var a=this.dom.value;return b?parseInt(a,10):a},addListener:function(d,a,b,c){Ext.EventManager.on(this.dom,d,a,b||this,c);return this},removeListener:function(c,a,b){Ext.EventManager.removeListener(this.dom,c,a,b||this);return this},removeAllListeners:function(){Ext.EventManager.removeAll(this.dom);return this},addUnits:function(a){if(a===""||a=="auto"||a===undefined){a=a||""}else{if(!isNaN(a)||!q.test(a)){a=a+(this.defaultUnit||"px")}}return a},load:function(b,a,c){Ext.Ajax.request(Ext.apply({params:a,url:b.url||b,callback:c,el:this,indicatorText:b.indicatorText||""},Ext.isObject(b)?b:{}));return this},isBorderBox:function(){return s[(this.dom.tagName||"").toLowerCase()]||Ext.isBorderBox},remove:function(){Ext.removeNode(this.dom);delete t.cache[this.dom.id]},hover:function(d,e,b,c){var a=this;a.on("mouseenter",d,b||a.dom,c);a.on("mouseleave",e,b||a.dom,c);return a},contains:function(a){return !a?false:Ext.lib.Dom.isAncestor(this.dom,a.dom?a.dom:a)},getAttributeNS:Ext.isIE?function(b,d){var a=this.dom,c=typeof a[b+":"+d];if(!Ext.isEmpty(c)&&c!="unknown"){return a[b+":"+d]}return a[d]}:function(b,c){var a=this.dom;return a.getAttributeNS(b,c)||a.getAttribute(b+":"+c)||a.getAttribute(c)||a[c]},update:function(a){this.dom.innerHTML=a}};var n=t.prototype;t.addMethods=function(a){Ext.apply(n,a)};n.on=n.addListener;n.un=n.removeListener;n.autoBoxAdjust=true;var q=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,w;t.cache={};t.get=function(d){var e,a,b;if(!d){return null}if(typeof d=="string"){if(!(a=r.getElementById(d))){return null}if(e=t.cache[d]){e.dom=a}else{e=t.cache[d]=new t(a)}return e}else{if(d.tagName){if(!(b=d.id)){b=Ext.id(d)}if(e=t.cache[b]){e.dom=d}else{e=t.cache[b]=new t(d)}return e}else{if(d instanceof t){if(d!=w){d.dom=r.getElementById(d.id)||d.dom;t.cache[d.id]=d}return d}else{if(d.isComposite){return d}else{if(Ext.isArray(d)){return t.select(d)}else{if(d==r){if(!w){var c=function(){};c.prototype=t.prototype;w=new c();w.dom=r}return w}}}}}}return null};function p(){if(!Ext.enableGarbageCollector){clearInterval(t.collectorThread)}else{var c,b,a;for(c in t.cache){b=t.cache[c];a=b.dom;if(!a||!a.parentNode||(!a.offsetParent&&!r.getElementById(c))){delete t.cache[c];if(a&&Ext.enableListenerCollection){Ext.EventManager.removeAll(a)}}}}}t.collectorThreadId=setInterval(p,30000);var x=function(){};x.prototype=t.prototype;t.Flyweight=function(a){this.dom=a};t.Flyweight.prototype=new x();t.Flyweight.prototype.isFlyweight=true;t._flyweights={};t.fly=function(a,c){var b=null;c=c||"_global";if(a=Ext.getDom(a)){(t._flyweights[c]=t._flyweights[c]||new t.Flyweight()).dom=a;b=t._flyweights[c]}return b};Ext.get=t.get;Ext.fly=t.fly;var s=Ext.isStrict?{select:1}:{input:1,select:1,textarea:1};if(Ext.isIE||Ext.isGecko){s.button=1}Ext.EventManager.on(window,"unload",function(){delete t.cache;delete t._flyweights})})();Ext.Element.addMethods(function(){var j="parentNode",g="nextSibling",k="previousSibling",i=Ext.DomQuery,h=Ext.get;return{findParent:function(a,b,n){var d=this.dom,o=document.body,c=0,e;b=b||50;if(isNaN(b)){e=Ext.getDom(b);b=10}while(d&&d.nodeType==1&&c<b&&d!=o&&d!=e){if(i.is(d,a)){return n?h(d):d}c++;d=d.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(b,a){return Ext.Element.select(b,a,this.dom)},query:function(b,a){return i.select(b,this.dom)},child:function(c,b){var a=i.selectNode(c,this.dom);return b?a:h(a)},down:function(c,b){var a=i.selectNode(" > "+c,this.dom);return b?a:h(a)},parent:function(b,a){return this.matchNode(j,j,b,a)},next:function(b,a){return this.matchNode(g,g,b,a)},prev:function(b,a){return this.matchNode(k,k,b,a)},first:function(b,a){return this.matchNode(g,"firstChild",b,a)},last:function(b,a){return this.matchNode(k,"lastChild",b,a)},matchNode:function(d,a,e,c){var b=this.dom[a];while(b){if(b.nodeType==1&&(!e||i.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){g(a).parentNode.insertBefore(this.dom,a.nextSibling);return this},insertFirst:function(a,b){a=a||{};if(a.nodeType||a.dom){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,c=Ext.Element;if(b.nodeType||b.dom){b=g(b);a.dom.parentNode.insertBefore(b,a.dom)}else{b=d.insertBefore(a.dom,b)}delete c.cache[a.id];Ext.removeNode(a.dom);a.id=Ext.id(a.dom=b);return c.cache[a.id]=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,i){var a=d.insertHtml(c,this.dom,b);return i?Ext.get(a):a}}}());Ext.Element.addMethods(function(){var I={},w=/(-[a-z])/gi,L={},A=document.defaultView,u=Ext.Element,J="padding",K="margin",v="border",z="-left",C="-right",x="-top",E="-bottom",G="-width",F={l:v+z+G,r:v+C+G,t:v+x+G,b:v+E+G},H={l:J+z,r:J+C,t:J+x,b:J+E},M={l:K+z,r:K+C,t:K+x,b:K+E};function B(b,a){return a.charAt(1).toUpperCase()}function D(b,c){var a=0;Ext.each(b.match(/\w/g),function(d){if(d=parseInt(this.getStyle(c[d]),10)){a+=Math.abs(d)}},this);return a}function y(a){return I[a]||(I[a]=a.replace(w,B))}return{adjustWidth:function(b){var a=this;if(typeof b=="number"&&a.autoBoxAdjust&&!a.isBorderBox()){b-=(a.getBorderWidth("lr")+a.getPadding("lr"));b=b<0?0:b}return b},adjustHeight:function(b){var a=this;if(typeof b=="number"&&a.autoBoxAdjust&&!a.isBorderBox()){b-=(a.getBorderWidth("tb")+a.getPadding("tb"));b=b<0?0:b}return b},addClass:function(b){var a=this;Ext.each(b,function(c){a.dom.className+=(!a.hasClass(c)&&c?" "+c:"")});return a},radioClass:function(a){Ext.each(this.dom.parentNode.childNodes,function(b){if(b.nodeType==1){Ext.get(b).removeClass(a)}});return this.addClass(a)},removeClass:function(b){var a=this;if(a.dom.className){Ext.each(b,function(c){a.dom.className=a.dom.className.replace(L[c]=L[c]||new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)","g")," ")})}return a},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 A&&A.getComputedStyle?function(d){var a=this.dom,c,b;if(a==document){return null}d=d=="float"?"cssFloat":d;return(c=a.style[d])?c:(b=A.getComputedStyle(a,""))?b[y(d)]:null}:function(e){var b=this.dom,d,c;if(b==document){return null}if(e=="opacity"){if(b.style.filter.match){if(d=b.style.filter.match(/alpha\(opacity=(.*)\)/i)){var a=parseFloat(d[1]);if(!isNaN(a)){return a?a/100:0}}}return 1}e=e=="float"?"styleFloat":e;return b.style[e]||((c=b.currentStyle)?c[y(e)]:null)}}(),getColor:function(d,c,b){var e,g=this.getStyle(d),a=b||"#";if(!g||g=="transparent"||g=="inherit"){return c}if(/^r/.test(g)){Ext.each(g.slice(4,g.length-1).split(","),function(h){e=(h*1).toString(16);a+=e<16?"0"+e:e})}else{a+=g.replace("#","").replace(/^(\w)(\w)(\w)$/,"$1$1$2$2$3$3")}return a.length>5?a.toLowerCase():c},setStyle:function(e,a){var c,b,d;if(!Ext.isObject(e)){c={};c[e]=a;e=c}for(b in e){a=e[b];d=y(b);d=="opacity"?this.setOpacity(a):this.dom.style[d]=a}return this},setOpacity:function(c,d){var a=this,b=a.dom.style;if(!d||!a.anim){if(Ext.isIE){b.zoom=1;b.filter=(b.filter||"").replace(/alpha\([^\)]*\)/gi,"")+(c==1?"":" alpha(opacity="+c*100+")")}else{b.opacity=c}}else{a.anim({opacity:{to:c}},a.preanim(arguments,1),null,0.35,"easeIn")}return a},clearOpacity:function(){var a=this.dom.style;if(window.ActiveXObject){if(typeof a.filter=="string"&&(/alpha/i).test(a.filter)){a.filter=""}}else{a.opacity="";a["-moz-opacity"]="";a["-khtml-opacity"]=""}return this},getHeight:function(a){var b=this.dom.offsetHeight||0;b=!a?b:b-this.getBorderWidth("tb")-this.getPadding("tb");return b<0?0:b},getWidth:function(a){var b=this.dom.offsetWidth||0;b=!a?b:b-this.getBorderWidth("lr")-this.getPadding("lr");return b<0?0:b},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 D.call(this,a,F)},getPadding:function(a){return D.call(this,a,H)},clip:function(){var a=this;if(!a.isClipped){a.isClipped=true;a.originalClip={o:a.getStyle("overflow"),x:a.getStyle("overflow-x"),y:a.getStyle("overflow-y")};a.setStyle("overflow","hidden");a.setStyle("overflow-x","hidden");a.setStyle("overflow-y","hidden")}return a},unclip:function(){var b=this;if(b.isClipped){b.isClipped=false;var a=b.originalClip;if(a.o){b.setStyle("overflow",a.o)}if(a.x){b.setStyle("overflow-x",a.x)}if(a.y){b.setStyle("overflow-y",a.y)}}return b},addStyles:D,margins:M}}());(function(){var c=Ext.lib.Dom;function d(b,g,a){return this.preanim&&!!g?this.preanim(b,a):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(e){var a=this.getXY(),b=Ext.fly(e,"_internal").getXY();return[a[0]-b[0],a[1]-b[1]]},setX:function(b,a){return this.setXY([b,this.getY()],d.call(this,arguments,a,1))},setY:function(a,b){return this.setXY([this.getX(),a],d.call(this,arguments,b,1))},setLeft:function(a){this.setStyle("left",this.addUnits(a));return this},setTop:function(a){this.setStyle("top",this.addUnits(a));return this},setRight:function(a){this.setStyle("right",this.addUnits(a));return this},setBottom:function(a){this.setStyle("bottom",this.addUnits(a));return this},setXY:function(a,g){var b=this;if(!g||!b.anim){c.setXY(b.dom,a)}else{b.anim({points:{to:a}},b.preanim(arguments,1),"motion")}return b},setLocation:function(g,a,b){return this.setXY([g,a],d.call(this,arguments,b,2))},moveTo:function(g,a,b){return this.setXY([g,a],d.call(this,arguments,b,2))},getLeft:function(a){return !a?this.getX():parseInt(this.getStyle("left"),10)||0},getRight:function(b){var a=this;return !b?a.getX()+a.getWidth():(a.getLeft(true)+a.getWidth())||0},getTop:function(a){return !a?this.getY():parseInt(this.getStyle("top"),10)||0},getBottom:function(b){var a=this;return !b?a.getY()+a.getHeight():(a.getTop(true)+a.getHeight())||0},position:function(a,b,k,i){var j=this;if(!a&&j.isStyle("position","static")){j.setStyle("position","relative")}else{if(a){j.setStyle("position",a)}}if(b){j.setStyle("z-index",b)}if(k||i){j.setXY([k||false,i||false])}},clearPositioning:function(a){a=a||"";this.setStyle({left:a,right:a,top:a,bottom:a,"z-index":"",position:"static"});return this},getPositioning:function(){var a=this;function h(e){return a.getStyle(e)}var i=h("left"),b=h("top");return{position:h("position"),left:i,right:i?"":h("right"),top:b,bottom:b?"":h("bottom"),"z-index":h("z-index")}},setPositioning:function(g){var a=this,b=a.dom.style;a.setStyle(g);if(g.right=="auto"){b.right=""}if(g.bottom=="auto"){b.bottom=""}return a},translatePoints:function(o,a){a=isNaN(o[1])?a:o[1];o=isNaN(o[0])?o:o[0];var l=this,k=l.isStyle("position","relative"),b=l.getXY(),n=parseInt(l.getStyle("left"),10),m=parseInt(l.getStyle("top"),10);n=!isNaN(n)?n:(k?0:l.dom.offsetLeft);m=!isNaN(m)?m:(k?0:l.dom.offsetTop);return{left:(o-b[0]+n),top:(a-b[1]+m)}},animTest:d})})();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 k=this.dom,l=document,j=l.body,o=l.documentElement,d,m,n;if(k==l||k==j){if(Ext.isIE&&Ext.isStrict){d=o.scrollLeft;m=o.scrollTop}else{d=window.pageXOffset;m=window.pageYOffset}n={left:d||(j?j.scrollLeft:0),top:m||(j?j.scrollTop:0)}}else{n={left:k.scrollLeft,top:k.scrollTop}}return n}});Ext.Element.VISIBILITY=1;Ext.Element.DISPLAY=2;Ext.Element.addMethods(function(){var j="visibility",k="display",h="hidden",i="none",g=Ext.Element.DISPLAY;return{originalDisplay:"",visibilityMode:1,setVisibilityMode:function(a){this.visibilityMode=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,o,a,e,p){o=o||"run";c=c||{};var b=this,q=Ext.lib.Anim[o](b.dom,d,(c.duration||a)||0.35,(c.easing||e)||"easeOut",function(){if(p){p.call(b)}if(c.callback){c.callback.call(c.scope||b,b,c)}},b);c.anim=q;return q},preanim:function(b,a){return !b[a]?false:(Ext.isObject(b[a])?b[a]:{duration:b[a+1],callback:b[a+2],easing:b[a+3]})},isVisible:function(){return !this.isStyle(j,h)&&!this.isStyle(k,i)},setVisible:function(a,d){var b=this,c=b.visibilityMode;if(!d||!b.anim){if(b.visibilityMode==g){b.setDisplayed(a)}else{b.fixDisplay();b.dom.style.visibility=a?"visible":h}}else{if(a){b.setOpacity(0.01);b.setVisible(true)}b.anim({opacity:{to:(a?1:0)}},b.preanim(arguments,1),null,0.35,"easeIn",function(){if(!a){b.dom.style.display=(c==g)?i:h;Ext.get(b.dom).setOpacity(1)}})}return b},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?this.originalDisplay:i}this.setStyle(k,a);return this},fixDisplay:function(){var a=this;if(a.isStyle(k,i)){a.setStyle(j,h);a.setStyle(k,a.originalDisplay);if(a.isStyle(k,i)){a.setStyle(k,"block")}}},hide:function(a){this.setVisible(false,this.preanim(arguments,0));return this},show:function(a){this.setVisible(true,this.preanim(arguments,0));return this}}}());(function(){var x=null,v=undefined,I=true,A=false,J="setX",L="setY",O="setXY",F="left",H="bottom",B="top",G="right",D="height",M="width",K="points",y="hidden",w="absolute",z="visible",N="motion",E="position",C="easeOut";Ext.enableFx=I;Ext.Fx={switchStatements:function(b,a,c){return a.apply(this,c[b])},slideIn:function(b,g){var p=this,e=p.getFxEl(),m,n,i,k,l,a,h,o,c,j=p.getXY(),d=p.dom;g=g||{};b=b||"t";e.queueFx(g,function(){l=p.dom.style;p.fixDisplay();m=p.getFxRestore();n={x:j[0],y:j[1],0:j[0],1:j[1],width:d.offsetWidth,height:d.offsetHeight};n.right=n.x+n.width;n.bottom=n.y+n.height;p.setWidth(n.width).setHeight(n.height);i=p.fxWrap(m.pos,g,y);l.visibility=z;l.position=w;function r(){e.fxUnwrap(i,m.pos,g);l.width=m.width;l.height=m.height;e.afterFx(g)}h={to:[n.x,n.y]};o={to:n.width};c={to:n.height};function q(ad,ag,ac,af,aa,Y,s,t,u,ab,ae){var Z={};ad.setWidth(ac).setHeight(af);if(ad[aa]){ad[aa](Y)}ag[s]=ag[t]="0";if(u){Z.width=u}if(ab){Z.height=ab}if(ae){Z.points=ae}return Z}a=p.switchStatements(b.toLowerCase(),q,{t:[i,l,n.width,0,x,x,F,H,x,c,x],l:[i,l,0,n.height,x,x,G,B,o,x,x],r:[i,l,0,n.height,J,n.right,F,B,o,x,h],b:[i,l,n.width,0,L,n.bottom,F,B,x,c,h],tl:[i,l,0,0,x,x,G,H,o,x,h],bl:[i,l,0,0,L,n.y+n.height,G,B,o,c,h],br:[i,l,0,0,O,[n.right,n.bottom],F,B,o,c,h],tr:[0,0,J,n.x+n.width,F,H,o,c,h]});l.visibility=z;i.show();arguments.callee.anim=i.fxanim(a,g,N,0.5,C,r)});return p},slideOut:function(d,h){var b=this,g=b.getFxEl(),k=b.getXY(),e=b.dom,i,l,j,a,m,c={to:0};h=h||{};d=d||"t";g.queueFx(h,function(){j=b.getFxRestore();a={x:k[0],y:k[1],0:k[0],1:k[1],width:e.offsetWidth,height:e.offsetHeight};a.right=a.x+a.width;a.bottom=a.y+a.height;b.setWidth(a.width).setHeight(a.height);i=b.fxWrap(j.pos,h,z);l=b.dom.style;l.visibility=z;l.position=w;i.setWidth(a.width).setHeight(a.height);function o(){h.useDisplay?g.setDisplayed(A):g.hide();g.fxUnwrap(i,j.pos,h);l.width=j.width;l.height=j.height;g.afterFx(h)}function n(W,q,s,p,u,r,T,t,U){var V={};W[q]=W[s]="0";V[p]=u;if(r){V[r]=T}if(t){V[t]=U}return V}m=b.switchStatements(d.toLowerCase(),n,{t:[l,F,H,D,c],l:[l,G,B,M,c],r:[l,F,B,M,c,K,{to:[a.right,a.y]}],b:[l,F,B,D,c,K,{to:[a.x,a.bottom]}],tl:[l,G,H,M,c,D,c],bl:[l,G,B,M,c,D,c,K,{to:[a.X,a.bottom]}],br:[l,F,B,M,c,D,c,K,{to:[a.x+a.width,a.bottom]}],tr:[l,F,H,M,c,D,c,K,{to:[a.right,a.y]}]});arguments.callee.anim=i.fxanim(m,h,N,0.5,C,o)});return b},puff:function(h){h=h||{};var b=this,g=b.getFxEl(),e,c=b.dom.style,a=b.getWidth(),d=b.getHeight();g.queueFx(h,function(){b.clearOpacity();b.show();e=b.getFxRestore();function i(){h.useDisplay?g.setDisplayed(A):g.hide();g.clearOpacity();g.setPositioning(e.pos);c.width=e.width;c.height=e.height;c.fontSize="";g.afterFx(h)}arguments.callee.anim=b.fxanim({width:{to:b.adjustWidth(a*2)},height:{to:b.adjustHeight(d*2)},points:{by:[-a*0.5,-d*0.5]},opacity:{to:0},fontSize:{to:200,unit:"%"}},h,N,0.5,C,i)});return b},switchOff:function(a){a=a||{};var b=this,c=b.getFxEl();c.queueFx(a,function(){b.clearOpacity();b.clip();var e=b.getFxRestore(),g=b.dom.style,d=function(){a.useDisplay?c.setDisplayed(A):c.hide();c.clearOpacity();c.setPositioning(e.pos);g.width=e.width;g.height=e.height;c.afterFx(a)};b.fxanim({opacity:{to:0.3}},x,x,0.1,x,function(){b.clearOpacity();(function(){b.fxanim({height:{to:1},points:{by:[0,b.getHeight()*0.5]}},a,N,0.3,"easeIn",d)}).defer(100)})});return b},highlight:function(b,a){a=a||{};var e=this,g=e.getFxEl(),d=a.attr||"backgroundColor",c={};g.queueFx(a,function(){e.clearOpacity();e.show();function h(){g.dom.style[d]=e.dom.style[d];g.afterFx(a)}c[d]={from:b||"ffff9c",to:a.endColor||e.getColor(d)||"ffffff"};arguments.callee.anim=e.fxanim(c,a,"color",1,"easeIn",h)});return e},frame:function(c,e,d){var a=this,b=a.getFxEl();d=d||{};b.queueFx(d,function(){c=c||"#C3DAF9";if(c.length==6){c="#"+c}e=e||1;a.show();var i=a.getXY(),h=a.dom,g={x:i[0],y:i[1],0:i[0],1:i[1],width:h.offsetWidth,height:h.offsetHeight};function j(){var l=Ext.get(document.body||document.documentElement).createChild({style:{visbility:y,position:w,"z-index":35000,border:"0px solid "+c}}),k=Ext.isBorderBox?2:1;l.animate({top:{from:g.y,to:g.y-20},left:{from:g.x,to:g.x-20},borderWidth:{from:0,to:10},opacity:{from:1,to:0},height:{from:g.height,to:g.height+20*k},width:{from:g.width,to:g.width+20*k}},d.duration||1,function(){l.remove();--e>0?j():b.afterFx(d)})}j.call(a)});return a},pause:function(a){var b=this.getFxEl();b.queueFx({},function(){setTimeout(function(){b.afterFx({})},a*1000)});return this},fadeIn:function(a){var b=this,c=b.getFxEl();a=a||{};c.queueFx(a,function(){b.setOpacity(0);b.fixDisplay();b.dom.style.visibility=z;var d=a.endOpacity||1;arguments.callee.anim=b.fxanim({opacity:{to:d}},a,x,0.5,C,function(){if(d==1){this.clearOpacity()}c.afterFx(a)})});return b},fadeOut:function(e){e=e||{};var a=this,b=a.dom.style,c=a.getFxEl(),d=e.endOpacity||0;c.queueFx(e,function(){arguments.callee.anim=a.fxanim({opacity:{to:d}},e,x,0.5,C,function(){if(d==0){a.visibilityMode==Ext.Element.DISPLAY||e.useDisplay?b.display="none":b.visibility=y;a.clearOpacity()}c.afterFx(e)})});return a},scale:function(b,a,c){var d=this;d.shift(Ext.apply({},c,{width:b,height:a}));return d},shift:function(a){var b=this;a=a||{};var c=b.getFxEl();c.queueFx(a,function(){var e={};for(var d in a){if(a[d]!=v){e[d]={to:a[d]}}}e.width?e.width.to=b.adjustWidth(a.width):e;e.height?e.height.to=b.adjustWidth(a.height):e;if(e.x||e.y||e.xy){e.points=e.xy||{to:[e.x?e.x.to:b.getX(),e.y?e.y.to:b.getY()]}}arguments.callee.anim=b.fxanim(e,a,N,0.35,C,function(){c.afterFx(a)})});return b},ghost:function(c,d){var a=this,b=a.getFxEl();d=d||{};c=c||"b";b.queueFx(d,function(){var i=a.getFxRestore(),e=a.getWidth(),k=a.getHeight(),l=a.dom.style,g=function(){if(d.useDisplay){b.setDisplayed(A)}else{b.hide()}b.clearOpacity();b.setPositioning(i.pos);l.width=i.width;l.width=i.width;b.afterFx(d)},j={opacity:{to:0},points:{}},h=j.points;h.by=a.switchStatements(c.toLowerCase(),function(m,n){return[m,n]},{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=a.fxanim(j,d,N,0.5,C,g)});return a},syncFx:function(){var a=this;a.fxDefaults=Ext.apply(a.fxDefaults||{},{block:A,concurrent:I,stopFx:A});return a},sequenceFx:function(){var a=this;a.fxDefaults=Ext.apply(a.fxDefaults||{},{block:A,concurrent:A,stopFx:A});return a},nextFx:function(){var a=this.fxQueue[0];if(a){a.call(this)}},hasActiveFx:function(){return this.fxQueue&&this.fxQueue[0]},stopFx:function(c){var b=this;if(b.hasActiveFx()){var a=b.fxQueue[0];if(a&&a.anim&&a.anim.isAnimated){b.fxQueue=[a];a.anim.stop(c!==undefined?c:true)}}return b},beforeFx:function(a){if(this.hasActiveFx()&&!a.concurrent){if(a.stopFx){this.stopFx();return I}return A}return I},hasFxBlock:function(){var a=this.fxQueue;return a&&a[0]&&a[0].block},queueFx:function(d,c){var b=this;if(!b.fxQueue){b.fxQueue=[]}if(!b.hasFxBlock()){Ext.applyIf(d,b.fxDefaults);if(!d.concurrent){var a=b.beforeFx(d);c.block=d.block;b.fxQueue.push(c);if(a){b.nextFx()}}else{c.call(b)}}return b},fxWrap:function(h,e,g){var b=this,c,d;if(!e.wrap||!(c=Ext.get(e.wrap))){if(e.fixPosition){d=b.getXY()}var a=document.createElement("div");a.style.visibility=g;c=Ext.get(b.dom.parentNode.insertBefore(a,b.dom));c.setPositioning(h);if(c.isStyle(E,"static")){c.position("relative")}b.clearPositioning("auto");c.clip();c.dom.appendChild(b.dom);if(d){c.setXY(d)}}return c},fxUnwrap:function(c,d,a){var b=this;b.clearPositioning();b.setPositioning(d);if(!a.wrap){c.dom.parentNode.insertBefore(b.dom,c.dom);c.remove()}},getFxRestore:function(){var a=this.dom.style;return{pos:this.getPositioning(),width:a.width,height:a.height}},afterFx:function(a){var b=this;if(a.afterStyle){b.setStyle(a.afterStyle)}if(a.afterCls){b.addClass(a.afterCls)}if(a.remove==I){b.remove()}if(a.callback){a.callback.call(a.scope,b)}if(!a.concurrent){b.fxQueue.shift();b.nextFx()}},getFxEl:function(){return Ext.get(this.dom)},fxanim:function(h,e,c,b,a,d){c=c||"run";e=e||{};var g=Ext.lib.Anim[c](this.dom,h,(e.duration||b)||0.35,(e.easing||a)||C,d,this);e.anim=g;return g}};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,getCount:function(){return this.elements.length},add:function(c){if(c){if(Ext.isArray(c)){this.elements=this.elements.concat(c)}else{var d=this.elements;Ext.each(c,function(a){d.push(a)})}}return this},invoke:function(h,g){var e=this.elements,i=this.el;Ext.each(e,function(a){i.dom=a;Ext.Element.prototype[h].apply(i,g)});return this},item:function(d){var c=this;if(!c.elements[d]){return null}c.el.dom=c.elements[d];return c.el},addListener:function(g,h,i,e){Ext.each(this.elements,function(a){Ext.EventManager.on(a,g,h,i||a,e)});return this},each:function(i,e){var h=this,g=h.el;Ext.each(h.elements,function(a,b){g.dom=a;return i.call(e||g,g,h,b)});return h},indexOf:function(b){return this.elements.indexOf(Ext.getDom(b))},replaceElement:function(j,k,h){var d=!isNaN(j)?j:this.indexOf(j),i;if(d>-1){k=Ext.getDom(k);if(h){i=this.elements[d];i.parentNode.insertBefore(k,i);Ext.removeNode(i)}this.elements.splice(d,1,k)}return this},clear:function(){this.elements=[]}};Ext.CompositeElementLite.prototype.on=Ext.CompositeElementLite.prototype.addListener;(function(){var g,d=Ext.Element.prototype,e=Ext.CompositeElementLite.prototype;for(var g in d){if(Ext.isFunction(d[g])){(function(a){e[a]=e[a]||function(){return this.invoke(a,arguments)}}).call(e,g)}}})();if(Ext.DomQuery){Ext.Element.selectorFunction=Ext.DomQuery.select}Ext.Element.select=function(g,h,e){var i;if(typeof g=="string"){i=Ext.Element.selectorFunction(g,e)}else{if(g.length!==undefined){i=g}else{throw"Invalid selector"}}return new Ext.CompositeElementLite(i)};Ext.select=Ext.Element.select;(function(){var u="beforerequest",m="requestcomplete",n="requestexception",s=undefined,p="load",q="POST",o="GET",r=window;Ext.data.Connection=function(a){Ext.apply(this,a);this.addEvents(u,m,n);Ext.data.Connection.superclass.constructor.call(this)};function v(a){this.transId=false;var b=a.argument.options;a.argument=b?b.argument:null;this.fireEvent(m,this,a,b);if(b.success){b.success.call(b.scope,a,b)}if(b.callback){b.callback.call(b.scope,b,true,a)}}function t(a,b){this.transId=false;var c=a.argument.options;a.argument=c?c.argument:null;this.fireEvent(n,this,a,c,b);if(c.failure){c.failure.call(c.scope,a,c)}if(c.callback){c.callback.call(c.scope,c,false,a)}}function w(a,e,d){var c=Ext.id(),g=document,l=g.createElement("iframe"),b=Ext.getDom(a.form),h=[],i;l.id=l.name=c;l.className="x-hidden";l.src=Ext.SSL_SECURE_URL;g.body.appendChild(l);if(Ext.isIE){g.frames[c].name=c}b.target=c;b.method=q;b.enctype=b.encoding="multipart/form-data";b.action=d||"";e=Ext.urlDecode(e,false);for(var j in e){if(e.hasOwnProperty(j)){i=g.createElement("input");i.type="hidden";i.value=e[i.name=j];b.appendChild(i);h.push(i)}}function k(){var F=this,D={responseText:"",responseXML:null,argument:a.argument},E,x;try{E=l.contentWindow.document||l.contentDocument||r.frames[c].document;if(E){if(E.body){if(/textarea/i.test((x=E.body.firstChild||{}).tagName)){D.responseText=x.value}else{D.responseText=E.body.innerHTML}}else{D.responseXML=E.XMLDocument||E}}}catch(C){}Ext.EventManager.removeListener(l,p,k,F);F.fireEvent(m,F,D,a);Ext.callback(a.success,a.scope,[D,a]);Ext.callback(a.callback,a.scope,[a,true,D]);if(!F.debugUploads){setTimeout(function(){Ext.removeNode(l)},100)}}Ext.EventManager.on(l,p,k,this);b.submit();Ext.each(h,function(x){Ext.removeNode(x)})}Ext.extend(Ext.data.Connection,Ext.util.Observable,{timeout:30000,autoAbort:false,disableCaching:true,disableCachingParam:"_dc",request:function(j){var g=this;if(g.fireEvent(u,g,j)){if(j.el){if(!Ext.isEmpty(j.indicatorText)){g.indicatorText='<div class="loading-indicator">'+j.indicatorText+"</div>"}if(g.indicatorText){Ext.getDom(j.el).innerHTML=g.indicatorText}j.success=(Ext.isFunction(j.success)?j.success:function(){}).createInterceptor(function(k){Ext.getDom(j.el).innerHTML=k.responseText})}var b=j.params,c=j.url||g.url,d,i={success:v,failure:t,scope:g,argument:{options:j},timeout:j.timeout||g.timeout},a,e;if(Ext.isFunction(b)){b=b.call(j.scope||r,j)}b=Ext.urlEncode(g.extraParams,typeof b=="object"?Ext.urlEncode(b):b);if(Ext.isFunction(c)){c=c.call(j.scope||r,j)}if(a=Ext.getDom(j.form)){c=c||a.action;if(j.isUpload||/multipart\/form-data/i.test(a.getAttribute("enctype"))){return w.call(g,j,b,c)}e=Ext.lib.Ajax.serializeForm(a);b=b?(b+"&"+e):e}d=j.method||g.method||((b||j.xmlData||j.jsonData)?q:o);if(d==o&&(g.disableCaching||j.disableCaching!==false)){var h=j.disableCachingParam||g.disableCachingParam;c+=(c.indexOf("?")!=-1?"&":"?")+h+"="+(new Date().getTime())}j.headers=Ext.apply(j.headers||{},g.defaultHeaders||{});if(j.autoAbort===true||g.autoAbort){g.abort()}if((d==o||j.xmlData||j.jsonData)&&b){c+=(/\?/.test(c)?"&":"?")+b;b=""}return g.transId=Ext.lib.Ajax.request(d,c,i,b,j)}else{return j.callback?j.callback.apply(j.scope,[j,s,s]):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)}}})})();Ext.Ajax=new Ext.data.Connection({autoAbort:false,serializeForm:function(b){return Ext.lib.Ajax.serializeForm(b)}});Ext.util.DelayedTask=function(n,m,p){var o=this,r=null,s=r,q,k,l=function(){var a=new Date().getTime();if(a-k>=q){clearInterval(s);s=r;n.apply(m,p||[])}};o.delay=function(b,d,a,c){if(s&&b!=q){this.cancel()}q=b;k=new Date().getTime();n=d||n;m=a||m;p=c||p;if(!s){s=setInterval(l,q)}};o.cancel=function(){if(s){clearInterval(s);s=r}}};Ext.util.JSON=new (function(){var useHasOwn=!!{}.hasOwnProperty,isNative=Ext.USE_NATIVE_JSON&&JSON&&JSON.toString()=="[object JSON]";var pad=function(n){return n<10?"0"+n:n};var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};var 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+'"'};var 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=isNative?JSON.stringify:function(o){if(typeof o=="undefined"||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(typeof o=="string"){return encodeString(o)}else{if(typeof o=="number"){return isFinite(o)?String(o):"null"}else{if(typeof o=="boolean"){return String(o)}else{var a=["{"],b,i,v;for(i in o){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(this.encode(i),":",v===null?"null":this.encode(v));b=true}}}a.push("}");return a.join("")}}}}}}};this.decode=isNative?JSON.parse:function(json){return eval("("+json+")")}})();Ext.encode=Ext.util.JSON.encode;Ext.decode=Ext.util.JSON.decode;Ext.ns("Ext.ux");Ext.ux.JSONP=(function(){return{request:function(b,e){if(!b){return}var c="JsonpCallback"+parseInt(Math.random()*10000000000000000);e.params=e.params||{};if(e.callbackKey){e.params[e.callbackKey]="Ext.ux.JSONP."+c}var d=Ext.urlEncode(e.params);this[c]=function(g){e.callback.apply(e.scope,[g]);document.getElementsByTagName("head")[0].removeChild(a);delete this[c]};var a=document.createElement("script");a.type="text/javascript";a.src=b+"?"+d;document.getElementsByTagName("head")[0].appendChild(a)}}})();
/**
 * webchat client 2.0
 * (c) 2009 Hiroshi Horie.
 */
function WebChat(){this.handler={image_online:null};this.serverUrl="";this.siteId="";this.status="";this.chatWindow=null;this.loadPackageState=0;this.packetQueueMode=false;this.packetQueue=[];this.siteParameters={};this._loadExternalJS=function(b){var a=document.createElement("script");a.type="text/javascript";a.src=b;a.charset="utf-8";document.getElementsByTagName("head")[0].appendChild(a)};this._loadExternalCSS=function(a){var b=document.createElement("link");b.rel="stylesheet";b.type="text/css";b.href=a;document.getElementsByTagName("head")[0].appendChild(b)};this._readClientId=function(){var h="webchat_client_id";var c=null;var l=document.cookie.split("; ");for(var g=0;g<l.length;g++){var a=l[g];var j=a.indexOf("=");var e=a.substring(0,j);var d=a.substring(j+1,a.length);if(e==h){c=d;break}}return c};this._writeClientId=function(b){var a="webchat_client_id";document.cookie=a+"="+b+";"};this.getClientHeight=function(){return(document.documentElement.clientHeight&&document.compatMode&&document.compatMode=="CSS1Compat"?(navigator.userAgent.indexOf("Opera")>-1&&parseFloat(window.opera.version())<9.5?document.body.clientHeight:document.documentElement.clientHeight):document.body.clientHeight)};this.getClientWidth=function(){return(document.documentElement.clientWidth&&document.compatMode&&document.compatMode=="CSS1Compat"?document.documentElement.clientWidth:document.body.clientWidth)};this.moveToCalculatedPosition=function(){function a(e){var g=Ext.get(document).getScroll().top;var d=(g+objWebChat.getClientHeight()-e-0);return d}function c(d){var g=Ext.get(document).getScroll().left;var e=(g+objWebChat.getClientWidth()-d-0);return e}var b=Ext.fly("webchat_bar_zone");b.setTop(a(b.getHeight()));b.setLeft(c(b.getWidth()))};this._createChatbar=function(){var b="cursor:pointer; position:fixed; text-align:right; left:auto; right:1px; top:auto; bottom:1px;";if(Ext.isIE6){b="cursor:pointer; position:absolute; text-align:right; left:0px; right:auto; top:0px; bottom:auto;"}var c="";c='<div align="right"><img id="webchat_image" src="" style="display:none;" /></div>';var a='<div id="webchat_bar_zone" style="'+b+'">'+c+'<div align="right"><div id="webchat_bar" style="display:none; height:30px; width:240px;"><span id="webchat_status" style="color: #FFFFFF;" class="online">-</span><span id="webchat_message" style="color: #FFFFFF;">-</span></div></div></div>';Ext.DomHelper.append(document.getElementsByTagName("body")[0],a);Ext.fly("webchat_bar_zone").on("click",this.OnBarClick,this);if(Ext.isIE6){this.moveToCalculatedPosition()}};this.request=function(b,a){if(!this.serverUrl){return false}a.r=Math.random();if(this.clientId){a.clientId=this.clientId}Ext.ux.JSONP.request(this.serverUrl+b,{callbackKey:"callback",params:a,scope:this,callback:this.requestAndListenSuccessCallback})};this.setStatus=function(a){this.status=a;switch(a){case"online":Ext.DomQuery.selectNode("#webchat_status").innerHTML="オンライン";Ext.DomQuery.selectNode("#webchat_status").className="online";Ext.DomQuery.selectNode("#webchat_message").innerHTML="ここをクリックしてチャットを開始";if(this.siteParameters.ImageModeEnabled){var b=Ext.DomQuery.selectNode("#webchat_image");b.src=this.siteParameters.ImageModeUrlOnline;Ext.get(b).setStyle("display","block")}if(this.siteParameters.ChatBarVisible){var b=Ext.DomQuery.selectNode("#webchat_bar");b.src=this.siteParameters.ImageModeUrlOnline;Ext.get(b).setStyle("display","block")}break;case"offline":Ext.DomQuery.selectNode("#webchat_status").innerHTML="オフライン";Ext.DomQuery.selectNode("#webchat_status").className="offline";Ext.DomQuery.selectNode("#webchat_message").innerHTML="チャットはご利用頂けません";break;case"loading":Ext.DomQuery.selectNode("#webchat_status").innerHTML="ロード中";Ext.DomQuery.selectNode("#webchat_status").className="loading";Ext.DomQuery.selectNode("#webchat_message").innerHTML="しばらくお待ちください";break}};this.loadPackage=function(a){this.packetQueueMode=true;this.loadPackageCallback=a;if(this.loadPackageState==0){this.loadPackageState=1;this.setStatus("loading");this._loadExternalCSS("http://client.webchat.jp/client_css");this.uxJSONP=Ext.ux.JSONP;this._loadExternalJS("http://client.webchat.jp/client_package_default")}else{if(this.loadPackageState==2){this.__OnPackageLoaded()}}};this.__OnPackageLoaded=function(){Ext.ux.JSONP=this.uxJSONP;if(!this.chatWindow){this.chatWindow=new Ext.webchat.Window()}this.chatWindow.show();if(this.loadPackageCallback){this.loadPackageCallback();this.loadPackageCallback=null}this.setStatus("online");if(this.packetQueue.length>0){for(var a=0;a<this.packetQueue.length;a++){var b=this.packetQueue[a];this["On"+b.PacketClass](b)}}this.packetQueue=[];this.packetQueueMode=false;this.loadPackageState=2};this.OnBarClick=function(){if(this.status=="online"){this.loadPackage(function(){this.call();this.chatWindow.addInformation("呼び出しています、しばらくお待ちください")})}};this.OnPacketConnect=function(b){if(b.Result){this._writeClientId(b.ClientId);this._loadExternalCSS("http://client.webchat.jp/bar.css");this._createChatbar();if(Ext.isIE6){var a=function(){this.moveToCalculatedPosition()};Ext.EventManager.on(window,"scroll",a,this,{buffer:100});Ext.EventManager.on(window,"resize",a,this,{buffer:100})}if(b.IsOnline){this.setStatus("online")}else{this.setStatus("offline")}this.clientId=b.ClientId;this.listen()}};this.OnPacketSiteParameters=function(a){this.siteParameters=a};this.OnPacketListen=function(a){if(a.Reconnect){this.listen()}};this.OnPacketStart=function(a){this.toClientId=a.ToClientId;if(!a.IsSilent){this.loadPackage(function(){this.chatWindow.show();this.chatWindow.start()})}};this.OnPacketStop=function(a){this.chatWindow.stop()};this.OnPacketMessage=function(a){if(this.clientId==a.FromClientId){this.chatWindow.addMessage("あなた",a.Content)}else{this.chatWindow.addMessage("オペレーター",a.Content)}};this.OnPacketDebug=function(a){console.log(a.MessageString)};this.requestAndListenSuccessCallback=function(b){if(b.length>0){for(var a=0;a<b.length;a++){var c=b[a];if(this["On"+c.PacketClass]){if(this.packetQueueMode){this.packetQueue[this.packetQueue.length]=c}else{this["On"+c.PacketClass](c)}}else{}}}};this.connect=function(a){return this.request("connect",{siteId:this.siteId,client:"visitor",clientId:this._readClientId(),location:window.location.href,referer:document.referrer})};this.listen=function(a){return this.request("listen",{})};this.call=function(){return this.request("call",{})};this.start=function(){this.connect("")};this.speak=function(a){return this.request("speak",{toClientId:this.toClientId,content:a})}}var objWebChat=new WebChat();Ext.onReady(function(){objWebChat.start()});
/* EOF object(stdClass)#1 (1) {
  ["debug"]=>
  bool(false)
}
 */
