﻿if(!Date.prototype.addHours){
Date.prototype.addHours=function(_1,_2){
if(isNaN(_2)){
_2=0;
}
this.setTime(this.getTime()+(_1*3600000)+(_2*60000));
};
Date.prototype.addMilliseconds=function(_3){
this.setTime(this.getTime()+_3);
};
}
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.SchedulerAppointmentEventArgs=function(_4){
Telerik.Web.UI.SchedulerAppointmentEventArgs.initializeBase(this);
this._appointment=_4;
};
Telerik.Web.UI.SchedulerAppointmentEventArgs.prototype={get_Appointment:function(){
return this._appointment;
}};
Telerik.Web.UI.SchedulerAppointmentEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentEventArgs",Sys.EventArgs);
Telerik.Web.UI.SchedulerAppointmentCancelEventArgs=function(_5){
Telerik.Web.UI.SchedulerAppointmentCancelEventArgs.initializeBase(this);
this._appointment=_5;
};
Telerik.Web.UI.SchedulerAppointmentCancelEventArgs.prototype={get_Appointment:function(){
return this._appointment;
}};
Telerik.Web.UI.SchedulerAppointmentCancelEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentCancelEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentClickingEventArgs=function(_6){
Telerik.Web.UI.SchedulerAppointmentClickingEventArgs.initializeBase(this,[_6]);
};
Telerik.Web.UI.SchedulerAppointmentClickingEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentClickingEventArgs",Telerik.Web.UI.SchedulerAppointmentCancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentClickedEventArgs=function(_7){
Telerik.Web.UI.SchedulerAppointmentClickedEventArgs.initializeBase(this,[_7]);
};
Telerik.Web.UI.SchedulerAppointmentClickedEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentClickedEventArgs",Telerik.Web.UI.SchedulerAppointmentEventArgs);
Telerik.Web.UI.SchedulerAppointmentResizeStartEventArgs=function(_8){
Telerik.Web.UI.SchedulerAppointmentResizeStartEventArgs.initializeBase(this,[_8]);
};
Telerik.Web.UI.SchedulerAppointmentResizeStartEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentResizeStartEventArgs",Telerik.Web.UI.SchedulerAppointmentCancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs=function(_9,_a,_b){
Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs.initializeBase(this,[_9]);
this._newTime=_a;
this._editingRecurringSeries=_b;
};
Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs.prototype={get_NewTime:function(){
return this._newTime;
},get_EditingRecurringSeries:function(){
return this._editingRecurringSeries;
}};
Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs",Telerik.Web.UI.SchedulerAppointmentCancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentResizingEventArgs=function(_c){
Telerik.Web.UI.SchedulerAppointmentResizingEventArgs.initializeBase(this,[_c]);
};
Telerik.Web.UI.SchedulerAppointmentResizingEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentResizingEventArgs",Telerik.Web.UI.SchedulerAppointmentEventArgs);
Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs=function(_d,_e){
Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs.initializeBase(this,[_d]);
this._editingRecurringSeries=_e;
};
Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs.prototype={get_EditingRecurringSeries:function(){
return this._editingRecurringSeries;
}};
Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs",Telerik.Web.UI.SchedulerAppointmentCancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentDeletedEventArgs=function(_f){
Telerik.Web.UI.SchedulerAppointmentDeletedEventArgs.initializeBase(this,[_f]);
};
Telerik.Web.UI.SchedulerAppointmentDeletedEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentDeletedEventArgs",Telerik.Web.UI.SchedulerAppointmentEventArgs);
Telerik.Web.UI.SchedulerAppointmentEditingEventArgs=function(_10,_11){
Telerik.Web.UI.SchedulerAppointmentEditingEventArgs.initializeBase(this,[_10]);
this._editingRecurringSeries=_11;
};
Telerik.Web.UI.SchedulerAppointmentEditingEventArgs.prototype={get_EditingRecurringSeries:function(){
return this._editingRecurringSeries;
}};
Telerik.Web.UI.SchedulerAppointmentEditingEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentEditingEventArgs",Telerik.Web.UI.SchedulerAppointmentCancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentAdvancedEditClickingEventArgs=function(_12){
Telerik.Web.UI.SchedulerAppointmentAdvancedEditClickingEventArgs.initializeBase(this,[_12]);
};
Telerik.Web.UI.SchedulerAppointmentAdvancedEditClickingEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentAdvancedEditClickingEventArgs",Telerik.Web.UI.SchedulerAppointmentCancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentDoubleClickingEventArgs=function(_13){
Telerik.Web.UI.SchedulerAppointmentDoubleClickingEventArgs.initializeBase(this,[_13]);
};
Telerik.Web.UI.SchedulerAppointmentDoubleClickingEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentDoubleClickingEventArgs",Telerik.Web.UI.SchedulerAppointmentCancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentDoubleClickedEventArgs=function(_14){
Telerik.Web.UI.SchedulerAppointmentDoubleClickedEventArgs.initializeBase(this,[_14]);
};
Telerik.Web.UI.SchedulerAppointmentDoubleClickedEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentDoubleClickedEventArgs",Telerik.Web.UI.SchedulerAppointmentEventArgs);
Telerik.Web.UI.RadScheduler=function(_15){
Telerik.Web.UI.RadScheduler.initializeBase(this,[_15]);
this.PostBackReference=null;
this.MinutesPerRow=30;
this.ViewType=null;
this.ReadOnly=null;
this.OverflowBehavior=null;
this.ShouldPostbackOnClick=null;
this.DisplayDeleteConfirmation=null;
this._firstDayStart=null;
this._appointments=null;
this._currentAppointment=null;
this.ScrollTop=0;
this._recurrencePatternPanel=null;
this._recurrencePatternHourlyPanel=null;
this._recurrencePatternDailyPanel=null;
this._recurrencePatternWeeklyPanel=null;
this._recurrencePatternMonthlyPanel=null;
this._recurrencePatternYearlyPanel=null;
this._recurrenceRangePanel=null;
this._repeatGivenOccurrencesRadio=null;
this._repeatGivenOccurrencesInput=null;
this._repeatUntilGivenDateRadio=null;
this._repeatUntilGivenDateInput=null;
this._repeatEveryNthDayRadio=null;
this._repeatEveryNthDayInput=null;
this._repeatEveryNthMonthOnDateRadio=null;
this._repeatEveryNthMonthOnDateInput1=null;
this._repeatEveryNthMonthOnDateInput2=null;
this._repeatEveryNthMonthOnGivenDayRadio=null;
this._repeatEveryNthMonthOnGivenDayInput1=null;
this._repeatEveryNthMonthOnGivenDayInput2=null;
this._repeatEveryNthMonthOnGivenDayInput3=null;
this._repeatEveryYearOnDateRadio=null;
this._repeatEveryYearOnDateInput1=null;
this._repeatEveryYearOnDateInput2=null;
this._repeatEveryYearOnGivenDayRadio=null;
this._repeatEveryYearOnGivenDayInput1=null;
this._repeatEveryYearOnGivenDayInput2=null;
this._repeatEveryYearOnGivenDayInput3=null;
this._startTimeInput=null;
this._endTimeInput=null;
this._inPostback=false;
this._dragging=false;
this._draggingAppointment=null;
this._selectedAppointment=null;
this._onDomEventDelegate=null;
this._onKeyboardEventDelegate=null;
this._eventMap={"dblclick":{"rsAptEdit":this._stopEventPropagation,"rsApt":this._onAppointmentDoubleClick,"rsAllDayCell":this._onAllDayRowClick,"rsCell":this._onRowClick},"click":{"rsAptResize":this._onResizeGripMouseClick,"rsApt":this._onAppointmentClick,"rsAptEditMore":this._onAppointmentAdvancedEditClick,"rsAptDelete":this._onAppointmentDeleteClick,"rsArrowTop":this._onPreviousDayClick,"rsArrowBottom":this._onNextDayClick,"rsArrowLeft":this._onPreviousDayClick,"rsArrowRight":this._onNextDayClick,"rsNextDay":this._onNextSchedulerDayClick,"rsPrevDay":this._onPreviousSchedulerDayClick,"rsToday":this._onTodayClick,"rsFullTime":this._onFullTimeLinkClick,"rsAptEdit":this._onEditFormClick,"rsShowMore":this._onShowMoreClick,"rsHeaderDay":this._onDayViewTabClick,"rsHeaderWeek":this._onWeekViewTabClick,"rsHeaderMonth":this._onMonthViewTabClick,"rsHour":this._onThMouseClick,"rsAllDayHeader":this._onAllThMouseClick},"mouseover":{"rsCell":this._onRowMouseOver,"rsAllDayCell":this._onAllDayCellMouseOver,"rsApt":this._onAppointmentMouseOver,"rsAptResize":this._onResizeGripMouseOver,"rsHour":this._onThMouseOver,"rsAllDayHeader":this._onThMouseOver},"mouseout":{"rsCell":this._onRowMouseOut,"rsAllDayCell":this._onRowMouseOut,"rsApt":this._onAppointmentMouseOut,"rsHour":this._onThMouseOut,"rsAllDayHeader":this._onThMouseOut},"mousedown":{"rsAptDelete":this._stopEventPropagation,"rsApt":this._startDrag,"rsAptResize":this._onResizeGripMouseDown},"mouseup":{"rsCell":this._endDrag}};
this._recurrenceActionDialog=new Telerik.Web.UI.RecurrenceActionDialog(this);
};
Telerik.Web.UI.RadScheduler.prototype={_onDomEvent:function(e){
var _17=this._eventMap[e.type];
if(_17){
var _18=e.target;
while(_18&&_18.nodeType!==9){
var _19=_18.className;
var _1a=_19.indexOf(" ");
if(_1a>=0){
_19=_19.substr(0,_1a);
}
var _1b=_17[_19];
if(_1b){
e.target=_18;
if(_1b.call(this,e)!=true){
return;
}
}
_18=_18.parentNode;
}
}
},get_Cells:function(){
if(!this._cells){
var _1c=Telerik.Web.DomElement.getElementByClassName(this.get_element(),"rsContentTable","table");
this._cells=_1c.getElementsByTagName("td");
for(var i=0,_1e=this._cells.length;i<_1e;i++){
this._cells[i].targetRect=Telerik.Web.DomElement.getBounds(this._cells[i]);
}
}
return this._cells;
},initialize:function(){
var _1f=this.get_element();
Telerik.Web.UI.RadScheduler.callBaseMethod(this,"initialize");
this._onDomEventDelegate=Function.createDelegate(this,this._onDomEvent);
for(var _20 in this._eventMap){
$addHandler(_1f,_20,this._onDomEventDelegate);
}
this._onKeyboardEventDelegate=Function.createDelegate(this,this._onKeyboardEvent);
$addHandler(document.documentElement,"keydown",this._onKeyboardEventDelegate);
this._initializeDivs(_1f);
var _21=_1f.getElementsByTagName("div");
if(_21[0]&&Telerik.Web.DomElement.containsCssClass(_21[0],"rsAdvancedEdit")){
this._initializeAdvancedFormDivs(_1f);
this._initializeInputs(_1f);
this._initializeDropdowns(_1f);
}
this._onResizeGripMouseMoveDelegate=Function.createDelegate(this,this._onResizeGripMouseMove);
this._onResizeGripMouseUpDelegate=Function.createDelegate(this,this._onResizeGripMouseUp);
this._onSelectStartDelegate=Function.createDelegate(this,this._onSelectStart);
this._onDocMouseUpDelegate=Function.createDelegate(this,this._onDocMouseUp);
this._onDocumentMouseMoveDelegate=Function.createDelegate(this,this._onDocumentMouseMove);
this._glueControlWithRadio(this._repeatGivenOccurrencesInput,this._repeatGivenOccurrencesRadio,true);
this._glueControlWithRadio(this._repeatUntilGivenDateInput,this._repeatUntilGivenDateRadio,true);
this._glueControlWithRadio(this._repeatEveryNthDayInput,this._repeatEveryNthDayRadio,true);
this._glueControlWithRadio(this._repeatEveryNthMonthOnDateInput1,this._repeatEveryNthMonthOnDateRadio,true);
this._glueControlWithRadio(this._repeatEveryNthMonthOnDateInput2,this._repeatEveryNthMonthOnDateRadio,false);
this._glueControlWithRadio(this._repeatEveryNthMonthOnGivenDayInput1,this._repeatEveryNthMonthOnGivenDayRadio,true);
this._glueControlWithRadio(this._repeatEveryNthMonthOnGivenDayInput2,this._repeatEveryNthMonthOnGivenDayRadio,false);
this._glueControlWithRadio(this._repeatEveryNthMonthOnGivenDayInput3,this._repeatEveryNthMonthOnGivenDayRadio,false);
this._glueControlWithRadio(this._repeatEveryYearOnDateInput1,this._repeatEveryYearOnDateRadio,true);
this._glueControlWithRadio(this._repeatEveryYearOnDateInput2,this._repeatEveryYearOnDateRadio,false);
this._glueControlWithRadio(this._repeatEveryYearOnGivenDayInput1,this._repeatEveryYearOnGivenDayRadio,true);
this._glueControlWithRadio(this._repeatEveryYearOnGivenDayInput2,this._repeatEveryYearOnGivenDayRadio,false);
this._glueControlWithRadio(this._repeatEveryYearOnGivenDayInput3,this._repeatEveryYearOnGivenDayRadio,false);
var _22=Telerik.Web.DomElement.getElementByClassName(this.get_element(),"rsContent","div");
if(_22){
_22.scrollTop=this.ScrollTop;
}
},_onKeyboardEvent:function(e){
if(e.keyCode==27){
if(this._dragging){
this._abortDrag(e);
}
if(this._resizing){
this._resizingAppointment.setDuration(this._resizingAppointmentDuration);
this._cleanupResize();
}
}
},_initializeDivs:function(_24){
var _25=_24.getElementsByTagName("div");
var _26=_25.length;
for(var i=0;i<_26;i++){
var _28=_25[i];
if(Telerik.Web.DomElement.containsCssClass(_28,"rsApt")){
var _29=this.getAppointmentFromDomElement(_28);
if(_29&&_29.ToolTip){
_28.title=_29.ToolTip;
}
}else{
if(Telerik.Web.DomElement.containsCssClass(_28,"rsAptEdit")){
var _2a=_28.getElementsByTagName("textarea")[0];
if(_2a){
window.setTimeout(function(){
_2a.focus();
},500);
}
}
}
}
if(this.OverflowBehavior==1){
Telerik.Web.UI.RadScheduler.FixHeight(_24.id);
Telerik.Web.UI.RadScheduler.FixAdvancedFormHeight(_24.id);
}
},_initializeAdvancedFormDivs:function(_2b){
var _2c=_2b.getElementsByTagName("div");
var _2d=_2c.length;
for(var i=0;i<_2d;i++){
var _2f=_2c[i];
if((this._recurrencePatternPanel==null)&&_2f.id.endsWith("_recurrencePatternPanel")){
this._recurrencePatternPanel=_2f;
}else{
if((this._recurrencePatternHourlyPanel==null)&&_2f.id.endsWith("_recurrencePatternHourlyPanel")){
this._recurrencePatternHourlyPanel=_2f;
}else{
if((this._recurrencePatternDailyPanel==null)&&_2f.id.endsWith("_recurrencePatternDailyPanel")){
this._recurrencePatternDailyPanel=_2f;
}else{
if((this._recurrencePatternWeeklyPanel==null)&&_2f.id.endsWith("_recurrencePatternWeeklyPanel")){
this._recurrencePatternWeeklyPanel=_2f;
}else{
if((this._recurrencePatternMonthlyPanel==null)&&_2f.id.endsWith("_recurrencePatternMonthlyPanel")){
this._recurrencePatternMonthlyPanel=_2f;
}else{
if((this._recurrencePatternYearlyPanel==null)&&_2f.id.endsWith("_recurrencePatternYearlyPanel")){
this._recurrencePatternYearlyPanel=_2f;
}else{
if((this._recurrenceRangePanel==null)&&_2f.id.endsWith("_recurrenceRangePanel")){
this._recurrenceRangePanel=_2f;
}
}
}
}
}
}
}
}
},_onAppointmentClick:function(e){
var _31=this.getAppointmentFromDomElement(e.target);
var _32=new Telerik.Web.UI.SchedulerAppointmentClickingEventArgs(_31);
this.raise_AppointmentClicking(_32);
if(_32.get_cancel()==false){
if(this.ReadOnly&&this.ShouldPostbackOnClick){
var _33={Command:"Click",AppointmentID:_31.ID,EditSeries:false};
this.postback(_33);
return;
}
if(_31.Selected){
this._editAppointmentInline(_31);
}else{
if(this._selectedAppointment){
this._selectedAppointment.unselect();
}
_31.select();
this._selectedAppointment=_31;
}
var _34=new Telerik.Web.UI.SchedulerAppointmentClickedEventArgs(_31);
this.raise_AppointmentClicked(_34);
}
},_initializeInputs:function(_35){
var _36=_35.getElementsByTagName("input");
for(var i=0;i<_36.length;i++){
if(_36[i].name.endsWith("_repeatFrequency")){
$addHandlers(_36[i],{"click":this._onRecurrencePatternChanged},this);
}else{
if(_36[i].name.endsWith("_recurrentAppointment")){
$addHandlers(_36[i],{"click":this._onRecurrenceStateChanged},this);
}else{
if(_36[i].name.endsWith("_allDayEvent")){
$addHandlers(_36[i],{"click":this._onAllDayStateChanged},this);
}else{
if(_36[i].id.endsWith("_repeatGivenOccurrences")){
this._repeatGivenOccurrencesRadio=_36[i];
}else{
if(_36[i].name.endsWith("_rangeOccurrences")){
this._repeatGivenOccurrencesInput=_36[i];
}else{
if(_36[i].id.endsWith("_repeatUntilGivenDate")){
this._repeatUntilGivenDateRadio=_36[i];
}else{
if(_36[i].name.endsWith("_rangeEndDate")){
this._repeatUntilGivenDateInput=_36[i];
}else{
if(_36[i].id.endsWith("_repeatEveryNthDay")){
this._repeatEveryNthDayRadio=_36[i];
}else{
if(_36[i].name.endsWith("_daylyRepeatInterval")){
this._repeatEveryNthDayInput=_36[i];
}else{
if(_36[i].id.endsWith("_repeatEveryNthMonthOnDate")){
this._repeatEveryNthMonthOnDateRadio=_36[i];
}else{
if(_36[i].name.endsWith("_monthlyRepeatDate")){
this._repeatEveryNthMonthOnDateInput1=_36[i];
}else{
if(_36[i].name.endsWith("_monthlyRepeatIntervalForDate")){
this._repeatEveryNthMonthOnDateInput2=_36[i];
}else{
if(_36[i].id.endsWith("_repeatEveryYearOnDate")){
this._repeatEveryYearOnDateRadio=_36[i];
}else{
if(_36[i].name.endsWith("_yearlyRepeatDate")){
this._repeatEveryYearOnDateInput2=_36[i];
}else{
if(_36[i].id.endsWith("_repeatEveryNthMonthOnGivenDay")){
this._repeatEveryNthMonthOnGivenDayRadio=_36[i];
}else{
if(_36[i].name.endsWith("_monthlyRepeatIntervalForGivenDay")){
this._repeatEveryNthMonthOnGivenDayInput3=_36[i];
}else{
if(_36[i].id.endsWith("_repeatEveryYearOnGivenDay")){
this._repeatEveryYearOnGivenDayRadio=_36[i];
}else{
if((this._startTimeInput==null)&&_36[i].id.endsWith("_startTime")){
this._startTimeInput=_36[i];
}else{
if((this._endTimeInput==null)&&_36[i].id.endsWith("_endTime")){
this._endTimeInput=_36[i];
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
},_initializeDropdowns:function(_38){
var _39=_38.getElementsByTagName("select");
for(var i=0;i<_39.length;i++){
if(_39[i].id.endsWith("_monthlyDayOrdinalDropDown")){
this._repeatEveryNthMonthOnGivenDayInput1=_39[i];
}else{
if(_39[i].id.endsWith("_monthlyDayMaskDropDown")){
this._repeatEveryNthMonthOnGivenDayInput2=_39[i];
}else{
if(_39[i].id.endsWith("_yearlyRepeatMonthForDate")){
this._repeatEveryYearOnDateInput1=_39[i];
}else{
if(_39[i].id.endsWith("_yearlyDayOrdinalDropDown")){
this._repeatEveryYearOnGivenDayInput1=_39[i];
}else{
if(_39[i].id.endsWith("_yearlyDayMaskDropDown")){
this._repeatEveryYearOnGivenDayInput2=_39[i];
}else{
if(_39[i].id.endsWith("_yearlyRepeatMonthForGivenDay")){
this._repeatEveryYearOnGivenDayInput3=_39[i];
}
}
}
}
}
}
}
},_initializeTh:function(_3b){
var th=_3b.getElementsByTagName("th");
for(var i=0,_3e=th.length;i<_3e;i++){
}
},_glueControlWithRadio:function(_3f,_40,_41){
if(_3f&&_40){
$addHandlers(_3f,{"click":function(e){
_40.checked=true;
_3f.focus();
}},this);
if(_41==true){
$addHandlers(_40,{"click":function(e){
_3f.focus();
}},this);
}
}
},_onRecurrencePatternChanged:function(e){
this._recurrencePatternHourlyPanel.style.display="none";
this._recurrencePatternDailyPanel.style.display="none";
this._recurrencePatternWeeklyPanel.style.display="none";
this._recurrencePatternMonthlyPanel.style.display="none";
this._recurrencePatternYearlyPanel.style.display="none";
switch(e.target.value){
case "_repeatFrequencyHourly":
this._recurrencePatternHourlyPanel.style.display="block";
break;
case "_repeatFrequencyDaily":
this._recurrencePatternDailyPanel.style.display="block";
break;
case "_repeatFrequencyWeekly":
this._recurrencePatternWeeklyPanel.style.display="block";
break;
case "_repeatFrequencyMonthly":
this._recurrencePatternMonthlyPanel.style.display="block";
break;
case "_repeatFrequencyYearly":
this._recurrencePatternYearlyPanel.style.display="block";
break;
}
},_onRecurrenceStateChanged:function(e){
if(e.target.checked){
this._recurrencePatternPanel.style.display="block";
this._recurrenceRangePanel.style.display="block";
}else{
this._recurrencePatternPanel.style.display="none";
this._recurrenceRangePanel.style.display="none";
}
},_onAllDayStateChanged:function(e){
if(e.target.checked){
this._startTimeInput.style.display="none";
this._endTimeInput.style.display="none";
}else{
this._startTimeInput.style.display="inline";
this._endTimeInput.style.display="inline";
}
},_onEditFormClick:function(e){
e.stopPropagation();
},_removeMonthCellHover:function(){
if(this._currentHoverCell){
Telerik.Web.DomElement.removeCssClass(this._currentHoverCell,"rsAptCreate");
}
},_onMonthCellMouseOver:function(e){
if(Telerik.Web.DomElement.containsCssClass(e.target,"rsWrap")){
this._currentHoverDiv=e.target;
this._currentHoverCell=e.target.parentNode;
Telerik.Web.DomElement.addCssClass(this._currentHoverCell,"rsAptCreate");
}
},_onThMouseOver:function(e){
var _4a=this._getHourCellFromDomElement(e.target);
Telerik.Web.DomElement.addCssClass(_4a,"rsHover");
},_getHourCellFromDomElement:function(_4b){
var _4c=_4b;
while(_4c.tagName.toLowerCase()!="th"){
_4c=_4c.parentNode;
}
return _4c;
},_onThMouseOut:function(e){
var _4e=this._getHourCellFromDomElement(e.target);
Telerik.Web.DomElement.removeCssClass(_4e,"rsHover");
},_onThMouseClick:function(e){
if(!this.ReadOnly){
var _50=this.getRowIndex(e.target);
var _51=_50*this.MinutesPerRow;
var _52=Math.floor(_51/60);
var _53=_51%60;
var _54=new Date(this.get_FirstDayStart().getTime());
_54.addHours(_52,_53);
var _55={Command:"AddAppointment",AppointmentID:-1,StartDate:_54};
this.postback(_55);
}
e.stopPropagation();
e.preventDefault();
},_onAllThMouseClick:function(e){
if(!this.ReadOnly){
var _57=new Date(this.get_FirstDayStart().getTime());
var _58={Command:"AddAllDayAppointment",AppointmentID:-1,StartDate:_57};
this.postback(_58);
}
e.stopPropagation();
e.preventDefault();
},_onAllDayCellMouseOver:function(e){
if(this._dragging&&this._draggingAppointment){
e.target.lastChild.appendChild(this._draggingAppointment.DomElement);
}
},_onRowMouseOver:function(e){
if(this._dragging){
return;
}
if(!this._resizing){
this._removeRowHover();
this._currentHoverDiv=e.target;
this._currentHoverCell=e.target;
this._nextHoverCell=this._getNextRowCell(this._currentHoverCell);
if(Telerik.Web.DomElement.containsCssClass(this._currentHoverCell.parentNode,"rsAllDay")){
this._nextHoverCell=null;
}
Telerik.Web.DomElement.addCssClass(this._currentHoverCell,"rsAptCreate");
if(this._nextHoverCell&&this.ViewType!="MonthView"){
Telerik.Web.DomElement.addCssClass(this._nextHoverCell,"rsAptCreate");
}
}
},_getNextRowCell:function(_5b){
var _5c=_5b.parentNode;
var _5d=_5c.parentNode;
while(_5d.tagName.toLowerCase()!="table"){
_5d=_5d.parentNode;
}
var _5e=_5d.rows[_5c.rowIndex+1];
var _5f=null;
if(_5e){
var _60=_5e.cells.length;
var _61=_5c.cells.length;
if(_60==_61){
_5f=_5e.cells[_5b.cellIndex];
}else{
if(_60<_61){
_5f=_5e.cells[_5b.cellIndex-1];
}else{
_5f=_5e.cells[_5b.cellIndex+1];
}
}
}
return _5f;
},_onRowMouseOut:function(e){
try{
var _63=e.rawEvent.relatedTarget?e.rawEvent.relatedTarget:e.rawEvent.toElement;
if(!_63||!this._currentHoverCell||Telerik.Web.DomUtility.isDescendant(this._currentHoverDiv,_63)){
return;
}
this._removeRowHover();
}
catch(ex){
return;
}
},_removeRowHover:function(){
if(this._currentHoverCell){
Telerik.Web.DomElement.removeCssClass(this._currentHoverCell,"rsAptCreate");
}
this._currentHoverCell=null;
if(this._nextHoverCell){
Telerik.Web.DomElement.removeCssClass(this._nextHoverCell,"rsAptCreate");
}
this._nextHoverCell=null;
},_stopEventPropagation:function(e){
e.stopPropagation();
},_onResizeGripMouseDown:function(e){
if(this.ReadOnly){
return;
}
this._resizingElement=this.getAppointmentDomElement(e.target);
var _66=this.getAppointmentFromDomElement(this._resizingElement);
var _67=new Telerik.Web.UI.SchedulerAppointmentResizeStartEventArgs(_66);
this.raise_AppointmentResizeStart(_67);
if(_67.get_cancel()==false){
this._clientY=e.clientY;
this._resizing=true;
this._resizingAppointment=_66;
this._resizingAppointmentDuration=_66.getDuration();
this._targetHeight=this._resizingElement.offsetHeight;
$addHandler(document,"mousemove",this._onResizeGripMouseMoveDelegate);
$addHandler(document,"mouseup",this._onResizeGripMouseUpDelegate);
$addHandler(document,"selectstart",this._onSelectStartDelegate);
}
},_onResizeGripMouseMove:function(e){
if(!this._resizingElement){
return;
}
var _69=parseInt(this._resizingElement.style.paddingBottom);
var _6a=this._resizingElement.parentNode.parentNode.offsetHeight;
var _6b=TelerikCommonScripts.getBorderWidth(this._resizingElement.parentNode.parentNode,Telerik.Web.BoxSide.Bottom);
var _6c=_6a*this.RowCount-this.getRowIndex(this._resizingElement)*_6a-_6b;
if(isNaN(_69)){
_69=0;
}
var _6d=e.clientY-this._clientY;
this._targetHeight=this._targetHeight+_6d;
var _6e=(Math.floor(this._targetHeight/_6a)*_6a);
var _6f=_6e+_6a;
var _70;
if(Math.abs(_6e-this._targetHeight)<Math.abs(_6f-this._targetHeight)){
_70=_6e;
}else{
_70=_6f;
}
if(_70<_6a){
_70=_6a-1;
}
if(_70>_6c){
_70=_6c;
}
this._resizingElement.style.height=_70-_69+"px";
var _71=Telerik.Web.DomElement.getElementByClassName(this._resizingElement,"rsAptBottom","div");
this._fixIEBottom(_71);
this._clientY=e.clientY;
this.raise_AppointmentResizing(new Telerik.Web.UI.SchedulerAppointmentResizingEventArgs(this._resizingAppointment));
},_onSelectStart:function(e){
return false;
},_onResizeGripMouseUp:function(e){
if(!this._resizingElement){
return;
}
var _74=this._resizingElement.parentNode.parentNode.offsetHeight;
var _75=this.getRowIndex(this._resizingElement);
var _76=Math.floor((this._resizingElement.offsetHeight/_74)*this.MinutesPerRow);
var _77=Math.floor(_76/60);
var _78=_76%60;
if(_78%this.MinutesPerRow>0){
_78=(Math.floor(_78/this.MinutesPerRow)+1)*this.MinutesPerRow;
if(_78==60){
_78=0;
_77++;
}
}
var _79=this.getAppointmentFromDomElement(this._resizingElement);
var _7a=this.getDayViewIndex(this._resizingElement);
var _7b=new Date(this.get_FirstDayStart().getTime());
_7b.addHours(24*_7a);
var _7c;
if(_7b>_79.Start){
_7c=_7b;
}else{
_7c=_79.Start;
}
_7c.addHours(_77,_78);
var _7d={OnConfirm:this._onAppointmentResizeCallback,OnAbort:this._onAppointmentResizeAbortCallback,Scheduler:this,Appointment:_79,UpdatedEndDate:_7c,ResizingAppointmentDuration:this._resizingAppointmentDuration};
if(_79.RecurrenceState==1||_79.RecurrenceState==2){
this._recurrenceActionDialog.ConfirmRecurrenceAction(Telerik.Web.UI.RecurrenceAction.Resize,_7d);
}else{
this._onAppointmentResizeCallback(false,_7d);
}
e.stopPropagation();
this._cleanupResize();
},_cleanupResize:function(){
this._resizing=false;
this._resizingElement=null;
this._resizingAppointment=null;
$removeHandler(document,"mousemove",this._onResizeGripMouseMoveDelegate);
$removeHandler(document,"mouseup",this._onResizeGripMouseUpDelegate);
$removeHandler(document,"selectstart",this._onSelectStartDelegate);
},_onAppointmentResizeCallback:function(_7e,_7f){
var _80=new Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs(_7f.Appointment,_7f.updatedEndDate,_7f.editSeries);
_7f.Scheduler.raise_AppointmentResizeEnd(_80);
if(_80.get_cancel()==false){
var _81={Command:"Resize",AppointmentID:_7f.Appointment.ID,EndDate:_7f.UpdatedEndDate,EditSeries:_7e};
_7f.Scheduler.postback(_81);
}else{
_7f.Appointment.setDuration(_7f.ResizingAppointmentDuration);
}
},_onAppointmentResizeAbortCallback:function(_82){
_82.Appointment.setDuration(_82.ResizingAppointmentDuration);
},_onResizeGripMouseClick:function(e){
e.stopPropagation();
},_onResizeGripMouseOver:function(e){
e.target.style.cursor="s-resize";
e.stopPropagation();
},_fixIEBottom:function(_85){
if(Telerik.Web.Browser.agent==Telerik.Web.Browser.InternetExplorer&&Telerik.Web.Browser.version<7){
if(_85.parentNode.parentNode.offsetHeight%2!=0){
_85.style.bottom="-1px";
}else{
_85.style.bottom="0px";
}
}
},getScrollOffset:function(_86,_87){
var _88=_86.scrollLeft;
var top=_86.scrollTop;
if(_87){
var _8a=_86.parentNode;
while(_8a!=null&&_8a.scrollLeft!=null){
_88+=_8a.scrollLeft;
top+=_8a.scrollTop;
if(_8a==document.body&&(_88!=0&&top!=0)){
break;
}
_8a=_8a.parentNode;
}
}
return {x:_88,y:top};
},_getHoveredCell:function(_8b,_8c){
var _8d=this.get_Cells();
var _8e=this.getScrollOffset(document.body,true);
for(var i=0,_90=_8d.length;i<_90;i++){
var _91=_8d[i].targetRect;
var x=_8b;
var y=_8c;
x+=_8e.x;
y+=_8e.y;
var _94=_91.y+_91.height;
var _95=_91.x+_91.width;
if(x>=_91.x&&x<=_95&&y>=_91.y&&y<=_94){
return _8d[i];
}
}
return null;
},_onDocumentMouseMove:function(e){
var _97=this.get_Cells();
var _98=this.getScrollOffset(document.body,true);
if(this._dragging&&this._draggingAppointment){
for(var i=0,_9a=_97.length;i<_9a;i++){
var _9b=_97[i].targetRect;
var x=e.clientX;
var y=e.clientY;
x+=_98.x;
y+=_98.y;
var _9e=_9b.y+_9b.height;
var _9f=_9b.x+_9b.width;
if(x>=_9b.x&&x<=_9f&&y>=_9b.y&&y<=_9e){
var _a0=0;
if(this._dragOrigin){
_a0=this._draggingAppointment._originalParent.parentNode.parentNode.rowIndex+(_97[i].parentNode.rowIndex-this._dragOrigin.parentNode.rowIndex);
}else{
this._dragOrigin=_97[i].parentNode.cells[0];
}
if(_a0<0){
_a0=0;
}
var _a1=_97[i].parentNode.parentNode.rows[_a0].cells[_97[i].cellIndex];
if(_a1.firstChild==this._draggingAppointment.DomElement.parentNode){
return;
}
if(_a1.firstChild.nodeType==3){
_a1.removeChild(_a1.firstChild);
var _a2=this._draggingAppointment.DomElement.parentNode.cloneNode(false);
_a2.style.zIndex=999;
if(Telerik.Web.Browser.agent==Telerik.Web.Browser.Firefox){
_a2.style.height=_a1.clientHeight+"px";
}
_a1.appendChild(_a2);
}
if(this.ViewType!="MonthView"){
_a1.firstChild.appendChild(this._draggingAppointment.DomElement);
}else{
_a1.childNodes[1].appendChild(this._draggingAppointment.DomElement);
}
this._keepElementInView(this._draggingAppointment.DomElement);
return;
}
}
}
},_keepElementInView:function(_a3){
var _a4=Telerik.Web.DomElement.getElementByClassName(this.get_element(),"rsContent","div");
var _a5=_a3.parentNode.parentNode.offsetTop;
if(_a5<_a4.scrollTop){
_a4.scrollTop=_a5;
}
var _a6=_a3.offsetHeight;
if(_a5+_a6>(_a4.clientHeight+_a4.scrollTop)){
var _a7=_a4.scrollTop+((_a5+_a6)-(_a4.clientHeight+_a4.scrollTop));
if((_a4.clientHeight+_a7)>_a4.scrollHeight){
return;
}
if(_a7>_a5){
_a7=_a5;
}
_a4.scrollTop=_a7;
}
},_startDrag:function(e){
if(this.ReadOnly){
return;
}
$addHandler(document,"selectstart",this._onSelectStartDelegate);
$addHandler(document,"mouseup",this._onDocMouseUpDelegate);
$addHandler(document,"mousemove",this._onDocumentMouseMoveDelegate);
var _a9=this.getAppointmentFromDomElement(e.target);
this._draggingAppointment=_a9;
this._dragOrigin=this._getHoveredCell(e.clientX,e.clientY);
this._dragging=true;
_a9.startDrag();
},_endDrag:function(e){
this._finishDrag(e,false);
},_onDocMouseUp:function(e){
this._finishDrag(e,false);
},_abortDrag:function(e){
this._finishDrag(e,true);
},_finishDrag:function(e,_ae){
if(this._dragging){
$removeHandler(document,"selectstart",this._onSelectStartDelegate);
$removeHandler(document,"mouseup",this._onDocMouseUpDelegate);
$removeHandler(document,"mousemove",this._onDocumentMouseMoveDelegate);
if(!_ae&&this._draggingAppointment.DomElement.parentNode&&this._draggingAppointment.DomElement.parentNode.parentNode){
var _af=this._draggingAppointment.DomElement.parentNode.parentNode;
this._draggingAppointment.endDrag(_af);
}else{
this._draggingAppointment.abortDrag();
}
this._draggingAppointment=null;
this._dragging=false;
e.preventDefault();
e.stopPropagation();
}
},_onAppointmentDoubleClick:function(e){
if(this._resizing){
this._resizing=false;
e.stopPropagation();
return;
}
this._clearSelection();
var _b1=this.getAppointmentFromDomElement(e.target);
var _b2=new Telerik.Web.UI.SchedulerAppointmentDoubleClickingEventArgs(_b1);
this.raise_AppointmentDoubleClicking(_b2);
if(_b2.get_cancel()==false){
this._editAppointmentInline(_b1);
var _b3=new Telerik.Web.UI.SchedulerAppointmentDoubleClickedEventArgs(_b1);
this.raise_AppointmentDoubleClicked(_b3);
}
e.stopPropagation();
},_editAppointmentInline:function(_b4){
if(this.ReadOnly){
return;
}
if(_b4){
var _b5={OnConfirm:this._onAppointmentEditCallback,Scheduler:this,Appointment:_b4};
if(_b4.RecurrenceState==1||_b4.RecurrenceState==2||_b4.RecurrenceState==3){
this._recurrenceActionDialog.ConfirmRecurrenceAction(Telerik.Web.UI.RecurrenceAction.Edit,_b5);
}else{
this._onAppointmentEditCallback(false,_b5);
}
}
},_onAppointmentEditCallback:function(_b6,_b7){
var _b8=new Telerik.Web.UI.SchedulerAppointmentEditingEventArgs(_b7.Appointment,_b6);
_b7.Scheduler.raise_AppointmentEditing(_b8);
if(_b8.get_cancel()==false){
var _b9={Command:"Edit",AppointmentID:_b7.Appointment.ID,EditSeries:_b6};
_b7.Scheduler.postback(_b9);
}
},_clearSelection:function(){
if(document.selection&&document.selection.empty){
document.selection.empty();
}else{
if(window.getSelection&&window.getSelection().removeAllRanges){
window.getSelection().removeAllRanges();
}
}
},_onAppointmentAdvancedEditClick:function(e){
var _bb=new Telerik.Web.UI.SchedulerAppointmentAdvancedEditClickingEventArgs(this.get_CurrentAppointment());
this.raise_AppointmentAdvancedEditClicking(_bb);
if(_bb.get_cancel()==true){
e.preventDefault();
}
e.stopPropagation();
},_onShowMoreClick:function(e){
var _bd=this.getDayViewIndex(e.target);
var _be=new Date(this.get_FirstDayStart().getTime());
_be.addHours(24*_bd);
var _bf={Command:"SwitchToSelectedDay",StartDate:_be};
this.postback(_bf);
},_onAppointmentMouseOver:function(e){
if(this._resizing||this._dragging){
e.stopPropagation();
return;
}
var _c1=this.getAppointmentDomElement(e.target);
this._hoveredAppointmentElement=_c1;
Telerik.Web.DomElement.addCssClass(_c1,"rsWAppointmentDelete");
},_onAppointmentMouseOut:function(e){
var _c3=e.rawEvent.relatedTarget?e.rawEvent.relatedTarget:e.rawEvent.toElement;
if(!_c3||Telerik.Web.DomUtility.isDescendant(this._hoveredAppointmentElement,_c3)){
return;
}else{
var _c4=this.getAppointmentDomElement(e.target);
Telerik.Web.DomElement.removeCssClass(_c4,"rsWAppointmentDelete");
}
},getAppointmentDomElement:function(_c5){
while(_c5&&!Telerik.Web.DomElement.containsCssClass(_c5,"rsApt")){
_c5=_c5.parentNode;
}
return _c5;
},getDayViewIndex:function(_c6){
while(_c6&&(_c6.tagName.toLowerCase()!="td")){
_c6=_c6.parentNode;
}
if(_c6){
var _c7=_c6.cellIndex;
if(this.ViewType=="MonthView"){
var _c8=_c6.parentNode.rowIndex;
return _c8*_c6.parentNode.cells.length+_c7;
}else{
return _c7;
}
}
return -1;
},getRowIndex:function(_c9){
while(_c9&&_c9.tagName.toLowerCase()!="tr"){
_c9=_c9.parentNode;
}
if(_c9&&Telerik.Web.DomElement.containsCssClass(_c9,"rsRow")){
return _c9.rowIndex;
}
return -1;
},getAppointmentFromDomElement:function(_ca){
if(!_ca){
return null;
}
var _cb=this.getAppointmentDomElement(_ca);
var _cc=this.get_Appointments();
for(var i=0;i<_cc.length;i++){
if(!_cc[i].DomElement){
continue;
}
for(var _ce=0;_ce<_cc[i].DomElements.length;_ce++){
if(_cb.id==_cc[i].DomElements[_ce]){
return _cc[i];
}
}
}
return null;
},_getRowTimeFromDomElement:function(_cf){
var _d0=this.getRowIndex(_cf);
var _d1=_d0*this.MinutesPerRow;
var _d2=this.getDayViewIndex(_cf);
var _d3=new Date(this.get_FirstDayStart().getTime());
_d3.addHours(24*_d2);
if(this.ViewType!="MonthView"){
_d3.addHours(0,_d1);
}
return _d3;
},_onRowClick:function(e){
if(!this.ReadOnly){
if(this.ViewType=="MonthView"){
this._onAllDayRowClick(e);
return;
}
var _d5=this._getRowTimeFromDomElement(e.target);
var _d6={Command:"AddAppointment",AppointmentID:-1,StartDate:_d5};
this.postback(_d6);
}
e.stopPropagation();
},_onAllDayRowClick:function(e){
if(!this.ReadOnly){
var _d8=this.getDayViewIndex(e.target);
var _d9=new Date(this.get_FirstDayStart().getTime());
_d9.addHours(24*_d8);
var _da={Command:"AddAllDayAppointment",AppointmentID:-1,StartDate:_d9};
this.postback(_da);
}
e.stopPropagation();
},_onAppointmentDeleteClick:function(e){
if(!this.ReadOnly){
var _dc=this.getAppointmentFromDomElement(e.target);
if(_dc){
var _dd={OnConfirm:this._onAppointmentDeleteCallback,Scheduler:this,Appointment:_dc};
if(_dc.RecurrenceState==1||_dc.RecurrenceState==2||_dc.RecurrenceState==3){
this._recurrenceActionDialog.ConfirmRecurrenceAction(Telerik.Web.UI.RecurrenceAction.Delete,_dd);
}else{
if(this.DisplayDeleteConfirmation){
this._recurrenceActionDialog.ConfirmDelete(_dd);
}else{
this._onAppointmentDeleteCallback(false,_dd);
}
}
}
}
e.stopPropagation();
e.preventDefault();
},_onAppointmentDeleteCallback:function(_de,_df){
var _e0=new Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs(_df.Appointment,_de);
_df.Scheduler.raise_AppointmentDeleting(_e0);
if(_e0.get_cancel()==false){
var _e1=new Telerik.Web.UI.SchedulerAppointmentDeletedEventArgs(_df.Appointment);
_df.Scheduler.raise_AppointmentDeleted(_e1);
var _e2={Command:"Delete",AppointmentID:_df.Appointment.ID,EditSeries:_de};
_df.Scheduler.postback(_e2);
}
},_onPreviousDayClick:function(e){
var _e4=this.getAppointmentFromDomElement(e.target);
if(_e4){
var _e5={Command:"GoToPrevious",AppointmentID:_e4.ID};
this.postback(_e5);
}
e.stopPropagation();
e.preventDefault();
},_onNextDayClick:function(e){
var _e7=this.getAppointmentFromDomElement(e.target);
if(_e7){
var _e8={Command:"GoToNext",AppointmentID:_e7.ID};
this.postback(_e8);
}
e.stopPropagation();
e.preventDefault();
},_onDayViewTabClick:function(e){
var _ea={Command:"SwitchToDayView"};
this.postback(_ea);
e.stopPropagation();
e.preventDefault();
},_onWeekViewTabClick:function(e){
var _ec={Command:"SwitchToWeekView"};
this.postback(_ec);
e.stopPropagation();
e.preventDefault();
},_onMonthViewTabClick:function(e){
var _ee={Command:"SwitchToMonthView"};
this.postback(_ee);
e.stopPropagation();
e.preventDefault();
},_onPreviousSchedulerDayClick:function(e){
var _f0={Command:"NavigateToPreviousPeriod"};
this.postback(_f0);
e.stopPropagation();
e.preventDefault();
},_onNextSchedulerDayClick:function(e){
var _f2={Command:"NavigateToNextPeriod"};
this.postback(_f2);
e.stopPropagation();
e.preventDefault();
},_onTodayClick:function(e){
var _f4={Command:"GoToToday"};
this.postback(_f4);
e.stopPropagation();
e.preventDefault();
},_onFullTimeLinkClick:function(e){
var _f6={Command:"SwitchFullTime"};
this.postback(_f6);
e.stopPropagation();
e.preventDefault();
},postback:function(_f7){
if(!this._inPostback){
var _f8=Telerik.Web.DomElement.getElementByClassName(this.get_element(),"rsContent","div");
_f7.ScrollTop=_f8.scrollTop;
this._inPostback=true;
var _f9=this.PostBackReference.replace("arguments",Sys.Serialization.JavaScriptSerializer.serialize(_f7));
eval(_f9);
}
},dispose:function(){
var _fa=new Date();
var _fb=this.get_element();
$removeHandler(document.documentElement,"keydown",this._onKeyboardEventDelegate);
for(var _fc in this._eventMap){
$removeHandler(_fb,_fc,this._onDomEventDelegate);
}
this._recurrenceActionDialog.dispose();
Telerik.Web.UI.RadScheduler.callBaseMethod(this,"dispose");
var end=new Date();
var _fe=end-_fa;
},set_Appointments:function(_ff){
this._appointments=[];
var _100=Sys.Serialization.JavaScriptSerializer.deserialize(_ff);
for(var i=0;i<_100.length;i++){
var _102=new Telerik.Web.UI.SchedulerAppointment(_100[i],this);
this._appointments[i]=_102;
}
},get_Appointments:function(){
return this._appointments;
},set_FirstDayStart:function(_103){
this._firstDayStart=Sys.Serialization.JavaScriptSerializer.deserialize(_103);
},get_FirstDayStart:function(){
return this._firstDayStart;
},set_CurrentAppointment:function(_104){
this._currentAppointment=Sys.Serialization.JavaScriptSerializer.deserialize(_104);
},get_CurrentAppointment:function(){
return this._currentAppointment;
},add_AppointmentClicking:function(_105){
this.get_events().addHandler("AppointmentClicking",_105);
},remove_AppointmentClicking:function(_106){
this.get_events().removeHandler("AppointmentClicking",_106);
},raise_AppointmentClicking:function(_107){
this.raiseEvent("AppointmentClicking",_107);
},add_AppointmentClicked:function(_108){
this.get_events().addHandler("AppointmentClicked",_108);
},remove_AppointmentClicked:function(_109){
this.get_events().removeHandler("AppointmentClicked",_109);
},raise_AppointmentClicked:function(args){
this.raiseEvent("AppointmentClicked",args);
},add_AppointmentDoubleClicking:function(_10b){
this.get_events().addHandler("AppointmentDoubleClicking",_10b);
},remove_AppointmentDoubleClicking:function(_10c){
this.get_events().removeHandler("AppointmentDoubleClicking",_10c);
},raise_AppointmentDoubleClicking:function(_10d){
this.raiseEvent("AppointmentDoubleClicking",_10d);
},add_AppointmentDoubleClicked:function(_10e){
this.get_events().addHandler("AppointmentDoubleClicked",_10e);
},remove_AppointmentDoubleClicked:function(_10f){
this.get_events().removeHandler("AppointmentDoubleClicked",_10f);
},raise_AppointmentDoubleClicked:function(_110){
this.raiseEvent("AppointmentDoubleClicked",_110);
},add_AppointmentResizeStart:function(_111){
this.get_events().addHandler("AppointmentResizeStart",_111);
},remove_AppointmentResizeStart:function(_112){
this.get_events().removeHandler("AppointmentResizeStart",_112);
},raise_AppointmentResizeStart:function(args){
this.raiseEvent("AppointmentResizeStart",args);
},add_AppointmentResizeEnd:function(_114){
this.get_events().addHandler("AppointmentResizeEnd",_114);
},remove_AppointmentResizeEnd:function(_115){
this.get_events().removeHandler("AppointmentResizeEnd",_115);
},raise_AppointmentResizeEnd:function(args){
this.raiseEvent("AppointmentResizeEnd",args);
},add_AppointmentResizing:function(_117){
this.get_events().addHandler("AppointmentResizing",_117);
},remove_AppointmentResizing:function(_118){
this.get_events().removeHandler("AppointmentResizing",_118);
},raise_AppointmentResizing:function(args){
this.raiseEvent("AppointmentResizing",args);
},add_AppointmentDeleting:function(_11a){
this.get_events().addHandler("AppointmentDeleting",_11a);
},remove_AppointmentDeleting:function(_11b){
this.get_events().removeHandler("AppointmentDeleting",_11b);
},raise_AppointmentDeleting:function(args){
this.raiseEvent("AppointmentDeleting",args);
},add_AppointmentDeleted:function(_11d){
this.get_events().addHandler("AppointmentDeleted",_11d);
},remove_AppointmentDeleted:function(_11e){
this.get_events().removeHandler("AppointmentDeleted",_11e);
},raise_AppointmentDeleted:function(args){
this.raiseEvent("AppointmentDeleted",args);
},add_AppointmentAdvancedEditClicking:function(_120){
this.get_events().addHandler("AppointmentAdvancedEditClicking",_120);
},remove_AppointmentAdvancedEditClicking:function(_121){
this.get_events().removeHandler("AppointmentAdvancedEditClicking",_121);
},raise_AppointmentAdvancedEditClicking:function(args){
this.raiseEvent("AppointmentAdvancedEditClicking",args);
},add_AppointmentEditing:function(_123){
this.get_events().addHandler("AppointmentEditing",_123);
},remove_AppointmentEditing:function(_124){
this.get_events().removeHandler("AppointmentEditing",_124);
},raise_AppointmentEditing:function(args){
this.raiseEvent("AppointmentEditing",args);
}};
Telerik.Web.UI.RadScheduler.FixHeight=function(_126){
var _127=$get(_126);
var _128=_127.offsetHeight;
var _129=_128;
var _12a=null;
var divs=_127.childNodes;
var _12c=divs.length;
for(var i=0;i<_12c;i++){
var _12e=divs[i];
if(_12e.tagName&&_12e.tagName.toLowerCase()=="div"){
if(Telerik.Web.DomElement.containsCssClass(_12e,"rsContent")){
_12a=_12e;
}else{
_129-=_12e.offsetHeight;
}
}
}
if(_12a!=null){
var _12f=TelerikCommonScripts.getPaddingBox(_12a).vertical;
var _130=TelerikCommonScripts.getBorderBox(_12a).vertical;
_129-=_12f+_130;
_129=Math.max(_129,50);
_12a.style.height=_129+"px";
}
var _131=Telerik.Web.DomElement.getElementByClassName(_127,"rsAllDayLastCell","td");
if(_131){
_131.firstChild.style.width=(Telerik.Web.UI.RadScheduler.GetScrollBarWidth()-1)+"px";
}
var _132=Telerik.Web.DomElement.getElementByClassName(_127,"rsColumnHeaderLastCell","td");
if(_132){
_132.firstChild.style.width=(Telerik.Web.UI.RadScheduler.GetScrollBarWidth()-1)+"px";
}
};
Telerik.Web.UI.RadScheduler.FixAdvancedFormHeight=function(_133){
var _134=$get(_133);
var _135=null;
var _136=null;
var divs=_134.getElementsByTagName("div");
var _138=divs.length;
for(var i=0;i<_138;i++){
var _13a=divs[i];
if(Telerik.Web.DomElement.containsCssClass(_13a,"rsAdvancedSubmitArea")){
_136=_13a;
}else{
if(Telerik.Web.DomElement.containsCssClass(_13a,"rsAdvOptions")){
_135=_13a;
}
}
}
if(_135!=null&&_136!=null){
var _13b=_134.offsetHeight;
var _13c=(_13b-_136.offsetHeight);
_135.style.height=_13c+"px";
_13c-=_135.offsetHeight-_13c;
_135.style.height=_13c+"px";
_136.style.cssText=_136.style.cssText;
}
};
Telerik.Web.UI.RadScheduler.GetScrollBarWidth=function(){
try{
if(typeof (Telerik.Web.UI.RadScheduler._scrollbarWidth)=="undefined"){
var _13d,_13e=0;
var _13f=document.createElement("div");
_13f.style.position="absolute";
_13f.style.top="-1000px";
_13f.style.left="-1000px";
_13f.style.width="100px";
_13f.style.height="50px";
_13f.style.overflow="hidden";
var _140=document.createElement("div");
_140.style.width="100%";
_140.style.height="200px";
_13f.appendChild(_140);
document.body.appendChild(_13f);
var _141=_140.offsetWidth;
_13f.style.overflow="auto";
var _142=_140.offsetWidth;
Telerik.Web.UI.RadScheduler._scrollbarWidth=_141-_142;
if(Telerik.Web.UI.RadScheduler._scrollbarWidth<=0){
_140.style.width="300px";
_13d=_13f.offsetWidth;
_13e=_13f.clientWidth;
Telerik.Web.UI.RadScheduler._scrollbarWidth=_13d-_13e;
}
if(Telerik.Web.UI.RadScheduler._scrollbarWidth<=0){
Telerik.Web.UI.RadScheduler._scrollbarWidth=16;
}
document.body.removeChild(document.body.lastChild);
}
return Telerik.Web.UI.RadScheduler._scrollbarWidth;
}
catch(error){
return false;
}
};
Telerik.Web.UI.RadScheduler.registerClass("Telerik.Web.UI.RadScheduler",Telerik.Web.UI.RadWebControl);


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();