var $AdfDhtmlDocumentPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlDocumentPeer", $JSCompiler_alias_FALSE$$);
$goog$exportSymbol$$("AdfDhtmlDocumentPeer", $AdfDhtmlDocumentPeer$$);
$AdfDhtmlDocumentPeer$$.$InitSubclass$ = function $$AdfDhtmlDocumentPeer$$$$InitSubclass$$() {
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfComponentEvent$$.$BLUR_EVENT_TYPE$, $AdfComponentEvent$$.$FOCUS_EVENT_TYPE$, $AdfDialogEvent$$.$EVENT_TYPE$, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_UP_EVENT_TYPE$, $AdfComponentEvent$$.$CONTEXT_MENU_EVENT_TYPE$, $AdfRedirectEvent$$.$REDIRECT_EVENT_TYPE$);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichDocument.SHORT_DESC, AdfRichDocument.TITLE);
  this.$_ICON_CONTAINER_ID$ = "iconC";
  this.$_MESSAGE_DIALOG_ID$ = "msgDlg";
  this.$_MESSAGE_DIALOG_CONTAINER_ID$ = "msgCtr";
  this.$_GLOBAL_LIVE_CONTAINER_ID$ = "liveCtr";
  this.$_SKIP_LINK_ID$ = "skip";
  this.$_INACTIVE_STYLECLASS$ = "p_AFInactive";
  this.$_ALERT_CONFIRM_DIALOG_CONTAINER_ID$ = "afr::UtilPopupCtnr";
  this.$_ALERT_CONFIRM_POPUP_ID_EXPANDO$ = "data-afr-pid";
  this.$_ALERT_CONFIRM_DIALOG_ID_EXPANDO$ = "data-afr-did";
  this.$_DIALOG_CONTENT_SUBID$ = "contentContainer";
  this.$_DIALOG_CANCEL_ID_SUBID$ = "cancel"
};
$goog$exportSymbol$$("AdfDhtmlDocumentPeer.InitSubclass", $AdfDhtmlDocumentPeer$$.$InitSubclass$);
$AdfDhtmlDocumentPeer$$.prototype.Init = function $$AdfDhtmlDocumentPeer$$$$Init$($component$$690$$) {
  $AdfPage$$.$PAGE$.$setDocumentClientId$($component$$690$$.$getClientId$());
  $AdfDhtmlDocumentPeer$$.$superclass$.Init.call(this, $component$$690$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.Init", {Init:$AdfDhtmlDocumentPeer$$.prototype.Init});
$AdfDhtmlDocumentPeer$$.prototype.$ComponentShortDescChanged$ = function $$AdfDhtmlDocumentPeer$$$$$ComponentShortDescChanged$$($component$$691$$, $domElement$$168$$, $newValue$$52$$) {
  $AdfAssert$$.$assertStringOrNull$($newValue$$52$$);
  document.body.title = $newValue$$52$$;
  return $JSCompiler_alias_TRUE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.ComponentShortDescChanged", {$ComponentShortDescChanged$:$AdfDhtmlDocumentPeer$$.prototype.$ComponentShortDescChanged$});
$AdfDhtmlDocumentPeer$$.prototype.$ComponentTitleChanged$ = function $$AdfDhtmlDocumentPeer$$$$$ComponentTitleChanged$$($component$$692$$, $domElement$$169$$, $newValue$$53$$) {
  $AdfAssert$$.$assertStringOrNull$($newValue$$53$$);
  document.title = $newValue$$53$$;
  return $JSCompiler_alias_TRUE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.ComponentTitleChanged", {$ComponentTitleChanged$:$AdfDhtmlDocumentPeer$$.prototype.$ComponentTitleChanged$});
$AdfDhtmlDocumentPeer$$.prototype.$isMessagesDialogShowable$ = function $$AdfDhtmlDocumentPeer$$$$$isMessagesDialogShowable$$() {
  var $page$$85$$ = $AdfPage$$.$PAGE$, $globalMessages_messages$$10$$ = $page$$85$$.$getAllMessages$(), $componentID_slaveComponent$$ = this.$getComponent$().$getClientId$(), $globalMessages_messages$$10$$ = $globalMessages_messages$$10$$[$componentID_slaveComponent$$], $componentID_slaveComponent$$ = $JSCompiler_StaticMethods__getSlaveComponent$$(), $globalOnly$$ = $JSCompiler_alias_FALSE$$;
  $componentID_slaveComponent$$ != $JSCompiler_alias_NULL$$ && ($globalOnly$$ = $componentID_slaveComponent$$.getGlobalOnly());
  return $AdfMessageUtils$$.$isPageLevelBoxNeeded$($page$$85$$, $globalMessages_messages$$10$$, $globalOnly$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.isMessagesDialogShowable", {$isMessagesDialogShowable$:$AdfDhtmlDocumentPeer$$.prototype.$isMessagesDialogShowable$});
$AdfDhtmlDocumentPeer$$.prototype.$getMessageDialogId$ = function $$AdfDhtmlDocumentPeer$$$$$getMessageDialogId$$() {
  var $clientId$$144$$ = this.$getComponent$().$getClientId$();
  return"old" == $AdfPage$$.$PAGE$.$getLookAndFeel$().$getSkinProperty$("af|dialog-tr-button-type") ? $AdfRichUIPeer$$.$CreateSubId$($clientId$$144$$, $AdfDhtmlDocumentPeer$$.$_MESSAGE_DIALOG_ID$) : $clientId$$144$$ + "_" + $AdfDhtmlDocumentPeer$$.$_MESSAGE_DIALOG_ID$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.getMessageDialogId", {$getMessageDialogId$:$AdfDhtmlDocumentPeer$$.prototype.$getMessageDialogId$});
$AdfDhtmlDocumentPeer$$.prototype.$isMessagesInline$ = function $$AdfDhtmlDocumentPeer$$$$$isMessagesInline$$() {
  var $dialogElem_dialogId$$3$$ = this.$getMessageDialogId$(), $dialogElem_dialogId$$3$$ = $AdfAgent$$.$AGENT$.getElementById($dialogElem_dialogId$$3$$), $containerId$$2$$ = $JSCompiler_StaticMethods__getMessageDialogContainerId$$(this);
  return $dialogElem_dialogId$$3$$ && $dialogElem_dialogId$$3$$.parentNode.id == $containerId$$2$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.isMessagesInline", {$isMessagesInline$:$AdfDhtmlDocumentPeer$$.prototype.$isMessagesInline$});
$AdfDhtmlDocumentPeer$$.prototype.$setMessagesDialogShown$ = function $$AdfDhtmlDocumentPeer$$$$$setMessagesDialogShown$$($component$$inline_1660_visible$$1$$) {
  $component$$inline_1660_visible$$1$$ ? this.$messageShow$() : ($component$$inline_1660_visible$$1$$ = this.$getComponent$(), this.$hidePopup$($component$$inline_1660_visible$$1$$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.setMessagesDialogShown", {$setMessagesDialogShown$:$AdfDhtmlDocumentPeer$$.prototype.$setMessagesDialogShown$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentFocus$$($componentEvent$$122$$) {
  if($componentEvent$$122$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$) {
    var $skipLinkElement$$ = $JSCompiler_StaticMethods__getSkipLinkElement$$(this.$getComponent$());
    $componentEvent$$122$$.$getNativeEventTarget$() == $skipLinkElement$$ && ($skipLinkElement$$.style.top = "0px")
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentBlur$$($componentEvent$$123$$) {
  if($componentEvent$$123$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$) {
    var $skipLinkElement$$1$$ = $JSCompiler_StaticMethods__getSkipLinkElement$$(this.$getComponent$());
    $componentEvent$$123$$.$getNativeEventTarget$() == $skipLinkElement$$1$$ && ($skipLinkElement$$1$$.style.top = "")
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentClick$$($componentEvent$$124$$) {
  if($componentEvent$$124$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$) {
    var $matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$ = $JSCompiler_StaticMethods__getSkipLinkElement$$(this.$getComponent$());
    $componentEvent$$124$$.$getNativeEventTarget$() == $matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$ && ($matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$ = $AdfDhtmlDocumentPeer$$.$_getSkipLinkTargetId$(this.$getComponent$()), $matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$ = $AdfAgent$$.$AGENT$.getElementById($matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$), 
    $AdfAssert$$.$assertDomElement$($matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$), $matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$ = $AdfDomUtils$$.$getNextElementMatch$($matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_FALSE$$, $AdfDhtmlDocumentPeer$$.$_isPotentiallyFocusable$), $AdfAssert$$.$assertDomElement$($matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$), 
    $matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$ && ($AdfFocusUtils$$.$isFocusable$($matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$) || ($matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$.tabIndex = -1), $AdfFocusUtils$$.$focusElement$($matchElement$$inline_1665_skipLinkElement$$2_targetElement$$inline_1664_targetId$$inline_1663$$)), $componentEvent$$124$$.cancel())
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentContextMenu$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentContextMenu$$($componentEvent$$125$$) {
  $AdfDhtmlDocumentPeer$$.$__ACTION_LINK_BROWSER_CONTEXT_SUPPRESSION_OFF$ || $AdfDomUtils$$.$suppressActionLinkBrowserContextMenu$($componentEvent$$125$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentContextMenu", {$HandleComponentContextMenu$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentContextMenu$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentKeyUp$$($componentEvent$$126$$) {
  if(!$componentEvent$$126$$.$isCanceled$() && $AdfPage$$.$PAGE$.$getDefaultMessageHandlerComponentId$() == this.$getComponent$().$getClientId$()) {
    var $keyCode$$41$$ = $componentEvent$$126$$.$getKeyCode$();
    $componentEvent$$126$$.ctrlKey && $componentEvent$$126$$.altKey ? 79 == $keyCode$$41$$ && (this.$setMessagesDialogShown$($JSCompiler_alias_FALSE$$), $componentEvent$$126$$.cancel()) : $componentEvent$$126$$.ctrlKey && $componentEvent$$126$$.shiftKey && 87 == $keyCode$$41$$ && (this.$setMessagesDialogShown$($JSCompiler_alias_TRUE$$), $componentEvent$$126$$.cancel())
  }
  if(!$componentEvent$$126$$.$isCanceled$()) {
    var $evt$$85$$ = $componentEvent$$126$$.$getNativeEvent$(), $keyCode$$41$$ = $componentEvent$$126$$.$getKeyCode$();
    $evt$$85$$.ctrlKey && ($evt$$85$$.altKey && 87 == $keyCode$$41$$) && $AdfDhtmlDialogManager$$.$getInstance$().$focusNextModelessDialog$($componentEvent$$126$$.$getNativeEventTarget$())
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentDialog$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentDialog$$($allMessages_componentEvent$$127_page$$86$$) {
  var $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ = $allMessages_componentEvent$$127_page$$86$$.getSource().$getClientId$(), $documentClientId$$6$$ = this.$getComponent$().$getClientId$(), $dialogId$$4_globalOnly$$1$$ = this.$getMessageDialogId$();
  if($compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ == $dialogId$$4_globalOnly$$1$$ && ($compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ = $allMessages_componentEvent$$127_page$$86$$.$getOutcome$(), $allMessages_componentEvent$$127_page$$86$$.cancel(), this.$hidePopup$(this.$getComponent$()), $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ == $AdfDialogEvent$$.$OUTCOME_OK$ && ($allMessages_componentEvent$$127_page$$86$$ = $AdfPage$$.$PAGE$, $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ = 
  $JSCompiler_StaticMethods__getSlaveComponent$$(), $dialogId$$4_globalOnly$$1$$ = $JSCompiler_alias_FALSE$$, $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ != $JSCompiler_alias_NULL$$ && ($dialogId$$4_globalOnly$$1$$ = $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$.getGlobalOnly()), !$dialogId$$4_globalOnly$$1$$))) {
    var $jumpComponentClientId$$;
    $allMessages_componentEvent$$127_page$$86$$ = $allMessages_componentEvent$$127_page$$86$$.$getAllMessages$();
    for(var $id$$274$$ in $allMessages_componentEvent$$127_page$$86$$) {
      if($id$$274$$ != $documentClientId$$6$$ && ($compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ = $allMessages_componentEvent$$127_page$$86$$[$id$$274$$], $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$ != $JSCompiler_alias_NULL$$ && $compMessages_dialogOutcome$$1_slaveComponent$$1_targetId$$8$$.$compId$ != $JSCompiler_alias_NULL$$)) {
        $jumpComponentClientId$$ = $id$$274$$;
        break
      }
    }
    $jumpComponentClientId$$ != $JSCompiler_alias_NULL$$ && $AdfMessageUtils$$.$messageGroupFocus$($jumpComponentClientId$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentDialog", {$HandleComponentDialog$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentDialog$});
$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentRedirect$ = function $$AdfDhtmlDocumentPeer$$$$$HandleComponentRedirect$$($componentEvent$$128$$) {
  var $url$$33$$ = $componentEvent$$128$$.$getURL$();
  $AdfPage$$.$PAGE$.$doRedirect$($url$$33$$, $componentEvent$$128$$.$getNavigationSuppressed$())
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.HandleComponentRedirect", {$HandleComponentRedirect$:$AdfDhtmlDocumentPeer$$.prototype.$HandleComponentRedirect$});
$AdfDhtmlDocumentPeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlDocumentPeer$$$$$PopupClosed$$($component$$694$$, $contentDom$$9$$) {
  $AdfDhtmlDocumentPeer$$.$superclass$.$PopupClosed$.call(this, $component$$694$$, $contentDom$$9$$);
  $AdfDomUtils$$.$removeCSSClassName$($contentDom$$9$$, $AdfRichUIPeer$$.$HOVER_TARGET_STYLECLASS$);
  $AdfDomUtils$$.$removeCSSClassName$($contentDom$$9$$, $AdfDhtmlDocumentPeer$$.$_INACTIVE_STYLECLASS$);
  var $containerId$$3_containerNode$$2$$ = $JSCompiler_StaticMethods__getMessageDialogContainerId$$(this);
  ($containerId$$3_containerNode$$2$$ = $AdfAgent$$.$AGENT$.getElementById($containerId$$3_containerNode$$2$$)) && $containerId$$3_containerNode$$2$$.appendChild($contentDom$$9$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.PopupClosed", {$PopupClosed$:$AdfDhtmlDocumentPeer$$.prototype.$PopupClosed$});
$AdfDhtmlDocumentPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlDocumentPeer$$$$$InitDomElement$$($component$$695$$, $domElement$$170$$) {
  var $callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$ = $AdfPage$$.$PAGE$;
  $AdfDhtmlDocumentPeer$$.$superclass$.$InitDomElement$.call(this, $component$$695$$, $domElement$$170$$);
  var $loadEvent_queueCallback_skipLinkTargetId$$inline_1670$$ = new $AdfComponentEvent$$($component$$695$$, "load");
  $callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$.$_initializationComplete$ ? $loadEvent_queueCallback_skipLinkTargetId$$inline_1670$$.$queue$() : ($loadEvent_queueCallback_skipLinkTargetId$$inline_1670$$ = $loadEvent_queueCallback_skipLinkTargetId$$inline_1670$$.$createCallback$($loadEvent_queueCallback_skipLinkTargetId$$inline_1670$$.$queue$), $callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$.$setOnLoadCallback$($loadEvent_queueCallback_skipLinkTargetId$$inline_1670$$));
  $component$$695$$.getInitialFocusId() && (this.$_activateFocusCallback$ = this.$createCallback$(this.$_activateFocus$), this.$_focusTimerId$ = window.setTimeout(this.$_activateFocusCallback$, 50));
  this.$_globalMessageCount$ = 0;
  $callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$ = $JSCompiler_alias_FALSE$$;
  ($loadEvent_queueCallback_skipLinkTargetId$$inline_1670$$ = $AdfDhtmlDocumentPeer$$.$_getSkipLinkTargetId$($component$$695$$)) ? $AdfAgent$$.$AGENT$.getElementById($loadEvent_queueCallback_skipLinkTargetId$$inline_1670$$) == $JSCompiler_alias_NULL$$ && ($callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$ = $JSCompiler_alias_TRUE$$, $AdfLogger$$.$LOGGER$.warning("Unable to locate skip link target: " + $loadEvent_queueCallback_skipLinkTargetId$$inline_1670$$ + 
  ".  Make sure that af:skipLinkTarget is contained within a parent that generates content (and an id).")) : $callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$ = $JSCompiler_alias_TRUE$$;
  if($callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$ && ($callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$ = $JSCompiler_StaticMethods__getSkipLinkElement$$($component$$695$$))) {
    $callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$.style.display = "none"
  }
  if(($callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$ = $component$$695$$.getTitle()) && this.$getDomDocument$().title != $callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$) {
    $callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$ = this.$createCallback$(this.$_delayedSetDocumentTitle$), setTimeout($callback$$inline_1676_hideSkipLink$$inline_1669_page$$88_skipLinkElement$$inline_1671_title$$inline_1675$$, 0)
  }
  this.$_setUncommittedDataWarning$($component$$695$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlDocumentPeer$$.prototype.$InitDomElement$});
$AdfDhtmlDocumentPeer$$.prototype.$ReplaceDomElement$ = function $$AdfDhtmlDocumentPeer$$$$$ReplaceDomElement$$($newElement$$15$$, $oldElement$$6$$) {
  var $agent$$217_documentClientId$$7_iconContainerId$$ = this.$getComponent$().$getClientId$(), $agent$$217_documentClientId$$7_iconContainerId$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$217_documentClientId$$7_iconContainerId$$, $AdfDhtmlDocumentPeer$$.$_ICON_CONTAINER_ID$);
  if($newElement$$15$$.id == $agent$$217_documentClientId$$7_iconContainerId$$) {
    for(var $agent$$217_documentClientId$$7_iconContainerId$$ = $AdfAgent$$.$AGENT$, $currChild$$7$$ = $newElement$$15$$.firstChild;$currChild$$7$$;) {
      var $nextChild$$ = $currChild$$7$$.nextSibling;
      if(1 == $currChild$$7$$.nodeType) {
        var $id$$275$$ = $currChild$$7$$.id;
        $id$$275$$ && !$agent$$217_documentClientId$$7_iconContainerId$$.getElementById($id$$275$$) && ($oldElement$$6$$.appendChild($currChild$$7$$), $agent$$217_documentClientId$$7_iconContainerId$$.$elementsAdded$($currChild$$7$$))
      }
      $currChild$$7$$ = $nextChild$$
    }
  }else {
    $AdfDhtmlDocumentPeer$$.$superclass$.$ReplaceDomElement$.call(this, $newElement$$15$$, $oldElement$$6$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.ReplaceDomElement", {$ReplaceDomElement$:$AdfDhtmlDocumentPeer$$.prototype.$ReplaceDomElement$});
$AdfDhtmlDocumentPeer$$.prototype.$MessageShow$ = function $$AdfDhtmlDocumentPeer$$$$$MessageShow$$($maxType$$5$$, $messages$$11$$) {
  this.$_messageUpdate$($maxType$$5$$, $messages$$11$$, $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.MessageShow", {$MessageShow$:$AdfDhtmlDocumentPeer$$.prototype.$MessageShow$});
$AdfDhtmlDocumentPeer$$.prototype.$MessageNotify$ = function $$AdfDhtmlDocumentPeer$$$$$MessageNotify$$($maxType$$6$$, $messages$$12$$) {
  this.$_messageUpdate$($maxType$$6$$, $messages$$12$$, $JSCompiler_alias_FALSE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.MessageNotify", {$MessageNotify$:$AdfDhtmlDocumentPeer$$.prototype.$MessageNotify$});
$AdfDhtmlDocumentPeer$$.prototype.$_messageUpdate$ = function $$AdfDhtmlDocumentPeer$$$$$_messageUpdate$$($maxType$$7_tempMaxType$$, $globalMessageCount_messages$$13$$, $agent$$218_alwaysShow$$) {
  var $dialogComponent_page$$89$$ = $AdfPage$$.$PAGE$, $dialogId$$5_slaveComponent$$2$$ = $JSCompiler_StaticMethods__getSlaveComponent$$(), $globalOnly$$2$$ = $JSCompiler_alias_FALSE$$;
  $dialogId$$5_slaveComponent$$2$$ != $JSCompiler_alias_NULL$$ && ($globalOnly$$2$$ = $dialogId$$5_slaveComponent$$2$$.getGlobalOnly());
  var $compMessages$$1_component$$696$$ = this.$getComponent$(), $clientId$$145_dialog$$6_wrapper$$14$$ = $compMessages$$1_component$$696$$.$getClientId$(), $allMessages$$1_dialogContent_div$$6_titleIcon$$ = $dialogComponent_page$$89$$.$getAllMessages$(), $globalMessages$$1$$ = $allMessages$$1_dialogContent_div$$6_titleIcon$$[$clientId$$145_dialog$$6_wrapper$$14$$];
  $globalMessageCount_messages$$13$$ = 0;
  $globalMessages$$1$$ != $JSCompiler_alias_NULL$$ && ($globalMessageCount_messages$$13$$ = $globalMessages$$1$$.length);
  if(!$agent$$218_alwaysShow$$ && !$AdfMessageUtils$$.$hasMessages$($dialogComponent_page$$89$$, $globalMessageCount_messages$$13$$, $globalOnly$$2$$)) {
    $AdfMessageUtils$$.$HideMessagesDialog$()
  }else {
    if($agent$$218_alwaysShow$$ && !$AdfMessageUtils$$.$isPageLevelBoxNeeded$($dialogComponent_page$$89$$, $globalMessages$$1$$, $globalOnly$$2$$)) {
      for($clientId$$145_dialog$$6_wrapper$$14$$ in $AdfMessageUtils$$.$HideMessagesDialog$(), $allMessages$$1_dialogContent_div$$6_titleIcon$$) {
        $compMessages$$1_component$$696$$ = $allMessages$$1_dialogContent_div$$6_titleIcon$$[$clientId$$145_dialog$$6_wrapper$$14$$], $compMessages$$1_component$$696$$ != $JSCompiler_alias_NULL$$ && $compMessages$$1_component$$696$$.$compId$ != $JSCompiler_alias_NULL$$ && $AdfMessageUtils$$.$messageGroupFocus$($clientId$$145_dialog$$6_wrapper$$14$$)
      }
    }else {
      if($agent$$218_alwaysShow$$ || this.$isPopupVisible$($compMessages$$1_component$$696$$) || this.$_globalMessageCount$ < $globalMessageCount_messages$$13$$) {
        $agent$$218_alwaysShow$$ = $AdfAgent$$.$AGENT$;
        var $message$$60$$ = $JSCompiler_alias_NULL$$, $text$$28$$ = $JSCompiler_alias_NULL$$, $shortDesc$$ = $JSCompiler_alias_NULL$$;
        $dialogId$$5_slaveComponent$$2$$ != $JSCompiler_alias_NULL$$ && ($message$$60$$ = $dialogId$$5_slaveComponent$$2$$.getMessage(), $text$$28$$ = $dialogId$$5_slaveComponent$$2$$.getText(), $shortDesc$$ = $dialogId$$5_slaveComponent$$2$$.getShortDesc());
        var $dialogId$$5_slaveComponent$$2$$ = this.$getMessageDialogId$(), $dialogComponent_page$$89$$ = $dialogComponent_page$$89$$.$findComponent$($dialogId$$5_slaveComponent$$2$$), $root$$6$$ = this.$getDomElement$(), $realMaxType$$ = 0;
        $maxType$$7_tempMaxType$$ != $JSCompiler_alias_NULL$$ && ($realMaxType$$ = $maxType$$7_tempMaxType$$);
        if($globalOnly$$2$$) {
          $realMaxType$$ = $globalMessages$$1$$.$maxType$
        }else {
          for(var $clientId2$$ in $allMessages$$1_dialogContent_div$$6_titleIcon$$) {
            $maxType$$7_tempMaxType$$ = $allMessages$$1_dialogContent_div$$6_titleIcon$$[$clientId2$$].$maxType$, $maxType$$7_tempMaxType$$ > $realMaxType$$ && ($realMaxType$$ = $maxType$$7_tempMaxType$$)
          }
        }
        $agent$$218_alwaysShow$$.$getExpandoProperty$($root$$6$$, $AdfRichUIPeer$$.$__TYPE_ATTR$) != $realMaxType$$ && ($agent$$218_alwaysShow$$.$setExpandoProperty$($root$$6$$, $AdfRichUIPeer$$.$__TYPE_ATTR$, $realMaxType$$), $allMessages$$1_dialogContent_div$$6_titleIcon$$ = $AdfMessageUtils$$.getIcon($realMaxType$$, $JSCompiler_alias_TRUE$$), $dialogComponent_page$$89$$.setTitleIconSource($allMessages$$1_dialogContent_div$$6_titleIcon$$.src), $text$$28$$ ? $dialogComponent_page$$89$$.setTitle($text$$28$$) : 
        $dialogComponent_page$$89$$.setTitle($AdfMessageUtils$$.$getString$($realMaxType$$)));
        $allMessages$$1_dialogContent_div$$6_titleIcon$$ = $AdfRichUIPeer$$.$CreateSubId$($dialogId$$5_slaveComponent$$2$$, "_cnt");
        if($allMessages$$1_dialogContent_div$$6_titleIcon$$ = $agent$$218_alwaysShow$$.getElementById($allMessages$$1_dialogContent_div$$6_titleIcon$$)) {
          $clientId$$145_dialog$$6_wrapper$$14$$ = $AdfMessageUtils$$.$getCombinedMessagesDom$($clientId$$145_dialog$$6_wrapper$$14$$, $message$$60$$, $globalOnly$$2$$), $shortDesc$$ != $JSCompiler_alias_NULL$$ && ($clientId$$145_dialog$$6_wrapper$$14$$.title = $shortDesc$$), $allMessages$$1_dialogContent_div$$6_titleIcon$$.hasChildNodes() ? $allMessages$$1_dialogContent_div$$6_titleIcon$$.replaceChild($clientId$$145_dialog$$6_wrapper$$14$$, $allMessages$$1_dialogContent_div$$6_titleIcon$$.firstChild) : 
          $allMessages$$1_dialogContent_div$$6_titleIcon$$.appendChild($clientId$$145_dialog$$6_wrapper$$14$$)
        }
        this.$isMessagesInline$() && ($clientId$$145_dialog$$6_wrapper$$14$$ = $agent$$218_alwaysShow$$.getElementById($dialogId$$5_slaveComponent$$2$$), this.$showPopup$($compMessages$$1_component$$696$$, $clientId$$145_dialog$$6_wrapper$$14$$, {topPosition:0.25}))
      }
    }
  }
  this.$_globalMessageCount$ = $globalMessageCount_messages$$13$$
};
function $JSCompiler_StaticMethods__getSlaveComponent$$() {
  var $page$$90$$ = $AdfPage$$.$PAGE$, $slaveClientId$$ = $page$$90$$.$getMessageHandlerSlaveComponentId$();
  return $slaveClientId$$ != $JSCompiler_alias_NULL$$ ? $page$$90$$.$findComponent$($slaveClientId$$) : $JSCompiler_alias_NULL$$
}
$AdfDhtmlDocumentPeer$$.prototype.$_activateFocus$ = function $$AdfDhtmlDocumentPeer$$$$$_activateFocus$$() {
  var $focusId$$1$$ = this.$getComponent$().getInitialFocusId();
  if($focusId$$1$$) {
    var $focusComp$$ = $AdfPage$$.$PAGE$.$findComponentByAbsoluteId$($focusId$$1$$);
    $focusComp$$ ? $focusComp$$.focus() : $AdfLogger$$.$LOGGER$.warning("Invalid component id referenced by document initialFocusId: " + $focusId$$1$$ + ". You may need to set clientComponent to true for the desired focus component.")
  }
  window.clearTimeout(this.$_focusTimerId$);
  this.$_focusTimerId$ = this.$_activateFocusCallback$ = $JSCompiler_alias_NULL$$
};
function $JSCompiler_StaticMethods__getSkipLinkElement$$($component$$698_documentId_skipLinkId$$) {
  $AdfAssert$$.assert($component$$698_documentId_skipLinkId$$);
  $component$$698_documentId_skipLinkId$$ = $component$$698_documentId_skipLinkId$$.$getClientId$();
  $component$$698_documentId_skipLinkId$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$698_documentId_skipLinkId$$, $AdfDhtmlDocumentPeer$$.$_SKIP_LINK_ID$);
  return $AdfAgent$$.$AGENT$.getElementById($component$$698_documentId_skipLinkId$$)
}
$AdfDhtmlDocumentPeer$$.$_getSkipLinkTargetId$ = function $$AdfDhtmlDocumentPeer$$$$_getSkipLinkTargetId$$($component$$699$$) {
  return $component$$699$$.$getProperty$("_afrSkpLnk")
};
$AdfDhtmlDocumentPeer$$.$_isPotentiallyFocusable$ = function $$AdfDhtmlDocumentPeer$$$$_isPotentiallyFocusable$$($element$$207$$) {
  if($AdfFocusUtils$$.$isFocusable$($element$$207$$)) {
    return $JSCompiler_alias_TRUE$$
  }
  var $potentiallyFocusable$$ = $JSCompiler_alias_FALSE$$;
  switch($element$$207$$.nodeName.toLowerCase()) {
    case "div":
    ;
    case "span":
    ;
    case "h1":
    ;
    case "h2":
    ;
    case "h3":
    ;
    case "h4":
    ;
    case "h5":
    ;
    case "h6":
      $potentiallyFocusable$$ = $JSCompiler_alias_TRUE$$
  }
  return $potentiallyFocusable$$ ? $AdfFocusUtils$$.$isConnectedAndVisible$($element$$207$$) : $JSCompiler_alias_FALSE$$
};
$AdfDhtmlDocumentPeer$$.prototype.$_delayedSetDocumentTitle$ = function $$AdfDhtmlDocumentPeer$$$$$_delayedSetDocumentTitle$$() {
  var $doc$$40$$ = this.$getDomDocument$(), $comp$$4$$ = this.$getComponent$();
  $comp$$4$$ && ($doc$$40$$.title = $comp$$4$$.getTitle())
};
$AdfDhtmlDocumentPeer$$.prototype.$_setUncommittedDataWarning$ = function $$AdfDhtmlDocumentPeer$$$$$_setUncommittedDataWarning$$($component$$702_opt$$) {
  $component$$702_opt$$ = $component$$702_opt$$.getUncommittedDataWarning();
  $AdfPage$$.$PAGE$.$__initUncommittedDataWarningForDocument$($component$$702_opt$$ && "on" == $component$$702_opt$$.toLowerCase())
};
$AdfDhtmlDocumentPeer$$.prototype.$__showAlertConfirm$ = function $$AdfDhtmlDocumentPeer$$$$$__showAlertConfirm$$($isAlert_state$$40$$, $title$$10$$, $message$$61$$, $callback$$49$$, $timeout$$2$$) {
  $AdfAssert$$.$assertString$($title$$10$$);
  $AdfAssert$$.$assertString$($message$$61$$);
  $AdfAssert$$.$assertFunction$($callback$$49$$, "confirm callback");
  $timeout$$2$$ && $AdfAssert$$.$assertNumber$($timeout$$2$$, "confirm timeout");
  var $page$$92$$ = $AdfPage$$.$PAGE$, $dialogId$$6_popupUtilContainer$$ = $AdfAgent$$.$AGENT$.getElementById($AdfDhtmlDocumentPeer$$.$_ALERT_CONFIRM_DIALOG_CONTAINER_ID$);
  $AdfAssert$$.$assertDomElement$($dialogId$$6_popupUtilContainer$$, "DIV");
  $dialogId$$6_popupUtilContainer$$ = $dialogId$$6_popupUtilContainer$$.getAttribute($AdfDhtmlDocumentPeer$$.$_ALERT_CONFIRM_DIALOG_ID_EXPANDO$);
  $AdfAssert$$.$assertString$($dialogId$$6_popupUtilContainer$$);
  var $dialog$$7$$ = $page$$92$$.$findComponent$($dialogId$$6_popupUtilContainer$$);
  $AdfAssert$$.$assertPrototype$($dialog$$7$$, AdfRichDialog);
  var $popup$$16$$ = $dialog$$7$$.getParent();
  $AdfAssert$$.$assertPrototype$($popup$$16$$, AdfRichPopup);
  if($popup$$16$$.$isPopupVisible$()) {
    return $JSCompiler_alias_FALSE$$
  }
  $dialog$$7$$.setTitle($title$$10$$);
  $AdfDhtmlDocumentPeer$$.$_setAlertConfirmMessage$($dialogId$$6_popupUtilContainer$$, $message$$61$$);
  $AdfDhtmlDialogPeer$$.$__setButtonVisible$($dialogId$$6_popupUtilContainer$$, !$isAlert_state$$40$$);
  $dialog$$7$$.addEventListener($AdfDialogEvent$$.$EVENT_TYPE$, $AdfDhtmlDocumentPeer$$.$_alertConfirmCallback$);
  $isAlert_state$$40$$ = {$callback$:$callback$$49$$, $dialogId$:$dialogId$$6_popupUtilContainer$$};
  $timeout$$2$$ && ($isAlert_state$$40$$.$timerId$ = $page$$92$$.$scheduleTimer$(this, $AdfDhtmlDocumentPeer$$.$_alertConfirmTimeoutCallback$, $dialogId$$6_popupUtilContainer$$, $timeout$$2$$));
  $page$$92$$.$setPageProperty$($dialogId$$6_popupUtilContainer$$, $isAlert_state$$40$$);
  $popup$$16$$.show({zorderScope:2});
  return $JSCompiler_alias_TRUE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDocumentPeer.prototype.__showAlertConfirm", {$__showAlertConfirm$:$AdfDhtmlDocumentPeer$$.prototype.$__showAlertConfirm$});
function $JSCompiler_StaticMethods__getMessageDialogContainerId$$($JSCompiler_StaticMethods__getMessageDialogContainerId$self_clientId$$146$$) {
  $JSCompiler_StaticMethods__getMessageDialogContainerId$self_clientId$$146$$ = $JSCompiler_StaticMethods__getMessageDialogContainerId$self_clientId$$146$$.$getComponent$().$getClientId$();
  return $AdfRichUIPeer$$.$CreateSubId$($JSCompiler_StaticMethods__getMessageDialogContainerId$self_clientId$$146$$, $AdfDhtmlDocumentPeer$$.$_MESSAGE_DIALOG_CONTAINER_ID$)
}
$AdfDhtmlDocumentPeer$$.$_alertConfirmTimeoutCallback$ = function $$AdfDhtmlDocumentPeer$$$$_alertConfirmTimeoutCallback$$($dialog$$8_dialogId$$7$$) {
  $dialog$$8_dialogId$$7$$ = $AdfPage$$.$PAGE$.$findComponent$($dialog$$8_dialogId$$7$$);
  var $peer$$91$$ = $dialog$$8_dialogId$$7$$.$getPeer$();
  $peer$$91$$.bind($dialog$$8_dialogId$$7$$);
  $peer$$91$$.$fireCancel$()
};
$AdfDhtmlDocumentPeer$$.$_alertConfirmCallback$ = function $$AdfDhtmlDocumentPeer$$$$_alertConfirmCallback$$($event$$153$$) {
  $event$$153$$.cancel();
  var $dialog$$9$$ = $event$$153$$.getSource(), $dialogId$$8$$ = $dialog$$9$$.$getClientId$(), $callback$$50_page$$93_popup$$17$$ = $dialog$$9$$.getParent();
  $AdfAssert$$.$assertPrototype$($callback$$50_page$$93_popup$$17$$, AdfRichPopup);
  $callback$$50_page$$93_popup$$17$$.cancel();
  var $callback$$50_page$$93_popup$$17$$ = $AdfPage$$.$PAGE$, $state$$41$$ = $callback$$50_page$$93_popup$$17$$.$getPageProperty$($dialogId$$8$$);
  $AdfAssert$$.$assertObject$($state$$41$$, "alert/confirm state token invalid");
  $callback$$50_page$$93_popup$$17$$.$setPageProperty$($dialogId$$8$$, $JSCompiler_alias_NULL$$);
  $state$$41$$.$timerId$ && $callback$$50_page$$93_popup$$17$$.$cancelTimer$($state$$41$$.$timerId$);
  $callback$$50_page$$93_popup$$17$$ = $state$$41$$.$callback$;
  try {
    $callback$$50_page$$93_popup$$17$$($event$$153$$)
  }catch($e$$123$$) {
    $AdfLogger$$.$LOGGER$.$logErrorAsWarning$($e$$123$$, "exception caught calling alert/confirm dialog event callback")
  }
  $dialog$$9$$.setTitle("");
  $AdfDhtmlDocumentPeer$$.$_setAlertConfirmMessage$($dialogId$$8$$, "");
  $dialog$$9$$.removeEventListener($AdfDialogEvent$$.$EVENT_TYPE$, $AdfDhtmlDocumentPeer$$.$_alertConfirmCallback$)
};
$AdfDhtmlDocumentPeer$$.$_setAlertConfirmMessage$ = function $$AdfDhtmlDocumentPeer$$$$_setAlertConfirmMessage$$($dialogId$$9$$, $message$$62$$) {
  var $agent$$220$$ = $AdfAgent$$.$AGENT$, $contentDom$$10_contentId$$4$$ = $AdfRichUIPeer$$.$createSubId$($dialogId$$9$$, $AdfDhtmlDocumentPeer$$.$_DIALOG_CONTENT_SUBID$), $contentDom$$10_contentId$$4$$ = $agent$$220$$.getElementById($contentDom$$10_contentId$$4$$);
  $AdfAssert$$.$assertDomElement$($contentDom$$10_contentId$$4$$, "TD");
  $agent$$220$$.$setTextContent$($contentDom$$10_contentId$$4$$, $message$$62$$)
};
