(function(){ RADAJAXNAMESPACEVERSION=29; if(typeof (window.RadAjaxNamespace)=="undefined"||typeof (window.RadAjaxNamespace.Version)=="undefined"||window.RadAjaxNamespace.Version0&&_1.RequestQueue.length"); _3c.contentWindow.document.close(); if(window.netscape){ _3c.contentWindow.document.location.hash="#'"+new Date()+"'"; } }; _1.DecodePostData=function(_3e){ if(decodeURIComponent){ return decodeURIComponent(_3e); }else{ return unescape(_3e); } }; _1.UniqueIDToClientID=function(_3f){ return _3f.replace(/\$/g,"_"); }; _1.RestorePostData=function(_40,_41){ if(_40.tagName.toLowerCase()=="select"){ for(var i=0,_43=_40.options.length;i<_43;i++){ if(_41.indexOf(_40.options[i].value)!=-1){ _40.options[i].selected=true; } } } if(_40.tagName.toLowerCase()=="input"&&(_40.type.toLowerCase()=="text"||_40.type.toLowerCase()=="hidden")){ _40.value=_41; } if(_40.tagName.toLowerCase()=="input"&&(_40.type.toLowerCase()=="checkbox"||_40.type.toLowerCase()=="radio")){ _40.checked=_41; } }; _1.AsyncRequest=function(_44,_45,_46,e){ try{ if(!_46){ return; } if(_44==""||_46==""){ return; } var _48=window[_46]; var _49=_1.CreateNewXmlHttpObject(); if(_49==null){ return; } if(_1.IsInRequest){ _1.QueueRequest.apply(_1,arguments); return; } if(!RadCallbackNamespace.raiseEvent("onrequeststart")){ return; } var evt=_1.CreateClientEvent(_44,_45); if(typeof (_48.EnableAjax)!="undefined"){ evt.EnableAjax=_48.EnableAjax; }else{ evt.EnableAjax=true; } evt.XMLHttpRequest=_49; if(!_1.FireEvent(_48,"OnRequestStart",[evt])){ return; } if(!evt.EnableAjax&&typeof (__doPostBack)!="undefined"){ __doPostBack(_44,_45); return; } var _4b=window.OnCallbackRequestStart(_48,evt); if(typeof (_4b)=="boolean"&&_4b==false){ return; } evt=null; _1.IsInRequest=true; _1.PrepareFormForAsyncRequest(_44,_45,_46); if(typeof (_48.PrepareLoadingTemplate)=="function"){ _48.PrepareLoadingTemplate(); } _1.ShowLoadingTemplate(_46); var _4c=_44.replace(/(\$|:)/g,"_"); RadAjaxNamespace.LoadingPanel.ShowLoadingPanels(_48,_4c); var _4d=_1.GetPostData(_46,e); _4d+=_1.GetUrlForAsyncRequest(_46); if(false){ if(_1.History[""]==null){ _1.HandleHistory(_46,""); } _1.HandleHistory(_46,_4d); } _49.open("POST",_1.UrlDecode(_48.Url),true); try{ _49.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(!_1.IsNetscape()){ _49.setRequestHeader("Content-Length",_4d.length); } } catch(e){ } _49.onreadystatechange=function(){ _1.HandleAsyncRequestResponse(_46,null,_44,_45,_49); }; _49.send(_4d); _4d=null; var evt=_1.CreateClientEvent(_44,_45); _1.FireEvent(_48,"OnRequestSent",[evt]); window.OnCallbackRequestSent(_48,evt); _48=null; _4c=null; evt=null; } catch(e){ _1.OnError(e,_46); } }; _1.CreateClientEvent=function(_4e,_4f){ var _50=_4e.replace(/(\$|:)/g,"_"); var evt={EventTarget:_4e,EventArgument:_4f,EventTargetElement:document.getElementById(_50)}; return evt; }; _1.IncludeClientScript=function(src){ if(_1.XMLHttpRequest==null){ _1.XMLHttpRequest=(window.XMLHttpRequest)?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); } if(_1.XMLHttpRequest==null){ return; } _1.XMLHttpRequest.open("GET",src,false); _1.XMLHttpRequest.send(null); if(_1.XMLHttpRequest.status==200){ var _53=_1.XMLHttpRequest.responseText; _1.EvalScriptCode(_53); } }; _1.EvalScriptCode=function(_54){ if(_1.IsSafari()){ _54=_54.replace(/^\s*\s*$/mi,"$1"); } var _55=document.createElement("script"); _55.setAttribute("type","text/javascript"); if(_1.IsSafari()){ _55.appendChild(document.createTextNode(_54)); }else{ _55.text=_54; } var _56=_1.GetHeadElement(); _56.appendChild(_55); if(_1.IsSafari()){ _55.innerHTML=""; }else{ _55.parentNode.removeChild(_55); } }; _1.evaluateScriptElementCode=function(_57){ var _58=""; if(_1.IsSafari()){ _58=_57.innerHTML; }else{ _58=_57.text; } _1.EvalScriptCode(_58); }; _1.ExecuteScripts=function(_59,_5a){ try{ var _5b=_59.getElementsByTagName("script"); for(var i=0,len=_5b.length;i=0;i--){ RadAjaxNamespace.DestroyElement(_5b[i]); } } catch(e){ _1.OnError(e,_5a); } }; _1.ExecuteScriptsForDisposedIDs=function(_5f,_60){ try{ if(_5f==null){ return; } if(window.opera){ return; } var _61=_5f.getElementsByTagName("script"); for(var i=0,len=_61.length;i]+>/gi,""); }; _1.GetElementByName=function(_a3,_a4){ var res=null; var _a6=_a3.getElementsByTagName("*"); var len=_a6.length; for(var i=0;i0){ var _c7=100-parseInt(_c4.LoadingTemplateTransparency); if(window.netscape&&!window.opera){ _c4.LoadingTemplate.style.MozOpacity=_c7/100; }else{ if(window.opera){ _c4.LoadingTemplate.style.opacity=_c7/100; }else{ _c4.LoadingTemplate.style.filter="alpha(opacity="+_c7+");"; var _c8=_c4.LoadingTemplate.getElementsByTagName("img"); for(var i=0;i<_c8.length;i++){ _c8[i].style.filter=""; } } } }else{ if(navigator.userAgent.toLowerCase().indexOf("msie 6.0")!=-1&&!window.opera){ var _ca=_c5.getElementsByTagName("select"); for(var i=0;i<_ca.length;i++){ _ca[i].style.visibility="hidden"; } } _c5.style.visibility="hidden"; } _c4.LoadingTemplate.style.display=""; } }; _1.HideLoadingTemplate=function(_cb){ var _cc=window[_cb]; if(_cc==null){ return; } var _cd=_cc.LoadingTemplate; if(_cd!=null){ if(_cd.parentNode!=null){ RadAjaxNamespace.DestroyElement(_cd); } _cc.LoadingTemplate=null; } }; _1.InitializeControlsToUpdate=function(_ce,_cf){ var _d0=window[_ce]; var _d1=_cf.responseText; try{ eval(_d1.substring(_d1.indexOf("/*_telerik_ajaxScript_*/"),_d1.lastIndexOf("/*_telerik_ajaxScript_*/"))); } catch(e){ this.OnError(e); } if(typeof (_d0.ControlsToUpdate)=="undefined"){ _d0.ControlsToUpdate=[_ce]; } }; _1.FindOldControl=function(_d2){ var _d3=document.getElementById(_d2+"_wrapper"); if(_d3==null){ if(_1.IsSafari()){ _d3=_1.GetElementByID(_1.GetForm(_d2),_d2); }else{ _d3=document.getElementById(_d2); } } var _d4=_1.FixCheckboxRadio(_d3); if(typeof (_d4)!="undefined"){ _d3=_d4; } return _d3; }; _1.FindNewControl=function(_d5,_d6,_d7){ _d7=_d7||"*"; var _d8=_d6.getElementsByTagName("div"); for(var i=0,len=_d8.length;i=0){ _d7="*"; } } var _db=_1.GetElementByID(_d6,_d5+"_wrapper",_d7); if(_db==null){ _db=_1.GetElementByID(_d6,_d5,_d7); } var _dc=_1.FixCheckboxRadio(_db); if(typeof (_dc)!="undefined"){ _db=_dc; } return _db; }; _1.InsertAtLocation=function(_dd,_de,_df){ if(_df!=null){ return _de.insertBefore(_dd,_df); }else{ return _de.appendChild(_dd); } }; _1.GetOldControlsUpdateSettings=function(_e0){ var _e1={}; for(var i=0,len=_e0.length;i=0;i--){ var _f1=_ef[i]; if(_f1.nodeType===1){ if(_f1.dispose&&typeof (_f1.dispose)==="function"){ _f1.dispose(); }else{ if(_f1.control&&typeof (_f1.control.dispose)==="function"){ _1.disposedIDs[_1.disposedIDs.length]=_f1.id; _f1.control.dispose(); } } var _f2=Sys.UI.Behavior.getBehaviors(_f1); for(var j=_f2.length-1;j>=0;j--){ _1.disposedIDs[_1.disposedIDs.length]=_f1.id; _f2[j].dispose(); } _1.destroyTree(_f1); } } } }; _1.FireOnResponseReceived=function(_f4,_f5,_f6,_f7){ var evt=_1.CreateClientEvent(_f5,_f6); evt.ResponseText=_f7; if(!_1.FireEvent(_f4,"OnResponseReceived",[evt])){ return; } var _f9=window.OnCallbackResponseReceived(_f4,evt); if(typeof (_f9)=="boolean"&&_f9==false){ return; } evt=null; }; _1.FireOnResponseEnd=function(_fa,_fb,_fc){ var evt=_1.CreateClientEvent(_fb,_fc); _1.FireEvent(_fa,"OnResponseEnd",[evt]); window.OnCallbackResponseEnd(_fa,evt); RadCallbackNamespace.raiseEvent("onresponseend"); evt=null; }; _1.CreateHtmlContainer=function(){ var _fe=document.createElement("div"); _fe.id="RadAjaxHtmlContainer"; _fe.style.display="none"; document.body.appendChild(_fe); return _fe; }; _1.CreateHtmlContainer=function(_ff){ var _100=document.getElementById("htmlUpdateContainer_"+_ff); if(_100!=null){ return _100; } var _101=document.getElementById("htmlUpdateContainer"); if(_101==null){ _101=document.createElement("div"); _101.id="htmlUpdateContainer"; _101.style.display="none"; if(_1.IsSafari()){ _101=document.forms[0].appendChild(_101); }else{ _101=document.body.appendChild(_101); } } _100=document.createElement("div"); _100.id="htmlUpdateContainer_"+_ff; _100.style.display="none"; _100=_101.appendChild(_100); _101=null; return _100; }; _1.UpdateHeader=function(_102,_103){ var _104=_1.GetHeadElement(); if(_104!=null&&_103!=""){ var _105=_1.GetTags(_103,"style"); _1.ApplyStyles(_105); _1.ApplyStyleFiles(_103); _1.UpdateTitle(_103); } }; _1.GetHeadHtml=function(_106){ var _107=/\]*\>((.|\n|\r)*?)\<\/head\>/i; var _108=_106.match(_107); if(_108!=null&&_108.length>2){ var _109=_108[1]; return _109; }else{ return ""; } }; _1.UpdateTitle=function(_10a){ var _10b=_1.GetTag(_10a,"title"); if(_10b.index!=-1){ var _10c=_10b.inner.replace(/^\s*(.*?)\s*$/mgi,"$1"); if(_10c!=document.title){ document.title=_10c; } } }; _1.GetHeadElement=function(){ var _10d=document.getElementsByTagName("head"); if(_10d.length>0){ return _10d[0]; } var head=document.createElement("head"); document.documentElement.appendChild(head); return head; }; _1.ApplyStyleFiles=function(_10f){ var _110=_1.GetLinkHrefs(_10f); var _111=""; var head=_1.GetHeadElement(); var _113=head.getElementsByTagName("link"); for(var i=0;i<_113.length;i++){ _111+="\n"+_113[i].getAttribute("href"); } for(var i=0;i<_110.length;i++){ var href=_110[i]; if(href.media&&href.media.toString().toLowerCase()=="print"){ continue; } if(_111.indexOf(href)>=0){ continue; } href=href.replace(/&amp;t/g,"&t"); if(_111.indexOf(href)>=0){ continue; } var link=document.createElement("link"); link.setAttribute("rel","stylesheet"); link.setAttribute("href",_110[i]); head.appendChild(link); } }; _1.ApplyStyles=function(_117){ if(_1.AppliedStyleSheets==null){ _1.AppliedStyleSheets={}; } if(document.createStyleSheet!=null){ for(var i=0;i<_117.length;i++){ var _119=_117[i].inner; var _11a=_1.GetStringHashCode(_119); if(_1.AppliedStyleSheets[_11a]!=null){ continue; } _1.AppliedStyleSheets[_11a]=true; var _11b=null; try{ _11b=document.createStyleSheet(); } catch(e){ } if(_11b==null){ _11b=document.createElement("style"); } _11b.cssText=_119; } }else{ var _11c=null; if(document.styleSheets.length==0){ css=document.createElement("style"); css.media="all"; css.type="text/css"; var _11d=_1.GetHeadElement(); _11d.appendChild(css); _11c=css; } if(document.styleSheets[0]){ _11c=document.styleSheets[0]; } for(var j=0;j<_117.length;j++){ var _119=_117[j].inner; var _11a=_1.GetStringHashCode(_119); if(_1.AppliedStyleSheets[_11a]!=null){ continue; } _1.AppliedStyleSheets[_11a]=true; var _11f=_119.split("}"); for(var i=0;i<_11f.length;i++){ if(_11f[i].replace(/\s*/,"")==""){ continue; } _11c.insertRule(_11f[i]+"}",i+1); } } } }; _1.GetStringHashCode=function(_120){ var h=0; if(_120){ for(var j=_120.length-1;j>=0;j--){ h^=_1.ANTABLE.indexOf(_120.charAt(j))+1; for(var i=0;i<3;i++){ var m=(h=h<<7|h>>>25)&150994944; h^=m?(m==150994944?1:0):1; } } } return h; }; _1.ANTABLE="w5Q2KkFts3deLIPg8Nynu_JAUBZ9YxmH1XW47oDpa6lcjMRfi0CrhbGSOTvqzEV"; _1.GetLinkHrefs=function(_125){ var html=_125; var _127=[]; while(1){ var _128=html.match(/]*href=('|")?([^'"]*)('|")?([^>]*)>.*?(<\/link>)?/i); if(_128==null||_128.length<3){ break; } var _129=_128[2]; _127[_127.length]=_129; var _12a=_128.index+_129.length; html=html.substring(_12a,html.length); } return _127; }; _1.GetTags=function(_12b,_12c){ var _12d=[]; var html=_12b; while(1){ var _12f=_1.GetTag(html,_12c); if(_12f.index==-1){ break; } _12d[_12d.length]=_12f; var _130=_12f.index+_12f.outer.length; html=html.substring(_130,html.length); } return _12d; }; _1.GetTag=function(_131,_132,_133){ if(typeof (_133)=="undefined"){ _133=""; } var _134=new RegExp("<"+_132+"[^>]*>((.|\n|\r)*?)","i"); var _135=_131.match(_134); if(_135!=null&&_135.length>=2){ return {outer:_135[0],inner:_135[1],index:_135.index}; }else{ return {outer:_133,inner:_133,index:-1}; } }; _1.EmptyFunction=function(){ }; _1.HandleAsyncRequestResponse=function(_136,_137,_138,_139,_13a){ try{ RadAjaxNamespace.IsAsyncResponse=true; var _13b=window[_136]; if(_13b==null){ return; } if(_13a==null||_13a.readyState!=4){ return; } _1.IsInRequest=false; _1.Check404Status(_13a); if(!_1.HandleAsyncRedirect(_136,_13a)){ return; } if(_13a.responseText==""){ return; } if(!_1.CheckContentType(_136,_13a)){ return; } _1.HideLoadingTemplate(_136); _1.InitializeControlsToUpdate(_136,_13a); _1.FireOnResponseReceived(_13b,_138,_139,_13a.responseText); _1.UpdateControlsHtml(_13b,_13a,_136); _1.HandleResponseScripts(_13a); if(_13a!=null){ _13a.onreadystatechange=_1.EmptyFunction; } _1.FireOnResponseEnd(_13b,_138,_139); if(_1.IsSafari()){ window.setTimeout(function(){ var h=document.body.offsetHeight; var w=document.body.offsetWidth; },0); } if(_1.RequestQueue.length>0){ asyncRequestArgs=_1.RequestQueue.shift(); window.setTimeout(function(){ _1.AsyncRequest.apply(_1,asyncRequestArgs); },0); } _13b.Dispose(); } catch(e){ _1.OnError(e,_136); } }; _1.UpdateControlsHtml=function(_13e,_13f,_140){ var _141=_13e.ControlsToUpdate; if(_141.length==0){ return; } var _142=_1.GetOldControlsUpdateSettings(_141); RadAjaxNamespace.LoadingPanel.HideLoadingPanels(_13e); var _143=_13f.responseText; var _144=_1.GetHeadHtml(_143); try{ if(_13e.EnablePageHeadUpdate!=false){ _1.UpdateHeader(_140,_144); } } catch(e){ } _143=_143.replace(_144,""); var _145=_1.CreateHtmlContainer(_13e.ControlID); _143=_1.RemoveServerForm(_143); _145.innerHTML=_143; var _146=navigator.userAgent; if(_146.indexOf("Netscape")<0){ _145.parentNode.removeChild(_145); } var _147=true; for(var i=0,len=_141.length;i-1){ _145.parentNode.removeChild(_145); } _1.UpdateHiddenInputs(_145.getElementsByTagName("input"),_140); if(_13e.OnRequestEndInternal){ _13e.OnRequestEndInternal(); } _1.ResetValidators(); if(_13e.EnableOutsideScripts){ _1.ExecuteScripts(_145,_140); }else{ if(_1.disposedIDs.length>0){ _1.ExecuteScriptsForDisposedIDs(_145,_140); } if(_147){ _1.ExecuteValidatorsScripts(_145,_140); } } RadAjaxNamespace.DestroyElement(_145); }; _1.RemoveServerForm=function(_14e){ _14e=_14e.replace(/]*)id=('|")([^'"]*)('|")([^>]*)>/mgi,""); _14e=_14e.replace(/<\/form>/mgi,""); return _14e; }; _1.GetReplacedControlTagNameSearchHint=function(_14f){ var _150=_14f.tagName; if(_150!=null){ if(_150.toLowerCase()=="span"||_150.toLowerCase()=="input"){ _150="*"; } if(_14f.innerHTML.indexOf("RADAJAX_HIDDENCONTROL")>=0){ _150="*"; } } return _150; }; _1.HandleResponseScripts=function(_151){ var _152=_151.responseText; var m=_152.match(/_RadAjaxResponseScript_((.|\n|\r)*?)_RadAjaxResponseScript_/); if(m&&m.length>1){ var _154=m[1]; _1.EvalScriptCode(_154); } }; RadAjaxNamespace.DestroyElement=function(_155){ RadAjaxNamespace.DisposeElement(_155); if(_1.IsGecko()){ var _156=_155.parentNode; if(_156!=null){ _156.removeChild(_155); } } try{ var _157=document.getElementById("IELeakGarbageBin"); if(!_157){ _157=document.createElement("DIV"); _157.id="IELeakGarbageBin"; _157.style.display="none"; document.body.appendChild(_157); } _157.appendChild(_155); _157.innerHTML=""; } catch(error){ } }; RadAjaxNamespace.DisposeElement=function(_158){ }; RadAjaxNamespace.OnError=function(e,_15a){ throw (e); }; _1.HandleAsyncRedirect=function(_15b,_15c){ try{ var _15d=window[_15b]; var _15e=_1.GetResponseHeader(_15c,"Location"); if(_15e&&_15e!=""){ var tmp=document.createElement("a"); tmp.style.display="none"; tmp.href=_15e; document.body.appendChild(tmp); if(tmp.click){ try{ tmp.click(); } catch(e){ } }else{ window.location.href=_15e; } document.body.removeChild(tmp); this.LoadingPanel.HideLoadingPanels(window[_15b]); return false; }else{ return true; } } catch(e){ _1.OnError(e); } return true; }; _1.GetResponseHeader=function(_160,_161){ try{ return _160.getResponseHeader(_161); } catch(e){ return null; } }; _1.GetAllResponseHeaders=function(_162){ try{ return _162.getAllResponseHeaders(); } catch(e){ return null; } }; _1.CheckContentType=function(_163,_164){ try{ var _165=window[_163]; var _166=_1.GetResponseHeader(_164,"content-type"); if(_166==null&&_164.status==null){ var _167=new Error("Unknown server error"); throw (_167); return false; } var _168; if(!window.opera){ _168="text/javascript"; }else{ _168="text/xml"; } if(_166.indexOf(_168)==-1&&_164.status==200){ var e=new Error("Unexpected ajax response was received from the server.\n"+"This may be caused by one of the following reasons:\n\n "+"- Server.Transfer.\n "+"- Custom http handler.\n"+"- Incorrect loading of an \"Ajaxified\" user control.\n\n"+"Verify that you don't get a server-side exception or any other undesired behavior, by setting the EnableAJAX property to false."); throw (e); return false; }else{ if(_164.status!=200){ var evt={Status:_164.status,ResponseText:_164.responseText,ResponseHeaders:_1.GetAllResponseHeaders(_164)}; if(!_1.FireEvent(_165,"OnRequestError",[evt])){ return false; } document.write(_164.responseText); return false; } } return true; } catch(e){ _1.OnError(e); } }; _1.IsSafari=function(){ return (navigator.userAgent.match(/safari/i)!=null); }; _1.IsNetscape=function(){ return (navigator.userAgent.match(/netscape/i)!=null); }; _1.IsGecko=function(){ return (window.netscape&&!window.opera); }; _1.IsOpera=function(){ return window.opera!=null; }; _1.UpdateHiddenInputs=function(_16b,_16c){ try{ var _16d=window[_16c]; var form=_1.GetForm(_16c); if(_1.IsSafari()){ } for(var i=0,len=_16b.length;i0); if(_17d.validation){ if(typeof (Page_ClientValidate)=="function"){ _180=Page_ClientValidate(_17d.validationGroup); } } if(_180){ if((typeof (_17d.actionUrl)!="undefined")&&_181){ theForm.action=_17d.actionUrl; } if(_17d.trackFocus){ var _182=theForm.elements["__LASTFOCUS"]; if((typeof (_182)!="undefined")&&(_182!=null)){ if(typeof (document.activeElement)=="undefined"){ _182.value=_17d.eventTarget; }else{ var _183=document.activeElement; if((typeof (_183)!="undefined")&&(_183!=null)){ if((typeof (_183.id)!="undefined")&&(_183.id!=null)&&(_183.id.length>0)){ _182.value=_183.id; }else{ if(typeof (_183.name)!="undefined"){ _182.value=_183.name; } } } } } } } if(_181){ __doPostBack(_17d.eventTarget,_17d.eventArgument); return; } if(_180){ _1.AsyncRequest(_17d.eventTarget,_17d.eventArgument,_17e,e); } }; _1.ClientValidate=function(_184,e,_186){ var _187=true; if(typeof (Page_ClientValidate)=="function"){ _187=Page_ClientValidate(); } if(_187){ var _188=window[_186]; if(_188!=null&&typeof (_188.AsyncRequest)=="function"){ _188.AsyncRequest(_184.name,"",e); } } }; _1.FireEvent=function(_189,_18a,_18b){ try{ var _18c=true; if(typeof (_189[_18a])=="string"){ _18c=eval(_189[_18a]); }else{ if(typeof (_189[_18a])=="function"){ if(_18b){ if(typeof (_18b.unshift)!="undefined"){ _18b.unshift(_189); _18c=_189[_18a].apply(_189,_18b); }else{ _18c=_189[_18a].apply(_189,[_18b]); } }else{ _18c=_189[_18a](); } } } if(typeof (_18c)!="boolean"){ return true; }else{ return _18c; } } catch(error){ this.OnError(error); } }; RadAjaxNamespace.AddPanel=function(_18d){ var _18e=new RadAjaxNamespace.LoadingPanel(_18d); this.LoadingPanels[_18e.ClientID]=_18e; }; RadAjaxNamespace.LoadingPanel=function(_18f){ for(var prop in _18f){ this[prop]=_18f[prop]; } }; _1.IsChildOf=function(node,_192){ var _193=document.getElementById(node); if(_193){ while(_193.parentNode){ if(_193.parentNode.id==_192||_193.parentNode.id==_192+"_wrapper"){ return true; } _193=_193.parentNode; } }else{ if(node.indexOf(_192)==0){ return true; } } return false; }; _1.DisposeDisplayedLoadingPanels=function(){ _1.DisplayedLoadingPanels=null; }; if(_1.DisplayedLoadingPanels==null){ _1.DisplayedLoadingPanels=[]; _1.EventManager.Add(window,"unload",_1.DisposeDisplayedLoadingPanels); } RadAjaxNamespace.LoadingPanel.ShowLoadingPanels=function(_194,_195){ if(_194.GetAjaxSetting==null||_194.GetParentAjaxSetting==null){ return; } var _196=_194.GetAjaxSetting(_195); if(_196==null){ _196=_194.GetParentAjaxSetting(_195); } if(_196){ for(var j=0;j<_196.UpdatedControls.length;j++){ var _198=_196.UpdatedControls[j]; var _199=null; if((typeof (_198.PanelID)!="undefined")&&(_198.PanelID!="")){ _199=RadAjaxNamespace.LoadingPanels[_198.PanelID]; }else{ if(typeof (_194.DefaultLoadingPanelID)!="undefined"&&_194.DefaultLoadingPanelID!=""){ _199=RadAjaxNamespace.LoadingPanels[_194.DefaultLoadingPanelID]; } } if(typeof (RadAjaxPanelNamespace)!="undefined"&&_194.IsAjaxPanel){ if(_199!=null){ _199.Show(_198.ControlID); } }else{ if(_199!=null&&_198.ControlID!=_194.ClientID){ _199.Show(_198.ControlID); } } } } }; RadAjaxNamespace.LoadingPanel.prototype.Show=function(_19a){ var _19b=document.getElementById(_19a+"_wrapper"); if((typeof (_19b)=="undefined")||(!_19b)){ _19b=document.getElementById(_19a); } var _19c=document.getElementById(this.ClientID); if(!(_19b&&_19c)){ return; } var _19d=this.InitialDelayTime; var _19e=this; this.CloneLoadingPanel(_19c,_19b.id); if(_19d){ window.setTimeout(function(){ _19e.DisplayLoadingElement(_19b.id); },_19d); }else{ this.DisplayLoadingElement(_19b.id); } }; RadAjaxNamespace.LoadingPanel.prototype.GetDisplayedElement=function(_19f){ return _1.DisplayedLoadingPanels[this.ClientID+_19f]; }; RadAjaxNamespace.LoadingPanel.prototype.DisplayLoadingElement=function(_1a0){ loadingElement=this.GetDisplayedElement(_1a0); if(loadingElement!=null){ if(loadingElement.References>0){ var _1a1=document.getElementById(_1a0); if(!this.IsSticky){ var rect=_1.RadGetElementRect(_1a1); loadingElement.style.position="absolute"; loadingElement.style.width=rect.width+"px"; loadingElement.style.height=rect.height+"px"; loadingElement.style.left=rect.left+"px"; loadingElement.style.top=rect.top+"px"; loadingElement.style.textAlign="center"; loadingElement.style.zIndex=90000; var _1a3=100-parseInt(this.Transparency); if(parseInt(this.Transparency)>0){ if(loadingElement.style&&loadingElement.style.MozOpacity!=null){ loadingElement.style.MozOpacity=_1a3/100; }else{ if(loadingElement.style&&loadingElement.style.opacity!=null){ loadingElement.style.opacity=_1a3/100; }else{ if(loadingElement.style&&loadingElement.style.filter!=null){ loadingElement.style.filter="alpha(opacity="+_1a3+");"; } } } }else{ _1a1.style.visibility="hidden"; } } loadingElement.StartDisplayTime=new Date(); loadingElement.style.display=""; } } }; RadAjaxNamespace.LoadingPanel.prototype.FlashCompatibleClone=function(_1a4){ var _1a5=_1a4.cloneNode(false); _1a5.innerHTML=_1a4.innerHTML; return _1a5; }; RadAjaxNamespace.LoadingPanel.prototype.CloneLoadingPanel=function(_1a6,_1a7){ if(!_1a6){ return; } var _1a8=this.GetDisplayedElement(_1a7); if(_1a8==null){ var _1a8=this.FlashCompatibleClone(_1a6); if(!this.IsSticky){ document.body.insertBefore(_1a8,document.body.firstChild); }else{ var _1a9=_1a6.parentNode; var _1aa=_1.GetNodeNextSibling(_1a6); _1.InsertAtLocation(_1a8,_1a9,_1aa); } _1a8.References=0; _1a8.UpdatedElementID=_1a7; _1.DisplayedLoadingPanels[_1a6.id+_1a7]=_1a8; } _1a8.References++; return _1a8; }; RadAjaxNamespace.LoadingPanel.prototype.Hide=function(_1ab){ var _1ac=this.ClientID+_1ab; var _1ad=_1.DisplayedLoadingPanels[_1ac]; if(_1ad==null){ _1ad=_1.DisplayedLoadingPanels[_1ac+"_wrapper"]; } _1ad.References--; var _1ae=document.getElementById(_1ab); if(typeof (_1ae)!="undefined"&&(_1ae!=null)){ _1ae.style.visibility="visible"; } _1ad.style.display="none"; }; RadAjaxNamespace.LoadingPanel.HideLoadingPanels=function(_1af){ if(_1af.AjaxSettings==null){ return; } var _1b0=_1af.GetAjaxSetting(_1af.PostbackControlIDServer); if(_1b0==null){ _1b0=_1af.GetParentAjaxSetting(_1af.PostbackControlIDServer); } if(_1b0!=null){ for(var j=0;j<_1b0.UpdatedControls.length;j++){ var _1b2=_1b0.UpdatedControls[j]; RadAjaxNamespace.LoadingPanel.HideLoadingPanel(_1b2,_1af); } } }; RadAjaxNamespace.LoadingPanel.HideLoadingPanel=function(_1b3,_1b4){ var _1b5=RadAjaxNamespace.LoadingPanels[_1b3.PanelID]; if(_1b5==null){ _1b5=RadAjaxNamespace.LoadingPanels[_1b4.DefaultLoadingPanelID]; } if(_1b5==null){ return; } var _1b6=_1b3.ControlID; var _1b7=_1b5.GetDisplayedElement(_1b6+"_wrapper"); if((typeof (_1b7)=="undefined")||(!_1b7)){ _1b7=_1b5.GetDisplayedElement(_1b3.ControlID); }else{ _1b6=_1b3.ControlID+"_wrapper"; } var now=new Date(); if(_1b7==null){ return; } var _1b9=now-_1b7.StartDisplayTime; if(_1b5.MinDisplayTime>_1b9){ window.setTimeout(function(){ _1b5.Hide(_1b6); document.getElementById(_1b3.ControlID).visibility="visible"; },_1b5.MinDisplayTime-_1b9); }else{ _1b5.Hide(_1b6); var _1ba=document.getElementById(_1b3.ControlID); if(_1ba!=null){ _1ba.visibility="visible"; } } }; _1.RadAjaxControl=function(){ if(typeof (window.event)=="undefined"){ window.event=null; } }; _1.RadAjaxControl.prototype.GetParentAjaxSetting=function(_1bb){ if(typeof (_1bb)=="undefined"){ return null; } for(var i=this.AjaxSettings.length;i>0;i--){ if(_1.IsChildOf(_1bb,this.AjaxSettings[i-1].InitControlID)){ return this.GetAjaxSetting(this.AjaxSettings[i-1].InitControlID); } } }; _1.RadAjaxControl.prototype.GetAjaxSetting=function(_1bd){ var _1be=0; var _1bf=null; for(_1be=0;_1be0){ _1bf.UpdatedControls.push(this.AjaxSettings[_1be].UpdatedControls.shift()); } } } } return _1bf; }; _1.Rectangle=function(left,top,_1c3,_1c4){ this.left=(null!=left?left:0); this.top=(null!=top?top:0); this.width=(null!=_1c3?_1c3:0); this.height=(null!=_1c4?_1c4:0); this.right=left+_1c3; this.bottom=top+_1c4; }; _1.GetXY=function(el){ var _1c6=null; var pos=[]; var box; if(el.getBoundingClientRect){ box=el.getBoundingClientRect(); var _1c9=document.documentElement.scrollTop||document.body.scrollTop; var _1ca=document.documentElement.scrollLeft||document.body.scrollLeft; var x=box.left+_1ca-2; var y=box.top+_1c9-2; return [x,y]; }else{ if(document.getBoxObjectFor){ box=document.getBoxObjectFor(el); pos=[box.x-1,box.y-1]; }else{ pos=[el.offsetLeft,el.offsetTop]; _1c6=el.offsetParent; if(_1c6!=el){ while(_1c6){ pos[0]+=_1c6.offsetLeft; pos[1]+=_1c6.offsetTop; _1c6=_1c6.offsetParent; } } } } if(window.opera){ _1c6=el.offsetParent; while(_1c6&&_1c6.tagName.toUpperCase()!="BODY"&&_1c6.tagName.toUpperCase()!="HTML"){ pos[0]-=_1c6.scrollLeft; pos[1]-=_1c6.scrollTop; _1c6=_1c6.offsetParent; } }else{ _1c6=el.parentNode; while(_1c6&&_1c6.tagName.toUpperCase()!="BODY"&&_1c6.tagName.toUpperCase()!="HTML"){ pos[0]-=_1c6.scrollLeft; pos[1]-=_1c6.scrollTop; _1c6=_1c6.parentNode; } } return pos; }; _1.RadGetElementRect=function(_1cd){ if(!_1cd){ _1cd=this; } var _1ce=_1.GetXY(_1cd); var left=_1ce[0]; var top=_1ce[1]; var _1d1=_1cd.offsetWidth; var _1d2=_1cd.offsetHeight; return new _1.Rectangle(left,top,_1d1,_1d2); }; if(!window.RadCallbackNamespace){ window.RadCallbackNamespace={}; } if(!window.OnCallbackRequestStart){ window.OnCallbackRequestStart=function(){ }; } if(!window.OnCallbackRequestSent){ window.OnCallbackRequestSent=function(){ }; } if(!window.OnCallbackResponseReceived){ window.OnCallbackResponseReceived=function(){ }; } if(!window.OnCallbackResponseEnd){ window.OnCallbackResponseEnd=function(){ }; } if(!RadCallbackNamespace.raiseEvent){ RadCallbackNamespace.raiseEvent=function(_1d3,_1d4){ var _1d5=true; var _1d6=RadCallbackNamespace.getRadCallbackEventHandlers(_1d3); if(_1d6!=null){ for(var i=0;i<_1d6.length;i++){ var res=_1d6[i](_1d4); if(res==false){ _1d5=false; } } } return _1d5; }; } if(!RadCallbackNamespace.getRadCallbackEventHandlers){ RadCallbackNamespace.getRadCallbackEventHandlers=function(_1d9){ if(typeof (_1.callbackEventNames)=="undefined"){ return null; } for(var i=0;i<_1.callbackEventNames.length;i++){ if(_1.callbackEventNames[i].eventName==_1d9){ return _1.callbackEventNames[i].eventHandlers; } } return null; }; } if(!RadCallbackNamespace.attachEvent){ RadCallbackNamespace.attachEvent=function(_1db,_1dc){ if(typeof (_1.callbackEventNames)=="undefined"){ _1.callbackEventNames=new Array(); } var _1dd=this.getRadCallbackEventHandlers(_1db); if(_1dd==null){ _1.callbackEventNames[_1.callbackEventNames.length]={eventName:_1db,eventHandlers:new Array()}; _1.callbackEventNames[_1.callbackEventNames.length-1].eventHandlers[0]=_1dc; }else{ var _1de=this.getEventHandlerIndex(_1dd,_1dc); if(_1de==-1){ _1dd[_1dd.length]=_1dc; } } }; } if(!RadCallbackNamespace.getEventHandlerIndex){ RadCallbackNamespace.getEventHandlerIndex=function(_1df,_1e0){ for(var i=0;i<_1df.length;i++){ if(_1df[i]==_1e0){ return i; } } return -1; }; } if(!RadCallbackNamespace.detachEvent){ RadCallbackNamespace.detachEvent=function(_1e2,_1e3){ var _1e4=this.getRadCallbackEventHandlers(_1e2); if(_1e4!=null){ var _1e5=this.getEventHandlerIndex(_1e4,_1e3); if(_1e5>-1){ _1e4.splice(_1e5,1); } } }; } window["AjaxNS"]=_1; } })();