/*
 * ux.ManagedIFrame for ExtJS Library 3.1+
 * Copyright(c) 2008-2009 Active Group, Inc.
 * licensing@theactivegroup.com
 * http://licensing.theactivegroup.com
 */
Ext.namespace("Ext.ux.plugin");Ext.onReady(function(){var a=Ext.util.CSS;if(a){a.getRule(".x-hide-nosize")||a.createStyleSheet(".x-hide-nosize{height:0px!important;width:0px!important;border:none!important;zoom:1;}.x-hide-nosize * {height:0px!important;width:0px!important;border:none!important;zoom:1;}");a.refreshCache()}});(function(){var g=Ext.Element,b=Ext.lib.Anim,a=g.prototype;var f="visibility",d="display",c="hidden",h="none";var e={};e.El={setDisplayed:function(j){var i=this;i.visibilityCls?(i[j!==false?"removeClass":"addClass"](i.visibilityCls)):a.setDisplayed.call(i,j);return i},isDisplayed:function(){return !(this.hasClass(this.visibilityCls)||this.isStyle(d,h))},fixDisplay:function(){var i=this;a.fixDisplay.call(i);i.visibilityCls&&i.removeClass(i.visibilityCls)},isVisible:function(j){var k=this.visible||(!this.isStyle(f,c)&&(this.visibilityCls?!this.hasClass(this.visibilityCls):!this.isStyle(d,h)));if(j!==true||!k){return k}var l=this.dom.parentNode,i=/^body/i;while(l&&!i.test(l.tagName)){if(!Ext.fly(l,"_isVisible").isVisible()){return false}l=l.parentNode}return true},isStyle:a.isStyle||function(i,j){return this.getStyle(i)==j}};Ext.override(g.Flyweight,e.El);Ext.ux.plugin.VisibilityMode=function(j){Ext.apply(this,j||{});var i=Ext.util.CSS;if(i&&!Ext.isIE&&this.fixMaximizedWindow!==false&&!Ext.ux.plugin.VisibilityMode.MaxWinFixed){i.updateRule(".x-window-maximized-ct","overflow","");Ext.ux.plugin.VisibilityMode.MaxWinFixed=true}};Ext.extend(Ext.ux.plugin.VisibilityMode,Object,{bubble:true,fixMaximizedWindow:true,elements:null,visibilityCls:"x-hide-nosize",hideMode:"nosize",ptype:"uxvismode",init:function(m){var j=this.hideMode||m.hideMode,l=this,i=Ext.Container.prototype.bubble,k=function(){var p=[this.collapseEl,this.actionMode].concat(l.elements||[]);Ext.each(p,function(q){l.extend(this[q]||q)},this);var n={visFixed:true,animCollapse:false,animFloat:false,hideMode:j,defaults:this.defaults||{}};n.defaults.hideMode=j;Ext.apply(this,n);Ext.apply(this.initialConfig||{},n)};m.on("render",function(){if(l.bubble!==false&&this.ownerCt){i.call(this.ownerCt,function(){this.visFixed||this.on("afterlayout",k,this,{single:true})})}k.call(this)},m,{single:true})},extend:function(i,j){i&&Ext.each([].concat(i),function(k){if(k&&k.dom){if("visibilityCls" in k){return}Ext.apply(k,e.El);k.visibilityCls=j||this.visibilityCls}},this);return this}});Ext.preg&&Ext.preg("uxvismode",Ext.ux.plugin.VisibilityMode);Ext.provide&&Ext.provide("uxvismode")})();(function(){var G=Ext.Element,n,u=Ext.lib.Dom,aj=Ext.lib.Anim,m=Ext.EventManager,ah=Ext.lib.Event,al=document,t=function(){},an=Object.prototype,ay=an.toString,q="[object HTMLDocument]";if(!Ext.elCache||parseInt(Ext.version.replace(/\./g,""),10)<311){alert("Ext Release "+Ext.version+" is not supported")}Ext._documents={};Ext._documents[Ext.id(document,"_doc")]=Ext.elCache;var Q=u.resolveDocumentCache=function(E,aF){var aD=e(E),aG=Ext.isDocument(aD)?Ext.id(aD):aF,A=Ext._documents[aG]||null,aE,aC;if(!A&&aD&&(aC=aD.parentWindow||aD.defaultView)){if(aE=aC.frameElement){aG=aE.id||aE.name}}return A||Ext._documents[aG]||(aG?Ext._documents[aG]={}:null)},aB=u.clearDocumentCache=function(A){delete Ext._documents[A]};G.addMethods||(G.addMethods=function(A){Ext.apply(G.prototype,A||{})});Ext.removeNode=function(aF){var aE=aF?aF.dom||aF:null;if(aE&&aE.tagName!="BODY"){var aC,aD,A=Q(aE),E;if((aD=A[aE.id])&&(aC=aD.el)){if(aC.dom){Ext.enableNestedListenerRemoval?m.purgeElement(aC.dom,true):m.removeAll(aC.dom)}delete A[aE.id];delete aC.dom;delete aC._context;aC=null}(E=aE.parentElement||aE.parentNode)&&E.removeChild(aE);aE=null}};var f=function(aG,aE){var aF=typeof aG==="function"?aG:function aD(){};var aC=aF._ovl;if(!aC){aC={base:aF};aC[aF.length||0]=aF;aF=function aD(){var aJ=arguments.callee._ovl;var aI=aJ[arguments.length]||aJ.base;return aI&&aI!=arguments.callee?aI.apply(this,arguments):undefined}}var aH=[].concat(aE);for(var E=0,A=aH.length;E<A;++E){aC[aH[E].length]=aH[E]}aF._ovl=aC;var aD=null;return aF};Ext.applyIf(Ext,{overload:f(f,[function(A){return f(null,A)},function(aC,E,A){return aC[E]=f(aC[E],A)}]),isArray:function(A){return !!A&&ay.apply(A)=="[object Array]"},isObject:function(A){return !!A&&typeof A=="object"},isDocument:function(E,A){var aE=E?E.dom||E:null;var aD=aE&&((ay.apply(aE)==q)||(aE&&aE.nodeType==9));if(aD&&A){try{aD=!!aE.location}catch(aC){return false}}return aD},isWindow:function(A){var E=A?A.dom||A:null;return E?!!E.navigator||ay.apply(E)=="[object Window]":false},isIterable:function(A){if(Ext.isArray(A)||A.callee){return true}if(/NodeList|HTMLCollection/.test(ay.call(A))){return true}return((typeof A.nextNode!="undefined"||A.item)&&Ext.isNumber(A.length))},isElement:function(A){return A&&Ext.type(A)=="element"},isEvent:function(A){return ay.apply(A)=="[object Event]"||(Ext.isObject(A)&&!Ext.type(o.constructor)&&(window.event&&A.clientX&&A.clientX==window.event.clientX))},isFunction:function(A){return !!A&&typeof A=="function"},isEventSupported:function(aD,aE){var aC={select:"input",change:"input",submit:"form",reset:"form",load:"img",error:"img",abort:"img"},A={},aF=/^on/i,E=function(aI,aH){var aG=Ext.getDom(aH);return(aG?(Ext.isElement(aG)||Ext.isDocument(aG)?aG.nodeName.toLowerCase():aH.self?"#window":aH||"#object"):aH||"div")+":"+aI};return function(aK,aM){aK=(aK||"").replace(aF,"");var aL,aJ=false;var aH="on"+aK;var aG=(aM?aM:aC[aK])||"div";var aI=E(aK,aG);if(aI in A){return A[aI]}aL=Ext.isString(aG)?al.createElement(aG):aM;aJ=(!!aL&&(aH in aL));aJ||(aJ=window.Event&&!!(String(aK).toUpperCase() in window.Event));if(!aJ&&aL){aL.setAttribute&&aL.setAttribute(aH,"return;");aJ=Ext.isFunction(aL[aH])}A[aI]=aJ;aL=null;return aJ}}()});var am=function(A){return G;return G[(A.tagName||"-").toUpperCase()]||G};var D;function ag(A,E){if(!D){D=new Ext.Element.Flyweight()}D.dom=Ext.getDom(A,null,E);return D}Ext.apply(Ext,{get:G.get=function(aD,aI){if(!aD){return null}var aH=Ext.isDocument(aD);Ext.isDocument(aI)||(aI=al);var aG,aF,E,A=Q(aI);if(typeof aD=="string"){aF=Ext.getDom(aD,null,aI);if(!aF){return null}if(A[aD]&&A[aD].el){aG=A[aD].el;aG.dom=aF}else{aG=G.addToCache(new (am(aF))(aF,null,aI))}return aG}else{if(aH){if(!Ext.isDocument(aD,true)){return false}A=Q(aD);if(A[Ext.id(aD)]&&A[aD.id].el){return A[aD.id].el}var aE=function(){};aE.prototype=G.prototype;var aC=new aE();aC.dom=aD;aC.id=Ext.id(aD,"_doc");aC._isDoc=true;G.addToCache(aC,null,A);A[aC.id].skipGC=true;return aC}else{if(aD instanceof G){if(aD.dom){aD.id=Ext.id(aD.dom)}else{aD.dom=aD.id?Ext.getDom(aD.id,true):null}if(aD.dom){A=Q(aD);(A[aD.id]||(A[aD.id]={data:{},events:{}})).el=aD}return aD}else{if(aD.tagName||Ext.isWindow(aD)){A=Q(aD);E=Ext.id(aD);if(A[E]&&(aG=A[E].el)){aG.dom=aD}else{aG=G.addToCache(new (am(aD))(aD,null,aI),null,A);aD.navigator&&(A[E].skipGC=true)}return aG}else{if(aD.isComposite){return aD}else{if(Ext.isArray(aD)){return Ext.get(aI,aI).select(aD)}}}}}}return null},getDom:function(E,A,aE){var aD=aE||al;if(!E||!aD){return null}if(E.dom){return E.dom}else{if(Ext.isString(E)){var aC=aD.getElementById(E);if(aC&&Ext.isIE&&A){if(E==aC.getAttribute("id")){return aC}else{return null}}return aC}else{return E}}},getBody:function(E){var A=u.getDocument(E)||al;return Ext.get(A.body||A.documentElement)},getDoc:Ext.overload([Ext.getDoc,function(A){return Ext.get(A,A)}])});G.data=function(E,A,aC){E=G.get(E);if(!E){return null}var aD=Q(E)[E.id].data;if(arguments.length==2){return aD[A]}else{return(aD[A]=aC)}};G.addToCache=function(E,aD,A){aD=aD||E.id;var aC=A||Q(E);aC[aD]={el:E,data:{},events:{}};return E};G.NOSIZE=3;var ap={},I=/(-[a-z])/gi,C=function(A,E){return E.charAt(1).toUpperCase()},i=/alpha\(opacity=(.*)\)/i,l=/^\s+|\s+$/g,aw=/marginRight/,y=Ext.isIE?"styleFloat":"cssFloat",aq=al.defaultView,Z="visibilityMode",v=G.DISPLAY,h=G.VISIBILITY,at=G.NOSIZE,J="originalDisplay",aa="padding",N="margin",au="border",c="-left",j="-right",p="-top",ar="-bottom",M="-width",ax=Math,V="opacity",U="visibility",H="display",ae="offsets",x="nosize",ab="hidden",W="none",T="isVisible",w="isClipped",d="overflow",P="overflow-x",O="overflow-y",z="originalClip",L="x-masked",B="x-masked-relative",af={l:au+c+M,r:au+j+M,t:au+p+M,b:au+ar+M},ak={l:aa+c,r:aa+j,t:aa+p,b:aa+ar},r={l:N+c,r:N+j,t:N+p,b:N+ar},F=G.data,az=Ext.getDom,s=Ext.get,ad=Ext.DomHelper,X=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/,aA=Ext.util.CSS,ai=function(E){var A=F(E,J);if(A===undefined){F(E,J,A="")}return A},k=function(E){var A=F(E,Z);if(A===undefined){F(E,Z,A=1)}return A};function ao(A){return ap[A]||(ap[A]=A=="float"?y:A.replace(I,C))}G.addMethods({getDocument:function(){return this._context||(this._context=e(this))},remove:function(E,A){var aC=this.dom;this.isMasked()&&this.unmask();if(aC){Ext.removeNode(aC);delete this._context;delete this.dom}},appendChild:function(A,E){return s(A,E||this.getDocument()).appendTo(this)},appendTo:function(A,E){az(A,false,E||this.getDocument()).appendChild(this.dom);return this},insertBefore:function(A,E){(A=az(A,false,E||this.getDocument())).parentNode.insertBefore(this.dom,A);return this},insertAfter:function(A,E){(A=az(A,false,E||this.getDocument())).parentNode.insertBefore(this.dom,A.nextSibling);return this},insertFirst:function(E,A){E=E||{};if(E.nodeType||E.dom||typeof E=="string"){E=az(E);this.dom.insertBefore(E,this.dom.firstChild);return !A?s(E):E}else{return this.createChild(E,this.dom.firstChild,A)}},replace:function(A,E){A=s(A,E||this.getDocument());this.insertBefore(A);A.remove();return this},replaceWith:function(A,aC){var E=this;if(A.nodeType||A.dom||typeof A=="string"){A=az(A,false,aC||E.getDocument());E.dom.parentNode.insertBefore(A,E.dom)}else{A=ad.insertBefore(E.dom,A)}var aD=Q(E);Ext.removeNode(E.dom);E.id=Ext.id(E.dom=A);G.addToCache(E.isFlyweight?new (am(E.dom))(E.dom,null,aD):E);return E},insertHtml:function(E,aC,A){var aD=ad.insertHtml(E,this.dom,aC);return A?Ext.get(aD,e(aD)):aD},setVisibilityMode:function(A){F(this.dom,Z,A);return this},isVisible:function(){return this.visible||Ext.value(F(this.dom,T),!this.isStyle(U,ab)&&!this.isStyle(H,W))},setVisible:function(aD,A){var aG=this,aE=aG.dom,E,aI,aH,aF;if(typeof A=="string"){E=A==H;aI=A==U;aH=A==ae;aF=A==x;A=false}else{var aC=k(aE);E=aC==v;aI=aC==h;aF=aC==at}if(!A||!aG.anim){if(aF){if(!aD){aG.hideModeStyles={width:aG.getWidth(),height:aG.getHeight()};aG.applyStyles({width:"0px",height:"0px"})}else{aG.applyStyles(aG.hideModeStyles||{width:"auto",height:"auto"})}}else{if(E){aG.setDisplayed(aD)}else{if(aH){if(!aD){aG.hideModeStyles={position:aG.getStyle("position"),top:aG.getStyle("top"),left:aG.getStyle("left")};aG.applyStyles({position:"absolute",top:"-10000px",left:"-10000px"})}else{aG.applyStyles(aG.hideModeStyles||{position:"",top:"",left:""})}}else{aG.fixDisplay();aE.style.visibility=aD?"visible":ab}}}}else{if(aD){aG.setOpacity(0.01);aG.setVisible(true)}aG.anim({opacity:{to:(aD?1:0)}},aG.preanim(arguments,1),null,0.35,"easeIn",function(){if(!aD){aE.style[E?H:U]=(E)?W:ab;Ext.fly(aE).setOpacity(1)}})}F(aE,T,aD);return aG},setDisplayed:function(A){if(typeof A=="boolean"){F(this.dom,T,A);A=A?ai(this.dom):W}this.setStyle(H,A);return this},fixDisplay:function(){var A=this;if(A.isStyle(H,W)){A.setStyle(U,ab);A.setStyle(H,ai(A.dom));if(A.isStyle(H,W)){A.setStyle(H,"block")}}},enableDisplayMode:function(A){this.setVisibilityMode(G.DISPLAY);if(!Ext.isEmpty(A)){F(this.dom,J,A)}return this},scrollIntoView:function(aC,aF){var aK=this.getDocument();var aL=Ext.getDom(aC,null,aK)||Ext.getBody(aK).dom;var aE=this.dom;var aD=this.getOffsetsTo(aL),aP=this.getScroll(),aH=aD[0]+aP.left,aO=aD[1]+aP.top,aM=aO+aE.offsetHeight,E=aH+aE.offsetWidth;var A=aL.clientHeight;var aI=parseInt(aL.scrollTop,10);var aN=parseInt(aL.scrollLeft,10);var aG=aI+A;var aJ=aN+aL.clientWidth;if(aE.offsetHeight>A||aO<aI){aL.scrollTop=aO}else{if(aM>aG){aL.scrollTop=aM-A}}aL.scrollTop=aL.scrollTop;if(aF!==false){if(aE.offsetWidth>aL.clientWidth||aH<aN){aL.scrollLeft=aH}else{if(E>aJ){aL.scrollLeft=E-aL.clientWidth}}aL.scrollLeft=aL.scrollLeft}return this},contains:function(A){try{return !A?false:u.isAncestor(this.dom,A.dom?A.dom:A)}catch(E){return false}},getScroll:function(){var aG=this.dom,aF=this.getDocument(),A=aF.body,aC=aF.documentElement,E,aE,aD;if(Ext.isDocument(aG)||aG==A){if(Ext.isIE&&u.docIsStrict(aF)){E=aC.scrollLeft;aE=aC.scrollTop}else{E=window.pageXOffset;aE=window.pageYOffset}aD={left:E||(A?A.scrollLeft:0),top:aE||(A?A.scrollTop:0)}}else{aD={left:aG.scrollLeft,top:aG.scrollTop}}return aD},getStyle:function(){var A=aq&&aq.getComputedStyle?function E(aI){var aF=!this._isDoc?this.dom:null,aC,aE,aD,aG,aH=Ext.isWebKit,aG;if(!aF||!aF.style){return null}aI=ao(aI);aD=(aC=aF.style[aI])?aC:(aE=aq.getComputedStyle(aF,""))?aE[aI]:null;if(aH&&aw.test(aI)&&aD!="0px"){aG=this.getStyle("display");aF.style.display="inline-block";aD=aq.getComputedStyle(aF,"");aF.style.display=aG}if(aH&&aD=="rgba(0, 0, 0, 0)"){aD="transparent"}return aD}:function E(aG){var aE=!this._isDoc?this.dom:null,aC,aD;if(!aE||!aE.style){return null}if(aG==V){if(aE.style.filter.match){if(aC=aE.style.filter.match(i)){var aF=parseFloat(aC[1]);if(!isNaN(aF)){return aF?aF/100:0}}}return 1}aG=ao(aG);return aE.style[aG]||((aD=aE.currentStyle)?aD[aG]:null)};var E=null;return A}(),setStyle:function(aE,aD){if(this._isDoc||Ext.isDocument(this.dom)){return this}var E,aC,A;if(!Ext.isObject(aE)){E={};E[aE]=aD;aE=E}for(aC in aE){aD=aE[aC];aC==V?this.setOpacity(aD):this.dom.style[ao(aC)]=aD}return this},center:function(A){return this.alignTo(A||this.getDocument(),"c-c")},mask:function(E,aF){var aH=this,aD=aH.dom,aG=Ext.DomHelper,aE="ext-el-mask-msg",A,aI;if(aH.getStyle("position")=="static"){aH.addClass(B)}if((A=F(aD,"maskMsg"))){A.remove()}if((A=F(aD,"mask"))){A.remove()}aI=aG.append(aD,{cls:"ext-el-mask"},true);F(aD,"mask",aI);aH.addClass(L);aI.setDisplayed(true);if(typeof E=="string"){var aC=aG.append(aD,{cls:aE,cn:{tag:"div"}},true);F(aD,"maskMsg",aC);aC.dom.className=aF?aE+" "+aF:aE;aC.dom.firstChild.innerHTML=E;aC.setDisplayed(true);aC.center(aH)}if(Ext.isIE&&!(Ext.isIE7&&Ext.isStrict)&&aH.getStyle("height")=="auto"){aI.setSize(undefined,aH.getHeight())}return aI},unmask:function(){var aC=this,aD=aC.dom,A=F(aD,"mask"),E=F(aD,"maskMsg");if(A){if(E){E.remove();F(aD,"maskMsg",undefined)}A.remove();F(aD,"mask",undefined)}aC.removeClass([L,B])},isMasked:function(){var A=F(this.dom,"mask");return A&&A.isVisible()},getCenterXY:function(){return this.getAlignToXY(this.getDocument(),"c-c")},getAnchorXY:function(aE,aJ,aO){aE=(aE||"tl").toLowerCase();aO=aO||{};var aI=this,aL=this.getDocument(),E=aI.dom==aL.body||aI.dom==aL,aM=aO.width||E?u.getViewWidth(false,aL):aI.getWidth(),aG=aO.height||E?u.getViewHeight(false,aL):aI.getHeight(),aN,A=Math.round,aC=aI.getXY(),aK=aI.getScroll(),aH=E?aK.left:!aJ?aC[0]:0,aF=E?aK.top:!aJ?aC[1]:0,aD={c:[A(aM*0.5),A(aG*0.5)],t:[A(aM*0.5),0],l:[0,A(aG*0.5)],r:[aM,A(aG*0.5)],b:[A(aM*0.5),aG],tl:[0,0],bl:[0,aG],br:[aM,aG],tr:[aM,0]};aN=aD[aE];return[aN[0]+aH,aN[1]+aF]},anchorTo:function(E,aF,aC,A,aH,aI){var aG=this,aE=aG.dom;function aD(){ag(aE).alignTo(E,aF,aC,A);Ext.callback(aI,ag(aE))}Ext.EventManager.onWindowResize(aD,aG);if(!Ext.isEmpty(aH)){Ext.EventManager.on(window,"scroll",aD,aG,{buffer:!isNaN(aH)?aH:50})}aD.call(aG);return aG},getScroll:function(){var aG=this.dom,aF=this.getDocument(),A=aF.body,aC=aF.documentElement,E,aE,aD;if(aG==aF||aG==A){if(Ext.isIE&&u.docIsStrict(aF)){E=aC.scrollLeft;aE=aC.scrollTop}else{E=window.pageXOffset;aE=window.pageYOffset}aD={left:E||(A?A.scrollLeft:0),top:aE||(A?A.scrollTop:0)}}else{aD={left:aG.scrollLeft,top:aG.scrollTop}}return aD},getAlignToXY:function(aD,aP,aQ){var a4;aD=Ext.get(aD,a4=this.getDocument());if(!aD||!aD.dom){throw"Element.getAlignToXY with an element that doesn't exist"}aQ=aQ||[0,0];aP=(aP=="?"?"tl-bl?":(!/-/.test(aP)&&aP!=""?"tl-"+aP:aP||"tl-bl")).toLowerCase();var aZ=this,aW=aZ.dom,a3,a0,aI,aH,aK,aU,aN,aL=u.getViewWidth(false,a4)-10,aV=u.getViewHeight(false,a4)-10,E,aE,aF,aG,aM,aO,aY=a4.documentElement,aJ=a4.body,aT=(aY.scrollLeft||aJ.scrollLeft||0)+5,aS=(aY.scrollTop||aJ.scrollTop||0)+5,aX=false,aC="",A="",aR=aP.match(/^([a-z]+)-([a-z]+)(\?)?$/);if(!aR){throw"Element.getAlignToXY with an invalid alignment "+aP}aC=aR[1];A=aR[2];aX=!!aR[3];a3=aZ.getAnchorXY(aC,true);a0=aD.getAnchorXY(A,false);aI=a0[0]-a3[0]+aQ[0];aH=a0[1]-a3[1]+aQ[1];if(aX){aK=aZ.getWidth();aU=aZ.getHeight();aN=aD.getRegion();E=aC.charAt(0);aE=aC.charAt(aC.length-1);aF=A.charAt(0);aG=A.charAt(A.length-1);aM=((E=="t"&&aF=="b")||(E=="b"&&aF=="t"));aO=((aE=="r"&&aG=="l")||(aE=="l"&&aG=="r"));if(aI+aK>aL+aT){aI=aO?aN.left-aK:aL+aT-aK}if(aI<aT){aI=aO?aN.right:aT}if(aH+aU>aV+aS){aH=aM?aN.top-aU:aV+aS-aU}if(aH<aS){aH=aM?aN.bottom:aS}}return[aI,aH]},adjustForConstraints:function(aC,A,E){return this.getConstrainToXY(A||this.getDocument(),false,E,aC)||aC},getConstrainToXY:function(E,A,aC,aE){var aD={top:0,left:0,bottom:0,right:0};return function(aG,aT,aI,aK){var aX=this.getDocument();aG=Ext.get(aG,aX);aI=aI?Ext.applyIf(aI,aD):aD;var aS,aW,aR=0,aQ=0;if(aG.dom==aX.body||aG.dom==aX){aS=u.getViewWidth(false,aX);aW=u.getViewHeight(false,aX)}else{aS=aG.dom.clientWidth;aW=aG.dom.clientHeight;if(!aT){var aP=aG.getXY();aR=aP[0];aQ=aP[1]}}var aO=aG.getScroll();aR+=aI.left+aO.left;aQ+=aI.top+aO.top;aS-=aI.right;aW-=aI.bottom;var aU=aR+aS;var aF=aQ+aW;var aH=aK||(!aT?this.getXY():[this.getLeft(true),this.getTop(true)]);var aM=aH[0],aL=aH[1];var aN=this.dom.offsetWidth,aV=this.dom.offsetHeight;var aJ=false;if((aM+aN)>aU){aM=aU-aN;aJ=true}if((aL+aV)>aF){aL=aF-aV;aJ=true}if(aM<aR){aM=aR;aJ=true}if(aL<aQ){aL=aQ;aJ=true}return aJ?[aM,aL]:false}}(),getCenterXY:function(){return this.getAlignToXY(Ext.getBody(this.getDocument()),"c-c")},center:function(A){return this.alignTo(A||Ext.getBody(this.getDocument()),"c-c")},findParent:function(aH,aG,E){var aE=this.dom,aD=this.getDocument(),A=aD.body,aF=0,aC;if(Ext.isGecko&&ay.call(aE)=="[object XULElement]"){return null}aG=aG||50;if(isNaN(aG)){aC=Ext.getDom(aG,null,aD);aG=Number.MAX_VALUE}while(aE&&aE.nodeType==1&&aF<aG&&aE!=A&&aE!=aC){if(Ext.DomQuery.is(aE,aH)){return E?Ext.get(aE,aD):aE}aF++;aE=aE.parentNode}return null},clip:function(){var A=this,E=A.dom;if(!F(E,w)){F(E,w,true);F(E,z,{o:A.getStyle(d),x:A.getStyle(P),y:A.getStyle(O)});A.setStyle(d,ab);A.setStyle(P,ab);A.setStyle(O,ab)}return A},unclip:function(){var A=this,aC=A.dom;if(F(aC,w)){F(aC,w,false);var E=F(aC,z);if(E.o){A.setStyle(d,E.o)}if(E.x){A.setStyle(P,E.x)}if(E.y){A.setStyle(O,E.y)}}return A},getViewSize:function(){var aC=this.getDocument(),aD=this.dom,A=(aD==aC||aD==aC.body);if(A){var E=Ext.lib.Dom;return{width:E.getViewWidth(),height:E.getViewHeight()}}else{return{width:aD.clientWidth,height:aD.clientHeight}}},getStyleSize:function(){var aE=this,A,aD,aG=this.getDocument(),aH=this.dom,E=(aH==aG||aH==aG.body),aC=aH.style;if(E){var aF=Ext.lib.Dom;return{width:aF.getViewWidth(),height:aF.getViewHeight()}}if(aC.width&&aC.width!="auto"){A=parseFloat(aC.width);if(aE.isBorderBox()){A-=aE.getFrameWidth("lr")}}if(aC.height&&aC.height!="auto"){aD=parseFloat(aC.height);if(aE.isBorderBox()){aD-=aE.getFrameWidth("tb")}}return{width:A||aE.getWidth(true),height:aD||aE.getHeight(true)}}});Ext.isDefined(G.collectorThreadId)&&clearInterval(G.collectorThreadId);function ac(){if(!Ext.enableGarbageCollector){clearInterval(G.collectorThreadId)}else{var A,aD,aF,aE,aC=Ext.elCache;for(A in aC){aE=aC[A];if(aE.skipGC){continue}aD=aE.el;aF=aD.dom;if(!aF||!aF.parentNode||(!aF.offsetParent&&!al.getElementById(A))){if(Ext.enableListenerCollection){Ext.EventManager.removeAll(aF)}delete aC[A]}}if(Ext.isIE){var E={};for(A in aC){E[A]=aC[A]}Ext.elCache=Ext._documents[Ext.id(document)]=E;E=null}}}if(Ext.enableGarbageCollector){G.collectorThreadId=setInterval(ac,30000)}Ext.apply(u,{getDocument:function(aC,aD){var aE=null;try{aE=Ext.getDom(aC,null,null)}catch(E){}var A=Ext.isDocument(aE);if(A){if(aD){return Ext.isDocument(aE,aD)?aE:null}return aE}return aE?aE.ownerDocument||aE.document:null},docIsStrict:function(A){return(Ext.isDocument(A)?A:this.getDocument(A)).compatMode=="CSS1Compat"},getViewWidth:Ext.overload([u.getViewWidth||function(A){},function(){return this.getViewWidth(false)},function(A,E){return A?this.getDocumentWidth(E):this.getViewportWidth(E)}]),getViewHeight:Ext.overload([u.getViewHeight||function(A){},function(){return this.getViewHeight(false)},function(A,E){return A?this.getDocumentHeight(E):this.getViewportHeight(E)}]),getDocumentHeight:Ext.overload([u.getDocumentHeight||t,function(A){if(A=this.getDocument(A)){return Math.max(!this.docIsStrict(A)?A.body.scrollHeight:A.documentElement.scrollHeight,this.getViewportHeight(A))}return undefined}]),getDocumentWidth:Ext.overload([u.getDocumentWidth||t,function(A){if(A=this.getDocument(A)){return Math.max(!this.docIsStrict(A)?A.body.scrollWidth:A.documentElement.scrollWidth,this.getViewportWidth(A))}return undefined}]),getViewportHeight:Ext.overload([u.getViewportHeight||t,function(A){if(A=this.getDocument(A)){if(Ext.isIE){return this.docIsStrict(A)?A.documentElement.clientHeight:A.body.clientHeight}else{return A.defaultView.innerHeight}}return undefined}]),getViewportWidth:Ext.overload([u.getViewportWidth||t,function(A){if(A=this.getDocument(A)){return !this.docIsStrict(A)&&!Ext.isOpera?A.body.clientWidth:Ext.isIE?A.documentElement.clientWidth:A.defaultView.innerWidth}return undefined}]),getXY:Ext.overload([u.getXY||t,function(A,aD){A=Ext.getDom(A,null,aD);var aC=this.getDocument(A),E=aC?(aC.body||aC.documentElement):null;if(!A||!E||A==E){return[0,0]}return this.getXY(A)}])});var e=u.getDocument,K=G._flyweights;Ext.fly=G.fly=function(aC,A,aD){var E=null;A=A||"_global";if(aC=Ext.getDom(aC,null,aD)){(E=K[A]=(K[A]||new G.Flyweight())).dom=aC;Ext.isDocument(aC)&&(E._isDoc=true)}return E};var av=function(){};av.prototype=G.prototype;G.Flyweight=function(A){this.dom=A};G.Flyweight.prototype=new av();G.Flyweight.prototype.isFlyweight=true;function b(aC,aE,aH,aD,E,aJ){aC=Ext.getDom(aC);if(!aC){return}var A=Ext.id(aC),aI=(Q(aC)[A]||{}).events||{},aF;aF=ah.on(aC,aE,E);aI[aE]=aI[aE]||[];aI[aE].push([aH,E,aJ,aF,aD]);if(aC.addEventListener&&aE=="mousewheel"){var aG=["DOMMouseScroll",E,false];aC.addEventListener.apply(aC,aG);Ext.EventManager.addListener(window,"beforeunload",function(){aC.removeEventListener.apply(aC,aG)})}if(aE=="mousedown"&&Ext.isDocument(aC)){Ext.EventManager.stoppedMouseDownEvent.addListener(E)}}function g(A,E){return function(){var aC=Ext.toArray(arguments);if(E.target==Ext.EventObject.setEvent(aC[0]).target){A.apply(this,aC)}}}function Y(E,aC,A){return function(aD){A.delay(aC.buffer,E,null,[new Ext.EventObjectImpl(aD)])}}function S(aE,aD,A,aC,E){return function(aF){Ext.EventManager.removeListener(aD,A,aC,E);aE(aF)}}function a(E,aC,A){return function(aE){var aD=new Ext.util.DelayedTask(E);(A.tasks||(A.tasks=[])).push(aD);aD.delay(aC.delay||10,E,null,[new Ext.EventObjectImpl(aE)])}}function R(aF,aE,A,aH,aI){var E=!Ext.isObject(A)?{}:A,aC=Ext.getDom(aF),aD;aH=aH||E.fn;aI=aI||E.scope;if(!aC){throw'Error listening for "'+aE+'". Element "'+aF+"\" doesn't exist."}function aG(aK){if(!window.Ext){return}aK=Ext.EventObject.setEvent(aK);var aJ;if(E.delegate){if(!(aJ=aK.getTarget(E.delegate,aC))){return}}else{aJ=aK.target}if(E.stopEvent){aK.stopEvent()}if(E.preventDefault){aK.preventDefault()}if(E.stopPropagation){aK.stopPropagation()}if(E.normalized){aK=aK.browserEvent}aH.call(aI||aC,aK,aJ,E)}if(E.target){aG=g(aG,E)}if(E.delay){aG=a(aG,E,aH)}if(E.single){aG=S(aG,aC,aE,aH,aI)}if(E.buffer){aD=new Ext.util.DelayedTask(aG);aG=Y(aG,E,aD)}b(aC,aE,aH,aD,aG,aI);return aG}Ext.apply(m,{addListener:m.on=function(aC,A,aE,aD,E){if(Ext.isObject(A)){var aH=A,aF,aG;for(aF in aH){aG=aH[aF];if(!X.test(aF)){if(Ext.isFunction(aG)){R(aC,aF,aH,aG,aH.scope)}else{R(aC,aF,aG)}}}}else{R(aC,A,E,aE,aD)}},removeListener:m.un=function(aF,aG,aK,aM){var E=Ext.getDom(aF);E&&Ext.get(E);var aL=E?Q(E):{},aI=E&&((aL[E.id]||{events:{}}).events)[aG]||[],A,aE,aC,aD,aH,aJ;for(aE=0,aH=aI.length;aE<aH;aE++){if(Ext.isArray(aJ=aI[aE])&&aJ[0]==aK&&(!aM||aJ[2]==aM)){aJ[4]&&aJ[4].cancel();aD=aK.tasks&&aK.tasks.length;if(aD){while(aD--){aK.tasks[aD].cancel()}delete aK.tasks}A=aJ[1];ah.un(E,aG,ah.extAdapter?aJ[3]:A);if(A&&aG=="mousewheel"&&E.addEventListener){E.removeEventListener("DOMMouseScroll",A,false)}if(A&&aG=="mousedown"&&Ext.isDocument(E)){Ext.EventManager.stoppedMouseDownEvent.removeListener(A)}aI.splice(aE,1);if(aI.length===0){delete aL[E.id].events[aG]}for(aD in aL[E.id].events){return false}aL[E.id].events={};return false}}},removeAll:function(aC){if(!(aC=Ext.getDom(aC))){return}var E=aC.id,aK=Q(aC)||{},aL=aK[E]||{},aJ=aL.events||{},aG,aF,aH,aD,aI,aE,A;for(aD in aJ){if(aJ.hasOwnProperty(aD)){aG=aJ[aD];for(aF=0,aH=aG.length;aF<aH;aF++){aI=aG[aF];aI[4]&&aI[4].cancel();if(aI[0].tasks&&(aE=aI[0].tasks.length)){while(aE--){aI[0].tasks[aE].cancel()}delete aI.tasks}A=aI[1];ah.un(aC,aD,ah.extAdapter?aI[3]:A);if(A&&aC.addEventListener&&aD=="mousewheel"){aC.removeEventListener("DOMMouseScroll",A,false)}if(A&&Ext.isDocument(aC)&&aD=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.removeListener(A)}}}}aK[E]&&(aK[E].events={})},getListeners:function(aC,E){aC=Ext.getDom(aC);if(!aC){return}var aE=(Ext.get(aC)||{}).id,A=Q(aC),aD=(A[aE]||{}).events||{};return aD[E]||null},purgeElement:function(aC,A,aE){aC=Ext.getDom(aC);var E=aC.id,aH=Q(aC),aI=(aH[E]||{}).events||{},aD,aG,aF;if(aE){if(aI.hasOwnProperty(aE)){aG=aI[aE];for(aD=0,aF=aG.length;aD<aF;aD++){m.removeListener(aC,aE,aG[aD][0])}}}else{m.removeAll(aC)}if(A&&aC&&aC.childNodes){for(aD=0,aF=aC.childNodes.length;aD<aF;aD++){m.purgeElement(aC.childNodes[aD],A,aE)}}}});ah.getListeners=function(E,A){return Ext.EventManager.getListeners(E,A)};Ext.provide&&Ext.provide("multidom")})();(function(){var El=Ext.Element,ElFrame,ELD=Ext.lib.Dom,EMPTYFN=function(){},OP=Object.prototype,addListener=function(){var handler;if(window.addEventListener){handler=function F(el,eventName,fn,capture){el.addEventListener(eventName,fn,!!capture)}}else{if(window.attachEvent){handler=function F(el,eventName,fn,capture){el.attachEvent("on"+eventName,fn)}}else{handler=function F(){}}}var F=null;return handler}(),removeListener=function(){var handler;if(window.removeEventListener){handler=function F(el,eventName,fn,capture){el.removeEventListener(eventName,fn,(capture))}}else{if(window.detachEvent){handler=function F(el,eventName,fn){el.detachEvent("on"+eventName,fn)}}else{handler=function F(){}}}var F=null;return handler}();if(typeof ELD.getDocument!="function"){alert("MIF 2.1.1 requires multidom support")}if(!Ext.elCache||parseInt(Ext.version.replace(/\./g,""),10)<311){alert("Ext Release "+Ext.version+" is not supported")}Ext.ns("Ext.ux.ManagedIFrame","Ext.ux.plugin");var MIM,MIF=Ext.ux.ManagedIFrame,MIFC;var frameEvents=["documentloaded","domready","focus","blur","resize","scroll","unload","scroll","exception","message","reset"];var reSynthEvents=new RegExp("^("+frameEvents.join("|")+")","i");Ext.ux.ManagedIFrame.Element=Ext.extend(Ext.Element,{constructor:function(element,forceNew,doc){var d=doc||document,elCache=ELD.resolveDocumentCache(d),dom=Ext.getDom(element,false,d);if(!dom||!(/^(iframe|frame)/i).test(dom.tagName)){return null}var id=Ext.id(dom);this.dom=dom;this.id=id;(elCache[id]||(elCache[id]={el:this,events:{},data:{}})).el=this;this.dom.name||(this.dom.name=this.id);if(Ext.isIE){document.frames&&(document.frames[this.dom.name]||(document.frames[this.dom.name]=this.dom))}this.dom.ownerCt=this;MIM.register(this);if(!this._observable){(this._observable=new Ext.util.Observable()).addEvents("documentloaded","domready","exception","resize","message","blur","focus","unload","scroll","reset");this._observable.addEvents("_docready","_docload")}var H=Ext.isIE?"onreadystatechange":"onload";this.dom[H]=this.loadHandler.createDelegate(this);this.dom.onerror=this.loadHandler.createDelegate(this)},destructor:function(){this.dom[Ext.isIE?"onreadystatechange":"onload"]=this.dom.onerror=EMPTYFN;MIM.deRegister(this);this.removeAllListeners();Ext.destroy(this.frameShim,this.DDM);this.hideMask(true);delete this.loadMask;this.reset();this.manager=null;this.dom.ownerCt=null},cleanse:function(forceReclean,deep){if(this.isCleansed&&forceReclean!==true){return this}var d=this.dom,n=d.firstChild,nx;while(d&&n){nx=n.nextSibling;deep&&Ext.fly(n).cleanse(forceReclean,deep);Ext.removeNode(n);n=nx}this.isCleansed=true;return this},src:null,CSS:null,manager:null,disableMessaging:true,domReadyRetries:7500,focusOnLoad:Ext.isIE,eventsFollowFrameLinks:true,remove:function(){this.destructor.apply(this,arguments);ElFrame.superclass.remove.apply(this,arguments)},getDocument:function(){return this.dom?this.dom.ownerDocument:document},submitAsTarget:function(submitCfg){var opt=submitCfg||{},D=this.getDocument(),form=Ext.getDom(opt.form?opt.form.form||opt.form:null,false,D)||Ext.DomHelper.append(D.body,{tag:"form",cls:"x-hidden x-mif-form",encoding:"multipart/form-data"}),formFly=Ext.fly(form,"_dynaForm"),formState={target:form.target||"",method:form.method||"",encoding:form.encoding||"",enctype:form.enctype||"",action:form.action||""},encoding=opt.encoding||form.encoding,method=opt.method||form.method||"POST";formFly.set({target:this.dom.name,method:method,encoding:encoding,action:opt.url||opt.action||form.action});if(method=="POST"||!!opt.enctype){formFly.set({enctype:opt.enctype||form.enctype||encoding})}var hiddens,hd,ps;if(opt.params&&(ps=Ext.isFunction(opt.params)?opt.params():opt.params)){hiddens=[];Ext.iterate(ps=typeof ps=="string"?Ext.urlDecode(ps,false):ps,function(n,v){Ext.fly(hd=D.createElement("input")).set({type:"hidden",name:n,value:v});form.appendChild(hd);hiddens.push(hd)})}opt.callback&&this._observable.addListener("_docready",opt.callback,opt.scope,{single:true});this._frameAction=true;this._targetURI=location.href;this.showMask();(function(){form.submit();hiddens&&Ext.each(hiddens,Ext.removeNode,Ext);if(formFly.hasClass("x-mif-form")){formFly.remove()}else{formFly.set(formState)}delete El._flyweights._dynaForm;formFly=null;this.hideMask(true)}).defer(100,this);return this},resetUrl:(function(){return Ext.isIE&&Ext.isSecure?Ext.SSL_SECURE_URL:"about:blank"})(),setSrc:function(url,discardUrl,callback,scope){var src=url||this.src||this.resetUrl;var O=this._observable;this._unHook();Ext.isFunction(callback)&&O.addListener("_docload",callback,scope||this,{single:true});this.showMask();(discardUrl!==true)&&(this.src=src);var s=this._targetURI=(Ext.isFunction(src)?src()||"":src);try{this._frameAction=true;this.dom.src=s;this.checkDOM()}catch(ex){O.fireEvent.call(O,"exception",this,ex)}return this},setLocation:function(url,discardUrl,callback,scope){var src=url||this.src||this.resetUrl;var O=this._observable;this._unHook();Ext.isFunction(callback)&&O.addListener("_docload",callback,scope||this,{single:true});this.showMask();var s=this._targetURI=(Ext.isFunction(src)?src()||"":src);if(discardUrl!==true){this.src=src}try{this._frameAction=true;this.getWindow().location.replace(s);this.checkDOM()}catch(ex){O.fireEvent.call(O,"exception",this,ex)}return this},reset:function(src,callback,scope){this._unHook();var loadMaskOff=false,s=src,win=this.getWindow(),O=this._observable;if(this.loadMask){loadMaskOff=this.loadMask.disabled;this.loadMask.disabled=false}this.hideMask(true);if(win){this.isReset=true;var cb=callback;O.addListener("_docload",function(frame){if(this.loadMask){this.loadMask.disabled=loadMaskOff}Ext.isFunction(cb)&&(cb=cb.apply(scope||this,arguments));O.fireEvent("reset",this)},this,{single:true});Ext.isFunction(s)&&(s=src());s=this._targetURI=Ext.isEmpty(s,true)?this.resetUrl:s;win.location?(win.location.href=s):O.fireEvent("_docload",this)}return this},scriptRE:/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/gi,update:function(content,loadScripts,callback,scope){loadScripts=loadScripts||this.getUpdater().loadScripts||false;content=Ext.DomHelper.markup(content||"");content=loadScripts===true?content:content.replace(this.scriptRE,"");var doc;if((doc=this.getFrameDocument())&&!!content.length){this._unHook();this.src=null;this.showMask();Ext.isFunction(callback)&&this._observable.addListener("_docload",callback,scope||this,{single:true});this._targetURI=location.href;doc.open();this._frameAction=true;doc.write(content);doc.close();this.checkDOM()}else{this.hideMask(true);Ext.isFunction(callback)&&callback.call(scope,this)}return this},execCommand:function(command,userInterface,value,validate){var doc,assert;if((doc=this.getFrameDocument())&&!!command){try{Ext.isIE&&this.getWindow().focus();assert=validate&&Ext.isFunction(doc.queryCommandEnabled)?doc.queryCommandEnabled(command):true;return assert&&doc.execCommand(command,!!userInterface,value)}catch(eex){return false}}return false},setDesignMode:function(active){var doc;(doc=this.getFrameDocument())&&(doc.designMode=(/on|true/i).test(String(active))?"on":"off")},getUpdater:function(){return this.updateManager||(this.updateManager=new MIF.Updater(this))},getHistory:function(){var h=null;try{h=this.getWindow().history}catch(eh){}return h},get:function(el){var doc=this.getFrameDocument();return doc?Ext.get(el,doc):doc=null},fly:function(el,named){var doc=this.getFrameDocument();return doc?Ext.fly(el,named,doc):null},getDom:function(el){var d;if(!el||!(d=this.getFrameDocument())){return(d=null)}return Ext.getDom(el,d)},select:function(selector,unique){var d;return(d=this.getFrameDocument())?Ext.Element.select(selector,unique,d):d=null},query:function(selector){var d;return(d=this.getFrameDocument())?Ext.DomQuery.select(selector,d):null},removeNode:Ext.removeNode,_renderHook:function(){this._windowContext=null;this.CSS=this.CSS?this.CSS.destroy():null;this._hooked=false;try{if(this.writeScript('(function(){(window.hostMIF = parent.document.getElementById("'+this.id+'").ownerCt)._windowContext='+(Ext.isIE?"window":'{eval:function(s){return new Function("return ("+s+")")();}}')+";})()")){var w,p=this._frameProxy,D=this.getFrameDocument();if(w=this.getWindow()){p||(p=this._frameProxy=this._eventProxy.createDelegate(this));addListener(w,"focus",p);addListener(w,"blur",p);addListener(w,"resize",p);addListener(w,"unload",p);D&&addListener(Ext.isIE?w:D,"scroll",p)}D&&(this.CSS=new Ext.ux.ManagedIFrame.CSS(D))}}catch(ex){}return this.domWritable()},_unHook:function(){if(this._hooked){this._windowContext&&(this._windowContext.hostMIF=null);this._windowContext=null;var w,p=this._frameProxy;if(p&&this.domWritable()&&(w=this.getWindow())){removeListener(w,"focus",p);removeListener(w,"blur",p);removeListener(w,"resize",p);removeListener(w,"unload",p);removeListener(Ext.isIE?w:this.getFrameDocument(),"scroll",p)}}ELD.clearDocumentCache&&ELD.clearDocumentCache(this.id);this.CSS=this.CSS?this.CSS.destroy():null;this.domFired=this._frameAction=this.domReady=this._hooked=false},_windowContext:null,getFrameDocument:function(){var win=this.getWindow(),doc=null;try{doc=(Ext.isIE&&win?win.document:null)||this.dom.contentDocument||window.frames[this.dom.name].document||null}catch(gdEx){ELD.clearDocumentCache&&ELD.clearDocumentCache(this.id);return false}doc=(doc&&Ext.isFunction(ELD.getDocument))?ELD.getDocument(doc,true):doc;return doc},getDoc:function(){var D=this.getFrameDocument();return Ext.get(D,D)},getBody:function(){var d;return(d=this.getFrameDocument())?this.get(d.body||d.documentElement):null},getDocumentURI:function(){var URI,d;try{URI=this.src&&(d=this.getFrameDocument())?d.location.href:null}catch(ex){}return URI||(Ext.isFunction(this.src)?this.src():this.src)},getWindowURI:function(){var URI,w;try{URI=(w=this.getWindow())?w.location.href:null}catch(ex){}return URI||(Ext.isFunction(this.src)?this.src():this.src)},getWindow:function(){var dom=this.dom,win=null;try{win=dom.contentWindow||window.frames[dom.name]||null}catch(gwEx){}return win},scrollChildIntoView:function(child,container,hscroll){this.fly(child,"_scrollChildIntoView").scrollIntoView(this.getDom(container)||this.getBody().dom,hscroll);return this},print:function(){try{var win;if(win=this.getWindow()){Ext.isIE&&win.focus();win.print()}}catch(ex){throw new MIF.Error("printexception",ex.description||ex.message||ex)}return this},domWritable:function(){return !!Ext.isDocument(this.getFrameDocument(),true)&&!!this._windowContext},execScript:function(block,useDOM){try{if(this.domWritable()){if(useDOM){this.writeScript(block)}else{return this._windowContext.eval(block)}}else{throw new MIF.Error("execscript-secure-context")}}catch(ex){this._observable.fireEvent.call(this._observable,"exception",this,ex);return false}return true},writeScript:function(block,attributes){attributes=Ext.apply({},attributes||{},{type:"text/javascript",text:block});try{var head,script,doc=this.getFrameDocument();if(doc&&typeof doc.getElementsByTagName!="undefined"){if(!(head=doc.getElementsByTagName("head")[0])){head=doc.createElement("head");doc.getElementsByTagName("html")[0].appendChild(head)}if(head&&(script=doc.createElement("script"))){for(var attrib in attributes){if(attributes.hasOwnProperty(attrib)&&attrib in script){script[attrib]=attributes[attrib]}}return !!head.appendChild(script)}}}catch(ex){this._observable.fireEvent.call(this._observable,"exception",this,ex)}finally{script=head=null}return false},loadFunction:function(fn,useDOM,invokeIt){var name=fn.name||fn;var fnSrc=fn.fn||window[fn];name&&fnSrc&&this.execScript(name+"="+fnSrc,useDOM);invokeIt&&this.execScript(name+"()")},loadHandler:function(e,target){var rstatus=(this.dom||{}).readyState||(e||{}).type;if(this.eventsFollowFrameLinks||this._frameAction||this.isReset){switch(rstatus){case"domready":case"DOMFrameContentLoaded":case"domfail":this._onDocReady(rstatus);break;case"load":case"complete":this._onDocLoaded(rstatus);break;case"error":this._observable.fireEvent.apply(this._observable,["exception",this].concat(arguments));break;default:}this.frameState=rstatus}},_onDocReady:function(eventName){var w,obv=this._observable,D;if(!this.isReset&&this.focusOnLoad&&(w=this.getWindow())){w.focus()}obv.fireEvent("_docready",this);(D=this.getDoc())&&(D.isReady=true);if(!this.domFired&&(this._hooked=this._renderHook())){this.domFired=true;this.isReset||obv.fireEvent.call(obv,"domready",this)}this.domReady=true;this.hideMask()},_onDocLoaded:function(eventName){var obv=this._observable,w;this.domReady||this._onDocReady("domready");obv.fireEvent("_docload",this);this.isReset||obv.fireEvent("documentloaded",this);this.hideMask(true);this._frameAction=this.isReset=false},checkDOM:function(win){if(Ext.isGecko){return}var n=0,frame=this,domReady=false,b,l,d,max=this.domReadyRetries||2500,polling=false,startLocation=(this.getFrameDocument()||{location:{}}).location.href;(function(){d=frame.getFrameDocument()||{location:{}};polling=(d.location.href!==startLocation||d.location.href===frame._targetURI);if(frame.domReady){return}domReady=polling&&((b=frame.getBody())&&!!(b.dom.innerHTML||"").length)||false;if(d.location.href&&!domReady&&(++n<max)){setTimeout(arguments.callee,2);return}frame.loadHandler({type:domReady?"domready":"domfail"})})()},filterEventOptionsRe:/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/,addListener:function(eventName,fn,scope,options){if(typeof eventName=="object"){var o=eventName;for(var e in o){if(this.filterEventOptionsRe.test(e)){continue}if(typeof o[e]=="function"){this.addListener(e,o[e],o.scope,o)}else{this.addListener(e,o[e].fn,o[e].scope,o[e])}}return}if(reSynthEvents.test(eventName)){var O=this._observable;if(O){O.events[eventName]||(O.addEvents(eventName));O.addListener.call(O,eventName,fn,scope||this,options)}}else{ElFrame.superclass.addListener.call(this,eventName,fn,scope||this,options)}return this},removeListener:function(eventName,fn,scope){var O=this._observable;if(reSynthEvents.test(eventName)){O&&O.removeListener.call(O,eventName,fn,scope||this,options)}else{ElFrame.superclass.removeListener.call(this,eventName,fn,scope||this)}return this},removeAllListeners:function(){Ext.EventManager.removeAll(this.dom);var O=this._observable;O&&O.purgeListeners.call(this._observable);return this},showMask:function(msg,msgCls,maskCls){var lmask=this.loadMask;if(lmask&&!lmask.disabled){this.mask(msg||lmask.msg,msgCls||lmask.msgCls,maskCls||lmask.maskCls,lmask.maskEl)}},hideMask:function(forced){var tlm=this.loadMask||{};if(forced||(tlm.hideOnReady&&this.domReady)){this.unmask()}},mask:function(msg,msgCls,maskCls,maskEl){this._mask&&this.unmask();var p=Ext.get(maskEl)||this.parent(".ux-mif-mask-target")||this.parent();if(p.getStyle("position")=="static"&&!p.select("iframe,frame,object,embed").elements.length){p.addClass("x-masked-relative")}p.addClass("x-masked");this._mask=Ext.DomHelper.append(p,{cls:maskCls||"ux-mif-el-mask"},true);this._mask.setDisplayed(true);this._mask._agent=p;if(typeof msg=="string"){this._maskMsg=Ext.DomHelper.append(p,{cls:msgCls||"ux-mif-el-mask-msg",style:{visibility:"hidden"},cn:{tag:"div",html:msg}},true);this._maskMsg.setVisibilityMode(Ext.Element.VISIBILITY).center(p).setVisible(true)}if(Ext.isIE&&!(Ext.isIE7&&Ext.isStrict)&&this.getStyle("height")=="auto"){this._mask.setSize(undefined,this._mask.getHeight())}return this._mask},unmask:function(){var a;if(this._mask){(a=this._mask._agent)&&a.removeClass(["x-masked-relative","x-masked"]);if(this._maskMsg){this._maskMsg.remove();delete this._maskMsg}this._mask.remove();delete this._mask}},createFrameShim:function(imgUrl,shimCls){this.shimCls=shimCls||this.shimCls||"ux-mif-shim";this.frameShim||(this.frameShim=this.next("."+this.shimCls)||Ext.DomHelper.append(this.dom.parentNode,{tag:"img",src:imgUrl||Ext.BLANK_IMAGE_URL,cls:this.shimCls,galleryimg:"no"},true));this.frameShim&&(this.frameShim.autoBoxAdjust=false);return this.frameShim},toggleShim:function(show){var shim=this.frameShim||this.createFrameShim();var cls=this.shimCls+"-on";!show&&shim.removeClass(cls);show&&!shim.hasClass(cls)&&shim.addClass(cls)},load:function(loadCfg){var um;if(um=this.getUpdater()){if(loadCfg&&loadCfg.renderer){um.setRenderer(loadCfg.renderer);delete loadCfg.renderer}um.update.apply(um,arguments)}return this},_eventProxy:function(e){if(!e){return}e=Ext.EventObject.setEvent(e);var be=e.browserEvent||e,er,args=[e.type,this];if(!be.eventPhase||(be.eventPhase==(be.AT_TARGET||2))){if(e.type=="resize"){var doc=this.getFrameDocument();doc&&(args.push({height:ELD.getDocumentHeight(doc),width:ELD.getDocumentWidth(doc)},{height:ELD.getViewportHeight(doc),width:ELD.getViewportWidth(doc)},{height:ELD.getViewHeight(false,doc),width:ELD.getViewWidth(false,doc)}))}er=this._observable?this._observable.fireEvent.apply(this._observable,args.concat(Array.prototype.slice.call(arguments,0))):null;(e.type=="unload")&&this._unHook()}return er},sendMessage:function(message,tag,origin){},postMessage:function(message,ports,origin){}});ElFrame=Ext.Element.IFRAME=Ext.Element.FRAME=Ext.ux.ManagedIFrame.Element;var fp=ElFrame.prototype;Ext.override(ElFrame,{on:fp.addListener,un:fp.removeListener,getUpdateManager:fp.getUpdater});Ext.ux.ManagedIFrame.ComponentAdapter=function(){};Ext.ux.ManagedIFrame.ComponentAdapter.prototype={version:2.12,defaultSrc:null,unsupportedText:"Inline frames are NOT enabled/supported by your browser.",hideMode:!Ext.isIE&&!!Ext.ux.plugin.VisibilityMode?"nosize":"display",animCollapse:Ext.isIE,animFloat:Ext.isIE,frameConfig:null,focusOnLoad:false,frameEl:null,useShim:false,autoScroll:true,autoLoad:null,getId:function(){return this.id||(this.id="mif-comp-"+(++Ext.Component.AUTO_ID))},stateEvents:["documentloaded"],stateful:false,setAutoScroll:function(auto){var scroll=Ext.value(auto,this.autoScroll===true);this.rendered&&this.getFrame()&&this.frameEl.setOverflow((this.autoScroll=scroll)?"auto":"hidden");return this},getContentTarget:function(){return this.getFrame()},getFrame:function(){if(this.rendered){if(this.frameEl){return this.frameEl}var f=this.items&&this.items.first?this.items.first():null;f&&(this.frameEl=f.frameEl);return this.frameEl}return null},getFrameWindow:function(){return this.getFrame()?this.frameEl.getWindow():null},getFrameDocument:function(){return this.getFrame()?this.frameEl.getFrameDocument():null},getFrameDoc:function(){return this.getFrame()?this.frameEl.getDoc():null},getFrameBody:function(){return this.getFrame()?this.frameEl.getBody():null},resetFrame:function(){this.getFrame()&&this.frameEl.reset.apply(this.frameEl,arguments);return this},submitAsTarget:function(submitCfg){this.getFrame()&&this.frameEl.submitAsTarget.apply(this.frameEl,arguments);return this},load:function(loadCfg){if(loadCfg&&this.getFrame()){var args=arguments;this.resetFrame(null,function(){loadCfg.submitAsTarget?this.submitAsTarget.apply(this,args):this.frameEl.load.apply(this.frameEl,args)},this)}this.autoLoad=loadCfg;return this},doAutoLoad:function(){this.autoLoad&&this.load(typeof this.autoLoad=="object"?this.autoLoad:{url:this.autoLoad})},getUpdater:function(){return this.getFrame()?this.frameEl.getUpdater():null},setSrc:function(url,discardUrl,callback,scope){this.getFrame()&&this.frameEl.setSrc.apply(this.frameEl,arguments);return this},setLocation:function(url,discardUrl,callback,scope){this.getFrame()&&this.frameEl.setLocation.apply(this.frameEl,arguments);return this},getState:function(){var URI=this.getFrame()?this.frameEl.getDocumentURI()||null:null;var state=this.supr().getState.call(this);state=Ext.apply(state||{},{defaultSrc:Ext.isFunction(URI)?URI():URI,autoLoad:this.autoLoad});return state},setMIFEvents:function(){this.addEvents("documentloaded","domready","exception","message","blur","focus","scroll","resize","unload","reset")},sendMessage:function(message,tag,origin){},onAdd:function(C){C.relayTarget&&this.suspendEvents(true)},initRef:function(){if(this.ref){var t=this,levels=this.ref.split("/"),l=levels.length,i;for(i=0;i<l;i++){if(t.ownerCt){t=t.ownerCt}}this.refName=levels[--i];t[this.refName]||(t[this.refName]=this);this.refOwner=t}}};Ext.ux.ManagedIFrame.Component=Ext.extend(Ext.BoxComponent,{ctype:"Ext.ux.ManagedIFrame.Component",initComponent:function(){var C={monitorResize:this.monitorResize||(this.monitorResize=!!this.fitToParent),plugins:(this.plugins||[]).concat(this.hideMode==="nosize"&&Ext.ux.plugin.VisibilityMode?[new Ext.ux.plugin.VisibilityMode({hideMode:"nosize",elements:["bwrap"]})]:[])};MIF.Component.superclass.initComponent.call(Ext.apply(this,Ext.apply(this.initialConfig,C)));this.setMIFEvents()},onRender:function(ct,position){var frCfg=this.frameCfg||this.frameConfig||(this.relayTarget?{name:this.relayTarget.id}:{})||{};var frDOM=frCfg.autoCreate||frCfg;frDOM=Ext.apply({tag:"iframe",id:Ext.id()},frDOM);var el=Ext.getDom(this.el);(el&&el.tagName=="iframe")||(this.autoEl=Ext.apply({name:frDOM.id,frameborder:0},frDOM));MIF.Component.superclass.onRender.apply(this,arguments);if(this.unsupportedText){ct.child("noframes")||ct.createChild({tag:"noframes",html:this.unsupportedText||null})}var frame=this.el;var F;if(F=this.frameEl=(this.el?new MIF.Element(this.el.dom,true):null)){(F.ownerCt=(this.relayTarget||this)).frameEl=F;F.addClass("ux-mif");if(this.loadMask){var mEl=this.loadMask.maskEl;F.loadMask=Ext.apply({disabled:false,hideOnReady:false,msgCls:"ext-el-mask-msg x-mask-loading",maskCls:"ext-el-mask"},{maskEl:F.ownerCt[String(mEl)]||F.parent("."+String(mEl))||F.parent(".ux-mif-mask-target")||mEl},Ext.isString(this.loadMask)?{msg:this.loadMask}:this.loadMask);Ext.get(F.loadMask.maskEl)&&Ext.get(F.loadMask.maskEl).addClass("ux-mif-mask-target")}Ext.apply(F,{disableMessaging:Ext.value(this.disableMessaging,true),focusOnLoad:Ext.value(this.focusOnLoad,Ext.isIE)});F._observable&&(this.relayTarget||this).relayEvents(F._observable,frameEvents.concat(this._msgTagHandlers||[]));delete this.contentEl}},afterRender:function(container){MIF.Component.superclass.afterRender.apply(this,arguments);if(this.fitToParent&&!this.ownerCt){var pos=this.getPosition(),size=(Ext.get(this.fitToParent)||this.getEl().parent()).getViewSize();this.setSize(size.width-pos[0],size.height-pos[1])}this.getEl().setOverflow("hidden");this.setAutoScroll();var F;if(F=this.frameEl){var ownerCt=this.ownerCt;while(ownerCt){ownerCt.on("afterlayout",function(container,layout){Ext.each(["north","south","east","west"],function(region){var reg;if((reg=layout[region])&&reg.split&&reg.split.dd&&!reg._splitTrapped){reg.split.dd.endDrag=reg.split.dd.endDrag.createSequence(MIM.hideShims,MIM);reg.split.on("beforeresize",MIM.showShims,MIM);reg._splitTrapped=MIM._splitTrapped=true}},this)},this,{single:true});ownerCt=ownerCt.ownerCt}if(!!this.ownerCt||this.useShim){this.frameShim=F.createFrameShim()}this.getUpdater().showLoadIndicator=this.showLoadIndicator||false;var resumeEvents=this.relayTarget&&this.ownerCt?this.ownerCt.resumeEvents.createDelegate(this.ownerCt):null;if(this.autoload){this.doAutoLoad()}else{if(this.frameMarkup||this.html){F.update(this.frameMarkup||this.html,true,resumeEvents);delete this.html;delete this.frameMarkup;return}else{if(this.defaultSrc){F.setSrc(this.defaultSrc,false)}else{F.reset(null,resumeEvents);return}}}resumeEvents&&resumeEvents()}},beforeDestroy:function(){var F;if(F=this.getFrame()){F.remove();this.frameEl=this.frameShim=null}this.relayTarget&&(this.relayTarget.frameEl=null);MIF.Component.superclass.beforeDestroy.call(this)}});Ext.override(MIF.Component,MIF.ComponentAdapter.prototype);Ext.reg("mif",MIF.Component);function embed_MIF(config){config||(config={});config.layout="fit";config.items={xtype:"mif",ref:"mifChild",useShim:true,autoScroll:Ext.value(config.autoScroll,this.autoScroll),defaultSrc:Ext.value(config.defaultSrc,this.defaultSrc),frameMarkup:Ext.value(config.html,this.html),loadMask:Ext.value(config.loadMask,this.loadMask),disableMessaging:Ext.value(config.disableMessaging,this.disableMessaging),focusOnLoad:Ext.value(config.focusOnLoad,this.focusOnLoad),frameConfig:Ext.value(config.frameConfig||config.frameCfg,this.frameConfig),relayTarget:this};delete config.html;this.setMIFEvents();return config}Ext.ux.ManagedIFrame.Panel=Ext.extend(Ext.Panel,{ctype:"Ext.ux.ManagedIFrame.Panel",bodyCssClass:"ux-mif-mask-target",constructor:function(config){MIF.Panel.superclass.constructor.call(this,embed_MIF.call(this,config))}});Ext.override(MIF.Panel,MIF.ComponentAdapter.prototype);Ext.reg("iframepanel",MIF.Panel);Ext.ux.ManagedIFrame.Portlet=Ext.extend(Ext.ux.ManagedIFrame.Panel,{ctype:"Ext.ux.ManagedIFrame.Portlet",anchor:"100%",frame:true,collapseEl:"bwrap",collapsible:true,draggable:true,cls:"x-portlet"});Ext.reg("iframeportlet",MIF.Portlet);Ext.ux.ManagedIFrame.Window=Ext.extend(Ext.Window,{ctype:"Ext.ux.ManagedIFrame.Window",bodyCssClass:"ux-mif-mask-target",constructor:function(config){MIF.Window.superclass.constructor.call(this,embed_MIF.call(this,config))}});Ext.override(MIF.Window,MIF.ComponentAdapter.prototype);Ext.reg("iframewindow",MIF.Window);Ext.ux.ManagedIFrame.Updater=Ext.extend(Ext.Updater,{showLoading:function(){this.showLoadIndicator&&this.el&&this.el.mask(this.indicatorText)},hideLoading:function(){this.showLoadIndicator&&this.el&&this.el.unmask()},updateComplete:function(response){MIF.Updater.superclass.updateComplete.apply(this,arguments);this.hideLoading()},processFailure:function(response){MIF.Updater.superclass.processFailure.apply(this,arguments);this.hideLoading()}});var styleCamelRe=/(-[a-z])/gi;var styleCamelFn=function(m,a){return a.charAt(1).toUpperCase()};Ext.ux.ManagedIFrame.CSS=function(hostDocument){var doc;if(hostDocument){doc=hostDocument;return{rules:null,destroy:function(){return doc=null},createStyleSheet:function(cssText,id){var ss;if(!doc){return}var head=doc.getElementsByTagName("head")[0];var rules=doc.createElement("style");rules.setAttribute("type","text/css");Ext.isString(id)&&rules.setAttribute("id",id);if(Ext.isIE){head.appendChild(rules);ss=rules.styleSheet;ss.cssText=cssText}else{try{rules.appendChild(doc.createTextNode(cssText))}catch(e){rules.cssText=cssText}head.appendChild(rules);ss=rules.styleSheet?rules.styleSheet:(rules.sheet||doc.styleSheets[doc.styleSheets.length-1])}this.cacheStyleSheet(ss);return ss},removeStyleSheet:function(id){if(!doc||!id){return}var existing=doc.getElementById(id);if(existing){existing.parentNode.removeChild(existing)}},swapStyleSheet:function(id,url){if(!doc){return}this.removeStyleSheet(id);var ss=doc.createElement("link");ss.setAttribute("rel","stylesheet");ss.setAttribute("type","text/css");Ext.isString(id)&&ss.setAttribute("id",id);ss.setAttribute("href",url);doc.getElementsByTagName("head")[0].appendChild(ss)},refreshCache:function(){return this.getRules(true)},cacheStyleSheet:function(ss,media){this.rules||(this.rules={});try{Ext.each(ss.cssRules||ss.rules||[],function(rule){this.hashRule(rule,ss,media)},this);Ext.each(ss.imports||[],function(sheet){sheet&&this.cacheStyleSheet(sheet,this.resolveMedia([sheet,sheet.parentStyleSheet]))},this)}catch(e){}},hashRule:function(rule,sheet,mediaOverride){var mediaSelector=mediaOverride||this.resolveMedia(rule);if(rule.cssRules||rule.rules){this.cacheStyleSheet(rule,this.resolveMedia([rule,rule.parentRule]))}if(rule.styleSheet){this.cacheStyleSheet(rule.styleSheet,this.resolveMedia([rule,rule.ownerRule,rule.parentStyleSheet]))}rule.selectorText&&Ext.each((mediaSelector||"").split(","),function(media){this.rules[((media?media.trim()+":":"")+rule.selectorText).toLowerCase()]=rule},this)},resolveMedia:function(rule){var media;Ext.each([].concat(rule),function(r){if(r&&r.media&&r.media.length){media=r.media;return false}});return media?(Ext.isIE?String(media):media.mediaText):""},getRules:function(refreshCache){if(!this.rules||refreshCache){this.rules={};if(doc){var ds=doc.styleSheets;for(var i=0,len=ds.length;i<len;i++){try{this.cacheStyleSheet(ds[i])}catch(e){}}}}return this.rules},getRule:function(selector,refreshCache,mediaSelector){var rs=this.getRules(refreshCache);if(Ext.type(mediaSelector)=="string"){mediaSelector=mediaSelector.trim()+":"}else{mediaSelector=""}if(!Ext.isArray(selector)){return rs[(mediaSelector+selector).toLowerCase()]}var select;for(var i=0;i<selector.length;i++){select=(mediaSelector+selector[i]).toLowerCase();if(rs[select]){return rs[select]}}return null},updateRule:function(selector,property,value,mediaSelector){Ext.each((mediaSelector||"").split(","),function(mediaSelect){if(!Ext.isArray(selector)){var rule=this.getRule(selector,false,mediaSelect);if(rule){rule.style[property.replace(camelRe,camelFn)]=value;return true}}else{for(var i=0;i<selector.length;i++){if(this.updateRule(selector[i],property,value,mediaSelect)){return true}}}return false},this)}}}};Ext.ux.ManagedIFrame.Manager=function(){var frames={};var implementation={_DOMFrameReadyHandler:function(e){try{var $frame;if($frame=e.target.ownerCt){$frame.loadHandler.call($frame,e)}}catch(rhEx){}},shimCls:"ux-mif-shim",register:function(frame){frame.manager=this;frames[frame.id]=frames[frame.name]={ref:frame};return frame},deRegister:function(frame){delete frames[frame.id];delete frames[frame.name]},hideShims:function(){var mm=MIF.Manager;mm.shimsApplied&&Ext.select("."+mm.shimCls,true).removeClass(mm.shimCls+"-on");mm.shimsApplied=false},showShims:function(){var mm=MIF.Manager;!mm.shimsApplied&&Ext.select("."+mm.shimCls,true).addClass(mm.shimCls+"-on");mm.shimsApplied=true},getFrameById:function(id){return typeof id=="string"?(frames[id]?frames[id].ref||null:null):null},getFrameByName:function(name){return this.getFrameById(name)},getFrameHash:function(frame){return frames[frame.id]||frames[frame.id]||null},destroy:function(){if(document.addEventListener&&!Ext.isOpera){window.removeEventListener("DOMFrameContentLoaded",this._DOMFrameReadyHandler,false)}}};document.addEventListener&&!Ext.isOpera&&window.addEventListener("DOMFrameContentLoaded",implementation._DOMFrameReadyHandler,false);Ext.EventManager.on(window,"beforeunload",implementation.destroy,implementation);return implementation}();MIM=MIF.Manager;MIM.showDragMask=MIM.showShims;MIM.hideDragMask=MIM.hideShims;var winDD=Ext.Window.DD;Ext.override(winDD,{startDrag:winDD.prototype.startDrag.createInterceptor(MIM.showShims),endDrag:winDD.prototype.endDrag.createInterceptor(MIM.hideShims)});Ext.ux.ManagedIFramePanel=MIF.Panel;Ext.ux.ManagedIFramePortlet=MIF.Portlet;Ext.ux.ManagedIframe=function(el,opt){var args=Array.prototype.slice.call(arguments,0),el=Ext.get(args[0]),config=args[0];if(el&&el.dom&&el.dom.tagName=="IFRAME"){config=args[1]||{}}else{config=args[0]||args[1]||{};el=config.autoCreate?Ext.get(Ext.DomHelper.append(config.autoCreate.parent||Ext.getBody(),Ext.apply({tag:"iframe",frameborder:0,cls:"x-mif",src:(Ext.isIE&&Ext.isSecure)?Ext.SSL_SECURE_URL:"about:blank"},config.autoCreate))):null;if(el&&config.unsupportedText){Ext.DomHelper.append(el.dom.parentNode,{tag:"noframes",html:config.unsupportedText})}}var mif=new MIF.Element(el,true);if(mif){Ext.apply(mif,{disableMessaging:Ext.value(config.disableMessaging,true),loadMask:!!config.loadMask?Ext.apply({msg:"Loading..",msgCls:"x-mask-loading",maskEl:null,hideOnReady:false,disabled:false},config.loadMask):false,_windowContext:null,eventsFollowFrameLinks:Ext.value(config.eventsFollowFrameLinks,true)});config.listeners&&mif.on(config.listeners);if(!!config.html){mif.update(config.html)}else{!!config.src&&mif.setSrc(config.src)}}return mif};Ext.ux.ManagedIFrame.Error=Ext.extend(Ext.Error,{constructor:function(message,arg){this.arg=arg;Ext.Error.call(this,message)},name:"Ext.ux.ManagedIFrame"});Ext.apply(Ext.ux.ManagedIFrame.Error.prototype,{lang:{"documentcontext-remove":"An attempt was made to remove an Element from the wrong document context.","execscript-secure-context":"An attempt was made at script execution within a document context with limited access permissions.",printexception:"An Error was encountered attempting the print the frame contents (document access is likely restricted)."}});Ext.onReady(function(){var CSS=new Ext.ux.ManagedIFrame.CSS(document),rules=[];CSS.getRule(".ux-mif-fill")||(rules.push(".ux-mif-fill{height:100%;width:100%;}"));CSS.getRule(".ux-mif-mask-target")||(rules.push(".ux-mif-mask-target{position:relative;zoom:1;}"));CSS.getRule(".ux-mif-el-mask")||(rules.push(".ux-mif-el-mask {z-index: 100;position: absolute;top:0;left:0;-moz-opacity: 0.5;opacity: .50;*filter: alpha(opacity=50);width: 100%;height: 100%;zoom: 1;} ",".ux-mif-el-mask-msg {z-index: 1;position: absolute;top: 0;left: 0;border:1px solid;background:repeat-x 0 -16px;padding:2px;} ",".ux-mif-el-mask-msg div {padding:5px 10px 5px 10px;border:1px solid;cursor:wait;} "));if(!CSS.getRule(".ux-mif-shim")){rules.push(".ux-mif-shim {z-index:8500;position:absolute;top:0px;left:0px;background:transparent!important;overflow:hidden;display:none;}");rules.push(".ux-mif-shim-on{width:100%;height:100%;display:block;zoom:1;}");rules.push(".ext-ie6 .ux-mif-shim{margin-left:5px;margin-top:3px;}")}!!rules.length&&CSS.createStyleSheet(rules.join(" "),"mifCSS")});Ext.provide&&Ext.provide("mif")})();
