/* * Ext JS Library 1.1 RC 1 * Copyright(c) 2006-2007, Ext JS, LLC. * licensing@extjs.com * * http://www.extjs.com/license */ Ext={};window["undefined"]=window["undefined"];Ext.apply=function(o,c,_3){if(_3){Ext.apply(o,_3);}if(o&&c&&typeof c=="object"){for(var p in c){o[p]=c[p];}}return o;};(function(){var _5=0;var ua=navigator.userAgent.toLowerCase();var _7=document.compatMode=="CSS1Compat",_8=ua.indexOf("opera")>-1,_9=(/webkit|khtml/).test(ua),_a=ua.indexOf("msie")>-1,_b=ua.indexOf("msie 7")>-1,_c=!_9&&ua.indexOf("gecko")>-1,_d=_a&&!_7,_e=(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1),_f=(ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1),_10=(ua.indexOf("linux")!=-1),_11=window.location.href.toLowerCase().indexOf("https")===0;if(_a&&!_b){try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}}Ext.apply(Ext,{isStrict:_7,isSecure:_11,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 _16={};for(var b in o){var _18=b.split("@");if(_18[1]){var s=_18[0];if(!_16[s]){_16[s]=Ext.select(s);}_16[s].on(_18[1],o[b]);}}_16=null;},id:function(el,_1b){_1b=_1b||"ext-gen";el=Ext.getDom(el);var id=_1b+(++_5);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];}};return function(sb,sp,_22){if(typeof sp=="object"){_22=sp;sp=sb;sb=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==Object.prototype.constructor){spp.constructor=sp;}sb.override=function(o){Ext.override(sb,o);};sbp.override=io;sbp.__extcls=sb;Ext.override(sb,_22);return sb;};}(),override:function(_27,_28){if(_28){var p=_27.prototype;for(var _2a in _28){p[_2a]=_28[_2a];}}},namespace:function(){var a=arguments,o=null,i,j,d,rt;for(i=0;i=0){_3d=_24[_3e];}if(!el||!_3d){return false;}this.doRemove(el,_38,_3d[this.WFN],false);delete _24[_3e][this.WFN];delete _24[_3e][this.FN];_24.splice(_3e,1);return true;},getTarget:function(ev,_40){ev=ev.browserEvent||ev;var t=ev.target||ev.srcElement;return this.resolveTextNode(t);},resolveTextNode:function(_42){if(Ext.isSafari&&_42&&3==_42.nodeType){return _42.parentNode;}else{return _42;}},getPageX:function(ev){ev=ev.browserEvent||ev;var x=ev.pageX;if(!x&&0!==x){x=ev.clientX||0;if(Ext.isIE){x+=this.getScroll()[1];}}return x;},getPageY:function(ev){ev=ev.browserEvent||ev;var y=ev.pageY;if(!y&&0!==y){y=ev.clientY||0;if(Ext.isIE){y+=this.getScroll()[0];}}return y;},getXY:function(ev){ev=ev.browserEvent||ev;return[this.getPageX(ev),this.getPageY(ev)];},getRelatedTarget:function(ev){ev=ev.browserEvent||ev;var t=ev.relatedTarget;if(!t){if(ev.type=="mouseout"){t=ev.toElement;}else{if(ev.type=="mouseover"){t=ev.fromElement;}}}return this.resolveTextNode(t);},getTime:function(ev){ev=ev.browserEvent||ev;if(!ev.time){var t=new Date().getTime();try{ev.time=t;}catch(ex){this.lastError=ex;return t;}}return ev.time;},stopEvent:function(ev){this.stopPropagation(ev);this.preventDefault(ev);},stopPropagation:function(ev){ev=ev.browserEvent||ev;if(ev.stopPropagation){ev.stopPropagation();}else{ev.cancelBubble=true;}},preventDefault:function(ev){ev=ev.browserEvent||ev;if(ev.preventDefault){ev.preventDefault();}else{ev.returnValue=false;}},getEvent:function(e){var ev=e||window.event;if(!ev){var c=this.getEvent.caller;while(c){ev=c.arguments[0];if(ev&&Event==ev.constructor){break;}c=c.caller;}}return ev;},getCharCode:function(ev){ev=ev.browserEvent||ev;return ev.charCode||ev.keyCode||0;},_getCacheIndex:function(el,_54,fn){for(var i=0,len=_24.length;i0);}var _5d=[];for(var i=0,len=_27.length;i0){for(var i=0,len=_6f.length;i0){j=_24.length;while(j){_79=j-1;l=_24[_79];if(l){EU.removeListener(l[EU.EL],l[EU.TYPE],l[EU.FN],_79);}j=j-1;}l=null;EU.clearCache();}EU.doRemove(window,"unload",EU._unload);},getScroll:function(){var dd=document.documentElement,db=document.body;if(dd&&(dd.scrollTop||dd.scrollLeft)){return[dd.scrollTop,dd.scrollLeft];}else{if(db){return[db.scrollTop,db.scrollLeft];}else{return[0,0];}}},doAdd:function(){if(window.addEventListener){return function(el,_7e,fn,_80){el.addEventListener(_7e,fn,(_80));};}else{if(window.attachEvent){return function(el,_82,fn,_84){el.attachEvent("on"+_82,fn);};}else{return function(){};}}}(),doRemove:function(){if(window.removeEventListener){return function(el,_86,fn,_88){el.removeEventListener(_86,fn,(_88));};}else{if(window.detachEvent){return function(el,_8a,fn){el.detachEvent("on"+_8a,fn);};}else{return function(){};}}}()};}();Ext.lib.Event.on=Ext.lib.Event.addListener;Ext.lib.Event.un=Ext.lib.Event.removeListener;Ext.lib.Ajax={request:function(_8c,uri,cb,_8f,_90){if(_90){var hs=_90.headers;if(hs){for(var h in hs){if(hs.hasOwnProperty(h)){this.initHeader(h,hs[h],false);}}}if(_90.xmlData){this.initHeader("Content-Type","text/xml",false);_8c="POST";_8f=_90.xmlData;}}return this.asyncRequest(_8c,uri,cb,_8f);},serializeForm:function(_93){if(typeof _93=="string"){_93=(document.getElementById(_93)||document.forms[_93]);}var el,_95,val,_97,_98="",_99=false;for(var i=0;i<_93.elements.length;i++){el=_93.elements[i];_97=_93.elements[i].disabled;_95=_93.elements[i].name;val=_93.elements[i].value;if(!_97&&_95){switch(el.type){case"select-one":case"select-multiple":for(var j=0;j=200&&_b1<300){_b2=this.createResponseObject(o,_af.argument);if(_af.success){if(!_af.scope){_af.success(_b2);}else{_af.success.apply(_af.scope,[_b2]);}}}else{switch(_b1){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:_b2=this.createExceptionObject(o.tId,_af.argument,(_b0?_b0:false));if(_af.failure){if(!_af.scope){_af.failure(_b2);}else{_af.failure.apply(_af.scope,[_b2]);}}break;default:_b2=this.createResponseObject(o,_af.argument);if(_af.failure){if(!_af.scope){_af.failure(_b2);}else{_af.failure.apply(_af.scope,[_b2]);}}}}this.releaseObject(o);_b2=null;},createResponseObject:function(o,_b4){var obj={};var _b6={};try{var _b7=o.conn.getAllResponseHeaders();var _b8=_b7.split("\n");for(var i=0;i<_b8.length;i++){var _ba=_b8[i].indexOf(":");if(_ba!=-1){_b6[_b8[i].substring(0,_ba)]=_b8[i].substring(_ba+2);}}}catch(e){}obj.tId=o.tId;obj.status=o.conn.status;obj.statusText=o.conn.statusText;obj.getResponseHeader=_b6;obj.getAllResponseHeaders=_b7;obj.responseText=o.conn.responseText;obj.responseXML=o.conn.responseXML;if(typeof _b4!==undefined){obj.argument=_b4;}return obj;},createExceptionObject:function(tId,_bc,_bd){var _be=0;var _bf="communication failure";var _c0=-1;var _c1="transaction aborted";var obj={};obj.tId=tId;if(_bd){obj.status=_c0;obj.statusText=_c1;}else{obj.status=_be;obj.statusText=_bf;}if(_bc){obj.argument=_bc;}return obj;},initHeader:function(_c3,_c4,_c5){var _c6=(_c5)?this.defaultHeaders:this.headers;if(_c6[_c3]===undefined){_c6[_c3]=_c4;}else{_c6[_c3]=_c4+","+_c6[_c3];}if(_c5){this.hasDefaultHeaders=true;}else{this.hasHeaders=true;}},setHeader:function(o){if(this.hasDefaultHeaders){for(var _c8 in this.defaultHeaders){if(this.defaultHeaders.hasOwnProperty(_c8)){o.conn.setRequestHeader(_c8,this.defaultHeaders[_c8]);}}}if(this.hasHeaders){for(var _c8 in this.headers){if(this.headers.hasOwnProperty(_c8)){o.conn.setRequestHeader(_c8,this.headers[_c8]);}}this.headers={};this.hasHeaders=false;}},resetDefaultHeaders:function(){delete this.defaultHeaders;this.defaultHeaders={};this.hasDefaultHeaders=false;},abort:function(o,_ca,_cb){if(this.isCallInProgress(o)){o.conn.abort();window.clearInterval(this.poll[o.tId]);delete this.poll[o.tId];if(_cb){delete this.timeout[o.tId];}this.handleTransactionResponse(o,_ca,true);return true;}else{return false;}},isCallInProgress:function(o){if(o.conn){return o.conn.readyState!=4&&o.conn.readyState!=0;}else{return false;}},releaseObject:function(o){o.conn=null;o=null;},activeX:["MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"]};Ext.lib.Region=function(t,r,b,l){this.top=t;this[1]=t;this.right=r;this.bottom=b;this.left=l;this[0]=l;};Ext.lib.Region.prototype={contains:function(_d2){return(_d2.left>=this.left&&_d2.right<=this.right&&_d2.top>=this.top&&_d2.bottom<=this.bottom);},getArea:function(){return((this.bottom-this.top)*(this.right-this.left));},intersect:function(_d3){var t=Math.max(this.top,_d3.top);var r=Math.min(this.right,_d3.right);var b=Math.min(this.bottom,_d3.bottom);var l=Math.max(this.left,_d3.left);if(b>=t&&r>=l){return new Ext.lib.Region(t,r,b,l);}else{return null;}},union:function(_d8){var t=Math.min(this.top,_d8.top);var r=Math.max(this.right,_d8.right);var b=Math.max(this.bottom,_d8.bottom);var l=Math.min(this.left,_d8.left);return new Ext.lib.Region(t,r,b,l);},adjust:function(t,l,b,r){this.top+=t;this.left+=l;this.right+=r;this.bottom+=b;return this;}};Ext.lib.Region.getRegion=function(el){var p=Ext.lib.Dom.getXY(el);var t=p[1];var r=p[0]+el.offsetWidth;var b=p[1]+el.offsetHeight;var l=p[0];return new Ext.lib.Region(t,r,b,l);};Ext.lib.Point=function(x,y){if(x instanceof Array){y=x[1];x=x[0];}this.x=this.right=this.left=this[0]=x;this.y=this.top=this.bottom=this[1]=y;};Ext.lib.Point.prototype=new Ext.lib.Region();Ext.lib.Anim={scroll:function(el,_ea,_eb,_ec,cb,_ee){this.run(el,_ea,_eb,_ec,cb,_ee,Ext.lib.Scroll);},motion:function(el,_f0,_f1,_f2,cb,_f4){this.run(el,_f0,_f1,_f2,cb,_f4,Ext.lib.Motion);},color:function(el,_f6,_f7,_f8,cb,_fa){this.run(el,_f6,_f7,_f8,cb,_fa,Ext.lib.ColorAnim);},run:function(el,_fc,_fd,_fe,cb,_100,type){type=type||Ext.lib.AnimBase;if(typeof _fe=="string"){_fe=Ext.lib.Easing[_fe];}var anim=new type(el,_fc,_fd,_fe);anim.animateX(function(){Ext.callback(cb,_100);});return anim;}};function fly(el){if(!_1){_1=new Ext.Element.Flyweight();}_1.dom=el;return _1;}if(Ext.isIE){function fnCleaup(){var p=Function.prototype;delete p.createSequence;delete p.defer;delete p.createDelegate;delete p.createCallback;delete p.createInterceptor;window.detachEvent("unload",fnCleaup);}window.attachEvent("unload",fnCleaup);}Ext.lib.AnimBase=function(el,_106,_107,_108){if(el){this.init(el,_106,_107,_108);}};Ext.lib.AnimBase.prototype={toString:function(){var el=this.getEl();var id=el.id||el.tagName;return("Anim "+id);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(attr,_10c,end){return this.method(this.currentFrame,_10c,end-_10c,this.totalFrames);},setAttribute:function(attr,val,unit){if(this.patterns.noNegatives.test(attr)){val=(val>0)?val:0;}Ext.fly(this.getEl(),"_anim").setStyle(attr,val+unit);},getAttribute:function(attr){var el=this.getEl();var val=fly(el).getStyle(attr);if(val!=="auto"&&!this.patterns.offsetUnit.test(val)){return parseFloat(val);}var a=this.patterns.offsetAttribute.exec(attr)||[];var pos=!!(a[3]);var box=!!(a[2]);if(box||(fly(el).getStyle("position")=="absolute"&&pos)){val=el["offset"+a[0].charAt(0).toUpperCase()+a[0].substr(1)];}else{val=0;}return val;},getDefaultUnit:function(attr){if(this.patterns.defaultUnit.test(attr)){return"px";}return"";},animateX:function(_118,_119){var f=function(){this.onComplete.removeListener(f);if(typeof _118=="function"){_118.call(_119||this,this);}};this.onComplete.addListener(f,this);this.animate();},setRuntimeAttribute:function(attr){var _11c;var end;var _11e=this.attributes;this.runtimeAttributes[attr]={};var _11f=function(prop){return(typeof prop!=="undefined");};if(!_11f(_11e[attr]["to"])&&!_11f(_11e[attr]["by"])){return false;}_11c=(_11f(_11e[attr]["from"]))?_11e[attr]["from"]:this.getAttribute(attr);if(_11f(_11e[attr]["to"])){end=_11e[attr]["to"];}else{if(_11f(_11e[attr]["by"])){if(_11c.constructor==Array){end=[];for(var i=0,len=_11c.length;i0&&isFinite(_14a)){if(_145.currentFrame+_14a>=_146){_14a=_146-(_147+1);}_145.currentFrame+=_14a;}};};Ext.lib.Bezier=new function(){this.getPosition=function(_14b,t){var n=_14b.length;var tmp=[];for(var i=0;i0&&!(_1cf[0]instanceof Array)){_1cf=[_1cf];}else{var tmp=[];for(i=0,len=_1cf.length;i0){this.runtimeAttributes[attr]=this.runtimeAttributes[attr].concat(_1cf);}this.runtimeAttributes[attr][this.runtimeAttributes[attr].length]=end;}else{_1bd.setRuntimeAttribute.call(this,attr);}};var _1d5=function(val,_1d8){var _1d9=Ext.lib.Dom.getXY(this.getEl());val=[val[0]-_1d9[0]+_1d8[0],val[1]-_1d9[1]+_1d8[1]];return val;};var _1d4=function(prop){return(typeof prop!=="undefined");};})();(function(){Ext.lib.Scroll=function(el,_1dc,_1dd,_1de){if(el){Ext.lib.Scroll.superclass.constructor.call(this,el,_1dc,_1dd,_1de);}};Ext.extend(Ext.lib.Scroll,Ext.lib.ColorAnim);var Y=Ext.lib;var _1e0=Y.Scroll.superclass;var _1e1=Y.Scroll.prototype;_1e1.toString=function(){var el=this.getEl();var id=el.id||el.tagName;return("Scroll "+id);};_1e1.doMethod=function(attr,_1e5,end){var val=null;if(attr=="scroll"){val=[this.method(this.currentFrame,_1e5[0],end[0]-_1e5[0],this.totalFrames),this.method(this.currentFrame,_1e5[1],end[1]-_1e5[1],this.totalFrames)];}else{val=_1e0.doMethod.call(this,attr,_1e5,end);}return val;};_1e1.getAttribute=function(attr){var val=null;var el=this.getEl();if(attr=="scroll"){val=[el.scrollLeft,el.scrollTop];}else{val=_1e0.getAttribute.call(this,attr);}return val;};_1e1.setAttribute=function(attr,val,unit){var el=this.getEl();if(attr=="scroll"){el.scrollLeft=val[0];el.scrollTop=val[1];}else{_1e0.setAttribute.call(this,attr,val,unit);}};})();})();