Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadAjaxControl=function(a){Telerik.Web.UI.RadAjaxControl.initializeBase(this,[a]); 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 b in this._clientEvents){if(typeof(this._clientEvents[b])!="string"){continue }if(this._clientEvents[b]!=""){var a=this._clientEvents[b]; if(a.indexOf("(")!=-1){this[b]=a }else{this[b]=eval(a) }}else{this[b]=null }}var c=Sys.WebForms.PageRequestManager.getInstance(); this._initializeRequestHandler=Function.createDelegate(this,this._initializeRequest); c.add_initializeRequest(this._initializeRequestHandler) },_getResponseHeader:function(a,b){try{return a.getResponseHeader(b) }catch(c){return null }},_handleAsyncRedirect:function(d){var a=this._getResponseHeader(d,"Location"); if(a&&a!=""){var b=document.createElement("a"); b.style.display="none"; b.href=a; document.body.appendChild(b); if(b.click){try{b.click() }catch(c){}}else{window.location.href=a }document.body.removeChild(b); return true }return false },_onFormSubmitCompleted:function(h,n){if(h._xmlHttpRequest!=null){if(this._handleAsyncRedirect(h._xmlHttpRequest)){try{h._aborted=true }catch(l){}return }}if(h._xmlHttpRequest!=null&&!h.get_timedOut()){var g=this.getResponseItems(h.get_responseData(),"scriptBlock"); for(var a=0,o=g.length; a=0; b--){m[b].dispose() }}Sys.WebForms.PageRequestManager.getInstance()._destroyTree(d); p.removeChild(d); Telerik.Web.UI.RadAjaxControl.InsertAtLocation(k,p,f); Telerik.Web.UI.RadAjaxControl.panelsToClear[Telerik.Web.UI.RadAjaxControl.panelsToClear.length]=q }}}h.get_webRequest().remove_completed(this._onFormSubmitCompletedHandler) },dispose:function(){this.hideLoadingPanels(); var a=Sys.WebForms.PageRequestManager.getInstance(); a.remove_initializeRequest(this._initializeRequestHandler); $clearHandlers(this.get_element()); this._element.control=null; Telerik.Web.UI.RadAjaxControl.callBaseMethod(this,"dispose") },get_enableAJAX:function(){return this._enableAJAX },set_enableAJAX:function(a){if(this._enableAJAX!=a){this._enableAJAX=a }},get_enableHistory:function(){return this._enableHistory },set_enableHistory:function(a){if(this._enableHistory!=a){this._enableHistory=a }},get_clientEvents:function(){return this._clientEvents },set_clientEvents:function(a){if(this._clientEvents!=a){this._clientEvents=a }},get_links:function(){return this._links },set_links:function(a){if(this._links!=a){this._links=a; if(this._links.length>0){this.updateHeadLinks() }}},get_styles:function(){return this._styles },set_styles:function(a){if(this._styles!=a){this._styles=a; if(this._styles.length>0){this.updateHeadStyles() }}},get_uniqueID:function(){return this._uniqueID },set_uniqueID:function(a){if(this._uniqueID!=a){this._uniqueID=a; window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)]=this }},get_requestQueueSize:function(){return this._requestQueueSize },set_requestQueueSize:function(a){if(a>0){this._requestQueueSize=a; this.raisePropertyChanged("requestQueueSize") }},isChildOf:function(a,b){while(a!=null){if(a==b){return true }a=a.parentNode }return false },_initializeRequest:function(b,f){var d=Sys.WebForms.PageRequestManager.getInstance(); if(d.get_isInAsyncPostBack()&&this._requestQueueSize>0){this._queueRequest(b,f) }if(this.Type=="Telerik.Web.UI.RadAjaxManager"){if(f.get_postBackElement()!=this.get_element()){var g=this._updatePanels.split(","); if(Array.contains(g,f.get_postBackElement().id)){this._isRequestInProgress=true; this._attachRequestHandlers(b,f,false); return false }else{var e=f.get_postBackElement().parentNode; var c=false; while(e!=null){if(e.id&&Array.contains(g,e.id)){c=true; break }e=e.parentNode }if(c){this._isRequestInProgress=true; this._attachRequestHandlers(b,f,false); return false }}if(!this._initiators[f.get_postBackElement().id]){var e=f.get_postBackElement().parentNode; var c=false; while(e!=null){if(e.id&&this._initiators[e.id]){c=true; break }e=e.parentNode }if(!c){this._isRequestInProgress=true; this._attachRequestHandlers(b,f,false); return false }}}}if(this.Type=="Telerik.Web.UI.RadAjaxPanel"){var h=this._getParentAjaxPanel(f.get_postBackElement()); if(h&&h.get_id()!=this.get_id()){return false }if(!this.isChildOf(f.get_postBackElement(),this.get_element())){return false }}if(this._enableHistory){if(Telerik.Web.UI.RadAjaxControl.History[""]==null){Telerik.Web.UI.RadAjaxControl.HandleHistory(b._uniqueIDToClientID(this._uniqueID),"") }Telerik.Web.UI.RadAjaxControl.HandleHistory(b._uniqueIDToClientID(this._uniqueID),f.get_request().get_body()) }if(b._form.__EVENTTARGET&&b._form.__EVENTTARGET.value){this.__EVENTTARGET=b._form.__EVENTTARGET.value }else{this.__EVENTTARGET=f.get_postBackElement().id }if(f.get_postBackElement().name){this.__EVENTTARGET=f.get_postBackElement().name }this.__EVENTARGUMENT=b._form.__EVENTARGUMENT.value; var a=new Telerik.Web.UI.RadAjaxRequestEventArgs(this.__EVENTTARGET,b._form.__EVENTARGUMENT.value,this._enableAJAX); var i=this.fireEvent(this,"OnRequestStart",[a]); if(a.get_cancel()||(typeof(i)!="undefined"&&!i)){f.set_cancel(true); return }if(!a._enableAjax||!a.EnableAjax){f.set_cancel(true); b._form.__EVENTTARGET.value=this.__EVENTTARGET; b._form.__EVENTARGUMENT.value=this.__EVENTARGUMENT; b._form.submit(); return }this._isRequestInProgress=true; this._attachRequestHandlers(b,f,true) },_endRequest:function(e,g){e.remove_endRequest(this._endRequestHandler); for(var a=0,h=Telerik.Web.UI.RadAjaxControl.panelsToClear.length; a0){this._executePendingRequest() }},_queueRequest:function(a,c){c.set_cancel(true); if(this._requestQueue.length>=this._requestQueueSize){return }var b=c.get_postBackElement(); var e=b.id; if(b.name){e=b.name }if(a._form.__EVENTTARGET&&a._form.__EVENTTARGET.value){e=a._form.__EVENTTARGET.value }var d=a._form.__EVENTARGUMENT.value; Array.enqueue(this._requestQueue,[e,d]) },_executePendingRequest:function(){var a=Array.dequeue(this._requestQueue); var c=a[0]; var b=a[1]; var d=Sys.WebForms.PageRequestManager.getInstance(); d._doPostBack(c,b) },_attachRequestHandlers:function(a,c,e){this._endRequestHandler=Function.createDelegate(this,this._endRequest); a.add_endRequest(this._endRequestHandler); this._onFormSubmitCompletedHandler=Function.createDelegate(this,this._onFormSubmitCompleted); c.get_request().add_completed(this._onFormSubmitCompletedHandler); c.get_request()._get_eventHandlerList()._list.completed.reverse(); if(e){var b=c.get_request().get_body(); var d=(b.lastIndexOf("&")!=b.length-1)?"&":""; b+=d+"RadAJAXControlID="+a._uniqueIDToClientID(this._uniqueID); c.get_request().set_body(b) }},_getParentAjaxPanel:function(a){var b=null; while(a!=null){if(typeof(a.id)!="undefined"&&$find(a.id)&&$find(a.id).Type=="Telerik.Web.UI.RadAjaxPanel"){b=$find(a.id); break }a=a.parentNode }return b },getResponseItems:function(n,h,c){var j=Sys.WebForms.PageRequestManager.getInstance(); var e=n; var i,k,g,b,m; var a=0; var f=null; var d="|"; var l=[]; while(a=e.length){f=j._findText(e,e.length); break }if(typeof(j._decodeString)!="undefined"){m=j._decodeString(e.substr(a,k)) }else{m=e.substr(a,k) }a+=k; if(e.charAt(a)!==d){f=j._findText(e,a); break }a++; if(h!=undefined&&h!=g){continue }if(c!=undefined&&c!=b){continue }Array.add(l,{type:g,id:b,content:m}) }return l },pageLoading:function(a,b){},pageLoaded:function(a,b){},hideLoadingPanels:function(){for(var b=0; b0){return b[0] }var a=document.createElement("head"); document.documentElement.appendChild(a); return a },ajaxRequest:function(a){__doPostBack(this._uniqueID,a) },ajaxRequestWithTarget:function(a,b){__doPostBack(a,b) },__doPostBack:function(a,b){var c=Sys.WebForms.PageRequestManager.getInstance()._form; if(c!=null){if(c.__EVENTTARGET!=null){c.__EVENTTARGET.value=a }if(c.__EVENTARGUMENT!=null){c.__EVENTARGUMENT.value=b }c.submit() }}}; Telerik.Web.UI.RadAjaxControl.registerClass("Telerik.Web.UI.RadAjaxControl",Sys.UI.Control); Telerik.Web.UI.RadAjaxRequestEventArgs=function(b,c,a){Telerik.Web.UI.RadAjaxRequestEventArgs.initializeBase(this); this._enableAjax=a; this._eventTarget=b; this._eventArgument=c; this._postbackControlClientID=b.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(a){if(this._enableAjax!=a){this._enableAjax=a }},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(a,d){if(window.netscape){return }var c=$get(a+"_History"); if(c==null){c=document.createElement("iframe"); c.id=a+"_History"; c.name=a+"_History"; c.style.width="0px"; c.style.height="0px"; c.src="javascript:''"; c.style.visibility="hidden"; var b=function(k){if(!Telerik.Web.UI.RadAjaxControl.ShouldLoadHistory){Telerik.Web.UI.RadAjaxControl.ShouldLoadHistory=true; return }var g=""; var o=""; var l=c.contentWindow.document.getElementById("__DATA"); if(!l){return }var m=l.value.split("&"); for(var f=0,n=m.length; f"); a.contentWindow.document.close(); if(window.netscape){a.contentWindow.document.location.hash="#'"+new Date()+"'" }}; Telerik.Web.UI.RadAjaxControl.DecodePostData=function(a){if(decodeURIComponent){return decodeURIComponent(a) }else{return unescape(a) }}; Telerik.Web.UI.RadAjaxControl.RestorePostData=function(c,a){if(c.tagName.toLowerCase()=="select"){for(var b=0,d=c.options.length; b\s*$/mi,"$1") }var c=document.createElement("script"); c.setAttribute("type","text/javascript"); if(Telerik.Web.UI.RadAjaxControl.IsSafari()){c.appendChild(document.createTextNode(a)) }else{c.text=a }var b=document.getElementsByTagName("head")[0]; b.appendChild(c); if(Telerik.Web.UI.RadAjaxControl.IsSafari()){c.innerHTML="" }else{c.parentNode.removeChild(c) }}; Telerik.Web.UI.RadAjaxControl.GetTags=function(a,f){var b=[]; var d=a; while(1){var e=Telerik.Web.UI.RadAjaxControl.GetTag(d,f); if(e.index==-1){break }b[b.length]=e; var c=e.index+e.outer.length; d=d.substring(c,d.length) }return b }; Telerik.Web.UI.RadAjaxControl.GetTag=function(b,e,a){if(typeof(a)=="undefined"){a="" }var d=new RegExp("<"+e+"[^>]*>((.|\n|\r)*?)","i"); var c=b.match(d); if(c!=null&&c.length>=2){return{outer:c[0],inner:c[1],index:c.index} }else{return{outer:a,inner:a,index:-1} }}; Telerik.Web.UI.RadAjaxControl.GetLinkHrefs=function(b){var e=b; var a=[]; while(1){var c=e.match(/]*href=('|")?([^'"]*)('|")?([^>]*)>.*?(<\/link>)?/i); if(c==null||c.length<3){break }var f=c[2]; a[a.length]=f; var d=c.index+f.length; e=e.substring(d,e.length) }return a }; Telerik.Web.UI.RadAjaxControl.GetScriptsSrc=function(b){var e=b; var a=[]; while(1){var c=e.match(/]*src=('|")?([^'"]*)('|")?([^>]*)>.*?(<\/script>)?/i); if(c==null||c.length<3){break }var f=c[2]; a[a.length]=f; var d=c.index+f.length; e=e.substring(d,e.length) }return a }; Telerik.Web.UI.RadAjaxControl.IsSafari=function(){return(navigator.userAgent.match(/safari/i)!=null) }; Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadAjaxLoadingPanel=function(a){Telerik.Web.UI.RadAjaxLoadingPanel.initializeBase(this,[a]); this._uniqueID=""; this._minDisplayTime=0; this._initialDelayTime=0; this._isSticky=false; this._transparency=0; this._manager=null; this._zIndex=90000; this.skin=""; 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(a){if(this._zIndex!=a){this._zIndex=a }},get_uniqueID:function(){return this._uniqueID },set_uniqueID:function(a){if(this._uniqueID!=a){this._uniqueID=a; window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)]=this }},get_initialDelayTime:function(){return this._initialDelayTime },set_initialDelayTime:function(a){if(this._initialDelayTime!=a){this._initialDelayTime=a }},get_isSticky:function(){return this._isSticky },set_isSticky:function(a){if(this._isSticky!=a){this._isSticky=a }},get_minDisplayTime:function(){return this._minDisplayTime },set_minDisplayTime:function(a){if(this._minDisplayTime!=a){this._minDisplayTime=a }},get_transparency:function(){return this._transparency },set_transparency:function(a){if(this._transparency!=a){this._transparency=a }},show:function(a){var e=$get(a+"_wrapper"); if((typeof(e)=="undefined")||(!e)){e=$get(a) }var f=this.get_element(); if(!(e&&f)){return false }var c=this._initialDelayTime; var b=this; var d=(!this._isSticky)?this.cloneLoadingPanel(f,a):f; if(c){window.setTimeout(function(){try{if(b._manager!=null&&b._manager._isRequestInProgress){b.displayLoadingElement(d,e) }}catch(g){}},c) }else{this.displayLoadingElement(d,e) }return true },hide:function(b){var d=$get(b); var i=String.format("{0}_wrapper",b); var h=$get(i); if(h){d=h }if(this.get_element()==null){var g=$get(Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)); if(g==null){return }this._element=g }var f=(!this._isSticky)?$get(this.get_element().id+b):this.get_element(); var a=new Date(); if(f==null){return }var e=a-f._startDisplayTime; var c=this._minDisplayTime; if(this._isSticky){if(c>e){window.setTimeout(function(){f.style.display="none" },c) }else{f.style.display="none" }}else{if(c>e){window.setTimeout(function(){f.parentNode.removeChild(f); if(typeof(d)!="undefined"&&(d!=null)){d.style.visibility="visible" }},c) }else{f.parentNode.removeChild(f); if(typeof(d)!="undefined"&&(d!=null)){d.style.visibility="visible" }}}},cloneLoadingPanel:function(c,a){var b=c.cloneNode(false); b.innerHTML=c.innerHTML; b.id=c.id+a; document.body.insertBefore(b,document.body.firstChild); return b },displayLoadingElement:function(e,c){if(!this._isSticky){if($telerik.isIE6){this._setDropDownsVisibitily(c,false) }var b=this.getElementRectangle(c); e.style.position="absolute"; e.style.width=b.width+"px"; e.style.height=b.height+"px"; e.style.left=b.left+"px"; e.style.top=b.top+"px"; e.style.textAlign="center"; e.style.zIndex=this._zIndex }e.style.display=""; e._startDisplayTime=new Date(); var d=100-parseInt(this._transparency); if(parseInt(this._transparency)>0){if(e.style&&e.style.MozOpacity!=null){e.style.MozOpacity=d/100 }else{if(e.style&&e.style.opacity!=null){e.style.opacity=d/100 }else{if(e.style&&e.style.filter!=null){e.style.filter="alpha(opacity="+d+");"; e.style.zoom=1 }}}}else{if(!this._isSticky){var a=true; if(this.skin!=""){if($telerik.isIE&&e.currentStyle&&(e.currentStyle.filter.indexOf("opacity")!=-1||e.firstChild.nextSibling.currentStyle.filter.indexOf("opacity")!=-1)){a=false }else{if(document.defaultView&&document.defaultView.getComputedStyle&&(document.defaultView.getComputedStyle(e,null).getPropertyValue("opacity")!=1||document.defaultView.getComputedStyle(e,null).getPropertyValue("MozOpacity")!=1||document.defaultView.getComputedStyle(e.getElementsByClassName("raDiv")[0],null).getPropertyValue("opacity")!=1||document.defaultView.getComputedStyle(e.getElementsByClassName("raDiv")[0],null).getPropertyValue("MozOpacity")!=1)){a=false }}}if(a){c.style.visibility="hidden" }}}},_setDropDownsVisibitily:function(a,b){if(!a){a=this }a.className+=" RadAjaxUpdatedElement" },getElementRectangle:function(e){if(!e){e=this }var f=$telerik.getLocation(e); var d=f.x; var b=f.y; var c=e.offsetWidth; var a=e.offsetHeight; return{left:d,top:b,width:c,height:a} }}; Telerik.Web.UI.RadAjaxLoadingPanel.registerClass("Telerik.Web.UI.RadAjaxLoadingPanel",Sys.UI.Control); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadAjaxManager=function(a){Telerik.Web.UI.RadAjaxManager.initializeBase(this,[a]); 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 c=this.get_element(); if(c!=null&&c.parentNode!=null&&c.parentNode.id==c.id+"SU"){c.parentNode.style.display="none" }var a=this.get_ajaxSettings(); for(var b=0,d=a.length; b