Ext={version:"2.2.1"};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 idSeed=0;
var ua=navigator.userAgent.toLowerCase();var isStrict=document.compatMode=="CSS1Compat",isOpera=ua.indexOf("opera")>-1,isChrome=ua.indexOf("chrome")>-1,isSafari=!isChrome&&(/webkit|khtml/).test(ua),isSafari3=isSafari&&ua.indexOf("webkit/5")!=-1,isIE=!isOpera&&ua.indexOf("msie")>-1,isIE7=!isOpera&&ua.indexOf("msie 7")>-1,isIE8=!isOpera&&ua.indexOf("msie 8")>-1,isGecko=!isSafari&&!isChrome&&ua.indexOf("gecko")>-1,isGecko3=isGecko&&ua.indexOf("rv:1.9")>-1,isBorderBox=isIE&&!isStrict,isWindows=(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1),isMac=(ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1),isAir=(ua.indexOf("adobeair")!=-1),isLinux=(ua.indexOf("linux")!=-1),isSecure=window.location.href.toLowerCase().indexOf("https")===0;
if(isIE&&!isIE7){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}Ext.apply(Ext,{isStrict:isStrict,isSecure:isSecure,isReady:false,enableGarbageCollector:true,enableListenerCollection:false,SSL_SECURE_URL:"javascript:false",BLANK_IMAGE_URL:"http://extjs.com/s.gif",emptyFn:function(){},applyIf:function(o,c){if(o&&c){for(var p in c){if(typeof o[p]=="undefined"){o[p]=c[p]
}}}return o},addBehaviors:function(o){if(!Ext.isReady){Ext.onReady(function(){Ext.addBehaviors(o)
});return}var cache={};for(var b in o){var parts=b.split("@");if(parts[1]){var s=parts[0];
if(!cache[s]){cache[s]=Ext.select(s)}cache[s].on(parts[1],o[b])}}cache=null},id:function(el,prefix){prefix=prefix||"ext-gen";
el=Ext.getDom(el);var id=prefix+(++idSeed);return el?(el.id?el.id:(el.id=id)):id},extend:function(){var io=function(o){for(var m in o){this[m]=o[m]
}};var oc=Object.prototype.constructor;return function(sb,sp,overrides){if(typeof sp=="object"){overrides=sp;
sp=sb;sb=overrides.constructor!=oc?overrides.constructor:function(){sp.apply(this,arguments)
}}var F=function(){},sbp,spp=sp.prototype;F.prototype=spp;sbp=sb.prototype=new F();
sbp.constructor=sb;sb.superclass=spp;if(spp.constructor==oc){spp.constructor=sp}sb.override=function(o){Ext.override(sb,o)
};sbp.override=io;Ext.override(sb,overrides);sb.extend=function(o){Ext.extend(sb,o)
};return sb}}(),override:function(origclass,overrides){if(overrides){var p=origclass.prototype;
for(var method in overrides){p[method]=overrides[method]}if(Ext.isIE&&overrides.toString!=origclass.toString){p.toString=overrides.toString
}}},namespace:function(){var a=arguments,o=null,i,j,d,rt;for(i=0;i<a.length;++i){d=a[i].split(".");
rt=d[0];eval("if (typeof "+rt+' == "undefined"){'+rt+" = {};} o = "+rt+";");for(j=1;
j<d.length;++j){o[d[j]]=o[d[j]]||{};o=o[d[j]]}}},urlEncode:function(o){if(!o){return""
}var buf=[];for(var key in o){var ov=o[key],k=encodeURIComponent(key);var type=typeof ov;
if(type=="undefined"){buf.push(k,"=&")}else{if(type!="function"&&type!="object"){buf.push(k,"=",encodeURIComponent(ov),"&")
}else{if(Ext.isDate(ov)){var s=Ext.encode(ov).replace(/"/g,"");buf.push(k,"=",s,"&")
}else{if(Ext.isArray(ov)){if(ov.length){for(var i=0,len=ov.length;i<len;i++){buf.push(k,"=",encodeURIComponent(ov[i]===undefined?"":ov[i]),"&")
}}else{buf.push(k,"=&")}}}}}}buf.pop();return buf.join("")},urlDecode:function(string,overwrite){if(!string||!string.length){return{}
}var obj={};var pairs=string.split("&");var pair,name,value;for(var i=0,len=pairs.length;
i<len;i++){pair=pairs[i].split("=");name=decodeURIComponent(pair[0]);value=decodeURIComponent(pair[1]);
if(overwrite!==true){if(typeof obj[name]=="undefined"){obj[name]=value}else{if(typeof obj[name]=="string"){obj[name]=[obj[name]];
obj[name].push(value)}else{obj[name].push(value)}}}else{obj[name]=value}}return obj
},each:function(array,fn,scope){if(typeof array.length=="undefined"||typeof array=="string"){array=[array]
}for(var i=0,len=array.length;i<len;i++){if(fn.call(scope||array[i],array[i],i,array)===false){return i
}}},combine:function(){var as=arguments,l=as.length,r=[];for(var i=0;i<l;i++){var a=as[i];
if(Ext.isArray(a)){r=r.concat(a)}else{if(a.length!==undefined&&!a.substr){r=r.concat(Array.prototype.slice.call(a,0))
}else{r.push(a)}}}return r},escapeRe:function(s){return s.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")
},callback:function(cb,scope,args,delay){if(typeof cb=="function"){if(delay){cb.defer(delay,scope,args||[])
}else{cb.apply(scope,args||[])}}},getDom:function(el){if(!el||!document){return null
}return el.dom?el.dom:(typeof el=="string"?document.getElementById(el):el)},getDoc:function(){return Ext.get(document)
},getBody:function(){return Ext.get(document.body||document.documentElement)},getCmp:function(id){return Ext.ComponentMgr.get(id)
},num:function(v,defaultValue){if(typeof v!="number"||isNaN(v)){return defaultValue
}return v},destroy:function(){for(var i=0,a=arguments,len=a.length;i<len;i++){var as=a[i];
if(as){if(typeof as.destroy=="function"){as.destroy()}else{if(as.dom){as.removeAllListeners();
as.remove()}}}}},removeNode:isIE?function(){var d;return function(n){if(n&&n.tagName!="BODY"){d=d||document.createElement("div");
d.appendChild(n);d.innerHTML=""}}}():function(n){if(n&&n.parentNode&&n.tagName!="BODY"){n.parentNode.removeChild(n)
}},type:function(o){if(o===undefined||o===null){return false}if(o.htmlElement){return"element"
}var t=typeof o;if(t=="object"&&o.nodeName){switch(o.nodeType){case 1:return"element";
case 3:return(/\S/).test(o.nodeValue)?"textnode":"whitespace"}}if(t=="object"||t=="function"){switch(o.constructor){case Array:return"array";
case RegExp:return"regexp";case Date:return"date"}if(typeof o.length=="number"&&typeof o.item=="function"){return"nodelist"
}}return t},isEmpty:function(v,allowBlank){return v===null||v===undefined||(!allowBlank?v==="":false)
},value:function(v,defaultValue,allowBlank){return Ext.isEmpty(v,allowBlank)?defaultValue:v
},isArray:function(v){return v&&typeof v.length=="number"&&typeof v.splice=="function"
},isDate:function(v){return v&&typeof v.getFullYear=="function"},isOpera:isOpera,isChrome:isChrome,isSafari:isSafari,isSafari3:isSafari3,isSafari2:isSafari&&!isSafari3,isIE:isIE,isIE6:isIE&&!isIE7&&!isIE8,isIE7:isIE7,isIE8:isIE8,isGecko:isGecko,isGecko2:isGecko&&!isGecko3,isGecko3:isGecko3,isBorderBox:isBorderBox,isLinux:isLinux,isWindows:isWindows,isMac:isMac,isAir:isAir,useShims:((isIE&&!isIE7)||(isMac&&isGecko&&!isGecko3))});
Ext.ns=Ext.namespace})();Ext.ns("Ext","Ext.util","Ext.grid","Ext.dd","Ext.tree","Ext.data","Ext.form","Ext.menu","Ext.state","Ext.lib","Ext.layout","Ext.app","Ext.ux");
Ext.apply(Function.prototype,{createCallback:function(){var d=arguments;var 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){return setTimeout(j,k)
}j();return 0},createSequence:function(d,e){if(typeof d!="function"){return this}var g=this;
return function(){var a=g.apply(this||window,arguments);d.apply(e||this||window,arguments);
return a}},createInterceptor:function(d,e){if(typeof d!="function"){return this}var g=this;
return function(){d.target=this;d.method=g;if(d.apply(e||this||window,arguments)===false){return
}return g.apply(this||window,arguments)}}});Ext.applyIf(String,{escape:function(b){return b.replace(/('|\\)/g,"\\$1")
},leftPad:function(h,e,i){var g=new String(h);if(!i){i=" "}while(g.length<e){g=i+g
}return g.toString()},format:function(c){var d=Array.prototype.slice.call(arguments,1);
return c.replace(/\{(\d+)\}/g,function(b,a){return d[a]})}});String.prototype.toggle=function(c,d){return this==c?d:c
};String.prototype.trim=function(){var b=/^\s+|\s+$/g;return function(){return this.replace(b,"")
}}();Ext.applyIf(Number.prototype,{constrain:function(c,d){return Math.min(Math.max(this,c),d)
}});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}});Date.prototype.getElapsed=function(b){return Math.abs((b||new Date()).getTime()-this.getTime())
};if(typeof jQuery=="undefined"){throw"Unable to load Ext, jQuery not found."}(function(){var d;
Ext.lib.Dom={getViewWidth:function(a){return a?Math.max(jQuery(document).width(),jQuery(window).width()):jQuery(window).width()
},getViewHeight:function(a){return a?Math.max(jQuery(document).height(),jQuery(window).height()):jQuery(window).height()
},isAncestor:function(b,a){b=Ext.getDom(b);a=Ext.getDom(a);if(!b||!a){return false
}if(b.contains&&!Ext.isSafari){return b.contains(a)}else{if(b.compareDocumentPosition){return !!(b.compareDocumentPosition(a)&16)
}else{var c=a.parentNode;while(c){if(c==b){return true}else{if(!c.tagName||c.tagName.toUpperCase()=="HTML"){return false
}}c=c.parentNode}return false}}},getRegion:function(a){return Ext.lib.Region.getRegion(a)
},getY:function(a){return this.getXY(a)[1]},getX:function(a){return this.getXY(a)[0]
},getXY:function(v){var w,r,p,c,s=(document.body||document.documentElement);v=Ext.getDom(v);
if(v==s){return[0,0]}if(v.getBoundingClientRect){p=v.getBoundingClientRect();c=g(document).getScroll();
return[p.left+c.left,p.top+c.top]}var b=0,q=0;w=v;var x=g(v).getStyle("position")=="absolute";
while(w){b+=w.offsetLeft;q+=w.offsetTop;if(!x&&g(w).getStyle("position")=="absolute"){x=true
}if(Ext.isGecko){r=g(w);var a=parseInt(r.getStyle("borderTopWidth"),10)||0;var u=parseInt(r.getStyle("borderLeftWidth"),10)||0;
b+=u;q+=a;if(w!=v&&r.getStyle("overflow")!="visible"){b+=u;q+=a}}w=w.offsetParent
}if(Ext.isSafari&&x){b-=s.offsetLeft;q-=s.offsetTop}if(Ext.isGecko&&!x){var t=g(s);
b+=parseInt(t.getStyle("borderLeftWidth"),10)||0;q+=parseInt(t.getStyle("borderTopWidth"),10)||0
}w=v.parentNode;while(w&&w!=s){if(!Ext.isOpera||(w.tagName!="TR"&&g(w).getStyle("display")!="inline")){b-=w.scrollLeft;
q-=w.scrollTop}w=w.parentNode}return[b,q]},setXY:function(c,b){c=Ext.fly(c,"_setXY");
c.position();var a=c.translatePoints(b);if(b[0]!==false){c.dom.style.left=a.left+"px"
}if(b[1]!==false){c.dom.style.top=a.top+"px"}},setX:function(a,b){this.setXY(a,[b,false])
},setY:function(b,a){this.setXY(b,[false,a])}};function g(a){if(!d){d=new Ext.Element.Flyweight()
}d.dom=a;return d}Ext.lib.Event={getPageX:function(a){a=a.browserEvent||a;return a.pageX
},getPageY:function(a){a=a.browserEvent||a;return a.pageY},getXY:function(a){a=a.browserEvent||a;
return[a.pageX,a.pageY]},getTarget:function(a){return a.target},on:function(a,j,b,c,i){jQuery(a).bind(j,b)
},un:function(a,c,b){jQuery(a).unbind(c,b)},purgeElement:function(a){jQuery(a).unbind()
},preventDefault:function(a){a=a.browserEvent||a;if(a.preventDefault){a.preventDefault()
}else{a.returnValue=false}},stopPropagation:function(a){a=a.browserEvent||a;if(a.stopPropagation){a.stopPropagation()
}else{a.cancelBubble=true}},stopEvent:function(a){this.preventDefault(a);this.stopPropagation(a)
},onAvailable:function(a,l,m){var b=new Date();var k=function(){if(b.getElapsed()>10000){clearInterval(c)
}var h=document.getElementById(a);if(h){clearInterval(c);l.call(m||window,h)}};var c=setInterval(k,50)
},resolveTextNode:function(a){if(a&&3==a.nodeType){return a.parentNode}else{return a
}},getRelatedTarget:function(a){a=a.browserEvent||a;var b=a.relatedTarget;if(!b){if(a.type=="mouseout"){b=a.toElement
}else{if(a.type=="mouseover"){b=a.fromElement}}}return this.resolveTextNode(b)}};
Ext.lib.Ajax=function(){var a=function(b){return function(c,h){if((h=="error"||h=="timeout")&&b.failure){b.failure.call(b.scope||window,{responseText:c.responseText,responseXML:c.responseXML,argument:b.argument})
}else{if(b.success){b.success.call(b.scope||window,{responseText:c.responseText,responseXML:c.responseXML,argument:b.argument})
}}}};return{request:function(b,m,p,l,o){var c={type:b,url:m,data:l,timeout:p.timeout,complete:a(p)};
if(o){var n=o.headers;if(o.xmlData){c.data=o.xmlData;c.processData=false;c.type=(b?b:(o.method?o.method:"POST"));
if(!n||!n["Content-Type"]){c.contentType="text/xml"}}else{if(o.jsonData){c.data=typeof o.jsonData=="object"?Ext.encode(o.jsonData):o.jsonData;
c.processData=false;c.type=(b?b:(o.method?o.method:"POST"));if(!n||!n["Content-Type"]){c.contentType="application/json"
}}}if(n){c.beforeSend=function(h){for(var i in n){if(n.hasOwnProperty(i)){h.setRequestHeader(i,n[i])
}}}}}jQuery.ajax(c)},formRequest:function(c,k,m,b,n,l){jQuery.ajax({type:Ext.getDom(c).method||"POST",url:k,data:jQuery(c).serialize()+(b?"&"+b:""),timeout:m.timeout,complete:a(m)})
},isCallInProgress:function(b){return false},abort:function(b){return false},serializeForm:function(b){return jQuery(b.dom||b).serialize()
}}}();Ext.lib.Anim=function(){var a=function(h,c){var b=true;return{stop:function(i){},isAnimated:function(){return b
},proxyCallback:function(){b=false;Ext.callback(h,c)}}};return{scroll:function(m,o,c,b,p,n){var l=a(p,n);
m=Ext.getDom(m);if(typeof o.scroll.to[0]=="number"){m.scrollLeft=o.scroll.to[0]}if(typeof o.scroll.to[1]=="number"){m.scrollTop=o.scroll.to[1]
}l.proxyCallback();return l},motion:function(k,m,c,b,n,l){return this.run(k,m,c,b,n,l)
},color:function(m,o,c,b,p,n){var l=a(p,n);l.proxyCallback();return l},run:function(A,c,x,k,z,E,b){var w=a(z,E),v=Ext.fly(A,"_animrun");
var B={};for(var y in c){if(c[y].from){if(y!="points"){v.setStyle(y,c[y].from)}}switch(y){case"points":var o,C;
v.position();if(o=c.points.by){var D=v.getXY();C=v.translatePoints([D[0]+o[0],D[1]+o[1]])
}else{C=v.translatePoints(c.points.to)}B.left=C.left;B.top=C.top;if(!parseInt(v.getStyle("left"),10)){v.setLeft(0)
}if(!parseInt(v.getStyle("top"),10)){v.setTop(0)}if(c.points.from){v.setXY(c.points.from)
}break;case"width":B.width=c.width.to;break;case"height":B.height=c.height.to;break;
case"opacity":B.opacity=c.opacity.to;break;case"left":B.left=c.left.to;break;case"top":B.top=c.top.to;
break;default:B[y]=c[y].to;break}}jQuery(A).animate(B,x*1000,undefined,w.proxyCallback);
return w}}}();Ext.lib.Region=function(b,a,h,c){this.top=b;this[1]=b;this.right=a;
this.bottom=h;this.left=c;this[0]=c};Ext.lib.Region.prototype={contains:function(a){return(a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom)
},getArea:function(){return((this.bottom-this.top)*(this.right-this.left))},intersect:function(a){var c=Math.max(this.top,a.top);
var b=Math.min(this.right,a.right);var j=Math.min(this.bottom,a.bottom);var i=Math.max(this.left,a.left);
if(j>=c&&b>=i){return new Ext.lib.Region(c,b,j,i)}else{return null}},union:function(a){var c=Math.min(this.top,a.top);
var b=Math.max(this.right,a.right);var j=Math.max(this.bottom,a.bottom);var i=Math.min(this.left,a.left);
return new Ext.lib.Region(c,b,j,i)},constrainTo:function(a){this.top=this.top.constrain(a.top,a.bottom);
this.bottom=this.bottom.constrain(a.top,a.bottom);this.left=this.left.constrain(a.left,a.right);
this.right=this.right.constrain(a.left,a.right);return this},adjust:function(b,c,h,a){this.top+=b;
this.left+=c;this.right+=a;this.bottom+=h;return this}};Ext.lib.Region.getRegion=function(c){var a=Ext.lib.Dom.getXY(c);
var j=a[1];var b=a[0]+c.offsetWidth;var l=a[1]+c.offsetHeight;var k=a[0];return new Ext.lib.Region(j,b,l,k)
};Ext.lib.Point=function(b,a){if(Ext.isArray(b)){a=b[1];b=b[0]}this.x=this.right=this.left=this[0]=b;
this.y=this.top=this.bottom=this[1]=a};Ext.lib.Point.prototype=new Ext.lib.Region();
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)}})();Ext.DomHelper=function(){var o=null;var u=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i;
var y=/^table|tbody|tr|td$/i;var z=function(b){if(typeof b=="string"){return b}var h="";
if(Ext.isArray(b)){for(var d=0,g=b.length;d<g;d++){h+=z(b[d])}return h}if(!b.tag){b.tag="div"
}h+="<"+b.tag;for(var i in b){if(i=="tag"||i=="children"||i=="cn"||i=="html"||typeof b[i]=="function"){continue
}if(i=="style"){var c=b.style;if(typeof c=="function"){c=c.call()}if(typeof c=="string"){h+=' style="'+c+'"'
}else{if(typeof c=="object"){h+=' style="';for(var e in c){if(typeof c[e]!="function"){h+=e+":"+c[e]+";"
}}h+='"'}}}else{if(i=="cls"){h+=' class="'+b.cls+'"'}else{if(i=="htmlFor"){h+=' for="'+b.htmlFor+'"'
}else{h+=" "+i+'="'+b[i]+'"'}}}}if(u.test(b.tag)){h+="/>"}else{h+=">";var a=b.children||b.cn;
if(a){h+=z(a)}else{if(b.html){h+=b.html}}h+="</"+b.tag+">"}return h};var n=function(b,h){var c;
if(Ext.isArray(b)){c=document.createDocumentFragment();for(var d=0,g=b.length;d<g;
d++){n(b[d],c)}}else{if(typeof b=="string"){c=document.createTextNode(b)}else{c=document.createElement(b.tag||"div");
var e=!!c.setAttribute;for(var i in b){if(i=="tag"||i=="children"||i=="cn"||i=="html"||i=="style"||typeof b[i]=="function"){continue
}if(i=="cls"){c.className=b.cls}else{if(e){c.setAttribute(i,b[i])}else{c[i]=b[i]}}}Ext.DomHelper.applyStyles(c,b.style);
var a=b.children||b.cn;if(a){n(a,c)}else{if(b.html){c.innerHTML=b.html}}}}if(h){h.appendChild(c)
}return c};var r=function(a,c,d,b){o.innerHTML=[c,d,b].join("");var g=-1,e=o;while(++g<a){e=e.firstChild
}return e};var q="<table>",v="</table>",x=q+"<tbody>",p="</tbody>"+v,s=x+"<tr>",w="</tr>"+p;
var t=function(g,e,c,d){if(!o){o=document.createElement("div")}var b;var a=null;if(g=="td"){if(e=="afterbegin"||e=="beforeend"){return
}if(e=="beforebegin"){a=c;c=c.parentNode}else{a=c.nextSibling;c=c.parentNode}b=r(4,s,d,w)
}else{if(g=="tr"){if(e=="beforebegin"){a=c;c=c.parentNode;b=r(3,x,d,p)}else{if(e=="afterend"){a=c.nextSibling;
c=c.parentNode;b=r(3,x,d,p)}else{if(e=="afterbegin"){a=c.firstChild}b=r(4,s,d,w)}}}else{if(g=="tbody"){if(e=="beforebegin"){a=c;
c=c.parentNode;b=r(2,q,d,v)}else{if(e=="afterend"){a=c.nextSibling;c=c.parentNode;
b=r(2,q,d,v)}else{if(e=="afterbegin"){a=c.firstChild}b=r(3,x,d,p)}}}else{if(e=="beforebegin"||e=="afterend"){return
}if(e=="afterbegin"){a=c.firstChild}b=r(2,q,d,v)}}}c.insertBefore(b,a);return b};
return{useDom:false,markup:function(a){return z(a)},applyStyles:function(c,b){if(b){c=Ext.fly(c);
if(typeof b=="string"){var d=/\s?([a-z\-]*)\:\s?([^;]*);?/gi;var a;while((a=d.exec(b))!=null){c.setStyle(a[1],a[2])
}}else{if(typeof b=="object"){for(var e in b){c.setStyle(e,b[e])}}else{if(typeof b=="function"){Ext.DomHelper.applyStyles(c,b.call())
}}}}},insertHtml:function(d,b,c){d=d.toLowerCase();if(b.insertAdjacentHTML){if(y.test(b.tagName)){var e;
if(e=t(b.tagName.toLowerCase(),d,b,c)){return e}}switch(d){case"beforebegin":b.insertAdjacentHTML("BeforeBegin",c);
return b.previousSibling;case"afterbegin":b.insertAdjacentHTML("AfterBegin",c);return b.firstChild;
case"beforeend":b.insertAdjacentHTML("BeforeEnd",c);return b.lastChild;case"afterend":b.insertAdjacentHTML("AfterEnd",c);
return b.nextSibling}throw'Illegal insertion point -> "'+d+'"'}var g=b.ownerDocument.createRange();
var a;switch(d){case"beforebegin":g.setStartBefore(b);a=g.createContextualFragment(c);
b.parentNode.insertBefore(a,b);return b.previousSibling;case"afterbegin":if(b.firstChild){g.setStartBefore(b.firstChild);
a=g.createContextualFragment(c);b.insertBefore(a,b.firstChild);return b.firstChild
}else{b.innerHTML=c;return b.firstChild}case"beforeend":if(b.lastChild){g.setStartAfter(b.lastChild);
a=g.createContextualFragment(c);b.appendChild(a);return b.lastChild}else{b.innerHTML=c;
return b.lastChild}case"afterend":g.setStartAfter(b);a=g.createContextualFragment(c);
b.parentNode.insertBefore(a,b.nextSibling);return b.nextSibling}throw'Illegal insertion point -> "'+d+'"'
},insertBefore:function(c,a,b){return this.doInsert(c,a,b,"beforeBegin")},insertAfter:function(c,a,b){return this.doInsert(c,a,b,"afterEnd","nextSibling")
},insertFirst:function(c,a,b){return this.doInsert(c,a,b,"afterBegin","firstChild")
},doInsert:function(d,b,c,a,e){d=Ext.getDom(d);var g;if(this.useDom){g=n(b,null);
(e==="firstChild"?d:d.parentNode).insertBefore(g,e?d[e]:d)}else{var h=z(b);g=this.insertHtml(a,d,h)
}return c?Ext.get(g,true):g},append:function(c,a,b){c=Ext.getDom(c);var d;if(this.useDom){d=n(a,null);
c.appendChild(d)}else{var e=z(a);d=this.insertHtml("beforeEnd",c,e)}return b?Ext.get(d,true):d
},overwrite:function(c,a,b){c=Ext.getDom(c);c.innerHTML=z(a);return b?Ext.get(c.firstChild,true):c.firstChild
},createTemplate:function(a){var b=z(a);return new Ext.Template(b)}}}();Ext.Template=function(g){var j=arguments;
if(Ext.isArray(g)){g=g.join("")}else{if(j.length>1){var i=[];for(var h=0,a=j.length;
h<a;h++){if(typeof j[h]=="object"){Ext.apply(this,j[h])}else{i[i.length]=j[h]}}g=i.join("")
}}this.html=g;if(this.compiled){this.compile()}};Ext.Template.prototype={applyTemplate:function(g){if(this.compiled){return this.compiled(g)
}var h=this.disableFormats!==true;var i=Ext.util.Format,k=this;var j=function(e,c,o,d){if(o&&h){if(o.substr(0,5)=="this."){return k.call(o.substr(5),g[c],g)
}else{if(d){var a=/^\s*['"](.*)["']\s*$/;d=d.split(",");for(var b=0,m=d.length;b<m;
b++){d[b]=d[b].replace(a,"$1")}d=[g[c]].concat(d)}else{d=[g[c]]}return i[o].apply(i,d)
}}else{return g[c]!==undefined?g[c]:""}};return this.html.replace(this.re,j)},set:function(d,c){this.html=d;
this.compiled=null;if(c){this.compile()}return this},disableFormats:false,re:/\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,compile:function(){var fm=Ext.util.Format;
var useF=this.disableFormats!==true;var sep=Ext.isGecko?"+":",";var fn=function(m,name,format,args){if(format&&useF){args=args?","+args:"";
if(format.substr(0,5)!="this."){format="fm."+format+"("}else{format='this.call("'+format.substr(5)+'", ';
args=", values"}}else{args="";format="(values['"+name+"'] == undefined ? '' : "}return"'"+sep+format+"values['"+name+"']"+args+")"+sep+"'"
};var body;if(Ext.isGecko){body="this.compiled = function(values){ return '"+this.html.replace(/\\/g,"\\\\").replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn)+"';};"
}else{body=["this.compiled = function(values){ return ['"];body.push(this.html.replace(/\\/g,"\\\\").replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn));
body.push("'].join('');};");body=body.join("")}eval(body);return this},call:function(g,d,e){return this[g](d,e)
},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.DomHelper.Template=Ext.Template;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={};
var nonSpace=/\S/;var trimRe=/^\s+|\s+$/g;var tplRe=/\{(\d+)\}/g;var modeRe=/^(\s?[\/>+~]\s?|\s|$)/;
var tagTokenRe=/^(#)?([\w-\*]+)/;var nthRe=/(\d*)n\+?(\d*)/,nthRe2=/\D/;function child(p,index){var i=0;
var 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;while(n){var 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=="{";
var 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)
}var isIE=window.ActiveXObject?true:false;eval("var batch = 30803;");var key=30803;
function nodupIEXml(cs){var d=++key;cs[0].setAttribute("_nodup",d);var 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;for(var i=0,len=c1.length;
i<len;i++){c1[i].setAttribute("_qdiff",d)}var r=[];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;
if(!len1){return c2}if(isIE&&c1[0].selectSingleNode){return quickDiffIEXml(c1,c2)
}var d=++key;for(var i=0;i<len1;i++){c1[i]._qdiff=d}var r=[];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"];
var q=path,mode,lq;var tk=Ext.DomQuery.matchers;var tklen=tk.length;var mm;var 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(",");
var 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);n=n[0]?n[0]:n;var 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);var 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;var m=nthRe.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"||!nthRe2.test(a)&&"n+"+a||a);
var 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("|");
var 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;var 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;
var 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;var r=[],ri=-1;for(var i=0,ci;
ci=c[i];i++){var n=prev(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r}}}}();Ext.query=Ext.DomQuery.select;
Ext.util.Observable=function(){if(this.listeners){this.on(this.listeners);delete this.listeners
}};Ext.util.Observable.prototype={fireEvent:function(){if(this.eventsSuspended!==true){var b=this.events[arguments[0].toLowerCase()];
if(typeof b=="object"){return b.fire.apply(b,Array.prototype.slice.call(arguments,1))
}}return true},filterOptRe:/^(?:scope|delay|buffer|single)$/,addListener:function(h,l,e,i){if(typeof h=="object"){i=h;
for(var j in i){if(this.filterOptRe.test(j)){continue}if(typeof i[j]=="function"){this.addListener(j,i[j],i.scope,i)
}else{this.addListener(j,i[j].fn,i[j].scope,i[j])}}return}i=(!i||typeof i=="boolean")?{}:i;
h=h.toLowerCase();var k=this.events[h]||true;if(typeof k=="boolean"){k=new Ext.util.Event(this,h);
this.events[h]=k}k.addListener(l,e,i)},removeListener:function(g,i,e){var h=this.events[g.toLowerCase()];
if(typeof h=="object"){h.removeListener(i,e)}},purgeListeners:function(){for(var b in this.events){if(typeof this.events[b]=="object"){this.events[b].clearListeners()
}}},relayEvents:function(i,k){var j=function(a){return function(){return this.fireEvent.apply(this,Ext.combine(a,Array.prototype.slice.call(arguments,0)))
}};for(var l=0,h=k.length;l<h;l++){var g=k[l];if(!this.events[g]){this.events[g]=true
}i.on(g,j(g),this)}},addEvents:function(g){if(!this.events){this.events={}}if(typeof g=="string"){for(var h=0,a=arguments,i;
i=a[h];h++){if(!this.events[a[h]]){this.events[a[h]]=true}}}else{Ext.applyIf(this.events,g)
}},hasListener:function(d){var c=this.events[d];return typeof c=="object"&&c.listeners.length>0
},suspendEvents:function(){this.eventsSuspended=true},resumeEvents:function(){this.eventsSuspended=false
},getMethodEvent:function(j){if(!this.methodEvents){this.methodEvents={}}var k=this.methodEvents[j];
if(!k){k={};this.methodEvents[j]=k;k.originalFn=this[j];k.methodName=j;k.before=[];
k.after=[];var n,e,m;var l=this;var i=function(a,b,c){if((e=a.apply(b||l,c))!==undefined){if(typeof e==="object"){if(e.returnValue!==undefined){n=e.returnValue
}else{n=e}if(e.cancel===true){m=true}}else{if(e===false){m=true}else{n=e}}}};this[j]=function(){n=e=undefined;
m=false;var b=Array.prototype.slice.call(arguments,0);for(var a=0,c=k.before.length;
a<c;a++){i(k.before[a].fn,k.before[a].scope,b);if(m){return n}}if((e=k.originalFn.apply(l,b))!==undefined){n=e
}for(var a=0,c=k.after.length;a<c;a++){i(k.after[a].fn,k.after[a].scope,b);if(m){return n
}}return n}}return k},beforeMethod:function(h,e,g){var i=this.getMethodEvent(h);i.before.push({fn:e,scope:g})
},afterMethod:function(h,e,g){var i=this.getMethodEvent(h);i.after.push({fn:e,scope:g})
},removeMethodListener:function(i,k,l){var j=this.getMethodEvent(i);for(var e=0,h=j.before.length;
e<h;e++){if(j.before[e].fn==k&&j.before[e].scope==l){j.before.splice(e,1);return}}for(var e=0,h=j.after.length;
e<h;e++){if(j.after[e].fn==k&&j.after[e].scope==l){j.after.splice(e,1);return}}}};
Ext.util.Observable.prototype.on=Ext.util.Observable.prototype.addListener;Ext.util.Observable.prototype.un=Ext.util.Observable.prototype.removeListener;
Ext.util.Observable.capture=function(g,d,e){g.fireEvent=g.fireEvent.createInterceptor(d,e)
};Ext.util.Observable.releaseCapture=function(b){b.fireEvent=Ext.util.Observable.prototype.fireEvent
};(function(){var d=function(b,a,c){var h=new Ext.util.DelayedTask();return function(){h.delay(a.buffer,b,c,Array.prototype.slice.call(arguments,0))
}};var g=function(b,a,c,h){return function(){a.removeListener(c,h);return b.apply(h,arguments)
}};var e=function(b,a,c){return function(){var h=Array.prototype.slice.call(arguments,0);
setTimeout(function(){b.apply(c,h)},a.delay||10)}};Ext.util.Event=function(a,b){this.name=b;
this.obj=a;this.listeners=[]};Ext.util.Event.prototype={addListener:function(a,b,c){b=b||this.obj;
if(!this.isListening(a,b)){var h=this.createListener(a,b,c);if(!this.firing){this.listeners.push(h)
}else{this.listeners=this.listeners.slice(0);this.listeners.push(h)}}},createListener:function(b,c,a){a=a||{};
c=c||this.obj;var j={fn:b,scope:c,options:a};var h=b;if(a.delay){h=e(h,a,c)}if(a.single){h=g(h,this,b,c)
}if(a.buffer){h=d(h,a,c)}j.fireFn=h;return j},findListener:function(a,b){b=b||this.obj;
var i=this.listeners;for(var c=0,l=i.length;c<l;c++){var k=i[c];if(k.fn==a&&k.scope==b){return c
}}return -1},isListening:function(a,b){return this.findListener(a,b)!=-1},removeListener:function(a,b){var c;
if((c=this.findListener(a,b))!=-1){if(!this.firing){this.listeners.splice(c,1)}else{this.listeners=this.listeners.slice(0);
this.listeners.splice(c,1)}return true}return false},clearListeners:function(){this.listeners=[]
},fire:function(){var i=this.listeners,a,l=i.length;if(l>0){this.firing=true;var c=Array.prototype.slice.call(arguments,0);
for(var b=0;b<l;b++){var k=i[b];if(k.fireFn.apply(k.scope||this.obj||window,arguments)===false){this.firing=false;
return false}}this.firing=false}return true}}})();Ext.EventManager=function(){var w,D,H=false;
var G,x,M,B;var E=Ext.lib.Event;var C=Ext.lib.Dom;var R="Ext";var K={};var F=function(i,b,a,g,h){var d=Ext.id(i);
if(!K[d]){K[d]={}}var e=K[d];if(!e[b]){e[b]=[]}var c=e[b];c.push({id:d,ename:b,fn:a,wrap:g,scope:h});
E.on(i,b,g);if(b=="mousewheel"&&i.addEventListener){i.addEventListener("DOMMouseScroll",g,false);
E.on(window,"unload",function(){i.removeEventListener("DOMMouseScroll",g,false)})
}if(b=="mousedown"&&i==document){Ext.EventManager.stoppedMouseDownEvent.addListener(g)
}};var L=function(g,d,l,j){g=Ext.getDom(g);var i=Ext.id(g),k=K[i],h;if(k){var b=k[d],e;
if(b){for(var c=0,a=b.length;c<a;c++){e=b[c];if(e.fn==l&&(!j||e.scope==j)){h=e.wrap;
E.un(g,d,h);b.splice(c,1);break}}}}if(d=="mousewheel"&&g.addEventListener&&h){g.removeEventListener("DOMMouseScroll",h,false)
}if(d=="mousedown"&&g==document&&h){Ext.EventManager.stoppedMouseDownEvent.removeListener(h)
}};var O=function(b){b=Ext.getDom(b);var e=Ext.id(b),h=K[e],a;if(h){for(var d in h){if(h.hasOwnProperty(d)){a=h[d];
for(var g=0,c=a.length;g<c;g++){E.un(b,d,a[g].wrap);a[g]=null}}h[d]=null}delete K[e]
}};var P=function(){if(!H){H=true;Ext.isReady=true;if(D){clearInterval(D)}if(Ext.isGecko||Ext.isOpera){document.removeEventListener("DOMContentLoaded",P,false)
}if(Ext.isIE){var a=document.getElementById("ie-deferred-loader");if(a){a.onreadystatechange=null;
a.parentNode.removeChild(a)}}if(w){w.fire();w.clearListeners()}}};var Q=function(){w=new Ext.util.Event();
if(Ext.isGecko||Ext.isOpera){document.addEventListener("DOMContentLoaded",P,false)
}else{if(Ext.isIE){document.write('<script id="ie-deferred-loader" defer="defer" src="//:"><\/script>');
var a=document.getElementById("ie-deferred-loader");a.onreadystatechange=function(){if(this.readyState=="complete"){P()
}}}else{if(Ext.isSafari){D=setInterval(function(){var b=document.readyState;if(b=="complete"){P()
}},10)}}}E.on(window,"load",P)};var y=function(a,c){var b=new Ext.util.DelayedTask(a);
return function(d){d=new Ext.EventObjectImpl(d);b.delay(c.buffer,a,null,[d])}};var A=function(b,d,c,e,a){return function(g){Ext.EventManager.removeListener(d,c,e,a);
b(g)}};var N=function(b,a){return function(c){c=new Ext.EventObjectImpl(c);setTimeout(function(){b(c)
},a.delay||10)}};var I=function(i,b,c,g,h){var d=(!c||typeof c=="boolean")?{}:c;g=g||d.fn;
h=h||d.scope;var a=Ext.getDom(i);if(!a){throw'Error listening for "'+b+'". Element "'+i+"\" doesn't exist."
}var e=function(j){if(!window[R]){return}j=Ext.EventObject.setEvent(j);var k;if(d.delegate){k=j.getTarget(d.delegate,a);
if(!k){return}}else{k=j.target}if(d.stopEvent===true){j.stopEvent()}if(d.preventDefault===true){j.preventDefault()
}if(d.stopPropagation===true){j.stopPropagation()}if(d.normalized===false){j=j.browserEvent
}g.call(h||a,j,k,d)};if(d.delay){e=N(e,d)}if(d.single){e=A(e,a,b,g,h)}if(d.buffer){e=y(e,d)
}F(a,b,g,e,h);return e};var J=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/;
var z={addListener:function(h,c,b,e,a){if(typeof c=="object"){var d=c;for(var g in d){if(J.test(g)){continue
}if(typeof d[g]=="function"){I(h,g,d,d[g],d.scope)}else{I(h,g,d[g])}}return}return I(h,c,a,b,e)
},removeListener:function(a,b,c,d){return L(a,b,c,d)},removeAll:function(a){return O(a)
},onDocumentReady:function(c,a,b){if(H){w.addListener(c,a,b);w.fire();w.clearListeners();
return}if(!w){Q()}b=b||{};if(!b.delay){b.delay=1}w.addListener(c,a,b)},doResizeEvent:function(){G.fire(C.getViewWidth(),C.getViewHeight())
},onWindowResize:function(c,a,b){if(!G){G=new Ext.util.Event();x=new Ext.util.DelayedTask(this.doResizeEvent);
E.on(window,"resize",this.fireWindowResize,this)}G.addListener(c,a,b)},fireWindowResize:function(){if(G){if((Ext.isIE||Ext.isAir)&&x){x.delay(50)
}else{G.fire(C.getViewWidth(),C.getViewHeight())}}},onTextResize:function(c,d,b){if(!M){M=new Ext.util.Event();
var a=new Ext.Element(document.createElement("div"));a.dom.className="x-text-resize";
a.dom.innerHTML="X";a.appendTo(document.body);B=a.dom.offsetHeight;setInterval(function(){if(a.dom.offsetHeight!=B){M.fire(B,B=a.dom.offsetHeight)
}},this.textResizeInterval)}M.addListener(c,d,b)},removeResizeListener:function(a,b){if(G){G.removeListener(a,b)
}},fireResize:function(){if(G){G.fire(C.getViewWidth(),C.getViewHeight())}},ieDeferSrc:false,textResizeInterval:50};
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.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;
var e={3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35};
var g=Ext.isIE?{1:0,4:1,2:2}:(Ext.isSafari?{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={browserEvent:null,button:-1,shiftKey:false,ctrlKey:false,altKey:false,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,CONTROL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGEUP:33,PAGE_DOWN:34,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,setEvent:function(a){if(a==this||(a&&a.browserEvent)){return a
}this.browserEvent=a;if(a){this.button=a.button?g[a.button]:(a.which?a.which-1:-1);
if(a.type=="click"&&this.button==-1){this.button=0}this.type=a.type;this.shiftKey=a.shiftKey;
this.ctrlKey=a.ctrlKey||a.metaKey;this.altKey=a.altKey;this.keyCode=a.keyCode;this.charCode=a.charCode;
this.target=d.getTarget(a);this.xy=d.getXY(a)}else{this.button=-1;this.shiftKey=false;
this.ctrlKey=false;this.altKey=false;this.keyCode=0;this.charCode=0;this.target=null;
this.xy=[0,0]}return this},stopEvent:function(){if(this.browserEvent){if(this.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(this)
}d.stopEvent(this.browserEvent)}},preventDefault:function(){if(this.browserEvent){d.preventDefault(this.browserEvent)
}},isNavKeyPress:function(){var a=this.keyCode;a=Ext.isSafari?(e[a]||a):a;return(a>=33&&a<=40)||a==this.RETURN||a==this.TAB||a==this.ESC
},isSpecialKey:function(){var a=this.keyCode;return(this.type=="keypress"&&this.ctrlKey)||a==9||a==13||a==40||a==27||(a==16)||(a==17)||(a>=18&&a<=20)||(a>=33&&a<=35)||(a>=36&&a<=39)||(a>=44&&a<=45)
},stopPropagation:function(){if(this.browserEvent){if(this.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(this)
}d.stopPropagation(this.browserEvent)}},getCharCode:function(){return this.charCode||this.keyCode
},getKey:function(){var a=this.keyCode||this.charCode;return Ext.isSafari?(e[a]||a):a
},getPageX:function(){return this.xy[0]},getPageY:function(){return this.xy[1]},getTime:function(){if(this.browserEvent){return d.getTime(this.browserEvent)
}return null},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(){if(this.browserEvent){return d.getRelatedTarget(this.browserEvent)
}return 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},hasModifier:function(){return((this.ctrlKey||this.altKey)||this.shiftKey)?true:false
},within:function(b,a,h){var c=this[a?"getRelatedTarget":"getTarget"]();return c&&((h?(c===Ext.getDom(b)):false)||Ext.fly(b).contains(c))
},getPoint:function(){return new Ext.lib.Point(this.xy[0],this.xy[1])}};return new Ext.EventObjectImpl()
}();(function(){var D=Ext.lib.Dom;var E=Ext.lib.Event;var A=Ext.lib.Anim;var propCache={};
var camelRe=/(-[a-z])/gi;var camelFn=function(m,a){return a.charAt(1).toUpperCase()
};var view=document.defaultView;Ext.Element=function(element,forceNew){var dom=typeof element=="string"?document.getElementById(element):element;
if(!dom){return null}var id=dom.id;if(forceNew!==true&&id&&Ext.Element.cache[id]){return Ext.Element.cache[id]
}this.dom=dom;this.id=id||Ext.id(dom)};var El=Ext.Element;El.prototype={originalDisplay:"",visibilityMode:1,defaultUnit:"px",setVisibilityMode:function(visMode){this.visibilityMode=visMode;
return this},enableDisplayMode:function(display){this.setVisibilityMode(El.DISPLAY);
if(typeof display!="undefined"){this.originalDisplay=display}return this},findParent:function(simpleSelector,maxDepth,returnEl){var p=this.dom,b=document.body,depth=0,dq=Ext.DomQuery,stopEl;
maxDepth=maxDepth||50;if(typeof maxDepth!="number"){stopEl=Ext.getDom(maxDepth);maxDepth=10
}while(p&&p.nodeType==1&&depth<maxDepth&&p!=b&&p!=stopEl){if(dq.is(p,simpleSelector)){return returnEl?Ext.get(p):p
}depth++;p=p.parentNode}return null},findParentNode:function(simpleSelector,maxDepth,returnEl){var p=Ext.fly(this.dom.parentNode,"_internal");
return p?p.findParent(simpleSelector,maxDepth,returnEl):null},up:function(simpleSelector,maxDepth){return this.findParentNode(simpleSelector,maxDepth,true)
},is:function(simpleSelector){return Ext.DomQuery.is(this.dom,simpleSelector)},animate:function(args,duration,onComplete,easing,animType){this.anim(args,{duration:duration,callback:onComplete,easing:easing},animType);
return this},anim:function(args,opt,animType,defaultDur,defaultEase,cb){animType=animType||"run";
opt=opt||{};var anim=Ext.lib.Anim[animType](this.dom,args,(opt.duration||defaultDur)||0.35,(opt.easing||defaultEase)||"easeOut",function(){Ext.callback(cb,this);
Ext.callback(opt.callback,opt.scope||this,[this,opt])},this);opt.anim=anim;return anim
},preanim:function(a,i){return !a[i]?false:(typeof a[i]=="object"?a[i]:{duration:a[i+1],callback:a[i+2],easing:a[i+3]})
},clean:function(forceReclean){if(this.isCleaned&&forceReclean!==true){return this
}var ns=/\S/;var d=this.dom,n=d.firstChild,ni=-1;while(n){var nx=n.nextSibling;if(n.nodeType==3&&!ns.test(n.nodeValue)){d.removeChild(n)
}else{n.nodeIndex=++ni}n=nx}this.isCleaned=true;return this},scrollIntoView:function(container,hscroll){var c=Ext.getDom(container)||Ext.getBody().dom;
var el=this.dom;var o=this.getOffsetsTo(c),l=o[0]+c.scrollLeft,t=o[1]+c.scrollTop,b=t+el.offsetHeight,r=l+el.offsetWidth;
var ch=c.clientHeight;var ct=parseInt(c.scrollTop,10);var cl=parseInt(c.scrollLeft,10);
var cb=ct+ch;var cr=cl+c.clientWidth;if(el.offsetHeight>ch||t<ct){c.scrollTop=t}else{if(b>cb){c.scrollTop=b-ch
}}c.scrollTop=c.scrollTop;if(hscroll!==false){if(el.offsetWidth>c.clientWidth||l<cl){c.scrollLeft=l
}else{if(r>cr){c.scrollLeft=r-c.clientWidth}}c.scrollLeft=c.scrollLeft}return this
},scrollChildIntoView:function(child,hscroll){Ext.fly(child,"_scrollChildIntoView").scrollIntoView(this,hscroll)
},autoHeight:function(animate,duration,onComplete,easing){var oldHeight=this.getHeight();
this.clip();this.setHeight(1);setTimeout(function(){var height=parseInt(this.dom.scrollHeight,10);
if(!animate){this.setHeight(height);this.unclip();if(typeof onComplete=="function"){onComplete()
}}else{this.setHeight(oldHeight);this.setHeight(height,animate,duration,function(){this.unclip();
if(typeof onComplete=="function"){onComplete()}}.createDelegate(this),easing)}}.createDelegate(this),0);
return this},contains:function(el){if(!el){return false}return D.isAncestor(this.dom,el.dom?el.dom:el)
},isVisible:function(deep){var vis=!(this.getStyle("visibility")=="hidden"||this.getStyle("display")=="none");
if(deep!==true||!vis){return vis}var p=this.dom.parentNode;while(p&&p.tagName.toLowerCase()!="body"){if(!Ext.fly(p,"_isVisible").isVisible()){return false
}p=p.parentNode}return true},select:function(selector,unique){return El.select(selector,unique,this.dom)
},query:function(selector){return Ext.DomQuery.select(selector,this.dom)},child:function(selector,returnDom){var n=Ext.DomQuery.selectNode(selector,this.dom);
return returnDom?n:Ext.get(n)},down:function(selector,returnDom){var n=Ext.DomQuery.selectNode(" > "+selector,this.dom);
return returnDom?n:Ext.get(n)},initDD:function(group,config,overrides){var dd=new Ext.dd.DD(Ext.id(this.dom),group,config);
return Ext.apply(dd,overrides)},initDDProxy:function(group,config,overrides){var dd=new Ext.dd.DDProxy(Ext.id(this.dom),group,config);
return Ext.apply(dd,overrides)},initDDTarget:function(group,config,overrides){var dd=new Ext.dd.DDTarget(Ext.id(this.dom),group,config);
return Ext.apply(dd,overrides)},setVisible:function(visible,animate){if(!animate||!A){if(this.visibilityMode==El.DISPLAY){this.setDisplayed(visible)
}else{this.fixDisplay();this.dom.style.visibility=visible?"visible":"hidden"}}else{var dom=this.dom;
var visMode=this.visibilityMode;if(visible){this.setOpacity(0.01);this.setVisible(true)
}this.anim({opacity:{to:(visible?1:0)}},this.preanim(arguments,1),null,0.35,"easeIn",function(){if(!visible){if(visMode==El.DISPLAY){dom.style.display="none"
}else{dom.style.visibility="hidden"}Ext.get(dom).setOpacity(1)}})}return this},isDisplayed:function(){return this.getStyle("display")!="none"
},toggle:function(animate){this.setVisible(!this.isVisible(),this.preanim(arguments,0));
return this},setDisplayed:function(value){if(typeof value=="boolean"){value=value?this.originalDisplay:"none"
}this.setStyle("display",value);return this},focus:function(){try{this.dom.focus()
}catch(e){}return this},blur:function(){try{this.dom.blur()}catch(e){}return this
},addClass:function(className){if(Ext.isArray(className)){for(var i=0,len=className.length;
i<len;i++){this.addClass(className[i])}}else{if(className&&!this.hasClass(className)){this.dom.className=this.dom.className+" "+className
}}return this},radioClass:function(className){var siblings=this.dom.parentNode.childNodes;
for(var i=0;i<siblings.length;i++){var s=siblings[i];if(s.nodeType==1){Ext.get(s).removeClass(className)
}}this.addClass(className);return this},removeClass:function(className){if(!className||!this.dom.className){return this
}if(Ext.isArray(className)){for(var i=0,len=className.length;i<len;i++){this.removeClass(className[i])
}}else{if(this.hasClass(className)){var re=this.classReCache[className];if(!re){re=new RegExp("(?:^|\\s+)"+className+"(?:\\s+|$)","g");
this.classReCache[className]=re}this.dom.className=this.dom.className.replace(re," ")
}}return this},classReCache:{},toggleClass:function(className){if(this.hasClass(className)){this.removeClass(className)
}else{this.addClass(className)}return this},hasClass:function(className){return className&&(" "+this.dom.className+" ").indexOf(" "+className+" ")!=-1
},replaceClass:function(oldClassName,newClassName){this.removeClass(oldClassName);
this.addClass(newClassName);return this},getStyles:function(){var a=arguments,len=a.length,r={};
for(var i=0;i<len;i++){r[a[i]]=this.getStyle(a[i])}return r},getStyle:function(){return view&&view.getComputedStyle?function(prop){var el=this.dom,v,cs,camel;
if(prop=="float"){prop="cssFloat"}if(v=el.style[prop]){return v}if(cs=view.getComputedStyle(el,"")){if(!(camel=propCache[prop])){camel=propCache[prop]=prop.replace(camelRe,camelFn)
}return cs[camel]}return null}:function(prop){var el=this.dom,v,cs,camel;if(prop=="opacity"){if(typeof el.style.filter=="string"){var m=el.style.filter.match(/alpha\(opacity=(.*)\)/i);
if(m){var fv=parseFloat(m[1]);if(!isNaN(fv)){return fv?fv/100:0}}}return 1}else{if(prop=="float"){prop="styleFloat"
}}if(!(camel=propCache[prop])){camel=propCache[prop]=prop.replace(camelRe,camelFn)
}if(v=el.style[camel]){return v}if(cs=el.currentStyle){return cs[camel]}return null
}}(),setStyle:function(prop,value){if(typeof prop=="string"){var camel;if(!(camel=propCache[prop])){camel=propCache[prop]=prop.replace(camelRe,camelFn)
}if(camel=="opacity"){this.setOpacity(value)}else{this.dom.style[camel]=value}}else{for(var style in prop){if(typeof prop[style]!="function"){this.setStyle(style,prop[style])
}}}return this},applyStyles:function(style){Ext.DomHelper.applyStyles(this.dom,style);
return this},getX:function(){return D.getX(this.dom)},getY:function(){return D.getY(this.dom)
},getXY:function(){return D.getXY(this.dom)},getOffsetsTo:function(el){var o=this.getXY();
var e=Ext.fly(el,"_internal").getXY();return[o[0]-e[0],o[1]-e[1]]},setX:function(x,animate){if(!animate||!A){D.setX(this.dom,x)
}else{this.setXY([x,this.getY()],this.preanim(arguments,1))}return this},setY:function(y,animate){if(!animate||!A){D.setY(this.dom,y)
}else{this.setXY([this.getX(),y],this.preanim(arguments,1))}return this},setLeft:function(left){this.setStyle("left",this.addUnits(left));
return this},setTop:function(top){this.setStyle("top",this.addUnits(top));return this
},setRight:function(right){this.setStyle("right",this.addUnits(right));return this
},setBottom:function(bottom){this.setStyle("bottom",this.addUnits(bottom));return this
},setXY:function(pos,animate){if(!animate||!A){D.setXY(this.dom,pos)}else{this.anim({points:{to:pos}},this.preanim(arguments,1),"motion")
}return this},setLocation:function(x,y,animate){this.setXY([x,y],this.preanim(arguments,2));
return this},moveTo:function(x,y,animate){this.setXY([x,y],this.preanim(arguments,2));
return this},getRegion:function(){return D.getRegion(this.dom)},getHeight:function(contentHeight){var h=this.dom.offsetHeight||0;
h=contentHeight!==true?h:h-this.getBorderWidth("tb")-this.getPadding("tb");return h<0?0:h
},getWidth:function(contentWidth){var w=this.dom.offsetWidth||0;w=contentWidth!==true?w:w-this.getBorderWidth("lr")-this.getPadding("lr");
return w<0?0:w},getComputedHeight:function(){var h=Math.max(this.dom.offsetHeight,this.dom.clientHeight);
if(!h){h=parseInt(this.getStyle("height"),10)||0;if(!this.isBorderBox()){h+=this.getFrameWidth("tb")
}}return h},getComputedWidth:function(){var w=Math.max(this.dom.offsetWidth,this.dom.clientWidth);
if(!w){w=parseInt(this.getStyle("width"),10)||0;if(!this.isBorderBox()){w+=this.getFrameWidth("lr")
}}return w},getSize:function(contentSize){return{width:this.getWidth(contentSize),height:this.getHeight(contentSize)}
},getStyleSize:function(){var w,h,d=this.dom,s=d.style;if(s.width&&s.width!="auto"){w=parseInt(s.width,10);
if(Ext.isBorderBox){w-=this.getFrameWidth("lr")}}if(s.height&&s.height!="auto"){h=parseInt(s.height,10);
if(Ext.isBorderBox){h-=this.getFrameWidth("tb")}}return{width:w||this.getWidth(true),height:h||this.getHeight(true)}
},getViewSize:function(){var d=this.dom,doc=document,aw=0,ah=0;if(d==doc||d==doc.body){return{width:D.getViewWidth(),height:D.getViewHeight()}
}else{return{width:d.clientWidth,height:d.clientHeight}}},getValue:function(asNumber){return asNumber?parseInt(this.dom.value,10):this.dom.value
},adjustWidth:function(width){if(typeof width=="number"){if(this.autoBoxAdjust&&!this.isBorderBox()){width-=(this.getBorderWidth("lr")+this.getPadding("lr"))
}if(width<0){width=0}}return width},adjustHeight:function(height){if(typeof height=="number"){if(this.autoBoxAdjust&&!this.isBorderBox()){height-=(this.getBorderWidth("tb")+this.getPadding("tb"))
}if(height<0){height=0}}return height},setWidth:function(width,animate){width=this.adjustWidth(width);
if(!animate||!A){this.dom.style.width=this.addUnits(width)}else{this.anim({width:{to:width}},this.preanim(arguments,1))
}return this},setHeight:function(height,animate){height=this.adjustHeight(height);
if(!animate||!A){this.dom.style.height=this.addUnits(height)}else{this.anim({height:{to:height}},this.preanim(arguments,1))
}return this},setSize:function(width,height,animate){if(typeof width=="object"){height=width.height;
width=width.width}width=this.adjustWidth(width);height=this.adjustHeight(height);
if(!animate||!A){this.dom.style.width=this.addUnits(width);this.dom.style.height=this.addUnits(height)
}else{this.anim({width:{to:width},height:{to:height}},this.preanim(arguments,2))}return this
},setBounds:function(x,y,width,height,animate){if(!animate||!A){this.setSize(width,height);
this.setLocation(x,y)}else{width=this.adjustWidth(width);height=this.adjustHeight(height);
this.anim({points:{to:[x,y]},width:{to:width},height:{to:height}},this.preanim(arguments,4),"motion")
}return this},setRegion:function(region,animate){this.setBounds(region.left,region.top,region.right-region.left,region.bottom-region.top,this.preanim(arguments,1));
return this},addListener:function(eventName,fn,scope,options){Ext.EventManager.on(this.dom,eventName,fn,scope||this,options)
},removeListener:function(eventName,fn,scope){Ext.EventManager.removeListener(this.dom,eventName,fn,scope||this);
return this},removeAllListeners:function(){Ext.EventManager.removeAll(this.dom);return this
},relayEvent:function(eventName,observable){this.on(eventName,function(e){observable.fireEvent(eventName,e)
})},setOpacity:function(opacity,animate){if(!animate||!A){var s=this.dom.style;if(Ext.isIE){s.zoom=1;
s.filter=(s.filter||"").replace(/alpha\([^\)]*\)/gi,"")+(opacity==1?"":" alpha(opacity="+opacity*100+")")
}else{s.opacity=opacity}}else{this.anim({opacity:{to:opacity}},this.preanim(arguments,1),null,0.35,"easeIn")
}return this},getLeft:function(local){if(!local){return this.getX()}else{return parseInt(this.getStyle("left"),10)||0
}},getRight:function(local){if(!local){return this.getX()+this.getWidth()}else{return(this.getLeft(true)+this.getWidth())||0
}},getTop:function(local){if(!local){return this.getY()}else{return parseInt(this.getStyle("top"),10)||0
}},getBottom:function(local){if(!local){return this.getY()+this.getHeight()}else{return(this.getTop(true)+this.getHeight())||0
}},position:function(pos,zIndex,x,y){if(!pos){if(this.getStyle("position")=="static"){this.setStyle("position","relative")
}}else{this.setStyle("position",pos)}if(zIndex){this.setStyle("z-index",zIndex)}if(x!==undefined&&y!==undefined){this.setXY([x,y])
}else{if(x!==undefined){this.setX(x)}else{if(y!==undefined){this.setY(y)}}}},clearPositioning:function(value){value=value||"";
this.setStyle({left:value,right:value,top:value,bottom:value,"z-index":"",position:"static"});
return this},getPositioning:function(){var l=this.getStyle("left");var t=this.getStyle("top");
return{position:this.getStyle("position"),left:l,right:l?"":this.getStyle("right"),top:t,bottom:t?"":this.getStyle("bottom"),"z-index":this.getStyle("z-index")}
},getBorderWidth:function(side){return this.addStyles(side,El.borders)},getPadding:function(side){return this.addStyles(side,El.paddings)
},setPositioning:function(pc){this.applyStyles(pc);if(pc.right=="auto"){this.dom.style.right=""
}if(pc.bottom=="auto"){this.dom.style.bottom=""}return this},fixDisplay:function(){if(this.getStyle("display")=="none"){this.setStyle("visibility","hidden");
this.setStyle("display",this.originalDisplay);if(this.getStyle("display")=="none"){this.setStyle("display","block")
}}},setOverflow:function(v){if(v=="auto"&&Ext.isMac&&Ext.isGecko2){this.dom.style.overflow="hidden";
(function(){this.dom.style.overflow="auto"}).defer(1,this)}else{this.dom.style.overflow=v
}},setLeftTop:function(left,top){this.dom.style.left=this.addUnits(left);this.dom.style.top=this.addUnits(top);
return this},move:function(direction,distance,animate){var xy=this.getXY();direction=direction.toLowerCase();
switch(direction){case"l":case"left":this.moveTo(xy[0]-distance,xy[1],this.preanim(arguments,2));
break;case"r":case"right":this.moveTo(xy[0]+distance,xy[1],this.preanim(arguments,2));
break;case"t":case"top":case"up":this.moveTo(xy[0],xy[1]-distance,this.preanim(arguments,2));
break;case"b":case"bottom":case"down":this.moveTo(xy[0],xy[1]+distance,this.preanim(arguments,2));
break}return this},clip:function(){if(!this.isClipped){this.isClipped=true;this.originalClip={o:this.getStyle("overflow"),x:this.getStyle("overflow-x"),y:this.getStyle("overflow-y")};
this.setStyle("overflow","hidden");this.setStyle("overflow-x","hidden");this.setStyle("overflow-y","hidden")
}return this},unclip:function(){if(this.isClipped){this.isClipped=false;var o=this.originalClip;
if(o.o){this.setStyle("overflow",o.o)}if(o.x){this.setStyle("overflow-x",o.x)}if(o.y){this.setStyle("overflow-y",o.y)
}}return this},getAnchorXY:function(anchor,local,s){var w,h,vp=false;if(!s){var d=this.dom;
if(d==document.body||d==document){vp=true;w=D.getViewWidth();h=D.getViewHeight()}else{w=this.getWidth();
h=this.getHeight()}}else{w=s.width;h=s.height}var x=0,y=0,r=Math.round;switch((anchor||"tl").toLowerCase()){case"c":x=r(w*0.5);
y=r(h*0.5);break;case"t":x=r(w*0.5);y=0;break;case"l":x=0;y=r(h*0.5);break;case"r":x=w;
y=r(h*0.5);break;case"b":x=r(w*0.5);y=h;break;case"tl":x=0;y=0;break;case"bl":x=0;
y=h;break;case"br":x=w;y=h;break;case"tr":x=w;y=0;break}if(local===true){return[x,y]
}if(vp){var sc=this.getScroll();return[x+sc.left,y+sc.top]}var o=this.getXY();return[x+o[0],y+o[1]]
},getAlignToXY:function(el,p,o){el=Ext.get(el);if(!el||!el.dom){throw"Element.alignToXY with an element that doesn't exist"
}var d=this.dom;var c=false;var p1="",p2="";o=o||[0,0];if(!p){p="tl-bl"}else{if(p=="?"){p="tl-bl?"
}else{if(p.indexOf("-")==-1){p="tl-"+p}}}p=p.toLowerCase();var m=p.match(/^([a-z]+)-([a-z]+)(\?)?$/);
if(!m){throw"Element.alignTo with an invalid alignment "+p}p1=m[1];p2=m[2];c=!!m[3];
var a1=this.getAnchorXY(p1,true);var a2=el.getAnchorXY(p2,false);var x=a2[0]-a1[0]+o[0];
var y=a2[1]-a1[1]+o[1];if(c){var w=this.getWidth(),h=this.getHeight(),r=el.getRegion();
var dw=D.getViewWidth()-5,dh=D.getViewHeight()-5;var p1y=p1.charAt(0),p1x=p1.charAt(p1.length-1);
var p2y=p2.charAt(0),p2x=p2.charAt(p2.length-1);var swapY=((p1y=="t"&&p2y=="b")||(p1y=="b"&&p2y=="t"));
var swapX=((p1x=="r"&&p2x=="l")||(p1x=="l"&&p2x=="r"));var doc=document;var scrollX=(doc.documentElement.scrollLeft||doc.body.scrollLeft||0)+5;
var scrollY=(doc.documentElement.scrollTop||doc.body.scrollTop||0)+5;if((x+w)>dw+scrollX){x=swapX?r.left-w:dw+scrollX-w
}if(x<scrollX){x=swapX?r.right:scrollX}if((y+h)>dh+scrollY){y=swapY?r.top-h:dh+scrollY-h
}if(y<scrollY){y=swapY?r.bottom:scrollY}}return[x,y]},getConstrainToXY:function(){var os={top:0,left:0,bottom:0,right:0};
return function(el,local,offsets,proposedXY){el=Ext.get(el);offsets=offsets?Ext.applyIf(offsets,os):os;
var vw,vh,vx=0,vy=0;if(el.dom==document.body||el.dom==document){vw=Ext.lib.Dom.getViewWidth();
vh=Ext.lib.Dom.getViewHeight()}else{vw=el.dom.clientWidth;vh=el.dom.clientHeight;
if(!local){var vxy=el.getXY();vx=vxy[0];vy=vxy[1]}}var s=el.getScroll();vx+=offsets.left+s.left;
vy+=offsets.top+s.top;vw-=offsets.right;vh-=offsets.bottom;var vr=vx+vw;var vb=vy+vh;
var xy=proposedXY||(!local?this.getXY():[this.getLeft(true),this.getTop(true)]);var x=xy[0],y=xy[1];
var w=this.dom.offsetWidth,h=this.dom.offsetHeight;var moved=false;if((x+w)>vr){x=vr-w;
moved=true}if((y+h)>vb){y=vb-h;moved=true}if(x<vx){x=vx;moved=true}if(y<vy){y=vy;
moved=true}return moved?[x,y]:false}}(),adjustForConstraints:function(xy,parent,offsets){return this.getConstrainToXY(parent||document,false,offsets,xy)||xy
},alignTo:function(element,position,offsets,animate){var xy=this.getAlignToXY(element,position,offsets);
this.setXY(xy,this.preanim(arguments,3));return this},anchorTo:function(el,alignment,offsets,animate,monitorScroll,callback){var action=function(){this.alignTo(el,alignment,offsets,animate);
Ext.callback(callback,this)};Ext.EventManager.onWindowResize(action,this);var tm=typeof monitorScroll;
if(tm!="undefined"){Ext.EventManager.on(window,"scroll",action,this,{buffer:tm=="number"?monitorScroll:50})
}action.call(this);return this},clearOpacity:function(){if(window.ActiveXObject){if(typeof this.dom.style.filter=="string"&&(/alpha/i).test(this.dom.style.filter)){this.dom.style.filter=""
}}else{this.dom.style.opacity="";this.dom.style["-moz-opacity"]="";this.dom.style["-khtml-opacity"]=""
}return this},hide:function(animate){this.setVisible(false,this.preanim(arguments,0));
return this},show:function(animate){this.setVisible(true,this.preanim(arguments,0));
return this},addUnits:function(size){return Ext.Element.addUnits(size,this.defaultUnit)
},update:function(html,loadScripts,callback){if(typeof html=="undefined"){html=""
}if(loadScripts!==true){this.dom.innerHTML=html;if(typeof callback=="function"){callback()
}return this}var id=Ext.id();var dom=this.dom;html+='<span id="'+id+'"></span>';E.onAvailable(id,function(){var hd=document.getElementsByTagName("head")[0];
var re=/(?:<script([^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig;var srcRe=/\ssrc=([\'\"])(.*?)\1/i;
var typeRe=/\stype=([\'\"])(.*?)\1/i;var match;while(match=re.exec(html)){var attrs=match[1];
var srcMatch=attrs?attrs.match(srcRe):false;if(srcMatch&&srcMatch[2]){var s=document.createElement("script");
s.src=srcMatch[2];var typeMatch=attrs.match(typeRe);if(typeMatch&&typeMatch[2]){s.type=typeMatch[2]
}hd.appendChild(s)}else{if(match[2]&&match[2].length>0){if(window.execScript){window.execScript(match[2])
}else{window.eval(match[2])}}}}var el=document.getElementById(id);if(el){Ext.removeNode(el)
}if(typeof callback=="function"){callback()}});dom.innerHTML=html.replace(/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,"");
return this},load:function(){var um=this.getUpdater();um.update.apply(um,arguments);
return this},getUpdater:function(){if(!this.updateManager){this.updateManager=new Ext.Updater(this)
}return this.updateManager},unselectable:function(){this.dom.unselectable="on";this.swallowEvent("selectstart",true);
this.applyStyles("-moz-user-select:none;-khtml-user-select:none;");this.addClass("x-unselectable");
return this},getCenterXY:function(){return this.getAlignToXY(document,"c-c")},center:function(centerIn){this.alignTo(centerIn||document,"c-c");
return this},isBorderBox:function(){return noBoxAdjust[this.dom.tagName.toLowerCase()]||Ext.isBorderBox
},getBox:function(contentBox,local){var xy;if(!local){xy=this.getXY()}else{var left=parseInt(this.getStyle("left"),10)||0;
var top=parseInt(this.getStyle("top"),10)||0;xy=[left,top]}var el=this.dom,w=el.offsetWidth,h=el.offsetHeight,bx;
if(!contentBox){bx={x:xy[0],y:xy[1],0:xy[0],1:xy[1],width:w,height:h}}else{var l=this.getBorderWidth("l")+this.getPadding("l");
var r=this.getBorderWidth("r")+this.getPadding("r");var t=this.getBorderWidth("t")+this.getPadding("t");
var b=this.getBorderWidth("b")+this.getPadding("b");bx={x:xy[0]+l,y:xy[1]+t,0:xy[0]+l,1:xy[1]+t,width:w-(l+r),height:h-(t+b)}
}bx.right=bx.x+bx.width;bx.bottom=bx.y+bx.height;return bx},getFrameWidth:function(sides,onlyContentBox){return onlyContentBox&&Ext.isBorderBox?0:(this.getPadding(sides)+this.getBorderWidth(sides))
},setBox:function(box,adjust,animate){var w=box.width,h=box.height;if((adjust&&!this.autoBoxAdjust)&&!this.isBorderBox()){w-=(this.getBorderWidth("lr")+this.getPadding("lr"));
h-=(this.getBorderWidth("tb")+this.getPadding("tb"))}this.setBounds(box.x,box.y,w,h,this.preanim(arguments,2));
return this},repaint:function(){var dom=this.dom;this.addClass("x-repaint");setTimeout(function(){Ext.get(dom).removeClass("x-repaint")
},1);return this},getMargins:function(side){if(!side){return{top:parseInt(this.getStyle("margin-top"),10)||0,left:parseInt(this.getStyle("margin-left"),10)||0,bottom:parseInt(this.getStyle("margin-bottom"),10)||0,right:parseInt(this.getStyle("margin-right"),10)||0}
}else{return this.addStyles(side,El.margins)}},addStyles:function(sides,styles){var val=0,v,w;
for(var i=0,len=sides.length;i<len;i++){v=this.getStyle(styles[sides.charAt(i)]);
if(v){w=parseInt(v,10);if(w){val+=(w>=0?w:-1*w)}}}return val},createProxy:function(config,renderTo,matchBox){config=typeof config=="object"?config:{tag:"div",cls:config};
var proxy;if(renderTo){proxy=Ext.DomHelper.append(renderTo,config,true)}else{proxy=Ext.DomHelper.insertBefore(this.dom,config,true)
}if(matchBox){proxy.setBox(this.getBox())}return proxy},mask:function(msg,msgCls){if(this.getStyle("position")=="static"){this.addClass("x-masked-relative")
}if(this._maskMsg){this._maskMsg.remove()}if(this._mask){this._mask.remove()}this._mask=Ext.DomHelper.append(this.dom,{cls:"ext-el-mask"},true);
this.addClass("x-masked");this._mask.setDisplayed(true);if(typeof msg=="string"){this._maskMsg=Ext.DomHelper.append(this.dom,{cls:"ext-el-mask-msg",cn:{tag:"div"}},true);
var mm=this._maskMsg;mm.dom.className=msgCls?"ext-el-mask-msg "+msgCls:"ext-el-mask-msg";
mm.dom.firstChild.innerHTML=msg;mm.setDisplayed(true);mm.center(this)}if(Ext.isIE&&!(Ext.isIE7&&Ext.isStrict)&&this.getStyle("height")=="auto"){this._mask.setSize(this.getWidth(),this.getHeight())
}return this._mask},unmask:function(){if(this._mask){if(this._maskMsg){this._maskMsg.remove();
delete this._maskMsg}this._mask.remove();delete this._mask}this.removeClass(["x-masked","x-masked-relative"])
},isMasked:function(){return this._mask&&this._mask.isVisible()},createShim:function(){var el=document.createElement("iframe");
el.frameBorder="0";el.className="ext-shim";if(Ext.isIE&&Ext.isSecure){el.src=Ext.SSL_SECURE_URL
}var shim=Ext.get(this.dom.parentNode.insertBefore(el,this.dom));shim.autoBoxAdjust=false;
return shim},remove:function(){Ext.removeNode(this.dom);delete El.cache[this.dom.id]
},hover:function(overFn,outFn,scope){var preOverFn=function(e){if(!e.within(this,true)){overFn.apply(scope||this,arguments)
}};var preOutFn=function(e){if(!e.within(this,true)){outFn.apply(scope||this,arguments)
}};this.on("mouseover",preOverFn,this.dom);this.on("mouseout",preOutFn,this.dom);
return this},addClassOnOver:function(className){this.hover(function(){Ext.fly(this,"_internal").addClass(className)
},function(){Ext.fly(this,"_internal").removeClass(className)});return this},addClassOnFocus:function(className){this.on("focus",function(){Ext.fly(this,"_internal").addClass(className)
},this.dom);this.on("blur",function(){Ext.fly(this,"_internal").removeClass(className)
},this.dom);return this},addClassOnClick:function(className){var dom=this.dom;this.on("mousedown",function(){Ext.fly(dom,"_internal").addClass(className);
var d=Ext.getDoc();var fn=function(){Ext.fly(dom,"_internal").removeClass(className);
d.removeListener("mouseup",fn)};d.on("mouseup",fn)});return this},swallowEvent:function(eventName,preventDefault){var fn=function(e){e.stopPropagation();
if(preventDefault){e.preventDefault()}};if(Ext.isArray(eventName)){for(var i=0,len=eventName.length;
i<len;i++){this.on(eventName[i],fn)}return this}this.on(eventName,fn);return this
},parent:function(selector,returnDom){return this.matchNode("parentNode","parentNode",selector,returnDom)
},next:function(selector,returnDom){return this.matchNode("nextSibling","nextSibling",selector,returnDom)
},prev:function(selector,returnDom){return this.matchNode("previousSibling","previousSibling",selector,returnDom)
},first:function(selector,returnDom){return this.matchNode("nextSibling","firstChild",selector,returnDom)
},last:function(selector,returnDom){return this.matchNode("previousSibling","lastChild",selector,returnDom)
},matchNode:function(dir,start,selector,returnDom){var n=this.dom[start];while(n){if(n.nodeType==1&&(!selector||Ext.DomQuery.is(n,selector))){return !returnDom?Ext.get(n):n
}n=n[dir]}return null},appendChild:function(el){el=Ext.get(el);el.appendTo(this);
return this},createChild:function(config,insertBefore,returnDom){config=config||{tag:"div"};
if(insertBefore){return Ext.DomHelper.insertBefore(insertBefore,config,returnDom!==true)
}return Ext.DomHelper[!this.dom.firstChild?"overwrite":"append"](this.dom,config,returnDom!==true)
},appendTo:function(el){el=Ext.getDom(el);el.appendChild(this.dom);return this},insertBefore:function(el){el=Ext.getDom(el);
el.parentNode.insertBefore(this.dom,el);return this},insertAfter:function(el){el=Ext.getDom(el);
el.parentNode.insertBefore(this.dom,el.nextSibling);return this},insertFirst:function(el,returnDom){el=el||{};
if(typeof el=="object"&&!el.nodeType&&!el.dom){return this.createChild(el,this.dom.firstChild,returnDom)
}else{el=Ext.getDom(el);this.dom.insertBefore(el,this.dom.firstChild);return !returnDom?Ext.get(el):el
}},insertSibling:function(el,where,returnDom){var rt;if(Ext.isArray(el)){for(var i=0,len=el.length;
i<len;i++){rt=this.insertSibling(el[i],where,returnDom)}return rt}where=where?where.toLowerCase():"before";
el=el||{};var refNode=where=="before"?this.dom:this.dom.nextSibling;if(typeof el=="object"&&!el.nodeType&&!el.dom){if(where=="after"&&!this.dom.nextSibling){rt=Ext.DomHelper.append(this.dom.parentNode,el,!returnDom)
}else{rt=Ext.DomHelper[where=="after"?"insertAfter":"insertBefore"](this.dom,el,!returnDom)
}}else{rt=this.dom.parentNode.insertBefore(Ext.getDom(el),refNode);if(!returnDom){rt=Ext.get(rt)
}}return rt},wrap:function(config,returnDom){if(!config){config={tag:"div"}}var newEl=Ext.DomHelper.insertBefore(this.dom,config,!returnDom);
newEl.dom?newEl.dom.appendChild(this.dom):newEl.appendChild(this.dom);return newEl
},replace:function(el){el=Ext.get(el);this.insertBefore(el);el.remove();return this
},replaceWith:function(el){if(typeof el=="object"&&!el.nodeType&&!el.dom){el=this.insertSibling(el,"before")
}else{el=Ext.getDom(el);this.dom.parentNode.insertBefore(el,this.dom)}El.uncache(this.id);
Ext.removeNode(this.dom);this.dom=el;this.id=Ext.id(el);El.cache[this.id]=this;return this
},insertHtml:function(where,html,returnEl){var el=Ext.DomHelper.insertHtml(where,this.dom,html);
return returnEl?Ext.get(el):el},set:function(o,useSet){var el=this.dom;useSet=typeof useSet=="undefined"?(el.setAttribute?true:false):useSet;
for(var attr in o){if(attr=="style"||typeof o[attr]=="function"){continue}if(attr=="cls"){el.className=o.cls
}else{if(o.hasOwnProperty(attr)){if(useSet){el.setAttribute(attr,o[attr])}else{el[attr]=o[attr]
}}}}if(o.style){Ext.DomHelper.applyStyles(el,o.style)}return this},addKeyListener:function(key,fn,scope){var config;
if(typeof key!="object"||Ext.isArray(key)){config={key:key,fn:fn,scope:scope}}else{config={key:key.key,shift:key.shift,ctrl:key.ctrl,alt:key.alt,fn:fn,scope:scope}
}return new Ext.KeyMap(this,config)},addKeyMap:function(config){return new Ext.KeyMap(this,config)
},isScrollable:function(){var dom=this.dom;return dom.scrollHeight>dom.clientHeight||dom.scrollWidth>dom.clientWidth
},scrollTo:function(side,value,animate){var prop=side.toLowerCase()=="left"?"scrollLeft":"scrollTop";
if(!animate||!A){this.dom[prop]=value}else{var to=prop=="scrollLeft"?[value,this.dom.scrollTop]:[this.dom.scrollLeft,value];
this.anim({scroll:{to:to}},this.preanim(arguments,2),"scroll")}return this},scroll:function(direction,distance,animate){if(!this.isScrollable()){return
}var el=this.dom;var l=el.scrollLeft,t=el.scrollTop;var w=el.scrollWidth,h=el.scrollHeight;
var cw=el.clientWidth,ch=el.clientHeight;direction=direction.toLowerCase();var scrolled=false;
var a=this.preanim(arguments,2);switch(direction){case"l":case"left":if(w-l>cw){var v=Math.min(l+distance,w-cw);
this.scrollTo("left",v,a);scrolled=true}break;case"r":case"right":if(l>0){var v=Math.max(l-distance,0);
this.scrollTo("left",v,a);scrolled=true}break;case"t":case"top":case"up":if(t>0){var v=Math.max(t-distance,0);
this.scrollTo("top",v,a);scrolled=true}break;case"b":case"bottom":case"down":if(h-t>ch){var v=Math.min(t+distance,h-ch);
this.scrollTo("top",v,a);scrolled=true}break}return scrolled},translatePoints:function(x,y){if(typeof x=="object"||Ext.isArray(x)){y=x[1];
x=x[0]}var p=this.getStyle("position");var o=this.getXY();var l=parseInt(this.getStyle("left"),10);
var t=parseInt(this.getStyle("top"),10);if(isNaN(l)){l=(p=="relative")?0:this.dom.offsetLeft
}if(isNaN(t)){t=(p=="relative")?0:this.dom.offsetTop}return{left:(x-o[0]+l),top:(y-o[1]+t)}
},getScroll:function(){var d=this.dom,doc=document;if(d==doc||d==doc.body){var l,t;
if(Ext.isIE&&Ext.isStrict){l=doc.documentElement.scrollLeft||(doc.body.scrollLeft||0);
t=doc.documentElement.scrollTop||(doc.body.scrollTop||0)}else{l=window.pageXOffset||(doc.body.scrollLeft||0);
t=window.pageYOffset||(doc.body.scrollTop||0)}return{left:l,top:t}}else{return{left:d.scrollLeft,top:d.scrollTop}
}},getColor:function(attr,defaultValue,prefix){var v=this.getStyle(attr);if(!v||v=="transparent"||v=="inherit"){return defaultValue
}var color=typeof prefix=="undefined"?"#":prefix;if(v.substr(0,4)=="rgb("){var rvs=v.slice(4,v.length-1).split(",");
for(var i=0;i<3;i++){var h=parseInt(rvs[i]);var s=h.toString(16);if(h<16){s="0"+s
}color+=s}}else{if(v.substr(0,1)=="#"){if(v.length==4){for(var i=1;i<4;i++){var c=v.charAt(i);
color+=c+c}}else{if(v.length==7){color+=v.substr(1)}}}}return(color.length>5?color.toLowerCase():defaultValue)
},boxWrap:function(cls){cls=cls||"x-box";var el=Ext.get(this.insertHtml("beforeBegin",String.format('<div class="{0}">'+El.boxMarkup+"</div>",cls)));
el.child("."+cls+"-mc").dom.appendChild(this.dom);return el},getAttributeNS:Ext.isIE?function(ns,name){var d=this.dom;
var type=typeof d[ns+":"+name];if(type!="undefined"&&type!="unknown"){return d[ns+":"+name]
}return d[name]}:function(ns,name){var d=this.dom;return d.getAttributeNS(ns,name)||d.getAttribute(ns+":"+name)||d.getAttribute(name)||d[name]
},getTextWidth:function(text,min,max){return(Ext.util.TextMetrics.measure(this.dom,Ext.value(text,this.dom.innerHTML,true)).width).constrain(min||0,max||1000000)
}};var ep=El.prototype;ep.on=ep.addListener;ep.mon=ep.addListener;ep.getUpdateManager=ep.getUpdater;
ep.un=ep.removeListener;ep.autoBoxAdjust=true;El.unitPattern=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i;
El.addUnits=function(v,defaultUnit){if(v===""||v=="auto"){return v}if(v===undefined){return""
}if(typeof v=="number"||!El.unitPattern.test(v)){return v+(defaultUnit||"px")}return v
};El.boxMarkup='<div class="{0}-tl"><div class="{0}-tr"><div class="{0}-tc"></div></div></div><div class="{0}-ml"><div class="{0}-mr"><div class="{0}-mc"></div></div></div><div class="{0}-bl"><div class="{0}-br"><div class="{0}-bc"></div></div></div>';
El.VISIBILITY=1;El.DISPLAY=2;El.borders={l:"border-left-width",r:"border-right-width",t:"border-top-width",b:"border-bottom-width"};
El.paddings={l:"padding-left",r:"padding-right",t:"padding-top",b:"padding-bottom"};
El.margins={l:"margin-left",r:"margin-right",t:"margin-top",b:"margin-bottom"};El.cache={};
var docEl;El.get=function(el){var ex,elm,id;if(!el){return null}if(typeof el=="string"){if(!(elm=document.getElementById(el))){return null
}if(ex=El.cache[el]){ex.dom=elm}else{ex=El.cache[el]=new El(elm)}return ex}else{if(el.tagName){if(!(id=el.id)){id=Ext.id(el)
}if(ex=El.cache[id]){ex.dom=el}else{ex=El.cache[id]=new El(el)}return ex}else{if(el instanceof El){if(el!=docEl){el.dom=document.getElementById(el.id)||el.dom;
El.cache[el.id]=el}return el}else{if(el.isComposite){return el}else{if(Ext.isArray(el)){return El.select(el)
}else{if(el==document){if(!docEl){var f=function(){};f.prototype=El.prototype;docEl=new f();
docEl.dom=document}return docEl}}}}}}return null};El.uncache=function(el){for(var i=0,a=arguments,len=a.length;
i<len;i++){if(a[i]){delete El.cache[a[i].id||a[i]]}}};El.garbageCollect=function(){if(!Ext.enableGarbageCollector){clearInterval(El.collectorThread);
return}for(var eid in El.cache){var el=El.cache[eid],d=el.dom;if(!d||!d.parentNode||(!d.offsetParent&&!document.getElementById(eid))){delete El.cache[eid];
if(d&&Ext.enableListenerCollection){Ext.EventManager.removeAll(d)}}}};El.collectorThreadId=setInterval(El.garbageCollect,30000);
var flyFn=function(){};flyFn.prototype=El.prototype;var _cls=new flyFn();El.Flyweight=function(dom){this.dom=dom
};El.Flyweight.prototype=_cls;El.Flyweight.prototype.isFlyweight=true;El._flyweights={};
El.fly=function(el,named){named=named||"_global";el=Ext.getDom(el);if(!el){return null
}if(!El._flyweights[named]){El._flyweights[named]=new El.Flyweight()}El._flyweights[named].dom=el;
return El._flyweights[named]};Ext.get=El.get;Ext.fly=El.fly;var noBoxAdjust=Ext.isStrict?{select:1}:{input:1,select:1,textarea:1};
if(Ext.isIE||Ext.isGecko){noBoxAdjust.button=1}Ext.EventManager.on(window,"unload",function(){delete El.cache;
delete El._flyweights})})();Ext.enableFx=true;Ext.Fx={slideIn:function(e,g){var d=this.getFxEl();
g=g||{};d.queueFx(g,function(){e=e||"t";this.fixDisplay();var r=this.getFxRestore();
var m=this.getBox();this.setSize(m);var p=this.fxWrap(r.pos,g,"hidden");var b=this.dom.style;
b.visibility="visible";b.position="absolute";var q=function(){d.fxUnwrap(p,r.pos,g);
b.width=r.width;b.height=r.height;d.afterFx(g)};var c,a={to:[m.x,m.y]},n={to:m.width},o={to:m.height};
switch(e.toLowerCase()){case"t":p.setSize(m.width,0);b.left=b.bottom="0";c={height:o};
break;case"l":p.setSize(0,m.height);b.right=b.top="0";c={width:n};break;case"r":p.setSize(0,m.height);
p.setX(m.right);b.left=b.top="0";c={width:n,points:a};break;case"b":p.setSize(m.width,0);
p.setY(m.bottom);b.left=b.top="0";c={height:o,points:a};break;case"tl":p.setSize(0,0);
b.right=b.bottom="0";c={width:n,height:o};break;case"bl":p.setSize(0,0);p.setY(m.y+m.height);
b.right=b.top="0";c={width:n,height:o,points:a};break;case"br":p.setSize(0,0);p.setXY([m.right,m.bottom]);
b.left=b.top="0";c={width:n,height:o,points:a};break;case"tr":p.setSize(0,0);p.setX(m.x+m.width);
b.left=b.bottom="0";c={width:n,height:o,points:a};break}this.dom.style.visibility="visible";
p.show();arguments.callee.anim=p.fxanim(c,g,"motion",0.5,"easeOut",q)});return this
},slideOut:function(e,g){var d=this.getFxEl();g=g||{};d.queueFx(g,function(){e=e||"t";
var b=this.getFxRestore();var n=this.getBox();this.setSize(n);var k=this.fxWrap(b.pos,g,"visible");
var l=this.dom.style;l.visibility="visible";l.position="absolute";k.setSize(n);var a=function(){if(g.useDisplay){d.setDisplayed(false)
}else{d.hide()}d.fxUnwrap(k,b.pos,g);l.width=b.width;l.height=b.height;d.afterFx(g)
};var m,c={to:0};switch(e.toLowerCase()){case"t":l.left=l.bottom="0";m={height:c};
break;case"l":l.right=l.top="0";m={width:c};break;case"r":l.left=l.top="0";m={width:c,points:{to:[n.right,n.y]}};
break;case"b":l.left=l.top="0";m={height:c,points:{to:[n.x,n.bottom]}};break;case"tl":l.right=l.bottom="0";
m={width:c,height:c};break;case"bl":l.right=l.top="0";m={width:c,height:c,points:{to:[n.x,n.bottom]}};
break;case"br":l.left=l.top="0";m={width:c,height:c,points:{to:[n.x+n.width,n.bottom]}};
break;case"tr":l.left=l.bottom="0";m={width:c,height:c,points:{to:[n.right,n.y]}};
break}arguments.callee.anim=k.fxanim(m,g,"motion",0.5,"easeOut",a)});return this},puff:function(c){var d=this.getFxEl();
c=c||{};d.queueFx(c,function(){this.clearOpacity();this.show();var b=this.getFxRestore();
var i=this.dom.style;var a=function(){if(c.useDisplay){d.setDisplayed(false)}else{d.hide()
}d.clearOpacity();d.setPositioning(b.pos);i.width=b.width;i.height=b.height;i.fontSize="";
d.afterFx(c)};var h=this.getWidth();var j=this.getHeight();arguments.callee.anim=this.fxanim({width:{to:this.adjustWidth(h*2)},height:{to:this.adjustHeight(j*2)},points:{by:[-(h*0.5),-(j*0.5)]},opacity:{to:0},fontSize:{to:200,unit:"%"}},c,"motion",0.5,"easeOut",a)
});return this},switchOff:function(c){var d=this.getFxEl();c=c||{};d.queueFx(c,function(){this.clearOpacity();
this.clip();var b=this.getFxRestore();var g=this.dom.style;var a=function(){if(c.useDisplay){d.setDisplayed(false)
}else{d.hide()}d.clearOpacity();d.setPositioning(b.pos);g.width=b.width;g.height=b.height;
d.afterFx(c)};this.fxanim({opacity:{to:0.3}},null,null,0.1,null,function(){this.clearOpacity();
(function(){this.fxanim({height:{to:1},points:{by:[0,this.getHeight()*0.5]}},c,"motion",0.3,"easeIn",a)
}).defer(100,this)})});return this},highlight:function(e,g){var d=this.getFxEl();
g=g||{};d.queueFx(g,function(){e=e||"ffff9c";var l=g.attr||"backgroundColor";this.clearOpacity();
this.show();var c=this.getColor(l);var b=this.dom.style[l];var j=(g.endColor||c)||"ffffff";
var a=function(){d.dom.style[l]=b;d.afterFx(g)};var k={};k[l]={from:e,to:j};arguments.callee.anim=this.fxanim(k,g,"color",1,"easeIn",a)
});return this},frame:function(g,i,h){var e=this.getFxEl();h=h||{};e.queueFx(h,function(){g=g||"#C3DAF9";
if(g.length==6){g="#"+g}i=i||1;var a=h.duration||1;this.show();var c=this.getBox();
var b=function(){var j=Ext.getBody().createChild({style:{visbility:"hidden",position:"absolute","z-index":"35000",border:"0px solid "+g}});
var d=Ext.isBorderBox?2:1;j.animate({top:{from:c.y,to:c.y-20},left:{from:c.x,to:c.x-20},borderWidth:{from:0,to:10},opacity:{from:1,to:0},height:{from:c.height,to:(c.height+(20*d))},width:{from:c.width,to:(c.width+(20*d))}},a,function(){j.remove();
if(--i>0){b()}else{e.afterFx(h)}})};b.call(this)});return this},pause:function(g){var e=this.getFxEl();
var d={};e.queueFx(d,function(){setTimeout(function(){e.afterFx(d)},g*1000)});return this
},fadeIn:function(c){var d=this.getFxEl();c=c||{};d.queueFx(c,function(){this.setOpacity(0);
this.fixDisplay();this.dom.style.visibility="visible";var a=c.endOpacity||1;arguments.callee.anim=this.fxanim({opacity:{to:a}},c,null,0.5,"easeOut",function(){if(a==1){this.clearOpacity()
}d.afterFx(c)})});return this},fadeOut:function(c){var d=this.getFxEl();c=c||{};d.queueFx(c,function(){var a=c.endOpacity||0;
arguments.callee.anim=this.fxanim({opacity:{to:a}},c,null,0.5,"easeOut",function(){if(a===0){if(this.visibilityMode==Ext.Element.DISPLAY||c.useDisplay){this.dom.style.display="none"
}else{this.dom.style.visibility="hidden"}this.clearOpacity()}d.afterFx(c)})});return this
},scale:function(e,d,g){this.shift(Ext.apply({},g,{width:e,height:d}));return this
},shift:function(c){var d=this.getFxEl();c=c||{};d.queueFx(c,function(){var j={},k=c.width,h=c.height,l=c.x,a=c.y,b=c.opacity;
if(k!==undefined){j.width={to:this.adjustWidth(k)}}if(h!==undefined){j.height={to:this.adjustHeight(h)}
}if(c.left!==undefined){j.left={to:c.left}}if(c.top!==undefined){j.top={to:c.top}
}if(c.right!==undefined){j.right={to:c.right}}if(c.bottom!==undefined){j.bottom={to:c.bottom}
}if(l!==undefined||a!==undefined){j.points={to:[l!==undefined?l:this.getX(),a!==undefined?a:this.getY()]}
}if(b!==undefined){j.opacity={to:b}}if(c.xy!==undefined){j.points={to:c.xy}}arguments.callee.anim=this.fxanim(j,c,"motion",0.35,"easeOut",function(){d.afterFx(c)
})});return this},ghost:function(e,g){var d=this.getFxEl();g=g||{};d.queueFx(g,function(){e=e||"b";
var c=this.getFxRestore();var m=this.getWidth(),h=this.getHeight();var l=this.dom.style;
var a=function(){if(g.useDisplay){d.setDisplayed(false)}else{d.hide()}d.clearOpacity();
d.setPositioning(c.pos);l.width=c.width;l.height=c.height;d.afterFx(g)};var n={opacity:{to:0},points:{}},b=n.points;
switch(e.toLowerCase()){case"t":b.by=[0,-h];break;case"l":b.by=[-m,0];break;case"r":b.by=[m,0];
break;case"b":b.by=[0,h];break;case"tl":b.by=[-m,-h];break;case"bl":b.by=[-m,h];break;
case"br":b.by=[m,h];break;case"tr":b.by=[m,-h];break}arguments.callee.anim=this.fxanim(n,g,"motion",0.5,"easeOut",a)
});return this},syncFx:function(){this.fxDefaults=Ext.apply(this.fxDefaults||{},{block:false,concurrent:true,stopFx:false});
return this},sequenceFx:function(){this.fxDefaults=Ext.apply(this.fxDefaults||{},{block:false,concurrent:false,stopFx:false});
return this},nextFx:function(){var b=this.fxQueue[0];if(b){b.call(this)}},hasActiveFx:function(){return this.fxQueue&&this.fxQueue[0]
},stopFx:function(){if(this.hasActiveFx()){var b=this.fxQueue[0];if(b&&b.anim&&b.anim.isAnimated()){this.fxQueue=[b];
b.anim.stop(true)}}return this},beforeFx:function(b){if(this.hasActiveFx()&&!b.concurrent){if(b.stopFx){this.stopFx();
return true}return false}return true},hasFxBlock:function(){var b=this.fxQueue;return b&&b[0]&&b[0].block
},queueFx:function(g,e){if(!this.fxQueue){this.fxQueue=[]}if(!this.hasFxBlock()){Ext.applyIf(g,this.fxDefaults);
if(!g.concurrent){var d=this.beforeFx(g);e.block=g.block;this.fxQueue.push(e);if(d){this.nextFx()
}}else{e.call(this)}}return this},fxWrap:function(i,k,l){var g;if(!k.wrap||!(g=Ext.get(k.wrap))){var h;
if(k.fixPosition){h=this.getXY()}var j=document.createElement("div");j.style.visibility=l;
g=Ext.get(this.dom.parentNode.insertBefore(j,this.dom));g.setPositioning(i);if(g.getStyle("position")=="static"){g.position("relative")
}this.clearPositioning("auto");g.clip();g.dom.appendChild(this.dom);if(h){g.setXY(h)
}}return g},fxUnwrap:function(e,g,d){this.clearPositioning();this.setPositioning(g);
if(!d.wrap){e.dom.parentNode.insertBefore(this.dom,e.dom);e.remove()}},getFxRestore:function(){var b=this.dom.style;
return{pos:this.getPositioning(),width:b.width,height:b.height}},afterFx:function(b){if(b.afterStyle){this.applyStyles(b.afterStyle)
}if(b.afterCls){this.addClass(b.afterCls)}if(b.remove===true){this.remove()}Ext.callback(b.callback,b.scope,[this]);
if(!b.concurrent){this.fxQueue.shift();this.nextFx()}},getFxEl:function(){return Ext.get(this.dom)
},fxanim:function(m,l,h,k,n,i){h=h||"run";l=l||{};var j=Ext.lib.Anim[h](this.dom,m,(l.duration||k)||0.35,(l.easing||n)||"easeOut",function(){Ext.callback(i,this)
},this);l.anim=j;return j}};Ext.Fx.resize=Ext.Fx.scale;Ext.apply(Ext.Element.prototype,Ext.Fx);
Ext.CompositeElement=function(b){this.elements=[];this.addElements(b)};Ext.CompositeElement.prototype={isComposite:true,addElements:function(i){if(!i){return this
}if(typeof i=="string"){i=Ext.Element.selectorFunction(i)}var j=this.elements;var g=j.length-1;
for(var k=0,h=i.length;k<h;k++){j[++g]=Ext.get(i[k])}return this},fill:function(b){this.elements=[];
this.add(b);return this},filter:function(d){var c=[];this.each(function(a){if(a.is(d)){c[c.length]=a.dom
}});this.fill(c);return this},invoke:function(i,g){var j=this.elements;for(var k=0,h=j.length;
k<h;k++){Ext.Element.prototype[i].apply(j[k],g)}return this},add:function(b){if(typeof b=="string"){this.addElements(Ext.Element.selectorFunction(b))
}else{if(b.length!==undefined){this.addElements(b)}else{this.addElements([b])}}return this
},each:function(i,j){var k=this.elements;for(var g=0,h=k.length;g<h;g++){if(i.call(j||k[g],k[g],this,g)===false){break
}}return this},item:function(b){return this.elements[b]||null},first:function(){return this.item(0)
},last:function(){return this.item(this.elements.length-1)},getCount:function(){return this.elements.length
},contains:function(b){return this.indexOf(b)!==-1},indexOf:function(b){return this.elements.indexOf(Ext.get(b))
},removeElement:function(k,i){if(Ext.isArray(k)){for(var l=0,h=k.length;l<h;l++){this.removeElement(k[l])
}return this}var d=typeof k=="number"?k:this.indexOf(k);if(d!==-1&&this.elements[d]){if(i){var j=this.elements[d];
if(j.dom){j.remove()}else{Ext.removeNode(j)}}this.elements.splice(d,1)}return this
},replaceElement:function(h,i,g){var e=typeof h=="number"?h:this.indexOf(h);if(e!==-1){if(g){this.elements[e].replaceWith(i)
}else{this.elements.splice(e,1,Ext.get(i))}}return this},clear:function(){this.elements=[]
}};(function(){Ext.CompositeElement.createCall=function(a,d){if(!a[d]){a[d]=function(){return this.invoke(d,arguments)
}}};for(var b in Ext.Element.prototype){if(typeof Ext.Element.prototype[b]=="function"){Ext.CompositeElement.createCall(Ext.CompositeElement.prototype,b)
}}})();Ext.CompositeElementLite=function(b){Ext.CompositeElementLite.superclass.constructor.call(this,b);
this.el=new Ext.Element.Flyweight()};Ext.extend(Ext.CompositeElementLite,Ext.CompositeElement,{addElements:function(i){if(i){if(Ext.isArray(i)){this.elements=this.elements.concat(i)
}else{var j=this.elements;var g=j.length-1;for(var k=0,h=i.length;k<h;k++){j[++g]=i[k]
}}}return this},invoke:function(i,g){var k=this.elements;var j=this.el;for(var l=0,h=k.length;
l<h;l++){j.dom=k[l];Ext.Element.prototype[i].apply(j,g)}return this},item:function(b){if(!this.elements[b]){return null
}this.el.dom=this.elements[b];return this.el},addListener:function(h,j,k,l){var m=this.elements;
for(var n=0,i=m.length;n<i;n++){Ext.EventManager.on(m[n],h,j,k||m[n],l)}return this
},each:function(i,j){var l=this.elements;var k=this.el;for(var g=0,h=l.length;g<h;
g++){k.dom=l[g];if(i.call(j||k,k,this,g)===false){break}}return this},indexOf:function(b){return this.elements.indexOf(Ext.getDom(b))
},replaceElement:function(i,j,g){var d=typeof i=="number"?i:this.indexOf(i);if(d!==-1){j=Ext.getDom(j);
if(g){var h=this.elements[d];h.parentNode.insertBefore(j,h);Ext.removeNode(h)}this.elements.splice(d,1,j)
}return this}});Ext.CompositeElementLite.prototype.on=Ext.CompositeElementLite.prototype.addListener;
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"}}if(h===true){return new Ext.CompositeElement(i)}else{return new Ext.CompositeElementLite(i)
}};Ext.select=Ext.Element.select;Ext.Updater=Ext.extend(Ext.util.Observable,{constructor:function(d,e){d=Ext.get(d);
if(!e&&d.updateManager){return d.updateManager}this.el=d;this.defaultUrl=null;this.addEvents("beforeupdate","update","failure");
var g=Ext.Updater.defaults;this.sslBlankUrl=g.sslBlankUrl;this.disableCaching=g.disableCaching;
this.indicatorText=g.indicatorText;this.showLoadIndicator=g.showLoadIndicator;this.timeout=g.timeout;
this.loadScripts=g.loadScripts;this.transaction=null;this.refreshDelegate=this.refresh.createDelegate(this);
this.updateDelegate=this.update.createDelegate(this);this.formUpdateDelegate=this.formUpdate.createDelegate(this);
if(!this.renderer){this.renderer=this.getDefaultRenderer()}Ext.Updater.superclass.constructor.call(this)
},getDefaultRenderer:function(){return new Ext.Updater.BasicRenderer()},getEl:function(){return this.el
},update:function(h,k,j,m){if(this.fireEvent("beforeupdate",this.el,h,k)!==false){var i,n;
if(typeof h=="object"){i=h;h=i.url;k=k||i.params;j=j||i.callback;m=m||i.discardUrl;
n=i.scope;if(typeof i.nocache!="undefined"){this.disableCaching=i.nocache}if(typeof i.text!="undefined"){this.indicatorText='<div class="loading-indicator">'+i.text+"</div>"
}if(typeof i.scripts!="undefined"){this.loadScripts=i.scripts}if(typeof i.timeout!="undefined"){this.timeout=i.timeout
}}this.showLoading();if(!m){this.defaultUrl=h}if(typeof h=="function"){h=h.call(this)
}var l=Ext.apply({},{url:h,params:(typeof k=="function"&&n)?k.createDelegate(n):k,success:this.processSuccess,failure:this.processFailure,scope:this,callback:undefined,timeout:(this.timeout*1000),disableCaching:this.disableCaching,argument:{options:i,url:h,form:null,callback:j,scope:n||window,params:k}},i);
this.transaction=Ext.Ajax.request(l)}},formUpdate:function(i,g,e,h){if(this.fireEvent("beforeupdate",this.el,i,g)!==false){if(typeof g=="function"){g=g.call(this)
}i=Ext.getDom(i);this.transaction=Ext.Ajax.request({form:i,url:g,success:this.processSuccess,failure:this.processFailure,scope:this,timeout:(this.timeout*1000),argument:{url:g,form:i,callback:h,reset:e}});
this.showLoading.defer(1,this)}},refresh:function(b){if(this.defaultUrl==null){return
}this.update(this.defaultUrl,null,b,true)},startAutoRefresh:function(g,k,j,i,h){if(h){this.update(k||this.defaultUrl,j,i,true)
}if(this.autoRefreshProcId){clearInterval(this.autoRefreshProcId)}this.autoRefreshProcId=setInterval(this.update.createDelegate(this,[k||this.defaultUrl,j,i,true]),g*1000)
},stopAutoRefresh:function(){if(this.autoRefreshProcId){clearInterval(this.autoRefreshProcId);
delete this.autoRefreshProcId}},isAutoRefreshing:function(){return this.autoRefreshProcId?true:false
},showLoading:function(){if(this.showLoadIndicator){this.el.update(this.indicatorText)
}},processSuccess:function(d){this.transaction=null;if(d.argument.form&&d.argument.reset){try{d.argument.form.reset()
}catch(c){}}if(this.loadScripts){this.renderer.render(this.el,d,this,this.updateComplete.createDelegate(this,[d]))
}else{this.renderer.render(this.el,d,this);this.updateComplete(d)}},updateComplete:function(b){this.fireEvent("update",this.el,b);
if(typeof b.argument.callback=="function"){b.argument.callback.call(b.argument.scope,this.el,true,b,b.argument.options)
}},processFailure:function(b){this.transaction=null;this.fireEvent("failure",this.el,b);
if(typeof b.argument.callback=="function"){b.argument.callback.call(b.argument.scope,this.el,false,b,b.argument.options)
}},setRenderer:function(b){this.renderer=b},getRenderer:function(){return this.renderer
},setDefaultUrl:function(b){this.defaultUrl=b},abort:function(){if(this.transaction){Ext.Ajax.abort(this.transaction)
}},isUpdating:function(){if(this.transaction){return Ext.Ajax.isLoading(this.transaction)
}return false}});Ext.Updater.defaults={timeout:30,loadScripts:false,sslBlankUrl:(Ext.SSL_SECURE_URL||"javascript:false"),disableCaching:false,showLoadIndicator:true,indicatorText:'<div class="loading-indicator">Loading...</div>'};
Ext.Updater.updateElement=function(j,k,i,g){var h=Ext.get(j).getUpdater();Ext.apply(h,g);
h.update(k,i,g?g.callback:null)};Ext.Updater.BasicRenderer=function(){};Ext.Updater.BasicRenderer.prototype={render:function(i,g,e,h){i.update(g.responseText,e.loadScripts,h)
}};Ext.UpdateManager=Ext.Updater;Ext.util.DelayedTask=function(l,m,i){var j=null,k,d;
var n=function(){var a=new Date().getTime();if(a-d>=k){clearInterval(j);j=null;l.apply(m,i||[])
}};this.delay=function(c,a,b,e){if(j&&c!=k){this.cancel()}k=c;d=new Date().getTime();
l=a||l;m=b||m;i=e||i;if(!j){j=setInterval(n,k)}};this.cancel=function(){if(j){clearInterval(j);
j=null}}};Ext.util.Format=function(){var trimRe=/^\s+|\s+$/g;return{ellipsis:function(value,len){if(value&&value.length>len){return value.substr(0,len-3)+"..."
}return value},undef:function(value){return value!==undefined?value:""},defaultValue:function(value,defaultValue){return value!==undefined&&value!==""?value:defaultValue
},htmlEncode:function(value){return !value?value:String(value).replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")
},htmlDecode:function(value){return !value?value:String(value).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,'"').replace(/&amp;/g,"&")
},trim:function(value){return String(value).replace(trimRe,"")},substr:function(value,start,length){return String(value).substr(start,length)
},lowercase:function(value){return String(value).toLowerCase()},uppercase:function(value){return String(value).toUpperCase()
},capitalize:function(value){return !value?value:value.charAt(0).toUpperCase()+value.substr(1).toLowerCase()
},call:function(value,fn){if(arguments.length>2){var args=Array.prototype.slice.call(arguments,2);
args.unshift(value);return eval(fn).apply(window,args)}else{return eval(fn).call(window,value)
}},usMoney:function(v){v=(Math.round((v-0)*100))/100;v=(v==Math.floor(v))?v+".00":((v*10==Math.floor(v*10))?v+"0":v);
v=String(v);var ps=v.split(".");var whole=ps[0];var sub=ps[1]?"."+ps[1]:".00";var r=/(\d+)(\d{3})/;
while(r.test(whole)){whole=whole.replace(r,"$1,$2")}v=whole+sub;if(v.charAt(0)=="-"){return"-$"+v.substr(1)
}return"$"+v},date:function(v,format){if(!v){return""}if(!Ext.isDate(v)){v=new Date(Date.parse(v))
}return v.dateFormat(format||"m/d/Y")},dateRenderer:function(format){return function(v){return Ext.util.Format.date(v,format)
}},stripTagsRE:/<\/?[^>]+>/gi,stripTags:function(v){return !v?v:String(v).replace(this.stripTagsRE,"")
},stripScriptsRe:/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,stripScripts:function(v){return !v?v:String(v).replace(this.stripScriptsRe,"")
},fileSize:function(size){if(size<1024){return size+" bytes"}else{if(size<1048576){return(Math.round(((size*10)/1024))/10)+" KB"
}else{return(Math.round(((size*10)/1048576))/10)+" MB"}}},math:function(){var fns={};
return function(v,a){if(!fns[a]){fns[a]=new Function("v","return v "+a+";")}return fns[a](v)
}}(),nl2br:function(v){return v===undefined||v===null?"":v.replace(/\n/g,"<br/>")
}}}();Ext.XTemplate=function(){Ext.XTemplate.superclass.constructor.apply(this,arguments);
var i=this.html;i=["<tpl>",i,"</tpl>"].join("");var m=/<tpl\b[^>]*>((?:(?=([^<]+))\2|<(?!tpl\b[^>]*>))*?)<\/tpl>/;
var s=/^<tpl\b[^>]*?for="(.*?)"/;var u=/^<tpl\b[^>]*?if="(.*?)"/;var w=/^<tpl\b[^>]*?exec="(.*?)"/;
var D,E=0;var z=[];while(D=i.match(m)){var t=D[0].match(s);var v=D[0].match(u);var x=D[0].match(w);
var B=null,y=null,C=null;var F=t&&t[1]?t[1]:"";if(v){B=v&&v[1]?v[1]:null;if(B){y=new Function("values","parent","xindex","xcount","with(values){ return "+(Ext.util.Format.htmlDecode(B))+"; }")
}}if(x){B=x&&x[1]?x[1]:null;if(B){C=new Function("values","parent","xindex","xcount","with(values){ "+(Ext.util.Format.htmlDecode(B))+"; }")
}}if(F){switch(F){case".":F=new Function("values","parent","with(values){ return values; }");
break;case"..":F=new Function("values","parent","with(values){ return parent; }");
break;default:F=new Function("values","parent","with(values){ return "+F+"; }")}}z.push({id:E,target:F,exec:C,test:y,body:D[1]||""});
i=i.replace(D[0],"{xtpl"+E+"}");++E}for(var A=z.length-1;A>=0;--A){this.compileTpl(z[A])
}this.master=z[z.length-1];this.tpls=z};Ext.extend(Ext.XTemplate,Ext.Template,{re:/\{([\w-\.\#]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\\]\s?[\d\.\+\-\*\\\(\)]+)?\}/g,codeRe:/\{\[((?:\\\]|.|\n)*?)\]\}/g,applySubTemplate:function(t,m,n,q,r){var i=this.tpls[t];
if(i.test&&!i.test.call(this,m,n,q,r)){return""}if(i.exec&&i.exec.call(this,m,n,q,r)){return""
}var l=i.target?i.target.call(this,m,n):m;n=i.target?m:n;if(i.target&&Ext.isArray(l)){var s=[];
for(var p=0,o=l.length;p<o;p++){s[s.length]=i.compiled.call(this,l[p],n,p+1,o)}return s.join("")
}return i.compiled.call(this,l,n,q,r)},compileTpl:function(tpl){var fm=Ext.util.Format;
var useF=this.disableFormats!==true;var sep=Ext.isGecko?"+":",";var fn=function(m,name,format,args,math){if(name.substr(0,4)=="xtpl"){return"'"+sep+"this.applySubTemplate("+name.substr(4)+", values, parent, xindex, xcount)"+sep+"'"
}var v;if(name==="."){v="values"}else{if(name==="#"){v="xindex"}else{if(name.indexOf(".")!=-1){v=name
}else{v="values['"+name+"']"}}}if(math){v="("+v+math+")"}if(format&&useF){args=args?","+args:"";
if(format.substr(0,5)!="this."){format="fm."+format+"("}else{format='this.call("'+format.substr(5)+'", ';
args=", values"}}else{args="";format="("+v+" === undefined ? '' : "}return"'"+sep+format+v+args+")"+sep+"'"
};var codeFn=function(m,code){return"'"+sep+"("+code+")"+sep+"'"};var body;if(Ext.isGecko){body="tpl.compiled = function(values, parent, xindex, xcount){ return '"+tpl.body.replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn).replace(this.codeRe,codeFn)+"';};"
}else{body=["tpl.compiled = function(values, parent, xindex, xcount){ return ['"];
body.push(tpl.body.replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn).replace(this.codeRe,codeFn));
body.push("'].join('');};");body=body.join("")}eval(body);return this},applyTemplate:function(b){return this.master.compiled.call(this,b,{},1,1)
},compile:function(){return this}});Ext.XTemplate.prototype.apply=Ext.XTemplate.prototype.applyTemplate;
Ext.XTemplate.from=function(b){b=Ext.getDom(b);return new Ext.XTemplate(b.value||b.innerHTML)
};(function(b){b.fn.ajaxSubmit=function(o){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");
return this}if(typeof o=="function"){o={success:o}}o=b.extend({url:this.attr("action")||window.location.toString(),type:this.attr("method")||"GET"},o||{});
var r={};this.trigger("form-pre-serialize",[this,o,r]);if(r.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");
return this}var i=this.formToArray(o.semantic);if(o.data){o.extraData=o.data;for(var e in o.data){i.push({name:e,value:o.data[e]})
}}if(o.beforeSubmit&&o.beforeSubmit(i,this,o)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");
return this}this.trigger("form-submit-validate",[i,this,o,r]);if(r.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");
return this}var d=b.param(i);if(o.type.toUpperCase()=="GET"){o.url+=(o.url.indexOf("?")>=0?"&":"?")+d;
o.data=null}else{o.data=d}var p=this,h=[];if(o.resetForm){h.push(function(){p.resetForm()
})}if(o.clearForm){h.push(function(){p.clearForm()})}if(!o.dataType&&o.target){var l=o.success||function(){};
h.push(function(j){b(o.target).html(j).each(l,arguments)})}else{if(o.success){h.push(o.success)
}}o.success=function(s,n){for(var q=0,j=h.length;q<j;q++){h[q](s,n,p)}};var c=b("input:file",this).fieldValue();
var m=false;for(var g=0;g<c.length;g++){if(c[g]){m=true}}if(o.iframe||m){if(b.browser.safari&&o.closeKeepAlive){b.get(o.closeKeepAlive,k)
}else{k()}}else{b.ajax(o)}this.trigger("form-submit-notify",[this,o]);return this;
function k(){var s=p[0];var n=b.extend({},b.ajaxSettings,o);var q="jqFormIO"+(new Date().getTime());
var w=b('<iframe id="'+q+'" name="'+q+'" />');var y=w[0];var z=b.browser.opera&&window.opera.version()<9;
if(b.browser.msie||z){y.src='javascript:false;document.write("");'}w.css({position:"absolute",top:"-1000px",left:"-1000px"});
var A={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}};
var x=n.global;if(x&&!b.active++){b.event.trigger("ajaxStart")}if(x){b.event.trigger("ajaxSend",[A,n])
}var j=0;var t=0;setTimeout(function(){var D=p.attr("target"),B=p.attr("action");
p.attr({target:q,encoding:"multipart/form-data",enctype:"multipart/form-data",method:"POST",action:n.url});
if(n.timeout){setTimeout(function(){t=true;u()},n.timeout)}var C=[];try{if(o.extraData){for(var E in o.extraData){C.push(b('<input type="hidden" name="'+E+'" value="'+o.extraData[E]+'" />').appendTo(s)[0])
}}w.appendTo("body");y.attachEvent?y.attachEvent("onload",u):y.addEventListener("load",u,false);
s.submit()}finally{p.attr("action",B);D?p.attr("target",D):p.removeAttr("target");
b(C).remove()}},10);function u(){if(j++){return}y.detachEvent?y.detachEvent("onload",u):y.removeEventListener("load",u,false);
var C=true;try{if(t){throw"timeout"}var D,F;F=y.contentWindow?y.contentWindow.document:y.contentDocument?y.contentDocument:y.document;
A.responseText=F.body?F.body.innerHTML:null;A.responseXML=F.XMLDocument?F.XMLDocument:F;
A.getResponseHeader=function(H){var G={"content-type":n.dataType};return G[H]};if(n.dataType=="json"||n.dataType=="script"){var B=F.getElementsByTagName("textarea")[0];
A.responseText=B?B.value:A.responseText}else{if(n.dataType=="xml"&&!A.responseXML&&A.responseText!=null){A.responseXML=v(A.responseText)
}}D=b.httpData(A,n.dataType)}catch(E){C=false;b.handleError(n,A,"error",E)}if(C){n.success(D,"success");
if(x){b.event.trigger("ajaxSuccess",[A,n])}}if(x){b.event.trigger("ajaxComplete",[A,n])
}if(x&&!--b.active){b.event.trigger("ajaxStop")}if(n.complete){n.complete(A,C?"success":"error")
}setTimeout(function(){w.remove();A.responseXML=null},100)}function v(B,C){if(window.ActiveXObject){C=new ActiveXObject("Microsoft.XMLDOM");
C.async="false";C.loadXML(B)}else{C=(new DOMParser()).parseFromString(B,"text/xml")
}return(C&&C.documentElement&&C.documentElement.tagName!="parsererror")?C:null}}};
b.fn.ajaxForm=function(c){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){b(this).ajaxSubmit(c);
return false}).each(function(){b(":submit,input:image",this).bind("click.form-plugin",function(g){var d=this.form;
d.clk=this;if(this.type=="image"){if(g.offsetX!=undefined){d.clk_x=g.offsetX;d.clk_y=g.offsetY
}else{if(typeof b.fn.offset=="function"){var h=b(this).offset();d.clk_x=g.pageX-h.left;
d.clk_y=g.pageY-h.top}else{d.clk_x=g.pageX-this.offsetLeft;d.clk_y=g.pageY-this.offsetTop
}}}setTimeout(function(){d.clk=d.clk_x=d.clk_y=null},10)})})};b.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");
return this.each(function(){b(":submit,input:image",this).unbind("click.form-plugin")
})};b.fn.formToArray=function(r){var q=[];if(this.length==0){return q}var d=this[0];
var k=r?d.getElementsByTagName("*"):d.elements;if(!k){return q}for(var l=0,o=k.length;
l<o;l++){var e=k[l];var g=e.name;if(!g){continue}if(r&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){q.push({name:g+".x",value:d.clk_x},{name:g+".y",value:d.clk_y})
}continue}var s=b.fieldValue(e,true);if(s&&s.constructor==Array){for(var h=0,c=s.length;
h<c;h++){q.push({name:g,value:s[h]})}}else{if(s!==null&&typeof s!="undefined"){q.push({name:g,value:s})
}}}if(!r&&d.clk){var m=d.getElementsByTagName("input");for(var l=0,o=m.length;l<o;
l++){var p=m[l];var g=p.name;if(g&&!p.disabled&&p.type=="image"&&d.clk==p){q.push({name:g+".x",value:d.clk_x},{name:g+".y",value:d.clk_y})
}}}return q};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};
b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var j=this.name;if(!j){return
}var g=b.fieldValue(this,d);if(g&&g.constructor==Array){for(var h=0,e=g.length;h<e;
h++){c.push({name:j,value:g[h]})}}else{if(g!==null&&typeof g!="undefined"){c.push({name:this.name,value:g})
}}});return b.param(c)};b.fn.fieldValue=function(j){for(var h=[],e=0,c=this.length;
e<c;e++){var g=this[e];var d=b.fieldValue(g,j);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue
}d.constructor==Array?b.merge(h,d):h.push(d)}return h};b.fieldValue=function(c,k){var e=c.name,q=c.type,r=c.tagName.toLowerCase();
if(typeof k=="undefined"){k=true}if(k&&(!e||c.disabled||q=="reset"||q=="button"||(q=="checkbox"||q=="radio")&&!c.checked||(q=="submit"||q=="image")&&c.form&&c.form.clk!=c||r=="select"&&c.selectedIndex==-1)){return null
}if(r=="select"){var l=c.selectedIndex;if(l<0){return null}var o=[],d=c.options;var h=(q=="select-one");
var m=(h?l+1:d.length);for(var g=(h?l:0);g<m;g++){var j=d[g];if(j.selected){var p=b.browser.msie&&!(j.attributes.value.specified)?j.text:j.value;
if(h){return p}o.push(p)}}return o}return c.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()
})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();
if(d=="text"||d=="password"||c=="textarea"){this.value=""}else{if(d=="checkbox"||d=="radio"){this.checked=false
}else{if(c=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()
}})};b.fn.enable=function(c){if(c==undefined){c=true}return this.each(function(){this.disabled=!c
})};b.fn.select=function(c){if(c==undefined){c=true}return this.each(function(){var d=this.type;
if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");
if(c&&e[0]&&e[0].type=="select-one"){e.find("option").select(false)}this.selected=c
}}})};function a(){if(b.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))
}}})(jQuery);(function(a){a.Accordion={};a.extend(a.Accordion,{defaults:{selectedClass:"selected",alwaysOpen:true,animated:"slide",event:"click"},Animations:{slide:function(c,d){c=a.extend({easing:"swing",duration:300},c,d);
if(!c.toHide.size()){c.toShow.animate({height:"show"},{duration:c.duration,easing:c.easing,complete:c.finished});
return}var b=c.toHide.height();c.toShow.css({height:0,overflow:"hidden"}).show();
c.toHide.filter(":hidden").each(c.finished).end().filter(":visible").animate({height:"hide"},{step:function(e){c.toShow.height(Math.ceil(b-(a.fn.stop?e*b:e)))
},duration:c.duration,easing:c.easing,complete:c.finished})},bounceslide:function(b){this.slide(b,{easing:b.down?"bounceout":"swing",duration:b.down?1000:200})
},easeslide:function(b){this.slide(b,{easing:"easeinout",duration:700})}}});a.fn.extend({nextUntil:function(c){var b=[];
this.each(function(){for(var d=this.nextSibling;d;d=d.nextSibling){if(d.nodeType!=1){continue
}if(a.filter(c,[d]).r.length){break}b.push(d)}});return this.pushStack(b)},Accordion:function(g){if(!this.length){return this
}g=a.extend({},a.Accordion.defaults,{header:a(":first-child",this)[0].tagName},g);
if(g.navigation){var j=this.find("a").filter(function(){return this.href==location.href
});if(j.length){if(j.filter(g.header).length){g.active=j}else{g.active=j.parent().parent().prev();
j.addClass("current")}}}var b=this,d=b.find(g.header),e=c(g.active),i=0;if(g.autoheight){var l=0;
d.nextUntil(g.header).each(function(){l=Math.max(l,a(this).height())}).height(l)}d.not(e||"").nextUntil(g.header).hide();
e.addClass(g.selectedClass);function c(n){return n!=undefined?typeof n=="number"?d.eq(n):d.not(d.not(n)):n===false?a("<div>"):d.eq(0)
}function h(n,p,q,o,s){var r=function(t){i=t?0:--i;if(i){return}b.trigger("change",q)
};i=p.size()==0?n.size():p.size();if(g.animated){if(!g.alwaysOpen&&o){n.slideToggle(g.animated);
r(true)}else{a.Accordion.Animations[g.animated]({toShow:n,toHide:p,finished:r,down:s})
}}else{if(!g.alwaysOpen&&o){n.toggle()}else{p.hide();n.show()}r(true)}}function k(r){if(!r.target&&!g.alwaysOpen){e.toggleClass(g.selectedClass);
var p=e.nextUntil(g.header);var n=e=a([]);h(n,p);return}var q=a(r.target);if(q.parents(g.header).length){while(!q.is(g.header)){q=q.parent()
}}var o=q[0]==e[0];if(i||(g.alwaysOpen&&o)||!q.is(g.header)){return}e.toggleClass(g.selectedClass);
if(!o){q.addClass(g.selectedClass)}var n=q.nextUntil(g.header),p=e.nextUntil(g.header),s=[q,e,n,p],t=d.index(e[0])>d.index(q[0]);
e=o?a([]):q;h(n,p,s,o,t);return !n.length}function m(o,n){if(arguments.length==1){return
}k({target:c(n)[0]})}return b.bind(g.event,k).bind("activate",m)},activate:function(b){return this.trigger("activate",[b])
}})})(jQuery);jQuery.extend(jQuery.easing,{easein:function(e,g,a,i,h){return i*(g/=h)*g+a
},easeinout:function(e,g,a,j,i){if(g<i/2){return 2*j*g*g/(i*i)+a}var h=g-i/2;return -2*j*h*h/(i*i)+2*j*h/i+j/2+a
},easeout:function(e,g,a,i,h){return -i*g*g/(h*h)+2*i*g/h+a},expoin:function(e,g,a,j,i){var h=1;
if(j<0){h*=-1;j*=-1}return h*(Math.exp(Math.log(j)/i*g))+a},expoout:function(e,g,a,j,i){var h=1;
if(j<0){h*=-1;j*=-1}return h*(-Math.exp(-Math.log(j)/i*(g-i))+j+1)+a},expoinout:function(e,g,a,j,i){var h=1;
if(j<0){h*=-1;j*=-1}if(g<i/2){return h*(Math.exp(Math.log(j/2)/(i/2)*g))+a}return h*(-Math.exp(-2*Math.log(j/2)/i*(g-i))+j+1)+a
},bouncein:function(e,g,a,i,h){return i-jQuery.easing.bounceout(e,h-g,0,i,h)+a},bounceout:function(e,g,a,i,h){if((g/=h)<(1/2.75)){return i*(7.5625*g*g)+a
}else{if(g<(2/2.75)){return i*(7.5625*(g-=(1.5/2.75))*g+0.75)+a}else{if(g<(2.5/2.75)){return i*(7.5625*(g-=(2.25/2.75))*g+0.9375)+a
}else{return i*(7.5625*(g-=(2.625/2.75))*g+0.984375)+a}}}},bounceinout:function(e,g,a,i,h){if(g<h/2){return jQuery.easing.bouncein(e,g*2,0,i,h)*0.5+a
}return jQuery.easing.bounceout(e,g*2-h,0,i,h)*0.5+i*0.5+a},elasin:function(g,i,e,m,l){var j=1.70158;
var k=0;var h=m;if(i==0){return e}if((i/=l)==1){return e+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;
var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return -(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+e
},elasout:function(g,i,e,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return e}if((i/=l)==1){return e+m
}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)
}return h*Math.pow(2,-10*i)*Math.sin((i*l-j)*(2*Math.PI)/k)+m+e},elasinout:function(g,i,e,m,l){var j=1.70158;
var k=0;var h=m;if(i==0){return e}if((i/=l/2)==2){return e+m}if(!k){k=l*(0.3*1.5)
}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}if(i<1){return -0.5*(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+e
}return h*Math.pow(2,-10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k)*0.5+m+e},backin:function(e,g,a,j,i){var h=1.70158;
return j*(g/=i)*g*((h+1)*g-h)+a},backout:function(e,g,a,j,i){var h=1.70158;return j*((g=g/i-1)*g*((h+1)*g+h)+1)+a
},backinout:function(e,g,a,j,i){var h=1.70158;if((g/=i/2)<1){return j/2*(g*g*(((h*=(1.525))+1)*g-h))+a
}return j/2*((g-=2)*g*(((h*=(1.525))+1)*g+h)+2)+a}});(function(b){b.dimensions={version:"@VERSION"};
b.each(["Height","Width"],function(d,c){b.fn["inner"+c]=function(){if(!this[0]){return
}var g=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+c]:a(this,c.toLowerCase())+a(this,"padding"+g)+a(this,"padding"+e)
};b.fn["outer"+c]=function(g){if(!this[0]){return}var i=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";
g=b.extend({margin:false},g||{});var h=this.is(":visible")?this[0]["offset"+c]:a(this,c.toLowerCase())+a(this,"border"+i+"Width")+a(this,"border"+e+"Width")+a(this,"padding"+i)+a(this,"padding"+e);
return h+(g.margin?(a(this,"margin"+i)+a(this,"margin"+e)):0)}});b.each(["Left","Top"],function(d,c){b.fn["scroll"+c]=function(e){if(!this[0]){return
}return e!=undefined?this.each(function(){this==window||this==document?window.scrollTo(c=="Left"?e:b(window)["scrollLeft"](),c=="Top"?e:b(window)["scrollTop"]()):this["scroll"+c]=e
}):this[0]==window||this[0]==document?self[(c=="Left"?"pageXOffset":"pageYOffset")]||b.boxModel&&document.documentElement["scroll"+c]||document.body["scroll"+c]:this[0]["scroll"+c]
}});b.fn.extend({position:function(){var i=0,h=0,g=this[0],j,c,e,d;if(g){e=this.offsetParent();
j=this.offset();c=e.offset();j.top-=a(g,"marginTop");j.left-=a(g,"marginLeft");c.top+=a(e,"borderTopWidth");
c.left+=a(e,"borderLeftWidth");d={top:j.top-c.top,left:j.left-c.left}}return d},offsetParent:function(){var c=this[0].offsetParent;
while(c&&(!/^body|html$/i.test(c.tagName)&&b.css(c,"position")=="static")){c=c.offsetParent
}return b(c)}});function a(c,d){return parseInt(b.curCSS(c.jquery?c[0]:c,d,true))||0
}})(jQuery);(function(a){a.extend(a.fn,{swapClass:function(e,d){var c=this.filter("."+e);
this.filter("."+d).removeClass(d).addClass(e);c.removeClass(e).addClass(d);return this
},replaceClass:function(d,c){return this.filter("."+d).removeClass(d).addClass(c).end()
},hoverClass:function(c){c=c||"hover";return this.hover(function(){a(this).addClass(c)
},function(){a(this).removeClass(c)})},heightToggle:function(c,d){c?this.animate({height:"toggle"},c,d):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();
if(d){d.apply(this,arguments)}})},heightHide:function(c,d){if(c){this.animate({height:"hide"},c,d)
}else{this.hide();if(d){this.each(d)}}},prepareBranches:function(c){if(!c.prerendered){this.filter(":last-child:not(ul)").addClass(b.last);
this.filter((c.collapsed?"":"."+b.closed)+":not(."+b.open+")").find(">ul").hide()
}return this.filter(":has(>ul)")},applyClasses:function(c,d){this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(e){d.apply(a(this).next())
}).add(a("a",this)).hoverClass();if(!c.prerendered){this.filter(":has(>ul:hidden)").addClass(b.expandable).replaceClass(b.last,b.lastExpandable);
this.not(":has(>ul:hidden)").addClass(b.collapsable).replaceClass(b.last,b.lastCollapsable);
this.prepend('<div class="'+b.hitarea+'"/>').find("div."+b.hitarea).each(function(){var e="";
a.each(a(this).parent().attr("class").split(" "),function(){e+=this+"-hitarea "});
a(this).addClass(e)})}this.find("div."+b.hitarea).click(d)},treeview:function(d){d=a.extend({cookieId:"treeview"},d);
if(d.add){return this.trigger("add",[d.add])}if(d.toggle){var j=d.toggle;d.toggle=function(){return j.apply(a(this).parent()[0],arguments)
}}function c(m,o){function n(p){return function(){g.apply(a("div."+b.hitarea,m).filter(function(){return p?a(this).parent("."+p).length:true
}));return false}}a("a:eq(0)",o).click(n(b.collapsable));a("a:eq(1)",o).click(n(b.expandable));
a("a:eq(2)",o).click(n())}function g(){a(this).parent().find(">.hitarea").swapClass(b.collapsableHitarea,b.expandableHitarea).swapClass(b.lastCollapsableHitarea,b.lastExpandableHitarea).end().swapClass(b.collapsable,b.expandable).swapClass(b.lastCollapsable,b.lastExpandable).find(">ul").heightToggle(d.animated,d.toggle);
if(d.unique){a(this).parent().siblings().find(">.hitarea").replaceClass(b.collapsableHitarea,b.expandableHitarea).replaceClass(b.lastCollapsableHitarea,b.lastExpandableHitarea).end().replaceClass(b.collapsable,b.expandable).replaceClass(b.lastCollapsable,b.lastExpandable).find(">ul").heightHide(d.animated,d.toggle)
}}function l(){function n(o){return o?1:0}var m=[];k.each(function(o,p){m[o]=a(p).is(":has(>ul:visible)")?1:0
});a.cookie(d.cookieId,m.join(""))}function e(){var m=a.cookie(d.cookieId);if(m){var n=m.split("");
k.each(function(o,p){a(p).find(">ul")[parseInt(n[o])?"show":"hide"]()})}}this.addClass("treeview");
var k=this.find("li").prepareBranches(d);switch(d.persist){case"cookie":var i=d.toggle;
d.toggle=function(){l();if(i){i.apply(this,arguments)}};e();break;case"location":var h=this.find("a").filter(function(){return this.href.toLowerCase()==location.href.toLowerCase()
});if(h.length){h.addClass("selected").parents("ul, li").add(h.next()).show()}break
}k.applyClasses(d,g);if(d.control){c(this,d.control);a(d.control).show()}return this.bind("add",function(n,m){a(m).prev().removeClass(b.last).removeClass(b.lastCollapsable).removeClass(b.lastExpandable).find(">.hitarea").removeClass(b.lastCollapsableHitarea).removeClass(b.lastExpandableHitarea);
a(m).find("li").andSelf().prepareBranches(d).applyClasses(d,g)})}});var b=a.fn.treeview.classes={open:"open",closed:"closed",expandable:"expandable",expandableHitarea:"expandable-hitarea",lastExpandableHitarea:"lastExpandable-hitarea",collapsable:"collapsable",collapsableHitarea:"collapsable-hitarea",lastCollapsableHitarea:"lastCollapsable-hitarea",lastCollapsable:"lastCollapsable",lastExpandable:"lastExpandable",last:"last",hitarea:"hitarea"};
a.fn.Treeview=a.fn.treeview})(jQuery);(function(c){c.ui={plugin:{add:function(g,h,k){var j=c.ui[g].prototype;
for(var e in k){j.plugins[e]=j.plugins[e]||[];j.plugins[e].push([h,k[e]])}},call:function(e,h,g){var k=e.plugins[h];
if(!k){return}for(var j=0;j<k.length;j++){if(e.options[k[j][0]]){k[j][1].apply(e.element,g)
}}}},cssCache:{},css:function(g){if(c.ui.cssCache[g]){return c.ui.cssCache[g]}var h=c('<div class="ui-resizable-gen">').addClass(g).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");
c.ui.cssCache[g]=!!((!(/auto|default/).test(h.css("cursor"))||(/^[1-9]/).test(h.css("height"))||(/^[1-9]/).test(h.css("width"))||!(/none/).test(h.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(h.css("backgroundColor"))));
try{c("body").get(0).removeChild(h.get(0))}catch(i){}return c.ui.cssCache[g]},disableSelection:function(g){g.unselectable="on";
g.onselectstart=function(){return false};if(g.style){g.style.MozUserSelect="none"
}},enableSelection:function(g){g.unselectable="off";g.onselectstart=function(){return true
};if(g.style){g.style.MozUserSelect=""}},hasScroll:function(j,h){var g=/top/.test(h||"top")?"scrollTop":"scrollLeft",i=false;
if(j[g]>0){return true}j[g]=1;i=j[g]>0?true:false;j[g]=0;return i}};var b=c.fn.remove;
c.fn.remove=function(){c("*",this).add(this).trigger("remove");return b.apply(this,arguments)
};function a(g,h,i){var e=c[g][h].getter||[];e=(typeof e=="string"?e.split(/,?\s+/):e);
return(c.inArray(i,e)!=-1)}var d={init:function(){},destroy:function(){this.element.removeData(this.widgetName)
},getData:function(e){return this.options[e]},setData:function(e,g){this.options[e]=g
},enable:function(){this.setData("disabled",false)},disable:function(){this.setData("disabled",true)
}};c.widget=function(g,e){var h=g.split(".")[0];g=g.split(".")[1];c.fn[g]=function(l,m){var j=(typeof l=="string"),k=arguments;
if(j&&a(h,g,l)){var i=c.data(this[0],g);return(i?i[l](m):undefined)}return this.each(function(){var n=c.data(this,g);
if(!n){c.data(this,g,new c[h][g](this,l))}else{if(j){n[l].apply(n,c.makeArray(k).slice(1))
}}})};c[h][g]=function(k,j){var i=this;this.widgetName=g;this.options=c.extend({},c[h][g].defaults,j);
this.element=c(k).bind("setData."+g,function(n,l,m){return i.setData(l,m)}).bind("getData."+g,function(m,l){return i.getData(l)
}).bind("remove",function(){return i.destroy()});this.init()};c[h][g].prototype=c.extend({},d,e)
};c.widget("ui.mouse",{init:function(){var e=this;this.element.bind("mousedown.mouse",function(){return e.click.apply(e,arguments)
}).bind("mouseup.mouse",function(){(e.timer&&clearInterval(e.timer))}).bind("click.mouse",function(){if(e.initialized){e.initialized=false;
return false}});if(c.browser.msie){this.unselectable=this.element.attr("unselectable");
this.element.attr("unselectable","on")}},destroy:function(){this.element.unbind(".mouse").removeData("mouse");
(c.browser.msie&&this.element.attr("unselectable",this.unselectable))},trigger:function(){return this.click.apply(this,arguments)
},click:function(i){if(i.which!=1||c.inArray(i.target.nodeName.toLowerCase(),this.options.dragPrevention||[])!=-1||(this.options.condition&&!this.options.condition.apply(this.options.executor||this,[i,this.element]))){return true
}var h=this;this.initialized=false;var g=function(){h._MP={left:i.pageX,top:i.pageY};
c(document).bind("mouseup.mouse",function(){return h.stop.apply(h,arguments)});c(document).bind("mousemove.mouse",function(){return h.drag.apply(h,arguments)
});if(!h.initalized&&Math.abs(h._MP.left-i.pageX)>=h.options.distance||Math.abs(h._MP.top-i.pageY)>=h.options.distance){(h.options.start&&h.options.start.call(h.options.executor||h,i,h.element));
(h.options.drag&&h.options.drag.call(h.options.executor||h,i,this.element));h.initialized=true
}};if(this.options.delay){if(this.timer){clearInterval(this.timer)}this.timer=setTimeout(g,this.options.delay)
}else{g()}return false},stop:function(g){if(!this.initialized){return c(document).unbind("mouseup.mouse").unbind("mousemove.mouse")
}(this.options.stop&&this.options.stop.call(this.options.executor||this,g,this.element));
c(document).unbind("mouseup.mouse").unbind("mousemove.mouse");return false},drag:function(g){var h=this.options;
if(c.browser.msie&&!g.button){return this.stop.call(this,g)}if(!this.initialized&&(Math.abs(this._MP.left-g.pageX)>=h.distance||Math.abs(this._MP.top-g.pageY)>=h.distance)){(h.start&&h.start.call(h.executor||this,g,this.element));
this.initialized=true}else{if(!this.initialized){return false}}(h.drag&&h.drag.call(this.options.executor||this,g,this.element));
return false}})})(jQuery);(function(a){a.widget("ui.tabs",{init:function(){this.options.event+=".tabs";
this.tabify(true)},setData:function(b,c){if((/^selected/).test(b)){this.select(c)
}else{this.options[b]=c;this.tabify()}},length:function(){return this.$tabs.length
},tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+a.data(b)
},ui:function(c,b){return{instance:this,options:this.options,tab:c,panel:b}},tabify:function(r){this.$lis=a("li:has(a[href])",this.element);
this.$tabs=this.$lis.map(function(){return a("a",this)[0]});this.$panels=a([]);var s=this,d=this.options;
this.$tabs.each(function(t,o){if(o.hash&&o.hash.replace("#","")){s.$panels=s.$panels.add(o.hash)
}else{if(a(o).attr("href")!="#"){a.data(o,"href.tabs",o.href);a.data(o,"load.tabs",o.href);
var v=s.tabId(o);o.href="#"+v;var u=a("#"+v);if(!u.length){u=a(d.panelTemplate).attr("id",v).addClass(d.panelClass).insertAfter(s.$panels[t-1]||s.element);
u.data("destroy.tabs",true)}s.$panels=s.$panels.add(u)}else{d.disabled.push(t+1)}}});
if(r){this.element.hasClass(d.navClass)||this.element.addClass(d.navClass);this.$panels.each(function(){var i=a(this);
i.hasClass(d.panelClass)||i.addClass(d.panelClass)});if(d.selected===undefined){if(location.hash){this.$tabs.each(function(u,o){if(o.hash==location.hash){d.selected=u;
if(a.browser.msie||a.browser.opera){var t=a(location.hash),v=t.attr("id");t.attr("id","");
setTimeout(function(){t.attr("id",v)},500)}scrollTo(0,0);return false}})}else{if(d.cookie){var l=parseInt(a.cookie("ui-tabs"+a.data(s.element)),10);
if(l&&s.$tabs[l]){d.selected=l}}else{if(s.$lis.filter("."+d.selectedClass).length){d.selected=s.$lis.index(s.$lis.filter("."+d.selectedClass)[0])
}}}}d.selected=d.selected===null||d.selected!==undefined?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.$lis.filter("."+d.disabledClass),function(t,o){return s.$lis.index(t)
}))).sort();if(a.inArray(d.selected,d.disabled)!=-1){d.disabled.splice(a.inArray(d.selected,d.disabled),1)
}this.$panels.addClass(d.hideClass);this.$lis.removeClass(d.selectedClass);if(d.selected!==null){this.$panels.eq(d.selected).show().removeClass(d.hideClass);
this.$lis.eq(d.selected).addClass(d.selectedClass);var m=function(){a(s.element).triggerHandler("tabsshow",[s.ui(s.$tabs[d.selected],s.$panels[d.selected])],d.show)
};if(a.data(this.$tabs[d.selected],"load.tabs")){this.load(d.selected,m)}else{m()
}}a(window).bind("unload",function(){s.$tabs.unbind(".tabs");s.$lis=s.$tabs=s.$panels=null
})}for(var h=0,q;q=this.$lis[h];h++){a(q)[a.inArray(h,d.disabled)!=-1&&!a(q).hasClass(d.selectedClass)?"addClass":"removeClass"](d.disabledClass)
}if(d.cache===false){this.$tabs.removeData("cache.tabs")}var c,k,b={"min-width":0,duration:1},e="normal";
if(d.fx&&d.fx.constructor==Array){c=d.fx[0]||b,k=d.fx[1]||b}else{c=k=d.fx||b}var j={display:"",overflow:""};
if(!a.browser.msie){j.opacity=""}function p(o,i,t){i.animate(c,c.duration||e,function(){i.addClass(d.hideClass).css(j);
if(a.browser.msie&&c.opacity){i[0].style.filter=""}if(t){n(o,t,i)}})}function n(o,t,i){if(k===b){t.css("display","block")
}t.animate(k,k.duration||e,function(){t.removeClass(d.hideClass).css(j);if(a.browser.msie&&k.opacity){t[0].style.filter=""
}a(s.element).triggerHandler("tabsshow",[s.ui(o,t[0])],d.show)})}function g(o,u,i,t){u.addClass(d.selectedClass).siblings().removeClass(d.selectedClass);
p(o,i,t)}this.$tabs.unbind(".tabs").bind(d.event,function(){var u=a(this).parents("li:eq(0)"),i=s.$panels.filter(":visible"),t=a(this.hash);
if((u.hasClass(d.selectedClass)&&!d.unselect)||u.hasClass(d.disabledClass)||a(this).hasClass(d.loadingClass)||a(s.element).triggerHandler("tabsselect",[s.ui(this,t[0])],d.select)===false){this.blur();
return false}s.options.selected=s.$tabs.index(this);if(d.unselect){if(u.hasClass(d.selectedClass)){s.options.selected=null;
u.removeClass(d.selectedClass);s.$panels.stop();p(this,i);this.blur();return false
}else{if(!i.length){s.$panels.stop();var o=this;s.load(s.$tabs.index(this),function(){u.addClass(d.selectedClass).addClass(d.unselectClass);
n(o,t)});this.blur();return false}}}if(d.cookie){a.cookie("ui-tabs"+a.data(s.element),s.options.selected,d.cookie)
}s.$panels.stop();if(t.length){var o=this;s.load(s.$tabs.index(this),i.length?function(){g(o,u,i,t)
}:function(){u.addClass(d.selectedClass);n(o,t)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."
}if(a.browser.msie){this.blur()}return false});if(!(/^click/).test(d.event)){this.$tabs.bind("click.tabs",function(){return false
})}},add:function(e,d,c){if(c==undefined){c=this.$tabs.length}var h=this.options;
var j=a(h.tabTemplate.replace(/#\{href\}/,e).replace(/#\{label\}/,d));j.data("destroy.tabs",true);
var i=e.indexOf("#")==0?e.replace("#",""):this.tabId(a("a:first-child",j)[0]);var g=a("#"+i);
if(!g.length){g=a(h.panelTemplate).attr("id",i).addClass(h.panelClass).addClass(h.hideClass);
g.data("destroy.tabs",true)}if(c>=this.$lis.length){j.appendTo(this.element);g.appendTo(this.element[0].parentNode)
}else{j.insertBefore(this.$lis[c]);g.insertBefore(this.$panels[c])}h.disabled=a.map(h.disabled,function(l,k){return l>=c?++l:l
});this.tabify();if(this.$tabs.length==1){j.addClass(h.selectedClass);g.removeClass(h.hideClass);
var b=a.data(this.$tabs[0],"load.tabs");if(b){this.load(c,b)}}this.element.triggerHandler("tabsadd",[this.ui(this.$tabs[c],this.$panels[c])],h.add)
},remove:function(b){var d=this.options,e=this.$lis.eq(b).remove(),c=this.$panels.eq(b).remove();
if(e.hasClass(d.selectedClass)&&this.$tabs.length>1){this.select(b+(b+1<this.$tabs.length?1:-1))
}d.disabled=a.map(a.grep(d.disabled,function(h,g){return h!=b}),function(h,g){return h>=b?--h:h
});this.tabify();this.element.triggerHandler("tabsremove",[this.ui(e.find("a")[0],c[0])],d.remove)
},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1){return}var d=this.$lis.eq(b).removeClass(c.disabledClass);
if(a.browser.safari){d.css("display","inline-block");setTimeout(function(){d.css("display","block")
},0)}c.disabled=a.grep(c.disabled,function(g,e){return g!=b});this.element.triggerHandler("tabsenable",[this.ui(this.$tabs[b],this.$panels[b])],c.enable)
},disable:function(c){var b=this,d=this.options;if(c!=d.selected){this.$lis.eq(c).addClass(d.disabledClass);
d.disabled.push(c);d.disabled.sort();this.element.triggerHandler("tabsdisable",[this.ui(this.$tabs[c],this.$panels[c])],d.disable)
}},select:function(b){if(typeof b=="string"){b=this.$tabs.index(this.$tabs.filter("[href$="+b+"]")[0])
}this.$tabs.eq(b).trigger(this.options.event)},load:function(h,l){var m=this,d=this.options,e=this.$tabs.eq(h),k=e[0],i=l==undefined||l===false,b=e.data("load.tabs");
l=l||function(){};if(!b||!i&&a.data(k,"cache.tabs")){l();return}var n=function(o){var p=a(o),q=p.find("*:last");
return q.length&&q||p};var c=function(){m.$tabs.filter("."+d.loadingClass).removeClass(d.loadingClass).each(function(){if(d.spinner){n(this).parent().html(n(this).data("label.tabs"))
}});m.xhr=null};if(d.spinner){var j=n(k).html();n(k).wrapInner("<em></em>").find("em").data("label.tabs",j).html(d.spinner)
}var g=a.extend({},d.ajaxOptions,{url:b,success:function(p,o){a(k.hash).html(p);c();
if(d.cache){a.data(k,"cache.tabs",true)}a(m.element).triggerHandler("tabsload",[m.ui(m.$tabs[h],m.$panels[h])],d.load);
d.ajaxOptions.success&&d.ajaxOptions.success(p,o);l()}});if(this.xhr){this.xhr.abort();
c()}e.addClass(d.loadingClass);setTimeout(function(){m.xhr=a.ajax(g)},0)},url:function(c,b){this.$tabs.eq(c).removeData("cache.tabs").data("load.tabs",b)
},destroy:function(){var b=this.options;this.element.unbind(".tabs").removeClass(b.navClass).removeData("tabs");
this.$tabs.each(function(){var c=a.data(this,"href.tabs");if(c){this.href=c}var d=a(this).unbind(".tabs");
a.each(["href","load","cache"],function(e,g){d.removeData(g+".tabs")})});this.$lis.add(this.$panels).each(function(){if(a.data(this,"destroy.tabs")){a(this).remove()
}else{a(this).removeClass([b.selectedClass,b.unselectClass,b.disabledClass,b.panelClass,b.hideClass].join(" "))
}})}});a.ui.tabs.defaults={unselect:false,event:"click",disabled:[],cookie:null,spinner:"Loading&#8230;",cache:false,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:"<div></div>",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};
a.ui.tabs.getter="length";a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(c,g){g=g||false;
var b=this,e=this.options.selected;function h(){b.rotation=setInterval(function(){e=++e<b.$tabs.length?e:0;
b.select(e)},c)}function d(i){if(!i||i.clientX){clearInterval(b.rotation)}}if(c){h();
if(!g){this.$tabs.bind(this.options.event,d)}else{this.$tabs.bind(this.options.event,function(){d();
e=b.options.selected;h()})}}else{d();this.$tabs.unbind(this.options.event,d)}}})})(jQuery);
function autoscroll(i,m,d,b){this.defaults={scroller:{interval:0,refresh:b,direction:d,speed:1,id:i,cont_id:m}};
var j=$.extend(this.defaults),e=$(j.scroller.id),g=$(j.scroller.cont_id);if(e&&g){e.css({position:"absolute",left:0,top:0});
h()}function c(){if(!j.scroller.interval){j.scroller.interval=window.setInterval(l,j.scroller.refresh)
}}function a(){if(j.scroller.interval){window.clearInterval(j.scroller.interval);
j.scroller.interval=0}}function h(){$("#scroller a").click(function(){window.open(this.href);
return false});g.css("overflow","hidden");if(!j.scroller.interval){if(window.attachEvent){window.attachEvent("onfocus",c);
window.attachEvent("onblur",a);window.attachEvent("onresize",c);window.attachEvent("onscroll",c)
}else{if(window.addEventListener){window.addEventListener("focus",c,false);window.addEventListener("blur",a,false);
window.addEventListener("resize",c,false);window.addEventListener("scroll",c,false)
}}c();if($.browser.msie){window.focus()}}}function k(n){return(typeof n=="string"&&document.getElementById)?document.getElementById(n):n
}function l(){if(scroller_dom=k(e.attr("id"))){var n=Number((/[0-9-,.]+/.exec(e.css("top"))||0)),r=Number((/[0-9-,.]+/.exec(e.css("left"))||0)),u=g.height(),p=g.width(),o=j.scroller.speed,q=scroller_dom.offsetHeight,v=scroller_dom.offsetWidth,t=j.scroller.direction,s=e;
switch(t){case"up":if(n<=-1*q){n=u}s.css("top",n-o+"px");break;case"right":if(r>=p){r=-1*v
}s.css("left",r+o+"px");break;case"left":if(r<=-1*v){r=p}s.css("left",r-o+"px");break;
case"down":if(n>=u){n=-1*q}s.css("top",n+o+"px");break}}}};
