function AdfDhtmlPopupWindow(){this.Init()}AdfObject.createSubclass(AdfDhtmlPopupWindow,AdfAbstractFloatingElement);AdfDhtmlPopupWindow.__CANCELED_EXPANDO="data-afr-iscanceled";AdfDhtmlPopupWindow.__REPLACEDOM_EXPANDO="data-afr-isreplacedom";AdfDhtmlPopupWindow.__POPUPID_EXPANDO="data-afr-popupid";AdfDhtmlPopupWindow.__POPUP_CONTAINER_ID="popup-container";AdfDhtmlPopupWindow.InitClass=function(){this._SCROLL_POSITION_EXPANDO="data-afr-sclptn";this._ANIMATE_WRAPPER_EXPANDO="data-afr-taw"};
AdfDhtmlPopupWindow.prototype.Init=function(){AdfDhtmlPopupWindow.superclass.Init.call(this,AdfDhtmlZOrderManager.FLOATINGTYPE_WINDOW);var a=this.CreateDomElement();this.setElement(a);a.style.display="none";AdfPopupScopingUtils.markAsScopingContainer(a);this._isTouchScreen=AdfAgent.AGENT.getCapabilities()[AdfAgent.CAP_TOUCH_SCREEN]!=AdfAgent.CAP_TOUCH_SCREEN_NONE};AdfDhtmlPopupWindow.prototype.CreateDomElement=function(){AdfAssert.failedInAbstractFunction()};
AdfDhtmlPopupWindow.prototype.ShouldHideOnClip=function(){return!this._isTouchScreen};AdfDhtmlPopupWindow.prototype.NeedsCloseLink=function(){var a=AdfPage.PAGE.getDomWindow();return Boolean(a.AdfSafariMobileAgent&&AdfAgent.AGENT instanceof AdfSafariMobileAgent)};
AdfDhtmlPopupWindow.prototype.show=function(a){AdfAssert.assertObject(a,"Cannot show a popup element without hints");AdfPage.PAGE.__perfTimings(!1,!1,!0,"popup show called");var b=a[AdfDhtmlPopupHints.COMPONENT_CLIENT_ID];this._componentId=b;this.setAlignElement(a[AdfDhtmlPopupHints.ALIGN_ELEMENT]);var d=a[AdfRichPopup.HINT_ALIGN],e=a[AdfDhtmlPopupHints.RESTORE_IMMEDIATE];this._isOpening=!0;var f=a[AdfDhtmlPopupHints.OPENED_HANDLER],g=a[AdfDhtmlPopupHints.OPENED_HANDLER_PARAM];f&&this.addOpenedHandler(f,
g);g=a[AdfDhtmlPopupHints.MOUSEPOSITION];!0===a[AdfDhtmlPopupHints.AUTODISMISS]&&(a[AdfDhtmlPopupHints.AUTODISMISS]=AdfDhtmlPopupHints.AUTODISMISS_ALWAYS);f=a[AdfDhtmlPopupHints.CLOSE_ON_ESCAPE];null==f&&(f=!0);this._closeOnEscape=f;this._launchSourceId=a[AdfRichPopup.HINT_LAUNCH_ID];if(f=a[AdfDhtmlPopupHints.MAX_WIDTH])AdfAssert.assertNumeric(f,"AdfDhtmlPopupHints.MAX_WIDTH"),this._maxWidth=f;var f=AdfPage.PAGE,h=f.findComponent(b);this.getElement().id=AdfRichUIPeer.CreateSubId(b,AdfDhtmlPopupWindow.__POPUP_CONTAINER_ID);
AdfAssert.assert(null!=h,"Cannot show a popup element without a valid component");var k=a[AdfDhtmlPopupHints.FOCUS];null==k&&(k=!0);var l=AdfPage.PAGE.getDomWindow();!1==k&&(l.AdfSafariMobileAgent&&AdfAgent.AGENT instanceof AdfSafariMobileAgent)&&(k=!0);e&&(k=!1);if(k&&(l=f.getActiveDomElement())){var m=l.id;m||(m=l.id=(new Date).getTime());this._restoreFocusId=m}this.SetFocusOnOpen(k);if(k=a[AdfDhtmlPopupHints.CONTENT]){this._maxWidth&&(k.style.maxWidth=this._maxWidth+"px");if(!this.ImmediateZorderRegistration()){var l=
f.getZOrderManager(),m=this.getElement(),n=this.GetFloatingType();switch(this._zorderScope=a[AdfDhtmlPopupHints.ZORDER_SCOPE]){case AdfDhtmlPopupHints.ZORDER_SCOPE_CONTAINED_FORM:var p=AdfDhtmlPopupWindow._getFormElementId(k);l.addElementToLayer(m,n,null,p);break;case AdfDhtmlPopupHints.ZORDER_SCOPE_BODY:l.addElementToLayer(m,n);break;default:p=this.GetFirstFormId(),l.addElementToLayer(m,n,null,p)}}k=a[AdfDhtmlPopupHints.CONTENT]=this.WrapContent(a,k);this.setContent(k)}this.setAccessibleAttrs(a);
l=a[AdfDhtmlPopupHints.ANIMATE];if(f.isAnimationEnabled()&&l!=AdfRichPopup.ANIMATE_FALSE&&(m=this.GetAnimationDurationSkinProperty(a)))if(n=parseInt(f.getLookAndFeel().getSkinProperty(m)),0<n&&(m=this.GetAnimateSkinProperty(),(m?f.getLookAndFeel().getSkinProperty(m):null)!=AdfRichPopup.ANIMATE_FALSE||l==AdfRichPopup.ANIMATE_TRUE))this._animationDuration=n;this.setCloseHandler(a[AdfDhtmlPopupHints.CLOSE_HANDLER]);this.setCloseHandlerParam(a[AdfDhtmlPopupHints.CLOSE_HANDLER_PARAM]);this.getElement().style.visibility=
"hidden";d?this.Position(d):g&&this._positionAtMousePointer(g);this.DoShow(a);f.getAutoDismissalManager().addBehavior(h,a);d=AdfDhtmlPopupWindow._createFocusPagePropertyKey(b);if(e){if(this._sizeTimeout=0,this._size(a),a=f.getPageProperty(d))(a=AdfAgent.AGENT.getElementById(a))&&(AdfDomUtils.isAncestor(k,a)&&AdfFocusUtils.isFocusable(a))&&AdfFocusUtils.focusElement(a)}else this._sizeTimeout=f.scheduleTimer(this,this.createCallback(this._size),a,1,{isSynchronized:!0});f.setPageProperty(d,null);b&&
this.getElement().setAttribute(AdfDhtmlPopupWindow.__POPUPID_EXPANDO,b)};AdfDhtmlPopupWindow._getFormElementId=function(a){AdfAssert.assertDomNode(a);for(var b,d=a.ownerDocument,e=AdfAgent.AGENT;a&&a!=d;){if("FORM"==e.getNodeName(a)){b=a.getAttribute("id");break}a=a.parentNode}return b};AdfDhtmlPopupWindow.prototype.getPopupClientId=function(){return this._componentId};
AdfDhtmlPopupWindow.prototype.OpenedPopup=function(a){if(this._isOpening){delete this._isOpening;this.announceOpeningViaLiveRegion(a);this._registerEventHandlers(a);var b=this._openedHandlers,d=this._openedHandlerParams;delete this._openedHandlers;delete this._openedHandlerParams;if(a){a=this.getContent();if(!b){this.FocusOnFirstElement();AdfPage.PAGE.__perfTimings(!1,!1,!0,"popup opened no handler present: id\x3d"+this._componentId);return}this.RestoreScrollValues(a);this.FocusOnFirstElement()}if(b){for(a=
0;a<b.length;a++)try{(0,b[a])(d[a])}catch(e){AdfLogger.LOGGER.logErrorAsWarning(e,"popup opened handler failed.")}AdfPage.PAGE.__perfTimings(!1,!1,!0,"popup opened handler present")}else AdfPage.PAGE.__perfTimings(!1,!1,!0,"popup opened no handler present: id\x3d"+this._componentId)}};
AdfDhtmlPopupWindow.prototype.WrapContent=function(a,b){var d=AdfPage.PAGE.getDomDocument().createElement("table");this._resizeAnchorId=d.id=AdfRichUIPeer.CreateSubId(this._componentId,""+(new Date).getTime());AdfAgent.AGENT.elementsAdded(d);d.cellPadding=d.cellSpacing=0;d.insertRow(0).insertCell(0).appendChild(b);d.style.position="relative";d.role="presentation";return d};
AdfDhtmlPopupWindow.prototype._registerEventHandlers=function(a){var b=AdfPage.PAGE.getDomDocument(),d=AdfAgent.AGENT,e=this.getContent();if(!a||!a[AdfDhtmlPopupHints.COMPONENT_EVENTS_ENABLED])a=this._keyUpCallback=this.createCallback(this._handleKeyUp),d.addBubbleEventListener(b,"keyup",a),b=this._keyDownCallback=this.createCallback(this._handleKeyDown),d.addBubbleEventListener(e,"keydown",b);e=this._resizeCallback=this.createCallback(this._handleResize);d.addResizeListener(this._resizeAnchorId,
e)};AdfDhtmlPopupWindow.prototype._handleResize=function(){this.autoSize();var a=this.getContent();this.DoResizeNotifyDom(a);null!=this._positionManagerIndex&&AdfPage.PAGE.getPositionManager().validatePosition(this._positionManagerIndex)};
AdfDhtmlPopupWindow.prototype._unregisterEventHandlers=function(){var a=AdfPage.PAGE.getDomDocument(),b=AdfAgent.AGENT,d=this.getContent(),e=this._keyUpCallback;e&&(b.removeBubbleEventListener(a,"keyup",e),delete this._keyUpCallback);if(a=this._keyDownCallback)b.removeBubbleEventListener(d,"keydown",a),delete this._keyDownCallback;this._resizeCallback&&(b.removeResizeListener(this._resizeAnchorId),delete this._resizeAnchorId,delete this._resizeCallback)};
AdfDhtmlPopupWindow.prototype._toggleOffAnimating=function(){delete this._animating};
AdfDhtmlPopupWindow.prototype.hide=function(){if(!this._isHiding){this._isHiding=!0;if(this._animating){this._toggleOffAnimating();var a=this.getElement().parentNode;"true"==a.getAttribute(AdfDhtmlPopupWindow._ANIMATE_WRAPPER_EXPANDO)&&AdfDhtmlPopupWindow._restoreRootPostAnimation(a)}var a=AdfPage.PAGE,b=this.getContent();this.removeAccessibleAttrs();this.SaveScrollValues(b);var b=a.findComponent(this._componentId),d=AdfDhtmlPopupWindow._getInternalPopupId(this,b);a.getAutoDismissalManager().removeBehavior(b,
d);if(!this._isRestoring(b)&&(null==a.getActiveDomElement()||AdfFocusUtils.containsFocus(this.getElement()))&&!AdfFocusUtils.isFocusChangePending())try{this._restoreFocus()}catch(e){AdfLogger.LOGGER.logErrorAsWarning(e,"restoring popup focus")}if(b=this._closeHandler)delete this._closeHandler,b(this._closeHandlerParam),delete this._closeHandlerParam;this.destroy();delete this._isHiding;a.__perfTimings(!1,!1,!0,"popup hidden")}};
AdfDhtmlPopupWindow._getInternalPopupId=function(a,b){if(b){var d=b.getPeer();if(d&&(d=d.getAllPopups(b)))for(popupId in d)if(d[popupId]===a)return popupId}return null};AdfDhtmlPopupWindow.prototype._isRestoring=function(a){var b=!1;a instanceof AdfRichPopup&&a.getAutoCancel()==AdfRichPopup.AUTO_CANCEL_DISABLED&&(a=AdfDhtmlPopupWindow._createFocusPagePropertyKey(a.getClientId()),b=page.getPageProperty(a)?!0:!1);return b};
AdfDhtmlPopupWindow.prototype.cancel=function(a){var b=this._closeHandlerParam.contentDom;b.setAttribute(AdfDhtmlPopupWindow.__CANCELED_EXPANDO,!0);b.setAttribute(AdfDhtmlPopupWindow.__REPLACEDOM_EXPANDO,a?!0:!1);if(a&&AdfFocusUtils.containsFocus(this.getElement())){a=this.getPopupClientId();a=AdfDhtmlPopupWindow._createFocusPagePropertyKey(a);var b=AdfPage.PAGE,d=b.getActiveDomElement();d&&d.id&&b.setPageProperty(a,d.id)}AdfDhtmlPopupWindow.superclass.cancel.call(this)};
AdfDhtmlPopupWindow._createFocusPagePropertyKey=function(a){AdfAssert.assertString(a);return a.split(":").join("$")+"$restoreFocus"};
AdfDhtmlPopupWindow.prototype._restoreFocus=function(){var a=AdfAgent.AGENT,b=AdfPage.PAGE,d={},e,f=this.getElement();if(a.getPlatform()==AdfAgent.IE_PLATFORM&&!(this instanceof AdfDhtmlSimpleFloat)){var g=b.getDomWindow().event;g&&(g=a.getEventTarget(g))&&(AdfFocusUtils.isFocusable(g)&&!AdfDomUtils.isAncestorOrSelf(f,g))&&(e=g)}e||(e=this.getAlignElement());if(this._restoreFocusId&&(!e||!AdfFocusUtils.isFocusable(e,d)))e=a.getDomDocument().getElementById(this._restoreFocusId);if(!e||!AdfFocusUtils.isFocusable(e,
d))e=this.GetLaunchSourceElement();e?a.getPlatform()==AdfAgent.IE_PLATFORM?(a={},a.focusElement=e,a.popupElement=f,b.scheduleTimer(this,this._delayedCheckedFocus,a,10,{isSynchronized:!0})):AdfFocusUtils.isFocusable(e,d)?AdfFocusUtils.focusElement(e):AdfFocusUtils.focusNextTabStop(e):AdfFocusUtils.focusFirstDocumentTabStop()};
AdfDhtmlPopupWindow.prototype._delayedCheckedFocus=function(a){!AdfFocusUtils.isFocusable(AdfPage.PAGE.getActiveDomElement())&&!AdfDomUtils.isAncestorOrSelf(a.popupElement,a.focusElement)&&AdfFocusUtils.focusElement(a.focusElement)};AdfDhtmlPopupWindow.prototype.GetLaunchSourceElement=function(){var a=this._launchSourceId;return a?AdfAgent.AGENT.getElementById(a):null};AdfDhtmlPopupWindow.prototype.setContent=function(a){var b=this.GetContentParent();b.firstChild&&b.removeChild(b.firstChild);b.appendChild(a)};
AdfDhtmlPopupWindow.prototype.setAccessibleAttrs=function(a){};AdfDhtmlPopupWindow.prototype.removeAccessibleAttrs=function(){};AdfDhtmlPopupWindow.prototype.announceOpeningViaLiveRegion=function(a){};AdfDhtmlPopupWindow.prototype.getContent=function(){return this.GetContentParent().firstChild};AdfDhtmlPopupWindow.prototype.GetContentParent=function(){AdfAssert.failedInAbstractFunction()};AdfDhtmlPopupWindow.prototype.setCloseHandler=function(a){this._closeHandler=a};
AdfDhtmlPopupWindow.prototype.setCloseHandlerParam=function(a){this._closeHandlerParam=a};AdfDhtmlPopupWindow.prototype.isVisible=function(){return"none"!=this.getElement().style.display};AdfDhtmlPopupWindow.prototype.DoShow=function(a){AdfDhtmlPopupWindow.superclass.show.call(this);this.raiseToFront()};AdfDhtmlPopupWindow.prototype.CreateShadow=function(a){this.HasShadow()&&(!this._animationDuration||a)&&AdfDhtmlShadowDecorator.createShadowDecorator(this.getShadowAnchor(),this.getElement().parentNode)};
AdfDhtmlPopupWindow.prototype.HasShadow=function(){return!0};AdfDhtmlPopupWindow.prototype.shouldInvertPosition=function(){return!0};
AdfDhtmlPopupWindow.prototype.destroy=function(){var a=AdfAgent.AGENT,b=AdfPage.PAGE;this._unregisterEventHandlers();a.elementsRemoved(this.getElement());this._restoreFocusElement=null;null!=this._sizeTimeout&&(b.cancelTimer(this._sizeTimeout),delete this._sizeTimeout);a=this.getShadowAnchor();AdfDhtmlShadowDecorator.hasShadowDecorator(a)&&AdfDhtmlShadowDecorator.removeShadowDecorator(a);null!=this._positionManagerIndex&&b.getPositionManager().removeElement(this._positionManagerIndex);this.setAlignElement(null);
AdfDhtmlPopupWindow.superclass.destroy.call(this)};AdfDhtmlPopupWindow.prototype.isAnimating=function(){return this._animating||this._isOpening};AdfDhtmlPopupWindow.prototype.GetPositionManagerIndex=function(){return this._positionManagerIndex};
AdfDhtmlPopupWindow.prototype._handleKeyDown=function(a){var b=AdfAgent.AGENT,d=b.getEventTarget(a);if(a.keyCode==AdfKeyStroke.TAB_KEY){var e=this.getContent(),f=AdfFocusUtils.getFirstTabStop(e),g=AdfFocusUtils.getLastTabStop(e);a.shiftKey?d==f&&(AdfFocusUtils.focusPreviousTabStop(d,e),b.eatEvent(a)):g==d&&(AdfFocusUtils.focusNextTabStop(d,e),b.eatEvent(a))}a.keyCode==AdfKeyStroke.F6_KEY&&AdfDomUtils.isAncestorOrSelf(this.getElement(),d)&&this.HandleKeyNavigation(a)};
AdfDhtmlPopupWindow.prototype._handleKeyUp=function(a){var b=AdfAgent.AGENT,d=b.getKeyCode(a),e=b.getEventTarget(a);if(d==AdfKeyStroke.ESC_KEY&&this._closeOnEscape){var f=!1,g=this._launchSourceId;AdfDomUtils.isAncestorOrSelf(this.getElement(),e)?f=!0:g&&(b=b.getElementById(g))&&AdfDomUtils.isAncestorOrSelf(b,e)&&(f=!0);f&&this.HandleEscapeKey(a)}a.ctrlKey&&a.altKey&&d==AdfKeyStroke.W_KEY&&AdfDomUtils.isAncestorOrSelf(this.getElement(),e)&&this.HandleKeyNavigation(a)};
AdfDhtmlPopupWindow.prototype.HandleEscapeKey=function(a){this.cancel();AdfAgent.AGENT.eatEvent(a)};AdfDhtmlPopupWindow.prototype.HandleKeyNavigation=function(a){};
AdfDhtmlPopupWindow.prototype._size=function(a){if(null!=this._sizeTimeout){delete this._sizeTimeout;var b=this.getContent();this.DoResizeNotifyDom(b);var d=this.getElement(),b=d.style,e=this._maxWidth;e?b.width=Math.min(d.offsetWidth,e)+"px":(e=AdfAgent.AGENT,e.getPlatform()==AdfAgent.IE_PLATFORM&&8<e.getVersion()?b.width=d.offsetWidth+1+"px":b.width=d.offsetWidth+"px");null!=this._positionManagerIndex&&AdfPage.PAGE.getPositionManager().validatePosition(this._positionManagerIndex);d=this._animationDuration;
0<d?this.AnimateOpening(d,a):(b.visibility="",this.CreateShadow(),this.OpenedPopup(a))}};AdfDhtmlPopupWindow.prototype.AnimateOpening=function(a,b){this._animating=!0;var d=!1,e=!1,f=this.GetPositionManagerIndex();if(0<=f&&(f=AdfPage.PAGE.getPositionManager().getComputedBehavior(f)))d=f.horizontalBehavior.floatingElementAnchor==AdfDhtmlPositionManager.RIGHT,e=f.verticalBehavior.floatingElementAnchor==AdfDhtmlPositionManager.BOTTOM;this.AnimateUsingWrapper(a,d,e,b)};
AdfDhtmlPopupWindow.prototype.AnimateUsingWrapper=function(a,b,d,e){var f=this.getElement(),g=f.ownerDocument.createElement("div");g.setAttribute(AdfDhtmlPopupWindow._ANIMATE_WRAPPER_EXPANDO,!0);var h=g.style,k=f.style,l=f.offsetHeight,m=f.offsetWidth,n=parseInt(k.left),p=parseInt(k.top);h.left=b?n+m-1+"px":k.left;h.top=d?p+l+1+"px":k.top;h.overflow="hidden";h.position="absolute";h.height="1px";h.width="1px";k.left=k.top="0px";h.zIndex=k.zIndex;this.SaveScrollValues(f);f.parentNode.replaceChild(g,
f);g.appendChild(f);k.visibility="";h={height:l,width:m};d&&(h.top=p);b&&(h.left=n);AdfPage.PAGE.prepareMaskingFrame(f);AdfDhtmlElementAnimator.animate(AdfDhtmlElementAnimator.FRAME_METHOD_CONSTANT_SPEED,a,[{element:g,properties:h}],null,AdfDhtmlPopupWindow.AnimationComplete,{wrapper:g,myself:this,hints:e})};AdfDhtmlPopupWindow._restoreRootPostAnimation=function(a){var b=a.style,d=a.firstChild,e=d.style;e.right=b.right;e.left=b.left;e.top=b.top;a.parentNode.replaceChild(d,a)};
AdfDhtmlPopupWindow.AnimationComplete=function(a){var b=a.wrapper,d=a.myself;a=a.hints;d._animating&&(delete d._animator,AdfDhtmlPopupWindow._restoreRootPostAnimation(b),d.CreateShadow(!0),d.OpenedPopup(a),AdfAgent.AGENT.getPlatform()==AdfAgent.IE_PLATFORM?AdfPage.PAGE.scheduleTimer(d,d.createCallback(d._toggleOffAnimating),null,1,{isSynchronized:!0}):d._toggleOffAnimating())};AdfDhtmlPopupWindow.prototype.GetAnimationDuration=function(){return this._animationDuration};
AdfDhtmlPopupWindow.prototype.GetAnimationDurationSkinProperty=function(a){return null};AdfDhtmlPopupWindow.prototype.GetAnimateSkinProperty=function(){return null};
AdfDhtmlPopupWindow.prototype.autoSize=function(){var a=this._isOpening;if(this.isVisible()&&!a){var a=this.getElement(),b=a.style;b.width="auto";var d=this._maxWidth;b.width=d?Math.min(a.offsetWidth,d)+"px":a.offsetWidth+"px";a=this.getShadowAnchor();AdfDhtmlShadowDecorator.hasShadowDecorator(a)&&(AdfDhtmlShadowDecorator.moveShadowDecorator(a),AdfDhtmlShadowDecorator.showShadowDecorator(a,!0))}};
AdfDhtmlPopupWindow.prototype.FocusOnFirstElement=function(a){var b=this.GetFocusOnOpen();if(a||b){b=this.GetFocusContent();a=AdfFocusUtils.getFirstTabStop(b);if(!a){var d=this.getElement();d!=b&&(a=AdfFocusUtils.getFirstTabStop(d));a||(b.tabIndex=0,a=b)}a&&(b=AdfAgent.AGENT,AdfAgent.IE_PLATFORM==b.getPlatform()&&8==b.getVersion()?AdfFocusUtils.focusElementDelayed(a,1E3):AdfFocusUtils.focusElement(a))}};AdfDhtmlPopupWindow.prototype.GetFocusContent=function(){return this.getElement()};
AdfDhtmlPopupWindow.prototype.Position=function(a){var b=AdfPage.PAGE.getPositionManager(),d=this._positionManagerIndex;d&&(b.removeElement(d),delete this._positionManagerIndex);this._positionManagerIndex=b.addFloatingElement(this,a)};AdfDhtmlPopupWindow.prototype._positionAtMousePointer=function(a){this._positionManagerIndex=AdfPage.PAGE.getPositionManager().addFloatingElementByPosition(this,a)};AdfDhtmlPopupWindow.prototype.DoResizeNotifyDom=function(a){AdfPage.PAGE.doResizeNotifyDom(a,!1)};
AdfDhtmlPopupWindow.prototype.SaveScrollValues=function(a){a=a.getElementsByTagName("*");for(var b=a.length,d=0;d<b;d++){var e=a[d],f=e.scrollTop;0<f&&e.setAttribute(AdfDhtmlPopupWindow._SCROLL_POSITION_EXPANDO,f)}};AdfDhtmlPopupWindow.prototype.RestoreScrollValues=function(a){a=a.getElementsByTagName("*");for(var b=a.length,d=0;d<b;d++){var e=a[d],f=e.getAttribute(AdfDhtmlPopupWindow._SCROLL_POSITION_EXPANDO);f&&0<f&&AdfDomUtils.setScrollTop(e,f)}};
AdfDhtmlPopupWindow.prototype.getLaunchSourceId=function(){return this._launchSourceId};AdfDhtmlPopupWindow.prototype.GetFocusOnOpen=function(){return this._focusHint?!0:!1};AdfDhtmlPopupWindow.prototype.SetFocusOnOpen=function(a){this._focusHint=a};AdfDhtmlPopupWindow.prototype._announce=function(a){var b=AdfPage.PAGE;a=b.getLookAndFeel().getTranslatedString(a);b.announceToAssistiveTechnology(a)};AdfDhtmlPopupWindow.prototype.GetMaxWidth=function(){return this._maxWidth};
AdfDhtmlPopupWindow.isAncestorOrSelf=function(a,b){for(var d=AdfAgent.AGENT;b;){if(a==b)return!0;1==b.nodeType&&b.hasAttribute(AdfDhtmlPopupWindow.__POPUPID_EXPANDO)?(popupId=b.getAttribute(AdfDhtmlPopupWindow.__POPUPID_EXPANDO),b=d.getElementById(popupId)):b=b.parentNode}return!1};AdfDhtmlPopupWindow.prototype.ImmediateZorderRegistration=function(){return!1};AdfDhtmlPopupWindow.prototype.getZorderScope=function(){return this._zorderScope};
AdfDhtmlPopupWindow.prototype.setRestoreFocusId=function(a){this._restoreFocusId=a};AdfDhtmlPopupWindow.prototype.addOpenedHandler=function(a,b){AdfAssert.assertFunction(a,"popup opened handler");AdfAssert.assertObjectOrNull(b,"popup opened handler function params");var d=this._openedHandlers;d||(d=this._openedHandlers=[]);var e=this._openedHandlerParams;e||(e=this._openedHandlerParams=[]);d.push(a);e.push(b)};