"undefined"==typeof AdfDhtmlCommonFlashPeer&&AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlCommonFlashPeer");
AdfDhtmlCommonFlashPeer.InitSubclass=function(){AdfObject.ensureClassInitialization(AdfDhtmlCommonFlashPeer);AdfRichUIPeer.addComponentEventHandlers(this,AdfComponentEvent.FOCUS_EVENT_TYPE,AdfComponentEvent.BLUR_EVENT_TYPE);AdfDhtmlCommonFlashPeer.isTouchDevice()||AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.MOUSE_DOWN_EVENT_TYPE);AdfRichUIPeer.addSuppressedPPRAttributes(this,AdfDvtComponent.POPUP_STYLE)};AdfDhtmlCommonFlashPeer.NAMING_SEPARATOR=":";
AdfDhtmlCommonFlashPeer.LOAD_XML_INITIAL="initial";AdfDhtmlCommonFlashPeer.IS_FULLY_SCROLLED=1;AdfDhtmlCommonFlashPeer.IS_PARTIALLY_SCROLLED=2;AdfDhtmlCommonFlashPeer.__IS_IN_TABLE_KEY="isInTable";AdfDhtmlCommonFlashPeer.__IS_IN_MASHUP_KEY="isInMashup";AdfDhtmlCommonFlashPeer.setComponentLoaded=function(a,b){var c=AdfPage.PAGE.findComponent(a),d=c.getPeer();d.bComponentLoaded="true"==b;d.IsImageFormatFlash(c)&&(d.IsAutomationMode(c)&&d.FlashClicksUnavailable())&&c.getFlashMovieObj().setAutomation("AdfDhtmlCommonFlashPeer.handleAutomationClick")};
AdfDhtmlCommonFlashPeer.prototype.FlashClicksUnavailable=function(){var a=AdfAgent.getAgent().getPlatform(),b=-1<navigator.userAgent.toLowerCase().indexOf("chrome");return a==AdfAgent.IE_PLATFORM||b};AdfDhtmlCommonFlashPeer.prototype.IsAutomationMode=function(a){return a.getProperty("isAutomation")};
AdfDhtmlCommonFlashPeer.handleAutomationClick=function(a){var b=AdfPage.PAGE.findComponent(a);a=b.getPeer();if(a.IsImageFormatFlash(b)&&a.IsAutomationMode(b)&&a.FlashClicksUnavailable())if(b=b.getFlashMovieObj(),document.createEventObject){var c=document.createEventObject();b.fireEvent("onclick",c)}else document.createEvent&&(c=document.createEvent("MouseEvents"),c.initMouseEvent("click",!0,!0,document.defaultView,1,a._currentScreenX,a._currentScreenY,a._currentClientX,a._currentClientY,!1,!1,!1,
!1,0,null),b.dispatchEvent(c))};AdfDhtmlCommonFlashPeer.prototype.DisplayDataUri=function(a){var b=a.getClientId();a=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(b,"mainDiv"));var b=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(b,"img")),c=Number(a.getAttribute("_urisize")),d=a.firstChild.innerHTML,e=d.indexOf("\x3c!--"),f=d.lastIndexOf("--\x3e"),d=d.substring(e+4,f);AdfDhtmlCommonFlashUtils.isDataURISupported(c)&&(b.src=d);a.style.display="inline"};
AdfDhtmlCommonFlashPeer.prototype.getClientImageFormat=function(a){a||(a=this.getComponent());a=a.getProperty("clientImageFormat");return"ATTACHMENT"==a?AdfDhtmlCommonFlashUtils.isHTML5Supported()?"HTML5":"ATTACHMENT":a};AdfDhtmlCommonFlashPeer.prototype.IsImageFormatFlash=function(a){return!1};AdfDhtmlCommonFlashPeer.prototype.IsImageFormatScreenReader=function(a){return AdfPage.PAGE.isScreenReaderMode()};
AdfDhtmlCommonFlashPeer.prototype.GetReadyState=function(){return this.isScrolledIntoView()?this.bComponentLoaded?AdfUIComponent.STATE_COMPLETE:AdfUIComponent.STATE_LOADING:AdfUIComponent.STATE_COMPLETE};
AdfDhtmlCommonFlashPeer.prototype.isScrolledIntoView=function(a){a=this.getDomElement();if(!this.isVisibleAndDisplayed(a))return AdfLogger.LOGGER.fine("peer for ",this.getDomElement().id,", isScrolledIntoView returns false"),!1;var b=this.GetViewport(a),c=!1;null!=b&&(c=this.IsInViewport(b,a));AdfLogger.LOGGER.fine("peer for ",this.getDomElement().id,", isScrolledIntoView returns ",c);return c};
AdfDhtmlCommonFlashPeer.prototype.GetViewport=function(a){AdfAssert.assertDomNode(a);var b,c,d,e;if("BODY"==a.nodeName)return b=AdfAgent.AGENT.getBrowserViewportScrollTop(),c=AdfAgent.AGENT.getBrowserViewportScrollLeft(),d=AdfAgent.AGENT.getWindowClientWidth(AdfAgent.AGENT.getDomWindow()),e=AdfAgent.AGENT.getWindowClientHeight(AdfAgent.AGENT.getDomWindow()),{top:b,left:c,bottom:b+e,right:c+d};var f=a.parentNode;if(!this.isVisibleAndDisplayed(f))return null;var f=this.GetViewport(f),g=!1;if(null!=
f){var h=0<a.scrollHeight-a.offsetHeight?!0:!1;if(0<a.scrollWidth-a.offsetWidth||h)g=!0}if(g)if(this.IsInViewport(f,a)){var l=AdfAgent.AGENT.getElementPageBounds(a);a=l.top;var g=l.bottom,h=l.left,l=l.right,m=f.top,n=f.bottom,p=f.left,f=f.right;0<p-h?b=p:b=h;0<f-l?c=l:c=f;0<m-a?d=m:d=a;0<n-g?e=g:e=n;f={top:d,left:b,bottom:e,right:c}}else f=null;return f};
AdfDhtmlCommonFlashPeer.prototype.IsInViewport=function(a,b){AdfAssert.assertDomNode(b);if(null==a)return!1;var c=AdfAgent.AGENT.getElementPageBounds(b),d=c.top,e=c.left,f=c.right,g=a.bottom,h=a.left,l=a.right;return!(c.bottom<=a.top||d>=g||e>=l||f<=h)};AdfDhtmlCommonFlashPeer.prototype.isVisibleAndDisplayed=function(a){if(null==a)return!1;var b=AdfAgent.AGENT.getComputedStyle(a);a="hidden"!=b.visibility&&"collapse"!=a.style.visibility;return"none"!=b.display&&a};
AdfDhtmlCommonFlashPeer.GetSwfId=function(a){a=AdfDhtmlCommonFlashPeer.replaceString(a+"_swf",AdfDhtmlCommonFlashPeer.NAMING_SEPARATOR,"_");return a=AdfDhtmlCommonFlashPeer.replaceString(a,AdfRichUIPeer.CreateSubId("",""),"_")};
AdfDhtmlCommonFlashPeer.FindPos=function(a){for(var b=0,c=0;null!=a.offsetParent;)b+=a.offsetLeft,c+=a.offsetTop,null!=a.clientLeft&&(b+=a.clientLeft),null!=a.clientTop&&(c+=a.clientTop),a=a.offsetParent;null!=a.clientLeft&&(b+=a.clientLeft);null!=a.clientTop&&(c+=a.clientTop);return{x:b,y:c}};
AdfDhtmlCommonFlashPeer.convertPopupAlignToConstant=function(a){switch(a){case "afterStart":return AdfRichPopup.ALIGN_AFTER_START;case "afterEnd":return AdfRichPopup.ALIGN_AFTER_END;case "beforeStart":return AdfRichPopup.ALIGN_BEFORE_START;case "beforeEnd":return AdfRichPopup.ALIGN_BEFORE_END;case "endAfter":return AdfRichPopup.ALIGN_END_AFTER;case "endBefore":return AdfRichPopup.ALIGN_END_BEFORE;case "startAfter":return AdfRichPopup.ALIGN_START_AFTER;case "startBefore":return AdfRichPopup.ALIGN_START_BEFORE;
case "overlap":return AdfRichPopup.ALIGN_OVERLAP;default:return null}};AdfDhtmlCommonFlashPeer.prototype.InitDomElement=function(a,b){AdfDhtmlCommonFlashPeer.superclass.InitDomElement.call(this,a,b);AdfDhtmlCommonFlashPeer.checkComponentImageFailAndPPR(a,b);this._checkForHighContrastInBrowser();this.bTransferringFocus=this.bHandlingComponentFocus=!1;("FLASH"==a.getProperty("clientImageFormat")||"flash"==a.getProperty("clientRenderFormat"))&&AdfPage.PAGE.registerLoadingComponent(a)};
AdfDhtmlCommonFlashPeer.prototype._checkForHighContrastInBrowser=function(){if("undefined"!=typeof dvt&&"function"==typeof dvt.Agent&&dvt.Agent.isHighContrast&&!dvt.Agent.isHighContrast()){var a=document.createElement("div");a.style.border="1px solid";a.style.borderColor="red green";a.style.position="absolute";a.style.height="5px";a.style.top="-999px";a.style.backgroundImage="url('"+AdfPage.PAGE.getResourceURL("/afr/blank.gif")+"')";document.body.appendChild(a);var b=window.getComputedStyle(a),c=
b.backgroundImage;(b.borderTopColor==b.borderRightColor||c&&("none"==c||"url (invalid-url:)"==c))&&dvt.Agent.setHighContrast(!0);document.body.removeChild(a)}};AdfDhtmlCommonFlashPeer.prototype.ComponentRemoved=function(a){AdfDhtmlCommonFlashPeer.superclass.ComponentRemoved.call(this,a);this._view&&(this._view.getCtx&&this._view.getCtx())&&this.HideComponentTooltips();("FLASH"==a.getProperty("clientImageFormat")||"flash"==a.getProperty("clientRenderFormat"))&&AdfPage.PAGE.unregisterLoadingComponent(a)};
AdfDhtmlCommonFlashPeer.prototype.HideComponentTooltips=function(){this._view.getCtx().hideTooltips()};AdfDhtmlCommonFlashPeer.isComponentImageCheckNeeded=function(a){return(a=a.getProperty("isFullRender"))&&"true"==a};
AdfDhtmlCommonFlashPeer.checkComponentImageFailAndPPR=function(a,b){if(AdfDhtmlCommonFlashPeer.isComponentImageCheckNeeded(a)&&a&&b){var c=b.getElementsByTagName("img");if(c)for(var d=0;d<c.length;d++)if(AdfDhtmlCommonFlashPeer.checkImageFail(c[d],a)){AdfPage.PAGE.addPartialTargets(a);break}}};AdfDhtmlCommonFlashPeer.checkImageFail=function(a,b){return a&&AdfDhtmlCommonFlashPeer.isImageLoadingFailed(a)?!0:!1};
AdfDhtmlCommonFlashPeer.isImageLoadingFailed=function(a){AdfAssert.assert(a,"Image is null");return!a.complete||void 0!=typeof a.naturalWidth&&0==a.naturalWidth};AdfDhtmlCommonFlashPeer.transferFocusPrev=function(a){AdfAgent.getAgent().getPlatform()!=AdfAgent.IE_PLATFORM&&(a=AdfPage.PAGE.findComponent(a),null!=a&&(a=a.getPeer(),null!=a&&(a.bTransferringFocus=!0,a.HandleComponentBlur(null),a.getDomElement().focus(),a.bTransferringFocus=!1)))};
AdfDhtmlCommonFlashPeer.transferFocusNext=function(a){AdfAgent.getAgent().getPlatform()!=AdfAgent.IE_PLATFORM&&(a=AdfPage.PAGE.findComponent(a),null!=a&&(a=a.getPeer(),null!=a&&(a.bTransferringFocus=!0,a.HandleComponentBlur(null),a.bTransferringFocus=!1)))};
AdfDhtmlCommonFlashPeer.prototype.HandleComponentMouseDown=function(a){this.isComponentFocused&&!this.isComponentFocused()&&this.setComponentFocusedViaMouse&&this.setComponentFocusedViaMouse(!0);AdfAgent.AGENT.getPlatform()==AdfAgent.GECKO_PLATFORM&&(a=a.getNativeEvent(),a.ctrlKey&&AdfAgent.AGENT.preventDefault(a))};
AdfDhtmlCommonFlashPeer.prototype.HandleComponentFocus=function(a){this._blurTimeout&&(clearTimeout(this._blurTimeout),this._blurTimeout=null);this.setComponentFocused&&this.setComponentFocused(!0);this.NeedsComponentFocusListeners()&&!this.bTransferringFocus&&(this.bHandlingComponentFocus=!0,a=this.getMovieObject(this.getComponent()),null!=a&&null!=a.setFocused?(this.isComponentFocusedViaMouse?this.isComponentFocusedViaMouse()||a.setFocused(!0):a.setFocused(!0),AdfAgent.getAgent().getPlatform()!=
AdfAgent.IE_PLATFORM&&a.focus()):"HTML5"==this.getComponent().getProperty("clientImageFormat")&&(this.isComponentFocusedViaMouse?this.isComponentFocusedViaMouse()||this.SetFocused(!0):this.SetFocused(!0)),this.bHandlingComponentFocus=!1)};AdfDhtmlCommonFlashPeer.prototype.HandleComponentBlur=function(a){this._blurTimeoutCallback||(this._blurTimeoutCallback=this.createCallback(this._doBlurTimeout));this._blurTimeout=setTimeout(this._blurTimeoutCallback,10)};
AdfDhtmlCommonFlashPeer.prototype._doBlurTimeout=function(){this.setComponentFocused&&this.setComponentFocused(!1);this.setComponentFocusedViaMouse&&this.setComponentFocusedViaMouse(!1);if(this.NeedsComponentFocusListeners()&&!this.bHandlingComponentFocus){var a=this.getMovieObject(this.getComponent());null!=a&&null!=a.setFocused?(a.setFocused(!1),AdfAgent.getAgent().getPlatform()!=AdfAgent.IE_PLATFORM&&a.blur()):"HTML5"==this.getComponent().getProperty("clientImageFormat")&&this.SetFocused(!1)}};
AdfDhtmlCommonFlashPeer.prototype.SetFocused=function(a){this._view&&this._view.setFocused&&this._view.setFocused(a)};AdfDhtmlCommonFlashPeer.prototype.isValidVariable=function(a){return null==a||void 0==a?!1:!0};AdfDhtmlCommonFlashPeer.prototype.getStatusDivId=function(){return"status"};AdfDhtmlCommonFlashPeer._getChildById=function(a,b){for(var c=a.childNodes,d=0;d<c.length;d++)if(b==c[d].id)return c[d];return null};AdfDhtmlCommonFlashPeer.prototype.needsResizeNotify=function(a){return!0};
AdfDhtmlCommonFlashPeer.prototype.getFlashMovieObj=function(a){null==a&&(a=this.getComponent());var b=AdfDhtmlCommonFlashPeer.GetSwfId(a.getClientId());if((b=-1!=navigator.appName.indexOf("Microsoft")?window[b]?window[b]:document[b]:document[b])&&!b.loadXML&&!1==this._reloadEventSent&&!0!=this._inBusyStateListener)a=new AdfCommonFlashReloadEvent(a),a.setPartial(!0),AdfPage.PAGE.queueEventToServer(a),this._reloadEventSent=!0;return b};AdfDhtmlCommonFlashPeer.prototype.getMovieObject=function(a){return this.getFlashMovieObj(a)};
AdfDhtmlCommonFlashPeer.prototype.getDataXml=function(a){return AdfDhtmlCommonFlashPeer._getDataXml(a)};AdfDhtmlCommonFlashPeer.GetXmlComment=function(a,b){var c=document.getElementById(a+b);return AdfDhtmlCommonFlashPeer.Trim(c)};AdfDhtmlCommonFlashPeer.Trim=function(a){if(a){a=a.innerHTML;var b=a.indexOf("\x3c!--"),c=a.lastIndexOf("--\x3e");return a=a.substring(b+4,c)}return null};
AdfDhtmlCommonFlashPeer.prototype.isFlashVersion=function(a,b,c){return AdfDhtmlCommonFlashUtils.isFlashVersion(a,b,c)};AdfDhtmlCommonFlashPeer.prototype.isFlashPlayerAddedToDom=function(a){a=a.getClientId();a=AdfRichUIPeer.CreateSubId(a,this.getFlashPlayerDivId());var b=AdfAgent.AGENT.getElementById(a).innerHTML;a=b.indexOf("\x3c!--");b=b.lastIndexOf("--\x3e");return-1<a&&-1<b?!1:!0};AdfDhtmlCommonFlashPeer.prototype.getFlashPlayerDivId=function(){return"flashplayer"};
AdfDhtmlCommonFlashPeer.prototype.showFlashPlayerDownloadMessage=function(a){a=AdfRichUIPeer.CreateSubId(a.getClientId(),this.getFlashPlayerUnavailableDivId());(a=AdfAgent.AGENT.getElementById(a))&&(a.style.display="block")};AdfDhtmlCommonFlashPeer.prototype.getFlashPlayerUnavailableDivId=function(){return"getflashplayer"};
AdfDhtmlCommonFlashPeer.prototype.addFlashPlayerToDom=function(a){if(AdfDhtmlCommonFlashUtils.isMinFlashVersion()){var b=a.getClientId(),b=AdfRichUIPeer.CreateSubId(b,this.getFlashPlayerDivId());AdfDhtmlCommonFlashPeer.uncommentFlashTag(b,a);this.NeedsMouseScrollListener()&&this.AddMouseScrollListener(a)}else this.showFlashPlayerDownloadMessage(a)};AdfDhtmlCommonFlashPeer.prototype.NeedsMouseScrollListener=function(){return!0};AdfDhtmlCommonFlashPeer.prototype.NeedsComponentFocusListeners=function(){return!0};
AdfDhtmlCommonFlashPeer.prototype.AddMouseScrollListener=function(a){a=this.getDomElement();null!=a&&(null!=a.addEventListener?(a.addEventListener("DOMMouseScroll",this.HandleMouseScroll,!1),a.addEventListener("mousewheel",this.HandleMouseScroll,!1)):null!=a.attachEvent&&a.attachEvent("onmousewheel",this.HandleMouseScroll))};
AdfDhtmlCommonFlashPeer.prototype.HandleMouseScroll=function(a){var b;null!=this.id&&(b=AdfPage.PAGE.findComponent(this.id));null==b&&(null!=a.target?b=AdfRichUIPeer.getFirstAncestorComponent(a.target):null!=a.srcElement&&(b=AdfRichUIPeer.getFirstAncestorComponent(a.srcElement)));if(null!=b){var c=b.getPeer();if(null!=c&&(b=c.getMovieObject(b),null!=b&&null!=b.isMouseWheelHandled)){var d=AdfAgent.getAgent().getMousePosition(a),e=AdfAgent.getAgent().getElementPosition(b),c=d.x-e.x,d=d.y-e.y,f;null!=
a.wheelDelta?f=a.wheelDelta/40:null!=a.detail&&(f=-a.detail);!0==b.isMouseWheelHandled(f,c,d)&&AdfDhtmlCommonFlashPeer.CancelDomEvent(a)}}};AdfDhtmlCommonFlashPeer.CancelDomEvent=function(a){null==a&&(a=window.event);null!=a.stopPropagation&&a.stopPropagation();null!=a.preventDefault&&a.preventDefault();a.cancelBubble=!0;a.cancel=!0;a.returnValue=!1};
AdfDhtmlCommonFlashPeer.prototype.getParamValue=function(a,b,c){if(!this.isValidVariable(a))return null;var d=null;for(i=0;i<=b.length;i++)if(b[i]==a){d=i;break}return!this.isValidVariable(d)||d>=c.length?null:c[d]};
AdfDhtmlCommonFlashPeer.prototype.createShowPopupBehaviorEvent=function(a,b,c){return new AdfCommonFlashShowPopupBehaviorEvent(a,this.getParamValue("clientRowKey",b,c),this.getParamValue("popupId",b,c),this.getParamValue("alignId",b,c),this.getParamValue("align",b,c),this.getParamValue("mouseStageX",b,c),this.getParamValue("mouseStageY",b,c),this.getParamValue("compStageX",b,c),this.getParamValue("compStageY",b,c),this.getParamValue("compStageWidth",b,c),this.getParamValue("compStageHeight",b,c),
this.getParamValue("bAlignCompInFlash",b,c),this.getParamValue("launchingComponentId",b,c))};AdfDhtmlCommonFlashPeer.prototype.getPopupPlacementElemId=function(){var a=this.getComponent().getClientId();return AdfRichUIPeer.CreateSubId(a,"popupHelper")};AdfDhtmlCommonFlashPeer.prototype.GetPopupPlacementElem=function(){var a=this.getPopupPlacementElemId();return AdfAgent.AGENT.getElementById(a)};
AdfDhtmlCommonFlashPeer.prototype.positionPopupPlacementElem=function(a,b,c,d){var e=this.GetPopupPlacementElem();null!=e&&(void 0==a&&(a=0),void 0==b&&(b=0),void 0==c&&(c=1),void 0==d&&(d=1),e.style.left=a+"px",e.style.top=b+"px",e.style.width=c+"px",e.style.height=d+"px",e.style.display="inline",this.ForceSetPropertyChange(AdfDvtComponent.POPUP_STYLE,e.style.cssText,!1,AdfUIComponent.PROPAGATE_ALWAYS))};
AdfDhtmlCommonFlashPeer.prototype.HidePopupPlacementElem=function(){var a=this.GetPopupPlacementElem();null!=a&&(a.style.display="none")};AdfDhtmlCommonFlashPeer.prototype.HandlePopupOpening=function(a){var b=this.GetPopupPlacementElem();null!=b&&(b.style.display="inline");var c=a.getSource(),d=this;window.setTimeout(function(){c.removeEventListener(AdfPopupOpeningEvent.POPUP_OPENING_EVENT_TYPE,d.HandlePopupOpening,d)},0)};
AdfDhtmlCommonFlashPeer.prototype.handlePopupOpened=function(a){this.HidePopupPlacementElem();a.getSource().removeEventListener(AdfPopupOpenedEvent.POPUP_OPENED_EVENT_TYPE,this.handlePopupOpened,this)};
AdfDhtmlCommonFlashPeer.prototype.handlePopupClosed=function(a){a.getSource().removeEventListener(AdfPopupClosedEvent.POPUP_CLOSED_EVENT_TYPE,this.handlePopupClosed,this);this.HidePopupPlacementElem();a=this.getComponent();var b=this.getMovieObject(a);null!=b&&null!=b.setHoverPopupShown&&b.setHoverPopupShown(a.getClientId(),!1)};AdfDhtmlCommonFlashPeer.prototype.showPopupHelper=function(a){};
AdfDhtmlCommonFlashPeer.prototype.showPopup=function(a,b,c,d,e,f,g,h,l,m,n,p,q,r){if(!AdfPage.PAGE.isScreenReaderMode()&&(f=r?AdfPage.PAGE.findComponent(r):this.getComponent(),g=AdfPage.PAGE.findComponent(b),null==g&&(g=f.findComponent(b)),null!=g)){g.hide();this.HidePopupPlacementElem();g.removeEventListener(AdfPopupClosedEvent.POPUP_CLOSED_EVENT_TYPE,this.handlePopupClosed,this);f.getPeer().showPopupHelper(a);a=[];q||(q=f.getClientId());a[AdfRichPopup.HINT_LAUNCH_ID]=q;e="mouseHover"==e;if(null!=
c||p)q=c,p&&(q=this.getPopupPlacementElemId(),this.positionPopupPlacementElem(h,l,m,n),g.addEventListener(AdfPopupOpeningEvent.POPUP_OPENING_EVENT_TYPE,this.HandlePopupOpening,this)),d=AdfDhtmlCommonFlashPeer.convertPopupAlignToConstant(d),null!=d&&null!=q&&(a[AdfRichPopup.HINT_ALIGN_ID]=q,a[AdfRichPopup.HINT_ALIGN]=d);(null!=c&&p||e)&&g.addEventListener(AdfPopupClosedEvent.POPUP_CLOSED_EVENT_TYPE,this.handlePopupClosed,this);e&&(a[AdfDhtmlCommonUtils.AUTODISMISS]=AdfDhtmlCommonUtils.AUTODISMISS_MOUSEOUT,
c=this.GetPopupMouseOutId(a),a[AdfDhtmlCommonUtils.AUTODISMISS_MOUSEOUT_ID]=c,c=this.getMovieObject(f),null!=c&&null!=c.setHoverPopupShown&&c.setHoverPopupShown(f.getClientId(),!0));a.isDvtShowPopup=!0;g.show(a)}};AdfDhtmlCommonFlashPeer.prototype.PreprocessShowPopupBehaviors=function(a){if(this.getComponent()&&a)for(var b=0;b<a.length;b++){var c=this.getComponent().findComponent(a[b].getPopupId());c&&c.addEventListener(AdfPopupOpeningEvent.POPUP_OPENING_EVENT_TYPE,this.ProcessPopupOpeningEvent,this)}};
AdfDhtmlCommonFlashPeer.prototype.ProcessPopupOpeningEvent=function(a){a.getHints().isDvtShowPopup||a.cancel()};AdfDhtmlCommonFlashPeer.prototype.GetPopupMouseOutId=function(a){return a[AdfRichPopup.HINT_ALIGN_ID]?a[AdfRichPopup.HINT_ALIGN_ID]:a[AdfRichPopup.HINT_LAUNCH_ID]};AdfDhtmlCommonFlashPeer.fpInitNotify=function(a){var b=AdfPage.PAGE.findComponent(a);b&&(b.getPeer()._reloadEventSent=!1);AdfDhtmlCommonFlashPeer.updateSize(b,b.getPeer()._clientWidth,b.getPeer()._clientHeight);return AdfDhtmlCommonFlashPeer._getDataXml(a)};
AdfDhtmlCommonFlashPeer.fpMessage=function(a){};AdfDhtmlCommonFlashPeer.updateSize=function(a,b,c){return!1};AdfDhtmlCommonFlashPeer._getDataXml=function(a){a=AdfDhtmlCommonFlashPeer.replaceString(a,":","_");a=document.getElementById(a+"content").innerHTML;var b=a.indexOf("\x3c!--"),c=a.lastIndexOf("--\x3e");return a=a.substring(b+4,c)};
AdfDhtmlCommonFlashPeer.uncommentFlashTag=function(a,b){var c=AdfAgent.AGENT.getElementById(a);if(c){var d=c.innerHTML,e=d.indexOf("\x3c!--"),f=d.lastIndexOf("--\x3e");0<=e&&f>e&&(d=d.substring(e+4,f));c.innerHTML=d;AdfAgent.getAgent().getPlatform()==AdfAgent.IE_PLATFORM&&null!=b&&(b.getProperty("isInPortlet")||AdfDhtmlCommonFlashUtils.restoreTitle(b.getClientId()))}};AdfDhtmlCommonFlashPeer.replaceString=function(a,b,c){a=new String(a);return a=a.replace(RegExp(b,"g"),c)};
AdfDhtmlCommonFlashPeer.getResourceURL=function(a){return a};AdfDhtmlCommonFlashPeer.queueFlashEvent=function(a,b,c,d){AdfPage.PAGE.findComponent(a).getPeer().queueEvent(b,c,d)};
AdfDhtmlCommonFlashPeer.prototype.queueEvent=function(a,b,c){var d=!1;eval(a)==AdfCommonFlashShowPopupBehaviorEvent.SHOW_POPUP_BEHAVIOR_EVENT&&(this.showPopup(this.getParamValue("clientRowKey",b,c),this.getParamValue("popupId",b,c),this.getParamValue("alignId",b,c),this.getParamValue("align",b,c),this.getParamValue("triggerType",b,c),this.getParamValue("mouseStageX",b,c),this.getParamValue("mouseStageY",b,c),this.getParamValue("compStageX",b,c),this.getParamValue("compStageY",b,c),this.getParamValue("compStageWidth",
b,c),this.getParamValue("compStageHeight",b,c),this.getParamValue("bAlignCompInFlash",b,c),this.getParamValue("launchingComponentId",b,c)),d=!0);return d};AdfDhtmlCommonFlashPeer.prototype.ForceSetPropertyChange=function(a,b,c,d){var e=this.getComponent().getProperty(a);if(e==b){var f=null;null==e&&(f="foo");this.getComponent().setProperty(a,f,c,AdfUIComponent.PROPAGATE_NEVER)}this.getComponent().setProperty(a,b,c,d)};
AdfDhtmlCommonFlashPeer.prototype.invokeLoadXml=function(a,b,c,d,e){var f=this.getComponent();AdfDhtmlCommonFlashPeer.updateSize(f,f.getPeer()._clientWidth,f.getPeer()._clientHeight);return a.loadXML?(f=f.getClientId(),a.loadXML(f,b,c,d,e),!0):!1};AdfDhtmlCommonFlashPeer.hidePopup=function(a,b){var c;if(null!=b){var d=AdfPage.PAGE.findComponent(b);null!=d&&(c=d.findComponent(a))}else c=AdfPage.PAGE.findComponent(a);null!=c&&c.hide()};
AdfDhtmlCommonFlashPeer.prototype._displayFetchSpinner=function(){AdfAgent.AGENT.getPlatform()!=AdfAgent.GECKO_PLATFORM&&(window.setTimeout(this.createCallback(this._showFetchSpinner),500),this._spinnerPending=!0)};
AdfDhtmlCommonFlashPeer.prototype._showFetchSpinner=function(){if(this._spinnerPending){this._spinnerPending=!1;var a=this.getComponent().getClientId(),b=document.getElementById(AdfRichUIPeer.CreateSubId(a,"loading"));if(b){var c=document.getElementById(AdfRichUIPeer.CreateSubId(a,"loadingBackground"));c.style.width=this._clientWidth+"px";c.style.height=this._clientHeight+"px";b=b.style;if(""==b.display||"none"==b.display)b.zIndex=1E3,b.display="block",b.visibility="visible",b=document.getElementById(AdfRichUIPeer.CreateSubId(a,
"loadingImg")),b.style.position="absolute",b.style.top=Math.floor((this._clientHeight-b.clientHeight)/2)+"px",b.style.left=Math.floor((this._clientWidth-b.clientWidth)/2)+"px",a=document.getElementById(AdfRichUIPeer.CreateSubId(a,"loadingBgImg")),a.style.position="absolute",a.style.top=Math.floor((this._clientHeight-a.clientHeight)/2)+"px",a.style.left=Math.floor((this._clientWidth-a.clientWidth)/2)+"px"}}};
AdfDhtmlCommonFlashPeer.prototype._hideFetchSpinner=function(){this._spinnerPending=!1;var a=this.getComponent();if(a&&(a=a.getClientId(),a=document.getElementById(AdfRichUIPeer.CreateSubId(a,"loading"))))a.style.display="none"};AdfDhtmlCommonFlashPeer.isTouchDevice=function(){return window&&window.AdfSafariMobileAgent&&AdfAgent.AGENT&&AdfAgent.AGENT instanceof AdfSafariMobileAgent};AdfDhtmlCommonFlashPeer.prototype.GetSubIdDomElement=function(a){var b=this.GetAutomation();return null==b?null:b.getDomElementForSubId(a)};
AdfDhtmlCommonFlashPeer.prototype.GetBestMatchSubId=function(a){var b=this.GetAutomation();return null==b?null:b.getSubIdForDomElement(a)};AdfDhtmlCommonFlashPeer.prototype.GetAutomation=function(){return null};AdfDhtmlCommonFlashPeer.prototype.IsInMashup=function(){return this.getComponent().getProperty(AdfDhtmlCommonFlashPeer.__IS_IN_MASHUP_KEY)};