﻿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._hideCurrentToolTipUnconditionally();
}
}
});
$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=true;
if(this._activeToolTip!=null){
var _7=this._activeToolTip;
if(_7._isMouseOverElement(e,_7._tableElement)){
return;
}
_6=this._activeToolTip.hide(true);
}
if(_6){
this._activeToolTip=null;
}
},_cancelLastShowRequest:function(){
if(this._tooltipToShow){
var _8=this._tooltipToShow;
this._tooltipToShow=null;
_8.cancelShowDelay();
}
},_hideCurrentToolTipUnconditionally:function(){
this._cancelLastShowRequest();
if(this._activeToolTip!=null){
this._activeToolTip.hide();
}
this._activeToolTip=null;
},requestShow:function(_9){
this._cancelLastShowRequest();
this._tooltipToShow=_9;
},cancelSpecificShowRequest:function(_a){
if(this._tooltipToShow==_a){
this._cancelLastShowRequest();
}
},showTooltip:function(_b){
if(!_b||_b.isVisible()){
return;
}
this._cancelLastShowRequest();
this.set_activeToolTip(_b);
_b.show();
},notifyToolTipClosed:function(_c){
if(this._activeToolTip==_c){
this._activeToolTip=null;
}
},set_activeToolTip:function(_d){
if(_d!=this._activeToolTip){
this._hideCurrentToolTipUnconditionally();
}
this._activeToolTip=_d;
},get_activeToolTip:function(){
return this._activeToolTip;
},getInstance:function(){
return this;
}};
$telerik.makeCompatible(Telerik.Web.UI.RadToolTipControllerClass);
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(_e){
Telerik.Web.UI.RadToolTip.initializeBase(this,[_e]);
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._visibleOnPageLoad=false;
this._sticky=false;
this._manualClose=false;
this._mouseTrailing=false;
this._showCallout=true;
this._showDelayRef=null;
this._autoCloseRef=null;
this._showDelay=300;
this._autoCloseDelay=2000;
this._hideDelay=100;
this._animation=Telerik.Web.UI.ToolTipAnimation.None;
this._tooltipAnimation=null;
};
Telerik.Web.UI.RadToolTip.getCurrent=function(){
var _f=Telerik.Web.UI.RadToolTipController.getInstance();
if(!_f){
return null;
}
return _f.get_ActiveToolTip();
};
Telerik.Web.UI.RadToolTip.prototype={initialize:function(){
Telerik.Web.UI.RadToolTip.callBaseMethod(this,"initialize");
this.set_position(this._position);
if(this._visibleOnPageLoad){
this.show();
}
},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){
$removeHandler(this._closeLink,"click",this._closeLinkHandler);
this._closeLinkHandler=null;
}
if(this._popupElement){
var _10=this.get_id();
if(_10){
var _11=$get(_10);
if(_11){
_11.appendChild(this._popupElement);
}
}
}
Telerik.Web.UI.RadToolTip.callBaseMethod(this,"dispose");
},isCreated:function(){
return this._popupElement!=null;
},requestShow:function(){
this._resetShowDelay();
},hide:function(_12){
if(true==_12&&this._manualClose){
return false;
}
this._hide();
return true;
},clone:function(_13,_14){
if(!_13){
alert("clone error: No target element specified");
return;
}
var evs=this._getEventsParameter();
var _16=this._getPropertiesParameter();
_16["targetControlID"]=_13.getAttribute("id");
if(!_16["targetControlID"]){
_16["targetControl"]=_13;
}
var _17=document.createElement("SPAN");
if(_14){
_17.setAttribute("id",_14);
}
var _18=$create(Telerik.Web.UI.RadToolTip,_16,evs,null,_17);
return _18;
},show:function(){
this._createUI();
var _19=new Sys.CancelEventArgs();
this.raiseEvent("beforeShow",_19);
if(_19.get_cancel()){
return;
}
if($telerik.isIE6){
var _1a=this;
window.setTimeout(function(){
_1a._registerPopupHandlers(true);
},200);
}else{
this._registerPopupHandlers(true);
}
this._getToolTipController().set_activeToolTip(this);
this._popupBehavior.pin(false);
window.setTimeout(Function.createDelegate(this,function(){
if(this._animation==Telerik.Web.UI.ToolTipAnimation.None){
this._show();
this._afterShow();
}else{
this._playAnimation();
}
}),0);
},showLoadingMessage:function(_1b){
if(_1b){
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(_1d){
this._contentCell.innerHTML="";
if(_1d.parentNode&&_1d.parentNode.removeChild){
_1d.parentNode.removeChild(_1d);
}
this._contentCell.appendChild(_1d);
_1d.style.display="";
this._contentElement=_1d;
},get_contentElement:function(){
return this._contentElement;
},set_content:function(_1e){
var _1f=document.createElement("DIV");
_1f.innerHTML=_1e;
this._text=_1e;
if(this.isCreated()){
this.set_contentElement(_1f);
}
},get_content:function(){
return this._contentElement?this._contentElement.innerHTML:"";
},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._manualClose||this._sticky){
return;
}
if(this._autoCloseDelay){
var _20=this;
this._autoCloseRef=window.setTimeout(function(){
_20.hide(true);
},this._autoCloseDelay);
}
},_resetShowDelay:function(){
this.cancelShowDelay();
var _21=this;
var _22=function(){
_21._getToolTipController().showTooltip(_21);
_21.cancelShowDelay();
};
this._showDelayRef=window.setTimeout(_22,this._showDelay);
},_show:function(){
var _23=null;
try{
_23=this.getToolTipBounds();
}
catch(e){
var _24=this;
window.setTimeout(function(){
_24._addToolTipToDocument();
},10);
return;
}
this._setPopupVisible(_23.x,_23.y);
this._resetAutoCloseDelay();
this._popupVisible=true;
},_afterShow:function(){
this._popupBehavior.pin(this._isRelativeToBrowserWindow());
this.raiseEvent("show");
},_hide:function(){
if(this._tooltipAnimation){
this._tooltipAnimation.stop();
}
this.cancelShowDelay();
this.cancelAutoCloseDelay();
var _25=new Sys.CancelEventArgs();
this.raiseEvent("beforeHide",_25);
if(_25.get_cancel()){
return;
}
if(this._tooltipAnimation){
this._tooltipAnimation.play(true);
}else{
this._afterHide();
}
},_afterHide:function(){
try{
if(this._popupBehavior){
this._popupBehavior.hide(true);
this._popupBehavior.pin(false);
}
}
catch(ex){
}
this._popupVisible=false;
this._getToolTipController().notifyToolTipClosed(this);
this.raiseEvent("hide");
this._registerPopupHandlers(false);
},_isRelativeToBrowserWindow:function(){
if(!this._targetControl||this._relativeTo==Telerik.Web.UI.ToolTipRelativeDisplay.BrowserWindow){
return true;
}
return false;
},_playAnimation:function(){
var _26=function(){
var _27=this.controller;
var _28=_27.getToolTipBounds();
_27._setPopupVisible(_28.x,_28.y);
var _29=$telerik.getBounds(_27._popupElement);
_27._popupBehavior.hide();
this.set_endBounds(_29);
};
if(!this._tooltipAnimation){
var pos=this._position;
var vp=this._verticalPosition;
var _2c=this._isRelativeToBrowserWindow();
if(_2c&&this._verticalPosition!=2){
vp=(this._verticalPosition==1?3:1);
pos=parseInt(vp+""+this._horizontalPosition);
}
var _2d=_2c?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,_2d);
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,_2d);
this._tooltipAnimation.onShowStart=_26;
}else{
if(this._animation==Telerik.Web.UI.ToolTipAnimation.Slide){
this._tooltipAnimation=new Telerik.Web.UI.Animations.SlideAnimation(this,null,null,this._popupElement,pos,_2d);
this._tooltipAnimation.onShowStart=_26;
}else{
if(this._animation==Telerik.Web.UI.ToolTipAnimation.Resize){
if(_2c&&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,_2d);
this._tooltipAnimation.onShowStart=_26;
}
}
}
}
}
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(_2f){
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(!_2f){
return;
}
this._onModalShowHandler=function(_30){
if(!_30._modalExtender){
_30._modalExtender=new Telerik.Web.UI.ModalExtender(_30._popupElement);
}
_30._modalExtender.show();
};
this.add_show(this._onModalShowHandler);
this._onModalCloseHandler=function(_31){
if(_31._modalExtender){
_31._modalExtender.hide();
}
};
this.add_hide(this._onModalCloseHandler);
},_isMouseOverElement:function(e,_33){
var _34=null;
try{
_34=$telerik.getBounds(_33);
}
catch(e){
return false;
}
if(e&&e.target){
var _35=e.target.tagName;
if(_35=="SELECT"||_35=="OPTION"){
return true;
}
if(e.clientX<0||e.clientY<0){
return true;
}
}
var _36=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
var x=e.clientX+_36.scrollLeft;
var y=e.clientY+_36.scrollTop;
var _39=$telerik.containsPoint(_34,x,y);
if(!_39){
}
return _39;
},_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){
var _3d=this._isMouseOverElement(e,this._targetControl);
if(!_3d){
this.cancelShowDelay();
if(!this._sticky){
if(this._hideDelay>0){
var _3e=this;
window.setTimeout(function(){
_3e.hide(true);
},this._hideDelay);
}else{
this.hide(true);
}
}
}
},_onClick:function(e){
this._onMouseOver(e);
e.returnValue=false;
e.cancelBubble=true;
return false;
},_onRightClick:function(e){
this._onMouseOver(e);
e.returnValue=false;
e.cancelBubble=true;
return false;
},_registerMouseHandlers:function(_41,_42){
if(true==_42){
var _43={};
var _44=Telerik.Web.UI.ToolTipShowEvent;
if(this._showEvent==_44.OnMouseOver){
this._onMouseOverDelegate=Function.createDelegate(this,this._onMouseOver);
this._onMouseMoveDelegate=Function.createDelegate(this,this._onMouseMove);
this._onMouseOutDelegate=Function.createDelegate(this,this._onMouseOut);
$addHandler(_41,"mouseover",this._onMouseOverDelegate);
$addHandler(_41,"mousemove",this._onMouseMoveDelegate);
$addHandler(_41,"mouseout",this._onMouseOutDelegate);
}
if(this._showEvent==_44.OnClick){
this._onClickDelegate=Function.createDelegate(this,this._onClick);
$addHandler(_41,"click",this._onClickDelegate);
}
if(this._showEvent==_44.OnRightClick){
this._onRightClickDelegate=Function.createDelegate(this,this._onRightClick);
$addHandler(_41,"contextmenu",this._onRightClickDelegate);
}
if(this._showEvent==_44.OnFocus){
this._onFocusDelegate=Function.createDelegate(this,this._onMouseOver);
this._onBlurDelegate=Function.createDelegate(this,this._onMouseOut);
$addHandler(_41,"focus",this._onFocusDelegate);
$addHandler(_41,"blur",this._onBlurDelegate);
}
}else{
if(_41){
var _45=[["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<_45.length;i++){
var _47=_45[i];
if(null!=_47[1]){
$removeHandler(_41,_47[0],_47[1]);
}
}
this._onMouseOverDelegate=null;
this._onMouseMoveDelegate=null;
this._onMouseOutDelegate=null;
this._onClickDelegate=null;
this._onRightClickDelegate=null;
this._onFocusDelegate=null;
this._onBlurDelegate=null;
}
}
},_registerPopupHandlers:function(_48){
if(true==_48){
if(this._sticky||this._position==Telerik.Web.UI.ToolTipPosition.Center){
this._popupStickyHandler=Function.createDelegate(this,this._onPopupStickyMouseOut);
$addHandler(this._tableElement,"mouseout",this._popupStickyHandler);
this.set_sticky(true);
}
}else{
if(this._popupStickyHandler){
$removeHandler(this._tableElement,"mouseout",this._popupStickyHandler);
this._popupStickyHandler=null;
}
}
},_onPopupStickyMouseOut:function(e){
var _4a=this._isMouseOverElement(e,this._tableElement);
if(!_4a&&!this._manualClose){
this.hide();
}
},_getPropertiesParameter:function(){
if(!this._propertiesParameter){
var _4b={};
for(var _4c in Telerik.Web.UI.RadToolTip.prototype){
var _4d=this[_4c];
if(typeof (_4d)=="function"&&_4c.indexOf("get_")==0){
var _4e=_4c.substring(4);
if(null==this["set_"+_4e]){
continue;
}
var _4f=_4d.call(this);
if((typeof (_4f)!="boolean")&&(null==_4f||""==_4f)){
continue;
}
_4b[_4e]=_4f;
if(_4e=="skin"){
break;
}
}
}
this._propertiesParameter=_4b;
}
var _50=this._cloneObject(this._propertiesParameter);
return _50;
},_getEventsParameter:function(){
if(!this._eventsParameter){
var _51={};
var _52=this.get_events();
var _53=["beforeShow","show","beforeHide","hide"];
for(var i=0;i<_53.length;i++){
var _55=_53[i];
var _56=_52._getEvent(_55);
if(_56&&typeof (eval(_56)=="function")){
_51[_55]=eval(_56[0]);
}
}
this._eventsParameter=_51;
}
return this._eventsParameter;
},_cloneObject:function(_57){
var _58={};
for(var _59 in _57){
_58[_59]=_57[_59];
}
return _58;
},_getPosRelativeToMouse:function(_5a){
var _5b=_5a.x;
var _5c=_5a.y;
var pos=this._getMousePosition();
var _5e=pos.clientX;
var _5f=pos.clientY;
if($telerik.standardsMode){
_5b-=document.documentElement.scrollLeft;
_5c-=document.documentElement.scrollTop;
}
var _60=_5e-_5b;
var _61=_5f-_5c;
return {x:_60,y:_61};
},_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 _64={width:0,height:0,marginLeft:0,marginTop:0};
if(this._showCallout&&this._calloutElement){
_64.marginLeft=parseInt($telerik.getCurrentStyle(this._calloutElement,"marginLeft"));
_64.marginTop=parseInt($telerik.getCurrentStyle(this._calloutElement,"marginTop"));
if(isNaN(_64.marginLeft)){
_64.marginLeft=0;
}
if(isNaN(_64.marginLeft)){
_64.marginLeft=0;
}
var _65=$telerik.getBounds(this._calloutElement);
if(_65){
if(_65.width){
_64.width=_65.width;
}
if(_65.height){
_64.height=_65.height;
}
}
}
return _64;
},_getBoundsRelativeToBrowser:function(_66,_67,_68){
var _69=this._horizontalPosition;
var _6a=this._verticalPosition;
var x=0;
var y=0;
if(!_68){
_68=$telerik.getClientBounds();
}
var _6d=$telerik.getScrollOffset(document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body);
if("fixed"!=this._popupElement.style.position){
x+=_6d.x;
y+=_6d.y;
}
switch(_69){
case 2:
x+=-parseInt(_66.width/2-_68.width/2);
x+=this._offsetX;
break;
case 3:
x+=_68.width;
x-=_66.width;
x-=this._offsetX;
break;
case 1:
default:
x+=-_66.width;
x+=(-_67.width-_67.marginLeft);
x+=this._offsetX;
break;
}
switch(_6a){
case 2:
y+=-parseInt((_66.height-_68.height)/2);
break;
case 1:
y+=this._offsetY;
break;
case 3:
default:
y+=_68.height;
y-=this._offsetY;
y-=_66.height;
break;
}
return new Sys.UI.Bounds(x,y,_66.width,_66.height);
},_getBoundsRelativeToElement:function(_6e,_6f,_70){
var _71=this._horizontalPosition;
var _72=this._verticalPosition;
var x=0;
var y=0;
if(!_70){
_70=$telerik.getBounds(this._targetControl);
}
switch(_71){
case 2:
x+=-parseInt(_6e.width/2-_70.width/2);
x+=this._offsetX;
break;
case 3:
x+=_70.width;
x-=_6f.marginLeft;
x+=this._offsetX;
break;
case 1:
default:
x+=-_6e.width;
x+=(-_6f.width-_6f.marginLeft);
x-=this._offsetX;
break;
}
switch(_72){
case 2:
y+=-parseInt(_6e.height/2-_70.height/2);
y+=this._offsetY;
break;
case 1:
y-=_6e.height;
y-=_6f.height+_6f.marginTop;
y-=this._offsetY;
break;
case 3:
default:
y+=_70.height;
y-=_6f.marginTop;
y+=this._offsetY;
break;
}
return new Sys.UI.Bounds(x,y,_6e.width,_6e.height);
},_getBoundsRelativeToMouse:function(_75,_76,_77){
var _77=this._targetControl?$telerik.getBounds(this._targetControl):$telerik.getClientBounds();
var pos=this._getPosRelativeToMouse(_77);
if(isNaN(pos.x)){
pos.x=0;
pos.y=0;
}else{
_77.width=0;
_77.height=0;
}
var _79=this._getBoundsRelativeToElement(_75,_76,_77);
var _7a=new Sys.UI.Bounds(pos.x+_79.x,pos.y+_79.y,_75.width,_75.height);
return _7a;
},getToolTipBounds:function(){
var _7b=this._popupElement;
var _7c=(_7b.style.display=="none")?true:false;
_7b.style.left="-3000px";
_7b.style.top="-3000px";
_7b.style.display="";
this._setOverflow();
if(this._firstShow!=true){
this._fixIeHeight(this._tableElement,this._height);
this._firstShow=true;
}
var _7d=this._isRelativeToBrowserWindow()?document.documentElement:this._targetControl;
this._popupBehavior.set_parentElement(_7d);
var _7e=$telerik.getBounds(_7b);
var _7f=this._getCalloutBounds();
if(_7c){
this._popupElement.style.display="none";
}
var _80=Telerik.Web.UI.ToolTipRelativeDisplay;
var _81=Telerik.Web.UI.ToolTipShowEvent;
var _82=null;
if(this._relativeTo==_80.BrowserWindow){
_82=this._getBoundsRelativeToBrowser(_7e,_7f);
}else{
if(!this._targetControl&&this._showEvent==_81.FromCode){
_82=this._getBoundsRelativeToBrowser(_7e,_7f);
}else{
if(this._targetControl&&this._showEvent==_81.FromCode){
_82=this._getBoundsRelativeToElement(_7e,_7f);
}else{
if((this._mouseTrailing||this._relativeTo==_80.Mouse)){
_82=this._getBoundsRelativeToMouse(_7e,_7f);
}else{
if(this._relativeTo==_80.Element){
_82=this._getBoundsRelativeToElement(_7e,_7f);
}
}
}
}
}
return _82;
},_fixIeHeight:function(_83,_84){
if("CSS1Compat"==document.compatMode){
var _85=(_83.offsetHeight-parseInt(_84));
if(_85>0){
var _86=(parseInt(_83.style.height)-_85);
if(_86>0){
_83.style.height=_86+"px";
}
}
}
},_refreshTitle:function(){
if(null==this._titleElement){
return;
}
this._titleElement.innerHTML=this._title;
this._titleElement.style.display=(this._title)?"":"none";
},_createUI:function(){
if(!this._popupElement){
var _87=this.get_id();
var _88="RadToolTipWrapper_"+_87;
var _89=document.createElement("DIV");
_89.id=_88;
_89.className=this._getFullSkinName()+(this.get_showCallout()?" visiblecallout":"");
_89.setAttribute("unselectable","on");
this._popupElement=_89;
var _8a=document.createElement("DIV");
_8a.className="ToolTipCallout "+this._getCalloutPosition(this._position);
_8a.innerHTML="&nbsp;";
this._calloutElement=_8a;
var _8b=document.createElement("TABLE");
_8b.className="ToolTipWrapper";
_8b.style.width=this._width;
_8b.style.height=this._height;
this._tableElement=_8b;
var _8c=["ToolTipTopLeft","ToolTipTopCenter","ToolTipTopRight","ToolTipLeftMiddle","ToolTipContent","ToolTipRightMiddle","ToolTipBottomLeft","ToolTipBottomCenter","ToolTipBottomRight"];
var _8d=0;
for(var i=1;i<=3;i++){
var _8f=_8b.insertRow(-1);
for(var j=1;j<=3;j++){
var _91=_8f.insertCell(-1);
_91.innerHTML="&nbsp;";
_91.className=_8c[_8d];
_8d++;
}
}
var _92=_8b.rows[0].cells[1];
_92.innerHTML="";
var _93=document.createElement("DIV");
_93.className="ToolTipTitlebar VisibleTitlebar";
_93.style.display="none";
this._titleElement=_93;
this._refreshTitle();
_92.appendChild(_93);
if(this._manualClose){
var _94=document.createElement("A");
_94.href="javascript: void(0);";
_94.className="CloseButton";
this._closeLinkHandler=Function.createDelegate(this,function(e){
this.hide();
if(e){
e.returnValue=false;
e.cancelBubble=true;
if(e.stopPropagation){
e.stopPropagation();
}
}
return false;
});
$addHandler(_94,"click",this._closeLinkHandler);
this._closeLink=_94;
var _96=document.createElement("SPAN");
_96.innerHTML="Close";
_94.title="Close";
_94.appendChild(_96);
_92.appendChild(_94);
}
var _97=_8b.rows[1].cells[1];
_97.vAlign="top";
_97.innerHTML="";
this._contentCell=_97;
var _98=null;
var _99=this.get_text();
if(this._targetControl&&!_99){
_99=this._targetControl.getAttribute("title");
if(_99){
this._targetControl.removeAttribute("title");
}
this._text=_99;
}
if(this._text){
this.set_content(this._text);
}else{
var _9a=this.get_id();
if(_9a){
_98=$get(_9a);
}
if(_98&&_98.innerHTML){
var _9b=this._transferNodeChildren(_98);
this.set_contentElement(_9b);
}
}
_89.appendChild(_8a);
_89.appendChild(_8b);
this._popupElement.style.display="none";
this._popupElement.style.position="absolute";
this._addToolTipToDocument(_98);
}
if(!this._popupBehavior){
this._popupBehavior=$create(Telerik.Web.PopupBehavior,{"id":(new Date()-100)+"PopupBehavior","parentElement":this._targetControl},null,null,this._popupElement);
}
},_transferNodeChildren:function(_9c){
if(!_9c){
return null;
}
var _9d=_9c.ownerDocument.createElement(_9c.tagName);
if(_9c.control){
_9d.control=_9c.control;
}
while(_9c.childNodes&&_9c.childNodes.length>0){
var _9e=_9c.childNodes[0];
_9c.removeChild(_9e);
_9d.appendChild(_9e);
}
return _9d;
},_addToolTipToDocument:function(_9f){
if(null!=_9f){
_9f.parentNode.replaceChild(this._popupElement,_9f);
return;
}
var _a0=document.getElementById(this._formID);
if(!_a0){
_a0=document.forms[0];
}
_a0.appendChild(this._popupElement);
},_getParentByTagName:function(_a1,_a2){
var _a3=_a1;
_a2=_a2.toUpperCase();
while(_a3.tagName.toUpperCase()!=_a2){
_a3=_a3.parentNode;
if(!_a3){
break;
}
}
return _a3;
},_getFullSkinName:function(){
return "radtooltip_"+this._skin;
},_getUniqueString:function(){
return ""+(new Date()-100);
},_getCalloutPosition:function(_a4){
with(Telerik.Web.UI.ToolTipPosition){
switch(_a4){
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(_a5){
return parseInt((_a5+"").charAt(1));
},_getVerticalSide:function(_a6){
return parseInt((_a6+"").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="50000";
},_setOverflow:function(){
var _a9=this._contentScrolling;
if(_a9==Telerik.Web.UI.ToolTipScrolling.Auto){
return;
}
var el=this._contentElement;
if(!el){
return;
}
var _ab="";
with(Telerik.Web.UI.ToolTipScrolling){
switch(_a9){
case Auto:
_ab="auto";
break;
case None:
_ab="hidden";
break;
case X:
_ab="";
el.style.overflowX="scroll";
break;
case Y:
_ab="";
el.style.overflowY="scroll";
break;
case Both:
_ab="scroll";
}
}
var _ac=el.parentNode;
el.style.display="none";
var _ad=$telerik.getBounds(_ac).height;
el.style.height=_ad+"px";
if(!el.style.overflowX&&!el.style.overflowY){
el.style.overflow=_ab;
}
el.style.display="";
},_getLeftOffset:function(){
var _ae=Telerik.Web.UI.ToolTipPosition;
if(_ae.Left==this._position){
return (-1*this._targetControl.offsetWidth)+this._offsetX;
}else{
if(_ae.Right==this._position){
return this._targetControl.offsetWidth+this._offsetX;
}else{
return this._offsetX;
}
}
},_getTopOffset:function(){
var _af;
var _b0=Telerik.Web.UI.ToolTipPosition;
if(_b0.Top==this._position){
_af=(-1*this._targetControl.offsetHeight)+this._offsetY;
}else{
if(_b0.Bottom==this._position){
_af=this._targetControl.offsetHeight+this._offsetY;
}else{
_af=this._offsetY;
}
}
return _af;
},isVisible:function(){
return this._popupVisible;
},get_targetControlID:function(){
return this._targetControlID;
},set_targetControlID:function(_b1){
if(this._targetControlID!=_b1){
this._targetControlID=_b1;
var _b2=(this._targetControlID?$get(this._targetControlID):null);
this.set_targetControl(_b2);
}
},get_targetControl:function(){
return this._targetControl;
},set_targetControl:function(_b3){
if(this._targetControl!=_b3){
if(this._targetControl&&(this._targetControl!=_b3)){
this._registerMouseHandlers(this._targetControl,false);
}
this._targetControl=_b3;
if(this._targetControl){
this._registerMouseHandlers(this._targetControl,true);
if(this._popupBehavior){
this._popupBehavior.set_parentElement(this._targetControl);
}
}
}
},get_serverTargetControlID:function(){
return this._serverTargetControlID;
},set_serverTargetControlID:function(_b4){
this._serverTargetControlID=_b4;
},get_serverValue:function(){
return this._serverValue;
},set_serverValue:function(_b5){
this._serverValue=_b5;
},get_formID:function(){
return this._formID;
},set_formID:function(_b6){
if(this._formID!=_b6){
this._formID=_b6;
}
},get_position:function(){
return this._position;
},set_position:function(_b7){
if(this._position!=_b7){
this._position=_b7;
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(_b8){
if(this._offsetX!=_b8){
this._offsetX=_b8;
}
},get_offsetY:function(){
return this._offsetY;
},set_offsetY:function(_b9){
if(this._offsetY!=_b9){
this._offsetY=_b9;
}
},get_title:function(){
return this._title;
},set_title:function(_ba){
if(this._title!=_ba){
this._title=_ba;
}
this._refreshTitle();
},get_text:function(){
return this._text;
},set_text:function(_bb){
if(this._text!=_bb){
this._text=_bb;
}
if(this.isCreated()){
this.set_content(this._text);
}
},get_width:function(){
return this._width;
},set_width:function(_bc){
if(this._width!=_bc){
this._width=_bc;
}
},get_height:function(){
return this._height;
},set_height:function(_bd){
if(this._height!=_bd){
this._height=_bd;
}
},get_relativeTo:function(){
return this._relativeTo;
},set_relativeTo:function(_be){
if(this._relativeTo!=_be){
this._relativeTo=_be;
}
},get_contentScrolling:function(){
return this._contentScrolling;
},set_contentScrolling:function(_bf){
if(this._contentScrolling!=_bf){
this._contentScrolling=_bf;
}
},get_sticky:function(){
return this._sticky;
},set_sticky:function(_c0){
if(this._sticky!=_c0){
this._sticky=_c0;
}
},get_manualClose:function(){
return this._manualClose;
},set_manualClose:function(_c1){
if(this._manualClose!=_c1){
this._manualClose=_c1;
}
},get_showCallout:function(){
return this._showCallout;
},set_showCallout:function(_c2){
if(this._showCallout!=_c2){
this._showCallout=_c2;
}
},get_showDelay:function(){
return this._showDelay;
},set_showDelay:function(_c3){
if(this._showDelay!=_c3){
this._showDelay=_c3;
}
},get_autoCloseDelay:function(){
return this._autoCloseDelay;
},set_autoCloseDelay:function(_c4){
if(this._autoCloseDelay!=_c4){
this._autoCloseDelay=_c4;
}
},get_hideDelay:function(){
return this._hideDelay;
},set_hideDelay:function(_c5){
if(this._hideDelay!=_c5){
this._hideDelay=_c5;
}
},get_mouseTrailing:function(){
return this._mouseTrailing;
},set_mouseTrailing:function(_c6){
if(this._mouseTrailing!=_c6){
this._mouseTrailing=_c6;
if(true==_c6){
this.set_relativeTo(Telerik.Web.UI.ToolTipRelativeDisplay.Mouse);
}
}
},get_visibleOnPageLoad:function(){
return this._visibleOnPageLoad;
},set_visibleOnPageLoad:function(_c7){
if(this._visibleOnPageLoad!=_c7){
this._visibleOnPageLoad=_c7;
}
},get_animation:function(){
return this._animation;
},set_animation:function(_c8){
if(this._animation!=_c8){
this._animation=_c8;
}
},get_showEvent:function(){
return this._showEvent;
},set_showEvent:function(_c9){
if(this._showEvent!=_c9){
this._showEvent=_c9;
}
},get_skin:function(){
return this._skin;
},set_skin:function(_ca){
if(_ca&&this._skin!=_ca){
this._skin=_ca;
}
},get_popupElement:function(){
return this._popupElement;
},get_modal:function(){
return this._modal;
},set_modal:function(_cb){
if(this._modal!=_cb){
this._modal=_cb;
}
this._makeModal(this._modal);
},add_beforeShow:function(_cc){
this.get_events().addHandler("beforeShow",_cc);
},remove_beforeShow:function(_cd){
this.get_events().removeHandler("beforeShow",_cd);
},add_show:function(_ce){
this.get_events().addHandler("show",_ce);
},remove_show:function(_cf){
this.get_events().removeHandler("show",_cf);
},add_beforeHide:function(_d0){
this.get_events().addHandler("beforeHide",_d0);
},remove_beforeHide:function(_d1){
this.get_events().removeHandler("beforeHide",_d1);
},add_hide:function(_d2){
this.get_events().addHandler("hide",_d2);
},remove_hide:function(_d3){
this.get_events().removeHandler("hide",_d3);
},saveClientState:function(){
var _d4=["text","position"];
var _d5={};
for(var i=0;i<_d4.length;i++){
_d5[_d4[i]]=this["get_"+_d4[i]]();
}
return Sys.Serialization.JavaScriptSerializer.serialize(_d5);
}};
$telerik.makeCompatible(Telerik.Web.UI.RadToolTip);
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);


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();