﻿Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.RadToolTipManager=function(_1){
Telerik.Web.UI.RadToolTipManager.initializeBase(this,[_1]);
this._targetControls=null;
this._isToolTipFactory=false;
this._loadOnDemand=false;
};
Telerik.Web.UI.RadToolTipManager.prototype={initialize:function(_2){
if(this._loadOnDemand){
this._initializeLoadOnDemand();
}else{
if(this._isToolTipFactory){
this._initializeTargetControls();
}
}
},dispose:function(){
Telerik.Web.UI.RadToolTipManager.callBaseMethod(this,"dispose");
},_initializeLoadOnDemand:function(){
var _3=function(_4,_5,_6){
var _7=_4.clone(_5,null);
if(_6&&_6!=_5.getAttribute("id")){
_7._set_ServerTargetControlID(_6);
}
_7.add_BeforeShow(function(){
_4._doLoadOnDemand(_7);
});
};
var _8=this._getTargetControlsArray();
for(var i=0;i<_8.length;i++){
var _a=_8[i][0];
var _b=$get(_a);
_3(this,_b,_8[i][1]);
}
},saveClientState:function(){
var _c={};
if(this.AjaxRequestID){
_c["AjaxTargetControl"]=this.AjaxRequestID;
}
return Sys.Serialization.JavaScriptSerializer.serialize(_c);
},_doLoadOnDemand:function(_d){
var _e=document.getElementById(this.get_id());
_e.style.display="none";
document.forms[0].appendChild(_e);
_d.showLoadingMessage(true);
var _f=Sys.WebForms.PageRequestManager.getInstance();
_f.add_endRequest(EndRequestHandler);
var _10=this;
function EndRequestHandler(_11,_12){
_d.set_ContentElement(_e);
_f.remove_endRequest(EndRequestHandler);
}
var _13=_d.get_ServerTargetControlID();
if(!_13){
_13=_d._targetControlID;
}
this.AjaxRequestID=_13;
this.updateClientState();
__doPostBack(this.get_id()+"Panel");
},_getTargetControlsArray:function(){
if(!this._targetControls){
return [];
}
var _14=eval(this._targetControls);
return _14;
},_initializeTargetControls:function(){
var _15=[];
var _16=this._getTargetControlsArray();
if(_16.length>0){
for(var i=0;i<_16.length;i++){
var _18=_16[i][0];
var _19=$get(_18);
if(_19){
_15[_15.length]=_19;
}
}
}else{
var _16=document.getElementsByTagName("*");
for(var i=0;i<_16.length;i++){
var _19=_16[i];
var _1a=_19.getAttribute("title");
var alt=_19.getAttribute("alt");
if(_19&&(_1a||alt)){
_15[_15.length]=_19;
if(!_1a){
_19.setAttribute("title",alt);
_19.removeAttribute("alt");
}
}
}
}
for(var i=0;i<_15.length;i++){
var _1c=_15[i];
if(_1c){
var _1d=this.get_Text();
if(!_1d){
_1d=_1c.getAttribute("title");
}
_1c.removeAttribute("title");
this.clone(_1c,_1d);
}
}
},get_IsToolTipFactory:function(){
return this._isToolTipFactory;
},set_IsToolTipFactory:function(_1e){
if(this._isToolTipFactory!=_1e){
this._isToolTipFactory=_1e;
}
},get_LoadOnDemand:function(){
return this._loadOnDemand;
},set_LoadOnDemand:function(_1f){
if(this._loadOnDemand!=_1f){
this._loadOnDemand=_1f;
}
},get_TargetControls:function(){
return this._targetControls;
},set_TargetControls:function(_20){
if(this._targetControls!=_20){
this._targetControls=_20;
}
}};
Telerik.Web.UI.RadToolTipManager.registerClass("Telerik.Web.UI.RadToolTipManager",Telerik.Web.UI.RadToolTip);


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();