﻿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._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.Default;
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._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._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_targetControl();
if(_13!=null){
var _14=_13.getAttribute("_rfddecoratedID");
if(_14){
this.set_targetControl($get(_14));
}
}
var _15=this.get_text();
if(this._targetControl&&!_15){
_15=this._targetControl.getAttribute("title");
if(_15){
this._targetControl.removeAttribute("title");
}
this._text=_15;
}
var _16=$telerik.getCurrentStyle(this.get_element(),"zIndex");
if(null!=_16){
this.set_zIndex(_16);
}
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 _17=this.get_id();
if(_17){
var _18=$get(_17);
if(_18){
_18.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(_19){
return _19&this._hideEvent;
},hide:function(){
this._hideUnconditionally();
},_hideIfNotManualCloseOrFromCode:function(){
var _1a=this.isHideEventEnabled(Telerik.Web.UI.ToolTipHideEvent.FromCode);
var _1b=this.get_manualClose();
if(_1b||_1a){
return false;
}
this._hideUnconditionally();
return true;
},_hideUnconditionally:function(){
if(!this.isVisible()){
return;
}
this._hide();
},_hideNoAnimation:function(){
this._hide(false);
},_hide:function(_1c){
if(this._animation!=Telerik.Web.UI.ToolTipAnimation.None){
$telerik.$(this._popupElement).stop();
}
this.cancelHideDelay();
this.cancelShowDelay();
this.cancelAutoCloseDelay();
var _1d=new Sys.CancelEventArgs();
this.raiseEvent("beforeHide",_1d);
if(_1d.get_cancel()){
return;
}
if(this._animation!=Telerik.Web.UI.ToolTipAnimation.None){
this._calloutElement.style.display="none";
var fnc=Function.createDelegate(this,this._afterHide);
$telerik.$(this._popupElement).fadeOut(500,fnc);
}else{
this._afterHide();
}
},_afterHide:function(){
try{
if(this._popupBehavior){
this._popupBehavior.hide();
this._popupBehavior.pin(false);
}
}
catch(ex){
}
this._getToolTipController().notifyToolTipClosed(this);
this.raiseEvent("hide");
this._registerPopupHandlers(false);
},clone:function(_1f,_20){
if(!_1f){
alert("clone error: No target element specified");
return;
}
var evs=this._getEventsParameter();
var _22=this._getPropertiesParameter();
_22["targetControlID"]=_1f.getAttribute("id");
if(!_22["targetControlID"]){
_22["targetControl"]=_1f;
}
var _23=document.createElement("SPAN");
if(_20){
_23.setAttribute("id",_20);
}
var _24=$create(Telerik.Web.UI.RadToolTip,_22,evs,null,_23);
return _24;
},show:function(){
this._createUI();
var _25=new Sys.CancelEventArgs();
this.raiseEvent("beforeShow",_25);
if(_25.get_cancel()){
return;
}
if($telerik.isIE6){
var _26=this;
window.setTimeout(function(){
_26._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(_27){
var _28=this._getFullSkinName();
var _29="rtLoading";
if(_27){
Sys.UI.DomElement.addCssClass(this._contentCell,_28);
Sys.UI.DomElement.addCssClass(this._contentCell,_29);
}else{
Sys.UI.DomElement.removeCssClass(this._contentCell,_28);
Sys.UI.DomElement.removeCssClass(this._contentCell,_29);
}
},isModal:function(){
return this._modal;
},set_contentElement:function(_2a){
this._contentCell.innerHTML="";
if(_2a.parentNode&&_2a.parentNode.removeChild){
_2a.parentNode.removeChild(_2a);
}
this._contentCell.appendChild(_2a);
_2a.style.display="";
this._contentElement=_2a;
this._setOverflow();
this.showLoadingMessage(false);
},get_contentElement:function(){
return this._contentElement;
},set_content:function(_2b){
this._text=_2b;
if(this.isCreated()){
var _2c=document.createElement("DIV");
_2c.innerHTML=_2b;
this.set_contentElement(_2c);
}
},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 _2d=Function.createDelegate(this,function(){
this._getToolTipController().showTooltip(this);
this.cancelShowDelay();
});
this._showDelayRef=window.setTimeout(_2d,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 _2e=null;
try{
_2e=this.getToolTipBounds();
}
catch(e){
var _2f=this;
window.setTimeout(function(){
_2f._addToolTipToDocument();
},10);
return;
}
this._setPopupVisible(_2e.x,_2e.y);
},_afterShow:function(){
this._popupBehavior.pin(this._isRelativeToBrowserWindow());
this._resetAutoCloseDelay();
this._adjustCallout();
this.raiseEvent("show");
},_isRelativeToBrowserWindow:function(){
if(!this._targetControl||this._relativeTo==Telerik.Web.UI.ToolTipRelativeDisplay.BrowserWindow){
return true;
}
return false;
},_playAnimation:function(){
var _30=Function.createDelegate(this,function(){
var _31=this.getToolTipBounds();
this._setPopupVisible(_31.x,_31.y);
var _32=$telerik.getBounds(this._tableElement);
$telerik.$(this._popupElement).hide();
return _32;
});
var _33=_30();
var _34=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.display="none";
}
});
var _35=Function.createDelegate(this,function(){
this._popupElement.style.filter="";
if(this.get_showCallout()&&this._calloutElement){
this._calloutElement.style.display="";
}
this._show();
if(null!=this._documentOverflowX){
document.documentElement.style.overflowX=this._documentOverflowX;
this._documentOverflowX=null;
}
this._afterShow();
});
var _36=this._popupElement;
var _37=this._animation;
var _38=""+this._position;
var _39=this._isRelativeToBrowserWindow();
if(_39&&this._verticalPosition!=2){
vp=(this._verticalPosition==1?3:1);
_38=parseInt(vp+""+this._horizontalPosition);
}
var _3a=_39?document.documentElement:this._targetControl;
var _3b=_3a?$telerik.getBounds(_3a):new Sys.UI.Bounds(1,1,1,1);
Telerik.Web.UI.Animations.playJQueryAnimation(_36,_37,_3b,_33,_38,_34,_35);
},_makeModal:function(_3c){
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(!_3c){
return;
}
this._onModalShowHandler=function(_3d){
if(!_3d._modalExtender){
_3d._modalExtender=new Telerik.Web.UI.ModalExtender(_3d._popupElement);
}
_3d._modalExtender.show();
};
this.add_show(this._onModalShowHandler);
this._onModalCloseHandler=function(_3e){
if(_3e._modalExtender){
_3e._modalExtender.hide();
}
};
this.add_hide(this._onModalCloseHandler);
},_isMouseOverElement:function(e,_40){
var _41=null;
try{
_41=$telerik.getOuterBounds(_40);
}
catch(e){
return false;
}
if(e&&e.target){
var _42=e.target.tagName;
if(_42=="SELECT"||_42=="OPTION"){
return true;
}
if(e.clientX<0||e.clientY<0){
return true;
}
}
var _43=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
var x=e.clientX+_43.scrollLeft;
var y=e.clientY+_43.scrollTop;
_41.x+=2;
_41.y+=2;
_41.width-=4;
_41.height-=4;
var _46=$telerik.containsPoint(_41,x,y);
return _46;
},_onMouseOver:function(e){
this._logMousePosition(e);
this._resetShowDelay();
this._getToolTipController().requestShow(this);
},_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 _4a=this._isMouseOverElement(e,this._targetControl);
if(!_4a){
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(_4d,_4e){
if(true==_4e){
var _4f={};
var _50=Telerik.Web.UI.ToolTipShowEvent;
if(this._showEvent==_50.OnMouseOver){
this._onMouseOverDelegate=Function.createDelegate(this,this._onMouseOver);
this._onMouseMoveDelegate=Function.createDelegate(this,this._onMouseMove);
this._onMouseOutDelegate=Function.createDelegate(this,this._onMouseOut);
$telerik.addExternalHandler(_4d,"mouseover",this._onMouseOverDelegate);
$telerik.addExternalHandler(_4d,"mousemove",this._onMouseMoveDelegate);
$telerik.addExternalHandler(_4d,"mouseout",this._onMouseOutDelegate);
}
if(this._showEvent==_50.OnClick){
this._onClickDelegate=Function.createDelegate(this,this._onClick);
$telerik.addExternalHandler(_4d,"click",this._onClickDelegate);
}
if(this._showEvent==_50.OnRightClick){
this._onRightClickDelegate=Function.createDelegate(this,this._onRightClick);
$telerik.addExternalHandler(_4d,"contextmenu",this._onRightClickDelegate);
}
if(this._showEvent==_50.OnFocus){
this._onFocusDelegate=Function.createDelegate(this,this._onMouseOver);
this._onBlurDelegate=Function.createDelegate(this,this._onMouseOut);
$telerik.addExternalHandler(_4d,"focus",this._onFocusDelegate);
$telerik.addExternalHandler(_4d,"blur",this._onBlurDelegate);
}
}else{
if(_4d){
var _51=[["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<_51.length;i++){
var _53=_51[i];
try{
if(null!=_53[1]){
$telerik.removeExternalHandler(_4d,_53[0],_53[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(_54){
if(true==_54){
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 _56=this._isMouseOverElement(e,this._tableElement);
if(!_56){
this._hideIfNotManualCloseOrFromCode();
}
},_onPopupEnterToolTip:function(e){
var _58=this._isMouseOverElement(e,this._tableElement);
if(_58){
this.cancelHideDelay();
this.cancelAutoCloseDelay();
}
},_onPopupLeaveToolTip:function(e){
var _5a=this._isMouseOverElement(e,this._tableElement);
if(!_5a){
this._resetHideDelay();
this._resetAutoCloseDelay();
}
},_getPropertiesParameter:function(){
if(!this._propertiesParameter){
var _5b={};
var _5c=Telerik.Web.UI.RadToolTip.prototype;
for(var _5d in _5c){
var _5e=this[_5d];
if(typeof (_5e)=="function"&&_5d.indexOf("get_")==0){
var _5f=_5d.substring(4);
if(null==this["set_"+_5f]){
continue;
}
var _60=_5e.call(this);
if(null==_60){
continue;
}
_5b[_5f]=_60;
if(_5f=="skin"){
break;
}
}
}
this._propertiesParameter=_5b;
}
var _61=this._cloneObject(this._propertiesParameter);
return _61;
},_cloneObject:function(_62){
var _63={};
for(var _64 in _62){
_63[_64]=_62[_64];
}
return _63;
},_getEventsParameter:function(){
if(!this._eventsParameter){
var _65={};
var _66=this.get_events();
var _67=["beforeShow","show","beforeHide","hide"];
for(var i=0;i<_67.length;i++){
var _69=_67[i];
var _6a=_66.getHandler(_69);
if(_6a&&typeof (eval(_6a))=="function"){
_65[_69]=eval(_6a);
}
}
this._eventsParameter=_65;
}
return this._eventsParameter;
},_getPosRelativeToMouse:function(_6b){
var _6c=_6b.x;
var _6d=_6b.y;
var pos=this._getMousePosition();
var _6f=pos.clientX;
var _70=pos.clientY;
var _71=$telerik.standardsMode;
if(!$telerik.isIE&&document.compatMode!="CSS1Compat"){
_71=false;
}else{
if($telerik.isSafari){
_71=false;
}
}
if(_71){
_6c-=$telerik.getCorrectScrollLeft(document.documentElement);
_6d-=document.documentElement.scrollTop;
}else{
_6c-=$telerik.getCorrectScrollLeft(document.body);
_6d-=document.body.scrollTop;
}
var _72=_6f-_6c;
var _73=_70-_6d;
return {x:_72,y:_73};
},_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 _76={width:0,height:0,marginLeft:0,marginTop:0};
if(this._showCallout&&this._calloutElement){
_76.marginLeft=parseInt($telerik.getCurrentStyle(this._calloutElement,"marginLeft"));
_76.marginTop=parseInt($telerik.getCurrentStyle(this._calloutElement,"marginTop"));
if(isNaN(_76.marginLeft)){
_76.marginLeft=0;
}
if(isNaN(_76.marginTop)){
_76.marginTop=0;
}
var _77=$telerik.getBounds(this._calloutElement);
if(_77){
if(_77.width){
_76.width=_77.width;
}
if(_77.height){
_76.height=_77.height;
}
}
}
return _76;
},_getBoundsRelativeToBrowser:function(_78,_79,_7a){
var _7b=this._horizontalPosition;
var _7c=this._verticalPosition;
var x=0;
var y=0;
if(!_7a){
_7a=$telerik.getClientBounds();
}
var _7f=$telerik.getScrollOffset(document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body);
if("fixed"!=this._popupElement.style.position){
x+=_7f.x;
y+=_7f.y;
}
switch(_7b){
case 2:
x+=-parseInt(_78.width/2-_7a.width/2);
x+=this._offsetX;
break;
case 3:
x+=_7a.width;
x-=_78.width;
x-=this._offsetX;
break;
case 1:
default:
x+=-_78.width;
x+=(-_79.width-_79.marginLeft);
x+=this._offsetX;
break;
}
switch(_7c){
case 2:
y+=-parseInt((_78.height-_7a.height)/2);
break;
case 1:
y+=this._offsetY;
break;
case 3:
default:
y+=_7a.height;
y-=this._offsetY;
y-=_78.height;
break;
}
return new Sys.UI.Bounds(x,y,_78.width,_78.height);
},_getBoundsRelativeToElement:function(_80,_81,_82){
var _83=this._horizontalPosition;
var _84=this._verticalPosition;
var x=0;
var y=0;
if(!_82){
_82=$telerik.getBounds(this._targetControl);
}
switch(_83){
case 2:
x+=-parseInt(_80.width/2-_82.width/2);
x+=this._offsetX;
break;
case 3:
x+=_82.width;
x-=_81.marginLeft;
x+=this._offsetX;
break;
case 1:
default:
x+=-_80.width;
x+=(-_81.width-_81.marginLeft);
x-=this._offsetX;
break;
}
switch(_84){
case 2:
y+=-parseInt(_80.height/2-_82.height/2);
y+=this._offsetY;
break;
case 1:
y-=_80.height;
y-=_81.height+_81.marginTop;
y-=this._offsetY;
break;
case 3:
default:
y+=_82.height;
y-=_81.marginTop;
y+=this._offsetY;
break;
}
return new Sys.UI.Bounds(x,y,_80.width,_80.height);
},_getBoundsRelativeToMouse:function(_87,_88,_89){
var _89=this._targetControl?$telerik.getBounds(this._targetControl):$telerik.getClientBounds();
var pos=this._getPosRelativeToMouse(_89);
if(isNaN(pos.x)){
pos.x=0;
pos.y=0;
}else{
_89.width=0;
_89.height=0;
}
var _8b=this._getBoundsRelativeToElement(_87,_88,_89);
var _8c=new Sys.UI.Bounds(pos.x+_8b.x,pos.y+_8b.y,_87.width,_87.height);
return _8c;
},getToolTipBounds:function(){
var _8d=this._popupElement;
var _8e=(_8d.style.display=="none")?true:false;
if(_8e){
_8d.style.visibility="hidden";
}
_8d.style.display="";
this._setOverflow();
if(this._firstShow!=true){
this._fixIeHeight(this._tableElement,this._height);
this._firstShow=true;
}
var _8f=this._isRelativeToBrowserWindow()?document.documentElement:this._targetControl;
this._popupBehavior.set_parentElement(_8f);
var _90=$telerik.getBounds(this._tableElement);
var _91=this._getCalloutBounds();
if(_8e){
this._popupElement.style.display="none";
_8d.style.visibility="";
}
var _92=Telerik.Web.UI.ToolTipRelativeDisplay;
var _93=Telerik.Web.UI.ToolTipShowEvent;
var _94=null;
if(this._relativeTo==_92.BrowserWindow){
_94=this._getBoundsRelativeToBrowser(_90,_91);
}else{
if(!this._targetControl&&this._showEvent==_93.FromCode){
_94=this._getBoundsRelativeToBrowser(_90,_91);
}else{
if(this._targetControl&&this._showEvent==_93.FromCode){
_94=this._getBoundsRelativeToElement(_90,_91);
}else{
if((this._mouseTrailing||this._relativeTo==_92.Mouse)){
_94=this._getBoundsRelativeToMouse(_90,_91);
}else{
if(this._relativeTo==_92.Element){
_94=this._getBoundsRelativeToElement(_90,_91);
}
}
}
}
}
return _94;
},_fixIeHeight:function(_95,_96){
if("CSS1Compat"==document.compatMode){
var _97=(_95.offsetHeight-parseInt(_96));
if(_97>0){
var _98=(parseInt(_95.style.height)-_97);
if(_98>0){
_95.style.height=_98+"px";
}
}
}
},_refreshTitle:function(){
if(null==this._titleElement){
return;
}
this._titleElement.innerHTML=this._title;
this._titleElement.style.display=(this._title)?"":"none";
},_createManualCloseButton:function(_99){
if(this.get_manualClose()){
var _9a=document.createElement("A");
_9a.href="javascript: void(0);";
_9a.className="rtCloseButton";
this._closeLinkHandler=Function.createDelegate(this,function(e){
this._hideUnconditionally();
return $telerik.cancelRawEvent(e);
});
$addHandler(_9a,"click",this._closeLinkHandler);
this._closeLink=_9a;
var _9c=document.createElement("SPAN");
_9c.innerHTML="Close";
_9a.title="Close";
_9a.appendChild(_9c);
_99.appendChild(_9a);
}
},_createUI:function(){
if(!this._popupElement){
var _9d=this.get_id();
var _9e="RadToolTipWrapper_"+_9d;
var _9f=document.createElement("DIV");
_9f.id=_9e;
var _a0=this.get_element();
var _a1=_a0.parentNode?_a0:this._getDefaultParent();
var _a2=$telerik.isRightToLeft(_a1);
_9f.className=this._getFullSkinName()+(this.get_showCallout()?" rtVisibleCallout":"")+(_a2?" RadToolTip_"+this._skin+"_rtl":"");
_9f.setAttribute("unselectable","on");
this._popupElement=_9f;
var _a3=document.createElement("DIV");
_a3.className="rtCallout "+this._getCalloutPosition(this._position);
_a3.innerHTML="&nbsp;";
this._calloutElement=_a3;
var _a4=document.createElement("TABLE");
_a4.className="rtWrapper";
_a4.style.width=this._width;
_a4.style.height=this._height;
this._tableElement=_a4;
var _a5=[];
if(_a2){
_a5=["rtWrapperTopRight","rtWrapperTopCenter","rtWrapperTopLeft","rtWrapperRightMiddle","rtWrapperContent","rtWrapperLeftMiddle","rtWrapperBottomRight","rtWrapperBottomCenter","rtWrapperBottomLeft"];
}else{
_a5=["rtWrapperTopLeft","rtWrapperTopCenter","rtWrapperTopRight","rtWrapperLeftMiddle","rtWrapperContent","rtWrapperRightMiddle","rtWrapperBottomLeft","rtWrapperBottomCenter","rtWrapperBottomRight"];
}
var _a6=0;
for(var i=1;i<=3;i++){
var _a8=_a4.insertRow(-1);
for(var j=1;j<=3;j++){
var _aa=_a8.insertCell(-1);
_aa.innerHTML="&nbsp;";
_aa.className=_a5[_a6];
_a6++;
}
}
var _ab=_a4.rows[0].cells[1];
_ab.innerHTML="";
if(_a2){
this._createManualCloseButton(_ab);
}
var _ac=document.createElement("DIV");
_ac.className="rtTitlebar";
_ac.style.display="none";
this._titleElement=_ac;
this._refreshTitle();
_ab.appendChild(_ac);
if(!_a2){
this._createManualCloseButton(_ab);
}
var _ad=_a4.rows[1].cells[1];
_ad.vAlign="top";
_ad.innerHTML="";
this._contentCell=_ad;
var _ae=null;
var _ae=null;
if(this._text){
this.set_content(this._text);
}else{
var _af=this.get_id();
if(_af){
_ae=$get(_af);
}
if(_ae&&_ae.innerHTML){
var _b0=this._transferNodeChildren(_ae);
this.set_contentElement(_b0);
}
}
_9f.appendChild(_a3);
_9f.appendChild(_a4);
this._popupElement.style.display="none";
this._popupElement.style.position="absolute";
this._addToolTipToDocument(_ae);
}
if(!this._popupBehavior){
this._popupBehavior=$create(Telerik.Web.PopupBehavior,{"id":(new Date()-100)+"PopupBehavior","parentElement":this._targetControl},null,null,this._popupElement);
}
},_transferNodeChildren:function(_b1){
if(!_b1){
return null;
}
var _b2=_b1.ownerDocument.createElement(_b1.tagName);
var _b3=0;
while(_b1.childNodes&&_b1.childNodes.length>_b3){
var _b4=_b1.childNodes[_b3];
if(this._clientStateFieldID&&_b4.id==this._clientStateFieldID){
_b3=1;
continue;
}
_b1.removeChild(_b4);
_b2.appendChild(_b4);
}
return _b2;
},_getDefaultParent:function(){
var _b5=this._formID?document.getElementById(this._formID):null;
if(!_b5){
if(document.forms&&document.forms.length>0){
_b5=document.forms[0];
}else{
_b5=document.body;
}
}
return _b5;
},_addToolTipToDocument:function(_b6){
if(null!=_b6&&!this.get_renderInPageRoot()){
_b6.parentNode.insertBefore(this._popupElement,_b6);
return;
}
var _b7=this._getDefaultParent();
_b7.appendChild(this._popupElement);
},_getParentByTagName:function(_b8,_b9){
var _ba=_b8;
_b9=_b9.toUpperCase();
while(_ba.tagName.toUpperCase()!=_b9){
_ba=_ba.parentNode;
if(!_ba){
break;
}
}
return _ba;
},_getFullSkinName:function(){
return "RadToolTip_"+this._skin;
},_getUniqueString:function(){
return ""+(new Date()-100);
},_getCalloutPosition:function(_bb){
with(Telerik.Web.UI.ToolTipPosition){
switch(_bb){
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(_bc){
return parseInt((_bc+"").charAt(1));
},_getVerticalSide:function(_bd){
return parseInt((_bd+"").charAt(0));
},_setPopupVisible:function(x,y){
this._popupElement.style.zIndex=this._zIndex;
this._popupBehavior.set_x(x);
this._popupBehavior.set_y(y);
this._popupBehavior.show();
if(!this.get_width()){
this._popupElement.style.width="";
}
},_setOverflow:function(){
var _c0=this._contentScrolling;
if(_c0==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 _c2="";
with(Telerik.Web.UI.ToolTipScrolling){
switch(_c0){
case Auto:
_c2="auto";
break;
case None:
_c2="hidden";
break;
case X:
_c2="";
el.style.overflowX="scroll";
el.style.overflowY="hidden";
break;
case Y:
_c2="";
el.style.overflowY="scroll";
el.style.overflowX="hidden";
break;
case Both:
_c2="scroll";
}
}
var _c3=el.parentNode;
el.style.display="none";
var _c4=$telerik.getBounds(_c3);
el.style.width=_c4.width+"px";
el.style.height=_c4.height+"px";
if(!el.style.overflowX&&!el.style.overflowY){
el.style.overflow=_c2;
}
el.style.display="";
},_getLeftOffset:function(){
var _c5=Telerik.Web.UI.ToolTipPosition;
if(_c5.Left==this._position){
return (-1*this._targetControl.offsetWidth)+this._offsetX;
}else{
if(_c5.Right==this._position){
return this._targetControl.offsetWidth+this._offsetX;
}else{
return this._offsetX;
}
}
},_getTopOffset:function(){
var _c6;
var _c7=Telerik.Web.UI.ToolTipPosition;
if(_c7.Top==this._position){
_c6=(-1*this._targetControl.offsetHeight)+this._offsetY;
}else{
if(_c7.Bottom==this._position){
_c6=this._targetControl.offsetHeight+this._offsetY;
}else{
_c6=this._offsetY;
}
}
return _c6;
},_adjustCallout:function(){
if(this.get_showCallout()&&this.get_position()!=22){
var _c8=this.get_targetControl();
var _c9=$telerik.getBounds(_c8);
var _ca=this.get_popupElement();
var _cb=$telerik.getBounds(_ca);
var _cc=_ca.getElementsByTagName("DIV")[0];
_cc.style.left="";
_cc.style.top="";
var _cd=$telerik.getBounds(_cc);
var _ce=this.get_position();
var _cf=false;
_cc.style.visibility="hidden";
if(_c9.x>_cd.x){
_cf=(_ce==13||_ce==23||_ce==33);
}else{
_cf=(_ce==11||_ce==21||_ce==31);
}
if(_cf){
return;
}
if(_c9.y>_cd.y){
_cf=(_ce==32);
}else{
_cf=(_ce==12);
}
if(_cf){
return;
}
_cc.style.visibility="visible";
if(this._verticalPosition==2){
if(_c9.y<_cd.y&&(_c9.y+_c9.height)>_cd.y){
return;
}
var _d0=_cb.y-_c9.y;
_cc.style.top=(Math.abs(_d0)+Math.floor(_cc.offsetHeight))+"px";
}else{
if(_c9.x<_cd.x&&(_c9.x+_c9.width)>_cd.x){
return;
}
var _d0=_cb.x-_c9.x;
_cc.style.left=(Math.abs(_d0)+Math.floor(_cc.offsetWidth))+"px";
}
}
},isVisible:function(){
var _d1=this._popupElement;
return (_d1&&_d1.style.display!="none");
},get_targetControlID:function(){
return this._targetControlID;
},set_targetControlID:function(_d2){
if(this._targetControlID!=_d2){
this._targetControlID=_d2;
var _d3=(this._targetControlID?$get(this._targetControlID):null);
this.set_targetControl(_d3);
}
},get_serverTargetControlID:function(){
return this._serverTargetControlID;
},set_serverTargetControlID:function(_d4){
this._serverTargetControlID=_d4;
},get_serverValue:function(){
return this._serverValue;
},set_serverValue:function(_d5){
this._serverValue=_d5;
},get_value:function(){
return this.get_serverValue();
},set_value:function(_d6){
this.set_serverValue(_d6);
},get_formID:function(){
return this._formID;
},set_formID:function(_d7){
if(this._formID!=_d7){
this._formID=_d7;
}
},get_position:function(){
return this._position;
},set_position:function(_d8){
if(this._position!=_d8){
this._position=_d8;
if(this._calloutElement){
this._calloutElement.className="rtCallout "+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(_d9){
if(this._offsetX!=_d9){
this._offsetX=_d9;
}
},get_offsetY:function(){
return this._offsetY;
},set_offsetY:function(_da){
if(this._offsetY!=_da){
this._offsetY=_da;
}
},get_title:function(){
return this._title;
},set_title:function(_db){
if(this._title!=_db){
this._title=_db;
}
this._refreshTitle();
},get_text:function(){
return this._text;
},set_text:function(_dc){
if(this._text!=_dc){
this._text=_dc;
}
if(this.isCreated()){
this.set_content(this._text);
}
},get_width:function(){
return this._width;
},set_width:function(_dd){
if(this._width!=_dd){
this._width=_dd;
}
},get_height:function(){
return this._height;
},set_height:function(_de){
if(this._height!=_de){
this._height=_de;
}
},get_relativeTo:function(){
return this._relativeTo;
},set_relativeTo:function(_df){
if(this._relativeTo!=_df){
this._relativeTo=_df;
}
},get_contentScrolling:function(){
return this._contentScrolling;
},set_contentScrolling:function(_e0){
if(this._contentScrolling!=_e0){
this._contentScrolling=_e0;
}
},get_sticky:function(){
return this.isHideEventEnabled(Telerik.Web.UI.ToolTipHideEvent.LeaveToolTip);
},set_sticky:function(_e1){
if(this._sticky!=_e1){
this._sticky=_e1;
}
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(_e2){
if(this._manualClose!=_e2){
this._manualClose=_e2;
}
if(this._manualClose){
this.set_hideEvent(Telerik.Web.UI.ToolTipHideEvent.ManualClose);
}
},get_showCallout:function(){
return this._showCallout;
},set_showCallout:function(_e3){
if(this._showCallout!=_e3){
this._showCallout=_e3;
}
},get_renderInPageRoot:function(){
return this._renderInPageRoot;
},set_renderInPageRoot:function(_e4){
if(this._renderInPageRoot!=_e4){
this._renderInPageRoot=_e4;
}
},get_showDelay:function(){
return this._showDelay;
},set_showDelay:function(_e5){
if(this._showDelay!=_e5){
this._showDelay=_e5;
}
},get_autoCloseDelay:function(){
return this._autoCloseDelay;
},set_autoCloseDelay:function(_e6){
if(this._autoCloseDelay!=_e6){
this._autoCloseDelay=_e6;
}
},get_hideDelay:function(){
return this._hideDelay;
},set_hideDelay:function(_e7){
if(this._hideDelay!=_e7){
this._hideDelay=_e7;
}
},get_mouseTrailing:function(){
return this._mouseTrailing;
},set_mouseTrailing:function(_e8){
if(this._mouseTrailing!=_e8){
this._mouseTrailing=_e8;
if(true==_e8){
this.set_relativeTo(Telerik.Web.UI.ToolTipRelativeDisplay.Mouse);
}
}
},get_visibleOnPageLoad:function(){
return this._visibleOnPageLoad;
},set_visibleOnPageLoad:function(_e9){
if(this._visibleOnPageLoad!=_e9){
this._visibleOnPageLoad=_e9;
}
},get_animation:function(){
return this._animation;
},set_animation:function(_ea){
if(this._animation!=_ea){
this._animation=_ea;
}
},get_showEvent:function(){
return this._showEvent;
},set_showEvent:function(_eb){
if(this._showEvent!=_eb){
this._showEvent=_eb;
}
},get_hideEvent:function(){
return this._hideEvent;
},set_hideEvent:function(_ec){
if(this._hideEvent!=_ec){
this._hideEvent=_ec;
}
},get_modal:function(){
return this._modal;
},set_modal:function(_ed){
if(this._modal!=_ed){
this._modal=_ed;
}
this._makeModal(this._modal);
},get_skin:function(){
return this._skin;
},set_skin:function(_ee){
if(_ee&&this._skin!=_ee){
this._skin=_ee;
}
},get_targetControl:function(){
return this._targetControl;
},set_targetControl:function(_ef){
if(this._targetControl!=_ef){
if(this._targetControl&&(this._targetControl!=_ef)){
this._registerMouseHandlers(this._targetControl,false);
}
this._targetControl=_ef;
var _f0=this._targetControl;
if(_f0){
if($telerik.isIE&&_f0){
_f0.removeAttribute("alt");
}
this._registerMouseHandlers(_f0,true);
if(this._popupBehavior){
this._popupBehavior.set_parentElement(_f0);
}
}
}
},get_popupElement:function(){
return this._popupElement;
},add_beforeShow:function(_f1){
this.get_events().addHandler("beforeShow",_f1);
},remove_beforeShow:function(_f2){
this.get_events().removeHandler("beforeShow",_f2);
},add_show:function(_f3){
this.get_events().addHandler("show",_f3);
},remove_show:function(_f4){
this.get_events().removeHandler("show",_f4);
},add_beforeHide:function(_f5){
this.get_events().addHandler("beforeHide",_f5);
},remove_beforeHide:function(_f6){
this.get_events().removeHandler("beforeHide",_f6);
},add_hide:function(_f7){
this.get_events().addHandler("hide",_f7);
},remove_hide:function(_f8){
this.get_events().removeHandler("hide",_f8);
}};
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,Default:5};
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();