function $AdfDhtmlTooltipManager$$() {
  this.Init();
}
$goog$exportSymbol$$("AdfDhtmlTooltipManager", $AdfDhtmlTooltipManager$$);
$AdfObject$$.$createSubclass$($AdfDhtmlTooltipManager$$);
$AdfDhtmlTooltipManager$$.prototype.Init = function $$AdfDhtmlTooltipManager$$$$Init$() {
  $AdfDhtmlTooltipManager$$.$superclass$.Init.call(this);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTooltipManager.prototype.Init", {Init:$AdfDhtmlTooltipManager$$.prototype.Init});
$AdfDhtmlTooltipManager$$.$_handleMouseMove$ = function $$AdfDhtmlTooltipManager$$$$_handleMouseMove$$($evt$$74_pageX$$inline_974$$) {
  var $bounds$$inline_976_myInstance$$ = $AdfDhtmlTooltipManager$$.$_theInstance$;
  if ($bounds$$inline_976_myInstance$$.$_rollOverBoundsChecker$) {
    var $pageY$$inline_975_pos$$16$$ = $AdfAgent$$.$AGENT$.$getMousePosition$($evt$$74_pageX$$inline_974$$);
    $evt$$74_pageX$$inline_974$$ = $pageY$$inline_975_pos$$16$$.x;
    $pageY$$inline_975_pos$$16$$ = $pageY$$inline_975_pos$$16$$.y;
    $bounds$$inline_976_myInstance$$ = $bounds$$inline_976_myInstance$$.$_rollOverBoundsChecker$;
    ($evt$$74_pageX$$inline_974$$ < $bounds$$inline_976_myInstance$$.left || $evt$$74_pageX$$inline_974$$ > $bounds$$inline_976_myInstance$$.right || $pageY$$inline_975_pos$$16$$ < $bounds$$inline_976_myInstance$$.top || $pageY$$inline_975_pos$$16$$ > $bounds$$inline_976_myInstance$$.bottom) && $bounds$$inline_976_myInstance$$.$notify$();
  }
};
$AdfDhtmlTooltipManager$$.prototype.$showRollOverLabel$ = function $$AdfDhtmlTooltipManager$$$$$showRollOverLabel$$($boundsCheck_containerElement$$) {
  $AdfAssert$$.$assertDomElement$($boundsCheck_containerElement$$);
  if ($boundsCheck_containerElement$$ != this.$_currRollOverTarget$) {
    this.$_currRollOverTarget$ = $boundsCheck_containerElement$$;
    var $agent$$147$$ = $AdfAgent$$.$AGENT$, $domDocument$$25_rollOverTop$$ = $agent$$147$$.$getDomDocument$();
    $agent$$147$$.$addBubbleEventListener$($domDocument$$25_rollOverTop$$, "mousemove", $AdfDhtmlTooltipManager$$.$_handleMouseMove$);
    var $pos$$17_rollOverLeft$$ = $agent$$147$$.$getElementPosition$($boundsCheck_containerElement$$), $domDocument$$25_rollOverTop$$ = $pos$$17_rollOverLeft$$.y, $pos$$17_rollOverLeft$$ = $pos$$17_rollOverLeft$$.x;
    null != this.$_offsetLeft$ && ($domDocument$$25_rollOverTop$$ -= this.$_offsetTop$, $pos$$17_rollOverLeft$$ -= this.$_offsetLeft$);
    var $rollOverWindow$$ = $JSCompiler_StaticMethods__getRollOverWindow$$(this), $contentNode$$24_oX$$ = $boundsCheck_containerElement$$.cloneNode(!0);
    $agent$$147$$.$modifyIdsInDomSubTree$($contentNode$$24_oX$$, !1, "_afrtt");
    $rollOverWindow$$.$setContent$($contentNode$$24_oX$$);
    $rollOverWindow$$.show($domDocument$$25_rollOverTop$$, $pos$$17_rollOverLeft$$);
    if (null == this.$_offsetLeft$) {
      var $oY_ttStyle$$ = $agent$$147$$.getComputedStyle($rollOverWindow$$.$getElement$()), $contentNode$$24_oX$$ = this.$_offsetLeft$ = $AdfAgent$$.$getCSSLengthAsInt$($oY_ttStyle$$.borderLeftWidth) + $AdfAgent$$.$getCSSLengthAsInt$($oY_ttStyle$$.paddingLeft), $oY_ttStyle$$ = this.$_offsetTop$ = $AdfAgent$$.$getCSSLengthAsInt$($oY_ttStyle$$.borderTopWidth) + $AdfAgent$$.$getCSSLengthAsInt$($oY_ttStyle$$.paddingTop);
      $rollOverWindow$$.setPosition($domDocument$$25_rollOverTop$$ - $oY_ttStyle$$, $pos$$17_rollOverLeft$$ - $contentNode$$24_oX$$);
    }
    $boundsCheck_containerElement$$ = $agent$$147$$.$getElementPageBounds$($boundsCheck_containerElement$$);
    $boundsCheck_containerElement$$.$notify$ = this.$_hideRollOverCallback$;
    this.$_rollOverBoundsChecker$ = $boundsCheck_containerElement$$;
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTooltipManager.prototype.showRollOverLabel", {$showRollOverLabel$:$AdfDhtmlTooltipManager$$.prototype.$showRollOverLabel$});
$AdfDhtmlTooltipManager$$.prototype.$hideRollOverLabel$ = function $$AdfDhtmlTooltipManager$$$$$hideRollOverLabel$$() {
  var $agent$$148_rollOverWindow$$1$$ = $JSCompiler_StaticMethods__getRollOverWindow$$(this);
  $agent$$148_rollOverWindow$$1$$ && ($agent$$148_rollOverWindow$$1$$.$hide$(), $agent$$148_rollOverWindow$$1$$.$destroy$(), this.$_rollOverWindow$ = null);
  this.$_rollOverBoundsChecker$ = this.$_currRollOverTarget$ = null;
  var $agent$$148_rollOverWindow$$1$$ = $AdfAgent$$.$AGENT$, $domDocument$$26$$ = $agent$$148_rollOverWindow$$1$$.$getDomDocument$();
  $agent$$148_rollOverWindow$$1$$.$removeBubbleEventListener$($domDocument$$26$$, "mousemove", $AdfDhtmlTooltipManager$$.$_handleMouseMove$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTooltipManager.prototype.hideRollOverLabel", {$hideRollOverLabel$:$AdfDhtmlTooltipManager$$.prototype.$hideRollOverLabel$});
function $JSCompiler_StaticMethods__getRollOverWindow$$($JSCompiler_StaticMethods__getRollOverWindow$self$$) {
  var $rollOverWindow$$2$$ = $JSCompiler_StaticMethods__getRollOverWindow$self$$.$_rollOverWindow$, $agent$$149$$ = $AdfAgent$$.$getAgent$();
  if ($rollOverWindow$$2$$) {
    var $domDocument$$27_redistributeRollOverCallback$$ = $agent$$149$$.$getDomDocument$(), $element$$176_rollOverElem$$ = $rollOverWindow$$2$$.$getElement$();
    $AdfDomUtils$$.$isAncestor$($domDocument$$27_redistributeRollOverCallback$$, $element$$176_rollOverElem$$) || ($rollOverWindow$$2$$.$hide$(), $rollOverWindow$$2$$.$destroy$(), $JSCompiler_StaticMethods__getRollOverWindow$self$$.$_rollOverWindow$ = $rollOverWindow$$2$$ = null);
  }
  $rollOverWindow$$2$$ || ($rollOverWindow$$2$$ = new $AdfDhtmlTooltip$$, $domDocument$$27_redistributeRollOverCallback$$ = $JSCompiler_StaticMethods__getRollOverWindow$self$$.$createCallback$($JSCompiler_StaticMethods__getRollOverWindow$self$$.$_redistributeRollOverCallback$), $element$$176_rollOverElem$$ = $rollOverWindow$$2$$.$getElement$(), $element$$176_rollOverElem$$.onmousedown = $domDocument$$27_redistributeRollOverCallback$$, $element$$176_rollOverElem$$.onmouseup = $domDocument$$27_redistributeRollOverCallback$$, 
  $element$$176_rollOverElem$$.onclick = $domDocument$$27_redistributeRollOverCallback$$, $element$$176_rollOverElem$$.ondblclick = $domDocument$$27_redistributeRollOverCallback$$, $element$$176_rollOverElem$$.oncontextmenu = $domDocument$$27_redistributeRollOverCallback$$, $agent$$149$$.$disableUserSelect$($element$$176_rollOverElem$$), $JSCompiler_StaticMethods__getRollOverWindow$self$$.$_rollOverWindow$ = $rollOverWindow$$2$$);
  return $rollOverWindow$$2$$;
}
$AdfDhtmlTooltipManager$$.prototype.$_hideRollOverCallback$ = function $$AdfDhtmlTooltipManager$$$$$_hideRollOverCallback$$() {
  $AdfDhtmlTooltipManager$$.$getInstance$().$hideRollOverLabel$();
};
$AdfDhtmlTooltipManager$$.prototype.$_redistributeRollOverCallback$ = function $$AdfDhtmlTooltipManager$$$$$_redistributeRollOverCallback$$($event$$127$$) {
  $event$$127$$ || ($event$$127$$ = window.event);
  if (this.$_currRollOverTarget$) {
    var $agent$$150$$ = $AdfAgent$$.$AGENT$, $agent$$inline_980_dispatchTarget$$, $currRollOverTarget$$inline_983_event$$inline_979_newEvent$$12$$ = $event$$127$$;
    $agent$$inline_980_dispatchTarget$$ = $AdfAgent$$.$getAgent$();
    var $target$$inline_981_theParentNode$$inline_986$$ = $agent$$inline_980_dispatchTarget$$.$getEventTarget$($currRollOverTarget$$inline_983_event$$inline_979_newEvent$$12$$), $actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$ = $target$$inline_981_theParentNode$$inline_986$$.id, $dispatchEventTarget$$inline_984_href$$9$$ = $currRollOverTarget$$inline_983_event$$inline_979_newEvent$$12$$ = this.$_currRollOverTarget$;
    if ($currRollOverTarget$$inline_983_event$$inline_979_newEvent$$12$$) {
      for (var $tooltipRoot$$inline_985$$ = this.$_rollOverWindow$.$getElement$();$target$$inline_981_theParentNode$$inline_986$$ != $tooltipRoot$$inline_985$$ && (null == $actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$ || "" == $actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$);) {
        $target$$inline_981_theParentNode$$inline_986$$ = $target$$inline_981_theParentNode$$inline_986$$.parentNode;
        if (null == $target$$inline_981_theParentNode$$inline_986$$) {
          break;
        }
        $actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$ = $target$$inline_981_theParentNode$$inline_986$$.id;
      }
      null != $actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$ && "" != $actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$ && ($actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$ = $actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$.replace(/::_afrtt/, ""), $dispatchEventTarget$$inline_984_href$$9$$ = $agent$$inline_980_dispatchTarget$$.getElementById($actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$));
    }
    $dispatchEventTarget$$inline_984_href$$9$$ || ($dispatchEventTarget$$inline_984_href$$9$$ = $currRollOverTarget$$inline_983_event$$inline_979_newEvent$$12$$);
    if ($agent$$inline_980_dispatchTarget$$ = $dispatchEventTarget$$inline_984_href$$9$$) {
      $currRollOverTarget$$inline_983_event$$inline_979_newEvent$$12$$ = $agent$$150$$.$copyEvent$($event$$127$$);
      if ($actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$ = "click" == $event$$127$$.type && "A" == $agent$$150$$.$getNodeName$($agent$$inline_980_dispatchTarget$$) && $agent$$inline_980_dispatchTarget$$.href && "" != $agent$$inline_980_dispatchTarget$$.href) {
        $dispatchEventTarget$$inline_984_href$$9$$ = $agent$$inline_980_dispatchTarget$$.href, "#" == $dispatchEventTarget$$inline_984_href$$9$$.charAt($dispatchEventTarget$$inline_984_href$$9$$.length - 1) && -1 != $dispatchEventTarget$$inline_984_href$$9$$.indexOf($agent$$150$$.$getDomWindow$().location.pathname) && ($actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$ = !1);
      }
      $actualId$$inline_987_clickOnValidHref_targetId$$inline_982$$ || $agent$$150$$.$eatEvent$($event$$127$$);
      $agent$$150$$.dispatchEvent($agent$$inline_980_dispatchTarget$$, $currRollOverTarget$$inline_983_event$$inline_979_newEvent$$12$$);
    }
    return !0;
  }
};
$AdfDhtmlTooltipManager$$.$getInstance$ = function $$AdfDhtmlTooltipManager$$$$getInstance$$() {
  null == this.$_theInstance$ && (this.$_theInstance$ = new $AdfDhtmlTooltipManager$$);
  return this.$_theInstance$;
};
$goog$exportSymbol$$("AdfDhtmlTooltipManager.getInstance", $AdfDhtmlTooltipManager$$.$getInstance$);
