/*
* Ext JS Library 1.1 RC 1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
if(typeof jQuery=="undefined"){throw"Unable to load Ext, jQuery not found.";}(function(){var _1;Ext.lib.Dom={getViewWidth:function(_2){return _2?Math.max(jQuery(document).width(),jQuery(window).width()):jQuery(window).width();},getViewHeight:function(_3){return _3?Math.max(jQuery(document).height(),jQuery(window).height()):jQuery(window).height();},isAncestor:function(p,c){p=Ext.getDom(p);c=Ext.getDom(c);if(!p||!c){return false;}if(p.contains&&!Ext.isSafari){return p.contains(c);}else{if(p.compareDocumentPosition){return!!(p.compareDocumentPosition(c)&16);}else{var _6=c.parentNode;while(_6){if(_6==p){return true;}else{if(!_6.tagName||_6.tagName.toUpperCase()=="HTML"){return false;}}_6=_6.parentNode;}return false;}}},getRegion:function(el){return Ext.lib.Region.getRegion(el);},getY:function(el){return this.getXY(el)[1];},getX:function(el){return this.getXY(el)[0];},getXY:function(el){var p,pe,b,_e,bd=document.body;el=Ext.getDom(el);if(el.getBoundingClientRect){b=el.getBoundingClientRect();_e=fly(document).getScroll();return[b.left+_e.left,b.top+_e.top];}var x=0,y=0;p=el;var _12=fly(el).getStyle("position")=="absolute";while(p){x+=p.offsetLeft;y+=p.offsetTop;if(!_12&&fly(p).getStyle("position")=="absolute"){_12=true;}if(Ext.isGecko){pe=fly(p);var bt=parseInt(pe.getStyle("borderTopWidth"),10)||0;var bl=parseInt(pe.getStyle("borderLeftWidth"),10)||0;x+=bl;y+=bt;if(p!=el&&pe.getStyle("overflow")!="visible"){x+=bl;y+=bt;}}p=p.offsetParent;}if(Ext.isSafari&&_12){x-=bd.offsetLeft;y-=bd.offsetTop;}if(Ext.isGecko&&!_12){var dbd=fly(bd);x+=parseInt(dbd.getStyle("borderLeftWidth"),10)||0;y+=parseInt(dbd.getStyle("borderTopWidth"),10)||0;}p=el.offsetParent;while(p&&p!=bd){if(!(Ext.isOpera&&p.tagName!="TR"&&fly(p).getStyle("display")!="inline")){x-=p.scrollLeft;y-=p.scrollTop;}p=p.parentNode;}return[x,y];},setXY:function(el,xy){el=Ext.fly(el,"_setXY");el.position();var pts=el.translatePoints(xy);if(xy[0]!==false){el.dom.style.left=pts.left+"px";}if(xy[1]!==false){el.dom.style.top=pts.top+"px";}},setX:function(el,x){this.setXY(el,[x,false]);},setY:function(el,y){this.setXY(el,[false,y]);}};function fly(el){if(!_1){_1=new Ext.Element.Flyweight();}_1.dom=el;return _1;}Ext.lib.Event={getPageX:function(e){e=e.browserEvent||e;return e.pageX;},getPageY:function(e){e=e.browserEvent||e;return e.pageY;},getXY:function(e){e=e.browserEvent||e;return[e.pageX,e.pageY];},getTarget:function(e){return e.target;},on:function(el,_23,fn,_25,_26){jQuery(el).bind(_23,fn);},un:function(el,_28,fn){jQuery(el).unbind(_28,fn);},purgeElement:function(el){jQuery(el).unbind();},preventDefault:function(e){e=e.browserEvent||e;if(e.preventDefault){e.preventDefault();}else{e.returnValue=false;}},stopPropagation:function(e){e=e.browserEvent||e;if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}},stopEvent:function(e){this.preventDefault(e);this.stopPropagation(e);},onAvailable:function(id,fn,_30){var _31=new Date();var f=function(){if(_31.getElapsed()>10000){clearInterval(iid);}var el=document.getElementById(id);if(el){clearInterval(iid);fn.call(_30||window,el);}};var iid=setInterval(f,50);},resolveTextNode:function(_35){if(_35&&3==_35.nodeType){return _35.parentNode;}else{return _35;}},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 _38=function(cb){return function(xhr,_3b){if((_3b=="error"||_3b=="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(_3c,uri,cb,_3f,_40){var o={type:_3c,url:uri,data:_3f,timeout:cb.timeout,complete:_38(cb)};if(_40){if(_40.xmlData){o.data=_40.xmlData;o.processData=false;o.type="POST";o.contentType="text/xml";}if(_40.headers){o.beforeSend=function(xhr){var hs=_40.headers;for(var h in hs){if(hs.hasOwnProperty(h)){xhr.setRequestHeader(h,hs[h]);}}};}}jQuery.ajax(o);},formRequest:function(_45,uri,cb,_48,_49,_4a){jQuery.ajax({type:Ext.getDom(_45).method||"POST",url:uri,data:jQuery(_45).formSerialize()+(_48?"&"+_48:""),timeout:cb.timeout,complete:_38(cb)});},isCallInProgress:function(_4b){return false;},abort:function(_4c){return false;},serializeForm:function(_4d){return jQuery(_4d.dom||_4d).formSerialize();}};}();Ext.lib.Anim=function(){var _4e=function(cb,_50){var _51=true;return{stop:function(_52){},isAnimated:function(){return _51;},proxyCallback:function(){_51=false;Ext.callback(cb,_50);}};};return{scroll:function(el,_54,_55,_56,cb,_58){var _59=_4e(cb,_58);el=Ext.getDom(el);el.scrollLeft=_54.scroll.to[0];el.scrollTop=_54.scroll.to[1];_59.proxyCallback();return _59;},motion:function(el,_5b,_5c,_5d,cb,_5f){return this.run(el,_5b,_5c,_5d,cb,_5f);},color:function(el,_61,_62,_63,cb,_65){var _66=_4e(cb,_65);_66.proxyCallback();return _66;},run:function(el,_68,_69,_6a,cb,_6c,_6d){var _6e=_4e(cb,_6c);var o={};for(var k in _68){switch(k){case"points":var by,pts,e=Ext.fly(el,"_animrun");e.position();if(by=_68.points.by){var xy=e.getXY();pts=e.translatePoints([xy[0]+by[0],xy[1]+by[1]]);}else{pts=e.translatePoints(_68.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=_68.width.to;break;case"height":o.height=_68.height.to;break;case"opacity":o.opacity=_68.opacity.to;break;default:o[k]=_68[k].to;break;}}jQuery(el).animate(o,_69*1000,undefined,_6e.proxyCallback);return _6e;}};}();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(_79){return(_79.left>=this.left&&_79.right=this.top&&_79.bottom=t&&r>=l){return new Ext.lib.Region(t,r,b,l);}else{return null;}},union:function(_7f){var t=Math.min(this.top,_7f.top);var r=Math.max(this.right,_7f.right);var b=Math.max(this.bottom,_7f.bottom);var l=Math.min(this.left,_7f.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;});}})();