/* * 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",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 _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;i10000){clearInterval(iid);}var el=document.getElementById(id);if(el){clearInterval(iid);fn.call(_2f||window,el);}};var iid=setInterval(f,50);},resolveTextNode:function(_34){if(_34&&3==_34.nodeType){return _34.parentNode;}else{return _34;}},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);}};Ext.lib.Ajax=function(){var _37=function(cb){return function(xhr,_3a){if((_3a=="error"||_3a=="timeout")&&cb.failure){cb.failure.call(cb.scope||window,{responseText:xhr.responseText,responseXML:xhr.responseXML,argument:cb.argument});}else{if(cb.success){cb.success.call(cb.scope||window,{responseText:xhr.responseText,responseXML:xhr.responseXML,argument:cb.argument});}}};};return{request:function(_3b,uri,cb,_3e,_3f){var o={type:_3b,url:uri,data:_3e,timeout:cb.timeout,complete:_37(cb)};if(_3f&&_3f.headers){o.beforeSend=function(xhr){var hs=_3f.headers;for(var h in hs){if(hs.hasOwnProperty(h)){xhr.setRequestHeader(h,hs[h]);}}};}jQuery.ajax(o);},formRequest:function(_44,uri,cb,_47,_48,_49){jQuery.ajax({type:Ext.getDom(_44).method||"POST",url:uri,data:jQuery(_44).formSerialize()+(_47?"&"+_47:""),timeout:cb.timeout,complete:_37(cb)});},isCallInProgress:function(_4a){return false;},abort:function(_4b){return false;},serializeForm:function(_4c){return jQuery(_4c.dom||_4c).formSerialize();}};}();Ext.lib.Anim=function(){var _4d=function(cb,_4f){var _50=true;return{stop:function(_51){},isAnimated:function(){return _50;},proxyCallback:function(){_50=false;Ext.callback(cb,_4f);}};};return{scroll:function(el,_53,_54,_55,cb,_57){var _58=_4d(cb,_57);el=Ext.getDom(el);el.scrollLeft=_53.scroll.to[0];el.scrollTop=_53.scroll.to[1];_58.proxyCallback();return _58;},motion:function(el,_5a,_5b,_5c,cb,_5e){return this.run(el,_5a,_5b,_5c,cb,_5e);},color:function(el,_60,_61,_62,cb,_64){var _65=_4d(cb,_64);_65.proxyCallback();return _65;},run:function(el,_67,_68,_69,cb,_6b,_6c){var _6d=_4d(cb,_6b);var o={};for(var k in _67){switch(k){case"points":var by,pts,e=Ext.fly(el,"_animrun");e.position();if(by=_67.points.by){var xy=e.getXY();pts=e.translatePoints([xy[0]+by[0],xy[1]+by[1]]);}else{pts=e.translatePoints(_67.points.to);}o.left=pts.left;o.top=pts.top;if(!parseInt(e.getStyle("left"),10)){e.setLeft(0);}if(!parseInt(e.getStyle("top"),10)){e.setTop(0);}break;case"width":o.width=_67.width.to;break;case"height":o.height=_67.height.to;break;case"opacity":o.opacity=_67.opacity.to;break;default:o[k]=_67[k].to;break;}}jQuery(el).animate(o,_68*1000,undefined,_6d.proxyCallback);return _6d;}};}();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(_78){return(_78.left>=this.left&&_78.right<=this.right&&_78.top>=this.top&&_78.bottom<=this.bottom);},getArea:function(){return((this.bottom-this.top)*(this.right-this.left));},intersect:function(_79){var t=Math.max(this.top,_79.top);var r=Math.min(this.right,_79.right);var b=Math.min(this.bottom,_79.bottom);var l=Math.max(this.left,_79.left);if(b>=t&&r>=l){return new Ext.lib.Region(t,r,b,l);}else{return null;}},union:function(_7e){var t=Math.min(this.top,_7e.top);var r=Math.max(this.right,_7e.right);var b=Math.max(this.bottom,_7e.bottom);var l=Math.min(this.left,_7e.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();if(Ext.isIE){jQuery(window).unload(function(){var p=Function.prototype;delete p.createSequence;delete p.defer;delete p.createDelegate;delete p.createCallback;delete p.createInterceptor;});}})();