Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadToolTipControllerClass=function(){ this._tooltipToShow=null; this._activeToolTip=null; this._registerGlobalBodyEventHandlers(); }; Telerik.Web.UI.RadToolTipControllerClass.prototype={_registerGlobalBodyEventHandlers:function(){ var _1=Function.createDelegate(this,function(e){ if(e.keyCode==27){ if(this._activeToolTip&&!this._activeToolTip.isModal()){ this._hideCurrentToolTipNoAnimation(); } } }); $addHandler(document.body,"keydown",_1); var _3=Function.createDelegate(this,function(e){ this._hideOnBodyClick(e); }); $addHandler(document.body,"click",_3); Sys.Application.add_unload(function(){ $removeHandler(document.body,"keydown",_1); $removeHandler(document.body,"click",_3); }); },_hideOnBodyClick:function(e){ var _6=false; if(this._activeToolTip!=null&&!this._activeToolTip.isModal()){ var _7=this._activeToolTip; if(_7._isMouseOverElement(e,_7._tableElement)){ return; } _6=this._activeToolTip._hideIfNotManualCloseOrFromCode(); } if(_6){ this._activeToolTip=null; } },_cancelLastShowRequest:function(){ if(this._tooltipToShow){ var _8=this._tooltipToShow; this._tooltipToShow=null; _8.cancelShowDelay(); } },_hideCurrentToolTipNoAnimation:function(){ this._cancelLastShowRequest(); if(this._activeToolTip!=null){ this._activeToolTip._hideNoAnimation(); } this._activeToolTip=null; },requestShow:function(_9){ this._cancelLastShowRequest(); var _a=this._activeToolTip; if(_a==_9){ return; }else{ if(_a){ _a._hideIfNotManualCloseOrFromCode(); } } this._tooltipToShow=_9; },cancelSpecificShowRequest:function(_b){ if(this._tooltipToShow==_b){ this._cancelLastShowRequest(); } },showTooltip:function(_c){ if(!_c||_c.isVisible()){ return; } this._cancelLastShowRequest(); this.set_activeToolTip(_c); _c.show(); },notifyToolTipClosed:function(_d){ if(this._activeToolTip==_d){ this._activeToolTip=null; } },set_activeToolTip:function(_e){ if(_e!=this._activeToolTip){ this._hideCurrentToolTipNoAnimation(); } this._activeToolTip=_e; },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(_f){ Telerik.Web.UI.RadToolTip.initializeBase(this,[_f]); 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._popupBehavior=null; this._popupVisible=false; this._modal=false; this._onModalShowHandler=null; this._onModalCloseHandler=null; this._skin="Default"; this._title=""; this._text=""; this._width=""; this._height=""; this._relativeTo=Telerik.Web.UI.ToolTipRelativeDisplay.Mouse; this._contentScrolling=Telerik.Web.UI.ToolTipScrolling.Auto; this._showEvent=Telerik.Web.UI.ToolTipShowEvent.OnMouseOver; this._hideEvent=Telerik.Web.UI.ToolTipHideEvent.Default; this._visibleOnPageLoad=false; this._sticky=false; this._manualClose=false; this._mouseTrailing=false; this._showCallout=true; this._showDelayRef=null; this._autoCloseRef=null; this._showDelay=400; this._autoCloseDelay=3000; this._hideDelay=300; this._animation=Telerik.Web.UI.ToolTipAnimation.None; this._tooltipAnimation=null; this._zIndex=8000; }; Telerik.Web.UI.RadToolTip.getCurrent=function(){ var _10=Telerik.Web.UI.RadToolTipController.getInstance(); if(!_10){ return null; } return _10.get_activeToolTip(); }; Telerik.Web.UI.RadToolTip.prototype={get_zIndex:function(){ return this._zIndex; },set_zIndex:function(_11){ var _12=parseInt(_11); if(isNaN(_11)){ return; } if(this._zIndex!=_11){ this._zIndex=_11; } },initialize:function(){ Telerik.Web.UI.RadToolTip.callBaseMethod(this,"initialize"); this.set_position(this._position); var _13=this.get_text(); if(this._targetControl&&!_13){ _13=this._targetControl.getAttribute("title"); if(_13){ this._targetControl.removeAttribute("title"); } this._text=_13; } if(this._visibleOnPageLoad){ setTimeout(Function.createDelegate(this,function(){ this.show(); }),0); } },dispose:function(){ if(this._tooltipAnimation){ this._tooltipAnimation.dispose(); } 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 _14=this.get_id(); if(_14){ var _15=$get(_14); if(_15){ _15.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(_16){ return _16&this._hideEvent; },hide:function(){ this._hideUnconditionally(); },_hideIfNotManualCloseOrFromCode:function(){ var _17=this.isHideEventEnabled(Telerik.Web.UI.ToolTipHideEvent.FromCode); var _18=this.get_manualClose(); if(_18||_17){ return false; } this._hideUnconditionally(); return true; },_hideUnconditionally:function(){ if(!this.isVisible()){ return; } this._hide(); },_hideNoAnimation:function(){ this._hide(false); },_hide:function(_19){ if(this._tooltipAnimation){ this._tooltipAnimation.stop(); } this.cancelHideDelay(); this.cancelShowDelay(); this.cancelAutoCloseDelay(); var _1a=new Sys.CancelEventArgs(); this.raiseEvent("beforeHide",_1a); if(_1a.get_cancel()){ return; } if(this._tooltipAnimation&&(false!=_19)){ this._tooltipAnimation.play(true); }else{ this._afterHide(); } },_afterHide:function(){ try{ if(this._popupBehavior){ this._popupBehavior.hide(); this._popupBehavior.pin(false); } } catch(ex){ } this._popupVisible=false; this._getToolTipController().notifyToolTipClosed(this); this.raiseEvent("hide"); this._registerPopupHandlers(false); },clone:function(_1b,_1c){ if(!_1b){ alert("clone error: No target element specified"); return; } var evs=this._getEventsParameter(); var _1e=this._getPropertiesParameter(); _1e["targetControlID"]=_1b.getAttribute("id"); if(!_1e["targetControlID"]){ _1e["targetControl"]=_1b; } var _1f=document.createElement("SPAN"); if(_1c){ _1f.setAttribute("id",_1c); } var _20=$create(Telerik.Web.UI.RadToolTip,_1e,evs,null,_1f); return _20; },show:function(){ this._createUI(); var _21=new Sys.CancelEventArgs(); this.raiseEvent("beforeShow",_21); if(_21.get_cancel()){ return; } if($telerik.isIE6){ var _22=this; window.setTimeout(function(){ _22._registerPopupHandlers(true); },200); }else{ this._registerPopupHandlers(true); } this._popupBehavior.pin(false); window.setTimeout(Function.createDelegate(this,function(){ this._getToolTipController().set_activeToolTip(this); if(this._animation==Telerik.Web.UI.ToolTipAnimation.None){ this._show(); this._afterShow(); }else{ this._playAnimation(); } }),0); },updateLocation:function(){ this._show(); },showLoadingMessage:function(_23){ if(_23){ var div=document.createElement("DIV"); div.className=this._getFullSkinName()+" LoadingSign"; this._contentCell.appendChild(div); }else{ this._contentCell.innerHTML=""; } },isModal:function(){ return this._modal; },set_contentElement:function(_25){ this._contentCell.innerHTML=""; if(_25.parentNode&&_25.parentNode.removeChild){ _25.parentNode.removeChild(_25); } this._contentCell.appendChild(_25); _25.style.display=""; this._contentElement=_25; this._setOverflow(); },get_contentElement:function(){ return this._contentElement; },set_content:function(_26){ this._text=_26; if(this.isCreated()){ var _27=document.createElement("DIV"); _27.innerHTML=_26; this.set_contentElement(_27); } },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 _28=Function.createDelegate(this,function(){ this._getToolTipController().showTooltip(this); this.cancelShowDelay(); }); this._showDelayRef=window.setTimeout(_28,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 _29=null; try{ _29=this.getToolTipBounds(); } catch(e){ var _2a=this; window.setTimeout(function(){ _2a._addToolTipToDocument(); },10); return; } this._setPopupVisible(_29.x,_29.y); this._popupVisible=true; },_afterShow:function(){ this._popupBehavior.pin(this._isRelativeToBrowserWindow()); this._resetAutoCloseDelay(); this.raiseEvent("show"); },_isRelativeToBrowserWindow:function(){ if(!this._targetControl||this._relativeTo==Telerik.Web.UI.ToolTipRelativeDisplay.BrowserWindow){ return true; } return false; },_playAnimation:function(){ var _2b=function(){ var _2c=this.controller; var _2d=_2c.getToolTipBounds(); _2c._setPopupVisible(_2d.x,_2d.y); var _2e=$telerik.getBounds(_2c._popupElement); _2c._popupBehavior.hide(); this.set_endBounds(_2e); }; if(!this._tooltipAnimation){ var pos=this._position; var vp=this._verticalPosition; var _31=this._isRelativeToBrowserWindow(); if(_31&&this._verticalPosition!=2){ vp=(this._verticalPosition==1?3:1); pos=parseInt(vp+""+this._horizontalPosition); } var _32=_31?document.documentElement:this._targetControl; if(this._animation==Telerik.Web.UI.ToolTipAnimation.Fade){ this._tooltipAnimation=new Telerik.Web.UI.Animations.FadeAnimation(this,null,null,this._popupElement,this._position,_32); this._tooltipAnimation.onShowStart=function(){ this.controller._show(); }; }else{ if(this._animation==Telerik.Web.UI.ToolTipAnimation.FlyIn){ this._tooltipAnimation=new Telerik.Web.UI.Animations.FlyInAnimation(this,null,null,this._popupElement,this._position,_32); this._tooltipAnimation.onShowStart=_2b; }else{ if(this._animation==Telerik.Web.UI.ToolTipAnimation.Slide){ this._tooltipAnimation=new Telerik.Web.UI.Animations.SlideAnimation(this,null,null,this._popupElement,pos,_32); this._tooltipAnimation.onShowStart=_2b; }else{ if(this._animation==Telerik.Web.UI.ToolTipAnimation.Resize){ if(_31&&this._horizontalPosition!=2){ var hp=(this._horizontalPosition==1?3:1); pos=parseInt(vp+""+hp); } this._tooltipAnimation=new Telerik.Web.UI.Animations.ResizeAnimation(this,0.2,50,this._popupElement,pos,_32); this._tooltipAnimation.onShowStart=_2b; } } } } } if(this._tooltipAnimation){ if(this._isRelativeToBrowserWindow()){ this._documentOverflowX=document.documentElement.style.overflowX; document.documentElement.style.overflowX="hidden"; } this._tooltipAnimation.onShowEnd=function(){ this.controller._show(); if(null!=this.controller._documentOverflowX){ document.documentElement.style.overflowX=this.controller._documentOverflowX; this.controller._documentOverflowX=null; } this.controller._afterShow(); }; this._tooltipAnimation.onHideEnd=function(){ this.controller._afterHide(); }; this._tooltipAnimation.play(); } },_makeModal:function(_34){ 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(!_34){ return; } this._onModalShowHandler=function(_35){ if(!_35._modalExtender){ _35._modalExtender=new Telerik.Web.UI.ModalExtender(_35._popupElement); } _35._modalExtender.show(); }; this.add_show(this._onModalShowHandler); this._onModalCloseHandler=function(_36){ if(_36._modalExtender){ _36._modalExtender.hide(); } }; this.add_hide(this._onModalCloseHandler); },_isMouseOverElement:function(e,_38){ var _39=null; try{ _39=$telerik.getOuterBounds(_38); } catch(e){ return false; } if(e&&e.target){ var _3a=e.target.tagName; if(_3a=="SELECT"||_3a=="OPTION"){ return true; } if(e.clientX<0||e.clientY<0){ return true; } } var _3b=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body; var x=e.clientX+_3b.scrollLeft; var y=e.clientY+_3b.scrollTop; _39.x+=2; _39.y+=2; _39.width-=4; _39.height-=4; var _3e=$telerik.containsPoint(_39,x,y); return _3e; },_onMouseOver:function(e){ this._logMousePosition(e); this._resetShowDelay(); this._getToolTipController().requestShow(this); if(e){ } },_onMouseMove:function(e){ this._logMousePosition(e); this._resetAutoCloseDelay(); if(this._mouseTrailing&&this.isVisible()){ this._show(); } },_onMouseOut:function(e){ if(!this.isVisible()){ this.cancelShowDelay(); return; } var _42=this._isMouseOverElement(e,this._targetControl); if(!_42){ this.cancelShowDelay(); if(!this.get_sticky()){ this._resetHideDelay(); } } },_onClick:function(e){ this._onMouseOver(e); return $telerik.cancelRawEvent(e); },_onRightClick:function(e){ this._onMouseOver(e); return $telerik.cancelRawEvent(e); },_registerMouseHandlers:function(_45,_46){ if(true==_46){ var _47={}; var _48=Telerik.Web.UI.ToolTipShowEvent; if(this._showEvent==_48.OnMouseOver){ this._onMouseOverDelegate=Function.createDelegate(this,this._onMouseOver); this._onMouseMoveDelegate=Function.createDelegate(this,this._onMouseMove); this._onMouseOutDelegate=Function.createDelegate(this,this._onMouseOut); $telerik.addExternalHandler(_45,"mouseover",this._onMouseOverDelegate); $telerik.addExternalHandler(_45,"mousemove",this._onMouseMoveDelegate); $telerik.addExternalHandler(_45,"mouseout",this._onMouseOutDelegate); } if(this._showEvent==_48.OnClick){ this._onClickDelegate=Function.createDelegate(this,this._onClick); $telerik.addExternalHandler(_45,"click",this._onClickDelegate); } if(this._showEvent==_48.OnRightClick){ this._onRightClickDelegate=Function.createDelegate(this,this._onRightClick); $telerik.addExternalHandler(_45,"contextmenu",this._onRightClickDelegate); } if(this._showEvent==_48.OnFocus){ this._onFocusDelegate=Function.createDelegate(this,this._onMouseOver); this._onBlurDelegate=Function.createDelegate(this,this._onMouseOut); $telerik.addExternalHandler(_45,"focus",this._onFocusDelegate); $telerik.addExternalHandler(_45,"blur",this._onBlurDelegate); } }else{ if(_45){ var _49=[["mouseover",this._onMouseOverDelegate],["mousemove",this._onMouseMoveDelegate],["mouseout",this._onMouseOutDelegate],["click",this._onClickDelegate],["contextmenu",this._onRightClickDelegate],["focus",this._onFocusDelegate],["blur",this._onBlurDelegate]]; for(var i=0;i<_49.length;i++){ var _4b=_49[i]; try{ if(null!=_4b[1]){ $telerik.removeExternalHandler(_45,_4b[0],_4b[1]); } } catch(e){ } } this._onMouseOverDelegate=null; this._onMouseMoveDelegate=null; this._onMouseOutDelegate=null; this._onClickDelegate=null; this._onRightClickDelegate=null; this._onFocusDelegate=null; this._onBlurDelegate=null; } } },_registerPopupHandlers:function(_4c){ if(true==_4c){ if(this.get_sticky()){ this._popupStickyHandler=Function.createDelegate(this,this._onPopupStickyMouseOut); $addHandler(this._tableElement,"mouseout",this._popupStickyHandler); }else{ if(this.get_leaveTargetAndToolTip()){ this._popupEnterHandler=Function.createDelegate(this,this._onPopupEnterToolTip); $addHandler(this._tableElement,"mouseover",this._popupEnterHandler); this._popupLeaveHandler=Function.createDelegate(this,this._onPopupLeaveToolTip); $addHandler(this._tableElement,"mouseout",this._popupLeaveHandler); } } }else{ if(this._popupStickyHandler||this._popupEnterHandler||this._popupLeaveHandler){ $clearHandlers(this._tableElement); this._popupStickyHandler=null; this._popupEnterHandler=null; this._popupLeaveHandler=null; } } },_onPopupStickyMouseOut:function(e){ var _4e=this._isMouseOverElement(e,this._tableElement); if(!_4e){ this._hideIfNotManualCloseOrFromCode(); } },_onPopupEnterToolTip:function(e){ var _50=this._isMouseOverElement(e,this._tableElement); if(_50){ this.cancelHideDelay(); this.cancelAutoCloseDelay(); } },_onPopupLeaveToolTip:function(e){ var _52=this._isMouseOverElement(e,this._tableElement); if(!_52){ this._resetHideDelay(); this._resetAutoCloseDelay(); } },_getPropertiesParameter:function(){ if(!this._propertiesParameter){ var _53={}; for(var _54 in Telerik.Web.UI.RadToolTip.prototype){ var _55=this[_54]; if(typeof (_55)=="function"&&_54.indexOf("get_")==0){ var _56=_54.substring(4); if(null==this["set_"+_56]){ continue; } var _57=_55.call(this); if(null==_57){ continue; } _53[_56]=_57; if(_56=="skin"){ break; } } } this._propertiesParameter=_53; } var _58=this._cloneObject(this._propertiesParameter); return _58; },_getEventsParameter:function(){ if(!this._eventsParameter){ var _59={}; var _5a=this.get_events(); var _5b=["beforeShow","show","beforeHide","hide"]; for(var i=0;i<_5b.length;i++){ var _5d=_5b[i]; var _5e=_5a.getHandler(_5d); if(_5e&&typeof (eval(_5e))=="function"){ _59[_5d]=eval(_5e); } } this._eventsParameter=_59; } return this._eventsParameter; },_cloneObject:function(_5f){ var _60={}; for(var _61 in _5f){ _60[_61]=_5f[_61]; } return _60; },_getPosRelativeToMouse:function(_62){ var _63=_62.x; var _64=_62.y; var pos=this._getMousePosition(); var _66=pos.clientX; var _67=pos.clientY; var _68=$telerik.standardsMode; if(!$telerik.isIE&&document.compatMode!="CSS1Compat"){ _68=false; }else{ if($telerik.isSafari){ _68=false; } } if(_68){ _63-=$telerik.getCorrectScrollLeft(document.documentElement); _64-=document.documentElement.scrollTop; }else{ _63-=$telerik.getCorrectScrollLeft(document.body); _64-=document.body.scrollTop; } var _69=_66-_63; var _6a=_67-_64; return {x:_69,y:_6a}; },_logMousePosition:function(e){ if(!e){ return; } this._mouseX=e.clientX; this._mouseY=e.clientY; },_getMousePosition:function(){ var obj={}; obj.clientX=this._mouseX; obj.clientY=this._mouseY; return obj; },_getCalloutBounds:function(){ var _6d={width:0,height:0,marginLeft:0,marginTop:0}; if(this._showCallout&&this._calloutElement){ _6d.marginLeft=parseInt($telerik.getCurrentStyle(this._calloutElement,"marginLeft")); _6d.marginTop=parseInt($telerik.getCurrentStyle(this._calloutElement,"marginTop")); if(isNaN(_6d.marginLeft)){ _6d.marginLeft=0; } if(isNaN(_6d.marginTop)){ _6d.marginTop=0; } var _6e=$telerik.getBounds(this._calloutElement); if(_6e){ if(_6e.width){ _6d.width=_6e.width; } if(_6e.height){ _6d.height=_6e.height; } } } return _6d; },_getBoundsRelativeToBrowser:function(_6f,_70,_71){ var _72=this._horizontalPosition; var _73=this._verticalPosition; var x=0; var y=0; if(!_71){ _71=$telerik.getClientBounds(); } var _76=$telerik.getScrollOffset(document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body); if("fixed"!=this._popupElement.style.position){ x+=_76.x; y+=_76.y; } switch(_72){ case 2: x+=-parseInt(_6f.width/2-_71.width/2); x+=this._offsetX; break; case 3: x+=_71.width; x-=_6f.width; x-=this._offsetX; break; case 1: default: x+=-_6f.width; x+=(-_70.width-_70.marginLeft); x+=this._offsetX; break; } switch(_73){ case 2: y+=-parseInt((_6f.height-_71.height)/2); break; case 1: y+=this._offsetY; break; case 3: default: y+=_71.height; y-=this._offsetY; y-=_6f.height; break; } return new Sys.UI.Bounds(x,y,_6f.width,_6f.height); },_getBoundsRelativeToElement:function(_77,_78,_79){ var _7a=this._horizontalPosition; var _7b=this._verticalPosition; var x=0; var y=0; if(!_79){ _79=$telerik.getBounds(this._targetControl); } switch(_7a){ case 2: x+=-parseInt(_77.width/2-_79.width/2); x+=this._offsetX; break; case 3: x+=_79.width; x-=_78.marginLeft; x+=this._offsetX; break; case 1: default: x+=-_77.width; x+=(-_78.width-_78.marginLeft); x-=this._offsetX; break; } switch(_7b){ case 2: y+=-parseInt(_77.height/2-_79.height/2); y+=this._offsetY; break; case 1: y-=_77.height; y-=_78.height+_78.marginTop; y-=this._offsetY; break; case 3: default: y+=_79.height; y-=_78.marginTop; y+=this._offsetY; break; } return new Sys.UI.Bounds(x,y,_77.width,_77.height); },_getBoundsRelativeToMouse:function(_7e,_7f,_80){ var _80=this._targetControl?$telerik.getBounds(this._targetControl):$telerik.getClientBounds(); var pos=this._getPosRelativeToMouse(_80); if(isNaN(pos.x)){ pos.x=0; pos.y=0; }else{ _80.width=0; _80.height=0; } var _82=this._getBoundsRelativeToElement(_7e,_7f,_80); var _83=new Sys.UI.Bounds(pos.x+_82.x,pos.y+_82.y,_7e.width,_7e.height); return _83; },getToolTipBounds:function(){ var _84=this._popupElement; var _85=(_84.style.display=="none")?true:false; if(_85){ _84.style.visibility="hidden"; } _84.style.display=""; this._setOverflow(); if(this._firstShow!=true){ this._fixIeHeight(this._tableElement,this._height); this._firstShow=true; } var _86=this._isRelativeToBrowserWindow()?document.documentElement:this._targetControl; this._popupBehavior.set_parentElement(_86); var _87=$telerik.getBounds(_84); var _88=this._getCalloutBounds(); if(_85){ this._popupElement.style.display="none"; _84.style.visibility=""; } var _89=Telerik.Web.UI.ToolTipRelativeDisplay; var _8a=Telerik.Web.UI.ToolTipShowEvent; var _8b=null; if(this._relativeTo==_89.BrowserWindow){ _8b=this._getBoundsRelativeToBrowser(_87,_88); }else{ if(!this._targetControl&&this._showEvent==_8a.FromCode){ _8b=this._getBoundsRelativeToBrowser(_87,_88); }else{ if(this._targetControl&&this._showEvent==_8a.FromCode){ _8b=this._getBoundsRelativeToElement(_87,_88); }else{ if((this._mouseTrailing||this._relativeTo==_89.Mouse)){ _8b=this._getBoundsRelativeToMouse(_87,_88); }else{ if(this._relativeTo==_89.Element){ _8b=this._getBoundsRelativeToElement(_87,_88); } } } } } return _8b; },_fixIeHeight:function(_8c,_8d){ if("CSS1Compat"==document.compatMode){ var _8e=(_8c.offsetHeight-parseInt(_8d)); if(_8e>0){ var _8f=(parseInt(_8c.style.height)-_8e); if(_8f>0){ _8c.style.height=_8f+"px"; } } } },_refreshTitle:function(){ if(null==this._titleElement){ return; } this._titleElement.innerHTML=this._title; this._titleElement.style.display=(this._title)?"":"none"; },_createManualCloseButton:function(_90){ if(this.get_manualClose()){ var _91=document.createElement("A"); _91.href="javascript: void(0);"; _91.className="CloseButton"; this._closeLinkHandler=Function.createDelegate(this,function(e){ this._hideUnconditionally(); return $telerik.cancelRawEvent(e); }); $addHandler(_91,"click",this._closeLinkHandler); this._closeLink=_91; var _93=document.createElement("SPAN"); _93.innerHTML="Close"; _91.title="Close"; _91.appendChild(_93); _90.appendChild(_91); } },_createUI:function(){ if(!this._popupElement){ var _94=this.get_id(); var _95="RadToolTipWrapper_"+_94; var _96=document.createElement("DIV"); _96.id=_95; var _97=this.get_element(); var _98=_97.parentNode?_97:this._getDefaultParent(); var _99=$telerik.isRightToLeft(_98); _96.className=this._getFullSkinName()+(this.get_showCallout()?" visiblecallout":"")+(_99?" radtooltip_"+this._skin+"_rtl":""); _96.setAttribute("unselectable","on"); this._popupElement=_96; var _9a=document.createElement("DIV"); _9a.className="ToolTipCallout "+this._getCalloutPosition(this._position); _9a.innerHTML=" "; this._calloutElement=_9a; var _9b=document.createElement("TABLE"); _9b.className="ToolTipWrapper"; _9b.style.width=this._width; _9b.style.height=this._height; this._tableElement=_9b; var _9c=[]; if(_99){ _9c=["ToolTipTopRight","ToolTipTopCenter","ToolTipTopLeft","ToolTipRightMiddle","ToolTipContent","ToolTipLeftMiddle","ToolTipBottomRight","ToolTipBottomCenter","ToolTipBottomLeft"]; }else{ _9c=["ToolTipTopLeft","ToolTipTopCenter","ToolTipTopRight","ToolTipLeftMiddle","ToolTipContent","ToolTipRightMiddle","ToolTipBottomLeft","ToolTipBottomCenter","ToolTipBottomRight"]; } var _9d=0; for(var i=1;i<=3;i++){ var _9f=_9b.insertRow(-1); for(var j=1;j<=3;j++){ var _a1=_9f.insertCell(-1); _a1.innerHTML=" "; _a1.className=_9c[_9d]; _9d++; } } var _a2=_9b.rows[0].cells[1]; _a2.innerHTML=""; if(_99){ this._createManualCloseButton(_a2); } var _a3=document.createElement("DIV"); _a3.className="ToolTipTitlebar VisibleTitlebar"; _a3.style.display="none"; this._titleElement=_a3; this._refreshTitle(); _a2.appendChild(_a3); if(!_99){ this._createManualCloseButton(_a2); } var _a4=_9b.rows[1].cells[1]; _a4.vAlign="top"; _a4.innerHTML=""; this._contentCell=_a4; var _a5=null; var _a5=null; if(this._text){ this.set_content(this._text); }else{ var _a6=this.get_id(); if(_a6){ _a5=$get(_a6); } if(_a5&&_a5.innerHTML){ var _a7=this._transferNodeChildren(_a5); this.set_contentElement(_a7); } } _96.appendChild(_9a); _96.appendChild(_9b); this._popupElement.style.display="none"; this._popupElement.style.position="absolute"; this._addToolTipToDocument(_a5); } if(!this._popupBehavior){ this._popupBehavior=$create(Telerik.Web.PopupBehavior,{"id":(new Date()-100)+"PopupBehavior","parentElement":this._targetControl},null,null,this._popupElement); } },_transferNodeChildren:function(_a8){ if(!_a8){ return null; } var _a9=_a8.ownerDocument.createElement(_a8.tagName); var _aa=0; while(_a8.childNodes&&_a8.childNodes.length>_aa){ var _ab=_a8.childNodes[_aa]; if(this._clientStateFieldID&&_ab.id==this._clientStateFieldID){ _aa=1; continue; } _a8.removeChild(_ab); _a9.appendChild(_ab); } return _a9; },_getDefaultParent:function(){ var _ac=this._formID?document.getElementById(this._formID):null; if(!_ac){ if(document.forms&&document.forms.length>0){ _ac=document.forms[0]; }else{ _ac=document.body; } } return _ac; },_addToolTipToDocument:function(_ad){ if(null!=_ad){ _ad.parentNode.insertBefore(this._popupElement,_ad); return; } var _ae=this._getDefaultParent(); _ae.appendChild(this._popupElement); },_getParentByTagName:function(_af,_b0){ var _b1=_af; _b0=_b0.toUpperCase(); while(_b1.tagName.toUpperCase()!=_b0){ _b1=_b1.parentNode; if(!_b1){ break; } } return _b1; },_getFullSkinName:function(){ return "radtooltip_"+this._skin; },_getUniqueString:function(){ return ""+(new Date()-100); },_getCalloutPosition:function(_b2){ with(Telerik.Web.UI.ToolTipPosition){ switch(_b2){ case TopLeft: return "BottomRight"; case TopCenter: return "BottomCenter"; case TopRight: return "BottomLeft"; case MiddleLeft: return "MiddleRight"; case Center: return "Center"; case MiddleRight: return "MiddleLeft"; case BottomLeft: return "TopRight"; case BottomCenter: return "TopCenter"; case BottomRight: return "TopLeft"; } } return ""; },_getHorizontalSide:function(_b3){ return parseInt((_b3+"").charAt(1)); },_getVerticalSide:function(_b4){ return parseInt((_b4+"").charAt(0)); },_setPopupVisible:function(x,y){ this._popupBehavior.set_x(x); this._popupBehavior.set_y(y); this._popupBehavior.show(); if(!this.get_width()){ this._popupElement.style.width=""; } this._popupElement.style.zIndex=this._zIndex; },_setOverflow:function(){ var _b7=this._contentScrolling; if(_b7==Telerik.Web.UI.ToolTipScrolling.Auto&&(this._width==""||this._height=="")){ return; } var el=this._contentElement; if(!el||el.parentNode!=this._contentCell||((!el.document||!el.document.documentElement)&&$telerik.isIE)){ return; } var _b9=""; with(Telerik.Web.UI.ToolTipScrolling){ switch(_b7){ case Auto: _b9="auto"; break; case None: _b9="hidden"; break; case X: _b9=""; el.style.overflowX="scroll"; el.style.overflowY="hidden"; break; case Y: _b9=""; el.style.overflowY="scroll"; el.style.overflowX="hidden"; break; case Both: _b9="scroll"; } } var _ba=el.parentNode; el.style.display="none"; var _bb=$telerik.getBounds(_ba); el.style.width=_bb.width+"px"; el.style.height=_bb.height+"px"; if(!el.style.overflowX&&!el.style.overflowY){ el.style.overflow=_b9; } el.style.display=""; },_getLeftOffset:function(){ var _bc=Telerik.Web.UI.ToolTipPosition; if(_bc.Left==this._position){ return (-1*this._targetControl.offsetWidth)+this._offsetX; }else{ if(_bc.Right==this._position){ return this._targetControl.offsetWidth+this._offsetX; }else{ return this._offsetX; } } },_getTopOffset:function(){ var _bd; var _be=Telerik.Web.UI.ToolTipPosition; if(_be.Top==this._position){ _bd=(-1*this._targetControl.offsetHeight)+this._offsetY; }else{ if(_be.Bottom==this._position){ _bd=this._targetControl.offsetHeight+this._offsetY; }else{ _bd=this._offsetY; } } return _bd; },isVisible:function(){ var _bf=this._popupElement; return (_bf&&_bf.style.display!="none"); },get_targetControlID:function(){ return this._targetControlID; },set_targetControlID:function(_c0){ if(this._targetControlID!=_c0){ this._targetControlID=_c0; var _c1=(this._targetControlID?$get(this._targetControlID):null); this.set_targetControl(_c1); } },get_serverTargetControlID:function(){ return this._serverTargetControlID; },set_serverTargetControlID:function(_c2){ this._serverTargetControlID=_c2; },get_serverValue:function(){ return this._serverValue; },set_serverValue:function(_c3){ this._serverValue=_c3; },get_value:function(){ return this.get_serverValue(); },set_value:function(_c4){ this.set_serverValue(_c4); },get_formID:function(){ return this._formID; },set_formID:function(_c5){ if(this._formID!=_c5){ this._formID=_c5; } },get_position:function(){ return this._position; },set_position:function(_c6){ if(this._position!=_c6){ this._position=_c6; if(this._calloutElement){ this._calloutElement.className="ToolTipCallout "+this._getCalloutPosition(this._position); } } this._horizontalPosition=this._getHorizontalSide(this._position); this._verticalPosition=this._getVerticalSide(this._position); },get_offsetX:function(){ return this._offsetX; },set_offsetX:function(_c7){ if(this._offsetX!=_c7){ this._offsetX=_c7; } },get_offsetY:function(){ return this._offsetY; },set_offsetY:function(_c8){ if(this._offsetY!=_c8){ this._offsetY=_c8; } },get_title:function(){ return this._title; },set_title:function(_c9){ if(this._title!=_c9){ this._title=_c9; } this._refreshTitle(); },get_text:function(){ return this._text; },set_text:function(_ca){ if(this._text!=_ca){ this._text=_ca; } if(this.isCreated()){ this.set_content(this._text); } },get_width:function(){ return this._width; },set_width:function(_cb){ if(this._width!=_cb){ this._width=_cb; } },get_height:function(){ return this._height; },set_height:function(_cc){ if(this._height!=_cc){ this._height=_cc; } },get_relativeTo:function(){ return this._relativeTo; },set_relativeTo:function(_cd){ if(this._relativeTo!=_cd){ this._relativeTo=_cd; } },get_contentScrolling:function(){ return this._contentScrolling; },set_contentScrolling:function(_ce){ if(this._contentScrolling!=_ce){ this._contentScrolling=_ce; } },get_sticky:function(){ return this.isHideEventEnabled(Telerik.Web.UI.ToolTipHideEvent.LeaveToolTip); },set_sticky:function(_cf){ if(this._sticky!=_cf){ this._sticky=_cf; } if(this._sticky){ this.set_hideEvent(Telerik.Web.UI.ToolTipHideEvent.LeaveToolTip); } },get_manualClose:function(){ return this.isHideEventEnabled(Telerik.Web.UI.ToolTipHideEvent.ManualClose); },set_manualClose:function(_d0){ if(this._manualClose!=_d0){ this._manualClose=_d0; } if(this._manualClose){ this.set_hideEvent(Telerik.Web.UI.ToolTipHideEvent.ManualClose); } },get_showCallout:function(){ return this._showCallout; },set_showCallout:function(_d1){ if(this._showCallout!=_d1){ this._showCallout=_d1; } },get_showDelay:function(){ return this._showDelay; },set_showDelay:function(_d2){ if(this._showDelay!=_d2){ this._showDelay=_d2; } },get_autoCloseDelay:function(){ return this._autoCloseDelay; },set_autoCloseDelay:function(_d3){ if(this._autoCloseDelay!=_d3){ this._autoCloseDelay=_d3; } },get_hideDelay:function(){ return this._hideDelay; },set_hideDelay:function(_d4){ if(this._hideDelay!=_d4){ this._hideDelay=_d4; } },get_mouseTrailing:function(){ return this._mouseTrailing; },set_mouseTrailing:function(_d5){ if(this._mouseTrailing!=_d5){ this._mouseTrailing=_d5; if(true==_d5){ this.set_relativeTo(Telerik.Web.UI.ToolTipRelativeDisplay.Mouse); } } },get_visibleOnPageLoad:function(){ return this._visibleOnPageLoad; },set_visibleOnPageLoad:function(_d6){ if(this._visibleOnPageLoad!=_d6){ this._visibleOnPageLoad=_d6; } },get_animation:function(){ return this._animation; },set_animation:function(_d7){ if(this._animation!=_d7){ this._animation=_d7; } },get_showEvent:function(){ return this._showEvent; },set_showEvent:function(_d8){ if(this._showEvent!=_d8){ this._showEvent=_d8; } },get_hideEvent:function(){ return this._hideEvent; },set_hideEvent:function(_d9){ if(this._hideEvent!=_d9){ this._hideEvent=_d9; } },get_modal:function(){ return this._modal; },set_modal:function(_da){ if(this._modal!=_da){ this._modal=_da; } this._makeModal(this._modal); },get_skin:function(){ return this._skin; },set_skin:function(_db){ if(_db&&this._skin!=_db){ this._skin=_db; } },get_targetControl:function(){ return this._targetControl; },set_targetControl:function(_dc){ if(this._targetControl!=_dc){ if(this._targetControl&&(this._targetControl!=_dc)){ this._registerMouseHandlers(this._targetControl,false); } this._targetControl=_dc; var _dd=this._targetControl; if(_dd){ if($telerik.isIE&&_dd){ _dd.removeAttribute("alt"); } this._registerMouseHandlers(_dd,true); if(this._popupBehavior){ this._popupBehavior.set_parentElement(_dd); } } } },get_popupElement:function(){ return this._popupElement; },add_beforeShow:function(_de){ this.get_events().addHandler("beforeShow",_de); },remove_beforeShow:function(_df){ this.get_events().removeHandler("beforeShow",_df); },add_show:function(_e0){ this.get_events().addHandler("show",_e0); },remove_show:function(_e1){ this.get_events().removeHandler("show",_e1); },add_beforeHide:function(_e2){ this.get_events().addHandler("beforeHide",_e2); },remove_beforeHide:function(_e3){ this.get_events().removeHandler("beforeHide",_e3); },add_hide:function(_e4){ this.get_events().addHandler("hide",_e4); },remove_hide:function(_e5){ this.get_events().removeHandler("hide",_e5); },saveClientState:function(){ var _e6=["text","position"]; var _e7={}; for(var i=0;i<_e6.length;i++){ _e7[_e6[i]]=this["get_"+_e6[i]](); } return Sys.Serialization.JavaScriptSerializer.serialize(_e7); }}; Telerik.Web.UI.RadToolTip.registerClass("Telerik.Web.UI.RadToolTip",Telerik.Web.UI.RadWebControl); Telerik.Web.UI.ToolTipPosition=function(){ throw Error.invalidOperation(); }; Telerik.Web.UI.ToolTipPosition.prototype={TopLeft:11,TopCenter:12,TopRight:13,MiddleLeft:21,Center:22,MiddleRight:23,BottomLeft:31,BottomCenter:32,BottomRight:33}; Telerik.Web.UI.ToolTipPosition.registerEnum("Telerik.Web.UI.ToolTipPosition",false); Telerik.Web.UI.ToolTipRelativeDisplay=function(){ throw Error.invalidOperation(); }; Telerik.Web.UI.ToolTipRelativeDisplay.prototype={Mouse:0,Element:1,BrowserWindow:2}; Telerik.Web.UI.ToolTipRelativeDisplay.registerEnum("Telerik.Web.UI.ToolTipRelativeDisplay",false); Telerik.Web.UI.ToolTipScrolling=function(){ throw Error.invalidOperation(); }; Telerik.Web.UI.ToolTipScrolling.prototype={Auto:0,None:1,X:2,Y:3,Both:4}; Telerik.Web.UI.ToolTipScrolling.registerEnum("Telerik.Web.UI.ToolTipScrolling",false); Telerik.Web.UI.ToolTipAnimation=function(){ throw Error.invalidOperation(); }; Telerik.Web.UI.ToolTipAnimation.prototype={None:0,Resize:1,Fade:2,Slide:4,FlyIn:8}; Telerik.Web.UI.ToolTipAnimation.registerEnum("Telerik.Web.UI.ToolTipAnimation",false); Telerik.Web.UI.ToolTipShowEvent=function(){ throw Error.invalidOperation(); }; Telerik.Web.UI.ToolTipShowEvent.prototype={OnMouseOver:1,OnClick:2,OnRightClick:4,OnFocus:8,FromCode:16}; Telerik.Web.UI.ToolTipShowEvent.registerEnum("Telerik.Web.UI.ToolTipShowEvent",false); Telerik.Web.UI.ToolTipHideEvent=function(){ throw Error.invalidOperation(); }; Telerik.Web.UI.ToolTipHideEvent.prototype={Default:1,LeaveToolTip:2,ManualClose:4,LeaveTargetAndToolTip:8,FromCode:16}; Telerik.Web.UI.ToolTipHideEvent.registerEnum("Telerik.Web.UI.ToolTipHideEvent",false); if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();