Type.registerNamespace("Telerik.Web.UI.Calendar"); Telerik.Web.UI.Calendar.PresentationType=function(){}; Telerik.Web.UI.Calendar.PresentationType.prototype={Interactive:1,Preview:2}; Telerik.Web.UI.Calendar.PresentationType.registerEnum("Telerik.Web.UI.Calendar.PresentationType",false); Telerik.Web.UI.Calendar.FirstDayOfWeek=function(){}; Telerik.Web.UI.Calendar.FirstDayOfWeek.prototype={Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6,Sunday:7}; Telerik.Web.UI.Calendar.FirstDayOfWeek.registerEnum("Telerik.Web.UI.Calendar.FirstDayOfWeek",false); Telerik.Web.UI.Calendar.Orientation=function(){}; Telerik.Web.UI.Calendar.Orientation.prototype={RenderInRows:1,RenderInColumns:2}; Telerik.Web.UI.Calendar.Orientation.registerEnum("Telerik.Web.UI.Calendar.Orientation",false); Telerik.Web.UI.Calendar.AutoPostBackControl=function(){}; Telerik.Web.UI.Calendar.AutoPostBackControl.prototype={None:0,Both:1,TimeView:2,Calendar:3}; Telerik.Web.UI.Calendar.AutoPostBackControl.registerEnum("Telerik.Web.UI.Calendar.AutoPostBackControl",false); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.CalendarClickEventArgs=function(a,b){Telerik.Web.UI.CalendarClickEventArgs.initializeBase(this); this._domElement=a; this._index=b }; Telerik.Web.UI.CalendarClickEventArgs.prototype={get_domElement:function(){return this._domElement },get_index:function(){return this._index }}; Telerik.Web.UI.CalendarClickEventArgs.registerClass("Telerik.Web.UI.CalendarClickEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.CalendarDayRenderEventArgs=function(c,b,a){Telerik.Web.UI.CalendarDayRenderEventArgs.initializeBase(this); this._cell=c; this._date=b; this._renderDay=a }; Telerik.Web.UI.CalendarDayRenderEventArgs.prototype={get_cell:function(){return this._cell },get_date:function(){return this._date },get_renderDay:function(){return this._renderDay }}; Telerik.Web.UI.CalendarDayRenderEventArgs.registerClass("Telerik.Web.UI.CalendarDayRenderEventArgs",Sys.EventArgs); Telerik.Web.UI.CalendarDateClickEventArgs=function(b,a){Telerik.Web.UI.CalendarDateClickEventArgs.initializeBase(this); this._domEvent=b; this._renderDay=a }; Telerik.Web.UI.CalendarDateClickEventArgs.prototype={get_domEvent:function(){return this._domEvent },get_renderDay:function(){return this._renderDay }}; Telerik.Web.UI.CalendarDateClickEventArgs.registerClass("Telerik.Web.UI.CalendarDateClickEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.CalendarDateSelectingEventArgs=function(b,a){Telerik.Web.UI.CalendarDateSelectingEventArgs.initializeBase(this); this._isSelecting=b; this._renderDay=a }; Telerik.Web.UI.CalendarDateSelectingEventArgs.prototype={get_isSelecting:function(){return this._isSelecting },get_renderDay:function(){return this._renderDay }}; Telerik.Web.UI.CalendarDateSelectingEventArgs.registerClass("Telerik.Web.UI.CalendarDateSelectingEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.CalendarDateSelectedEventArgs=function(a){Telerik.Web.UI.CalendarDateSelectedEventArgs.initializeBase(this); this._renderDay=a }; Telerik.Web.UI.CalendarDateSelectedEventArgs.prototype={get_renderDay:function(){return this._renderDay }}; Telerik.Web.UI.CalendarDateSelectedEventArgs.registerClass("Telerik.Web.UI.CalendarDateSelectedEventArgs",Sys.EventArgs); Telerik.Web.UI.CalendarViewChangingEventArgs=function(a){Telerik.Web.UI.CalendarViewChangingEventArgs.initializeBase(this); this._step=a }; Telerik.Web.UI.CalendarViewChangingEventArgs.prototype={get_step:function(){return this._step }}; Telerik.Web.UI.CalendarViewChangingEventArgs.registerClass("Telerik.Web.UI.CalendarViewChangingEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.CalendarViewChangedEventArgs=function(a){Telerik.Web.UI.CalendarViewChangedEventArgs.initializeBase(this); this._step=a }; Telerik.Web.UI.CalendarViewChangedEventArgs.prototype={get_step:function(){return this._step }}; Telerik.Web.UI.CalendarViewChangedEventArgs.registerClass("Telerik.Web.UI.CalendarViewChangedEventArgs",Sys.EventArgs); Telerik.Web.UI.DatePickerPopupOpeningEventArgs=function(b,a){Telerik.Web.UI.DatePickerPopupOpeningEventArgs.initializeBase(this); this._popupControl=b; this._cancelCalendarSynchronization=a }; Telerik.Web.UI.DatePickerPopupOpeningEventArgs.prototype={get_popupControl:function(){return this._popupControl },get_cancelCalendarSynchronization:function(){return this._cancelCalendarSynchronization },set_cancelCalendarSynchronization:function(a){if(this._cancelCalendarSynchronization!==a){this._cancelCalendarSynchronization=a }}}; Telerik.Web.UI.DatePickerPopupOpeningEventArgs.registerClass("Telerik.Web.UI.DatePickerPopupOpeningEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.DatePickerPopupClosingEventArgs=function(a){Telerik.Web.UI.DatePickerPopupClosingEventArgs.initializeBase(this); this._popupControl=a }; Telerik.Web.UI.DatePickerPopupClosingEventArgs.prototype={get_popupControl:function(){return this._popupControl }}; Telerik.Web.UI.DatePickerPopupClosingEventArgs.registerClass("Telerik.Web.UI.DatePickerPopupClosingEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.TimeViewSelectedEventArgs=function(a,b){Telerik.Web.UI.TimeViewSelectedEventArgs.initializeBase(this); this._newTime=a; this._oldTime=b }; Telerik.Web.UI.TimeViewSelectedEventArgs.prototype={get_newTime:function(){return this._newTime },get_oldTime:function(){return this._oldTime }}; Telerik.Web.UI.TimeViewSelectedEventArgs.registerClass("Telerik.Web.UI.TimeViewSelectedEventArgs",Sys.EventArgs); if(typeof(window.RadCalendarNamespace)=="undefined"){window.RadCalendarNamespace={} }Type.registerNamespace("Telerik.Web.UI.Calendar"); Telerik.Web.UI.Calendar.Popup=function(){this.DomElement=null; this.ExcludeFromHiding=[]; this.zIndex=null }; Telerik.Web.UI.Calendar.Popup.zIndex=5000; Telerik.Web.UI.Calendar.Popup.cssClass="RadCalendarPopup"; Telerik.Web.UI.Calendar.Popup.secondaryCssClass="RadCalendarFastNavPopup"; Telerik.Web.UI.Calendar.Popup.prototype={CreateContainer:function(b){var a=document.createElement("DIV"); if(b=="table"){a.className=Telerik.Web.UI.Calendar.Popup.secondaryCssClass }else{a.className=Telerik.Web.UI.Calendar.Popup.cssClass }var c=RadHelperUtils.GetStyleObj(a); c.position="absolute"; if(navigator.userAgent.match(/Safari/)){c.visibility="hidden"; c.left="-1000px" }else{c.display="none" }c.border="0"; if(this.zIndex){c.zIndex=this.zIndex }else{c.zIndex=Telerik.Web.UI.Calendar.Popup.zIndex; Telerik.Web.UI.Calendar.Popup.zIndex+=2 }a.onclick=function(d){if(!d){d=window.event }d.returnValue=false; d.cancelBubble=true; if(d.stopPropagation){d.stopPropagation() }return false }; document.body.insertBefore(a,document.body.firstChild); return a },RemoveScriptsOnOpera:function(a){if(window.opera){var b=a.getElementsByTagName("*"); for(var d=0; d0){e=m }else{if(f&&f.id.indexOf("_timeView_wrapper")!=-1){k=this.Opener.get__timePopupImage() }else{k=this.Opener.get__popupImage() }}if(k&&k.offsetWidth>0){e=k }else{if(!m||m.offsetWidth==0){e=this.Opener.get_element() }}var h=$telerik.getLocation(e); var c=this.Opener.getElementDimensions(n); var l=parseInt(this.Opener.get_popupDirection()); var d=$telerik.getViewPortSize(); switch(l){case Telerik.Web.RadDatePickerPopupDirection.TopRight:a=h.x; g=h.y-c.height; if(this.Opener.get_enableScreenBoundaryDetection()){if(this.OverFlowsRight(d,c.width,h.x)&&h.x-(c.width-e.offsetWidth)>=0){a=h.x-(c.width-e.offsetWidth) }if(g<0){g=h.y+e.offsetHeight }}break; case Telerik.Web.RadDatePickerPopupDirection.BottomLeft:a=h.x-(c.width-e.offsetWidth); g=h.y+e.offsetHeight; if(this.Opener.get_enableScreenBoundaryDetection()){if(a<0){a=h.x }if(this.OverFlowsBottom(d,c.height,h.y)&&h.y-c.height>=0){g=h.y-c.height }}break; case Telerik.Web.RadDatePickerPopupDirection.TopLeft:a=h.x-(c.width-e.offsetWidth); g=h.y-c.height; if(this.Opener.get_enableScreenBoundaryDetection()){if(a<0){a=h.x }if(g<0){g=h.y+e.offsetHeight }}break; default:a=h.x; g=h.y+e.offsetHeight; if(this.Opener.get_enableScreenBoundaryDetection()){if(this.OverFlowsRight(d,c.width,h.x)&&h.x-(c.width-e.offsetWidth)>=0){a=h.x-(c.width-e.offsetWidth) }if(this.OverFlowsBottom(d,c.height,h.y)&&h.y-c.height>=0){g=h.y-c.height }}break }}else{if(f.id.indexOf("FastNavPopup")!=-1&&this.EnableScreenBoundaryDetection){var d=$telerik.getViewPortSize(); var c=Telerik.Web.UI.Calendar.Utils.GetElementDimensions(n); if(a+c.width>d.width&&a-c.width>=0){a=a-c.width }}}var b=RadHelperUtils.GetStyleObj(n); b.left=parseInt(a)+"px"; b.top=parseInt(g)+"px"; if(navigator.userAgent.match(/Safari/)){b.visibility="visible" }else{b.display="" }RadHelperUtils.ProcessIframe(n,true); this.OnClickFunc=Telerik.Web.UI.Calendar.Utils.AttachMethod(this.OnClick,this); this.OnKeyPressFunc=Telerik.Web.UI.Calendar.Utils.AttachMethod(this.OnKeyPress,this); var j=this; window.setTimeout(function(){RadHelperUtils.AttachEventListener(document,"click",j.OnClickFunc); RadHelperUtils.AttachEventListener(document,"keypress",j.OnKeyPressFunc) },300) },Hide:function(b){var a=this.DomElement; var e=RadHelperUtils.GetStyleObj(a); if(a){if(navigator.userAgent.match(/Safari/)){e.visibility="hidden"; e.position="absolute"; e.left="-1000px" }else{e.display="none" }e=null; if(a.childNodes.length!=0){if(navigator.userAgent.match(/Safari/)){a.childNodes[0].style.visibility="hidden"; a.childNodes[0].style.position="absolute"; a.childNodes[0].style.left="-1000px" }else{a.childNodes[0].style.display="none" }}var d=a.childNodes[0]; if(d!=null){a.removeChild(d); if(this.Parent!=null){this.Parent.appendChild(d) }else{if(this.Sibling!=null){var c=this.Sibling.parentNode; if(c!=null){c.insertBefore(d,this.Sibling) }}}if(navigator.userAgent.match(/Safari/)){RadHelperUtils.GetStyleObj(d).visibility="hidden"; RadHelperUtils.GetStyleObj(d).position="absolute"; RadHelperUtils.GetStyleObj(d).left="-1000px" }else{RadHelperUtils.GetStyleObj(d).display="none" }}RadHelperUtils.ProcessIframe(a,false) }if(this.OnClickFunc!=null){RadHelperUtils.DetachEventListener(document,"click",this.OnClickFunc); this.OnClickFunc=null }if(this.OnKeyPressFunc!=null){RadHelperUtils.DetachEventListener(document,"keydown",this.OnKeyPressFunc); this.OnKeyPressFunc=null }if(b&&this.ExitFunc){this.ExitFunc() }},OverFlowsBottom:function(b,a,d){var c=d+a; return c>b.height },OverFlowsRight:function(a,d,b){var c=b+d; return c>a.width },IsVisible:function(){var a=this.DomElement; var b=RadHelperUtils.GetStyleObj(a); if(a){if(navigator.userAgent.match(/Safari/)){return(b.visibility!="hidden") }return(b.display!="none") }return false },IsChildOf:function(b,a){while(b.parentNode){if(b.parentNode==a){return true }b=b.parentNode }return false },ShouldHide:function(c){var a=c.target; if(a==null){a=c.srcElement }for(var b=0; b0)||(document.getElementById&&document.compatMode)){this.IsIE6Win=true }else{if((navigator.appVersion.indexOf("MSIE 5.5")>0)&&document.getElementById&&!document.compatMode){this.IsIE55Win=true; this.IsIE6Win=true }else{if(document.getElementById&&!document.compatMode&&typeof(window.opera)=="undefined"){this.IsIE5Win=true }}}}else{this.IsIE4Win=true }}else{if(this.IsOsMac){this.IsIEMac=true; if(this.UpLevelDom){this.IsIE5Mac=true }else{this.IsIE4Mac=true }}}}if(this.AgentString.indexOf("opera")!=-1&&typeof(window.opera)=="undefined"){this.IsOpera4=true; this.IsOpera=true; this.CancelIe() }else{if(typeof(window.opera)!="undefined"&&!typeof(window.print)=="undefined"){this.IsOpera5=true; this.IsOpera=true; this.CancelIe() }else{if(typeof(window.opera)!="undefined"&&typeof(window.print)!="undefined"&&typeof(document.childNodes)=="undefined"){this.IsOpera6=true; this.IsOpera=true; this.CancelIe() }else{if(typeof(window.opera)!="undefined"&&typeof(document.childNodes)!="undefined"){this.IsOpera7=true; this.IsOpera=true; this.CancelIe() }}}}if(this.IsOpera7&&(this.AgentString.indexOf("8.")!=-1)){this.CancelIe(); this.CancelOpera(); this.IsOpera8=true; this.IsOpera=true }if(this.AgentString.indexOf("firefox/")!=-1){this.CancelIe(); this.CancelOpera(); this.IsMozilla=true; this.IsFirefox=true }else{if(navigator.product=="Gecko"&&window.find){this.CancelIe(); this.CancelOpera(); this.IsMozilla=true }}if(navigator.vendor&&navigator.vendor.indexOf("Netscape")!=-1&&navigator.product=="Gecko"&&window.find){this.CancelIe(); this.CancelOpera(); this.IsNetscape6Plus=true; this.IsMozilla=true }if(navigator.product=="Gecko"&&!window.find){this.CancelIe(); this.CancelOpera(); this.IsNetscape6=true }if((navigator.vendor&&navigator.vendor.indexOf("Netscape")!=-1&&navigator.product=="Gecko"&&window.find)||(this.AgentString.indexOf("netscape/7")!=-1||this.AgentString.indexOf("netscape7")!=-1)){this.CancelIe(); this.CancelOpera(); this.CancelMozilla(); this.IsMozilla=true; this.IsNetscape7=true }if((navigator.vendor&&navigator.vendor.indexOf("Netscape")!=-1&&navigator.product=="Gecko"&&window.find)||(this.AgentString.indexOf("netscape/8")!=-1||this.AgentString.indexOf("netscape8")!=-1)){this.CancelIe(); this.CancelOpera(); this.CancelMozilla(); this.IsMozilla=true; this.IsNetscape8=true }if(navigator.vendor&&navigator.vendor=="Camino"){this.CancelIe(); this.CancelOpera(); this.IsCamino=true; this.IsMozilla=true }if(((navigator.vendor&&navigator.vendor=="KDE")||(document.childNodes)&&(!document.all)&&(!navigator.taintEnabled))){this.CancelIe(); this.CancelOpera(); this.IsKonqueror=true }if((document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)&&(navigator.accentColorName)){this.CancelIe(); this.CancelOpera(); this.IsOmniWeb=true }else{if(document.layers&&navigator.mimeTypes["*"]){this.CancelIe(); this.CancelOpera(); this.IsNetscape4=true }}if((document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)&&(!navigator.accentColorName)){this.CancelIe(); this.CancelOpera(); this.IsSafari=true }else{IsUnknownBrowser=true }},DebugBrowser:function(){var a="IsNetscape4 "+this.IsNetscape4+"\n"; a+="IsNetscape6 "+this.IsNetscape6+"\n"; a+="IsNetscape6Plus "+this.IsNetscape6Plus+"\n"; a+="IsNetscape7 "+this.IsNetscape7+"\n"; a+="IsNetscape8 "+this.IsNetscape8+"\n"; a+="IsMozilla "+this.IsMozilla+"\n"; a+="IsFirefox "+this.IsFirefox+"\n"; a+="IsSafari "+this.IsSafari+"\n"; a+="IsIE "+this.IsIE+"\n"; a+="IsIEMac "+this.IsIEMac+"\n"; a+="IsIE5Mac "+this.IsIE5Mac+"\n"; a+="IsIE4Mac "+this.IsIE4Mac+"\n"; a+="IsIE5Win "+this.IsIE5Win+"\n"; a+="IsIE55Win "+this.IsIE55Win+"\n"; a+="IsIE6Win "+this.IsIE6Win+"\n"; a+="IsIE4Win "+this.IsIE4Win+"\n"; a+="IsOpera "+this.IsOpera+"\n"; a+="IsOpera4 "+this.IsOpera4+"\n"; a+="IsOpera5 "+this.IsOpera5+"\n"; a+="IsOpera6 "+this.IsOpera6+"\n"; a+="IsOpera7 "+this.IsOpera7+"\n"; a+="IsOpera8 "+this.IsOpera8+"\n"; a+="IsKonqueror "+this.IsKonqueror+"\n"; a+="IsOmniWeb "+this.IsOmniWeb+"\n"; a+="IsCamino "+this.IsCamino+"\n"; a+="IsUnknownBrowser "+this.IsUnknownBrowser+"\n"; alert(a) },DebugOS:function(){var a="IsOsWindows "+this.IsOsWindows+"\n"; a+="IsOsLinux "+this.IsOsLinux+"\n"; a+="IsOsUnix "+this.IsOsUnix+"\n"; a+="IsOsMac "+this.IsOsMac+"\n"; a+="IsUnknownOS "+this.IsUnknownOS+"\n"; alert(a) },DebugFeatures:function(){var a="UpLevelDom "+this.UpLevelDom+"\n"; a+="AllCollection "+this.AllCollection+"\n"; a+="Layers "+this.Layers+"\n"; a+="Focus "+this.Focus+"\n"; a+="StandardMode "+this.StandardMode+"\n"; a+="HasImagesArray "+this.HasImagesArray+"\n"; a+="HasAnchorsArray "+this.HasAnchorsArray+"\n"; a+="DocumentClear "+this.DocumentClear+"\n"; a+="AppendChild "+this.AppendChild+"\n"; a+="InnerWidth "+this.InnerWidth+"\n"; a+="HasComputedStyle "+this.HasComputedStyle+"\n"; a+="HasCurrentStyle "+this.HasCurrentStyle+"\n"; a+="HasFilters "+this.HasFilters+"\n"; a+="HasStatus "+this.HasStatus+"\n"; alert(a) }}; RadBrowserUtils.Init() }; if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();