
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 10/23/2009 3:06:59 PM
// Copyright (c) 2005 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**
function SearchOverlappingBlock(){ this.AffectedEvents =new ISArray(); this.StartTime =null; this.EndTime =null; } var ws25a70 ={ RefreshWorkWeekData: false,  LastAction: "",  LastObjectContext: null,  OperationInRange: true,  m09d81:function(v85f98,v4b736) { var v97562 =v85f98.GetStartTime(); var vd2566 =v4b736.GetStartTime();  if (v97562.getTime()==vd2566.getTime()) return v4b736.Duration -v85f98.Duration;   return v97562 -vd2566; },  m58f73:function(vc7a89) { var v31518 =vc7a89.GetElement();  if (v31518 !=null) { var v3f545 =v31518.parentElement; if (v3f545 !=null) { wsc1b46.m9c085(vc7a89);  v3f545.removeChild(v31518);  } }  vc7a89.Element =null; vc7a89.Elements.Clear();  },  mc3455:function(v00493,v8f034) { var vc4a73 =v8f034.Parent;  var v38924 =ws25a70.ma5a71(v00493,vc4a73);  if (!ws25a70.OperationInRange) { ws25a70.OperationInRange =true; return; }  if (v8f034.IsAllDayEvent()) { if (vc4a73.IsOverlappingWithOtherEvents()) ws25a70.ma4a48(v00493); else ws25a70.me587(v00493,vc4a73); } else { var v1e050 =v00493.EventViews;  var v31848 =ws25a70.m88929(v1e050,v38924,true);   ws25a70.m11d41(v00493,v31848,false);  } },  mc4c55:function(v60b39,v0af62) { var ve6628 =v0af62.Parent; var v96c4 =v60b39.ViewSettings.SelectedViewMode;  switch (v96c4) { case "Day": case "Week": if (v0af62.IsAllDayEvent()) { ws25a70.m58f73(ve6628);  ws25a70.m2ec52(v60b39,ve6628);  ws25a70.ma4a48(v60b39);  } else { var v8a835 =v60b39.EventViews; var vdec51 =v8a835.IndexOf(ve6628);  var v47219 =ws25a70.m88929(v8a835,vdec51,false);  var v43738; if (ws25a70.LastAction =="SeriesDelete") { var v9a315 =ve6628.GetElement(); var v56636 =v9a315.parentElement.parentElement; var vca04 =v56636.parentElement;  v43738 =(vca04.rowIndex %2 !=0)? v56636.cellIndex +1 : v56636.cellIndex;  } ws25a70.m11d41(v60b39,v47219,false,v43738);   ws25a70.m58f73(ve6628);  ws25a70.m2ec52(v60b39,ve6628); } break;  case "Month": case "Timeline": ws25a70.m58f73(ve6628);  ws25a70.m2ec52(v60b39,ve6628); break; }  wsc1b46.mfcc82(v60b39,ve6628);  },  m8dc83:function(v78a0,v97d97) { var v79959 =v97d97.Parent;  if (v97d97.IsAllDayEvent()) {  var v5d571 =v78a0.EventViews;   var v47b72 =v79959.GetStartTime(); var vd7019 =v79959.GetEndTime();  if (v79959.OriginalValue.IsOverlapping) { v79959.StartTime =v79959.OriginalValue.StartTime; v79959.EndTime =v79959.OriginalValue.EndTime;  var vbdd63 =v5d571.IndexOf(v79959);  if (vbdd63 >=0) { var v62062 =ws25a70.m88929(v5d571,vbdd63,false);  ws25a70.m11d41(v78a0,v62062,false);  } }  v79959.StartTime =v47b72; v79959.EndTime =vd7019;    ws25a70.mfbc18(v78a0,v79959);  if (v78a0.ViewSettings.SelectedViewMode =="Week") v78a0.DataCache.DayView.Clear();  if (!ws25a70.OperationInRange) { ws25a70.OperationInRange =true; ws25a70.m58f73(v79959); return; }  ws25a70.ma4a48(v78a0);  } else { var vc3a16 =false;   var v5d571 =v78a0.EventViews;   var v47b72 =v79959.GetStartTime(); var vd7019 =v79959.GetEndTime(); var v88e86 =v97d97.ResourceID; var vac229 =v79959._IsUsingEditingForm; if (v79959.OriginalValue.IsOverlapping) { v79959.StartTime =v79959.OriginalValue.StartTime; v79959.EndTime =v79959.OriginalValue.EndTime; v97d97.ResourceID =v97d97.OriginalValue.ResourceID; v79959._IsUsingEditingForm =false;  var vbdd63 =v5d571.IndexOf(v79959);  if (vbdd63 >=0) { var v62062 =ws25a70.m88929(v5d571,vbdd63,false);  ws25a70.m11d41(v78a0,v62062,false);  } }  var vbdd63 =v78a0.AllDayEventViews.IndexOf(v79959);  if (vbdd63 >=0) vc3a16 =true;   v79959.StartTime =v47b72; v79959.EndTime =vd7019; v97d97.ResourceID =v88e86; v79959._IsUsingEditingForm =vac229;  var vbdd63 =ws25a70.mfbc18(v78a0,v79959);  if (!ws25a70.OperationInRange) { ws25a70.OperationInRange =true; ws25a70.m58f73(v79959); return; }  var v62062 =ws25a70.m88929(v5d571,vbdd63,true);  var v5c895 =true; if (ws25a70.LastAction =="ResizeEvent") v5c895 =false;   var vc0452; if (ws25a70.LastAction =="SeriesUpdate") { var v85f21 =v79959.GetElement(); if (v85f21 !=null) { if (v85f21.parentElement !=null &&v85f21.parentElement.parentElement !=null) { var v33626 =v85f21.parentElement.parentElement;  var v66656 =v33626.parentElement;  vc0452 =(v66656.rowIndex %2 !=0)? v33626.cellIndex +1 : v33626.cellIndex;  } } } else if (vc3a16) { var v85f21 =v79959.GetElement(); var v33626 =v85f21.parentElement;  vc0452 =v33626.cellIndex;   if (ws25a70.RefreshWorkWeekData) { v78a0.WorkWeekAllDayEventViews.Clear(); wsc1b46.m4784(v78a0);  ws25a70.RefreshWorkWeekData =false;  }  ws25a70.ma4a48(v78a0);   if (v78a0.ViewSettings.SelectedViewMode =="Week" &&!v78a0.IsInSplitViewMode) { var v0c344 =v79959.StartTime.getDate()-v79959.OriginalValue.StartTime.getDate(); vc0452 +=v0c344; } }  if (v78a0.IsInSplitViewMode) vc0452 =v78a0.ResourcesIndex[v79959.GetOriginalObject().ResourceID];  ws25a70.m11d41(v78a0,v62062,v5c895,vc0452); } },  m11d41:function(vf4d39,v75316,v95214,v52517) { var vbcf55 =vf4d39.ViewSettings.SelectedViewMode;  switch (vbcf55) { case "Day": case "Week": var v15a76 =ws25a70.m55a93(vf4d39);   if (typeof(v52517)=="undefined") v52517 =ws25a70.m40021(vf4d39,v95214);   ws25a70.m7a637(vf4d39,v75316);   var v6c966 =v75316.AffectedEvents; v6c966.sort(ws25a70.m09d81);   ws25a70.mb6670(vf4d39,v75316,v15a76,v52517); break; } },  m3c15:function(v0a880,vc9642) { var v25c94 =new ISArray(); for (var v24695 =0 ; v24695 <vc9642.length ; v24695++) { var vf9899 =vc9642[v24695];  vf9899.IsOverlapping =false; vf9899.Expand =null;  var v86b20 =vf9899.GetStartTime();  var vc7c72 =v86b20.getHours(); var vbca26 =v86b20.getMinutes();  var v91412 =vc7c72 *60 +vbca26;   var vb0162 =v91412; var v1d88 =vf9899.Duration /60 /1000;  var v04093 =0; while(true) { var vf9b51 =v25c94[v04093];  var v07436 =vf9b51 ==null; if (v07436) { v25c94[v04093] =new Array(); break; } else if (vf9b51[vb0162] ==null) break;  v04093++; }  var vf9b51 =v25c94[v04093];  if (v04093 >0) vf9899.IsOverlapping =true;  for (var v4f854 =0 ; v4f854 <v1d88 ; v4f854++) { vf9b51[vb0162 +v4f854] =vf9899; vf9899.RenderIndex =v04093;  } }  var vdb75 =v25c94[0];  for (var v24695 =1 ; v24695 <v25c94.length; v24695++) { var vf9b51 =v25c94[v24695];   for(var key in vf9b51) { var v06131 =vdb75[key]; if (v06131 !=null) { v06131.IsOverlapping =true;  if (v06131.Expand ==null ||v06131.Expand >=v24695) v06131.Expand =v24695; } } }  return v25c94.length;  },  m7a637:function(vd6c35,vc2021) { var vf070 =vc2021.AffectedEvents;  for (var v35252 =0 ; v35252 <vf070.length ; v35252++) { var v99c89 =vf070[v35252];  ws25a70.m58f73(v99c89); } },  mb6670:function(vf3432,v58d26,v1570,vd2772) { var v6d771 =v58d26.AffectedEvents; if (v6d771.length <=0) return; var v59c91 =ws25a70.m3c15(vf3432,v58d26.AffectedEvents);  var v3c326 =v58d26.AffectedEvents.length; var v8f636 =30; var vf8681 =vf3432.LayoutSettings.RowHeight; var v3f462 =document.createElement("DIV");  var v29242 =parseInt(96 /v59c91);  for (var v00d52 =0 ; v00d52 <v3c326 ; v00d52++) { var vd9216 =v58d26.AffectedEvents[v00d52];  var ve1058 =vd9216.GetStartTime(); var vcd964 =ve1058.getHours()*2; var v00383 =ve1058.getMinutes(); var v7ca83 =-1;  if (v00383 >=v8f636) { vcd964 =vcd964 +1; if (v00383 !=v8f636) v7ca83 =((v00383 -v8f636)/v8f636)*vf8681;  } else { if (v00383 !=0) v7ca83 =(v00383 /v8f636)*vf8681; }  var v68180; if (!vd9216.IsOverlapping) v68180 ="96%"; else { if (vd9216.Expand !=null) v68180 =(v29242 *vd9216.Expand)+"%"; else v68180 =v29242 +"%"; }  var v26f55 =vd9216.Duration; var vb1442 =v26f55 /1000 /60 /v8f636; var ve6851 =vf8681 *vb1442;  var v3d31 =v1570.rows[vcd964];  var v25676;  if (vcd964 %2 ==0) v25676 =v3d31.cells[vd2772]; else v25676 =v3d31.cells[vd2772-1];  var v36121 =v25676.children[0];   var v20e7 =wsc1b46.m15d19(vf3432,vd9216,v68180,ve6851,(v29242 *vd9216.RenderIndex),v7ca83);  v3f462.innerHTML =v20e7;  var v7f368 =v3f462.children[0]; vd9216.Element =v7f368; vd9216.Elements.Add(v7f368);  v36121.appendChild(v7f368);  vd9216.Parent =vf3432;  wsc1b46.md2970(vd9216);  if (vd9216.DisableEdit ||(!vd9216.DisableEdit &&vd9216.DisableMove)) wsc1b46.m35162(vf3432,vd9216); } },  ma4a48:function(v57962) { var v79935 =v57962.ViewSettings.SelectedViewMode;  var vd5476;  if (v79935 =="Day") vd5476 =v57962.GetDayDayHeader();  else if (v79935 =="Week") vd5476 =v57962.GetWeekDayHeader();   var vac816; if (v57962.ViewSettings.SelectedWeekViewMode =="WorkWeek") vac816 =v57962.WorkWeekAllDayEventViews; else vac816 =v57962.AllDayEventViews;  for (var vb5c54 =0 ; vb5c54 <vac816.length ; vb5c54++) { var vfda45 =vac816[vb5c54];  ws25a70.m58f73(vfda45); }  if (v57962.IsInSplitViewMode) { var v8ba30 =ws24215.ma0d55(v57962,v57962.AllDayEventViews); ws24215.me6a42(v57962,v8ba30,v57962.GetDayDayHeader()); } else { var vae44 =wsc1b46.mcc723(v57962,vd5476,false); wsc1b46.m41a40(v57962,vae44,vd5476); } },   me587:function(vb5223,v0d329) { var v51c46 =vb5223.ViewSettings.SelectedViewMode;  var v59934;  if (v51c46 =="Day") v59934 =vb5223.GetDayDayHeader();  else if (v51c46 =="Week") v59934 =vb5223.GetWeekDayHeader();   var v75986 =vb5223.LayoutSettings.AllDayEventHeight;  var vb4460 =v59934.rows[1]; var v93689 =vb4460.cells; var vf1244 =new Array();  var va6516 =vb5223.WorkDaysFlag; var v90118 =document.createElement("DIV");  for (var v4c140 =1; v4c140 <v93689.length; v4c140++) vf1244.push(v93689[v4c140].clientWidth);   var v87639 =v0d329.Duration;  if (v0d329.StartTime !="") { v0d329.Elements.Clear();  var v39196 =0;  var v8a031 =v59934.rows[0]; var v52394 =v8a031.cells;  for (var v4c140 =1; v4c140 <v52394.length; v4c140++) { var v7e354 =v52394[v4c140];  if (vb5223.IsInSplitViewMode) { var v7c599 =v0d329.GetOriginalObject().ResourceID; v39196 =vb5223.ResourcesIndex[v7c599]; } else { var v19e45 =v7e354.attributes["d"].value; var vbe381 =v7e354.attributes["m"].value; var ve5932 =v7e354.attributes["y"].value; var vb0c22 =new Date(ve5932,parseInt(vbe381)-1,v19e45);  if (ws99232.me0b15(v0d329.GetStartTime(),vb0c22,"Date")) { v39196 =v4c140;  break;  } } } var vf1d88 =v93689[v39196];  var v2af36 =wsc1b46.m3d620(vb5223,v87639,v39196 -1,vf1244);  var vdc488 =0;  var vd1097 =wsc1b46.mcf048(vb5223,v0d329,v2af36,0,vdc488); v90118.innerHTML =vd1097;  var vc3a84 =v90118.children[0];  v0d329.Element =vc3a84; v0d329.Elements.Add(vc3a84);  v0d329.Parent =vb5223;  vf1d88.appendChild(vc3a84);  wsc1b46.md2970(v0d329);  } },   me2c42:function(v95e73) { var v8c842 =v95e73.ViewSettings.SelectedViewMode;  var v6e839 =ws25a70.mc6b87(v95e73); var vf5179 =v6e839.OriginalObject;  var ve6f37 =v95e73.StartDateSelection; var v37d99 =v95e73.EndDateSelection;  switch (v8c842) { case "Day": case "Week": if (ws25a70.md0093(v95e73)) { vf5179.AllDayEvent =true; v6e839.IsStart =true; v6e839.IsEnd =true; }  break;  case "Month": vf5179.AllDayEvent =true; v6e839.IsStart =true; v6e839.IsEnd =true;  break;  case "Timeline": v6e839.IsStart =true; v6e839.IsEnd =true;  break; }  v6e839.StartTime =ve6f37; vf5179.StartTime =ve6f37;  v6e839.EndTime =v37d99; vf5179.EndTime =v37d99;   ws25a70.m1dc22(v6e839);  var vad390 =ws9b468.m47988(v95e73);  var vd9b34 =parseInt(vad390.value); vf5179.ResourceID =vd9b34;   var v9d562 =v95e73.EditingField.length;  if (v9d562 ==0) v9d562 =2;  for (var va3b31 =0 ; va3b31 <v9d562 ; va3b31++) { var v19848 =ws9b468.mf4749(v95e73,va3b31); var v32893 =v19848.attributes["mode"].value; vf5179[v32893] =v19848.value;  }  v95e73.InsertEvent(vf5179,false);  ws25a70.LastAction ="Insert"; },  me3d49:function(v84384,vdde65) { var v4da56 =v84384.ViewSettings.SelectedViewMode;  var v9cf47 =v84384.LastInsertedEventObject; var va0065 =v9cf47.Parent;  v9cf47.EventID =vdde65;  switch (v4da56) { case "Day": case "Week": if (va0065.RecurrenceType =="None"){ ws25a70.mc3455(v84384,v9cf47); } else if (va0065.RecurrenceType =="Exception") { if (v9cf47.ExceptionInfo =="Deleted"){ ws25a70.mc4c55(v84384,v9cf47); } else if (v9cf47.ExceptionInfo =="Altered"){ ws25a70.m8dc83(v84384,v9cf47); }  wsc1b46.m7b844(v84384,v84384.SelectedEvent,"");  }  wsc1b46.m89e99(v84384,va0065);   if (v9cf47.IsAllDayEvent()) v84384.DataCache.InvalidateAll(true);   break;  case "Month": if (va0065.RecurrenceType =="None"){ ws25a70.ma5a71(v84384,va0065); } else if (va0065.RecurrenceType =="Exception") { if (v9cf47.ExceptionInfo =="Deleted"){ ws25a70.m2ec52(v84384,va0065); } else if (v9cf47.ExceptionInfo =="Altered"){ ws25a70.mfbc18(v84384,va0065);  }  wsc1b46.m7b844(v84384,v84384.SelectedEvent,"");  }  var v25926 =va0065.GetOriginalObject(); if ((v25926.GetStartTime()<va0065.GetStartTime())||(v25926.GetEndTime()>va0065.GetEndTime())) v84384.DataCache.InvalidateAll(true);  wsc1b46.m5c854(v84384);  var v05020 =wsc1b46.m12659(v84384);  wsc1b46.m50656(v84384,v84384.CategorizedData);   break;  case "Agenda": if (va0065.RecurrenceType =="None"){ ws25a70.ma5a71(v84384,va0065); } else if (va0065.RecurrenceType =="Exception") { if (v9cf47.ExceptionInfo =="Deleted"){ ws25a70.m2ec52(v84384,va0065);  var v81524 =va0065.GetElement(); Listener.Unload(v81524);  if (v81524.parentElement !=null) v81524.parentElement.removeChild(v81524);  } else if (v9cf47.ExceptionInfo =="Altered"){ ws25a70.mfbc18(v84384,va0065); va0065.RefreshContent();  }  wsc1b46.m7b844(v84384,v84384.SelectedEvent,"");  }  if (v9cf47.IsAllDayEvent()) v84384.DataCache.InvalidateAll(true);  break;  case "Timeline": if (va0065.RecurrenceType =="None"){ ws25a70.ma5a71(v84384,va0065); } else if (va0065.RecurrenceType =="Exception") { if (v9cf47.ExceptionInfo =="Deleted"){ ws25a70.m2ec52(v84384,va0065); } else if (v9cf47.ExceptionInfo =="Altered"){ ws25a70.mfbc18(v84384,va0065);  }  wsc1b46.m7b844(v84384,v84384.SelectedEvent,"");  }  wsc1b46.m5c854(v84384);  ws26354.mda48(v84384); ws26354.m18895(v84384);  if (v9cf47.IsAllDayEvent()) v84384.DataCache.InvalidateAll(true);   break; }  ws98641.m10d62(v84384);  ws25a70.LastAction =null; v84384.Calendar.LoadData(true);   v84384.LastInsertedEventObject =null; },  m3d544:function(v42358) { var v3213 =v42358.ViewSettings.SelectedViewMode; var vb9c74 =v42358.EventViews;  var ve4a54 =ws98641.LastObjectContext; var vd3c74 =ve4a54.Event; var v7a386 =vd3c74.GetElement(); var v42037 =vd3c74.GetOriginalObject(); var v13f36 =0; if (v42358.ViewSettings.SelectedViewMode !="Day" ||(v42358.ViewSettings.SelectedViewMode =="Day" &&v42358.IsInSplitViewMode)) v13f36 =ws98641.m40c71(v42358,ve4a54,false);  var vee64 =ws98641.m29452(v42358,ve4a54);  switch (v3213) { case "Day": case "Week": var vba324 =v7a386.parentElement.parentElement; var v7b467 =vba324.parentElement;  var v61f12 =(v7b467.rowIndex %2 !=0)? vba324.cellIndex +1 : vba324.cellIndex; v61f12 +=v13f36;  var v5d516 =v7b467.rowIndex +vee64;  var v50566; var v46516 =-1; if (v42358.IsInSplitViewMode) { var v7b467 =v42358.GetDayDayHeader().rows[0]; var vba324 =v7b467.cells[v61f12]; v46516 =vba324.attributes["resourceID"].value;  v50566 =ws98641.m96234(vd3c74.GetStartTime(),v5d516); } else v50566 =ws98641.m96234(vd3c74.GetStartTime(),v5d516,v13f36);  var ve1136 =new Date(v50566.getTime()+vd3c74.Duration);   if (!ws98641.mfde69(v42037,v50566,ve1136,v46516)) { vd3c74.SaveOriginalValue(); v42037.SaveOriginalValue();   vd3c74.StartTime =v50566; v42037.StartTime =v50566;  vd3c74.EndTime =ve1136; v42037.EndTime =ve1136;   if (v46516 !=-1) v42037.ResourceID =v46516;  if (vd3c74.RecurrenceType =="Default") ws25a70.m03c27(v42358,vd3c74); else { v42037.Update();  } } else { if (vd3c74.IsOverlappingWithOtherEvents()) ws25a70.m8dc83(v42358,v42037);  }  break;  case "Month": var v6cd73 =(vee64 *7)+(v13f36);  var v50566 =ws99232.mf8b50(vd3c74.GetStartTime(),v6cd73); var ve1136 =ws99232.mf8b50(vd3c74.GetEndTime(),v6cd73);   if (!ws98641.mfde69(v42037,v50566,ve1136)) { vd3c74.SaveOriginalValue(); v42037.SaveOriginalValue();   vd3c74.StartTime =v50566; v42037.StartTime =v50566;  vd3c74.EndTime =ve1136; v42037.EndTime =ve1136;   if (vd3c74.RecurrenceType =="Default") ws25a70.m03c27(v42358,vd3c74); else { v42037.Update();  } } break;  case "Timeline": var v47a45 =v42358.ViewSettings.SelectedTimelineViewMode;  var v50566; var ve1136;  var v46516; var v7b467 =v7a386.parentElement.parentElement;  var v82f52 =v7b467.rowIndex +vee64;  if (v47a45 =="DayHourly") { v50566 =ws31176.mf5b71(vd3c74.GetStartTime(),v13f36); ve1136 =ws31176.mf5b71(vd3c74.GetEndTime(),v13f36);  } else if (v47a45 =="Day15Minutes") { v50566 =ws99232.mf7580(vd3c74.GetStartTime(),(v13f36*15)); ve1136 =ws99232.mf7580(vd3c74.GetEndTime(),(v13f36*15)); } else if (v47a45 =="Month" ||v47a45 =="Week") { v50566 =ws99232.mf8b50(vd3c74.GetStartTime(),v13f36); ve1136 =ws99232.mf8b50(vd3c74.GetEndTime(),v13f36);  }  var v64918 =v42358.GetTimelineResourceCellElement().rows[v82f52]; if (typeof(v64918)=='undefined') { v7a386.childNodes[0].style.top =vd3c74.PositionY +"px"; v7a386.childNodes[0].style.left ="0px";  ws25a70.LastAction ="Move"; return; } else v46516 =v64918.cells[0].attributes["resourceID"].value;  if (!ws98641.mfde69(v42037,v50566,ve1136,v46516)) { vd3c74.SaveOriginalValue(); v42037.SaveOriginalValue();   var v4a273 =false; if (ws98641.m57838(v42037,v50566,ve1136,v46516)) v4a273 =true;  vd3c74.StartTime =v50566; v42037.StartTime =v50566;  vd3c74.EndTime =ve1136; v42037.EndTime =ve1136;   v42037.ResourceID =v46516;  if (vd3c74.RecurrenceType =="Default") { if (v4a273) { var vf4148 =new WebSchedulerTemporaryInfo(); vf4148.StartTime =v50566; vf4148.EndTime =ve1136; ve4a54.TemporaryInfo =vf4148;  v42358.ShowConfirmationForm(ve4a54,"Update");  } else ws25a70.m03c27(v42358,vd3c74); } else { v42037.Update();  } } else ws98641.m8b980(v42358,ve4a54);  break;  }  ws25a70.LastObjectContext =ws98641.LastObjectContext;  ws25a70.LastAction ="Move"; },  m8e281:function(v35188) { var v1d194 =v35188.ViewSettings.SelectedViewMode; var v09378 =v35188.EventViews;  var v98766 =ws98641.LastObjectContext; var vd3678 =v98766.Event; var v03c17 =vd3678.GetElement(); var v79f9 =vd3678.GetOriginalObject();  var vfc338 =vd3678.GetStartTime(); var vf8f18 =ws98641.ma4269(v35188,v03c17,vfc338);   vd3678.SaveOriginalValue(); v79f9.SaveOriginalValue();   if (!ws98641.mfde69(v79f9,vfc338,vf8f18)) { if (vd3678.RecurrenceType =="Default") { var ve3864 =new WebSchedulerTemporaryInfo(); ve3864.StartTime =vfc338; ve3864.EndTime =vf8f18; v98766.TemporaryInfo =ve3864;  v35188.ShowConfirmationForm(v98766,"Update"); } else { vd3678.StartTime =vfc338; v79f9.StartTime =vfc338;  vd3678.EndTime =vf8f18; v79f9.EndTime =vf8f18;   v79f9.Update();  } }  ws25a70.LastObjectContext =ws98641.LastObjectContext;  ws25a70.LastAction ="ResizeEvent"; },  m0fc68:function(v81394) { var v6bf24 =v81394.ViewSettings.SelectedViewMode;  var v0d345 =ws98641.LastObjectContext; var v9943 =v0d345.Event;  var v2be46 =v9943.GetElement(); var v65560 =v9943.GetOriginalObject();  var va0232 =0; var v9b138 =v2be46.parentElement;   var vdac89;  var veb810;  if (v0d345.UIType =="RightResizer") { vdac89 =v65560.GetStartTime(); veb810 =v9943.EndTime; } else { vdac89 =v9943.StartTime; veb810 =v65560.GetEndTime(); }  var vf985 =v81394.ViewSettings.SelectedTimelineViewMode;   if (v0d345.UIType =="LeftResizer") { va0232 =ws98641.m40c71(v81394,v0d345,false);   if (v6bf24 =="Timeline") { if (vf985 =="DayHourly") vdac89 =ws31176.mf5b71(vdac89,va0232); else if (vf985 =="Day15Minutes") vdac89 =ws99232.mf7580(vdac89,(va0232*15)); else if (vf985 =="Month" ||vf985 =="Week") vdac89 =ws99232.mf8b50(vdac89,va0232);  } else  vdac89 =ws99232.mf8b50(vdac89,va0232);  } else { va0232 =ws98641.m40c71(v81394,v0d345,true);  if (v6bf24 =="Timeline") { if (vf985 =="DayHourly") veb810 =ws31176.mf5b71(veb810,va0232);  else if (vf985 =="Day15Minutes") veb810 =ws99232.mf7580(veb810,(va0232*15)); else if (vf985 =="Month" ||vf985 =="Week") veb810 =ws99232.mf8b50(veb810,va0232);  } else veb810 =ws99232.mf8b50(veb810,va0232);  }   if (!ws98641.mfde69(v9943,vdac89,veb810)) { v9943.SaveOriginalValue(); v65560.SaveOriginalValue();   if (v0d345.UIType =="LeftResizer") { v9943.StartTime =vdac89; v65560.StartTime =vdac89;   if (v81394.ViewSettings.SelectedWeekViewMode =="WorkWeek") v65560.Parent.StartTime =vdac89; } else { v9943.EndTime =veb810; v65560.EndTime =veb810;   if (v81394.ViewSettings.SelectedWeekViewMode =="WorkWeek") v65560.Parent.EndTime =veb810; }  if (v9943.RecurrenceType !="Default") { v65560.Update();  } else { var v1f148 =v81394.ViewSettings.SelectedTimelineViewMode; var vb2e51 =false;  if (v6bf24 =="Timeline" &&(v1f148 =="DayHourly" ||v1f148 =="Day15Minutes")) vb2e51 =true;  if (vb2e51) { var v1f239 =new WebSchedulerTemporaryInfo(); v1f239.StartTime =vdac89; v1f239.EndTime =veb810; v0d345.TemporaryInfo =v1f239;  v81394.ShowConfirmationForm(v0d345,"Update");  } else ws25a70.m03c27(v81394,v9943); } }  if (!v81394.ViewSettings.SelectedWeekViewMode =="WorkWeek") ws25a70.RefreshWorkWeekData =true;  ws25a70.LastAction ="ResizeAllDayEvent"; },  m9f639:function(vdd985) { var v58365 =vdd985.SelectedEvent; var ve0e71 =v58365.GetOriginalObject();  if (v58365.RecurrenceType =="None") { vdd985.EditEvent(v58365,"Event"); } else { var vd5e11 =new WebSchedulerObjectContext(); vd5e11.Event =v58365;  vdd985.ShowConfirmationForm(vd5e11,"EditingForm");  } },  m03c27:function(v2495,v21490) { var v23769 =v21490.GetOriginalObject();  var v53721 =wsc1b46.mb1285(v2495,v23769);  if (v53721) { v21490.RecurrenceType ="Exception";  v23769.ParentID =v23769.EventID; v23769.ExceptionDate =v23769.OriginalValue.StartTime; v23769.ExceptionInfo ="Altered";  v2495.InsertRecurringEvent(v23769,false);  } },  md1e11:function(v60f60) { var v7ec40 =v60f60.ViewSettings.SelectedViewMode;  var vc1a60 =v60f60.LastUpdatedEventObject; var v71b63 =vc1a60.Parent;   switch (v7ec40) { case "Day": case "Week":  if (ws25a70.LastAction =="SeriesUpdate") { var v22785 =v60f60.LastUpdatedEventObject;  var vdf269 =v22785.StartTime.getHours(); var v58787 =v22785.StartTime.getMinutes(); var vccd46 =0;  var v64b89 =v22785.EndTime.getHours(); var v54b84 =v22785.EndTime.getMinutes(); var v3a857 =0;   var v01a29; if (v22785.IsAllDayEvent()) v01a29 =v60f60.AllDayEventViews; else v01a29 =v60f60.EventViews;  for (var vf9b39 =0 ; vf9b39 <v01a29.length ; vf9b39++) { var vebb56 =v01a29[vf9b39];  var ve3280 =vebb56.GetOriginalObject();  if (vebb56.RecurrenceType =="Default" &&ve3280.RecurrenceID ==v22785.RecurrenceID) { var v10660 =ve3280.GetStartTime();  var v83c98 =v10660.getFullYear(); var v0a938 =v10660.getMonth(); var va8d87 =v10660.getDate();  var v21686 =new Date(v83c98,v0a938,va8d87,vdf269,v58787,vccd46);  var v70262 =ve3280.GetEndTime();  var v53e34 =v70262.getFullYear(); var vfd749 =v70262.getMonth(); var ved979 =v70262.getDate();  var v0e166 =new Date(v53e34,vfd749,ved979,v64b89,v54b84,v3a857);  vebb56.StartTime =v21686; ve3280.StartTime =v21686;  vebb56.EndTime =v0e166; ve3280.EndTime =v0e166;  if (v7ec40 =="Week" &&v60f60.ViewSettings.SelectedWeekViewMode =="WorkWeek") { var vaa553 =v21686.getDay(); var v52713 =v60f60.WorkDaysFlag[vaa553];  if (v52713) ws25a70.m8dc83(v60f60,ve3280);  } else ws25a70.m8dc83(v60f60,ve3280); } }  v60f60.DataCache.InvalidateAll(true); } else if (v71b63.RecurrenceType =="Exception" &&vc1a60.ExceptionInfo =="Deleted") { ws25a70.mc4c55(v60f60,vc1a60); } else { ws31176.mc4f44(v60f60,vc1a60); ws25a70.m8dc83(v60f60,vc1a60);   if (ws25a70.LastAction =="ResizeAllDayEvent") { if (ws25a70.RefreshWorkWeekData) { v60f60.WorkWeekAllDayEventViews.Clear(); wsc1b46.m4784(v60f60);  ws25a70.RefreshWorkWeekData =false;  ws25a70.ma4a48(v60f60); }  v60f60.DataCache.InvalidateAll(true); } } break;  case "Month":  ws25a70.mfbc18(v60f60,v71b63);  var vc1a60 =v71b63.GetOriginalObject(); if ((vc1a60.GetStartTime()<v71b63.GetStartTime())||(vc1a60.GetEndTime()>v71b63.GetEndTime())) v60f60.DataCache.InvalidateAll(true);  wsc1b46.m5c854(v60f60);  wsc1b46.mfbc64(v60f60,null,true);   var v32156 =wsc1b46.m12659(v60f60);  wsc1b46.m50656(v60f60,v60f60.CategorizedData);  break; case "Agenda":  ws25a70.mfbc18(v60f60,v71b63,true);  if (v71b63.IsAllDayEvent()) v60f60.DataCache.InvalidateAll(true);  v71b63.RefreshContent();  break; case "Timeline": if (v71b63.RecurrenceType =="Exception" &&vc1a60.ExceptionInfo =="Deleted") ws25a70.mc4c55(v60f60,vc1a60);  else ws25a70.mfbc18(v60f60,v71b63);  wsc1b46.m5c854(v60f60); ws26354.mda48(v60f60); ws26354.m18895(v60f60); break;  }  ws98641.LastObjectContext =null;  ws25a70.LastObjectContext =null; ws25a70.LastAction =null; if (v60f60.CalendarSettings.NumberOfMonthDisplayed >0) v60f60.Calendar.LoadData(true);   if (v7ec40 !="Agenda") wsc1b46.m7b844(v60f60,v60f60.SelectedEvent,"");  v60f60.LastUpdatedEventObject =null; },  m5f515:function(v08251) { var v8dd95 =v08251.SelectedEvent; var v18094 =v8dd95.GetOriginalObject();  if (v8dd95.RecurrenceType =="None") { v8dd95.SaveOriginalValue(); v18094.SaveOriginalValue();   v18094.Delete();  } else { var v08d57 =new WebSchedulerObjectContext();  v08d57.Event =v08251.SelectedEvent;   v08251.ShowConfirmationForm(v08d57,"Delete");  } },  m1bb83:function(v71747) { var vda387 =v71747.ViewSettings.SelectedViewMode;  switch (vda387) { case "Day": case "Week": if (ws25a70.LastAction =="SeriesDelete") { var v62742 =v71747.LastDeletedEventObject; var v80a60; if (v62742.IsAllDayEvent()) v80a60 =v71747.AllDayEventViews; else v80a60 =v71747.EventViews; var vbd292 =new ISArray();  for (var vf0022 =0 ; vf0022 <v80a60.length ; vf0022++) { var v32465 =v80a60[vf0022];  var vaeb54 =v32465.GetOriginalObject();  if (v32465.RecurrenceType !="None" &&vaeb54.RecurrenceID ==v62742.RecurrenceID) { vbd292.Add(vaeb54);  } }  for (var vf0022 =0 ; vf0022 <vbd292.length ; vf0022++) { ws25a70.mc4c55(v71747,vbd292[vf0022]); }  v71747.DataCache.InvalidateAll(true); } else { var v6e95 =v71747.LastDeletedEventObject; var v00118 =v6e95.Parent;   ws25a70.mc4c55(v71747,v6e95);   if (v6e95.IsAllDayEvent()) v71747.DataCache.InvalidateAll(true);  } break; case "Month":  if (ws25a70.LastAction =="SeriesDelete") { var v62742 =v71747.LastDeletedEventObject;  var v65c85 =v71747.EventViews; var ve6266 =v71747.AllDayEventViews; var vbd292 =new ISArray();  ws25a70.m08461(v71747,vbd292,v65c85,v62742); ws25a70.m08461(v71747,vbd292,ve6266,v62742);   for (var vf0022 =0 ; vf0022 <vbd292.length ; vf0022++) { ws25a70.m2ec52(v71747,vbd292[vf0022]);  }  v71747.DataCache.InvalidateAll(true); } else  { var v6e95 =v71747.LastDeletedEventObject; var v00118 =v6e95.Parent;   ws25a70.m2ec52(v71747,v00118);   if (v6e95.IsAllDayEvent()) v71747.DataCache.InvalidateAll(true);  }  wsc1b46.m5c854(v71747); wsc1b46.mfbc64(v71747,null,true);   var ve0e51 =wsc1b46.m12659(v71747);  wsc1b46.m50656(v71747,v71747.CategorizedData);  break;  case "Agenda":  var v00118;  if (ws25a70.LastAction =="SeriesDelete") { var v62742 =v71747.LastDeletedEventObject; v00118 =v62742;  var v65c85 =v71747.EventViews; var ve6266 =v71747.AllDayEventViews; var vbd292 =new ISArray();  ws25a70.m08461(v71747,vbd292,v65c85,v62742); ws25a70.m08461(v71747,vbd292,ve6266,v62742);   for (var vf0022 =0 ; vf0022 <vbd292.length ; vf0022++) { ws25a70.m2ec52(v71747,vbd292[vf0022]);  wsc1b46.mfcc82(v71747,vbd292[vf0022]);   var v37788 =vbd292[vf0022].GetElement();  Listener.Unload(v37788);  if (v37788.parentElement !=null) v37788.parentElement.removeChild(v37788);  }  } else { var v6e95 =v71747.LastDeletedEventObject; v00118 =v6e95.Parent;   ws25a70.m2ec52(v71747,v00118); wsc1b46.mfcc82(v71747,v00118);   var v37788 =v00118.GetElement();  Listener.Unload(v37788);  if (v37788.parentElement !=null) v37788.parentElement.removeChild(v37788); }  if (v00118.IsAllDayEvent()) v71747.DataCache.InvalidateAll(true);  break;  case "Timeline": if (ws25a70.LastAction =="SeriesDelete") { var v62742 =v71747.LastDeletedEventObject;  var vbd292 =new ISArray();  var v65c85 =v71747.EventViews; var ve6266 =v71747.AllDayEventViews; var vbd292 =new ISArray();  ws25a70.m08461(v71747,vbd292,v65c85,v62742); ws25a70.m08461(v71747,vbd292,ve6266,v62742);   wsc1b46.m5c854(v71747);  for (var vf0022 =0 ; vf0022 <vbd292.length ; vf0022++) { var v00118 =vbd292[vf0022].Parent; ws25a70.m2ec52(v71747,v00118);  wsc1b46.mfcc82(v71747,v00118);  }  ws26354.mda48(v71747); ws26354.m18895(v71747);   v71747.DataCache.InvalidateAll(true); } else { var v6e95 =v71747.LastDeletedEventObject; var v00118 =v6e95.Parent;   wsc1b46.m5c854(v71747);  ws25a70.mc4c55(v71747,v6e95);  ws26354.mda48(v71747); ws26354.m18895(v71747);  if (v6e95.IsAllDayEvent()) v71747.DataCache.InvalidateAll(true);  }   break;  }  ws25a70.LastAction =null;  v71747.Calendar.LoadData(true);  },  mc6b91:function (vb708,vbb813) { var vb6731 =vbb813.GetOriginalObject();  var v85518; var v9c784;  var v9b849 =vb708.ViewSettings.SelectedViewMode; var v88487 =vb708.ViewSettings.SelectedDate;  var v77324 =vb708.ViewSettings.TimelineView; var vf3427 =v77324.NumberOfDays; var va5e54 =vb708.ViewSettings.SelectedTimelineViewMode;  switch(v9b849) { case "Day": var v5ef84 =ws99232.m1a656(v88487); v85518 =new Date(v5ef84[2],v5ef84[1],v5ef84[0]); v9c784 =ws99232.mf8b50(v85518,1); break; case "Week": var v5ef84 =ws99232.m1a656(v88487); v85518 =ws31176.ma9a23(new Date(v5ef84[2],v5ef84[1],v5ef84[0]),vb708); v9c784 =ws99232.mf8b50(v85518,7); break; case "Month": v85518 =ws31176.ma9a23(new Date(v88487.getFullYear(),vb708.ViewSettings.SelectedMonth,1),vb708); v9c784 =ws99232.mf8b50(v85518,42); break;  case "Timeline": if (va5e54 =="Month" ||va5e54 =="Week") { v85518 =new Date(v88487.getFullYear(),v88487.getMonth(),1); v9c784 =ws99232.mf8b50(v85518,(vf3427 -1));  } else { v85518 =new Date(v88487.getFullYear(),v88487.getMonth(),v88487.getDate()); v9c784 =ws99232.mf8b50(v85518,(vf3427 -1)); } break;  }  var v6bc42 =vb6731.GetStartTime(); var v6c574 =vb6731.GetEndTime();  var vb8f84 =parseInt(ws25a70.m66837(v6bc42,v6c574)/24 /60 /60 /1000);  if (vb8f84 ==0){ vbb813.StartTime =v6bc42; vbb813.EndTime =v6c574; vbb813.GetDuration(); vbb813.IsStart =vb6731.AllDayEvent; vbb813.IsEnd =vb6731.AllDayEvent;   if (!(v85518 <=v6bc42 &&v6bc42 <=v9c784 ||v85518 <=v6c574 &&v6c574 <=v9c784 ||v6bc42 <=v85518 &&v6c574 >=v9c784)) ws25a70.OperationInRange =false;  } else {  if (v85518 <=v6bc42 &&v6bc42 <=v9c784 ||v85518 <=v6c574 &&v6c574 <=v9c784 ||v6bc42 <=v85518 &&v6c574 >=v9c784) { if (v6bc42 <v85518) { vbb813.StartTime =v85518; vbb813.IsStart =false; } else if (v6bc42 >=v85518) { vbb813.StartTime =v6bc42; vbb813.IsStart =true; }  if (v6c574 >v9c784) { vbb813.EndTime =v9c784; vbb813.IsEnd =false; } else if (v6c574 <=v9c784) { vbb813.EndTime =v6c574; vbb813.IsEnd =true; }  vbb813.GetDuration(); } else ws25a70.OperationInRange =false; } },  InsertEvent: function(v15d28,vb4a23) {  },  UpdateEvent: function(v6f928,v53923) {  },  DeleteEvent: function(vddd28,v65123) {  },  mf6511:function(vad467,v2d642) { var vc1e11 =vad467.DataCache;  var v80a63; var v6fd25;  v80a63 =ws25a70.m74238(vad467,vc1e11.DayView,"Day",v2d642,false,true); v6fd25 =ws25a70.m74238(vad467,vc1e11.DayView,"Day",v2d642,true,true);  if (v80a63 !=null &&v6fd25 !=null) ws25a70.m6a471(vad467,v80a63,v6fd25,v2d642);  v80a63 =ws25a70.m74238(vad467,vc1e11.WeekView,"Week",v2d642,false,true); v6fd25 =ws25a70.m74238(vad467,vc1e11.WeekView,"Week",v2d642,true,true);  if (v80a63 !=null &&v6fd25 !=null) { ws25a70.m6a471(vad467,v80a63,v6fd25,v2d642); ws25a70.RefreshWorkWeekData =true; }  if (vad467.ViewSettings.SelectedWeekViewMode =="WorkWeek") { var vcb746 =ws25a70.mc3773(vad467,vc1e11.WeekView,"Week",v2d642,true); if (v2d642.IsAllDayEvent()) { if (vcb746 !=null) { v80a63 =vcb746.WorkWeekAllDayEventViews; if (v80a63 !=null) { weekIndex =ws25a70.m6a471(vad467,null,v80a63,v2d642); ws25a70.RefreshWorkWeekData =false; } } } }  v80a63 =ws25a70.m74238(vad467,vc1e11.MonthView,"Month",v2d642,false,true); v6fd25 =ws25a70.m74238(vad467,vc1e11.MonthView,"Month",v2d642,true,true);  if (v80a63 !=null &&v6fd25 !=null) ws25a70.m6a471(vad467,v80a63,v6fd25,v2d642);   },  m6a471:function(vb4858,vd4c90,ve8c14,v6f094) { var v9182 =v6f094.GetOriginalObject();  var v2ee11 =ws25a70.mae350(v9182); var v07529 =ws25a70.mae350(v9182,v9182.OriginalValue.AllDayEvent,v9182.OriginalValue.StartTime,v9182.OriginalValue.EndTime);  var v50c91 =v6f094.GetOriginalObject().ExceptionInfo;  if (v07529) ws25a70.m91693(vb4858,ve8c14,v6f094);  else ws25a70.m91693(vb4858,vd4c90,v6f094); },  mc3773:function(vb0397,ve8310,v1bc48,vfcd17,vd8939) { var v8c041; var v2c031;   v8c041 =wseda43.m7f957(vb0397,vfcd17.GetStartTime(),v1bc48);  if (vd8939) { var vae863 =vfcd17.OriginalValue.StartTime; if (typeof(vae863)!="object") vae863 =new Date(vae863);  v2c031 =wseda43.m7f957(vb0397,vae863,v1bc48);   if (v8c041 ==v2c031) v8c041 ="";  else v8c041 =v2c031; }  return ve8310.Data[v8c041];  },  m74238:function(v48444,v3c837,v27637,vf4b65,v46b5,vb7a24) { if (v27637 =="Calendar") { var v92352; if (v48444.ViewSettings.SelectedViewMode !="Month") v92352 =ws25a70.mc3773(v48444,v3c837,v27637,vf4b65); else { var v07f89 =v48444.ViewSettings.SelectedYear; var vd1d33 =v48444.ViewSettings.SelectedMonth;  var vc3621 =new Date(v07f89,vd1d33,1);   var v9ed61 =wseda43.m7f957(v48444,vc3621,"Month"); v92352 =v3c837.Data[v9ed61]; }  return v92352.EventOverviews; } else { var v92352 =ws25a70.mc3773(v48444,v3c837,v27637,vf4b65,vb7a24); var v10b30 =vf4b65.GetOriginalObject();  if (typeof(v46b5)=="undefined") { if (v92352 !=null) { if (v10b30.IsAllDayEvent()) return v92352.AllDayEventViews; else return v92352.EventViews;  } } else { if (v92352 !=null) { if (v46b5) return v92352.AllDayEventViews; else return v92352.EventViews; }  } } return null; },  ma5a71:function(ve2390,vc3319) { var v05399 =ve2390.ViewSettings.SelectedViewMode;   var vbf216 =ve2390.DataCache;  var ve7b22; var ve9969; var v30f27; var vc9a32; var v91759;  v91759 =ws25a70.m74238(ve2390,vbf216.DayView,"Day",vc3319); if (v91759 !=null) ve7b22 =ws25a70.mddc17(ve2390,v91759,vc3319); v91759 =ws25a70.m74238(ve2390,vbf216.WeekView,"Week",vc3319); if (v91759 !=null) { ve9969 =ws25a70.mddc17(ve2390,v91759,vc3319); ws25a70.RefreshWorkWeekData =true; }  if (ve2390.ViewSettings.SelectedWeekViewMode =="WorkWeek") { var va1d57 =ws25a70.mc3773(ve2390,vbf216.WeekView,"Week",vc3319); if (vc3319.IsAllDayEvent()) { if (va1d57 !=null) { v91759 =va1d57.WorkWeekAllDayEventViews; if (v91759 !=null) { ve9969 =ws25a70.mddc17(ve2390,v91759,vc3319); ws25a70.RefreshWorkWeekData =false; } } } }  if (v05399 =="Month") { var v44931 =vc3319.GetOriginalObject();  var v93d84 =vc3319.GetStartTime(); var v62983 =ve2390.ViewSettings.SelectedYear; var v31f97 =ve2390.ViewSettings.SelectedMonth;  var v2f318 =new Date(v62983,v31f97,1); var v7d857 =ws31176.ma9a23(v2f318,ve2390); var v61d46 =ws99232.mf8b50(v7d857,42);  var v12099 =ws99232.mf8b50(v7d857,-35); var v53259 =ws99232.mf8b50(v12099,42);  var vd8b1 =ws99232.m00d95(v2f318,1); var v38f97 =ws31176.ma9a23(vd8b1,ve2390); var v0b582 =ws99232.mf8b50(v38f97,42);  var v2d568 =new Date(v93d84.getFullYear(),v93d84.getMonth(),v93d84.getDate());  var vb3c69 =null; if (v12099 <=v2d568 &&v2d568 <=v53259) vb3c69 =ws99232.m00d95(v2f318,-1); else if (v38f97 <=v2d568 &&v2d568 <v0b582) vb3c69 =vd8b1;  if (vb3c69 !=null) { var v20399 =wseda43.m7f957(ve2390,vb3c69,v05399); var v24e76 =vbf216.Item(v05399,v20399); var v4d864; if (v24e76 !=null) { if (v44931.IsAllDayEvent()) v4d864 =v24e76.AllDayEventViews; else v4d864 =v24e76.EventViews;   if (v4d864 !=null) ws25a70.mddc17(ve2390,v4d864,vc3319);  } }  var v3e634 =wseda43.m7f957(ve2390,v2f318,v05399); var v48453 =vbf216.Item(v05399,v3e634); var v05e19; if (v48453 !=null) { if (v44931.IsAllDayEvent()) v05e19 =v48453.AllDayEventViews; else v05e19 =v48453.EventViews;  }  if (v05e19 !=null) v30f27 =ws25a70.mddc17(ve2390,v05e19,vc3319);  } else { v91759 =ws25a70.m74238(ve2390,vbf216.MonthView,"Month",vc3319); if (v91759 !=null) v30f27 =ws25a70.mddc17(ve2390,v91759,vc3319);  }  vbf216.QuarterView.Clear(); vbf216.YearView.Clear();   v91759 =ws25a70.m74238(ve2390,vbf216.TimelineView,"Timeline",vc3319); if (v91759 !=null) vc9a32 =ws25a70.mddc17(ve2390,v91759,vc3319);   switch(v05399) { case "Day": return ve7b22; case "Week": return ve9969; case "Month": return v30f27; case "Timeline": return vc9a32; } },  mfbc18:function(ve6445,vc4753,vc6528) { ws25a70.mf6511(ve6445,vc4753);  var va5c9 =ve6445.ViewSettings.SelectedViewMode;   var v6d329 =ve6445.DataCache;  var vb061; var v4d934; var v50557; var v51a12; var vf4750;  vf4750 =ws25a70.m74238(ve6445,v6d329.DayView,"Day",vc4753,false); collection2 =ws25a70.m74238(ve6445,v6d329.DayView,"Day",vc4753,true); if (vf4750 !=null &&collection2 !=null) vb061 =ws25a70.m20311(ve6445,vf4750,collection2,vc4753); vf4750 =ws25a70.m74238(ve6445,v6d329.WeekView,"Week",vc4753,false); collection2 =ws25a70.m74238(ve6445,v6d329.WeekView,"Week",vc4753,true); if (vf4750 !=null &&collection2 !=null) { v4d934 =ws25a70.m20311(ve6445,vf4750,collection2,vc4753); ws25a70.RefreshWorkWeekData =true; }  if (ve6445.ViewSettings.SelectedWeekViewMode =="WorkWeek") { var vebb26 =ws25a70.mc3773(ve6445,v6d329.WeekView,"Week",vc4753); if (vc4753.IsAllDayEvent()) { if (vebb26 !=null) { vf4750 =vebb26.WorkWeekAllDayEventViews; if (vf4750 !=null) { v4d934 =ws25a70.m20311(ve6445,null,vf4750,vc4753); ws25a70.RefreshWorkWeekData =true; } } } }  if (va5c9 =="Month") { var v8f253 =vc4753.GetOriginalObject();  var v6bd55 =vc4753.GetStartTime(); var v97b94 =ve6445.ViewSettings.SelectedYear; var vc1f94 =ve6445.ViewSettings.SelectedMonth;   var v7a829 =new Date(v97b94,vc1f94,1); var v9b079 =ws31176.ma9a23(v7a829,ve6445); var v6b465 =ws99232.mf8b50(v9b079,42);  var v12054 =ws99232.mf8b50(v9b079,-35); var v9e426 =ws99232.mf8b50(v12054,42);  var v99673 =ws99232.m00d95(v7a829,1); var vf4697 =ws31176.ma9a23(v99673,ve6445); var v5c73 =ws99232.mf8b50(vf4697,42);  var vd0a62 =new Date(v6bd55.getFullYear(),v6bd55.getMonth(),v6bd55.getDate());  var v03d30 =null; if (v12054 <=vd0a62 &&vd0a62 <=v9e426) v03d30 =ws99232.m00d95(v7a829,-1); else if (vf4697 <=vd0a62 &&vd0a62 <v5c73) v03d30 =v99673;  if (v03d30 !=null) { var v46f60 =wseda43.m7f957(ve6445,v03d30,va5c9); var vd0660 =v6d329.Item(va5c9,v46f60); var v94443; if (vd0660 !=null) { ws25a70.m20311(ve6445,vd0660.EventViews,vd0660.AllDayEventViews,vc4753);  } }  var v44b47 =wseda43.m7f957(ve6445,v7a829,va5c9); var v60459 =v6d329.Item(va5c9,v44b47); var va0375; if (v60459 !=null) { ws25a70.m20311(ve6445,v60459.EventViews,v60459.AllDayEventViews,vc4753);  } } else { vf4750 =ws25a70.m74238(ve6445,v6d329.MonthView,"Month",vc4753,false); collection2 =ws25a70.m74238(ve6445,v6d329.MonthView,"Month",vc4753,true); if (vf4750 !=null &&collection2 !=null) ws25a70.m20311(ve6445,vf4750,collection2,vc4753);  }  v6d329.QuarterView.Clear(); v6d329.YearView.Clear();  if (vc6528 !=true) v6d329.AgendaView.Clear();   vf4750 =ws25a70.m74238(ve6445,v6d329.TimelineView,"Timeline",vc4753,false); collection2 =ws25a70.m74238(ve6445,v6d329.TimelineView,"Timeline",vc4753,true); if (vf4750 !=null &&collection2 !=null) v51a12 =ws25a70.m20311(ve6445,vf4750,collection2,vc4753);   switch(va5c9) { case "Day": return vb061; case "Week": return v4d934; case "Month": return v50557; case "Timeline": return v51a12; } },  m2ec52:function(v06555,vf3866) { var v6160 =v06555.ViewSettings.SelectedViewMode;   var v78532 =v06555.DataCache;  var vabd13; var v25838; var vbb988; var v94a83; var vce052;  vce052 =ws25a70.m74238(v06555,v78532.DayView,"Day",vf3866); if (vce052 !=null) vabd13 =ws25a70.m91693(v06555,vce052,vf3866); vce052 =ws25a70.m74238(v06555,v78532.WeekView,"Week",vf3866); if (vce052 !=null) { v25838 =ws25a70.m91693(v06555,vce052,vf3866); ws25a70.RefreshWorkWeekData =true; }  if (v06555.ViewSettings.SelectedWeekViewMode =="WorkWeek") { var vbe639 =ws25a70.mc3773(v06555,v78532.WeekView,"Week",vf3866); if (vf3866.IsAllDayEvent()) { if (vbe639 !=null) { vce052 =vbe639.WorkWeekAllDayEventViews; if (vce052 !=null) { v25838 =ws25a70.m91693(v06555,vce052,vf3866); ws25a70.RefreshWorkWeekData =false; } } } }  if (v6160 =="Month") { var vfb893 =vf3866.GetOriginalObject();  var v1dd83 =vf3866.GetStartTime(); var vb7b22 =v06555.ViewSettings.SelectedYear; var v44c71 =v06555.ViewSettings.SelectedMonth;   var v6e58 =new Date(vb7b22,v44c71,1); var v1cf89 =ws31176.ma9a23(v6e58,v06555); var vbb414 =ws99232.mf8b50(v1cf89,42);  var vc9574 =ws99232.mf8b50(v1cf89,-35); var vfbc89 =ws99232.mf8b50(vc9574,42);  var v3a423 =ws99232.m00d95(v6e58,1); var v32112 =ws31176.ma9a23(v3a423,v06555); var v77323 =ws99232.mf8b50(v32112,42);  var v49045 =new Date(v1dd83.getFullYear(),v1dd83.getMonth(),v1dd83.getDate());   var v0b930 =null; if (vc9574 <=v49045 &&v49045 <=vfbc89) v0b930 =ws99232.m00d95(v6e58,-1); else if (v32112 <=v49045 &&v49045 <v77323) v0b930 =v3a423;  if (v0b930 !=null) { var vab798 =wseda43.m7f957(v06555,v0b930,v6160); var va1e60 =v78532.Item(v6160,vab798); var v00b18; if (va1e60 !=null) { if (vfb893.IsAllDayEvent()) v00b18 =va1e60.AllDayEventViews; else v00b18 =va1e60.EventViews;   if (v00b18 !=null) ws25a70.m91693(v06555,v00b18,vf3866);  } }  var va6267 =wseda43.m7f957(v06555,v6e58,v6160); var v4a00 =v78532.Item(v6160,va6267); var v4b710; if (v4a00 !=null) { if (vfb893.IsAllDayEvent()) v4b710 =v4a00.AllDayEventViews; else v4b710 =v4a00.EventViews;  }  if (v4b710 !=null) vbb988 =ws25a70.m91693(v06555,v4b710,vf3866);  } else { vce052 =ws25a70.m74238(v06555,v78532.MonthView,"Month",vf3866); if (vce052 !=null) vbb988 =ws25a70.m91693(v06555,vce052,vf3866);  }  v78532.QuarterView.Clear(); v78532.YearView.Clear(); v78532.AgendaView.Clear();   vce052 =ws25a70.m74238(v06555,v78532.TimelineView,"Timeline",vf3866); if (vce052 !=null) v94a83 =ws25a70.m91693(v06555,vce052,vf3866);   switch(v6160) { case "Day": return vabd13; case "Week": return v25838; case "Month": return vbb988; case "Timeline": return v94a83; } },  mddc17:function(v46c2,vb7d94,va7095) { var v7ac75 =false; var vb5d76 =va7095.GetStartTime();  var v6c573 =va7095.GetDuration();  for (var vaf663 =0 ; vaf663 <vb7d94.length ; vaf663++) { var v27496 =vb7d94[vaf663]; var vab365 =v27496.GetStartTime(); var ve5726 =v27496.GetDuration();  var vfd74 =((vb5d76 <vab365)||(vb5d76 ==vab365 &&v6c573 >ve5726)); if (vfd74) { vb7d94.InsertAt(va7095,vaf663); v7ac75 =true; break; } }  if (!v7ac75) vb7d94.Add(va7095);   va7095.Parent =v46c2;  return vb7d94.IndexOf(va7095); },  m20311:function(vf1661,v09922,vc9896,v66134) { var v9155 =v66134.GetOriginalObject();  var v2e143 =ws25a70.mae350(v9155); var v03d11 =ws25a70.mae350(v9155,v9155.OriginalValue.AllDayEvent,v9155.OriginalValue.StartTime,v9155.OriginalValue.EndTime);  var v5bc31 =v66134.GetOriginalObject().ExceptionInfo;  if (v03d11) ws25a70.m91693(vf1661,vc9896,v66134);  else ws25a70.m91693(vf1661,v09922,v66134);  if (v5bc31 !="Deleted") { if (v2e143) return ws25a70.mddc17(vf1661,vc9896,v66134);  else return ws25a70.mddc17(vf1661,v09922,v66134); } },  m91693:function(v2af16,v29b1,ve1381) { if (v29b1 !=null) { var vf2132 =v29b1.IndexOf(ve1381); if (vf2132 <0) vf2132 =ws25a70.mc6335(v2af16,v29b1,ve1381);  if (vf2132 >=0) v29b1.RemoveAt(vf2132); } },  OverviewCollection_Delete: function(v35f63,v5b829,v5fe70) { var vfe252 =v5fe70.GetStartTime().getFullYear(); var v2a571 =v5fe70.GetStartTime().getMonth()+1; var vdd00 =v5fe70.GetStartTime().getDate();  var v53c79; var v08e6 =false; for (var vae92 =0 ; vae92 <v5b829.length ; vae92++) { var v82156 =v5b829[vae92]; if (v82156.Year ==vfe252 &&v82156.Month ==v2a571 &&v82156.Day ==vdd00) { v82156.TotalEvent--; if (v82156.TotalEvent ==1) { var v1cf94 =ws25a70.m8b424(v35f63.AllDayEventViews); if (v1cf94 ==null) v1cf94 =ws25a70.m8b424(v35f63.EventViews);  v82156.Description =v1cf94; } else if (v82156.TotalEvent ==0) { v53c79 =vae92; v08e6 =true; break; } else { v82156.Description =v82156.TotalEvent +" event(s)"; }  } }  if (v08e6) v5b829.RemoveAt(v53c79); },  m8b424:function(va3738,v22c18,v90022,vf4850) { for (var v9aa82 =0 ; v9aa82 <va3738.length ; v9aa82++) { var v01739 =va3738[v9aa82]; var vcfc37 =v01739.GetStartTime().getFullYear(); var vb8747 =v01739.GetStartTime().getMonth(); var va1950 =v01739.GetStartTime().getDate();   if (vcfc37 ==v22c18 &&vb8747 ==v90022 &&va1950 ==vf4850) { return v01739.GetOriginalObject.Subject; } }  return null; },  mc6335:function(v17413,vfd66,v01174) { var v57f93 =v01174.GetOriginalObject();  for (var v5e997 =0 ; v5e997 <vfd66.length ; v5e997++) { var v25d7 =vfd66[v5e997]; var ve6a53 =v25d7.GetOriginalObject();  if (ve6a53.EventID ==v57f93.EventID ||(ve6a53.EventID ==v57f93.ParentID &&ws99232.me0b15(ve6a53.GetStartTime(),v57f93.OriginalValue.StartTime,"DateTime"))) return v5e997;  }  return -1; },  m88929:function(veb837,v42172,vdd831) { var v09468 =veb837[v42172];  var v9e085 =new ISArray(); var veff60 =v09468.Parent;  if (veff60.IsInSplitViewMode) { var v66b18 =v09468.GetOriginalObject();  for (var v70d15 =0; v70d15 <veb837.length; v70d15++) { var v9ae56 =veb837[v70d15]; var v06d63 =v9ae56.GetOriginalObject();  if (v66b18.ResourceID ==v06d63.ResourceID) { v9e085.Add(v9ae56);  if (v66b18.EventID ==v06d63.EventID) v42172 =v9e085.length -1; } }  veb837 =v9e085; }  v09468 =veb837[v42172]; var v86094 =v09468.GetStartTime(); var v0110 =v09468.GetEndTime();  var vc2682 =new SearchOverlappingBlock(); vc2682.StartTime =v86094; vc2682.EndTime =v0110;  if (vdd831) vc2682.AffectedEvents.Add(v09468);  var v6e348 =false;  var v5dc53 =-1;  for (var v70d15 =v42172 -1; v70d15 >=0 ; v70d15--) { var v79b56 =veb837[v70d15]; var v5e652 =v79b56.GetStartTime(); var v07654 =v79b56.GetEndTime();  if (vc2682.StartTime >=v5e652 &&vc2682.StartTime <=v07654) { if (v5e652 <vc2682.StartTime) vc2682.StartTime =v5e652;  if (v07654 >vc2682.EndTime) vc2682.EndTime =v07654;  if (wsc1b46.mc3834(veff60,v79b56.GetOriginalObject().ResourceID)) { if (vc2682.AffectedEvents.IndexOf(v79b56)<0) vc2682.AffectedEvents.InsertAt(v79b56,0); }  if (v6e348) { for (var v0e846 =v5dc53; v0e846 >=v70d15; v0e846--) { var v79b56 =veb837[v0e846];  if (vc2682.AffectedEvents.IndexOf(v79b56)<0 &&wsc1b46.mc3834(veff60,v79b56.GetOriginalObject().ResourceID)) vc2682.AffectedEvents.InsertAt(v79b56,0);  }  v6e348 =false; v5dc53 =-1; } } else  { v6e348 =true;  if (v5dc53 ==-1) v5dc53 =v70d15;  } }  for (var v70d15 =v42172 +1 ; v70d15 <veb837.length ; v70d15++) { var v79b56 =veb837[v70d15]; var v5e652 =v79b56.GetStartTime(); var v07654 =v79b56.GetEndTime();  if (v5e652 >=vc2682.StartTime &&v5e652 <=vc2682.EndTime) { if (wsc1b46.mc3834(veff60,v79b56.GetOriginalObject().ResourceID)) { if (v5e652 <vc2682.StartTime) vc2682.StartTime =v5e652;  if (v07654 >vc2682.EndTime) vc2682.EndTime =v07654;  if (vc2682.AffectedEvents.IndexOf(v79b56)<0) vc2682.AffectedEvents.Add(v79b56); } } else  break; }  return vc2682; },  m2b029:function(v4f657) { var vf4573 =v4f657.split('.'); return vf4573[vf4573.length -1]; },  mc6b87:function(vaf368) { var vdd793 =new WebSchedulerEventView();  if (vaf368.ExtendedEventTypeName !="") vdd793.OriginalObject =eval("new " +ws25a70.m2b029(vaf368.ExtendedEventTypeName)+"()");  var v19951 =vdd793.OriginalObject;  v19951.Parent =vdd793; vdd793.Parent =vaf368;  vdd793.RecurrenceType ="None";  return vdd793; },  mf411:function(v3cc14) { var v9c623 =v3cc14.split("|"); var v36719 =1900; var va7053 =0; var v72b80 =1; var vf2224 =0; var v22129 =0; var v10448 =0;  if (v9c623.length >0) v72b80 =v9c623[0];  if (v9c623.length >1) va7053 =v9c623[1] -1;  if (v9c623.length >2) v36719 =v9c623[2];  if (v9c623.length >3) vf2224 =v9c623[3];  if (v9c623.length >4) v22129 =v9c623[4];  if (v9c623.length >5) v10448 =v9c623[5];  return new Date(v36719,va7053,v72b80,vf2224,v22129,v10448);  },  m9af73:function(v4a114,v96c68,ve3557) { if (typeof(v4a114[v96c68])!="object") v4a114[v96c68] =ws25a70.mf411(v4a114[ve3557]);  return v4a114[v96c68];  },  mdb395:function(v08317) { if (v08317.IsRecurringEvent()) return v08317.OriginalRecurringObject;  return v08317.OriginalObject; },  m1dc22:function(vea228) { var vf4f53 =vea228.GetOriginalObject();  var v99f87 =vea228.GetStartTime(); var vc0b91 =vea228.GetEndTime();  var va8348 =null;  if (vf4f53.IsAllDayEvent()) { var v00e67 =new Date(v99f87.getFullYear(),v99f87.getMonth(),v99f87.getDate()); var v3dc53 =new Date(vc0b91.getFullYear(),vc0b91.getMonth(),vc0b91.getDate()); va8348 =ws25a70.m66837(v00e67,v3dc53)/24 /60 /60 /1000;  va8348 =va8348 +1; } else { va8348 =Math.abs(ws25a70.m66837(v99f87,vc0b91)); va8348 =parseInt(va8348); }  vea228.Duration =va8348;  return va8348; },  m66837:function(vab764,v9a145) { return v9a145 -vab764; },  m55a93:function(v6fa84) { var v72148 =v6fa84.ViewSettings.SelectedViewMode;  switch (v72148) { case "Day": return v6fa84.GetDayContent(); case "Week": return v6fa84.GetWeekContent(); }  return null; },  m40021:function(v4995,v07d71) { var v9be20 =ws25a70.LastObjectContext; var vc9e24 =v4995.SelectedDateArea;  var vcc146; var v02a58; var v01633;  if (vc9e24 !=null) { var v80e75 =v4995.LastInsertedEventObject.Parent;  if (v4995.IsInSplitViewMode) { var v44566 =-1;  if (v80e75._IsUsingEditingForm) { v44566 =v4995.EditingForm.Resources.Value;  v80e75._IsUsingEditingForm =false; } else { if (v4995.CallOut !=null) v44566 =ws9b468.m47988(v4995).value; else v44566 =v80e75.GetOriginalObject().ResourceID; }  vcc146 =v4995.ResourcesIndex[v44566];  return vcc146; } else { var v80e75 =v4995.LastInsertedEventObject.Parent; var vcc146 =ws25a70.m76898(v4995,v80e75);  } } else  { if (v4995.LastInsertedEventObject !=null &&v4995.LastDeletedEventObject ==null){ var v80e75 =v4995.LastInsertedEventObject.Parent; var vcc146 =ws25a70.m76898(v4995,v80e75); } else { var v80e75 =null;  if (v9be20 !=null) v80e75 =v9be20.Event; else v80e75 =v4995.SelectedEvent;  var vaf157 =v4995.ViewSettings.SelectedViewMode;  if (v80e75.GetElement()!=null) { v01633 =v80e75.GetElement().parentElement.parentElement; v02a58 =v01633.parentElement;   if (vaf157 =="Day" &&!v4995.IsInSplitViewMode) vcc146 =v01633.cellIndex; else { var vf7272 =0;  if (v9be20 !=null &&v07d71) vf7272 =ws98641.m40c71(v4995,v9be20,false);   vcc146 =v01633.cellIndex +vf7272;  }  if (v80e75._IsUsingEditingForm) { if (v4995.ViewSettings.SelectedViewMode =="Week") { var v8280 =ws99232.m1a656(v80e75.StartTime); var va2b87 =new Date(v8280[2],v8280[1],v8280[0]); v8280 =ws99232.m1a656(v80e75.OriginalValue.StartTime); var vd4c19 =new Date(v8280[2],v8280[1],v8280[0]);  var v37537 =(va2b87 -vd4c19)/1000 /3600 /24; vcc146 =vcc146 +v37537; } v80e75._IsUsingEditingForm =false; } } } }  if (v02a58 !=null) { if (v02a58.rowIndex %2 ==0) return vcc146; else return vcc146 +1; }  return vcc146; },  m76898:function(ve0e0,v72769){ var v39e25 =1; var v14081 =v72769.StartTime; var v74436 =ve0e0.ViewSettings.SelectedViewMode;  if (v74436 =="Week") { var v97391 =ws99232.m1a656(v14081); v97391 =new Date(v97391[2],v97391[1],v97391[0]);  var vd1598 =ws99232.m1a656(ve0e0.GetStartDateOfWeek(v97391)); vd1598 =new Date(vd1598[2],vd1598[1],vd1598[0]);  var v53c15 =(v97391.getTime()-vd1598.getTime())/1000 /60 /60 /24;  v39e25 =v53c15 +1; }  var ve8462 =v14081.getMinutes(); if (ve8462 >30) v39e25 -=1;  if (v72769._IsUsingEditingForm) v72769._IsUsingEditingForm =false;  return v39e25; },  m67c50:function(v3cc19) { if (v3cc19.RecurrenceType =="None") return false;  return true; },  mae350:function(v63d39,v1b188,v4f422,ve5f79) { if (v63d39._Type =="WebSchedulerEventView") v63d39 =v63d39.GetOriginalObject();  if (typeof(v4f422)=="undefined") v4f422 =v63d39.GetStartTime();  if (typeof(ve5f79)=="undefined") ve5f79 =v63d39.GetEndTime();  if (typeof(v1b188)=="undefined") v1b188 =v63d39.AllDayEvent;  if (!v1b188) { var v77819 =new Date(v4f422.getFullYear(),v4f422.getMonth(),v4f422.getDate()); var v71379 =new Date(ve5f79.getFullYear(),ve5f79.getMonth(),ve5f79.getDate()); var v04655 =ws25a70.m66837(v77819,v71379)/24 /60 /60 /1000;  if (v04655 >0) return true; else return false;  } return true;  },  mb4421:function(v24960) { var vf9430 =v24960.Parent;  var v2fd37 =v24960.GetOriginalObject(); var v7b725;  if (v2fd37.IsAllDayEvent()) v7b725 =vf9430.AllDayEventViews; else v7b725 =vf9430.EventViews;  var vf9724 =v24960.GetStartTime(); var v38c63 =v24960.GetEndTime();  var vd9355 =v7b725.IndexOf(v24960); var vbec57 =false;  for (var v35718 =vd9355 -1 ; v35718 >=0 ; v35718--) { var vcb655 =v7b725[v35718]; var v98b0 =vcb655.GetStartTime(); var vf655 =vcb655.GetEndTime();  if (vf9724 >=v98b0 &&vf9724 <=vf655) { vbec57 =true; break;  } }  if (!vbec57) { for (var v35718 =vd9355 +1 ; v35718 <v7b725.length ; v35718++) { var vcb655 =v7b725[v35718]; var v98b0 =vcb655.GetStartTime(); var vf655 =vcb655.GetEndTime();  if (v98b0 >=vf9724 &&v98b0 <=v38c63) { vbec57 =true; break;  } } }  return vbec57; },  md0093:function(v58b16) { var v7a696 =v58b16.ViewSettings.SelectedViewMode;  switch (v7a696) { case "Day": case "Week": var v04b74 =v58b16.SelectedDateArea; if (v04b74.tagName !="DIV") return true;  }  return false; },  m08461:function(vf2671,v16c63,v64c33,vb3998) { var v1ab16 =vf2671.ViewSettings.SelectedViewMode;  for (var vf5d84 =0 ; vf5d84 <v64c33.length ; vf5d84++) { var v18c48 =v64c33[vf5d84];  var v56795 =v18c48.GetOriginalObject();  if (v18c48.RecurrenceType !="None" &&v56795.RecurrenceID ==vb3998.RecurrenceID) { if (v1ab16 =="Month" ||v1ab16 =="Agenda") v16c63.Add(v18c48);  else if (v1ab16 =="Timeline") v16c63.Add(v56795);  } } }}