/* * Ext JS Library 1.1 Beta 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=window.location.href.toLowerCase().indexOf("https")===0;if(_a&&!_b){try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}}Ext.apply(Ext,{isStrict:_7,isSecure:_10,isReady:false,enableGarbageCollector:true,enableListenerCollection:false,SSL_SECURE_URL:"javascript:false",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 _15={};for(var b in o){var _17=b.split("@");if(_17[1]){var s=_17[0];if(!_15[s]){_15[s]=Ext.select(s);}_15[s].on(_17[1],o[b]);}}_15=null;},id:function(el,_1a){_1a=_1a||"ext-gen";el=Ext.getDom(el);var id=_1a+(++_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,_21){if(typeof sp=="object"){_21=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,_21);return sb;};}(),override:function(_26,_27){if(_27){var p=_26.prototype;for(var _29 in _27){p[_29]=_27[_29];}}},namespace:function(){var a=arguments,o=null,i,j,d,rt;for(i=0;i=0){_3c=_23[_3d];}if(!el||!_3c){return false;}this.doRemove(el,_37,_3c[this.WFN],false);delete _23[_3d][this.WFN];delete _23[_3d][this.FN];_23.splice(_3d,1);return true;},getTarget:function(ev,_3f){ev=ev.browserEvent||ev;var t=ev.target||ev.srcElement;return this.resolveTextNode(t);},resolveTextNode:function(_41){if(Ext.isSafari&&_41&&3==_41.nodeType){return _41.parentNode;}else{return _41;}},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,_53,fn){for(var i=0,len=_23.length;i0);}var _5c=[];for(var i=0,len=_26.length;i0){for(var i=0,len=_6e.length;i0){j=_23.length;while(j){_78=j-1;l=_23[_78];if(l){EU.removeListener(l[EU.EL],l[EU.TYPE],l[EU.FN],_78);}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,_7d,fn,_7f){el.addEventListener(_7d,fn,(_7f));};}else{if(window.attachEvent){return function(el,_81,fn,_83){el.attachEvent("on"+_81,fn);};}else{return function(){};}}}(),doRemove:function(){if(window.removeEventListener){return function(el,_85,fn,_87){el.removeEventListener(_85,fn,(_87));};}else{if(window.detachEvent){return function(el,_89,fn){el.detachEvent("on"+_89,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(_8b,uri,cb,_8e,_8f){if(_8f&&_8f.headers){var hs=_8f.headers;for(var h in hs){if(hs.hasOwnProperty(h)){this.initHeader(h,hs[h],false);}}}return this.asyncRequest(_8b,uri,cb,_8e);},serializeForm:function(_92){if(typeof _92=="string"){_92=(document.getElementById(_92)||document.forms[_92]);}var el,_94,val,_96,_97="",_98=false;for(var i=0;i<_92.elements.length;i++){el=_92.elements[i];_96=_92.elements[i].disabled;_94=_92.elements[i].name;val=_92.elements[i].value;if(!_96&&_94){switch(el.type){case"select-one":case"select-multiple":for(var j=0;j=200&&_b0<300){_b1=this.createResponseObject(o,_ae.argument);if(_ae.success){if(!_ae.scope){_ae.success(_b1);}else{_ae.success.apply(_ae.scope,[_b1]);}}}else{switch(_b0){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:_b1=this.createExceptionObject(o.tId,_ae.argument,(_af?_af:false));if(_ae.failure){if(!_ae.scope){_ae.failure(_b1);}else{_ae.failure.apply(_ae.scope,[_b1]);}}break;default:_b1=this.createResponseObject(o,_ae.argument);if(_ae.failure){if(!_ae.scope){_ae.failure(_b1);}else{_ae.failure.apply(_ae.scope,[_b1]);}}}}this.releaseObject(o);_b1=null;},createResponseObject:function(o,_b3){var obj={};var _b5={};try{var _b6=o.conn.getAllResponseHeaders();var _b7=_b6.split("\n");for(var i=0;i<_b7.length;i++){var _b9=_b7[i].indexOf(":");if(_b9!=-1){_b5[_b7[i].substring(0,_b9)]=_b7[i].substring(_b9+2);}}}catch(e){}obj.tId=o.tId;obj.status=o.conn.status;obj.statusText=o.conn.statusText;obj.getResponseHeader=_b5;obj.getAllResponseHeaders=_b6;obj.responseText=o.conn.responseText;obj.responseXML=o.conn.responseXML;if(typeof _b3!==undefined){obj.argument=_b3;}return obj;},createExceptionObject:function(tId,_bb,_bc){var _bd=0;var _be="communication failure";var _bf=-1;var _c0="transaction aborted";var obj={};obj.tId=tId;if(_bc){obj.status=_bf;obj.statusText=_c0;}else{obj.status=_bd;obj.statusText=_be;}if(_bb){obj.argument=_bb;}return obj;},initHeader:function(_c2,_c3,_c4){var _c5=(_c4)?this.defaultHeaders:this.headers;if(_c5[_c2]===undefined){_c5[_c2]=_c3;}else{_c5[_c2]=_c3+","+_c5[_c2];}if(_c4){this.hasDefaultHeaders=true;}else{this.hasHeaders=true;}},setHeader:function(o){if(this.hasDefaultHeaders){for(var _c7 in this.defaultHeaders){if(this.defaultHeaders.hasOwnProperty(_c7)){o.conn.setRequestHeader(_c7,this.defaultHeaders[_c7]);}}}if(this.hasHeaders){for(var _c7 in this.headers){if(this.headers.hasOwnProperty(_c7)){o.conn.setRequestHeader(_c7,this.headers[_c7]);}}this.headers={};this.hasHeaders=false;}},resetDefaultHeaders:function(){delete this.defaultHeaders;this.defaultHeaders={};this.hasDefaultHeaders=false;},abort:function(o,_c9,_ca){if(this.isCallInProgress(o)){o.conn.abort();window.clearInterval(this.poll[o.tId]);delete this.poll[o.tId];if(_ca){delete this.timeout[o.tId];}this.handleTransactionResponse(o,_c9,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(_d1){return(_d1.left>=this.left&&_d1.right<=this.right&&_d1.top>=this.top&&_d1.bottom<=this.bottom);},getArea:function(){return((this.bottom-this.top)*(this.right-this.left));},intersect:function(_d2){var t=Math.max(this.top,_d2.top);var r=Math.min(this.right,_d2.right);var b=Math.min(this.bottom,_d2.bottom);var l=Math.max(this.left,_d2.left);if(b>=t&&r>=l){return new Ext.lib.Region(t,r,b,l);}else{return null;}},union:function(_d7){var t=Math.min(this.top,_d7.top);var r=Math.max(this.right,_d7.right);var b=Math.max(this.bottom,_d7.bottom);var l=Math.min(this.left,_d7.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,_e9,_ea,_eb,cb,_ed){this.run(el,_e9,_ea,_eb,cb,_ed,Ext.lib.Scroll);},motion:function(el,_ef,_f0,_f1,cb,_f3){this.run(el,_ef,_f0,_f1,cb,_f3,Ext.lib.Motion);},color:function(el,_f5,_f6,_f7,cb,_f9){this.run(el,_f5,_f6,_f7,cb,_f9,Ext.lib.ColorAnim);},run:function(el,_fb,_fc,_fd,cb,_ff,type){type=type||Ext.lib.AnimBase;if(typeof _fd=="string"){_fd=Ext.lib.Easing[_fd];}var anim=new type(el,_fb,_fc,_fd);anim.animateX(function(){Ext.callback(cb,_ff);});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,_105,_106,_107){if(el){this.init(el,_105,_106,_107);}};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,_10b,end){return this.method(this.currentFrame,_10b,end-_10b,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(_117,_118){var f=function(){this.onComplete.removeListener(f);if(typeof _117=="function"){_117.call(_118||this,this);}};this.onComplete.addListener(f,this);this.animate();},setRuntimeAttribute:function(attr){var _11b;var end;var _11d=this.attributes;this.runtimeAttributes[attr]={};var _11e=function(prop){return(typeof prop!=="undefined");};if(!_11e(_11d[attr]["to"])&&!_11e(_11d[attr]["by"])){return false;}_11b=(_11e(_11d[attr]["from"]))?_11d[attr]["from"]:this.getAttribute(attr);if(_11e(_11d[attr]["to"])){end=_11d[attr]["to"];}else{if(_11e(_11d[attr]["by"])){if(_11b.constructor==Array){end=[];for(var i=0,len=_11b.length;i0&&isFinite(_149)){if(_144.currentFrame+_149>=_145){_149=_145-(_146+1);}_144.currentFrame+=_149;}};};Ext.lib.Bezier=new function(){this.getPosition=function(_14a,t){var n=_14a.length;var tmp=[];for(var i=0;i0&&!(_1ce[0]instanceof Array)){_1ce=[_1ce];}else{var tmp=[];for(i=0,len=_1ce.length;i0){this.runtimeAttributes[attr]=this.runtimeAttributes[attr].concat(_1ce);}this.runtimeAttributes[attr][this.runtimeAttributes[attr].length]=end;}else{_1bc.setRuntimeAttribute.call(this,attr);}};var _1d4=function(val,_1d7){var _1d8=Ext.lib.Dom.getXY(this.getEl());val=[val[0]-_1d8[0]+_1d7[0],val[1]-_1d8[1]+_1d7[1]];return val;};var _1d3=function(prop){return(typeof prop!=="undefined");};})();(function(){Ext.lib.Scroll=function(el,_1db,_1dc,_1dd){if(el){Ext.lib.Scroll.superclass.constructor.call(this,el,_1db,_1dc,_1dd);}};Ext.extend(Ext.lib.Scroll,Ext.lib.ColorAnim);var Y=Ext.lib;var _1df=Y.Scroll.superclass;var _1e0=Y.Scroll.prototype;_1e0.toString=function(){var el=this.getEl();var id=el.id||el.tagName;return("Scroll "+id);};_1e0.doMethod=function(attr,_1e4,end){var val=null;if(attr=="scroll"){val=[this.method(this.currentFrame,_1e4[0],end[0]-_1e4[0],this.totalFrames),this.method(this.currentFrame,_1e4[1],end[1]-_1e4[1],this.totalFrames)];}else{val=_1df.doMethod.call(this,attr,_1e4,end);}return val;};_1e0.getAttribute=function(attr){var val=null;var el=this.getEl();if(attr=="scroll"){val=[el.scrollLeft,el.scrollTop];}else{val=_1df.getAttribute.call(this,attr);}return val;};_1e0.setAttribute=function(attr,val,unit){var el=this.getEl();if(attr=="scroll"){el.scrollLeft=val[0];el.scrollTop=val[1];}else{_1df.setAttribute.call(this,attr,val,unit);}};})();})();