Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadAjaxControl=function(_1){ Telerik.Web.UI.RadAjaxControl.initializeBase(this,[_1]); this._clientEvents={}; this._uniqueID=""; this._enableHistory=false; this._enableAJAX=true; this._requestQueueSize=0; this._requestQueue=[]; this._loadingPanelsToHide=[]; this._initializeRequestHandler=null; this._endRequestHandler=null; this._isRequestInProgress=false; this._links=[]; this._styles=[]; this.Type="Telerik.Web.UI.RadAjaxControl"; this.UniqueID=this._uniqueID; this.EnableHistory=this._enableHistory; this.EnableAJAX=this._enableAJAX; this.Links=this._links; this.Styles=this._styles; this._updatePanels=""; }; Telerik.Web.UI.RadAjaxControl.prototype={initialize:function(){ Telerik.Web.UI.RadAjaxControl.callBaseMethod(this,"initialize"); for(var _2 in this._clientEvents){ if(typeof (this._clientEvents[_2])!="string"){ continue; } if(this._clientEvents[_2]!=""){ var _3=this._clientEvents[_2]; if(_3.indexOf("(")!=-1){ this[_2]=_3; }else{ this[_2]=eval(_3); } }else{ this[_2]=null; } } var _4=Sys.WebForms.PageRequestManager.getInstance(); this._initializeRequestHandler=Function.createDelegate(this,this._initializeRequest); _4.add_initializeRequest(this._initializeRequestHandler); },_getResponseHeader:function(_5,_6){ try{ return _5.getResponseHeader(_6); } catch(e){ return null; } },_handleAsyncRedirect:function(_7){ var _8=this._getResponseHeader(_7,"Location"); if(_8&&_8!=""){ var _9=document.createElement("a"); _9.style.display="none"; _9.href=_8; document.body.appendChild(_9); if(_9.click){ try{ _9.click(); } catch(e){ } }else{ window.location.href=_8; } document.body.removeChild(_9); return true; } return false; },_onFormSubmitCompleted:function(_a,_b){ if(_a._xmlHttpRequest!=null){ if(this._handleAsyncRedirect(_a._xmlHttpRequest)){ try{ _a._aborted=true; } catch(e){ } return; } } if(_a._xmlHttpRequest!=null&&!_a.get_timedOut()){ var _c=this.getResponseItems(_a.get_responseData(),"scriptBlock"); for(var i=0,_e=_c.length;i<_e;i++){ var _f=_c[i].content; if(_f.indexOf(Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID))!=-1){ var _10=_f.substr(_f.indexOf("\"links\":")+10,_f.indexOf("]",_f.indexOf("\"links\":"))-(_f.indexOf("\"links\":")+10)).replace(/\"/g,""); if(_10!=""){ this._links=_10.split(","); this.updateHeadLinks(); } } if(_f.indexOf(".axd")==-1&&_c[i].id=="ScriptPath"){ Telerik.Web.UI.RadAjaxControl.IncludeClientScript(_f); } } var _11=this.getResponseItems(_a.get_responseData(),"updatePanel"); Telerik.Web.UI.RadAjaxControl.panelsToClear=[]; for(var i=0,_e=_11.length;i<_e;i++){ var _12=_11[i]; if(!$get(_12.id)){ var _13=document.createElement("div"); _13.id=_12.id; var _14=$get(_12.id.replace("Panel","")); if(!_14){ continue; } var _15=_14.parentNode; var _16=_14.nextSibling||Telerik.Web.UI.RadAjaxControl.GetNodeNextSibling(_14); if(_14.nodeType===1){ if(_14.dispose&&typeof (_14.dispose)==="function"){ _14.dispose(); }else{ if(_14.control&&typeof (_14.control.dispose)==="function"){ _14.control.dispose(); } } var _17=Sys.UI.Behavior.getBehaviors(_14); for(var j=_17.length-1;j>=0;j--){ _17[j].dispose(); } } Sys.WebForms.PageRequestManager.getInstance()._destroyTree(_14); _15.removeChild(_14); Telerik.Web.UI.RadAjaxControl.InsertAtLocation(_13,_15,_16); Telerik.Web.UI.RadAjaxControl.panelsToClear[Telerik.Web.UI.RadAjaxControl.panelsToClear.length]=_12; } } } _a.get_webRequest().remove_completed(this._onFormSubmitCompletedHandler); },dispose:function(){ this.hideLoadingPanels(); var _19=Sys.WebForms.PageRequestManager.getInstance(); _19.remove_initializeRequest(this._initializeRequestHandler); Telerik.Web.UI.RadAjaxControl.callBaseMethod(this,"dispose"); },get_enableAJAX:function(){ return this._enableAJAX; },set_enableAJAX:function(_1a){ if(this._enableAJAX!=_1a){ this._enableAJAX=_1a; } },get_enableHistory:function(){ return this._enableHistory; },set_enableHistory:function(_1b){ if(this._enableHistory!=_1b){ this._enableHistory=_1b; } },get_clientEvents:function(){ return this._clientEvents; },set_clientEvents:function(_1c){ if(this._clientEvents!=_1c){ this._clientEvents=_1c; } },get_links:function(){ return this._links; },set_links:function(_1d){ if(this._links!=_1d){ this._links=_1d; if(this._links.length>0){ this.updateHeadLinks(); } } },get_styles:function(){ return this._styles; },set_styles:function(_1e){ if(this._styles!=_1e){ this._styles=_1e; if(this._styles.length>0){ this.updateHeadStyles(); } } },get_uniqueID:function(){ return this._uniqueID; },set_uniqueID:function(_1f){ if(this._uniqueID!=_1f){ this._uniqueID=_1f; window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)]=this; } },get_requestQueueSize:function(){ return this._requestQueueSize; },set_requestQueueSize:function(_20){ if(_20>0){ this._requestQueueSize=_20; this.raisePropertyChanged("requestQueueSize"); } },isChildOf:function(_21,_22){ while(_21!=null){ if(_21==_22){ return true; } _21=_21.parentNode; } return false; },_initializeRequest:function(_23,_24){ var _25=Sys.WebForms.PageRequestManager.getInstance(); if(_25.get_isInAsyncPostBack()&&this._requestQueueSize>0){ this._queueRequest(_23,_24); } if(this.Type=="Telerik.Web.UI.RadAjaxManager"){ if(_24.get_postBackElement()!=this.get_element()){ var _26=this._updatePanels.split(","); if(Array.contains(_26,_24.get_postBackElement().id)){ this._isRequestInProgress=true; this._attachRequestHandlers(_23,_24,false); return false; }else{ var _27=_24.get_postBackElement().parentNode; var _28=false; while(_27!=null){ if(_27.id&&Array.contains(_26,_27.id)){ _28=true; break; } _27=_27.parentNode; } if(_28){ this._isRequestInProgress=true; this._attachRequestHandlers(_23,_24,false); return false; } } if(!this._initiators[_24.get_postBackElement().id]){ var _27=_24.get_postBackElement().parentNode; var _28=false; while(_27!=null){ if(_27.id&&this._initiators[_27.id]){ _28=true; break; } _27=_27.parentNode; } if(!_28){ this._isRequestInProgress=true; this._attachRequestHandlers(_23,_24,false); return false; } } } } if(this.Type=="Telerik.Web.UI.RadAjaxPanel"){ var _29=this._getParentAjaxPanel(_24.get_postBackElement()); if(_29&&_29.get_id()!=this.get_id()){ return false; } if(!this.isChildOf(_24.get_postBackElement(),this.get_element())){ return false; } } if(this._enableHistory){ if(Telerik.Web.UI.RadAjaxControl.History[""]==null){ Telerik.Web.UI.RadAjaxControl.HandleHistory(_23._uniqueIDToClientID(this._uniqueID),""); } Telerik.Web.UI.RadAjaxControl.HandleHistory(_23._uniqueIDToClientID(this._uniqueID),_24.get_request().get_body()); } if(_23._form["__EVENTTARGET"]&&_23._form["__EVENTTARGET"].value){ this.__EVENTTARGET=_23._form["__EVENTTARGET"].value; }else{ this.__EVENTTARGET=_24.get_postBackElement().id; } if(_24.get_postBackElement().name){ this.__EVENTTARGET=_24.get_postBackElement().name; } this.__EVENTARGUMENT=_23._form["__EVENTARGUMENT"].value; var evt=new Telerik.Web.UI.RadAjaxRequestEventArgs(this.__EVENTTARGET,_23._form["__EVENTARGUMENT"].value,this._enableAJAX); var _2b=this.fireEvent(this,"OnRequestStart",[evt]); if(evt.get_cancel()||(typeof (_2b)!="undefined"&&!_2b)){ _24.set_cancel(true); return; } if(!evt._enableAjax||!evt.EnableAjax){ _24.set_cancel(true); _23._form["__EVENTTARGET"].value=this.__EVENTTARGET; _23._form["__EVENTARGUMENT"].value=this.__EVENTARGUMENT; _23._form.submit(); return; } this._isRequestInProgress=true; this._attachRequestHandlers(_23,_24,true); },_endRequest:function(_2c,_2d){ _2c.remove_endRequest(this._endRequestHandler); for(var i=0,_2f=Telerik.Web.UI.RadAjaxControl.panelsToClear.length;i<_2f;i++){ var _30=Telerik.Web.UI.RadAjaxControl.panelsToClear[i]; var _31=document.getElementById(_30.id); var _32=$get(_30.id.replace("Panel","")); if(!_32){ continue; } var _33=_31.parentNode; var _34=_31.nextSibling||Telerik.Web.UI.RadAjaxControl.GetNodeNextSibling(_31); Telerik.Web.UI.RadAjaxControl.InsertAtLocation(_32,_33,_34); _31.parentNode.removeChild(_31); } this._isRequestInProgress=false; this.hideLoadingPanels(); if(typeof (this.__EVENTTARGET)!="undefined"&&typeof (this.__EVENTARGUMENT)!="undefined"){ var evt=new Telerik.Web.UI.RadAjaxRequestEventArgs(this.__EVENTTARGET,this.__EVENTARGUMENT,this._enableAJAX); this.fireEvent(this,"OnResponseEnd",[evt]); } if(this._requestQueue.length>0){ this._executePendingRequest(); } },_queueRequest:function(_36,_37){ _37.set_cancel(true); if(this._requestQueue.length>=this._requestQueueSize){ return; } var _38=_37.get_postBackElement(); var _39=_38.id; if(_38.name){ _39=_38.name; } if(_36._form["__EVENTTARGET"]&&_36._form["__EVENTTARGET"].value){ _39=_36._form["__EVENTTARGET"].value; } var _3a=_36._form["__EVENTARGUMENT"].value; Array.enqueue(this._requestQueue,[_39,_3a]); },_executePendingRequest:function(){ var _3b=Array.dequeue(this._requestQueue); var _3c=_3b[0]; var _3d=_3b[1]; var _3e=Sys.WebForms.PageRequestManager.getInstance(); _3e._doPostBack(_3c,_3d); },_attachRequestHandlers:function(_3f,_40,_41){ this._endRequestHandler=Function.createDelegate(this,this._endRequest); _3f.add_endRequest(this._endRequestHandler); this._onFormSubmitCompletedHandler=Function.createDelegate(this,this._onFormSubmitCompleted); _40.get_request().add_completed(this._onFormSubmitCompletedHandler); _40.get_request()._get_eventHandlerList()._list.completed.reverse(); if(_41){ var _42=_40.get_request().get_body(); var _43=(_42.lastIndexOf("&")!=_42.length-1)?"&":""; _42+=_43+"RadAJAXControlID="+_3f._uniqueIDToClientID(this._uniqueID); _40.get_request().set_body(_42); } },_getParentAjaxPanel:function(_44){ var _45=null; while(_44!=null){ if(typeof (_44.id)!="undefined"&&$find(_44.id)&&$find(_44.id).Type=="Telerik.Web.UI.RadAjaxPanel"){ _45=$find(_44.id); break; } _44=_44.parentNode; } return _45; },getResponseItems:function(_46,_47,_48){ var _49=Sys.WebForms.PageRequestManager.getInstance(); var _4a=_46; var _4b,len,_4d,id,_4f; var _50=0; var _51=null; var _52="|"; var _53=[]; while(_50<_4a.length){ _4b=_4a.indexOf(_52,_50); if(_4b===-1){ _51=_49._findText(_4a,_50); break; } len=parseInt(_4a.substring(_50,_4b),10); if((len%1)!==0){ _51=_49._findText(_4a,_50); break; } _50=_4b+1; _4b=_4a.indexOf(_52,_50); if(_4b===-1){ _51=_49._findText(_4a,_50); break; } _4d=_4a.substring(_50,_4b); _50=_4b+1; _4b=_4a.indexOf(_52,_50); if(_4b===-1){ _51=_49._findText(_4a,_50); break; } id=_4a.substring(_50,_4b); _50=_4b+1; if((_50+len)>=_4a.length){ _51=_49._findText(_4a,_4a.length); break; } if(typeof (_49._decodeString)!="undefined"){ _4f=_49._decodeString(_4a.substr(_50,len)); }else{ _4f=_4a.substr(_50,len); } _50+=len; if(_4a.charAt(_50)!==_52){ _51=_49._findText(_4a,_50); break; } _50++; if(_47!=undefined&&_47!=_4d){ continue; } if(_48!=undefined&&_48!=id){ continue; } Array.add(_53,{type:_4d,id:id,content:_4f}); } return _53; },pageLoading:function(_54,_55){ },pageLoaded:function(_56,_57){ },hideLoadingPanels:function(){ for(var i=0;i0){ return _72[0]; } var _73=document.createElement("head"); document.documentElement.appendChild(_73); return _73; },ajaxRequest:function(_74){ __doPostBack(this._uniqueID,_74); },ajaxRequestWithTarget:function(_75,_76){ __doPostBack(_75,_76); },__doPostBack:function(_77,_78){ var _79=Sys.WebForms.PageRequestManager.getInstance()._form; if(_79!=null){ if(_79["__EVENTTARGET"]!=null){ _79["__EVENTTARGET"].value=_77; } if(_79["__EVENTARGUMENT"]!=null){ _79["__EVENTARGUMENT"].value=_78; } _79.submit(); } }}; Telerik.Web.UI.RadAjaxControl.registerClass("Telerik.Web.UI.RadAjaxControl",Sys.UI.Control); Telerik.Web.UI.RadAjaxRequestEventArgs=function(_7a,_7b,_7c){ Telerik.Web.UI.RadAjaxRequestEventArgs.initializeBase(this); this._enableAjax=_7c; this._eventTarget=_7a; this._eventArgument=_7b; this._postbackControlClientID=_7a.replace(/(\$|:)/g,"_"); this._eventTargetElement=$get(this._postbackControlClientID); this.EnableAjax=this._enableAjax; this.EventTarget=this._eventTarget; this.EventArgument=this._eventArgument; this.EventTargetElement=this._eventTargetElement; }; Telerik.Web.UI.RadAjaxRequestEventArgs.prototype={get_enableAjax:function(){ return this._enableAjax; },set_enableAjax:function(_7d){ if(this._enableAjax!=_7d){ this._enableAjax=_7d; } },get_eventTarget:function(){ return this._eventTarget; },get_eventArgument:function(){ return this._eventArgument; },get_eventTargetElement:function(){ return this._eventTargetElement; }}; Telerik.Web.UI.RadAjaxRequestEventArgs.registerClass("Telerik.Web.UI.RadAjaxRequestEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.RadAjaxControl.History={}; Telerik.Web.UI.RadAjaxControl.HandleHistory=function(_7e,_7f){ if(window.netscape){ return; } var _80=$get(_7e+"_History"); if(_80==null){ _80=document.createElement("iframe"); _80.id=_7e+"_History"; _80.name=_7e+"_History"; _80.style.width="0px"; _80.style.height="0px"; _80.src="javascript:''"; _80.style.visibility="hidden"; var _81=function(e){ if(!Telerik.Web.UI.RadAjaxControl.ShouldLoadHistory){ Telerik.Web.UI.RadAjaxControl.ShouldLoadHistory=true; return; } var _83=""; var _84=""; var _85=_80.contentWindow.document.getElementById("__DATA"); if(!_85){ return; } var _86=_85.value.split("&"); for(var i=0,_88=_86.length;i<_88;i++){ var _89=_86[i].split("="); if(_89[0]=="__EVENTTARGET"){ _83=_89[1]; } if(_89[0]=="__EVENTARGUMENT"){ _84=_89[1]; } var _8a=document.getElementById(Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(_89[0])); if(_8a!=null){ Telerik.Web.UI.RadAjaxControl.RestorePostData(_8a,Telerik.Web.UI.RadAjaxControl.DecodePostData(_89[1])); } } if(_83!=""){ __doPostBack(Telerik.Web.UI.RadAjaxControl.DecodePostData(_83),Telerik.Web.UI.RadAjaxControl.DecodePostData(_84),_7e); } }; $addHandler(_80,"load",_81); document.body.appendChild(_80); } if(Telerik.Web.UI.RadAjaxControl.History[_7f]==null){ Telerik.Web.UI.RadAjaxControl.History[_7f]=true; Telerik.Web.UI.RadAjaxControl.AddHistoryEntry(_80,_7f); } }; Telerik.Web.UI.RadAjaxControl.AddHistoryEntry=function(_8b,_8c){ Telerik.Web.UI.RadAjaxControl.ShouldLoadHistory=false; _8b.contentWindow.document.open(); _8b.contentWindow.document.write(""); _8b.contentWindow.document.close(); if(window.netscape){ _8b.contentWindow.document.location.hash="#'"+new Date()+"'"; } }; Telerik.Web.UI.RadAjaxControl.DecodePostData=function(_8d){ if(decodeURIComponent){ return decodeURIComponent(_8d); }else{ return unescape(_8d); } }; Telerik.Web.UI.RadAjaxControl.RestorePostData=function(_8e,_8f){ if(_8e.tagName.toLowerCase()=="select"){ for(var i=0,_91=_8e.options.length;i<_91;i++){ if(_8f.indexOf(_8e.options[i].value)!=-1){ _8e.options[i].selected=true; } } } if(_8e.tagName.toLowerCase()=="input"&&(_8e.type.toLowerCase()=="text"||_8e.type.toLowerCase()=="hidden")){ _8e.value=_8f; } if(_8e.tagName.toLowerCase()=="input"&&(_8e.type.toLowerCase()=="checkbox"||_8e.type.toLowerCase()=="radio")){ _8e.checked=_8f; } }; Telerik.Web.UI.RadAjaxControl.GetNodeNextSibling=function(_92){ if(_92!=null&&_92.nextSibling!=null){ return _92.nextSibling; } return null; }; Telerik.Web.UI.RadAjaxControl.InsertAtLocation=function(_93,_94,_95){ if(_95!=null){ return _94.insertBefore(_93,_95); }else{ return _94.appendChild(_93); } }; Telerik.Web.UI.RadAjaxControl.FocusElement=function(_96){ var _97=document.getElementById(_96); if(_97){ var _98=_97.tagName; var _99=_97.type; if(_98.toLowerCase()=="input"&&(_99.toLowerCase()=="checkbox"||_99.toLowerCase()=="radio")){ window.setTimeout(function(){ try{ _97.focus(); } catch(e){ } },500); }else{ try{ Telerik.Web.UI.RadAjaxControl.SetSelectionFocus(_97); _97.focus(); } catch(e){ } } } }; Telerik.Web.UI.RadAjaxControl.SetSelectionFocus=function(_9a){ if(_9a.createTextRange==null){ return; } var _9b=null; try{ _9b=_9a.createTextRange(); } catch(e){ } if(_9b!=null){ _9b.moveStart("textedit",_9b.text.length); _9b.collapse(false); _9b.select(); } }; Telerik.Web.UI.RadAjaxControl.panelsToClear=[]; Telerik.Web.UI.RadAjaxControl.UpdateElement=function(id,_9d){ var _9e=$get(id); if(_9e!=null){ _9e.innerHTML=_9d; var _9f=Telerik.Web.UI.RadAjaxControl.GetScriptsSrc(_9d); for(var i=0,_a1=_9f.length;i<_a1;i++){ Telerik.Web.UI.RadAjaxControl.IncludeClientScript(_9f[i]); } _9f=Telerik.Web.UI.RadAjaxControl.GetTags(_9d,"script"); for(var i=0,_a1=_9f.length;i<_a1;i++){ var _a2=_9f[i]; if(_a2.inner!=""){ Telerik.Web.UI.RadAjaxControl.EvalScriptCode(_a2.inner); } } var _a3=document.getElementsByTagName("head")[0]; var _a4=Telerik.Web.UI.RadAjaxControl.GetLinkHrefs(_9d); for(var i=0,_a1=_a4.length;i<_a1;i++){ var _a5=_a4[i]; var _a6=document.createElement("link"); _a6.setAttribute("rel","stylesheet"); _a6.setAttribute("href",_a5); _a3.appendChild(_a6); } } }; Telerik.Web.UI.RadAjaxControl.IncludeClientScript=function(src){ var _a8=(window.XMLHttpRequest)?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); _a8.open("GET",src,false); _a8.send(null); if(_a8.status==200){ var _a9=_a8.responseText; Telerik.Web.UI.RadAjaxControl.EvalScriptCode(_a9); } }; Telerik.Web.UI.RadAjaxControl.EvalScriptCode=function(_aa){ if(Telerik.Web.UI.RadAjaxControl.IsSafari()){ _aa=_aa.replace(/^\s*\s*$/mi,"$1"); } var _ab=document.createElement("script"); _ab.setAttribute("type","text/javascript"); if(Telerik.Web.UI.RadAjaxControl.IsSafari()){ _ab.appendChild(document.createTextNode(_aa)); }else{ _ab.text=_aa; } var _ac=document.getElementsByTagName("head")[0]; _ac.appendChild(_ab); if(Telerik.Web.UI.RadAjaxControl.IsSafari()){ _ab.innerHTML=""; }else{ _ab.parentNode.removeChild(_ab); } }; Telerik.Web.UI.RadAjaxControl.GetTags=function(_ad,_ae){ var _af=[]; var _b0=_ad; while(1){ var _b1=Telerik.Web.UI.RadAjaxControl.GetTag(_b0,_ae); if(_b1.index==-1){ break; } _af[_af.length]=_b1; var _b2=_b1.index+_b1.outer.length; _b0=_b0.substring(_b2,_b0.length); } return _af; }; Telerik.Web.UI.RadAjaxControl.GetTag=function(_b3,_b4,_b5){ if(typeof (_b5)=="undefined"){ _b5=""; } var _b6=new RegExp("<"+_b4+"[^>]*>((.|\n|\r)*?)","i"); var _b7=_b3.match(_b6); if(_b7!=null&&_b7.length>=2){ return {outer:_b7[0],inner:_b7[1],index:_b7.index}; }else{ return {outer:_b5,inner:_b5,index:-1}; } }; Telerik.Web.UI.RadAjaxControl.GetLinkHrefs=function(_b8){ var _b9=_b8; var _ba=[]; while(1){ var _bb=_b9.match(/]*href=('|")?([^'"]*)('|")?([^>]*)>.*?(<\/link>)?/i); if(_bb==null||_bb.length<3){ break; } var _bc=_bb[2]; _ba[_ba.length]=_bc; var _bd=_bb.index+_bc.length; _b9=_b9.substring(_bd,_b9.length); } return _ba; }; Telerik.Web.UI.RadAjaxControl.GetScriptsSrc=function(_be){ var _bf=_be; var _c0=[]; while(1){ var _c1=_bf.match(/]*src=('|")?([^'"]*)('|")?([^>]*)>.*?(<\/script>)?/i); if(_c1==null||_c1.length<3){ break; } var _c2=_c1[2]; _c0[_c0.length]=_c2; var _c3=_c1.index+_c2.length; _bf=_bf.substring(_c3,_bf.length); } return _c0; }; Telerik.Web.UI.RadAjaxControl.IsSafari=function(){ return (navigator.userAgent.match(/safari/i)!=null); }; Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadAjaxLoadingPanel=function(_c4){ Telerik.Web.UI.RadAjaxLoadingPanel.initializeBase(this,[_c4]); this._uniqueID=""; this._minDisplayTime=0; this._initialDelayTime=0; this._isSticky=false; this._transparency=0; this._manager=null; this._zIndex=90000; this.UniqueID=this._uniqueID; this.MinDisplayTime=this._minDisplayTime; this.InitialDelayTime=this._initialDelayTime; this.IsSticky=this._isSticky; this.Transparency=this._transparency; this.ZIndex=this._zIndex; }; Telerik.Web.UI.RadAjaxLoadingPanel.prototype={initialize:function(){ Telerik.Web.UI.RadAjaxLoadingPanel.callBaseMethod(this,"initialize"); },dispose:function(){ Telerik.Web.UI.RadAjaxLoadingPanel.callBaseMethod(this,"dispose"); },get_zIndex:function(){ return this._zIndex; },set_zIndex:function(_c5){ if(this._zIndex!=_c5){ this._zIndex=_c5; } },get_uniqueID:function(){ return this._uniqueID; },set_uniqueID:function(_c6){ if(this._uniqueID!=_c6){ this._uniqueID=_c6; window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)]=this; } },get_initialDelayTime:function(){ return this._initialDelayTime; },set_initialDelayTime:function(_c7){ if(this._initialDelayTime!=_c7){ this._initialDelayTime=_c7; } },get_isSticky:function(){ return this._isSticky; },set_isSticky:function(_c8){ if(this._isSticky!=_c8){ this._isSticky=_c8; } },get_minDisplayTime:function(){ return this._minDisplayTime; },set_minDisplayTime:function(_c9){ if(this._minDisplayTime!=_c9){ this._minDisplayTime=_c9; } },get_transparency:function(){ return this._transparency; },set_transparency:function(_ca){ if(this._transparency!=_ca){ this._transparency=_ca; } },show:function(_cb){ var _cc=$get(_cb+"_wrapper"); if((typeof (_cc)=="undefined")||(!_cc)){ _cc=$get(_cb); } var _cd=this.get_element(); if(!(_cc&&_cd)){ return false; } var _ce=this._initialDelayTime; var _cf=this; var _d0=(!this._isSticky)?this.cloneLoadingPanel(_cd,_cb):_cd; if(_ce){ window.setTimeout(function(){ try{ if(_cf._manager!=null&&_cf._manager._isRequestInProgress){ _cf.displayLoadingElement(_d0,_cc); } } catch(e){ } },_ce); }else{ this.displayLoadingElement(_d0,_cc); } return true; },hide:function(_d1){ var _d2=$get(_d1); var _d3=String.format("{0}_wrapper",_d1); var _d4=$get(_d3); if(_d4){ _d2=_d4; } if(this.get_element()==null){ return; } var _d5=(!this._isSticky)?$get(this.get_element().id+_d1):this.get_element(); var now=new Date(); if(_d5==null){ return; } var _d7=now-_d5._startDisplayTime; var _d8=this._minDisplayTime; if(this._isSticky){ if(_d8>_d7){ window.setTimeout(function(){ _d5.style.display="none"; },_d8); }else{ _d5.style.display="none"; } }else{ if(_d8>_d7){ window.setTimeout(function(){ _d5.parentNode.removeChild(_d5); if(typeof (_d2)!="undefined"&&(_d2!=null)){ _d2.style.visibility="visible"; } },_d8); }else{ _d5.parentNode.removeChild(_d5); if(typeof (_d2)!="undefined"&&(_d2!=null)){ _d2.style.visibility="visible"; } } } },cloneLoadingPanel:function(_d9,_da){ var _db=_d9.cloneNode(false); _db.innerHTML=_d9.innerHTML; _db.id=_d9.id+_da; document.body.insertBefore(_db,document.body.firstChild); return _db; },displayLoadingElement:function(_dc,_dd){ if(!this._isSticky){ var _de=this.getElementRectangle(_dd); _dc.style.position="absolute"; _dc.style.width=_de.width+"px"; _dc.style.height=_de.height+"px"; _dc.style.left=_de.left+"px"; _dc.style.top=_de.top+"px"; _dc.style.textAlign="center"; _dc.style.zIndex=this._zIndex; } _dc.style.display=""; _dc._startDisplayTime=new Date(); var _df=100-parseInt(this._transparency); if(parseInt(this._transparency)>0){ if(_dc.style&&_dc.style.MozOpacity!=null){ _dc.style.MozOpacity=_df/100; }else{ if(_dc.style&&_dc.style.opacity!=null){ _dc.style.opacity=_df/100; }else{ if(_dc.style&&_dc.style.filter!=null){ _dc.style.filter="alpha(opacity="+_df+");"; _dc.style.zoom=1; } } } }else{ if(!this._isSticky){ _dd.style.visibility="hidden"; } } },getElementRectangle:function(_e0){ if(!_e0){ _e0=this; } var _e1=$telerik.getLocation(_e0); var _e2=_e1.x; var top=_e1.y; var _e4=_e0.offsetWidth; var _e5=_e0.offsetHeight; return {"left":_e2,"top":top,"width":_e4,"height":_e5}; }}; Telerik.Web.UI.RadAjaxLoadingPanel.registerClass("Telerik.Web.UI.RadAjaxLoadingPanel",Sys.UI.Control); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadAjaxManager=function(_e6){ Telerik.Web.UI.RadAjaxManager.initializeBase(this,[_e6]); this._ajaxSettings=[]; this._defaultLoadingPanelID=""; this._initiators={}; this._loadingPanelsToHide=[]; this._isRequestInProgress=false; this.Type="Telerik.Web.UI.RadAjaxManager"; this._updatePanelsRenderMode=null; this.AjaxSettings=this._ajaxSettings; this.DefaultLoadingPanelID=this._defaultLoadingPanelID; }; Telerik.Web.UI.RadAjaxManager.prototype={initialize:function(){ Telerik.Web.UI.RadAjaxManager.callBaseMethod(this,"initialize"); var _e7=this.get_element(); if(_e7!=null&&_e7.parentNode!=null&&_e7.parentNode.id==_e7.id+"SU"){ _e7.parentNode.style.display="none"; } var _e8=this.get_ajaxSettings(); for(var i=0,_ea=_e8.length;i<_ea;i++){ this._initiators[_e8[i].InitControlID]=_e8[i].UpdatedControls; } },dispose:function(){ Telerik.Web.UI.RadAjaxManager.callBaseMethod(this,"dispose"); },get_ajaxSettings:function(){ return this._ajaxSettings; },set_ajaxSettings:function(_eb){ if(this._ajaxSettings!=_eb){ this._ajaxSettings=_eb; } },get_defaultLoadingPanelID:function(){ return this._defaultLoadingPanelID; },set_defaultLoadingPanelID:function(_ec){ if(this._defaultLoadingPanelID!=_ec){ this._defaultLoadingPanelID=_ec; } },get_updatePanelsRenderMode:function(){ return this._updatePanelsRenderMode; },set_updatePanelsRenderMode:function(_ed){ if(this._updatePanelsRenderMode!=_ed){ this._updatePanelsRenderMode=_ed; this._applyUpdatePanelsRenderMode(_ed); } },_applyUpdatePanelsRenderMode:function(_ee){ var _ef=Sys.WebForms.PageRequestManager.getInstance(); var ids=_ef._updatePanelClientIDs; for(var i=0;i