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_969$$) {
  var $bounds$$inline_971_myInstance$$ = $AdfDhtmlTooltipManager$$.$_theInstance$;
  if ($bounds$$inline_971_myInstance$$.$_rollOverBoundsChecker$) {
    var $pageY$$inline_970_pos$$16$$ = $AdfAgent$$.$AGENT$.$getMousePosition$($evt$$74_pageX$$inline_969$$);
    $evt$$74_pageX$$inline_969$$ = $pageY$$inline_970_pos$$16$$.x;
    $pageY$$inline_970_pos$$16$$ = $pageY$$inline_970_pos$$16$$.y;
    $bounds$$inline_971_myInstance$$ = $bounds$$inline_971_myInstance$$.$_rollOverBoundsChecker$;
    ($evt$$74_pageX$$inline_969$$ < $bounds$$inline_971_myInstance$$.left || $evt$$74_pageX$$inline_969$$ > $bounds$$inline_971_myInstance$$.right || $pageY$$inline_970_pos$$16$$ < $bounds$$inline_971_myInstance$$.top || $pageY$$inline_970_pos$$16$$ > $bounds$$inline_971_myInstance$$.bottom) && $bounds$$inline_971_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$$174_rollOverElem$$ = $rollOverWindow$$2$$.$getElement$();
    $AdfDomUtils$$.$isAncestor$($domDocument$$27_redistributeRollOverCallback$$, $element$$174_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$$174_rollOverElem$$ = $rollOverWindow$$2$$.$getElement$(), $element$$174_rollOverElem$$.onmousedown = $domDocument$$27_redistributeRollOverCallback$$, $element$$174_rollOverElem$$.onmouseup = $domDocument$$27_redistributeRollOverCallback$$, 
  $element$$174_rollOverElem$$.onclick = $domDocument$$27_redistributeRollOverCallback$$, $element$$174_rollOverElem$$.ondblclick = $domDocument$$27_redistributeRollOverCallback$$, $element$$174_rollOverElem$$.oncontextmenu = $domDocument$$27_redistributeRollOverCallback$$, $agent$$149$$.$disableUserSelect$($element$$174_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$$120$$) {
  $event$$120$$ || ($event$$120$$ = window.event);
  if (this.$_currRollOverTarget$) {
    var $agent$$150$$ = $AdfAgent$$.$AGENT$, $agent$$inline_975_dispatchTarget$$, $currRollOverTarget$$inline_978_event$$inline_974_newEvent$$12$$ = $event$$120$$;
    $agent$$inline_975_dispatchTarget$$ = $AdfAgent$$.$getAgent$();
    var $target$$inline_976_theParentNode$$inline_981$$ = $agent$$inline_975_dispatchTarget$$.$getEventTarget$($currRollOverTarget$$inline_978_event$$inline_974_newEvent$$12$$), $actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$ = $target$$inline_976_theParentNode$$inline_981$$.id, $dispatchEventTarget$$inline_979_href$$9$$ = $currRollOverTarget$$inline_978_event$$inline_974_newEvent$$12$$ = this.$_currRollOverTarget$;
    if ($currRollOverTarget$$inline_978_event$$inline_974_newEvent$$12$$) {
      for (var $tooltipRoot$$inline_980$$ = this.$_rollOverWindow$.$getElement$();$target$$inline_976_theParentNode$$inline_981$$ != $tooltipRoot$$inline_980$$ && (null == $actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$ || "" == $actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$);) {
        $target$$inline_976_theParentNode$$inline_981$$ = $target$$inline_976_theParentNode$$inline_981$$.parentNode;
        if (null == $target$$inline_976_theParentNode$$inline_981$$) {
          break;
        }
        $actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$ = $target$$inline_976_theParentNode$$inline_981$$.id;
      }
      null != $actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$ && "" != $actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$ && ($actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$ = $actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$.replace(/::_afrtt/, ""), $dispatchEventTarget$$inline_979_href$$9$$ = $agent$$inline_975_dispatchTarget$$.getElementById($actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$));
    }
    $dispatchEventTarget$$inline_979_href$$9$$ || ($dispatchEventTarget$$inline_979_href$$9$$ = $currRollOverTarget$$inline_978_event$$inline_974_newEvent$$12$$);
    if ($agent$$inline_975_dispatchTarget$$ = $dispatchEventTarget$$inline_979_href$$9$$) {
      $currRollOverTarget$$inline_978_event$$inline_974_newEvent$$12$$ = $agent$$150$$.$copyEvent$($event$$120$$);
      if ($actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$ = "click" == $event$$120$$.type && "A" == $agent$$150$$.$getNodeName$($agent$$inline_975_dispatchTarget$$) && $agent$$inline_975_dispatchTarget$$.href && "" != $agent$$inline_975_dispatchTarget$$.href) {
        $dispatchEventTarget$$inline_979_href$$9$$ = $agent$$inline_975_dispatchTarget$$.href, "#" == $dispatchEventTarget$$inline_979_href$$9$$.charAt($dispatchEventTarget$$inline_979_href$$9$$.length - 1) && -1 != $dispatchEventTarget$$inline_979_href$$9$$.indexOf($agent$$150$$.$getDomWindow$().location.pathname) && ($actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$ = !1);
      }
      $actualId$$inline_982_clickOnValidHref_targetId$$inline_977$$ || $agent$$150$$.$eatEvent$($event$$120$$);
      $agent$$150$$.dispatchEvent($agent$$inline_975_dispatchTarget$$, $currRollOverTarget$$inline_978_event$$inline_974_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$);
