Type.registerNamespace("Telerik.Web.UI"); $telerik.toToolTip=function(a){return a; }; $telerik.findToolTip=$find; Telerik.Web.UI.RadToolTipControllerClass=function(){this._tooltipToShow=null; this._activeToolTip=null; this._registerGlobalBodyEventHandlers(); }; Telerik.Web.UI.RadToolTipControllerClass.prototype={_registerGlobalBodyEventHandlers:function(){var a=Function.createDelegate(this,function(c){if(c.keyCode==27){if(this._activeToolTip&&!this._activeToolTip.isModal()){this._hideCurrentToolTipNoAnimation(); }}}); var b=Function.createDelegate(this,function(c){this._hideOnBodyClick(c); }); Sys.Application.add_init(function(){$addHandler(document.body,"keydown",a); $addHandler(document.body,"click",b); }); Sys.Application.add_unload(function(){$removeHandler(document.body,"keydown",a); $removeHandler(document.body,"click",b); }); },_hideOnBodyClick:function(c){var a=false; if(this._activeToolTip!=null&&!this._activeToolTip.isModal()){var b=this._activeToolTip; if($telerik.isMouseOverElementEx(b._tableElement,c)){return; }a=this._activeToolTip._hideIfNotManualCloseOrFromCode(); }if(a){this._activeToolTip=null; }},_cancelLastShowRequest:function(){if(this._tooltipToShow){var a=this._tooltipToShow; this._tooltipToShow=null; a.cancelShowDelay(); }},_hideCurrentToolTipNoAnimation:function(){this._cancelLastShowRequest(); if(this._activeToolTip!=null){this._activeToolTip._hideNoAnimation(); }this._activeToolTip=null; },requestShow:function(b){this._cancelLastShowRequest(); var a=this._activeToolTip; if(a==b){return; }else{if(a){a._hideIfNotManualCloseOrFromCode(); }}this._tooltipToShow=b; },cancelSpecificShowRequest:function(a){if(this._tooltipToShow==a){this._cancelLastShowRequest(); }},showTooltip:function(a){if(!a||a.isVisible()){return; }this._cancelLastShowRequest(); this.set_activeToolTip(a); a.show(); },notifyToolTipClosed:function(a){if(this._activeToolTip==a){this._activeToolTip=null; }},set_activeToolTip:function(b){var a=this._activeToolTip; if(a&&b!=a){this._hideCurrentToolTipNoAnimation(); }this._activeToolTip=b; },get_activeToolTip:function(){return this._activeToolTip; },getInstance:function(){return this; }}; Telerik.Web.UI.RadToolTipControllerClass.registerClass("Telerik.Web.UI.RadToolTipControllerClass",null); if(!Telerik.Web.UI.RadToolTipController){Telerik.Web.UI.RadToolTipController=new Telerik.Web.UI.RadToolTipControllerClass(); }Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadToolTip=function(a){Telerik.Web.UI.RadToolTip.initializeBase(this,[a]); this._offsetX=0; this._offsetY=6; this._position=Telerik.Web.UI.ToolTipPosition.BottomCenter; this._horizontalPosition=null; this._verticalPosition=null; this._targetControlID=null; this._serverTargetControlID=null; this._serverValue=""; this._formID=null; this._targetControl=null; this._popupElement=null; this._tableElement=null; this._contentCell=null; this._titleElement=null; this._contentElement=null; this._calloutElement=null; this._closeLink=null; this._manualCloseButton=null; this._popupBehavior=null; this._modal=false; this._overlay=false; this._onModalShowHandler=null; this._onModalCloseHandler=null; this._skin="Default"; this._title=""; this._text=""; this._manualCloseButtonText=""; this._width=""; this._height=""; this._relativeTo=Telerik.Web.UI.ToolTipRelativeDisplay.Mouse; this._contentScrolling=Telerik.Web.UI.ToolTipScrolling.Default; this._showEvent=Telerik.Web.UI.ToolTipShowEvent.OnMouseOver; this._hideEvent=Telerik.Web.UI.ToolTipHideEvent.Default; this._visibleOnPageLoad=false; this._mouseTrailing=false; this._showCallout=true; this._renderInPageRoot=false; this._showDelayRef=null; this._autoCloseRef=null; this._showDelay=400; this._autoCloseDelay=3000; this._hideDelay=300; this._animation=Telerik.Web.UI.ToolTipAnimation.None; this._animationDuration=500; this._zIndex=8000; this._cssClass=null; }; Telerik.Web.UI.RadToolTip.getCurrent=function(){var a=Telerik.Web.UI.RadToolTipController.getInstance(); if(!a){return null; }return a.get_activeToolTip(); }; Telerik.Web.UI.RadToolTip.prototype={get_zIndex:function(){return this._zIndex; },set_zIndex:function(b){var a=parseInt(b); if(isNaN(b)){return; }if(this._zIndex!=b){this._zIndex=b; }},initialize:function(){Telerik.Web.UI.RadToolTip.callBaseMethod(this,"initialize"); this.set_position(this._position); this._getToolTipAltText(this._targetControl); var a=$telerik.getCurrentStyle(this.get_element(),"zIndex"); if(null!=a){this.set_zIndex(a); }if(this._visibleOnPageLoad){setTimeout(Function.createDelegate(this,function(){this.show(); }),0); }},dispose:function(){this._getToolTipController().set_activeToolTip(null); if(this._showRef){window.clearTimeout(this._showRef); this._showRef=null; }if(this._popupBehavior){this._popupBehavior.dispose(); this._popupBehavior=null; }this._registerPopupHandlers(false); this._registerMouseHandlers(this._targetControl,false); this._makeModal(false); if(this._closeLinkHandler&&this._closeLink){$clearHandlers(this._closeLink); this._closeLinkHandler=null; }if(this._popupElement){var a=this.get_id(); if(a){var b=$get(a); if(b){b.appendChild(this._popupElement); }}}Telerik.Web.UI.RadToolTip.callBaseMethod(this,"dispose"); },isCreated:function(){return this._popupElement!=null; },get_leaveTargetAndToolTip:function(){return this.isHideEventEnabled(Telerik.Web.UI.ToolTipHideEvent.LeaveTargetAndToolTip); },isHideEventEnabled:function(a){return a&this._hideEvent; },hide:function(){this._hideUnconditionally(); },_hideIfNotManualCloseOrFromCode:function(){var b=this.isHideEventEnabled(Telerik.Web.UI.ToolTipHideEvent.FromCode); var a=this.get_manualClose(); if(a||b){return false; }this._hideUnconditionally(); return true; },_hideUnconditionally:function(){if(!this.isVisible()){return; }this._hide(); },_hideNoAnimation:function(){this._hide(false); },_hide:function(c){if(this._animation!=Telerik.Web.UI.ToolTipAnimation.None){$telerik.$(this._popupElement).stop(); }this.cancelHideDelay(); this.cancelShowDelay(); this.cancelAutoCloseDelay(); var a=this._popupElement; if(!a){return; }var e=new Sys.CancelEventArgs(); this.raiseEvent("beforeHide",e); if(e.get_cancel()){return; }if(this._animation!=Telerik.Web.UI.ToolTipAnimation.None&&c!=false){var b=this._calloutElement; if(b){b.style.visibility="hidden"; }var d=Function.createDelegate(this,this._afterHide); $telerik.$(a).fadeOut(this._animationDuration,d); }else{this._afterHide(); }},_afterHide:function(){try{if(this._popupBehavior){this._popupBehavior.hide(); this._popupBehavior.pin(false); }}catch(a){}this._getToolTipController().notifyToolTipClosed(this); this.raiseEvent("hide"); this._registerPopupHandlers(false); },clone:function(a){var b=document.createElement("SPAN"); if(a){b.setAttribute("id",a); }return $telerik.cloneControl(this,Telerik.Web.UI.RadToolTip,b); },show:function(){if(!this.get_element()){return; }this._createUI(); var a=new Sys.CancelEventArgs(); this.raiseEvent("beforeShow",a); if(a.get_cancel()){return; }this._popupBehavior.pin(false); this._showRef=window.setTimeout(Function.createDelegate(this,function(){this._getToolTipController().set_activeToolTip(this); if(this._animation==Telerik.Web.UI.ToolTipAnimation.None){this._show(); this._afterShow(); }else{window.setTimeout(Function.createDelegate(this,function(){this._playAnimation(); }),100); }}),0); },updateLocation:function(){this._show(); },showLoadingMessage:function(a){var b=this._getFullSkinName(); var c="rtLoading"; if(a){Sys.UI.DomElement.addCssClass(this._contentCell,b); Sys.UI.DomElement.addCssClass(this._contentCell,c); }else{Sys.UI.DomElement.removeCssClass(this._contentCell,b); Sys.UI.DomElement.removeCssClass(this._contentCell,c); }},_getToolTipAltText:function(a){var d=a?a:this.get_targetControl(); if(d){var e=d.getAttribute("title"); var b=d.getAttribute("alt"); if(e||b){d.removeAttribute("alt"); d.removeAttribute("title"); if(!this.get_text()){var c=e?e:b; this.set_text(c); }}}},isModal:function(){return this._modal; },set_contentElement:function(a){this._contentCell.innerHTML=""; if(a.parentNode&&a.parentNode.removeChild){a.parentNode.removeChild(a); }this._contentCell.appendChild(a); a.style.display=""; this._contentElement=a; this._setOverflow(); this.showLoadingMessage(false); },get_contentElement:function(){return this._contentElement; },set_content:function(b){this._text=b; if(this.isCreated()){var a=document.createElement("DIV"); a.innerHTML=b; this.set_contentElement(a); }},get_content:function(){return this._contentElement?this._contentElement.innerHTML:""; },cancelHideDelay:function(){if(this._hideDelayRef){window.clearTimeout(this._hideDelayRef); this._hideDelayRef=0; }},cancelAutoCloseDelay:function(){if(this._autoCloseRef){window.clearTimeout(this._autoCloseRef); this._autoCloseRef=0; }},cancelShowDelay:function(){if(this._showDelayRef){window.clearTimeout(this._showDelayRef); this._showDelayRef=null; }this._getToolTipController().cancelSpecificShowRequest(this); },_getToolTipController:function(){return Telerik.Web.UI.RadToolTipController.getInstance(); },_resetAutoCloseDelay:function(){this.cancelAutoCloseDelay(); if(this.get_manualClose()||this.get_sticky()){return; }if(this._autoCloseDelay){this._autoCloseRef=window.setTimeout(Function.createDelegate(this,function(){this._hideIfNotManualCloseOrFromCode(); }),this._autoCloseDelay); }},_resetShowDelay:function(){this.cancelShowDelay(); var a=Function.createDelegate(this,function(){this._getToolTipController().showTooltip(this); this.cancelShowDelay(); }); this._showDelayRef=window.setTimeout(a,this._showDelay); },_resetHideDelay:function(){this.cancelHideDelay(); if(this._hideDelay>0){this._hideDelayRef=window.setTimeout(Function.createDelegate(this,function(){this._hideIfNotManualCloseOrFromCode(); }),this._hideDelay); }else{this._hideIfNotManualCloseOrFromCode(); }},_show:function(){var d=null; try{d=this.getToolTipBounds(); }catch(c){var a=this; window.setTimeout(function(){a._addToolTipToDocument(); },10); return; }this._setPopupVisible(d.x,d.y); var b=this.get_contentElement(); if(b){$telerik.repaintChildren(b); }},_afterShow:function(){this._registerPopupHandlers(true); this._popupBehavior.pin(this._isRelativeToBrowserWindow()); this._resetAutoCloseDelay(); if(this._animation==Telerik.Web.UI.ToolTipAnimation.None){this._adjustCallout(); }this.raiseEvent("show"); },_isRelativeToBrowserWindow:function(){if(!this._targetControl||this._relativeTo==Telerik.Web.UI.ToolTipRelativeDisplay.BrowserWindow){return true; }return false; },_playAnimation:function(){if(this!=Telerik.Web.UI.RadToolTip.getCurrent()){return; }var f=Function.createDelegate(this,function(){var l=this.getToolTipBounds(); this._setPopupVisible(l.x,l.y); this._adjustCallout(); var m=$telerik.getBounds(this._tableElement); $telerik.$(this._popupElement).hide(); return m; }); var a=f(); var j=Function.createDelegate(this,function(){if(this._isRelativeToBrowserWindow()){this._documentOverflowX=document.documentElement.style.overflowX; document.documentElement.style.overflowX="hidden"; }if(this.get_showCallout()&&this._calloutElement){this._calloutElement.style.visibility="hidden"; }}); var h=Function.createDelegate(this,function(){this._popupElement.style.filter=""; this.get_popupElement().style.opacity=""; if(this.get_showCallout()&&this._calloutElement){this._calloutElement.style.visibility=""; }this._show(); if(null!=this._documentOverflowX){document.documentElement.style.overflowX=this._documentOverflowX; this._documentOverflowX=null; }this._afterShow(); }); var b=this._popupElement; var g=this._animation; var c=""+this._position; var i=this._isRelativeToBrowserWindow(); if(i&&this._verticalPosition!=2){vp=(this._verticalPosition==1?3:1); c=parseInt(vp+""+this._horizontalPosition); }var k=i?document.documentElement:this._targetControl; var d=k?$telerik.getBounds(k):new Sys.UI.Bounds(1,1,1,1); var e=this._animationDuration; window.setTimeout(function(){Telerik.Web.UI.Animations.playJQueryAnimation(b,g,d,a,c,j,h,e); },0); },_makeModal:function(a){if(this._onModalShowHandler){this.remove_show(this._onModalShowHandler); this._onModalShowHandler=null; }if(this._onModalCloseHandler){this.remove_hide(this._onModalCloseHandler); this._onModalCloseHandler=null; }if(this._modalExtender){this._modalExtender.dispose(); this._modalExtender=null; }if(!a){return; }this._onModalShowHandler=function(b){if(!b._modalExtender){b._modalExtender=new Telerik.Web.UI.ModalExtender(b._popupElement); }b._modalExtender.show(); }; this.add_show(this._onModalShowHandler); this._onModalCloseHandler=function(b){if(b._modalExtender){b._modalExtender.hide(); }}; this.add_hide(this._onModalCloseHandler); },_onMouseOver:function(a){this._logMousePosition(a); this._resetShowDelay(); this.cancelHideDelay(); this.cancelAutoCloseDelay(); this._getToolTipController().requestShow(this); },_onMouseMove:function(a){this._logMousePosition(a); this._resetAutoCloseDelay(); if(this._mouseTrailing&&this.isVisible()){this._show(); }},_onMouseOut:function(b){if(!this.isVisible()){this.cancelShowDelay(); return; }var a=$telerik.isMouseOverElementEx(this._targetControl,b); if(!a){this.cancelShowDelay(); if(!this.get_sticky()){this._resetHideDelay(); }}},_onClick:function(a){this._onMouseOver(a); return $telerik.cancelRawEvent(a); },_onRightClick:function(a){this._onMouseOver(a); return $telerik.cancelRawEvent(a); },_registerMouseHandlers:function(f,d){if(true==d){var b={}; var c=Telerik.Web.UI.ToolTipShowEvent; if(this._showEvent==c.OnMouseOver){this._onMouseOverDelegate=Function.createDelegate(this,this._onMouseOver); this._onMouseMoveDelegate=Function.createDelegate(this,this._onMouseMove); this._onMouseOutDelegate=Function.createDelegate(this,this._onMouseOut); $telerik.addExternalHandler(f,"mouseover",this._onMouseOverDelegate); $telerik.addExternalHandler(f,"mousemove",this._onMouseMoveDelegate); $telerik.addExternalHandler(f,"mouseout",this._onMouseOutDelegate); }if(this._showEvent==c.OnClick){this._onClickDelegate=Function.createDelegate(this,this._onClick); $telerik.addExternalHandler(f,"click",this._onClickDelegate); }if(this._showEvent==c.OnRightClick){this._onRightClickDelegate=Function.createDelegate(this,this._onRightClick); $telerik.addExternalHandler(f,"contextmenu",this._onRightClickDelegate); }if(this._showEvent==c.OnFocus){this._onFocusDelegate=Function.createDelegate(this,this._onMouseOver); this._onBlurDelegate=Function.createDelegate(this,this._onMouseOut); $telerik.addExternalHandler(f,"focus",this._onFocusDelegate); $telerik.addExternalHandler(f,"blur",this._onBlurDelegate); }}else{if(f){var g=[["mouseover",this._onMouseOverDelegate],["mousemove",this._onMouseMoveDelegate],["mouseout",this._onMouseOutDelegate],["click",this._onClickDelegate],["contextmenu",this._onRightClickDelegate],["focus",this._onFocusDelegate],["blur",this._onBlurDelegate]]; for(var a=0; a0){var d=(parseInt(b.style.height)-c); if(d>0){b.style.height=d+"px"; }}}},_refreshTitle:function(){if(null==this._titleElement){return; }this._titleElement.innerHTML=this._title; this._titleElement.style.display=(this._title)?"":"none"; },getManualCloseButton:function(){return this._manualCloseButton; },_createManualCloseButton:function(a){if(this.get_manualClose()){var c=document.createElement("A"); c.href="javascript: void(0);"; c.className="rtCloseButton"; this._closeLinkHandler=Function.createDelegate(this,function(d){this._hideUnconditionally(); return $telerik.cancelRawEvent(d); }); $addHandler(c,"click",this._closeLinkHandler); this._closeLink=c; var b=document.createElement("SPAN"); b.innerHTML=this._manualCloseButtonText; c.title=this._manualCloseButtonText; this._manualCloseButton=c; c.appendChild(b); a.appendChild(c); }},_createUI:function(){if(!this._popupElement){var o=this.get_id(); var s="RadToolTipWrapper_"+o; var k=document.createElement("DIV"); k.id=s; var f=this.get_element(); var e=f.parentNode?f:this._getDefaultParent(); var u=$telerik.isRightToLeft(e); k.className=this._getFullSkinName()+(this.get_showCallout()?" rtVisibleCallout":"")+(u?" RadToolTip_rtl":"")+(this._cssClass?" "+this._cssClass:" "); k.setAttribute("unselectable","on"); this._popupElement=k; var v=document.createElement("DIV"); v.className="rtCallout "+this._getCalloutPosition(this._position); v.innerHTML=" "; this._calloutElement=v; var t=document.createElement("TABLE"); t.className="rtWrapper"; t.style.width=this._width; t.style.height=this._height; this._tableElement=t; var b=[]; if(u){b=["rtWrapperTopRight","rtWrapperTopCenter","rtWrapperTopLeft","rtWrapperRightMiddle","rtWrapperContent","rtWrapperLeftMiddle","rtWrapperBottomRight","rtWrapperBottomCenter","rtWrapperBottomLeft"]; }else{b=["rtWrapperTopLeft","rtWrapperTopCenter","rtWrapperTopRight","rtWrapperLeftMiddle","rtWrapperContent","rtWrapperRightMiddle","rtWrapperBottomLeft","rtWrapperBottomCenter","rtWrapperBottomRight"]; }var p=0; for(var m=1; m<=3; m++){var a=t.insertRow(-1); for(var n=1; n<=3; n++){var h=a.insertCell(-1); h.innerHTML=" "; h.className=b[p]; p++; }}var l=t.rows[0].cells[1]; l.innerHTML=""; if(u){this._createManualCloseButton(l); }var q=document.createElement("DIV"); q.className="rtTitlebar"; q.style.display="none"; this._titleElement=q; this._refreshTitle(); l.appendChild(q); if(!u){this._createManualCloseButton(l); }var d=t.rows[1].cells[1]; d.vAlign="top"; d.innerHTML=""; this._contentCell=d; var g=null; var g=null; if(this._text){this.set_content(this._text); }else{var r=this.get_id(); if(r){g=$get(r); }if(g&&g.innerHTML){var c=this._transferNodeChildren(g); this.set_contentElement(c); }}k.appendChild(v); k.appendChild(t); this._popupElement.style.display="none"; this._popupElement.style.position="absolute"; this._addToolTipToDocument(g); }if(!this._popupBehavior){this._popupBehavior=$create(Telerik.Web.PopupBehavior,{id:(new Date()-100)+"PopupBehavior",parentElement:this._targetControl,overlay:this._overlay},null,null,this._popupElement); }},_transferNodeChildren:function(d){if(!d){return null; }var a=d.ownerDocument.createElement(d.tagName); var c=0; while(d.childNodes&&d.childNodes.length>c){var b=d.childNodes[c]; if(this._clientStateFieldID&&b.id==this._clientStateFieldID){c=1; continue; }d.removeChild(b); a.appendChild(b); }return a; },_getDefaultParent:function(){var a=this._formID?document.getElementById(this._formID):null; if(!a){if(document.forms&&document.forms.length>0){a=document.forms[0]; }else{a=document.body; }}return a; },_addToolTipToDocument:function(a){if(null!=a&&!this.get_renderInPageRoot()){a.parentNode.insertBefore(this._popupElement,a); return; }var b=this._getDefaultParent(); b.appendChild(this._popupElement); },_getParentByTagName:function(c,b){var a=c; b=b.toUpperCase(); while(a.tagName.toUpperCase()!=b){a=a.parentNode; if(!a){break; }}return a; },_getFullSkinName:function(){return"RadToolTip RadToolTip_"+this._skin; },_getUniqueString:function(){return""+(new Date()-100); },_getCalloutPosition:function(oPos){with(Telerik.Web.UI.ToolTipPosition){switch(oPos){case TopLeft:return"rtCalloutBottomRight"; case TopCenter:return"rtCalloutBottomCenter"; case TopRight:return"rtCalloutBottomLeft"; case MiddleLeft:return"rtCalloutMiddleRight"; case Center:return"rtCalloutCenter"; case MiddleRight:return"rtCalloutMiddleLeft"; case BottomLeft:return"rtCalloutTopRight"; case BottomCenter:return"rtCalloutTopCenter"; case BottomRight:return"rtCalloutTopLeft"; }}return""; },_getHorizontalSide:function(a){return parseInt((a+"").charAt(1)); },_getVerticalSide:function(a){return parseInt((a+"").charAt(0)); },_setPopupVisible:function(b,a){this._popupElement.style.zIndex=this._zIndex; this._popupBehavior.set_x(b); this._popupBehavior.set_y(a); this._popupBehavior.show(); if(!this.get_width()){this._popupElement.style.width=""; }},_reSetToolTipPosition:function(){var a=this.getToolTipBounds(); this._setPopupVisible(a.x,a.y); },_setOverflow:function(){var flow=this._contentScrolling; if(flow==Telerik.Web.UI.ToolTipScrolling.Default){return; }var el=this._contentElement; if(!el||el.parentNode!=this._contentCell||((!el.document||!el.document.documentElement)&&$telerik.isIE)){return; }var overflow=""; with(Telerik.Web.UI.ToolTipScrolling){switch(flow){case Auto:overflow="auto"; break; case None:overflow="hidden"; break; case X:overflow=""; el.style.overflowX="scroll"; el.style.overflowY="hidden"; break; case Y:overflow=""; el.style.overflowY="scroll"; el.style.overflowX="hidden"; break; case Both:overflow="scroll"; }}var parent=el.parentNode; el.style.display="none"; var bounds=$telerik.getBounds(parent); el.style.width=bounds.width+"px"; el.style.height=bounds.height+"px"; if(!el.style.overflowX&&!el.style.overflowY){el.style.overflow=overflow; }el.style.display=""; },_getLeftOffset:function(){var a=Telerik.Web.UI.ToolTipPosition; if(a.Left==this._position){return(-1*this._targetControl.offsetWidth)+this._offsetX; }else{if(a.Right==this._position){return this._targetControl.offsetWidth+this._offsetX; }else{return this._offsetX; }}},_getTopOffset:function(){var a; var b=Telerik.Web.UI.ToolTipPosition; if(b.Top==this._position){a=(-1*this._targetControl.offsetHeight)+this._offsetY; }else{if(b.Bottom==this._position){a=this._targetControl.offsetHeight+this._offsetY; }else{a=this._offsetY; }}return a; },_adjustCallout:function(){if(this._originalPosition){this.set_position(this._originalPosition); this.updateLocation(); this._originalPosition=null; }if(this.get_showCallout()&&this.get_position()!=22&&this._relativeTo==Telerik.Web.UI.ToolTipRelativeDisplay.Element){var b=this.get_targetControl(); if(!b){return; }var h=$telerik.getBounds(b); var c=this.get_popupElement(); var g=c.getElementsByTagName("DIV")[0]; g.style.left=""; g.style.top=""; var f=$telerik.getBounds(g); var d=$telerik.getViewPortSize(); var e=Math.min(d.height-h.y,h.height); var a=Math.min(d.width-h.x,h.width); g.style.visibility="hidden"; this._fixToolTipPosition(h,f,a,e,true); f=$telerik.getBounds(g); this._fixToolTipPosition(h,f,a,e,false); g.style.visibility="visible"; this._fixCalloutPosition(h,a,e); }},_fixCalloutPosition:function(j,a,h){var b=this.get_popupElement(); var i=b.getElementsByTagName("DIV")[0]; i.style.left=""; i.style.top=""; var f=$telerik.getBounds(i); var g=$telerik.getBounds(b); var e=null; var d=null; if(this._verticalPosition==Telerik.Web.UI.ToolTipVerticalPosition.Middle){d=Math.floor(j.y+h/2-g.y+f.width/2); }else{var c=this._horizontalPosition; if(c!=Telerik.Web.UI.ToolTipHorizontalPosition.Center){return; }e=Math.floor(j.x+a/2-g.x+f.width/2); }if(d){i.style.top=d+"px"; }if(e){i.style.left=e+"px"; }},_fixToolTipPosition:function(i,f,a,g,b){var e=false; var d=this.get_position(); var h; var j; var c; if(b){h=2; j=(i.x+a>f.x&&this._horizontalPosition==Telerik.Web.UI.ToolTipHorizontalPosition.Right); c=(i.xf.y&&this._verticalPosition==Telerik.Web.UI.ToolTipVerticalPosition.Bottom); c=(i.y