text: ﻿/*
  DayPilot Pro
  Copyright (c) 2005 - 2015 Annpoint s.r.o.
  http://www.daypilot.org/
  Use of this software is subject to license terms.
  Version: 1925
  */
  if(typeof DayPilot==='undefined'){var DayPilot={};};if(typeof DayPilot.Global==='undefined'){DayPilot.Global={};};(function(){if(typeof DayPilot.$!=='undefined'){return;};DayPilot.$=function(id){return document.getElementById(id);};DayPilot.isKhtml=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("KHTML")!==-1);DayPilot.isIE=(navigator&&navigator.userAgent&&(navigator.userAgent.indexOf("MSIE")!==-1||navigator.userAgent.indexOf("Trident")!==-1));DayPilot.isIEQuirks=DayPilot.isIE&&(document.compatMode&&document.compatMode==="BackCompat");DayPilot.browser={};DayPilot.browser.ie8=(function(){var $a=document.createElement("div");$a.innerHTML="<!--[if IE 8]><i></i><![endif]-->";var $b=($a.getElementsByTagName("i").length===1);return $b;})();DayPilot.browser.ie9=(function(){var $a=document.createElement("div");$a.innerHTML="<!--[if IE 9]><i></i><![endif]-->";var $b=($a.getElementsByTagName("i").length===1);return $b;})();DayPilot.browser.ielt9=(function(){var $a=document.createElement("div");$a.innerHTML="<!--[if lt IE 9]><i></i><![endif]-->";var $b=($a.getElementsByTagName("i").length===1);return $b;})();DayPilot.libs={};DayPilot.libs.angularjs=typeof $c==="object";DayPilot.touch={};DayPilot.touch.start=window.navigator.msPointerEnabled?"MSPointerDown":"touchstart";DayPilot.touch.move=window.navigator.msPointerEnabled?"MSPointerMove":"touchmove";DayPilot.touch.end=window.navigator.msPointerEnabled?"MSPointerUp":"touchend";DayPilot.mo2=function($d,ev){ev=ev||window.event;if(typeof(ev.offsetX)!=='undefined'){var $e={x:ev.offsetX+1,y:ev.offsetY+1};if(!$d){return $e;};var $f=ev.srcElement;while($f&&$f!==$d){if($f.tagName!=='SPAN'){$e.x+=$f.offsetLeft;if($f.offsetTop>0){$e.y+=$f.offsetTop-$f.scrollTop;}};$f=$f.offsetParent;};if($f){return $e;};return null;};if(typeof(ev.layerX)!=='undefined'){var $e={x:ev.layerX,y:ev.layerY,$g:ev.target};if(!$d){return $e;};var $f=ev.target;while($f&&$f.style.position!=='absolute'&&$f.style.position!=='relative'){$f=$f.parentNode;if(DayPilot.isKhtml){$e.y+=$f.scrollTop;}}while($f&&$f!==$d){$e.x+=$f.offsetLeft;$e.y+=$f.offsetTop-$f.scrollTop;$f=$f.offsetParent;};if($f){return $e;};return null;};return null;};DayPilot.mo3=function($d,ev){ev=ev||window.event;var $h=DayPilot.page(ev);if($h){var $i=DayPilot.abs($d);return{x:$h.x-$i.x,y:$h.y-$i.y};};return DayPilot.mo2($d,ev);};DayPilot.mc=function(ev){if(ev.pageX||ev.pageY){return{x:ev.pageX,y:ev.pageY};};return{x:ev.clientX+document.documentElement.scrollLeft,y:ev.clientY+document.documentElement.scrollTop};};DayPilot.Stats={};DayPilot.Stats.eventObjects=0;DayPilot.Stats.dateObjects=0;DayPilot.Stats.cacheHitsCtor=0;DayPilot.Stats.cacheHitsParsing=0;DayPilot.Stats.cacheHitsTicks=0;DayPilot.Stats.print=function(){console.log("DayPilot.Stats.eventObjects: "+DayPilot.Stats.eventObjects);console.log("DayPilot.Stats.dateObjects: "+DayPilot.Stats.dateObjects);console.log("DayPilot.Stats.cacheHitsCtor: "+DayPilot.Stats.cacheHitsCtor);console.log("DayPilot.Stats.cacheHitsParsing: "+DayPilot.Stats.cacheHitsParsing);console.log("DayPilot.Stats.cacheHitsTicks: "+DayPilot.Stats.cacheHitsTicks);console.log("DayPilot.Date.Cache.Ctor keys: "+Object.keys(DayPilot.Date.Cache.Ctor).length);console.log("DayPilot.Date.Cache.Parsing keys: "+Object.keys(DayPilot.Date.Cache.Parsing).length);};DayPilot.list=function($j,$k){if($j&&$j.isDayPilotList&&!$k){return $j;};var $l=[];$l.isDayPilotList=true;$l.clone=function(){var $b=DayPilot.list();$l.each(function($m){$b.push($m);});return $b;};$l.each=function(f){if(!f){return;};if($l.forEach){$l.forEach(f);return;};for(var i=0;i<this.length;i++){f($l[i],i,$l);}};$l.addProps=function($n){var $b=$l.clone();if($n){for(var name in $n){$b[name]=$n[name];}};return $b;};$l.last=function(){if($l.length===0){return null;};return $l[$l.length-1];};$l.add=function($m){var $b=$l.clone();$b.push($m);return $b;};$l.map=function(f){if(typeof f!=="function"){throw "DayPilot.list().map(f): Function expected";};var $b=DayPilot.list();$l.each(function($m){$b.push(f($m));});return $b;};$l.filter=function(f){var $b=DayPilot.list();if(typeof f!=="function"){throw "DayPilot.list().filter(f): Function expected";};$l.each(function($m){if(f($m)){$b.push($m);}});return $b;};$l.concat=function($o){var $b=$l.clone();DayPilot.list($o).each(function($m){$b.push($m);});return $b;};if(!$l.find){$l.find=function(f){if(typeof f!=="function"){throw "DayPilot.list().find(f): Function expected";};for(var i=0;i<this.length;i++){if(f($l[i])){return $l[i];};};return undefined;}};if(!$l.some){$l.some=function(f){if(typeof f!=="function"){throw "DayPilot.list().some(f): Function expected";};for(var i=0;i<this.length;i++){if(f($l[i])){return true;};};return false;}};if(!$l.reduce){$l.reduce=function(f,$p){if(typeof f!=="function"){throw "DayPilot.list().reduce(f): Function expected";};var $b;var $q=0;if(typeof $p!=='undefined'){$b=$p;}else{$q=1;if($l.length===0){throw "DayPilot.list().reduce(f): No initial value and empty list";};$b=$l[0];};for(var i=$q;i<this.length;i++){$b=f($b,$l[i],i,this);};return $b;};};$l.isEmpty=function(){return $l.length===0;};if(DayPilot.isArray($j)||Object.prototype.toString.call($j)==="[object NodeList]"){for(var i=0;i<$j.length;i++){$l.push($j[i]);}}else if(!DayPilot.Util.isNullOrUndefined($j)){$l.push($j);};return $l;};DayPilot.line=function(x1,y1,x2,y2,$r){var $s={x:x1,y:y1};var $d={x:x2,y:y2,"deg":DayPilot.deg(x1,y1,x2,y2)};if(y1<y2){var $t=y1;y1=y2;y2=$t;$t=x1;x1=x2;x2=$t;};var $u=DayPilot.deg(x1,y1,x2,y2);var $v=(function(){var a=Math.abs(x1-x2);var b=Math.abs(y1-y2);return Math.sqrt(a*a+b*b);})();var x=(function(){var a=Math.abs(x1-x2);var b=Math.abs(y1-y2);var sx=(x1+x2)/2;var sy=(y1+y2)/2;var $v=Math.sqrt(a*a+b*b);return sx-$v/2;})();var y=(function(){return(y1+y2)/2;})();var $a=document.createElement("div");$a.setAttribute('style','border:1px solid black;width:'+$v+'px;height:0px;-moz-transform:rotate('+$u+'deg);-webkit-transform:rotate('+$u+'deg);-ms-transform:rotate('+$u+'deg);transform:rotate('+$u+'deg);position:absolute;top:'+y+'px;left:'+x+'px;');var $w=document.createElement("div");$w.appendChild($a);if($r){var $v=6;var top=$d.y-$v;var $x=$d.x-$v;;var $u=$u;if($d.y>$s.y){$u-=180;};var a=document.createElement("div");a.style.borderColor="transparent black transparent transparent";a.style.borderWidth=$v+"px";a.style.borderStyle="solid";a.style.position="absolute";a.style.left=$x+"px";a.style.top=top+"px";a.style.transform="rotate("+$u+"deg)";$w.appendChild(a);};return $w;};DayPilot.deg=function(x1,y1,x2,y2){var a=Math.abs(x1-x2);var b=Math.abs(y1-y2);var c;var sx=(x1+x2)/2;var sy=(y1+y2)/2;var $v=Math.sqrt(a*a+b*b);var x=sx-$v/2;var y=sy;a=$v/2;c=Math.abs(sx-x);b=Math.sqrt(Math.abs(x1-x)*Math.abs(x1-x)+Math.abs(y1-y)*Math.abs(y1-y));var $y=(b*b-a*a-c*c)/(2*a*c);var $z=Math.acos($y);var $u=($z*180)/Math.PI;return $u;};DayPilot.complete=function(f){if(document.readyState==="complete"){f();return;};if(!DayPilot.complete.list){DayPilot.complete.list=[];DayPilot.re(document,"readystatechange",function(){if(document.readyState==="complete"){for(var i=0;i<DayPilot.complete.list.length;i++){var d=DayPilot.complete.list[i];d();};DayPilot.complete.list=[];}});};DayPilot.complete.list.push(f);};DayPilot.page=function(ev){ev=ev||window.event;if(typeof ev.pageX!=='undefined'){return{x:ev.pageX,y:ev.pageY};};if(typeof ev.clientX!=='undefined'){return{x:ev.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,y:ev.clientY+document.body.scrollTop+document.documentElement.scrollTop};};return null;};DayPilot.abs=function(element,$A){if(!element){return null;};var r={x:element.offsetLeft,y:element.offsetTop,w:element.clientWidth,h:element.clientHeight,toString:function(){return "x:"+this.x+" y:"+this.y+" w:"+this.w+" h:"+this.h;}};if(element.getBoundingClientRect){var b=null;try{b=element.getBoundingClientRect();}catch(e){b={top:element.offsetTop,$x:element.offsetLeft};};r.x=b.left;r.y=b.top;var d=DayPilot.doc();r.x-=d.clientLeft||0;r.y-=d.clientTop||0;var $B=DayPilot.pageOffset();r.x+=$B.x;r.y+=$B.y;if($A){var $C=DayPilot.absOffsetBased(element,false);var $A=DayPilot.absOffsetBased(element,true);r.x+=$A.x-$C.x;r.y+=$A.y-$C.y;r.w=$A.w;r.h=$A.h;};return r;}else{return DayPilot.absOffsetBased(element,$A);}};DayPilot.isArray=function(o){return Object.prototype.toString.call(o)==='[object Array]';};DayPilot.absOffsetBased=function(element,$A){var r={x:element.offsetLeft,y:element.offsetTop,w:element.clientWidth,h:element.clientHeight,toString:function(){return "x:"+this.x+" y:"+this.y+" w:"+this.w+" h:"+this.h;}};while(DayPilot.op(element)){element=DayPilot.op(element);r.x-=element.scrollLeft;r.y-=element.scrollTop;if($A){if(r.x<0){r.w+=r.x;r.x=0;};if(r.y<0){r.h+=r.y;r.y=0;};if(element.scrollLeft>0&&r.x+r.w>element.clientWidth){r.w-=r.x+r.w-element.clientWidth;};if(element.scrollTop&&r.y+r.h>element.clientHeight){r.h-=r.y+r.h-element.clientHeight;}};r.x+=element.offsetLeft;r.y+=element.offsetTop;};var $B=DayPilot.pageOffset();r.x+=$B.x;r.y+=$B.y;return r;};DayPilot.wd=function(){var $D=DayPilot.isIEQuirks;var $E=document.documentElement.clientHeight;if($D){$E=document.body.clientHeight;};var $F=document.documentElement.clientWidth;if($D){$F=document.body.clientWidth;};var $G=(document.documentElement&&document.documentElement.scrollTop)||document.body.scrollTop;var $H=(document.documentElement&&document.documentElement.scrollLeft)||document.body.scrollLeft;var $b={};$b.width=$F;$b.height=$E;$b.scrollTop=$G;$b.scrollLeft=$H;return $b;};DayPilot.op=function(element){try{return element.offsetParent;}catch(e){return document.body;}};DayPilot.distance=function($I,$J){return Math.sqrt(Math.pow($I.x-$J.x,2)+Math.pow($I.y-$J.y,2));};DayPilot.doc=function(){var de=document.documentElement;return(de&&de.clientHeight)?de:document.body;};DayPilot.pageOffset=function(){if(typeof pageXOffset!=='undefined'){return{x:pageXOffset,y:pageYOffset};};var d=DayPilot.doc();return{x:d.scrollLeft,y:d.scrollTop};};DayPilot.ac=function(e,$K){if(!$K){var $K=[];};for(var i=0;e.children&&i<e.children.length;i++){$K.push(e.children[i]);DayPilot.ac(e.children[i],$K);};return $K;};DayPilot.indexOf=function($j,$L,$M){if(!$j||!$j.length){return -1;};for(var i=0;i<$j.length;i++){if($M){if($M($j[i],$L)){return i;}}else if($j[i]===$L){return i;}};return -1;};DayPilot.contains=function($j,$L){if(!$j){return false;};if($j===$L&&!DayPilot.isArray($j)){return true;};return DayPilot.indexOf($j,$L)!==-1;};DayPilot.rfa=function($j,$L){var i=DayPilot.indexOf($j,$L);if(i===-1){return;};$j.splice(i,1);};DayPilot.sheet=function(){var style=document.createElement("style");style.setAttribute("type","text/css");if(!style.styleSheet){style.appendChild(document.createTextNode(""));};var h=document.head||document.getElementsByTagName('head')[0];h.appendChild(style);var $N=!!style.styleSheet;var $O={};$O.rules=[];$O.commit=function(){try{if($N){style.styleSheet.cssText=this.rules.join("\n");}}catch(e){}};$O.add=function($P,$Q,$R){if($N){this.rules.push($P+"{"+$Q+"\u007d");return;};if(style.sheet.insertRule){style.sheet.insertRule($P+"{"+$Q+"\u007d",$R);}else if(style.sheet.addRule){style.sheet.addRule($P,$Q,$R);}else{throw "No CSS registration method found";}};return $O;};DayPilot.Debug=function($S){var debug=this;this.printToBrowserConsole=false;this.messages=[];this.$33=null;this.clear=function(){this.messages=[];if(debug.$33){debug.$33.innerHTML='';}};this.hide=function(){DayPilot.de(debug.$33);debug.$33=null;};this.show=function(){if(debug.$33){debug.hide();};var $T=$S.nav.top;var $a=document.createElement("div");$a.style.position="absolute";$a.style.top="0px";$a.style.bottom="0px";$a.style.left="0px";$a.style.right="0px";$a.style.backgroundColor="black";$a.style.color="#ccc";$a.style.overflow="auto";$a.style.webkitUserSelect='auto';$a.style.MozUserSelect='all';$a.onclick=function(){debug.hide();};for(var i=0;i<this.messages.length;i++){var $U=debug.messages[i];var $V=$U.$34();$a.appendChild($V);};this.$33=$a;$T.appendChild($a);};this.message=function($W,$X){var $U={};$U.time=new DayPilot.Date();$U.level=$X||"debug";$U.text=$W;$U.$34=function(){var $V=document.createElement("div");$V.innerHTML=$U.time+" ("+$U.level+"): "+$U.text;switch($U.level){case "error":$V.style.color="red";break;case "warning":$V.style.color="orange";break;case "info":$V.style.color="white";break;case "debug":break;};return $V;};this.messages.push($U);if(this.printToBrowserConsole&&typeof console!=='undefined'){console.log($U);}};};DayPilot.re=function(el,ev,$Y){if(!$Y){return;};if(el.addEventListener){el.addEventListener(ev,$Y,false);}else if(el.attachEvent){var f=function(ev){$Y.call(el,ev);};el.attachEvent("on"+ev,f);}};DayPilot.ue=function(el,ev,$Y){if(el.removeEventListener){el.removeEventListener(ev,$Y,false);}else if(el.detachEvent){el.detachEvent("on"+ev,$Y);}};DayPilot.tr=function($Z){if(!$Z)return '';return $Z.replace(/^\s+|\s+$/g,"");};DayPilot.ds=function(d){return DayPilot.Date.toStringSortable(d);};DayPilot.gs=function(el,$00){var x=el;if(x.currentStyle)var y=x.currentStyle[$00];else if(window.getComputedStyle)var y=document.defaultView.getComputedStyle(x,null).getPropertyValue($00);if(typeof(y)==='undefined')y='';return y;};DayPilot.StyleReader=function(element){function capitalizeFirstLetter($01){return $01.charAt(0).toUpperCase()+$01.slice(1);};this.get=function($02){var $03=DayPilot.list($02.split("-"));var $04=$03.reduce(function($05,$f,i){$f=capitalizeFirstLetter($f);return $05+$f;});if(!element){return null;};return DayPilot.gs(element,$04)||DayPilot.gs(element,$02);}};DayPilot.he=function(str){var $b=str.replace(/&/g,"&amp;");$b=$b.replace(/</g,"&lt;");$b=$b.replace(/>/g,"&gt;");$b=$b.replace(/"/g,"&quot;");return $b;};DayPilot.us=function(element){if(element){element.setAttribute("unselectable","on");element.style.userSelect='none';element.style.MozUserSelect='none';element.style.KhtmlUserSelect='none';element.style.webkitUserSelect='none';for(var i=0;i<element.childNodes.length;i++){if(element.childNodes[i].nodeType===1){DayPilot.us(element.childNodes[i]);}}}};DayPilot.pu=function(d){var a=d.attributes,i,l,n;if(a){l=a.length;for(i=0;i<l;i+=1){if(!a[i]){continue;};n=a[i].name;if(typeof d[n]==='function'){d[n]=null;}}};a=d.childNodes;if(a){l=a.length;for(i=0;i<l;i+=1){var $K=DayPilot.pu(d.childNodes[i]);}}};DayPilot.puc=function(d){var a=d.childNodes,i,l;if(a){var l=a.length;for(i=0;i<l;i+=1){DayPilot.pu(d.childNodes[i]);}}};DayPilot.de=function(e){if(!e){return;};if(DayPilot.isArray(e)){for(var i=0;i<e.length;i++){DayPilot.de(e[i]);};return;};e.parentNode&&e.parentNode.removeChild(e);};DayPilot.fade=function(element,$06,end){if(!element){return;};clearTimeout(element.messageTimeout);var $07=50;var $A=element.style.display!=='none';var $08=$06>0;var $09=$06<0;if($06===0){return;};if($08){element.status="in";}else if($09){element.status="out";};if($08&&!$A){element.target=parseFloat(element.style.opacity);element.opacity=0;element.style.opacity=0;element.style.filter="alpha(opacity=0)";element.style.display='';}else if($09&&!element.target){element.target=element.style.opacity;}else{var $f=element.opacity;var $0a=Math.floor(10*($f+$06))/10;if($08&&$0a>element.target){$0a=element.target;};if($09&&$0a<0){$0a=0;};var ie=$0a*100;element.opacity=$0a;element.style.opacity=$0a;element.style.filter="alpha(opacity="+ie+")";};if(($08&&(element.opacity>=element.target||element.opacity>=1))||($09&&element.opacity<=0)){element.target=null;if($09){element.style.opacity=element.target;element.opacity=element.target;var $0b=element.target?"alpha(opacity="+(element.target*100)+")":null;element.style.filter=$0b;element.style.display='none';};if(end&&typeof end==='function'){element.status=null;end();}}else{element.messageTimeout=setTimeout(function(){DayPilot.fade(element,$06,end);},$07);}};DayPilot.sw=function(element){if(!element){return 0;};return element.offsetWidth-element.clientWidth;};DayPilot.swa=function(){var $a=document.createElement("div");$a.style.position="absolute";$a.style.top="-2000px";$a.style.left="-2000px";$a.style.width='200px';$a.style.height='100px';$a.style.overflow='auto';var $0c=document.createElement("div");$0c.style.width='300px';$0c.style.height='300px';$a.appendChild($0c);document.body.appendChild($a);var sw=DayPilot.sw($a);document.body.removeChild($a);return sw;};DayPilot.sh=function(element){if(!element){return 0;};return element.offsetHeight-element.clientHeight;};DayPilot.guid=function(){var S4=function(){return(((1+Math.random())*0x10000)|0).toString(16).substring(1);};return(""+S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4());};DayPilot.ua=function($j){if(typeof $j==="string"||typeof $j==="number"){return[$j];};var u={},a=[];for(var i=0,l=$j.length;i<l;++i){if($j[i]in u){continue;};a.push($j[i]);u[$j[i]]=1;};return a;};DayPilot.am=function(){if(typeof angular==="undefined"){return null;};if(!DayPilot.am.cached){DayPilot.am.cached=angular.module("daypilot",[]);};return DayPilot.am.cached;};(function(){DayPilot.pop=wave;function wave($a,$0d){var $d={w:$a.offsetWidth,h:$a.offsetHeight,x:parseInt($a.style.left),y:parseInt($a.style.top)};$d.height=$a.style.height;$d.width=$a.style.width;$d.top=$a.style.top;$d.left=$a.style.left;$d.toString=function(){return "w: "+this.w+" h:"+this.h;};var $0e={};$0e.finished=null;$0e.vertical='center';$0e.horizontal='center';if($0d){for(var name in $0d){$0e[name]=$0d[name];}};$a.style.visibility='hidden';$a.style.display='';var $0f=$0d.animation||"fast";var $0g=createPlan($0f);$0g.div=$a;$0g.i=0;$0g.target=$d;$0g.config=$0e;doStep($0g);};function createPlan($0h){var $0i=function(){var $0g=[];$0g.time=10;var $0j;var $06=0.08;$0j=0.1;for(var i=$0j;i<1.2;i+=$06){$0g.push(i);$0j=i;};$06=0.03;for(var i=$0j;i>0.8;i-=$06){$0g.push(i);$0j=i;};for(var i=$0j;i<=1;i+=$06){$0g.push(i);$0j=i;};return $0g;};var $0k=function(){var $0g=[];$0g.time=10;var $0j;var $06=0.04;$0j=0.1;for(var i=$0j;i<=1;i+=$06){$0g.push(i);$0j=i;};return $0g;};var $0l=function(){var $0g=[];$0g.time=10;var $0j;var $06=0.08;$0j=0.1;for(var i=$0j;i<=1;i+=$06){$0g.push(i);$0j=i;};return $0g;};var $0m={"fast":$0l,"slow":$0k,"jump":$0i};if(!$0m[$0h]){$0h="fast";};return $0m[$0h]();};function doStep($0g){var $a=$0g.div;var $0n=$0g[$0g.i];var $0o=$0n*$0g.target.h;var top;switch($0g.config.vertical){case "center":top=$0g.target.y-($0o-$0g.target.h)/2;break;case "top":top=$0g.target.y;break;case "bottom":top=$0g.target.y-($0o-$0g.target.h);break;default:throw "Unexpected 'vertical' value.";};var $v=$0n*$0g.target.w;var $x;switch($0g.config.horizontal){case "left":$x=$0g.target.x;break;case "center":$x=$0g.target.x-($v-$0g.target.w)/2;break;case "right":$x=$0g.target.x-($v-$0g.target.w);break;default:throw "Unexpected 'horizontal' value.";};var wd=DayPilot.wd();var $0p=(wd.height+wd.scrollTop)-(top+$0o);if($0p<0){top+=$0p;};var $0q=(wd.width)-($x+$v);if($0q<0){$x+=$0q;};$a.style.height=$0o+"px";$a.style.top=top+"px";$a.style.width=$v+"px";$a.style.left=$x+"px";$a.style.visibility='visible';$0g.i++;if($0g.i<$0g.length-1){setTimeout((function($0g){return function(){doStep($0g);};})($0g),$0g.time);}else{$a.style.width=$0g.target.width;$a.style.height=$0g.target.height;$a.style.top=$0g.target.top;$a.style.left=$0g.target.left;if(typeof $0g.config.finished==='function'){$0g.config.finished();}}}})();DayPilot.Util={};DayPilot.Util.addClass=function($L,name){if(!name){return;};if(!$L){return;};if(DayPilot.isArray($L)){for(var i=0;i<$L.length;i++){DayPilot.Util.addClass($L[i],name);};return;};if(!$L.className){$L.className=name;return;};var $0r=new RegExp("(^|\\s)"+name+"($|\\s)");if(!$0r.test($L.className)){$L.className=$L.className+' '+name;}};DayPilot.Util.addClassToString=function(str,name){if(!str){return name;};var $0r=new RegExp("(^|\\s)"+name+"($|\\s)");if(!$0r.test(str)){return str+' '+name;}else{return str;}};DayPilot.Util.removeClassFromString=function(str,name){if(!str){return "";};var $0r=new RegExp("(^|\\s)"+name+"($|\\s)");return str.replace($0r,' ').replace(/^\s\s*/,'').replace(/\s\s*$/,'');};DayPilot.Util.removeClass=function($L,name){if(!$L){return;};if(DayPilot.isArray($L)){for(var i=0;i<$L.length;i++){DayPilot.Util.removeClass($L[i],name);};return;};var $0r=new RegExp("(^|\\s)"+name+"($|\\s)");$L.className=$L.className.replace($0r,' ').replace(/^\s\s*/,'').replace(/\s\s*$/,'');};DayPilot.Util.props=function(o){var t=[];for(var a in o){t.push(a);t.push(o[a]);};return t.join("-");};DayPilot.Util.propArray=function($0s,name){var $b=[];if(!$0s||!$0s.length){return $b;};for(var i=0;i<$0s.length;i++){$b.push($0s[i][name]);};return $b;};DayPilot.Util.updatePropsFromArray=function($0s,name,$j){for(var i=0;i<$j.length;i++){$0s[i][name]=$j[i];}};DayPilot.Util.copyProps=function($s,$d,$0s){if(!$s){return;};if(typeof $0s==='undefined'){for(var name in $s){if(typeof $s[name]!=='undefined'){$d[name]=$s[name];}}}else{for(var i=0;i<$0s.length;i++){var name=$0s[i];if(typeof $s[name]!=='undefined'){$d[name]=$s[name];}}}};DayPilot.Util.firstPropValue=function($L){for(var name in $L){return $L[name];}};DayPilot.Util.createArrayCopy=function($s,$0t){if(!DayPilot.isArray($s)){return[];};var $l=[];for(var i=0;i<$s.length;i++){var $m={};DayPilot.Util.copyProps($s[i],$m,$0t);$l.push($m);};return $l;};DayPilot.Util.avg=function(a,b){return(a+b)/2;};DayPilot.Util.div=function(parent,$x,top,$v,$0o){var $a=document.createElement("div");if($x||top||$v||$0o){if($v<0){$x+=$v;$v*=-1;};if($0o<0){top+=$0o;$0o*=-1;};$a.style.position="absolute";if(typeof $x==="number"){$a.style.left=$x+"px";};if(typeof top==="number"){$a.style.top=top+"px";};if(typeof $v==="number"){$a.style.width=$v+"px";};if(typeof $0o==="number"){$a.style.height=$0o+"px";}};if(parent){parent.appendChild($a);};return $a;};DayPilot.Util.overlaps=function($0u,$0v,$0w,$0x){return !($0v<=$0w||$0u>=$0x);};DayPilot.Util.isMouseEvent=function(ev){if(!navigator.msPointerEnabled){return false;};if(!ev.pointerType){return false;};if(ev.pointerType==="mouse"){return true;};if(ev.pointerType===4){return true;};return false;};DayPilot.Util.mouseButton=function(ev){var $b={};ev=ev||window.event;if(typeof ev.which==='undefined'){switch(ev.button){case 1:$b.left=true;break;case 4:$b.middle=true;break;case 2:$b.right=true;break;case 0:$b.unknown=true;break;}}else{switch(ev.which){case 1:$b.left=true;break;case 2:$b.middle=true;break;case 3:$b.right=true;break;}};return $b;};DayPilot.Util.membersPlain=function($0y){var $0z=DayPilot.Util.members($0y,2);var $0A=function($j){for(var i=0;i<$j.length;i++){var $m=$j[i];var name=$m.name;if($m.obsolete){name+=" (obsolete)";};if($m.noCssOnly){name+=" (!cssOnly)";};if($m.aspnet){name+=" (ASP.NET)";};if($m.mvc){name+="(MVC)";};$j[i]=name;}};$0A($0z.events);$0A($0z.methods);$0A($0z.properties);return $0z;};DayPilot.Util.members=function($0y,$0B){var $0C=DayPilot.list();var $0D=DayPilot.list();var $0E=DayPilot.list();var $0F=($0y&&$0y.members)?$0y.members.obsolete:[];var $0G=($0y&&$0y.members)?$0y.members.noCssOnly:[];var $0H=($0y&&$0y.members)?$0y.members.ignore:[];var $0I=($0y&&$0y.members&&$0y.members.ignoreFilter)?$0y.members.ignoreFilter:function(){return false;};for(var name in $0y){if(name.indexOf("$")===0){continue;};if(name.indexOf("_")===0){continue;};if(name.indexOf("number")===0){continue;};if(name.indexOf("is")===0){continue;};if(name==="v"){continue;};if(DayPilot.contains($0H,name)){continue;};if($0I(name)){continue;};if(name.indexOf("on")===0){$0C.push(name);continue;};if(typeof $0y[name]==='function'){$0D.push(name);continue;};if(typeof $0y[name]==='object'){var o=$0y[name];if($0B===0){$0E.push(name);continue;};if(o&&o.nodeType>0){$0E.push(name);continue;};if(o instanceof DayPilot.Bubble){$0E.push(name);continue;};if(o instanceof DayPilot.Date){$0E.push(name);continue;};if(o instanceof DayPilot.Menu){$0E.push(name);continue;};if(o instanceof DayPilot.Scheduler){$0E.push(name);continue;};if(DayPilot.isArray(o)){$0E.push(name);continue;};if(o===null){$0E.push(name);};var ml=null;if(typeof $0B==="number"){ml=$0B-1;};var $0z=DayPilot.Util.members(o,ml);for(var i=0;i<$0z.events.length;i++){$0C.push(name+"."+$0z.events[i].name);};for(var i=0;i<$0z.methods.length;i++){$0D.push(name+"."+$0z.methods[i].name);};for(var i=0;i<$0z.properties.length;i++){$0E.push(name+"."+$0z.properties[i].name);};continue;};$0E.push(name);};$0C.sort();$0D.sort();$0E.sort();var $0A=function($j){for(var i=0;i<$j.length;i++){var name=$j[i];var $m={};$m.name=name;$j[i]=$m;if(DayPilot.contains($0F,name)){$m.obsolete=true;};if(DayPilot.contains($0G,name)){$m.noCssOnly=true;};if(name.indexOf("CallBack")!==-1){$m.aspnet=true;$m.mvc=true;};if(name.indexOf("PostBack")!==-1){$m.aspnet=true;};if(name.indexOf("Notify")!==-1){$m.aspnet=true;$m.mvc=true;}}};$0A($0C);$0A($0D);$0A($0E);return{"events":$0C,"methods":$0D,"properties":$0E};};DayPilot.Util.replaceCharAt=function(str,$R,$0J){return str.substr(0,$R)+$0J+str.substr($R+$0J.length);};DayPilot.Util.evalVariable=function(str,$0K){$0K=$0K||['object'];if(str===null||typeof str==='undefined'){return null;};if(DayPilot.indexOf($0K,typeof str)!==-1){return str;};if(typeof str!=="string"){throw "Unable to resolve a variable name (not a string).";};if(!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(str)){throw "Invalid variable name: "+str;};return eval(str);};DayPilot.Util.evalFunction=function(str){if(str===null){return null;};if(typeof str==="function"){return str;};if(typeof str!=="string"){throw "Unable to resolve a function (not a string).";};if(!/^\(?function/.test(str)){throw "Invalid function string";};return eval("("+str+")");};DayPilot.Util.parseJSON=function(str){if(JSON&&JSON.parse){return JSON.parse(str);}else{return DayPilot.JSON.parse(str);}};DayPilot.Util.isNullOrUndefined=function($0L){return $0L===null||typeof $0L==="undefined";};DayPilot.Util.log=function($0M){window.console&&window.console.log&&window.console.log($0M);};DayPilot.Util.adiff=function(a,b,f){var $b={};$b.add=[];$b.remove=[];return $b;};DayPilot.Areas={};DayPilot.Areas.attach=function($a,e,$0d){var $0d=$0d||{};var $0N=$0d.areas;var $0K=$0d.allowed||function(){return true;};var $0O=$0d.offsetX||0;DayPilot.re($a,"mousemove",function(ev){if(!$a.active&&!$a.areasDisabled&&$0K()){DayPilot.Areas.showAreas($a,e,ev,$0N,{"offsetX":$0O});}});DayPilot.re($a,"mouseout",function(ev){DayPilot.Areas.hideAreas($a,ev);});$0N=$0P(e,$0N);DayPilot.list($0N).each(function($0Q){var v=$0Q.v||"Visible";if(v!=="Visible"){return;};var a=DayPilot.Areas.createArea($a,e,$0Q,{"offsetX":$0O});$a.appendChild(a);});};DayPilot.Areas.disable=function($a){$a.areasDisabled=true;DayPilot.list($a.childNodes).filter(function($m){return $m.isActiveArea&&!$m.area.start;}).each(function($m){$m.style.display="none";});};DayPilot.Areas.enable=function($a){$a.areasDisabled=false;DayPilot.list($a.childNodes).filter(function($m){return $m.isActiveArea&&!$m.area.start;}).each(function($m){$m.style.display="";});};var $0P=function(e,$0N){if(!DayPilot.isArray($0N)){$0N=e.areas;if(!$0N){if(e.cache){$0N=e.cache.areas;}else if(e.data){$0N=e.data.areas;}}};return $0N;};DayPilot.Areas.showAreas=function($a,e,ev,$0N,$0d){if(DayPilot.Global.resizing){return;};if(DayPilot.Global.moving){return;};if(DayPilot.Areas.all&&DayPilot.Areas.all.length>0){for(var i=0;i<DayPilot.Areas.all.length;i++){var d=DayPilot.Areas.all[i];if(d!==$a){DayPilot.Areas.hideAreas(d,ev);}}};if($a.active){return;};$a.active={};if(!DayPilot.isArray($0N)){$0N=e.areas;if(!$0N){if(e.cache){$0N=e.cache.areas;}else if(e.data){$0N=e.data.areas;}}};if(!$0N||$0N.length===0){return;};if($a.areas&&$a.areas.length>0){return;};$a.areas=[];for(var i=0;i<$0N.length;i++){var $0Q=$0N[i];var v=$0Q.v||"Visible";if(v!=='Hover'){continue;};var a=DayPilot.Areas.createArea($a,e,$0Q,$0d);$a.areas.push(a);$a.appendChild(a);DayPilot.Areas.all.push($a);};$a.active.children=DayPilot.ac($a);};DayPilot.Areas.createArea=function($a,e,$0Q,$0d){var $0d=$0d||{};var $0O=$0d.offsetX||0;var a=document.createElement("div");a.isActiveArea=true;a.area=$0Q;a.setAttribute("unselectable","on");var w=$0Q.w||$0Q.width;var h=$0Q.h||$0Q.height;var $0R=$0Q.cssClass||$0Q.css||$0Q.className;if(typeof $0Q.style!=="undefined"){a.setAttribute("style",$0Q.style);};a.style.position="absolute";if(typeof w!=='undefined'){a.style.width=w+"px";};if(typeof h!=='undefined'){a.style.height=h+"px";};if(typeof $0Q.right!=='undefined'){a.style.right=$0Q.right+"px";};if(typeof $0Q.top!=='undefined'){a.style.top=$0Q.top+"px";};if(typeof $0Q.left!=='undefined'){a.style.left=($0Q.left+$0O)+"px";};if(typeof $0Q.bottom!=='undefined'){a.style.bottom=$0Q.bottom+"px";};if(typeof $0Q.html!=='undefined'&&$0Q.html){a.innerHTML=$0Q.html;};if($0R){a.className=$0R;};if($0Q.backColor){a.style.background=$0Q.backColor;};if($0Q.action==="ResizeEnd"||$0Q.action==="ResizeStart"||$0Q.action==="Move"){if(e.calendar.isCalendar){switch($0Q.action){case "ResizeEnd":$0Q.cursor="s-resize";$0Q.dpBorder="bottom";break;case "ResizeStart":$0Q.cursor="n-resize";$0Q.dpBorder="top";break;case "Move":$0Q.cursor="move";break;}};if(e.calendar.isScheduler||e.calendar.isMonth){switch($0Q.action){case "ResizeEnd":$0Q.cursor="e-resize";$0Q.dpBorder="right";break;case "ResizeStart":$0Q.cursor="w-resize";$0Q.dpBorder="left";break;case "Move":$0Q.cursor="move";break;}};a.onmousemove=(function($a,e,$0Q){return function(ev){var ev=ev||window.event;$a.style.cursor=$0Q.cursor;if($0Q.dpBorder){$a.dpBorder=$0Q.dpBorder;};ev.cancelBubble=true;};})($a,e,$0Q);a.onmouseout=(function($a,e,$0Q){return function(ev){$a.style.cursor='';};})($a,e,$0Q);};if(($0Q.action==="ResizeEnd"||$0Q.action==="ResizeStart")&&e.isEvent){if(e.calendar.internal.touch){var $0S=(function($a,e,$0Q){return function(ev){ev.cancelBubble=true;var $0T=e.calendar.internal.touch;var t=ev.touches?ev.touches[0]:ev;var $e={x:t.pageX,y:t.pageY};e.calendar.coords=$0T.relativeCoords(ev);$0T.preventEventTap=true;$0T.startResizing($a,$0Q.action==="ResizeEnd"?"right":"left");};})($a,e,$0Q);DayPilot.re(a,DayPilot.touch.start,$0S);}};if($0Q.action==="ContextMenu"&&e.isEvent){if(e.calendar.internal.touch){var $0S=(function($a,e,$0Q){return function(ev){ev.cancelBubble=true;ev.preventDefault();showContextMenu(e,$0Q,ev);var $0T=e.calendar.internal.touch;$0T.preventEventTap=true;};})($a,e,$0Q);var $0U=(function($a,e,$0Q){return function(ev){ev.cancelBubble=true;ev.preventDefault();};})($a,e,$0Q);DayPilot.re(a,DayPilot.touch.start,$0S);DayPilot.re(a,DayPilot.touch.end,$0U);}};if($0Q.action==="Bubble"&&e.isEvent){if(e.calendar.internal.touch){var $0S=(function($a,e,$0Q){return function(ev){ev.cancelBubble=true;ev.preventDefault();showBubble(e,$0Q,ev);var $0T=e.calendar.internal.touch;$0T.preventEventTap=true;};})($a,e,$0Q);var $0U=(function($a,e,$0Q){return function(ev){ev.cancelBubble=true;ev.preventDefault();};})($a,e,$0Q);DayPilot.re(a,DayPilot.touch.start,$0S);DayPilot.re(a,DayPilot.touch.end,$0U);}};if($0Q.action==="Move"&&e.isEvent){if(e.calendar.internal.touch){var $0S=(function($a,e,$0Q){return function(ev){ev.cancelBubble=true;var $0T=e.calendar.internal.touch;var t=ev.touches?ev.touches[0]:ev;var $e={x:t.pageX,y:t.pageY};e.calendar.coords=$0T.relativeCoords(ev);$0T.preventEventTap=true;$0T.startMoving($a,$e);};})($a,e,$0Q);DayPilot.re(a,DayPilot.touch.start,$0S);}};if($0Q.action==="Move"&&e.isRow){if(e.calendar.internal.touch){}};if($0Q.action==="Bubble"&&e.isEvent){a.onmousemove=(function($a,e,$0Q){return function(ev){if(e.calendar.bubble){e.calendar.bubble.showEvent(e);}};})($a,e,$0Q);a.onmouseout=(function($a,e,$0Q){return function(ev){if(typeof DayPilot.Bubble!=="undefined"){if(e.calendar.bubble){e.calendar.bubble.hideOnMouseOut();}}};})($a,e,$0Q);};if($0Q.action==="HoverMenu"){a.onmousemove=(function($a,e,$0Q){return function(ev){var m=$0Q.menu;if(typeof m==='string'){m=DayPilot.Util.evalVariable(m);};if(m&&m.show){if(!m.visible){m.show(e);}else if(m.source&&typeof m.source.id!=='undefined'&&m.source.id!==e.id){m.show(e);};m.cancelHideTimeout();}};})($a,e,$0Q);a.onmouseout=(function($a,e,$0Q){return function(ev){var m=$0Q.menu;if(typeof m==='string'){m=DayPilot.Util.evalVariable(m);};if(!m){return;};if(m.hideOnMouseOver){m.delayedHide();}};})($a,e,$0Q);};a.onmousedown=(function($a,e,$0Q){return function(ev){if(typeof $0Q.onmousedown==='function'){$0Q.onmousedown(ev);};if($0Q.action==="Move"&&e.isRow){var $0V=e.$.row;var $0W=e.calendar.internal.rowtools;$0W.startMoving($0V);};var $0X=true;if($0X){if($0Q.action==="Move"||$0Q.action==="ResizeEnd"||$0Q.action==="ResizeStart"||!$0Q.action){return;};ev=ev||window.event;ev.cancelBubble=true;}};})($a,e,$0Q);a.onclick=(function($a,e,$0Q){return function(ev){var ev=ev||window.event;if(!$0Q.action){return;};switch($0Q.action){case "JavaScript":var f=$0Q.js;if(typeof f==='string'){f=DayPilot.Util.evalFunction($0Q.js);};if(typeof f==='function'){f.call(this,e);};break;case "ContextMenu":showContextMenu(e,$0Q,ev);break;break;case "CallBack":alert("callback not implemented yet, id: "+$0Q.id);break;};ev.cancelBubble=true;};})($a,e,$0Q);function showBubble(e,$0Q,ev){if(DayPilot.Bubble){DayPilot.Bubble.touchPosition(ev);};if(e.calendar.bubble){e.calendar.bubble.showEvent(e,true);}};function showContextMenu(e,$0Q,ev){if(DayPilot.Menu){DayPilot.Menu.touchPosition(ev);};var m=$0Q.menu;if(typeof m==='string'){m=DayPilot.Util.evalVariable(m);}else if(e.isEvent&&e.calendar.contextMenu){m=DayPilot.Util.evalVariable(e.calendar.contextMenu);};if(m&&m.show){m.show(e);}};return a;};DayPilot.Areas.all=[];DayPilot.Areas.hideAreas=function($a,ev){if(!$a){return;};if(!$a||!$a.active){return;};var $0Y=$a.active;var $0N=$a.areas;if($0Y&&$0Y.children){var ev=ev||window.event;if(ev){var $d=ev.toElement||ev.relatedTarget;if(~DayPilot.indexOf($0Y.children,$d)){return;}}};if(!$0N||$0N.length===0){$a.active=null;return;};DayPilot.de($0N);$a.active=null;$a.areas=[];DayPilot.rfa(DayPilot.Areas.all,$a);$0Y.children=null;};DayPilot.Areas.hideAll=function(ev){if(!DayPilot.Areas.all||DayPilot.Areas.all.length===0){return;};for(var i=0;i<DayPilot.Areas.all.length;i++){DayPilot.Areas.hideAreas(DayPilot.Areas.all[i],ev);}};DayPilot.Action=function($S,$0Z,$10,$11){var $0Z=this;this.calendar=$S;this.isAction=true;this.action=$0Z;this.params=$10;this.data=$11;this.notify=function(){$0Z.calendar.internal.invokeEvent("Immediate",this.action,this.params,this.data);};this.auto=function(){$0Z.calendar.internal.invokeEvent("Notify",this.action,this.params,this.data);};this.queue=function(){$0Z.calendar.queue.add(this);};this.toJSON=function(){var $12={};$12.name=this.action;$12.params=this.params;$12.data=this.data;return $12;};};DayPilot.Selection=function($q,end,$13,$14){this.menuType='selection';this.start=new DayPilot.Date($q);this.end=new DayPilot.Date(end);this.resource=$13;this.root=$14;this.calendar=$14;this.toJSON=function($15){var $12={};$12.start=this.start;$12.end=this.end;$12.resource=this.resource;return $12;};};DayPilot.Link=function($11,$S){this.isLink=true;this.data=$11;this.calendar=$S;this.to=function(){return this.data.to;};this.from=function(){return this.data.from;};this.type=function(){return this.data.type;};this.id=function(){return this.data.id;};this.toJSON=function(){var $12={};$12.from=this.data.from;$12.to=this.data.to;$12.id=this.data.id;$12.type=this.data.type;return $12;};};DayPilot.Args=function(){this.isArgs=true;this.preventDefault=function(){this.preventDefault.value=true;};};DayPilot.Event=function($11,$S,$16){var e=this;this.calendar=$S;this.data=$11?$11:{};this.part=$16?$16:{};if(typeof this.data.id==='undefined'){this.data.id=this.data.value;};var $17={};var $18=["id","text","start","end","resource"];this.isEvent=true;DayPilot.Stats.eventObjects+=1;this.temp=function(){if($17.dirty){return $17;};for(var i=0;i<$18.length;i++){$17[$18[i]]=e.data[$18[i]];};$17.dirty=true;return $17;};this.copy=function(){var $b={};DayPilot.Util.copyProps(e.data,$b);return $b;};this.commit=function(){if(!$17.dirty){return;};for(var i=0;i<$18.length;i++){e.data[$18[i]]=$17[$18[i]];};$17.dirty=false;};this.dirty=function(){return $17.dirty;};this.id=function($0L){if(typeof $0L==='undefined'){return e.data.id;}else{this.temp().id=$0L;}};this.value=function($0L){if(typeof $0L==='undefined'){return e.id();}else{e.id($0L);}};this.text=function($0L){if(typeof $0L==='undefined'){return e.data.text;}else{this.temp().text=$0L;this.client.innerHTML($0L);}};this.start=function($0L){if(typeof $0L==='undefined'){return new DayPilot.Date(e.data.start);}else{this.temp().start=new DayPilot.Date($0L);}};this.end=function($0L){if(typeof $0L==='undefined'){if($S&&$S.internal.adjustEndNormalize){return $S.internal.adjustEndNormalize(new DayPilot.Date(e.data.end));};return new DayPilot.Date(e.data.end);}else{this.temp().end=new DayPilot.Date($0L);}};this.rawend=function(){if(typeof $0L==='undefined'){if($S&&$S.internal.adjustEndIn){return $S.internal.adjustEndIn(new DayPilot.Date(e.data.end));};return new DayPilot.Date(e.data.end);}else{this.temp().end=new DayPilot.Date($0L);}};this.partStart=function(){return new DayPilot.Date(this.part.start);};this.partEnd=function(){return new DayPilot.Date(this.part.end);};this.row=function(){return this.resource();};this.allday=function(){if(typeof $0L==='undefined'){return e.data.allday;}else{this.temp().allday=$0L;}};this.isAllDay=this.allday;this.resource=function($0L){if(typeof $0L==='undefined'){return e.data.resource;}else{this.temp().resource=$0L;}};this.recurrent=function(){return e.data.recurrent;};this.recurrentMasterId=function(){return e.data.recurrentMasterId;};this.useBox=function(){return this.part.box;};this.staticBubbleHTML=function(){return this.bubbleHtml();};this.bubbleHtml=function(){if(e.cache){return e.cache.bubbleHtml||e.data.bubbleHtml;};return e.data.bubbleHtml;};this.tag=function($19){if(e.data.tags){return e.data.tags[$19];}else{var $1a=e.data.tag;if(!$1a){return null;};if(typeof $19==='undefined'){return e.data.tag;};var $n=e.calendar.tagFields;var $R=-1;for(var i=0;i<$n.length;i++){if($19===$n[i])$R=i;};if($R===-1){throw "Field name not found.";};return $1a[$R];}};this.client={};this.client.innerHTML=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.html!=="undefined"){return e.cache.html;};if(typeof e.data.html!=="undefined"){return e.data.html;};return e.data.text;}else{e.data.html=$0L;if(e.cache){e.cache.html=$0L;}}};this.client.html=this.client.innerHTML;this.client.header=function($0L){if(typeof $0L==='undefined'){return e.data.header;}else{e.data.header=$0L;}};this.client.cssClass=function($0L){if(typeof $0L==='undefined'){return e.data.cssClass;}else{e.data.cssClass=$0L;}};this.client.toolTip=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.toolTip!=="undefined"){return e.cache.toolTip;};return typeof e.data.toolTip!=='undefined'?e.data.toolTip:e.data.text;}else{e.data.toolTip=$0L;}};this.client.backColor=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.backColor!=="undefined"){return e.cache.backColor;};return typeof e.data.backColor!=="undefined"?e.data.backColor:e.calendar.eventBackColor;}else{e.data.backColor=$0L;}};this.client.borderColor=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.borderColor!=="undefined"){return e.cache.borderColor;};return typeof e.data.borderColor!=="undefined"?e.data.borderColor:e.calendar.eventBorderColor;}else{e.data.borderColor=$0L;}};this.client.barColor=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.barColor!=="undefined"){return e.cache.barColor;};return typeof e.data.barColor!=="undefined"?e.data.barColor:e.calendar.durationBarColor;}else{e.data.barColor=$0L;}};this.client.barVisible=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.barHidden!=="undefined"){return !e.cache.barHidden;};return e.calendar.durationBarVisible&&!e.data.barHidden;}else{e.data.barHidden=!$0L;}};this.client.contextMenu=function($0L){if(typeof $0L==='undefined'){if(e.oContextMenu){return e.oContextMenu;};var cm=e.cache?e.cache.contextMenu:e.data.contextMenu;return(cm)?DayPilot.Util.evalVariable(cm):null;}else{e.oContextMenu=$0L;}};this.client.moveEnabled=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.moveDisabled!=="undefined"){return !e.cache.moveDisabled;};return e.calendar.eventMoveHandling!=='Disabled'&&!e.data.moveDisabled;}else{e.data.moveDisabled=!$0L;}};this.client.resizeEnabled=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.resizeDisabled!=="undefined"){return !e.cache.resizeDisabled;};return e.calendar.eventResizeHandling!=='Disabled'&&!e.data.resizeDisabled;}else{e.data.resizeDisabled=!$0L;}};this.client.rightClickEnabled=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.rightClickDisabled!=="undefined"){return !e.cache.rightClickDisabled;};return e.calendar.rightClickHandling!=='Disabled'&&!e.data.rightClickDisabled;}else{e.data.rightClickDisabled=!$0L;}};this.client.clickEnabled=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.clickDisabled!=="undefined"){return !e.cache.clickDisabled;};return e.calendar.clickHandling!=='Disabled'&&!e.data.clickDisabled;}else{e.data.clickDisabled=!$0L;}};this.client.deleteEnabled=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.deleteDisabled!=="undefined"){return !e.cache.deleteDisabled;};return e.calendar.eventDeleteHandling!=='Disabled'&&!e.data.deleteDisabled;}else{e.data.deleteDisabled=!$0L;}};this.client.doubleClickEnabled=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.doubleClickDisabled!=="undefined"){return !e.cache.doubleClickDisabled;};return e.calendar.eventDoubleClickHandling!=='Disabled'&&!e.data.doubleClickDisabled;}else{e.data.doubleClickDisabled=!$0L;}};this.client.deleteClickEnabled=function($0L){if(typeof $0L==='undefined'){if(e.cache&&typeof e.cache.deleteDisabled!=="undefined"){return !e.cache.deleteDisabled;};return e.calendar.eventDeleteHandling!=='Disabled'&&!e.data.deleteDisabled;}else{e.data.deleteDisabled=!$0L;}};this.toJSON=function($15){var $12={};$12.value=this.id();$12.id=this.id();$12.text=this.text();$12.start=this.start().toJSON();$12.end=this.end().toJSON();$12.resource=this.resource();$12.isAllDay=false;$12.recurrentMasterId=this.recurrentMasterId();$12.join=this.data.join;$12.tag={};if(e.data.tags){for(var name in e.data.tags){if(e.data.tags.hasOwnProperty(name)){$12.tag[name]=""+e.data.tags[name];}}}else{if(e.calendar.tagFields){var $n=e.calendar.tagFields;for(var i=0;i<$n.length;i++){$12.tag[$n[i]]=this.tag($n[i]);}}};return $12;};};DayPilot.Task=function($11,$S){if(!$11){throw "Trying to initialize DayPilot.Task with null data parameter";};var e=this;var event=null;if($11 instanceof DayPilot.Event){event=$11;this.data=$11.data.task;}else if($11 instanceof DayPilot.Task){return $11;}else if($11.isTaskWrapper){this.data=$11.data;}else{this.data=$11;};var $17={};var $18=["id","text","start","end","complete","type"];this.isTask=true;this.calendar=$S;this.temp=function(){if($17.dirty){return $17;};for(var i=0;i<$18.length;i++){$17[$18[i]]=e.data[$18[i]];};$17.dirty=true;return $17;};this.copy=function(){var $b={};DayPilot.Util.copyProps(e.data,$b);return $b;};this.commit=function(){if(!$17.dirty){return;};for(var i=0;i<$18.length;i++){e.data[$18[i]]=$17[$18[i]];};$17.dirty=false;};this.dirty=function(){return $17.dirty;};this.id=function($0L){if(typeof $0L==='undefined'){return e.data.id;}else{this.temp().id=$0L;}};this.text=function($0L){if(typeof $0L==='undefined'){return e.data.text;}else{this.temp().text=$0L;this.client.innerHTML($0L);}};this.start=function($0L){if(typeof $0L==='undefined'){return new DayPilot.Date(e.data.start);}else{this.temp().start=new DayPilot.Date($0L);}};this.duration=function(){return new DayPilot.Duration(this.start(),this.end());};this.end=function($0L){if(typeof $0L==='undefined'){if($S&&$S.eventEndSpec==="Date"){return new DayPilot.Date(e.data.end).getDatePart().addDays(1);};return new DayPilot.Date(e.data.end);}else{this.temp().end=new DayPilot.Date($0L);}};this.type=function($0L){if(typeof $0L==='undefined'){if(event){return event.data.type;};return e.data.type;}else{this.temp().type=$0L;}};this.complete=function($0L){if(typeof $0L==='undefined'){if(!e.data.complete){return 0;};return e.data.complete;}else{this.temp().complete=$0L;}};this.children=function(){var $l=[];$l.add=function($11){var $1b=new DayPilot.Task($11);if(!this.data.children){this.data.children=[];};this.children.push($1b.data);};for(var i=0;this.data.children&&i<this.data.children.length;i++){$l.push(new DayPilot.Task(this.data.children[i],$S));};return $l;};this.toJSON=function($15){var $12={};$12.id=this.id();$12.text=this.text();$12.start=this.start().toJSON();$12.end=this.end().toJSON();$12.type=this.type();$12.tags={};DayPilot.Util.copyProps(this.data.tags,$12.tags);return $12;};this.row={};var $0V=this.row;$0V.expanded=function($0L){if(typeof $0L==='undefined'){if(!e.data.row){return true;};return !e.data.row.collapsed;}else{if(!e.data.row){e.data.row={};};if(!!e.data.row.collapsed!==!$0L){$S.internal.rowObjectForTaskData(e.data).toggle();};e.data.row.collapsed=!$0L;}};$0V.expand=function(){$0V.expanded(true);};$0V.collapse=function(){$0V.expanded(false);};$0V.toggle=function(){$0V.expanded(!$0V.expanded());};};DayPilot.request=function($1c,$1d,$1e,$1f){var $1g=DayPilot.createXmlHttp();if(!$1g){return;};$1g.open("POST",$1c,true);$1g.setRequestHeader('Content-type','text/plain');$1g.onreadystatechange=function(){if($1g.readyState!==4)return;if($1g.status!==200&&$1g.status!==304){if($1f){$1f($1g);}else{if(window.console){console.log('HTTP error '+$1g.status);}};return;};$1d($1g);};if($1g.readyState===4){return;};if(typeof $1e==='object'){$1e=DayPilot.JSON.stringify($1e);};$1g.send($1e);};DayPilot.ajax=function($L){var $1g=DayPilot.createXmlHttp();if(!$1g){return;};var $1h=$L.method||"GET";var $1i=$L.success||function(){};var $1j=$L.error||function(){};var $11=$L.data;var $1c=$L.url;$1g.open($1h,$1c,true);$1g.setRequestHeader('Content-type','text/plain');$1g.onreadystatechange=function(){if($1g.readyState!==4)return;if($1g.status!==200&&$1g.status!==304){if($1j){var $1k={};$1k.request=$1g;$1j($1k);}else{if(window.console){console.log('HTTP error '+$1g.status);}};return;};var $1k={};$1k.request=$1g;$1i($1k);};if($1g.readyState===4){return;};if(typeof $11==='object'){$11=DayPilot.JSON.stringify($11);};$1g.send($11);};DayPilot.createXmlHttp=function(){return new XMLHttpRequest();};DayPilot.Duration=function($1l){var d=this;var $1m=1000*60*60*24;var $1n=1000*60*60;var $1o=1000*60;var $1p=1000;if(arguments.length===2){var $q=arguments[0];var end=arguments[1];if(!($q instanceof DayPilot.Date)){throw "DayPilot.Duration(): Invalid start argument, DayPilot.Date expected";};if(!(end instanceof DayPilot.Date)){throw "DayPilot.Duration(): Invalid end argument, DayPilot.Date expected";};this.ticks=end.getTime()-$q.getTime();}else{this.ticks=$1l;};this.toString=function($1q){if(!$1q){return d.days()+"."+d.hours()+":"+d.minutes()+":"+d.seconds()+"."+d.milliseconds();};var $1r=d.minutes();$1r=($1r<10?"0":"")+$1r;var $b=$1q;$b=$b.replace("mm",$1r);$b=$b.replace("m",d.minutes());$b=$b.replace("H",d.hours());$b=$b.replace("h",d.hours());$b=$b.replace("d",d.days());$b=$b.replace("s",d.seconds());return $b;};this.totalHours=function(){return d.ticks/$1n;};this.totalDays=function(){return d.ticks/$1m;};this.totalHours=function(){return d.ticks/$1n;};this.totalMinutes=function(){return d.ticks/$1o;};this.totalSeconds=function(){return d.ticks/$1p;};this.days=function(){return Math.floor(d.totalDays());};this.hours=function(){var $1s=d.ticks-d.days()*$1m;return Math.floor($1s/$1n);};this.minutes=function(){var $1t=d.ticks-Math.floor(d.totalHours())*$1n;return Math.floor($1t/$1o);};this.seconds=function(){var $1u=d.ticks-Math.floor(d.totalMinutes())*$1o;return Math.floor($1u/$1p);};this.milliseconds=function(){return d.ticks%$1p;};};DayPilot.TimeSpan=function(){DayPilot.Duration.apply(this,arguments);};try{DayPilot.TimeSpan.prototype=Object.create(DayPilot.Duration.prototype);}catch(e){};DayPilot.Date=function($1v,$1w){if($1v instanceof DayPilot.Date){return $1v;};var $1l;if(DayPilot.Util.isNullOrUndefined($1v)){$1l=DayPilot.DateUtil.fromLocal().getTime();$1v=$1l;};var $1x=DayPilot.Date.Cache.Ctor;if($1x[$1v]){DayPilot.Stats.cacheHitsCtor+=1;return $1x[$1v];};var $1y=false;if(typeof $1v==="string"){$1l=DayPilot.DateUtil.fromStringSortable($1v,$1w).getTime();$1y=true;}else if(typeof $1v==="number"){if(isNaN($1v)){throw "Cannot create DayPilot.Date from NaN";};$1l=$1v;}else if($1v instanceof Date){if($1w){$1l=DayPilot.DateUtil.fromLocal($1v).getTime();}else{$1l=$1v.getTime();}}else{throw "Unrecognized parameter: use Date, number or string in ISO 8601 format";};var $1z=ticksToSortable($1l);if($1x[$1z]){return $1x[$1z];};$1x[$1z]=this;$1x[$1l]=this;if($1y&&$1z!==$1v&&DayPilot.DateUtil.hasTzSpec($1v)){$1x[$1v]=this;};if(Object.defineProperty&&!DayPilot.browser.ielt9){Object.defineProperty(this,"ticks",{get:function(){return $1l;}});Object.defineProperty(this,"value",{"value":$1z,"writable":false,"enumerable":true});}else{this.ticks=$1l;this.value=$1z;};if(DayPilot.Date.Config.legacyShowD){this.d=new Date($1l);};DayPilot.Stats.dateObjects+=1;};DayPilot.Date.Config={};DayPilot.Date.Config.legacyShowD=false;DayPilot.Date.Cache={};DayPilot.Date.Cache.Parsing={};DayPilot.Date.Cache.Ctor={};DayPilot.Date.Cache.Ticks={};DayPilot.Date.prototype.addDays=function($1A){return new DayPilot.Date(this.ticks+$1A*24*60*60*1000);};DayPilot.Date.prototype.addHours=function($1B){return this.addTime($1B*60*60*1000);};DayPilot.Date.prototype.addMilliseconds=function($1C){return this.addTime($1C);};DayPilot.Date.prototype.addMinutes=function($1r){return this.addTime($1r*60*1000);};DayPilot.Date.prototype.addMonths=function($1D){var $1v=new Date(this.ticks);if($1D===0)return this;var y=$1v.getUTCFullYear();var m=$1v.getUTCMonth()+1;if($1D>0){while($1D>=12){$1D-=12;y++;};if($1D>12-m){y++;m=$1D-(12-m);}else{m+=$1D;}}else{while($1D<=-12){$1D+=12;y--;};if(m+$1D<=0){y--;m=12+m+$1D;}else{m=m+$1D;}};var d=new Date($1v.getTime());d.setUTCDate(1);d.setUTCFullYear(y);d.setUTCMonth(m-1);var $1E=new DayPilot.Date(d).daysInMonth();d.setUTCDate(Math.min($1E,$1v.getUTCDate()));return new DayPilot.Date(d);};DayPilot.Date.prototype.addSeconds=function($1F){return this.addTime($1F*1000);};DayPilot.Date.prototype.addTime=function($1l){return new DayPilot.Date(this.ticks+$1l);};DayPilot.Date.prototype.addYears=function($1G){var $1H=new Date(this.ticks);var d=new Date(this.ticks);var y=this.getYear()+$1G;var m=this.getMonth();d.setUTCDate(1);d.setUTCFullYear(y);d.setUTCMonth(m);var $1E=new DayPilot.Date(d).daysInMonth();d.setUTCDate(Math.min($1E,$1H.getUTCDate()));return new DayPilot.Date(d);};DayPilot.Date.prototype.dayOfWeek=function(){return new Date(this.ticks).getUTCDay();};DayPilot.Date.prototype.getDayOfWeek=function(){return new Date(this.ticks).getUTCDay();};DayPilot.Date.prototype.daysInMonth=function(){var $1v=new Date(this.ticks);var $1I=$1v.getUTCMonth()+1;var $1J=$1v.getUTCFullYear();var m=[31,28,31,30,31,30,31,31,30,31,30,31];if($1I!==2)return m[$1I-1];if($1J%4!==0)return m[1];if($1J%100===0&&$1J%400!==0)return m[1];return m[1]+1;};DayPilot.Date.prototype.daysInYear=function(){var $1J=this.getYear();if($1J%4!==0){return 365;};if($1J%100===0&&$1J%400!==0){return 365;};return 366;};DayPilot.Date.prototype.dayOfYear=function(){return Math.ceil((this.getDatePart().getTime()-this.firstDayOfYear().getTime())/86400000)+1;};DayPilot.Date.prototype.equals=function($o){if($o===null){return false;};if($o instanceof DayPilot.Date){return this===$o;}else{throw "The parameter must be a DayPilot.Date object (DayPilot.Date.equals())";}};DayPilot.Date.prototype.firstDayOfMonth=function(){var d=new Date();d.setUTCFullYear(this.getYear(),this.getMonth(),1);d.setUTCHours(0);d.setUTCMinutes(0);d.setUTCSeconds(0);d.setUTCMilliseconds(0);return new DayPilot.Date(d);};DayPilot.Date.prototype.firstDayOfYear=function(){var $1J=this.getYear();var d=new Date();d.setUTCFullYear($1J,0,1);d.setUTCHours(0);d.setUTCMinutes(0);d.setUTCSeconds(0);d.setUTCMilliseconds(0);return new DayPilot.Date(d);};DayPilot.Date.prototype.firstDayOfWeek=function($1K){var d=this;var $1K=$1K||0;var $1m=d.dayOfWeek();while($1m!==$1K){d=d.addDays(-1);$1m=d.dayOfWeek();};return new DayPilot.Date(d);};DayPilot.Date.prototype.getDay=function(){return new Date(this.ticks).getUTCDate();};DayPilot.Date.prototype.getDatePart=function(){var d=new Date(this.ticks);d.setUTCHours(0);d.setUTCMinutes(0);d.setUTCSeconds(0);d.setUTCMilliseconds(0);return new DayPilot.Date(d);};DayPilot.Date.prototype.getYear=function(){return new Date(this.ticks).getUTCFullYear();};DayPilot.Date.prototype.getHours=function(){return new Date(this.ticks).getUTCHours();};DayPilot.Date.prototype.getMilliseconds=function(){return new Date(this.ticks).getUTCMilliseconds();};DayPilot.Date.prototype.getMinutes=function(){return new Date(this.ticks).getUTCMinutes();};DayPilot.Date.prototype.getMonth=function(){return new Date(this.ticks).getUTCMonth();};DayPilot.Date.prototype.getSeconds=function(){return new Date(this.ticks).getUTCSeconds();};DayPilot.Date.prototype.getTotalTicks=function(){return this.getTime();};DayPilot.Date.prototype.getTime=function(){return this.ticks;};DayPilot.Date.prototype.getTimePart=function(){var $1L=this.getDatePart();return DayPilot.DateUtil.diff(this,$1L);};DayPilot.Date.prototype.lastDayOfMonth=function(){var d=new Date(this.firstDayOfMonth().getTime());var length=this.daysInMonth();d.setUTCDate(length);return new DayPilot.Date(d);};DayPilot.Date.prototype.weekNumber=function(){var $1M=this.firstDayOfYear();var $1A=(this.getTime()-$1M.getTime())/86400000;return Math.ceil(($1A+$1M.dayOfWeek()+1)/7);};DayPilot.Date.prototype.weekNumberISO=function(){var $1N=false;var $1O=this.dayOfYear();var $1P=this.firstDayOfYear().dayOfWeek();var $1Q=this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek();if($1P===0){$1P=7;};if($1Q===0){$1Q=7;};var $1R=8-($1P);if($1P===4||$1Q===4){$1N=true;};var $1S=Math.ceil(($1O-($1R))/7.0);var $1T=$1S;if($1R>=4){$1T=$1T+1;};if($1T>52&&!$1N){$1T=1;};if($1T===0){$1T=this.firstDayOfYear().addDays(-1).weekNumberISO();};return $1T;};DayPilot.Date.prototype.toDateLocal=function(){var $1v=new Date(this.ticks);var d=new Date();d.setFullYear($1v.getUTCFullYear(),$1v.getUTCMonth(),$1v.getUTCDate());d.setHours($1v.getUTCHours());d.setMinutes($1v.getUTCMinutes());d.setSeconds($1v.getUTCSeconds());d.setMilliseconds($1v.getUTCMilliseconds());return d;};DayPilot.Date.prototype.toDate=function(){return new Date(this.ticks);};DayPilot.Date.prototype.toJSON=function(){return this.value;};DayPilot.Date.prototype.toString=function($1q,$1U){if(typeof $1q==='undefined'){return this.toStringSortable();};return new $1V($1q,$1U).print(this);};DayPilot.Date.prototype.toStringSortable=function(){return ticksToSortable(this.ticks);};function ticksToSortable($1l){var $1x=DayPilot.Date.Cache.Ticks;if($1x[$1l]){DayPilot.Stats.cacheHitsTicks+=1;return $1x[$1l];};var d=new Date($1l);var $1W;var ms=d.getUTCMilliseconds();if(ms===0){$1W="";}else if(ms<10){$1W=".00"+ms;}else if(ms<100){$1W=".0"+ms;}else{$1W="."+ms};var $1p=d.getUTCSeconds();if($1p<10)$1p="0"+$1p;var $1o=d.getUTCMinutes();if($1o<10)$1o="0"+$1o;var $1n=d.getUTCHours();if($1n<10)$1n="0"+$1n;var $1m=d.getUTCDate();if($1m<10)$1m="0"+$1m;var $1I=d.getUTCMonth()+1;if($1I<10)$1I="0"+$1I;var $1J=d.getUTCFullYear();if($1J<=0){throw "The minimum year supported is 1.";};if($1J<10){$1J="000"+$1J;}else if($1J<100){$1J="00"+$1J;}else if($1J<1000){$1J="0"+$1J;};var $b=$1J+"-"+$1I+"-"+$1m+'T'+$1n+":"+$1o+":"+$1p+$1W;$1x[$1l]=$b;return $b;};DayPilot.Date.parse=function(str,$1q,$1U){var p=new $1V($1q,$1U);return p.parse(str);};DayPilot.Date.today=function(){return new DayPilot.Date().getDatePart();};DayPilot.Date.fromYearMonthDay=function($1J,$1I,$1m){$1I=$1I||1;$1m=$1m||1;var d=new Date(0);d.setUTCFullYear($1J);d.setUTCMonth($1I-1);d.setUTCDate($1m);return new DayPilot.Date(d);};DayPilot.DateUtil={};DayPilot.DateUtil.fromStringSortable=function($01,$1w){if(!$01){throw "Can't create DayPilot.Date from an empty string";};var $1X=$01.length;var $1v=$1X===10;var $1Y=$1X===19;var long=$1X>19;if(!$1v&&!$1Y&&!long){throw "Invalid string format (use '2010-01-01' or '2010-01-01T00:00:00'): "+$01;};if(DayPilot.Date.Cache.Parsing[$01]&&!$1w){DayPilot.Stats.cacheHitsParsing+=1;return DayPilot.Date.Cache.Parsing[$01];};var $1J=$01.substring(0,4);var $1I=$01.substring(5,7);var $1m=$01.substring(8,10);var d=new Date(0);d.setUTCFullYear($1J,$1I-1,$1m);if($1v){DayPilot.Date.Cache.Parsing[$01]=d;return d;};var $1B=$01.substring(11,13);var $1r=$01.substring(14,16);var $1F=$01.substring(17,19);d.setUTCHours($1B);d.setUTCMinutes($1r);d.setUTCSeconds($1F);if($1Y){DayPilot.Date.Cache.Parsing[$01]=d;return d;};var $1Z=$01[19];var $20=0;if($1Z==="."){var ms=parseInt($01.substring(20,23));d.setUTCMilliseconds(ms);$20=DayPilot.DateUtil.getTzOffsetMinutes($01.substring(23));}else{$20=DayPilot.DateUtil.getTzOffsetMinutes($01.substring(19));};var dd=new DayPilot.Date(d);if(!$1w){dd=dd.addMinutes(-$20);};d=dd.toDate();DayPilot.Date.Cache.Parsing[$01]=d;return d;};DayPilot.DateUtil.getTzOffsetMinutes=function($01){if(DayPilot.Util.isNullOrUndefined($01)||$01===""){return 0;};if($01==="Z"){return 0;};var $1Z=$01[0];var $21=parseInt($01.substring(1,3));var $22=parseInt($01.substring(4));var $20=$21*60+$22;if($1Z==="-"){return -$20;}else if($1Z==="+"){return $20;}else{throw "Invalid timezone spec: "+$01;}};DayPilot.DateUtil.hasTzSpec=function($01){if($01.indexOf("+")){return true;};if($01.indexOf("-")){return true;};return false;};DayPilot.DateUtil.daysDiff=function($1M,$1p){($1M&&$1p)||(function(){throw "two parameters required";})();$1M=new DayPilot.Date($1M);$1p=new DayPilot.Date($1p);if($1M.getTime()>$1p.getTime()){return null;};var i=0;var $23=$1M.getDatePart();var $24=$1p.getDatePart();while($23<$24){$23=$23.addDays(1);i++;};return i;};DayPilot.DateUtil.daysSpan=function($1M,$1p){($1M&&$1p)||(function(){throw "two parameters required";})();$1M=new DayPilot.Date($1M);$1p=new DayPilot.Date($1p);if($1M===$1p){return 0;};var $25=DayPilot.DateUtil.daysDiff($1M,$1p);if($1p==$1p.getDatePart()){$25--;};return $25;};DayPilot.DateUtil.diff=function($1M,$1p){if(!($1M&&$1p&&$1M.getTime&&$1p.getTime)){throw "Both compared objects must be Date objects (DayPilot.Date.diff).";};return $1M.getTime()-$1p.getTime();};DayPilot.DateUtil.fromLocal=function($26){if(!$26){$26=new Date();};var d=new Date();d.setUTCFullYear($26.getFullYear(),$26.getMonth(),$26.getDate());d.setUTCHours($26.getHours());d.setUTCMinutes($26.getMinutes());d.setUTCSeconds($26.getSeconds());d.setUTCMilliseconds($26.getMilliseconds());return d;};DayPilot.DateUtil.hours=function($1v,$27){var $1o=$1v.getUTCMinutes();if($1o<10)$1o="0"+$1o;var $1n=$1v.getUTCHours();if($27){var am=$1n<12;var $1n=$1n%12;if($1n===0){$1n=12;};var $28=am?"AM":"PM";return $1n+':'+$1o+' '+$28;}else{return $1n+':'+$1o;}};DayPilot.DateUtil.max=function($1M,$1p){if($1M.getTime()>$1p.getTime()){return $1M;}else{return $1p;}};DayPilot.DateUtil.min=function($1M,$1p){if($1M.getTime()<$1p.getTime()){return $1M;}else{return $1p;}};var $1V=function($1q,$1U){if(typeof $1U==="string"){$1U=DayPilot.Locale.find($1U);};var $1U=$1U||DayPilot.Locale.US;var $29=[{"seq":"yyyy","expr":"[0-9]{4,4\u007d","str":function(d){return d.getYear();}},{"seq":"yy","expr":"[0-9]{2,2\u007d","str":function(d){return d.getYear()%100;}},{"seq":"mm","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getMinutes();return r<10?"0"+r:r;}},{"seq":"m","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getMinutes();return r;}},{"seq":"HH","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getHours();return r<10?"0"+r:r;}},{"seq":"H","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getHours();return r;}},{"seq":"hh","expr":"[0-9]{2,2\u007d","str":function(d){var $1n=d.getHours();var $1n=$1n%12;if($1n===0){$1n=12;};var r=$1n;return r<10?"0"+r:r;}},{"seq":"h","expr":"[0-9]{1,2\u007d","str":function(d){var $1n=d.getHours();var $1n=$1n%12;if($1n===0){$1n=12;};return $1n;}},{"seq":"tt","expr":"(AM|PM)","str":function(d){var $1n=d.getHours();var am=$1n<12;return am?"AM":"PM";}},{"seq":"ss","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getSeconds();return r<10?"0"+r:r;}},{"seq":"s","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getSeconds();return r;}},{"seq":"MMMM","expr":"[^\\s0-9]*","str":function(d){var r=$1U.monthNames[d.getMonth()];return r;},"transform":function($2a){var $R=DayPilot.indexOf($1U.monthNames,$2a,equalsIgnoreCase);if($R<0){return null;};return $R+1;}},{"seq":"MMM","expr":"[^\\s0-9]*","str":function(d){var r=$1U.monthNamesShort[d.getMonth()];return r;},"transform":function($2a){var $R=DayPilot.indexOf($1U.monthNamesShort,$2a,equalsIgnoreCase);if($R<0){return null;};return $R+1;}},{"seq":"MM","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getMonth()+1;return r<10?"0"+r:r;}},{"seq":"M","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getMonth()+1;return r;}},{"seq":"dddd","expr":"[^\\s0-9]*","str":function(d){var r=$1U.dayNames[d.getDayOfWeek()];return r;}},{"seq":"ddd","expr":"[^\\s0-9]*","str":function(d){var r=$1U.dayNamesShort[d.getDayOfWeek()];return r;}},{"seq":"dd","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getDay();return r<10?"0"+r:r;}},{"seq":"%d","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getDay();return r;}},{"seq":"d","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getDay();return r;}},];var $2b=function($W){return $W.replace(/[-[\]{};()*+?.,\\^$|#\s]/g,"\\$&");};this.init=function(){this.year=this.findSequence("yyyy");this.month=this.findSequence("MMMM")||this.findSequence("MMM")||this.findSequence("MM")||this.findSequence("M");this.day=this.findSequence("dd")||this.findSequence("d");this.hours=this.findSequence("HH")||this.findSequence("H");this.minutes=this.findSequence("mm")||this.findSequence("m");this.seconds=this.findSequence("ss")||this.findSequence("s");};this.findSequence=function($2c){function defaultTransform($1z){return parseInt($1z);};var $R=$1q.indexOf($2c);if($R===-1){return null;};return{"findValue":function($2a){var $2d=$2b($1q);var $2e=null;for(var i=0;i<$29.length;i++){var $1X=$29[i].length;var $2f=($2c===$29[i].seq);var $2g=$29[i].expr;if($2f){$2g="("+$2g+")";$2e=$29[i].transform;};$2d=$2d.replace($29[i].seq,$2g);};$2d="^"+$2d+"$";try{var r=new RegExp($2d);var $j=r.exec($2a);if(!$j){return null;};$2e=$2e||defaultTransform;return $2e($j[1]);}catch(e){throw "unable to create regex from: "+$2d;}}};};this.print=function($1v){var find=function(t){for(var i=0;i<$29.length;i++){if($29[i]&&$29[i].seq===t){return $29[i];}};return null;};var $2h=$1q.length<=0;var $2i=0;var $2j=[];while(!$2h){var $2k=$1q.substring($2i);var $2l=/%?(.)\1*/.exec($2k);if($2l&&$2l.length>0){var $2m=$2l[0];var q=find($2m);if(q){$2j.push(q);}else{$2j.push($2m);};$2i+=$2m.length;$2h=$1q.length<=$2i;}else{$2h=true;}};for(var i=0;i<$2j.length;i++){var c=$2j[i];if(typeof c!=='string'){$2j[i]=c.str($1v);}};return $2j.join("");};this.parse=function($2a){var $1J=this.year.findValue($2a);if(!$1J){return null;};var $1I=this.month.findValue($2a);if(DayPilot.Util.isNullOrUndefined($1I)){return null;};if($1I>12||$1I<1){return null;};var $1m=this.day.findValue($2a);var $2n=DayPilot.Date.fromYearMonthDay($1J,$1I).daysInMonth();if($1m<1||$1m>$2n){return null;};var $1B=this.hours?this.hours.findValue($2a):0;var $1r=this.minutes?this.minutes.findValue($2a):0;var $1F=this.seconds?this.seconds.findValue($2a):0;var d=new Date();d.setUTCFullYear($1J,$1I-1,$1m);d.setUTCHours($1B);d.setUTCMinutes($1r);d.setUTCSeconds($1F);d.setUTCMilliseconds(0);return new DayPilot.Date(d);};this.init();};function equalsIgnoreCase($2o,$2p){if(DayPilot.Util.isNullOrUndefined($2o)){return false;};if(DayPilot.Util.isNullOrUndefined($2p)){return false;};return $2o.toLocaleLowerCase()===$2p.toLocaleLowerCase();};DayPilot.Canvas=function($v,$0o){var $2q=document.createElement("canvas");$2q.width=$v;$2q.height=$0o;var $2r=$2q.getContext("2d");this.fillRect=function($2s,$2t){$2r.save();$2r.strokeStyle="rgb(0,0,0,0)";$2r.fillStyle=$2t;$2r.fillRect($2s.x+.5,$2s.y+.5,$2s.w-1,$2s.h-1);$2r.restore();};this.rect=function($2s,$2t){$2r.save();$2r.strokeStyle=$2t;$2r.beginPath();$2r.rect($2s.x+.5,$2s.y+.5,$2s.w-1,$2s.h-1);$2r.stroke();$2r.restore();};this.text=function($2s,$W,$2u,$2t,$2v,$2w){var $2v=$2v||"left";var $2w=$2w||0;$2r.save();$2r.rect($2s.x+.5+$2w,$2s.y+.5+$2w,$2s.w-1-$2w,$2s.h-1-$2w);$2r.clip();$2r.fillStyle=$2t;$2r.font=$2u;$2r.textBaseline="top";$2r.textAlign=$2v;var x=$2s.x;switch($2v){case "center":x+=$2s.w/2;break;case "right":x+=$2s.w;break;};x+=.5;$2r.fillText($W,x+$2w,$2s.y+.5+$2w);$2r.restore();};this.line=function(x1,y1,x2,y2,$2t){$2r.save();$2r.lineWidth=1;$2r.strokeStyle=$2t;$2r.beginPath();$2r.moveTo(x1+.5,y1+.5);$2r.lineTo(x2+.5,y2+.5);$2r.stroke();$2r.restore();};this.image=function($2s,$2x){$2r.save();if(typeof $2x==="string"){var $2y=$2x;var $2x=document.createElement("img");$2x.src=$2y;};$2r.drawImage($2x,$2s.x,$2s.y);$2r.restore();};this.getWidth=function(){return $2q.width;};this.getHeight=function(){return $2q.height;};this.getCanvasElement=function(){return $2q;};};DayPilot.Locale=function(id,$0e){this.id=id;this.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];this.dayNamesShort=["Su","Mo","Tu","We","Th","Fr","Sa"];this.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];this.monthNamesShort=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];this.datePattern="M/d/yyyy";this.timePattern="H:mm";this.dateTimePattern="M/d/yyyy H:mm";this.timeFormat="Clock12Hours";this.weekStarts=0;if($0e){for(var name in $0e){this[name]=$0e[name];}}};DayPilot.Locale.all={};DayPilot.Locale.find=function(id){if(!id){return null;};var $2z=id.toLowerCase();if($2z.length>2){$2z=DayPilot.Util.replaceCharAt($2z,2,'-');};return DayPilot.Locale.all[$2z];};DayPilot.Locale.register=function($1U){DayPilot.Locale.all[$1U.id]=$1U;};DayPilot.Locale.register(new DayPilot.Locale('ca-es',{'dayNames':['diumenge','dilluns','dimarts','dimecres','dijous','divendres','dissabte'],'dayNamesShort':['dg','dl','dt','dc','dj','dv','ds'],'monthNames':['gener','febrer','març','abril','maig','juny','juliol','agost','setembre','octubre','novembre','desembre',''],'monthNamesShort':['gen.','febr.','març','abr.','maig','juny','jul.','ag.','set.','oct.','nov.','des.',''],'timePattern':'H:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('cs-cz',{'dayNames':['neděle','pondělí','úterý','středa','čtvrtek','pátek','sobota'],'dayNamesShort':['ne','po','út','st','čt','pá','so'],'monthNames':['leden','únor','březen','duben','květen','červen','červenec','srpen','září','říjen','listopad','prosinec',''],'monthNamesShort':['I','II','III','IV','V','VI','VII','VIII','IX','X','XI','XII',''],'timePattern':'H:mm','datePattern':'d. M. yyyy','dateTimePattern':'d. M. yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('da-dk',{'dayNames':['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],'dayNamesShort':['sø','ma','ti','on','to','fr','lø'],'monthNames':['januar','februar','marts','april','maj','juni','juli','august','september','oktober','november','december',''],'monthNamesShort':['jan','feb','mar','apr','maj','jun','jul','aug','sep','okt','nov','dec',''],'timePattern':'HH:mm','datePattern':'dd-MM-yyyy','dateTimePattern':'dd-MM-yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('de-at',{'dayNames':['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],'dayNamesShort':['So','Mo','Di','Mi','Do','Fr','Sa'],'monthNames':['Jänner','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember',''],'monthNamesShort':['Jän','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('de-ch',{'dayNames':['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],'dayNamesShort':['So','Mo','Di','Mi','Do','Fr','Sa'],'monthNames':['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember',''],'monthNamesShort':['Jan','Feb','Mrz','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('de-de',{'dayNames':['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],'dayNamesShort':['So','Mo','Di','Mi','Do','Fr','Sa'],'monthNames':['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember',''],'monthNamesShort':['Jan','Feb','Mrz','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('de-lu',{'dayNames':['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],'dayNamesShort':['So','Mo','Di','Mi','Do','Fr','Sa'],'monthNames':['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember',''],'monthNamesShort':['Jan','Feb','Mrz','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('en-au',{'dayNames':['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],'dayNamesShort':['Su','Mo','Tu','We','Th','Fr','Sa'],'monthNames':['January','February','March','April','May','June','July','August','September','October','November','December',''],'monthNamesShort':['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',''],'timePattern':'h:mm tt','datePattern':'d/MM/yyyy','dateTimePattern':'d/MM/yyyy h:mm tt','timeFormat':'Clock12Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('en-ca',{'dayNames':['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],'dayNamesShort':['Su','Mo','Tu','We','Th','Fr','Sa'],'monthNames':['January','February','March','April','May','June','July','August','September','October','November','December',''],'monthNamesShort':['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',''],'timePattern':'h:mm tt','datePattern':'yyyy-MM-dd','dateTimePattern':'yyyy-MM-dd h:mm tt','timeFormat':'Clock12Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('en-gb',{'dayNames':['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],'dayNamesShort':['Su','Mo','Tu','We','Th','Fr','Sa'],'monthNames':['January','February','March','April','May','June','July','August','September','October','November','December',''],'monthNamesShort':['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('en-us',{'dayNames':['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],'dayNamesShort':['Su','Mo','Tu','We','Th','Fr','Sa'],'monthNames':['January','February','March','April','May','June','July','August','September','October','November','December',''],'monthNamesShort':['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',''],'timePattern':'h:mm tt','datePattern':'M/d/yyyy','dateTimePattern':'M/d/yyyy h:mm tt','timeFormat':'Clock12Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('es-es',{'dayNames':['domingo','lunes','martes','miércoles','jueves','viernes','sábado'],'dayNamesShort':['D','L','M','X','J','V','S'],'monthNames':['enero','febrero','marzo','abril','mayo','junio','julio','agosto','septiembre','octubre','noviembre','diciembre',''],'monthNamesShort':['ene.','feb.','mar.','abr.','may.','jun.','jul.','ago.','sep.','oct.','nov.','dic.',''],'timePattern':'H:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('es-mx',{'dayNames':['domingo','lunes','martes','miércoles','jueves','viernes','sábado'],'dayNamesShort':['do.','lu.','ma.','mi.','ju.','vi.','sá.'],'monthNames':['enero','febrero','marzo','abril','mayo','junio','julio','agosto','septiembre','octubre','noviembre','diciembre',''],'monthNamesShort':['ene.','feb.','mar.','abr.','may.','jun.','jul.','ago.','sep.','oct.','nov.','dic.',''],'timePattern':'hh:mm tt','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy hh:mm tt','timeFormat':'Clock12Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('eu-es',{'dayNames':['igandea','astelehena','asteartea','asteazkena','osteguna','ostirala','larunbata'],'dayNamesShort':['ig','al','as','az','og','or','lr'],'monthNames':['urtarrila','otsaila','martxoa','apirila','maiatza','ekaina','uztaila','abuztua','iraila','urria','azaroa','abendua',''],'monthNamesShort':['urt.','ots.','mar.','api.','mai.','eka.','uzt.','abu.','ira.','urr.','aza.','abe.',''],'timePattern':'H:mm','datePattern':'yyyy/MM/dd','dateTimePattern':'yyyy/MM/dd H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('fi-fi',{'dayNames':['sunnuntai','maanantai','tiistai','keskiviikko','torstai','perjantai','lauantai'],'dayNamesShort':['su','ma','ti','ke','to','pe','la'],'monthNames':['tammikuu','helmikuu','maaliskuu','huhtikuu','toukokuu','kesäkuu','heinäkuu','elokuu','syyskuu','lokakuu','marraskuu','joulukuu',''],'monthNamesShort':['tammi','helmi','maalis','huhti','touko','kesä','heinä','elo','syys','loka','marras','joulu',''],'timePattern':'H:mm','datePattern':'d.M.yyyy','dateTimePattern':'d.M.yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('fr-be',{'dayNames':['dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi'],'dayNamesShort':['di','lu','ma','me','je','ve','sa'],'monthNames':['janvier','février','mars','avril','mai','juin','juillet','août','septembre','octobre','novembre','décembre',''],'monthNamesShort':['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.',''],'timePattern':'HH:mm','datePattern':'dd-MM-yy','dateTimePattern':'dd-MM-yy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('fr-ch',{'dayNames':['dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi'],'dayNamesShort':['di','lu','ma','me','je','ve','sa'],'monthNames':['janvier','février','mars','avril','mai','juin','juillet','août','septembre','octobre','novembre','décembre',''],'monthNamesShort':['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('fr-fr',{'dayNames':['dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi'],'dayNamesShort':['di','lu','ma','me','je','ve','sa'],'monthNames':['janvier','février','mars','avril','mai','juin','juillet','août','septembre','octobre','novembre','décembre',''],'monthNamesShort':['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('fr-lu',{'dayNames':['dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi'],'dayNamesShort':['di','lu','ma','me','je','ve','sa'],'monthNames':['janvier','février','mars','avril','mai','juin','juillet','août','septembre','octobre','novembre','décembre',''],'monthNamesShort':['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('gl-es',{'dayNames':['domingo','luns','martes','mércores','xoves','venres','sábado'],'dayNamesShort':['do','lu','ma','mé','xo','ve','sá'],'monthNames':['xaneiro','febreiro','marzo','abril','maio','xuño','xullo','agosto','setembro','outubro','novembro','decembro',''],'monthNamesShort':['xan','feb','mar','abr','maio','xuño','xul','ago','set','out','nov','dec',''],'timePattern':'H:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('it-it',{'dayNames':['domenica','lunedì','martedì','mercoledì','giovedì','venerdì','sabato'],'dayNamesShort':['do','lu','ma','me','gi','ve','sa'],'monthNames':['gennaio','febbraio','marzo','aprile','maggio','giugno','luglio','agosto','settembre','ottobre','novembre','dicembre',''],'monthNamesShort':['gen','feb','mar','apr','mag','giu','lug','ago','set','ott','nov','dic',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('it-ch',{'dayNames':['domenica','lunedì','martedì','mercoledì','giovedì','venerdì','sabato'],'dayNamesShort':['do','lu','ma','me','gi','ve','sa'],'monthNames':['gennaio','febbraio','marzo','aprile','maggio','giugno','luglio','agosto','settembre','ottobre','novembre','dicembre',''],'monthNamesShort':['gen','feb','mar','apr','mag','giu','lug','ago','set','ott','nov','dic',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('ja-jp',{'dayNames':['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'],'dayNamesShort':['日','月','火','水','木','金','土'],'monthNames':['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月',''],'monthNamesShort':['1','2','3','4','5','6','7','8','9','10','11','12',''],'timePattern':'H:mm','datePattern':'yyyy/MM/dd','dateTimePattern':'yyyy/MM/dd H:mm','timeFormat':'Clock24Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('nb-no',{'dayNames':['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],'dayNamesShort':['sø','ma','ti','on','to','fr','lø'],'monthNames':['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember',''],'monthNamesShort':['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('nl-nl',{'dayNames':['zondag','maandag','dinsdag','woensdag','donderdag','vrijdag','zaterdag'],'dayNamesShort':['zo','ma','di','wo','do','vr','za'],'monthNames':['januari','februari','maart','april','mei','juni','juli','augustus','september','oktober','november','december',''],'monthNamesShort':['jan','feb','mrt','apr','mei','jun','jul','aug','sep','okt','nov','dec',''],'timePattern':'HH:mm','datePattern':'d-M-yyyy','dateTimePattern':'d-M-yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('nl-be',{'dayNames':['zondag','maandag','dinsdag','woensdag','donderdag','vrijdag','zaterdag'],'dayNamesShort':['zo','ma','di','wo','do','vr','za'],'monthNames':['januari','februari','maart','april','mei','juni','juli','augustus','september','oktober','november','december',''],'monthNamesShort':['jan','feb','mrt','apr','mei','jun','jul','aug','sep','okt','nov','dec',''],'timePattern':'H:mm','datePattern':'d/MM/yyyy','dateTimePattern':'d/MM/yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('nn-no',{'dayNames':['søndag','måndag','tysdag','onsdag','torsdag','fredag','laurdag'],'dayNamesShort':['sø','må','ty','on','to','fr','la'],'monthNames':['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember',''],'monthNamesShort':['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('pt-br',{'dayNames':['domingo','segunda-feira','terça-feira','quarta-feira','quinta-feira','sexta-feira','sábado'],'dayNamesShort':['D','S','T','Q','Q','S','S'],'monthNames':['janeiro','fevereiro','março','abril','maio','junho','julho','agosto','setembro','outubro','novembro','dezembro',''],'monthNamesShort':['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('pl-pl',{'dayNames':['niedziela','poniedziałek','wtorek','środa','czwartek','piątek','sobota'],'dayNamesShort':['N','Pn','Wt','Śr','Cz','Pt','So'],'monthNames':['styczeń','luty','marzec','kwiecień','maj','czerwiec','lipiec','sierpień','wrzesień','październik','listopad','grudzień',''],'monthNamesShort':['sty','lut','mar','kwi','maj','cze','lip','sie','wrz','paź','lis','gru',''],'timePattern':'HH:mm','datePattern':'yyyy-MM-dd','dateTimePattern':'yyyy-MM-dd HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('pt-pt',{'dayNames':['domingo','segunda-feira','terça-feira','quarta-feira','quinta-feira','sexta-feira','sábado'],'dayNamesShort':['D','S','T','Q','Q','S','S'],'monthNames':['janeiro','fevereiro','março','abril','maio','junho','julho','agosto','setembro','outubro','novembro','dezembro',''],'monthNamesShort':['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('ro-ro',{'dayNames':['duminică','luni','marți','miercuri','joi','vineri','sâmbătă'],'dayNamesShort':['D','L','Ma','Mi','J','V','S'],'monthNames':['ianuarie','februarie','martie','aprilie','mai','iunie','iulie','august','septembrie','octombrie','noiembrie','decembrie',''],'monthNamesShort':['ian.','feb.','mar.','apr.','mai.','iun.','iul.','aug.','sep.','oct.','nov.','dec.',''],'timePattern':'H:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('ru-ru',{'dayNames':['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'],'dayNamesShort':['Вс','Пн','Вт','Ср','Чт','Пт','Сб'],'monthNames':['Январь','Февраль','Март','Апрель','Май','Июнь','Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь',''],'monthNamesShort':['янв','фев','мар','апр','май','июн','июл','авг','сен','окт','ноя','дек',''],'timePattern':'H:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('sk-sk',{'dayNames':['nedeľa','pondelok','utorok','streda','štvrtok','piatok','sobota'],'dayNamesShort':['ne','po','ut','st','št','pi','so'],'monthNames':['január','február','marec','apríl','máj','jún','júl','august','september','október','november','december',''],'monthNamesShort':['1','2','3','4','5','6','7','8','9','10','11','12',''],'timePattern':'H:mm','datePattern':'d.M.yyyy','dateTimePattern':'d.M.yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('sv-se',{'dayNames':['söndag','måndag','tisdag','onsdag','torsdag','fredag','lördag'],'dayNamesShort':['sö','må','ti','on','to','fr','lö'],'monthNames':['januari','februari','mars','april','maj','juni','juli','augusti','september','oktober','november','december',''],'monthNamesShort':['jan','feb','mar','apr','maj','jun','jul','aug','sep','okt','nov','dec',''],'timePattern':'HH:mm','datePattern':'yyyy-MM-dd','dateTimePattern':'yyyy-MM-dd HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('tr-tr',{'dayNames':['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'],'dayNamesShort':['Pz','Pt','Sa','Ça','Pe','Cu','Ct'],'monthNames':['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran','Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık',''],'monthNamesShort':['Oca','Şub','Mar','Nis','May','Haz','Tem','Ağu','Eyl','Eki','Kas','Ara',''],'timePattern':'HH:mm','datePattern':'d.M.yyyy','dateTimePattern':'d.M.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('zh-cn',{'dayNames':['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],'dayNamesShort':['日','一','二','三','四','五','六'],'monthNames':['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月',''],'monthNamesShort':['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月',''],'timePattern':'H:mm','datePattern':'yyyy/M/d','dateTimePattern':'yyyy/M/d H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.US=DayPilot.Locale.find("en-us");DayPilot.Switcher=function($0d){var $2A=this;this.views=[];this.triggers=[];this.navigator={};this.selectedClass=null;this.active=null;this.day=new DayPilot.Date();this.onChange=null;this.onChanged=null;this.navigator.updateMode=function($2B){var $2C=$2A.navigator.control;if(!$2C){return;};$2C.selectMode=$2B;$2C.select($2A.day);};this.addView=function($2D,$0d){var element;if(typeof $2D==='string'){element=document.getElementById($2D);if(!element){throw "Element not found: "+$2D;}}else{element=$2D;};var $2C=element;var $2E={};$2E.isView=true;$2E.id=$2C.id;$2E.control=$2C;$2E.options=$0d||{};$2E.hide=function(){if($2C.hide){$2C.hide();}else if($2C.nav&&$2C.nav.top){$2C.nav.top.style.display='none';}else{$2C.style.display='none';}};$2E.sendNavigate=function($1v){var $2F=(function(){if($2C.backendUrl){return true;};if(typeof WebForm_DoCallback==='function'&&$2C.uniqueID){return true;};return false;})();if($2F){if($2C.commandCallBack){$2C.commandCallBack("navigate",{"day":$1v});}}else{$2C.startDate=$1v;$2C.update();}};$2E.show=function(){$2A.$35();if($2C.show){$2C.show();}else if($2C.nav&&$2C.nav.top){$2C.nav.top.style.display='';}else{$2C.style.display='';}};$2E.selectMode=function(){if($2E.options.navigatorSelectMode){return $2E.options.navigatorSelectMode;};if($2C.isCalendar){switch($2C.viewType){case "Day":return "day";case "Week":return "week";case "WorkWeek":return "week";default:return "day";}}else if($2C.isMonth){switch($2C.viewType){case "Month":return "month";case "Weeks":return "week";default:return "day";}};return "day";};this.views.push($2E);return $2E;};this.addTrigger=function(id,$2C){var element;if(typeof id==='string'){element=document.getElementById(id);if(!element){throw "Element not found: "+id;}}else{element=id;};var $2E=this.$36($2C);if(!$2E){$2E=this.addView($2C);};var $2G={};$2G.isTrigger=true;$2G.element=element;$2G.id=element.id;$2G.view=$2E;$2G.onClick=function(ev){$2A.show($2G);$2A.$37($2G);ev=ev||window.event;if(ev){ev.preventDefault?ev.preventDefault():ev.returnValue=false;}};DayPilot.re(element,'click',$2G.onClick);this.triggers.push($2G);return $2G;};this.addButton=this.addTrigger;this.select=function(id){var $2G=this.$38(id);if($2G){$2G.onClick();}else if(this.triggers.length>0){this.triggers[0].onClick();}};this.$38=function(id){for(var i=0;i<this.triggers.length;i++){var $2G=this.triggers[i];if($2G.id===id){return $2G;}};return null;};this.$37=function($2G){if(!this.selectedClass){return;};for(var i=0;i<this.triggers.length;i++){var s=this.triggers[i];DayPilot.Util.removeClass(s.element,this.selectedClass);};DayPilot.Util.addClass($2G.element,this.selectedClass);};this.addNavigator=function($2C){$2A.navigator.control=$2C;$2C.timeRangeSelectedHandling="JavaScript";$2C.onTimeRangeSelected=function(){var $q,end,$1m;if($2C.api===1){$q=arguments[0];end=arguments[1];$1m=arguments[2];}else{var $1k=arguments[0];$q=$1k.start;end=$1k.end;$1m=$1k.day;};$2A.day=$1m;navigate($q,end,$1m);};};this.show=function(el){var $2E,$2G;if(el.isTrigger){$2G=el;$2E=$2G.view;}else{$2E=el.isView?el:this.$36(el);if(this.active===$2E){return;}};if($2A.onSelect){var $1k={};$1k.source=$2G?$2G.element:null;$1k.target=$2E.control;$2A.onSelect($1k);};this.active=$2E;$2E.show();var $2B=$2E.selectMode();$2A.navigator.updateMode($2B);};this.$36=function($2C){for(var i=0;i<this.views.length;i++){if(this.views[i].control===$2C){return this.views[i];}};return null;};this.$35=function(){for(var i=0;i<this.views.length;i++){this.views[i].hide();}};this.events={};this.events.load=function($1c,$1i,$1j){if($2A.active&&$2A.active.control){$2A.active.control.events.load($1c,$1i,$1j);}else{throw "DayPilot.Switcher.events.load(): Active view not found";}};this.$39=null;this.$3a=function(){if(!$0d){return;};for(var name in $0d){if(name==="triggers"){DayPilot.list($0d.triggers).each(function($m){$2A.addTrigger($m.id,$m.view);});}else if(name==="navigator"){$2A.addNavigator($0d.navigator);}else{$2A[name]=$0d[name];}}};this.$3a();function navigate($q,end,$1m){var $1k={};$1k.start=$q;$1k.end=end;$1k.day=$1m;$1k.target=$2A.active.control;$1k.preventDefault=function(){this.preventDefault.value=true;};var $05=$2A.$39;if($05){if($05.start===$1k.start&&$05.end===$1k.end&&$05.day===$1k.day&&$05.target===$1k.target){return;}};$2A.$39=$1k;if(typeof $2A.onChange==="function"){$2A.onChange($1k);if($1k.preventDefault.value){return;}};if(typeof $2A.onTimeRangeSelect==="function"){$2A.onTimeRangeSelect($1k);if($1k.preventDefault.value){return;}};$2A.active.sendNavigate($2A.day);if(typeof $2A.onChanged==="function"){$2A.onChanged($1k);};if(typeof $2A.onTimeRangeSelected==="function"){$2A.onTimeRangeSelected($1k);}}};(function(){if(DayPilot.Global.defaultCss){return;};var $O=DayPilot.sheet();$O.add(".bubble_default_main","cursor: default;");$O.add(".bubble_default_main_inner",'border-radius: 5px;font-size: 12px;padding: 4px;color: #666;background: #eeeeee; background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");border: 1px solid #ccc;-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;-moz-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);-webkit-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);');$O.add(".calendar_default_main","border: 1px solid #999; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 12px;");$O.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after","box-sizing: content-box;");$O.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner","color: #666;background: #eee;");$O.add(".calendar_default_cornerright_inner","position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;  border-bottom: 1px solid #999;");$O.add(".calendar_default_rowheader_inner","font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #999;border-bottom: 1px solid #999;");$O.add(".calendar_default_corner_inner","position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #999;border-bottom: 1px solid #999;");$O.add(".calendar_default_rowheader_minutes","font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;");$O.add(".calendar_default_colheader_inner","text-align: center; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #999;border-bottom: 1px solid #999;");$O.add(".calendar_default_cell_inner","position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;");$O.add(".calendar_default_cell_business .calendar_default_cell_inner","background: #fff");$O.add(".calendar_default_alldayheader_inner","text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #999;border-bottom: 1px solid #999;");$O.add(".calendar_default_message","opacity: 0.9;filter: alpha(opacity=90);  padding: 10px; color: #ffffff;background: #ffa216;");$O.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner",'color: #666; border: 1px solid #999;');$O.add(".calendar_default_event_bar","top: 0px;bottom: 0px;left: 0px;width: 4px;background-color: #9dc8e8;");$O.add(".calendar_default_event_bar_inner","position: absolute;width: 4px;background-color: #1066a8;");$O.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner",'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");');$O.add(".calendar_default_selected .calendar_default_event_inner","background: #ddd;");$O.add(".calendar_default_alldayevent_inner","position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;padding: 2px;margin-right: 1px;font-size: 12px;");$O.add(".calendar_default_event_withheader .calendar_default_event_inner","padding-top: 15px;");$O.add(".calendar_default_event","cursor: default;");$O.add(".calendar_default_event_inner","position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 6px;font-size: 12px;");$O.add(".calendar_default_shadow_inner","background-color: #666666; opacity: 0.5;filter: alpha(opacity=50);height: 100%;");$O.add(".calendar_default_event_delete","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=60)'; cursor: pointer;");$O.add(".calendar_default_event_delete:hover","opacity: 1;-ms-filter: none;");$O.add(".calendar_default_scroll_up","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);");$O.add(".calendar_default_scroll_down","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);");$O.add(".calendar_default_now","background-color: red;");$O.add(".calendar_default_now:before","content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute; -moz-transform: scale(.9999);");$O.add(".menu_default_main","font-family: Tahoma, Arial, Helvetica, Sans-Serif;font-size: 12px;border: 1px solid #dddddd;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;xborder-radius: 5px;-moz-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);-webkit-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);");$O.add(".menu_default_main *, .menu_default_main *:before, .menu_default_main *:after","box-sizing: content-box;");$O.add(".menu_default_title","background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;");$O.add(".menu_default_main a","padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;");$O.add(".menu_default_main a img","margin-left: 6px;margin-top: 2px;");$O.add(".menu_default_main a span","display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px;");$O.add(".menu_default_main a:hover",'background: #eeeeee;background: -webkit-gradient(linear, left top, left bottom, from(#efefef), to(#e6e6e6));background: -webkit-linear-gradient(top, #efefef 0%, #e6e6e6);background: -moz-linear-gradient(top, #efefef 0%, #e6e6e6);background: -ms-linear-gradient(top, #efefef 0%, #e6e6e6);background: -o-linear-gradient(top, #efefef 0%, #e6e6e6);background: linear-gradient(top, #efefef 0%, #e6e6e6);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#efefef", endColorStr="#e6e6e6");');$O.add(".menu_default_main div div","border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;");$O.add(".menu_default_main a.menu_default_item_disabled","color: #ccc");$O.add(".menu_default_item_haschildren.menu_default_item_haschildren_active",'background: #eeeeee;background: -webkit-gradient(linear, left top, left bottom, from(#efefef), to(#e6e6e6));background: -webkit-linear-gradient(top, #efefef 0%, #e6e6e6);background: -moz-linear-gradient(top, #efefef 0%, #e6e6e6);background: -ms-linear-gradient(top, #efefef 0%, #e6e6e6);background: -o-linear-gradient(top, #efefef 0%, #e6e6e6);background: linear-gradient(top, #efefef 0%, #e6e6e6);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#efefef", endColorStr="#e6e6e6");');$O.add(".menu_default_item_haschildren a:before","content: ''; border-width: 6px; border-color: transparent transparent transparent black; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 4px;");$O.add(".month_default_main","border: 1px solid #aaa;font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 12px;color: #666;");$O.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after","box-sizing: content-box;");$O.add(".month_default_cell_inner","border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;");$O.add(".month_default_cell_business .month_default_cell_inner","background-color: #fff;");$O.add(".month_default_cell_header","text-align: right;padding-right: 2px;");$O.add(".month_default_header_inner",'text-align: center; vertical-align: middle;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #999;border-bottom: 1px solid #999;cursor: default;color: #666;background: #eee;');$O.add(".month_default_message",'padding: 10px;opacity: 0.9;filter: alpha(opacity=90);color: #ffffff;background: #ffa216;background: -webkit-gradient(linear, left top, left bottom, from(#ffa216), to(#ff8400));background: -webkit-linear-gradient(top, #ffa216 0%, #ff8400);background: -moz-linear-gradient(top, #ffa216 0%, #ff8400);background: -ms-linear-gradient(top, #ffa216 0%, #ff8400);background: -o-linear-gradient(top, #ffa216 0%, #ff8400);background: linear-gradient(top, #ffa216 0%, #ff8400);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffa216", endColorStr="#ff8400");');$O.add(".month_default_event_inner",'position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 5px;font-size: 12px;color: #666;background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");border: 1px solid #999;border-radius: 0px;');$O.add(".month_default_event_continueright .month_default_event_inner","border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;");$O.add(".month_default_event_continueleft .month_default_event_inner","border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;");$O.add(".month_default_event_hover .month_default_event_inner",'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#e8e8e8));background: -webkit-linear-gradient(top, #ffffff 0%, #e8e8e8);background: -moz-linear-gradient(top, #ffffff 0%, #e8e8e8);background: -ms-linear-gradient(top, #ffffff 0%, #e8e8e8);background: -o-linear-gradient(top, #ffffff 0%, #e8e8e8);background: linear-gradient(top, #ffffff 0%, #e8e8e8);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#e8e8e8");');$O.add(".month_default_selected .month_default_event_inner, .month_default_event_hover.month_default_selected .month_default_event_inner","background: #ddd;");$O.add(".month_default_shadow_inner","background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;");$O.add(".month_default_event_delete","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=60)';cursor: pointer;");$O.add(".month_default_event_delete:hover","opacity: 1;-ms-filter: none;");$O.add(".month_default_event_timeleft","color: #ccc; font-size: 8pt");$O.add(".month_default_event_timeright","color: #ccc; font-size: 8pt; text-align: right;");$O.add(".navigator_default_main","border-left: 1px solid #A0A0A0;border-right: 1px solid #A0A0A0;border-bottom: 1px solid #A0A0A0;background-color: white;color: #000000;");$O.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after","box-sizing: content-box;");$O.add(".navigator_default_month","font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px;");$O.add(".navigator_default_day","color: black;");$O.add(".navigator_default_weekend","background-color: #f0f0f0;");$O.add(".navigator_default_dayheader","color: black;");$O.add(".navigator_default_line","border-bottom: 1px solid #A0A0A0;");$O.add(".navigator_default_dayother","color: gray;");$O.add(".navigator_default_todaybox","border: 1px solid red;");$O.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright",'border-top: 1px solid #A0A0A0;color: #666;background: #eee;background: -webkit-gradient(linear, left top, left bottom, from(#eeeeee), to(#dddddd));background: -webkit-linear-gradient(top, #eeeeee 0%, #dddddd);background: -moz-linear-gradient(top, #eeeeee 0%, #dddddd);background: -ms-linear-gradient(top, #eeeeee 0%, #dddddd);background: -o-linear-gradient(top, #eeeeee 0%, #dddddd);background: linear-gradient(top, #eeeeee 0%, #dddddd);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#eeeeee", endColorStr="#dddddd");');$O.add(".navigator_default_busy","font-weight: bold;");$O.add(".navigator_default_cell","text-align: center;");$O.add(".navigator_default_select .navigator_default_cell_box","background-color: #FFE794; opacity: 0.5;");$O.add(".navigator_default_title","text-align: center;");$O.add(".navigator_default_titleleft, .navigator_default_titleright","text-align: center;");$O.add(".navigator_default_dayheader","text-align: center;");$O.add(".navigator_default_weeknumber","text-align: center;");$O.add(".scheduler_default_main *, .scheduler_default_main *:before, .scheduler_default_main *:after","box-sizing: content-box;");$O.add(".scheduler_default_main","box-sizing: content-box; border: 1px solid #aaa;font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 12px;");$O.add(".scheduler_default_selected .scheduler_default_event_inner","background: #ddd;");$O.add(".scheduler_default_timeheader","cursor: default;color: #666;");$O.add(".scheduler_default_message","opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;");$O.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol","color: #666;background: #eee;");$O.add(".scheduler_default_rowheader,.scheduler_default_corner","color: #666;background: #eee;");$O.add(".scheduler_default_rowheader.scheduler_default_rowheader_selected","background-color: #aaa;background-image: -webkit-gradient(linear, 0 100%, 100% 0,color-stop(.25, rgba(255, 255, 255, .2)), color-stop(.25, transparent),   color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .2)), color-stop(.75, rgba(255, 255, 255, .2)), color-stop(.75, transparent), to(transparent));background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -ms-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);-webkit-background-size: 20px 20px;-moz-background-size: 20px 20px;background-size: 20px 20px;");$O.add(".scheduler_default_rowheader_inner","position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;");$O.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol","text-align: center;");$O.add(".scheduler_default_timeheadergroup_inner","position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #aaa;border-bottom: 1px solid #aaa;");$O.add(".scheduler_default_timeheadercol_inner","position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #aaa;");$O.add(".scheduler_default_divider, .scheduler_default_splitter","background-color: #aaa;");$O.add(".scheduler_default_divider_horizontal","background-color: #aaa;");$O.add(".scheduler_default_matrix_vertical_line","background-color: #eee;");$O.add(".scheduler_default_matrix_vertical_break","background-color: #000;");$O.add(".scheduler_default_matrix_horizontal_line","background-color: #eee;");$O.add(".scheduler_default_resourcedivider","background-color: #aaa;");$O.add(".scheduler_default_shadow_inner","background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;");$O.add(".scheduler_default_event","font-size:12px;color:#666;");$O.add(".scheduler_default_event_inner","position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;");$O.add(".scheduler_default_event_bar","top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;");$O.add(".scheduler_default_event_bar_inner","position:absolute;height:4px;background-color:#1066a8;");$O.add(".scheduler_default_event_inner",'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");');$O.add(".scheduler_default_event_float_inner","padding:6px 2px 2px 8px;");$O.add(".scheduler_default_event_float_inner:after",'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;');$O.add(".scheduler_default_columnheader_inner","font-weight: bold;");$O.add(".scheduler_default_columnheader_splitter","background-color: #666;opacity: 0.5;filter: alpha(opacity=50);");$O.add(".scheduler_default_columnheader_cell_inner","padding: 2px;");$O.add(".scheduler_default_cell","background-color: #f9f9f9;");$O.add(".scheduler_default_cell.scheduler_default_cell_business","background-color: #fff;");$O.add(".scheduler_default_cell.scheduler_default_cell_business.scheduler_default_cell_selected,.scheduler_default_cell.scheduler_default_cell_selected","background-color: #ccc;background-image: -webkit-gradient(linear, 0 100%, 100% 0,  color-stop(.25, rgba(255, 255, 255, .2)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .2)), color-stop(.75, rgba(255, 255, 255, .2)), color-stop(.75, transparent), to(transparent));background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -ms-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);-webkit-background-size: 20px 20px;-moz-background-size: 20px 20px;background-size: 20px 20px;");$O.add(".scheduler_default_tree_image_no_children","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAIAAABv85FHAAAAKXRFWHRDcmVhdGlvbiBUaW1lAHDhIDMwIEkgMjAwOSAwODo0NjozMSArMDEwMClDkt4AAAAHdElNRQfZAR4HLzEyzsCJAAAACXBIWXMAAA7CAAAOwgEVKEqAAAAABGdBTUEAALGPC/xhBQAAADBJREFUeNpjrK6s5uTl/P75OybJ0NLW8h8bAIozgeSxAaA4E1A7VjmgOL31MeLxHwCeXUT0WkFMKAAAAABJRU5ErkJggg==);");$O.add(".scheduler_default_tree_image_expand","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAIAAABv85FHAAAAKXRFWHRDcmVhdGlvbiBUaW1lAHDhIDMwIEkgMjAwOSAwODo0NjozMSArMDEwMClDkt4AAAAHdElNRQfZAR4HLyUoFBT0AAAACXBIWXMAAA7CAAAOwgEVKEqAAAAABGdBTUEAALGPC/xhBQAAAFJJREFUeNpjrK6s5uTl/P75OybJ0NLW8h8bAIozgeRhgJGREc4GijMBtTNgA0BxFog+uA4IA2gmUJwFog/IgUhAGBB9KPYhA3T74Jog+hjx+A8A1KRQ+AN5vcwAAAAASUVORK5CYII=);");$O.add(".scheduler_default_tree_image_collapse","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAIAAABv85FHAAAAKXRFWHRDcmVhdGlvbiBUaW1lAHDhIDMwIEkgMjAwOSAwODo0NjozMSArMDEwMClDkt4AAAAHdElNRQfZAR4HLxB+p9DXAAAACXBIWXMAAA7CAAAOwgEVKEqAAAAABGdBTUEAALGPC/xhBQAAAENJREFUeNpjrK6s5uTl/P75OybJ0NLW8h8bAIozgeSxAaA4E1A7VjmgOAtEHyMjI7IE0EygOAtEH5CDqY9c+xjx+A8ANndK9WaZlP4AAAAASUVORK5CYII=);");$O.add(".scheduler_default_event_move_left",'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");');$O.add(".scheduler_default_event_move_right",'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");');$O.add(".scheduler_default_event_delete","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=60)';cursor: pointer;");$O.add(".scheduler_default_event_delete:hover","opacity: 1;-ms-filter: none;");$O.add(".scheduler_default_rowmove_handle","background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;");$O.add(".scheduler_default_rowmove_source","background-color: black; opacity: 0.2;");$O.add(".scheduler_default_rowmove_position_before, .scheduler_default_rowmove_position_after","background-color: #999; height: 2px;");$O.add(".scheduler_default_rowmove_position_child","margin-left: 10px; background-color: #999; height: 2px;");$O.add(".scheduler_default_rowmove_position_child:before","content: '+'; color: #999; position: absolute; top: -8px; left: -10px;");$O.add(".scheduler_default_rowmove_position_forbidden","background-color: red; height: 2px; margin-left: 10px;");$O.add(".scheduler_default_rowmove_position_forbidden:before","content: 'x'; color: red; position: absolute; top: -8px; left: -10px;");$O.add(".scheduler_default_link_horizontal","border-bottom-style: solid; border-bottom-color: red");$O.add(".scheduler_default_link_vertical","border-right-style: solid; border-right-color: red");$O.add(".scheduler_default_link_arrow_right:before","content: ''; border-width: 6px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute;");$O.add(".scheduler_default_link_arrow_left:before","content: ''; border-width: 6px; border-color: transparent red transparent transparent; border-style: solid; width: 0px; height:0px; position: absolute;");$O.add(".scheduler_default_link_arrow_down:before","content: ''; border-width: 6px; border-color: red transparent transparent transparent; border-style: solid; width: 0px; height:0px; position: absolute;");$O.add(".scheduler_default_link_arrow_up:before","content: ''; border-width: 6px; border-color: transparent transparent red transparent; border-style: solid; width: 0px; height:0px; position: absolute;");$O.add(".scheduler_default_shadow_overlap .scheduler_default_shadow_inner","background-color: red;");$O.add(".scheduler_default_block","background-color: gray; opacity: 0.5; filter: alpha(opacity=50);");$O.add(".scheduler_default_main .scheduler_default_event_group","box-sizing: border-box; font-size:12px; color:#666; padding:4px 2px 2px 2px; overflow:hidden; border:1px solid #ccc; background-color: #fff;");$O.add(".scheduler_default_main .scheduler_default_header_icon","box-sizing: border-box; border: 1px solid #aaa; background-color: #f5f5f5; color: #000;");$O.add(".scheduler_default_header_icon:hover","background-color: #ccc;");$O.add(".scheduler_default_header_icon_hide:before","content: '\\00AB';");$O.add(".scheduler_default_header_icon_show:before","content: '\\00BB';");$O.add(".scheduler_default_row_new .scheduler_default_rowheader_inner","cursor: text; background-position: 0px 5px; background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABUSURBVChTY0ACslAaK2CC0iCQDMSlECYmQFYIAl1AjFUxukIQwKoYm0IQwFCMSyEIaEJpMMClcD4Qp0CYEIBNIUzRPzAPCtAVYlWEDgyAGIdTGBgAbqEJYyjqa3oAAAAASUVORK5CYII=);");$O.add(".scheduler_default_row_new .scheduler_default_rowheader_inner:hover","background: white;");$O.add(".scheduler_default_rowheader textarea","padding: 3px;");$O.add(".scheduler_default_rowheader_scroll","cursor: default;");$O.add(".scheduler_default_shadow_forbidden .scheduler_default_shadow_inner","background-color: red;");$O.add(".scheduler_default_event_moving_source","opacity: 0.5; filter: alpha(opacity=50);");$O.add(".scheduler_default_linkpoint","background-color: white; border: 1px solid gray; border-radius: 5px;");$O.add(".scheduler_default_linkpoint.scheduler_default_linkpoint_hover","background-color: black;");$O.add(".scheduler_default_event.scheduler_default_event_version .scheduler_default_event_inner","background-color: #cfdde8;background-image: -webkit-gradient(linear, 0 100%, 100% 0,   color-stop(.25, rgba(255, 255, 255, .2)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .2)), color-stop(.75, rgba(255, 255, 255, .2)), color-stop(.75, transparent), to(transparent));background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -ms-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);-webkit-background-size: 20px 20px;-moz-background-size: 20px 20px;background-size: 20px 20px;");$O.add(".gantt_default_selected .gantt_default_event_inner","background: #ddd;");$O.add(".gantt_default_main","border: 1px solid #aaa;font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 12px;");$O.add(".gantt_default_main *, .gantt_default_main *:before, .gantt_default_main *:after","box-sizing: content-box;");$O.add(".gantt_default_timeheader","cursor: default;color: #666;");$O.add(".gantt_default_message","opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;");$O.add(".gantt_default_timeheadergroup,.gantt_default_timeheadercol","color: #666;background: #eee;");$O.add(".gantt_default_rowheader,.gantt_default_corner","color: #666;background: #eee;");$O.add(".gantt_default_rowheader.gantt_default_rowheader_selected","background-color: #aaa;background-image: -webkit-gradient(linear, 0 100%, 100% 0,color-stop(.25, rgba(255, 255, 255, .2)), color-stop(.25, transparent),   color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .2)), color-stop(.75, rgba(255, 255, 255, .2)), color-stop(.75, transparent), to(transparent));background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -ms-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);-webkit-background-size: 20px 20px;-moz-background-size: 20px 20px;background-size: 20px 20px;");$O.add(".gantt_default_rowheader_inner","position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;");$O.add(".gantt_default_timeheadergroup, .gantt_default_timeheadercol","text-align: center;");$O.add(".gantt_default_timeheadergroup_inner","position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #aaa;border-bottom: 1px solid #aaa;");$O.add(".gantt_default_timeheadercol_inner","position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #aaa;");$O.add(".gantt_default_divider, .gantt_default_splitter","background-color: #aaa;");$O.add(".gantt_default_divider_horizontal","background-color: #aaa;");$O.add(".gantt_default_matrix_vertical_line","background-color: #eee;");$O.add(".gantt_default_matrix_vertical_break","background-color: #000;");$O.add(".gantt_default_matrix_horizontal_line","background-color: #eee;");$O.add(".gantt_default_resourcedivider","background-color: #aaa;");$O.add(".gantt_default_shadow_inner","background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;");$O.add(".gantt_default_event","font-size:12px;color:#666;");$O.add(".gantt_default_event_inner","position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;");$O.add(".gantt_default_event_bar","top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;");$O.add(".gantt_default_event_bar_inner","position:absolute;height:4px;background-color:#1066a8;");$O.add(".gantt_default_event_inner",'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");');$O.add(".gantt_default_event_float_inner","padding:6px 2px 2px 8px;");$O.add(".gantt_default_event_float_inner:after",'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;');$O.add(".gantt_default_columnheader_inner","font-weight: bold;");$O.add(".gantt_default_columnheader_splitter","background-color: #666;opacity: 0.5;filter: alpha(opacity=50);");$O.add(".gantt_default_columnheader_cell_inner","padding: 2px;");$O.add(".gantt_default_cell","background-color: #f9f9f9;");$O.add(".gantt_default_cell.gantt_default_cell_business","background-color: #fff;");$O.add(".gantt_default_cell.gantt_default_cell_business.gantt_default_cell_selected,.gantt_default_cell.gantt_default_cell_selected","background-color: #ccc;background-image: -webkit-gradient(linear, 0 100%, 100% 0,  color-stop(.25, rgba(255, 255, 255, .2)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .2)), color-stop(.75, rgba(255, 255, 255, .2)), color-stop(.75, transparent), to(transparent));background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -ms-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);-webkit-background-size: 20px 20px;-moz-background-size: 20px 20px;background-size: 20px 20px;");$O.add(".gantt_default_tree_image_no_children","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAIAAABv85FHAAAAKXRFWHRDcmVhdGlvbiBUaW1lAHDhIDMwIEkgMjAwOSAwODo0NjozMSArMDEwMClDkt4AAAAHdElNRQfZAR4HLzEyzsCJAAAACXBIWXMAAA7CAAAOwgEVKEqAAAAABGdBTUEAALGPC/xhBQAAADBJREFUeNpjrK6s5uTl/P75OybJ0NLW8h8bAIozgeSxAaA4E1A7VjmgOL31MeLxHwCeXUT0WkFMKAAAAABJRU5ErkJggg==);");$O.add(".gantt_default_tree_image_expand","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAIAAABv85FHAAAAKXRFWHRDcmVhdGlvbiBUaW1lAHDhIDMwIEkgMjAwOSAwODo0NjozMSArMDEwMClDkt4AAAAHdElNRQfZAR4HLyUoFBT0AAAACXBIWXMAAA7CAAAOwgEVKEqAAAAABGdBTUEAALGPC/xhBQAAAFJJREFUeNpjrK6s5uTl/P75OybJ0NLW8h8bAIozgeRhgJGREc4GijMBtTNgA0BxFog+uA4IA2gmUJwFog/IgUhAGBB9KPYhA3T74Jog+hjx+A8A1KRQ+AN5vcwAAAAASUVORK5CYII=);");$O.add(".gantt_default_tree_image_collapse","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAIAAABv85FHAAAAKXRFWHRDcmVhdGlvbiBUaW1lAHDhIDMwIEkgMjAwOSAwODo0NjozMSArMDEwMClDkt4AAAAHdElNRQfZAR4HLxB+p9DXAAAACXBIWXMAAA7CAAAOwgEVKEqAAAAABGdBTUEAALGPC/xhBQAAAENJREFUeNpjrK6s5uTl/P75OybJ0NLW8h8bAIozgeSxAaA4E1A7VjmgOAtEHyMjI7IE0EygOAtEH5CDqY9c+xjx+A8ANndK9WaZlP4AAAAASUVORK5CYII=);");$O.add(".gantt_default_event_move_left",'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");');$O.add(".gantt_default_event_move_right",'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");');$O.add(".gantt_default_event_delete","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=60)';cursor: pointer;");$O.add(".gantt_default_event_delete:hover","opacity: 1;-ms-filter: none;");$O.add(".gantt_default_rowmove_handle","background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;");$O.add(".gantt_default_rowmove_source","background-color: black; opacity: 0.2;");$O.add(".gantt_default_rowmove_position_before, .gantt_default_rowmove_position_after","background-color: #999; height: 2px;");$O.add(".gantt_default_rowmove_position_child","margin-left: 10px; background-color: #999; height: 2px;");$O.add(".gantt_default_rowmove_position_child:before","content: '+'; color: #999; position: absolute; top: -8px; left: -10px;");$O.add(".gantt_default_rowmove_position_forbidden","background-color: red; height: 2px; margin-left: 10px;");$O.add(".gantt_default_rowmove_position_forbidden:before","content: 'x'; color: red; position: absolute; top: -8px; left: -10px;");$O.add(".gantt_default_task_group .gantt_default_event_inner","position:absolute;top:5px;left:0px;right:0px;bottom:6px;overflow:hidden; background: blue; filter: none; border: 0px none;");$O.add(".gantt_default_task_group.gantt_default_event:before","content:''; border-color: transparent transparent transparent blue; border-style: solid; border-width: 6px; position: absolute; bottom: 0px;");$O.add(".gantt_default_task_group.gantt_default_event:after","content:''; border-color: transparent blue transparent transparent; border-style: solid; border-width: 6px; position: absolute; bottom: 0px; right: 0px;");$O.add(".gantt_default_task_milestone .gantt_default_event_inner","position:absolute;top:16%;left:16%;right:16%;bottom:16%; background: green; border: 0px none; -webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);-ms-transform: rotate(45deg);-o-transform: rotate(45deg); transform: rotate(45deg); filter: none;");$O.add(".gantt_default_browser_ie8 .gantt_default_task_milestone .gantt_default_event_inner","-ms-filter: \"progid:$2H.Microsoft.Matrix($2I='auto expand',$2J=0.7071067811865476,$2K=-0.7071067811865475,$2L=0.7071067811865475,$2M=0.7071067811865476);\"");$O.add(".gantt_default_event_left","white-space: nowrap; padding-top: 5px; color: #666; cursor: default;");$O.add(".gantt_default_event_right","white-space: nowrap; padding-top: 5px; color: #666; cursor: default;");$O.add(".gantt_default_link_horizontal","border-bottom-style: solid; border-bottom-color: red;");$O.add(".gantt_default_link_vertical","border-right-style: solid; border-right-color: red;");$O.add(".gantt_default_link_arrow_right:before","content: ''; border-width: 6px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute;");$O.add(".gantt_default_link_arrow_left:before","content: ''; border-width: 6px; border-color: transparent red transparent transparent; border-style: solid; width: 0px; height:0px; position: absolute;");$O.add(".gantt_default_link_arrow_down:before","content: ''; border-width: 6px; border-color: red transparent transparent transparent; border-style: solid; width: 0px; height:0px; position: absolute;");$O.add(".gantt_default_link_arrow_up:before","content: ''; border-width: 6px; border-color: transparent transparent red transparent; border-style: solid; width: 0px; height:0px; position: absolute;");$O.add(".gantt_default_shadow_overlap .gantt_default_shadow_inner","background-color: red;");$O.add(".gantt_default_block","background-color: gray; opacity: 0.5; filter: alpha(opacity=50);");$O.add(".gantt_default_link_hover","box-shadow: 0px 0px 2px 2px rgba(255, 0, 0, 0.3)");$O.add(".gantt_default_main .gantt_default_header_icon","box-sizing: border-box; border: 1px solid #aaa; background-color: #f5f5f5; color: #000;");$O.add(".gantt_default_header_icon:hover","background-color: #ccc;");$O.add(".gantt_default_header_icon_hide:before","content: '\\00AB';");$O.add(".gantt_default_header_icon_show:before","content: '\\00BB';");$O.add(".gantt_default_row_new .gantt_default_rowheader_inner","cursor: text; background-position: 0 50%; background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABUSURBVChTY0ACslAaK2CC0iCQDMSlECYmQFYIAl1AjFUxukIQwKoYm0IQwFCMSyEIaEJpMMClcD4Qp0CYEIBNIUzRPzAPCtAVYlWEDgyAGIdTGBgAbqEJYyjqa3oAAAAASUVORK5CYII=);");$O.add(".gantt_default_row_new .gantt_default_rowheader_inner:hover","background: white;");$O.add(".gantt_default_rowheader textarea","padding: 5px;");$O.add(".gantt_default_rowheader_scroll","cursor: default;");$O.add(".gantt_default_shadow_forbidden .gantt_default_shadow_inner","background-color: red;");$O.add(".gantt_default_event_moving_source","opacity: 0.5; filter: alpha(opacity=50);");$O.add(".gantt_default_event.gantt_default_event_version .gantt_default_event_inner","background-color: #cfdde8;background-image: -webkit-gradient(linear, 0 100%, 100% 0,   color-stop(.25, rgba(255, 255, 255, .2)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .2)), color-stop(.75, rgba(255, 255, 255, .2)), color-stop(.75, transparent), to(transparent));background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -ms-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);-webkit-background-size: 20px 20px;-moz-background-size: 20px 20px;background-size: 20px 20px;");$O.add(".gantt_default_task_group.gantt_default_event_continueleft.gantt_default_event:before","border:0;");$O.add(".gantt_default_task_group.gantt_default_event_continueleft.gantt_default_event .gantt_default_event_inner:before",'content:"";border-color: transparent #fff transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:2px;left:-4px;');$O.add(".gantt_default_event_continueleft.gantt_default_event .gantt_default_event_inner","padding-left: 8px;");$O.add(".gantt_default_event_continueleft.gantt_default_event .gantt_default_event_inner:before",'content:"";border-color: transparent #000 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:7px;left:-4px;');$O.add(".gantt_default_task_group.gantt_default_event_continueright.gantt_default_event:after","border:0;");$O.add(".gantt_default_task_group.gantt_default_event_continueright.gantt_default_event .gantt_default_event_inner:after",'content:"";border-color: transparent transparent transparent #fff;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:2px;right:-2px;');$O.add(".gantt_default_event_continueright.gantt_default_event .gantt_default_event_inner","padding-right: 8px;");$O.add(".gantt_default_event_continueright.gantt_default_event .gantt_default_event_inner:after",'content:"";border-color: transparent transparent transparent #000;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:7px;right:-2px;');$O.add(".gantt_default_linkpoint","background-color: white; border: 1px solid gray; border-radius: 5px;");$O.add(".gantt_default_linkpoint.gantt_default_linkpoint_hover","background-color: black;");$O.commit();DayPilot.Global.defaultCss=true;})();var $2N=function(id){var $2A=this;this.id=id;this.widths=[];this.titles=[];this.height=null;this.splitterWidth=3;this.css={};this.css.title=null;this.css.titleInner=null;this.css.splitter=null;this.blocks=[];this.drag={};this.updated=function(){};this.updating=function(){};this.init=function(){var $a;if(!id){throw "error: id not provided";}else if(typeof id==='string'){$a=document.getElementById(id);}else if(id.appendChild){$a=id;}else{throw "error: invalid object provided";};this.div=$a;this.blocks=[];for(var i=0;i<this.widths.length;i++){var s=document.createElement("div");s.style.display="inline-block";if($2A.height!==null){s.style.height=$2A.height+"px";}else{s.style.height="100%";};s.style.width=(this.widths[i]-this.splitterWidth)+"px";s.style.overflow='hidden';s.style.verticalAlign="top";s.style.position="relative";s.setAttribute("unselectable","on");s.className=this.css.title;$a.appendChild(s);var $0c=document.createElement("div");$0c.innerHTML=this.titles[i];$0c.setAttribute("unselectable","on");$0c.className=this.css.titleInner;s.appendChild($0c);var $2O=document.createElement("div");$2O.style.display="inline-block";if($2A.height!==null){$2O.style.height=$2A.height+"px";}else{$2O.style.height="100%";};$2O.style.width=this.splitterWidth+"px";$2O.style.position="relative";$2O.appendChild(document.createElement("div"));$2O.style.cursor="col-resize";$2O.setAttribute("unselectable","on");$2O.className=this.css.splitter;var $11={};$11.index=i;$11.width=this.widths[i];$2O.data=$11;$2O.onmousedown=function(ev){$2A.drag.start=DayPilot.page(ev);$2A.drag.data=this.data;$2A.div.style.cursor="col-resize";ev=ev||window.event;ev.preventDefault?ev.preventDefault():ev.returnValue=false;};$a.appendChild($2O);var $2P={};$2P.section=s;$2P.handle=$2O;this.blocks.push($2P);};this.registerGlobalHandlers();};this.updateWidths=function(){for(var i=0;i<this.blocks.length;i++){var $2P=this.blocks[i];var $v=this.widths[i];$2P.handle.data.width=$v;this.$3b(i);}};this.$3b=function(i){var $2P=this.blocks[i];var $v=this.widths[i];$2P.section.style.width=($v-this.splitterWidth)+"px";};this.totalWidth=function(){var t=0;for(var i=0;i<this.widths.length;i++){t+=this.widths[i];};return t;};this.gMouseMove=function(ev){if(!$2A.drag.start){return;};var $11=$2A.drag.data;var $2Q=DayPilot.page(ev);var $2R=$2Q.x-$2A.drag.start.x;var i=$11.index;$2A.widths[i]=Math.max(5,$11.width+$2R);$2A.$3b(i);var $10={};$10.widths=this.widths;$10.index=$11.index;$2A.updating($10);};this.gMouseUp=function(ev){if(!$2A.drag.start){return;};$2A.drag.start=null;document.body.style.cursor="";$2A.div.style.cursor="";var $11=$2A.drag.data;$11.width=$2A.widths[$11.index];var $10={};$10.widths=this.widths;$10.index=$11.index;$2A.updated($10);};this.registerGlobalHandlers=function(){DayPilot.re(document,'mousemove',this.gMouseMove);DayPilot.re(document,'mouseup',this.gMouseUp);};};DayPilot.Splitter=$2N;})();DayPilot.JSON={};(function(){function f(n){return n<10?'0'+n:n;};if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+f(this.getUTCMonth()+1)+'-'+f(this.getUTCDate())+'T'+f(this.getUTCHours())+':'+f(this.getUTCMinutes())+':'+f(this.getUTCSeconds())+'Z':null;};};if(typeof String.prototype.toJSON!=='function'){String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function($15){return this.valueOf();};};var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,$2S=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,$2T,$2U,$2V={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},$2W;function quote($01){$2S.lastIndex=0;return $2S.test($01)?'"'+$01.replace($2S,function(a){var c=$2V[a];if(typeof c==='string'){return c;};return '\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+$01+'"';};function str($15,$2X){var i,k,v,length,$2Y=$2T,$2Z,$1z=$2X[$15];if($1z&&typeof $1z==='object'&&typeof $1z.toJSON==='function'&&!$1z.ignoreToJSON){$1z=$1z.toJSON($15);};if(typeof $2W==='function'){$1z=$2W.call($2X,$15,$1z);};switch(typeof $1z){case 'string':return quote($1z);case 'number':return isFinite($1z)?String($1z):'null';case 'boolean':case 'null':return String($1z);case 'object':if(!$1z){return 'null';};$2T+=$2U;$2Z=[];if(typeof $1z.length==='number'&&!$1z.propertyIsEnumerable('length')){length=$1z.length;for(i=0;i<length;i+=1){$2Z[i]=str(i,$1z)||'null';};v=$2Z.length===0?'[]':$2T?'[\n'+$2T+$2Z.join(',\n'+$2T)+'\n'+$2Y+']':'['+$2Z.join(',')+']';$2T=$2Y;return v;};if($2W&&typeof $2W==='object'){length=$2W.length;for(i=0;i<length;i+=1){k=$2W[i];if(typeof k==='string'){v=str(k,$1z);if(v){$2Z.push(quote(k)+($2T?': ':':')+v);}}}}else{for(k in $1z){if(Object.hasOwnProperty.call($1z,k)){v=str(k,$1z);if(v){$2Z.push(quote(k)+($2T?': ':':')+v);}}}};v=($2Z.length===0)?'{\u007D':$2T?'{\n'+$2T+$2Z.join(',\n'+$2T)+'\n'+$2Y+'\u007D':'{'+$2Z.join(',')+'\u007D';$2T=$2Y;return v;}};DayPilot.JSON.stringify=function($1z,$30,$31){if(typeof JSON!=="undefined"&&JSON.stringify){return JSON.stringify($1z,$30,$31);};var i;$2T='';$2U='';if(typeof $31==='number'){for(i=0;i<$31;i+=1){$2U+=' ';}}else if(typeof $31==='string'){$2U=$31;};$2W=$30;if($30&&typeof $30!=='function'&&(typeof $30!=='object'||typeof $30.length!=='number')){throw new Error('JSON.stringify');};return str('',{'':$1z});};DayPilot.JSON.parse=function($W,$32){var j;function walk($2X,$15){var k,v,$1z=$2X[$15];if($1z&&typeof $1z==='object'){for(k in $1z){if(Object.prototype.hasOwnProperty.call($1z,k)){v=walk($1z,k);if(v!==undefined){$1z[k]=v;}else{delete $1z[k];}}}};return $32.call($2X,$15,$1z);};$W=String($W);cx.lastIndex=0;if(cx.test($W)){$W=$W.replace(cx,function(a){return '\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);});};if(/^[\],:{};\s]*$/
  .test($W.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+$W+')');return typeof $32==='function'?walk({'':j},''):j;};throw new SyntaxError('JSON.parse');};if(typeof Sys!=='undefined'&&Sys.Application&&Sys.Application.notifyScriptLoaded){Sys.Application.notifyScriptLoaded();}})();
  
  
  if(typeof DayPilot==='undefined'){var DayPilot={};};if(typeof DayPilot.Global==='undefined'){DayPilot.Global={};};if(typeof DayPilotBubble==='undefined'){var DayPilotBubble=DayPilot.BubbleVisible={};};(function(){if(typeof DayPilot.Bubble!=='undefined'){return;};var DayPilotBubble={};DayPilotBubble.mouseMove=function(ev){if(typeof(DayPilotBubble)==='undefined'){return;};DayPilotBubble.mouse=DayPilotBubble.mousePosition(ev);var b=DayPilotBubble.active;if(b&&b.$T.showPosition){var $a=b.$T.showPosition;var $b=DayPilotBubble.mouse;if($a.clientX!==$b.clientX||$a.clientY!==$b.clientY){}}};DayPilotBubble.touchPosition=function(ev){if(!ev||!ev.touches){return null;};var $c=ev.touches[0];var $d={};$d.x=$c.pageX;$d.y=$c.pageY;$d.clientX=$c.clientX;$d.clientY=$c.clientY;return $d;};DayPilotBubble.mousePosition=function(e){var $e=DayPilot.page(e);if(e){$e.clientY=e.clientY;$e.clientX=e.clientX;};return $e;};DayPilot.Bubble=function($f){this.v='1925';var $g=this;var $h={};this.cssOnly=true;this.hideAfter=500;this.loadingText="Loading...";this.animated=true;this.animation="fast";this.position="EventTop";this.hideOnClick=true;this.showAfter=500;this.showLoadingLabel=true;this.zIndex=10;this.theme="bubble_default";this.$T=function(){};this.callBack=function($i){if(this.aspnet()){WebForm_DoCallback(this.uniqueID,DayPilot.JSON.stringify($i),this.updateView,this,this.callbackError,true);}else{if($i.calendar.internal.bubbleCallBack){$i.calendar.internal.bubbleCallBack($i,this);}else{$i.calendar.bubbleCallBack($i,this);}}};this.callbackError=function($e,$j){alert($e);};this.updateView=function($e,$j){if($g!==$j){throw "Callback object mismatch (internal error)";};if(!$e){$g.removeDiv();$g.removeShadow();return;};DayPilotBubble.active=$g;if($g){if($h.div){$h.div.firstChild.innerHTML=$e;};$g.adjustPosition();if(!$g.animated){$g.addShadow();}}};this.init=function(){};this.aspnet=function(){return(typeof WebForm_DoCallback!=='undefined');};this.rounded=function(){return this.corners==='Rounded';};this.showEvent=function(e,$k){var a=new DayPilotBubble.CallBackArgs(e.calendar||e.root,'Event',e,e.bubbleHtml?e.bubbleHtml():null);if($k){this.show(a);}else{this.showOnMouseOver(a);}};this.showCell=function($l){var a=new DayPilotBubble.CallBackArgs($l.calendar||$l.root,'Cell',$l,$l.staticBubbleHTML?$l.staticBubbleHTML():null);this.showOnMouseOver(a);};this.showTime=function($m){var a=new DayPilotBubble.CallBackArgs($m.calendar||$m.root,'Time',$m,$m.staticBubbleHTML?$m.staticBubbleHTML():null);this.showOnMouseOver(a);};this.showResource=function($n){var a=new DayPilotBubble.CallBackArgs($n.calendar||$n.root,'Resource',$n,$n.bubbleHtml?$n.bubbleHtml():null);this.showOnMouseOver(a);};this.showHtml=function($o,$p){var a=new DayPilotBubble.CallBackArgs(null,'Html',null,$o);a.div=$p;this.show(a);};this.show=function($q){var $r=this.animated;this.$T.showPosition=DayPilotBubble.mouse;if(!DayPilotBubble.mouse){setTimeout(function(){$g.show($q);},100);return;};var id;try{id=DayPilot.JSON.stringify($q.object);}catch(e){return;};if(DayPilotBubble.active===this&&this.$T.sourceId===id){return;};if(typeof DayPilot.Menu!=='undefined'&&DayPilot.Menu.active){return;};if(!$g.cssOnly){$g.cssOnly=true;DayPilot.Util.log("DayPilot: cssOnly = false mode is not supported since DayPilot Pro 8.0.");};DayPilotBubble.hideActive();DayPilotBubble.active=this;this.$T.sourceId=id;var $p=document.createElement("div");$p.setAttribute("unselectable","on");$p.style.position='absolute';if(!this.showLoadingLabel){$p.style.display='none';};if(!this.cssOnly){if(this.width){$p.style.width=this.width;};$p.style.cursor='default';}else{$p.className=this.$U("_main");};$p.style.top='0px';$p.style.left='0px';$p.style.zIndex=this.zIndex+1;if($r){$p.style.visibility='hidden';};if(this.hideOnClick){$p.onclick=function(){DayPilotBubble.hideActive();};};$p.onmousemove=function(e){DayPilotBubble.cancelTimeout();var e=e||window.event;e.cancelBubble=true;};$p.oncontextmenu=function(){return false;};$p.onmouseout=this.delayedHide;var $s=document.createElement("div");$p.appendChild($s);if(this.cssOnly){$s.className=this.$U("_main_inner");}else{$s.style.padding='4px';if(this.border){$s.style.border=this.border;};if(this.rounded()){$s.style.MozBorderRadius="5px";$s.style.webkitBorderRadius="5px";$s.style.borderRadius="5px";};$s.style.backgroundColor=this.backgroundColor;};$s.innerHTML=this.loadingText;document.body.appendChild($p);$h.div=$p;var $p=this.getDiv($q);if(this.position==="EventTop"&&$p){var $t=2;var $u=DayPilot.abs($p,true);this.$T.mouse=DayPilotBubble.mouse;this.$T.mouse.x=$u.x;this.$T.mouse.y=$u.y;this.$T.mouse.h=$u.h+$t;this.$T.mouse.w=$u.w;}else{this.$T.mouse=DayPilotBubble.mouse;};if(this.showLoadingLabel&&!$r){this.adjustPosition();this.addShadow();};if($q.staticHTML){this.updateView($q.staticHTML,this);}else if(typeof this.onLoad==='function'){var $i={};$i.source=$q.object;$i.async=false;$i.loaded=function(){if(this.async){$g.updateView($i.html,$g);}};this.onLoad($i);if(!$i.async){$g.updateView($i.html,$g);}}else if(this.$V($q)){this.callBack($q);}};this.getDiv=function($q){if($q.div){return $q.div;};if($q.type==='Event'&&$q.calendar&&$q.calendar.internal.findEventDiv){return $q.calendar.internal.findEventDiv($q.object);}};this.$U=function($v){var $w=this.theme||this.cssClassPrefix;if($w){return $w+$v;}else{return "";}};this.loadingElement=null;this.loadingStart=function($u){};this.loadingStop=function(){};this.adjustPosition=function(){var $r=this.animated;var $x=this.position;var $y=10;if(!$h.div){return;};if(!this.$T.mouse){return;};if(!this.$T.mouse.x||!this.$T.mouse.y){DayPilotBubble.hideActive();return;};var $p=$h.div;$p.style.display='';var $z=$p.offsetHeight;var $A=$p.offsetWidth;$p.style.display='none';var wd=DayPilot.wd();var $B=wd.width;var $C=wd.height;if($x==='Mouse'){var $D=22;var $E=10;var top=0;if(this.$T.mouse.clientY>$C-$z+$y){var $F=this.$T.mouse.clientY-($C-$z)+$y;top=(this.$T.mouse.y-$z-$E);}else{top=this.$T.mouse.y+$D;};if(typeof top==='number'){$p.style.top=Math.max(top,0)+"px";};if(this.$T.mouse.clientX>$B-$A+$y){var $G=this.$T.mouse.clientX-($B-$A)+$y;$p.style.left=(this.$T.mouse.x-$G)+'px';}else{$p.style.left=this.$T.mouse.x+'px';}}else if($x==='EventTop'){var $H=2;var top=this.$T.mouse.y-$z-$H;var $I=wd.scrollTop;if(top<$I){top=this.$T.mouse.y+this.$T.mouse.h+$H;};if(typeof top==='number'){$p.style.top=Math.max(top,0)+'px';};var $J=this.$T.mouse.x;if(this.$T.mouse.x+$A+$y>$B){$J=$B-$A-$y;};$p.style.left=$J+'px';};$p.style.display='';if($r){$p.style.display='';var $K={};$K.color=$p.firstChild.style.color;$K.overflow=$p.style.overflow;$p.firstChild.style.color="transparent";$p.style.overflow='hidden';this.removeShadow();DayPilot.pop($p,{"finished":function(){$p.firstChild.style.color=$K.color;$p.style.overflow=$K.overflow;$g.addShadow();},"vertical":"bottom","horizontal":"left","animation":$g.animation});}};this.delayedHide=function(){DayPilotBubble.cancelTimeout();if($g.hideAfter>0){DayPilotBubble.timeout=window.setTimeout(DayPilotBubble.hideActive,$g.hideAfter);}};this.showOnMouseOver=function($q){DayPilotBubble.cancelTimeout();var $L=function($M){return function(){$g.show($M);};};DayPilotBubble.timeout=window.setTimeout($L($q),this.showAfter);};this.hideOnMouseOut=function(){this.delayedHide();};this.$V=function($i){if($i.calendar.backendUrl){return true;};if(typeof WebForm_DoCallback==='function'&&this.uniqueID){return true;};return false;};this.addShadow=function(){if(!this.useShadow){return;};if(this.cssOnly){return;};if(!$h.div){return;};var $p=$h.div;if(this.shadows&&this.shadows.length>0){this.removeShadow();};this.shadows=[];for(var i=0;i<5;i++){var $N=document.createElement('div');$N.setAttribute("unselectable","on");$N.style.position='absolute';$N.style.width=$p.offsetWidth+'px';$N.style.height=$p.offsetHeight+'px';$N.style.top=$p.offsetTop+i+'px';$N.style.left=$p.offsetLeft+i+'px';$N.style.zIndex=this.zIndex;$N.style.filter='alpha(opacity:10)';$N.style.opacity=0.1;$N.style.backgroundColor='#000000';if(this.rounded()){$N.style.MozBorderRadius="5px";$N.style.webkitBorderRadius="5px";$N.style.borderRadius="5px";};document.body.appendChild($N);this.shadows.push($N);}};this.removeShadow=function(){if(!this.shadows){return;};for(var i=0;i<this.shadows.length;i++){document.body.removeChild(this.shadows[i]);};this.shadows=[];};this.removeDiv=function(){if(!$h.div){return;};document.body.removeChild($h.div);$h.div=null;};if($f){for(var name in $f){this[name]=$f[name];}};this.init();};DayPilot.Bubble.touchPosition=function(ev){if(ev.touches){DayPilotBubble.mouse=DayPilotBubble.touchPosition(ev);}};DayPilotBubble.cancelTimeout=function(){if(DayPilotBubble.timeout){window.clearTimeout(DayPilotBubble.timeout);}};DayPilotBubble.hideActive=function(){DayPilotBubble.cancelTimeout();var $g=DayPilotBubble.active;if($g){$g.removeDiv();$g.removeShadow();};DayPilotBubble.active=null;};DayPilotBubble.CallBackArgs=function($O,$P,$Q,$R){this.calendar=$O;this.type=$P;this.object=$Q;this.staticHTML=$R;this.toJSON=function(){var $S={};$S.uid=this.calendar.uniqueID;$S.type=this.type;$S.object=$Q;return $S;};};DayPilot.re(document,'mousemove',DayPilotBubble.mouseMove);DayPilot.BubbleVisible.Bubble=DayPilotBubble.Bubble;DayPilot.BubbleVisible.hideActive=DayPilotBubble.hideActive;DayPilot.BubbleVisible.cancelTimeout=DayPilotBubble.cancelTimeout;DayPilot.Bubble.hideActive=DayPilotBubble.hideActive;if(typeof Sys!=='undefined'&&Sys.Application&&Sys.Application.notifyScriptLoaded){Sys.Application.notifyScriptLoaded();}})();
  
  if(typeof DayPilot==='undefined'){var DayPilot={};};if(typeof DayPilot.Global==='undefined'){DayPilot.Global={};};if(typeof DayPilotCalendar==='undefined'){var DayPilotCalendar=DayPilot.CalendarVisible={};};(function(){if(typeof DayPilot.Calendar!=='undefined'){return;};DayPilot.Calendar=function(id,$a){this.v='1925';var $b=false;if(this instanceof DayPilot.Calendar&&!this.$4j){$b=true;this.$4j=true;};if(!$b){throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";};var $c=this;this.uniqueID=null;this.id=id;this.isCalendar=true;this.api=2;this.clientName=id;this.clientState={};this.$4k={};this.$4k.pixels={};this.$4k.events=[];this.elements={};this.elements.events=[];this.elements.separators=[];this.nav={};this.events={};this.hideUntilInit=true;this.$4l=true;this.allDayEnd="DateTime";this.allDayEventHeight=25;this.allowMultiSelect=true;this.autoRefreshCommand='refresh';this.autoRefreshEnabled=false;this.autoRefreshInterval=60;this.autoRefreshMaxCount=20;this.backendUrl=null;this.borderColor="#000000";this.bubble=null;this.businessBeginsHour=9;this.businessEndsHour=18;this.cellBackColor="#FFFFD5";this.cellBackColorNonBusiness="#FFF4BC";this.cellBorderColor="#999999";this.cellHeight=20;this.cellDuration=30;this.columnBubble=null;this.columnMarginRight=5;this.columns=null;this.columnWidth=200;this.columnWidthSpec="Auto";this.contextMenu=null;this.contextMenuSelection=null;this.cornerBackColor="#ECE9D8";this.cornerHtml='';this.crosshairColor='Gray';this.crosshairOpacity=20;this.crosshairType="Header";this.cssOnly=true;this.dayBeginsHour=0;this.dayEndsHour=24;this.days=1;this.durationBarColor='blue';this.durationBarVisible=true;this.durationBarWidth=5;this.durationBarImageUrl=null;this.eventArrangement="SideBySide";this.eventBackColor='#ffffff';this.eventBorderColor="#000000";this.eventFontFamily='Tahoma';this.eventFontSize='8pt';this.eventFontColor="#000000";this.eventSelectColor='blue';this.headerFontSize='10pt';this.headerFontFamily='Tahoma';this.headerFontColor="#000000";this.headerHeight=20;this.headerLevels=1;this.height=300;this.heightSpec='BusinessHours';this.hideFreeCells=false;this.headerDateFormat=null;this.hourHalfBorderColor="#F3E4B1";this.hourBorderColor="#EAD098";this.hourFontColor="#000000";this.hourFontFamily="Tahoma";this.hourFontSize="16pt";this.hourNameBackColor="#ECE9D8";this.hourNameBorderColor="#ACA899";this.hourWidth=45;this.initScrollPos=null;this.loadingLabelText="Loading...";this.loadingLabelVisible=true;this.loadingLabelBackColor="orange";this.loadingLabelFontColor="#ffffff";this.loadingLabelFontFamily="Tahoma";this.loadingLabelFontSize="10pt";this.locale="en-us";this.messageHideAfter=5000;this.moveBy="Full";this.notifyCommit='Immediate';this.numberFormat="0.00";this.roundedCorners=false;this.rtl=false;this.scrollLabelsVisible=false;this.selectedColor="#316AC5";this.shadow='Fill';this.showToolTip=true;this.showAllDayEvents=false;this.showAllDayEventStartEnd=true;this.showEventStartEnd=false;this.showHeader=true;this.showHours=true;this.showCurrentTime=true;this.showCurrentTimeMode="Day";this.showCurrentTimeOffset=0;this.startDate=new DayPilot.Date().getDatePart();this.cssClassPrefix="calendar_default";this.tapAndHoldTimeout=300;this.theme=null;this.timeFormat='Auto';this.timeHeaderCellDuration=60;this.useEventBoxes='Always';this.viewType='Days';this.visible=true;this.weekStarts=null;this.width=null;this.eventClickHandling='Enabled';this.eventDoubleClickHandling='Disabled';this.eventRightClickHandling='ContextMenu';this.eventDeleteHandling='Disabled';this.eventEditHandling='Update';this.eventHoverHandling='Bubble';this.eventResizeHandling='Update';this.eventMoveHandling='Update';this.eventSelectHandling='Update';this.eventTapAndHoldHandling='Move';this.headerClickHandling='Enabled';this.timeRangeTapAndHoldHandling='Select';this.timeRangeSelectedHandling='Enabled';this.timeRangeDoubleClickHandling="Enabled";this.$4m=true;this.$4n=false;this.$4o=0;this.doubleClickTimeout=300;this.members={};this.members.obsolete=["Init","cleanSelection","cssClassPrefix","cssOnly","clientName","uniqueID"];this.members.ignore=["internal","nav","debug","temp","elements","members"];this.members.noCssOnly=["allDayEventBorderColor","allDayEventFontColor","allDayEventFontFamily","allDayEventFontSize","borderColor","cellBackColor","cellBackColorNonBusiness","cellBorderColor","cornerBackColor","durationBarColor","durationBarImageUrl","eventBackColor","eventBorderColor","eventFontColor","eventFontFamily","eventFontSize","eventSelectColor","headerFontColor","headerFontFamily","headerFontSize","hourBorderColor","hourFontColor","hourFontFamily","hourFontSize","hourHalfBorderColor","hourNameBackColor","hourNameBorderColor","loadingLabelBackColor","loadingLabelFontColor","loadingLabelFontFamily","loadingLabelFontSize","roundedCorners","selectedColor","shadow","useEventSelectionBars"];this.$4p={};this.$4p.ie=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("MSIE")!==-1);this.$4p.ie9=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("MSIE 9")!==-1);this.$4p.ielt9=(function(){var $d=document.createElement("div");$d.innerHTML="<!--[if lt IE 9]><i></i><![endif]-->";var $e=($d.getElementsByTagName("i").length===1);return $e;})();this.$4p.ff=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Firefox")!==-1);this.$4p.opera105=(function(){if(/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){var v=new Number(RegExp.$1);return v>=10.5;};return false;})();this.$4p.webkit522=(function(){if(/AppleWebKit[\/\s](\d+\.\d+)/.test(navigator.userAgent)){var v=new Number(RegExp.$1);return v>=522;};return false;})();this.clearSelection=function(){if(!this.selectedCells){this.selectedCells=[];return;};this.$4q();this.selectedCells=[];};this.$4q=function(){if(!this.selectedCells){return;};for(var j=0;j<this.selectedCells.length;j++){var $f=this.selectedCells[j];if($f){if($f.selected){$f.removeChild($f.selected);$f.firstChild.style.display='';$f.selected=null;}}}};this.cleanSelection=this.clearSelection;this.$4r=function($g,$h,$i){var $j={};$j.action=$g;$j.parameters=$i;$j.data=$h;$j.header=this.$4s();var $k="JSON"+DayPilot.JSON.stringify($j);__doPostBack($c.uniqueID,$k);};this.$4t=function($g,$i,$h,$l){if(!this.$4u()){$c.debug.message("Callback invoked without the server-side backend specified. Callback canceled.","warning");return;};if(this.callbackTimeout){window.clearTimeout(this.callbackTimeout);};if(typeof $l==='undefined'){$l="CallBack";};this.callbackTimeout=window.setTimeout(function(){$c.$4v();},100);var $j={};$j.action=$g;$j.type=$l;$j.parameters=$i;$j.data=$h;$j.header=this.$4s();var $k="JSON"+DayPilot.JSON.stringify($j);if(this.backendUrl){DayPilot.request(this.backendUrl,this.$4w,$k,this.$4x);}else if(typeof WebForm_DoCallback==='function'){WebForm_DoCallback(this.uniqueID,$k,this.$4y,this.clientName,this.onCallbackError,true);}};this.$4u=function(){if(this.backendUrl){return true;};if(typeof WebForm_DoCallback==='function'&&this.uniqueID){return true;};return false;};this.$4x=function($m){if(typeof $c.onAjaxError==='function'){var $n={};$n.request=$m;$c.onAjaxError($n);}else if(typeof $c.ajaxError==='function'){$c.ajaxError($m);}};this.dispose=function(){var c=$c;if(!c.nav.top){return;};c.$4z();c.$4A();if(c.nav.messageClose){c.nav.messageClose.onclick=null;};if(c.nav.hourTable)c.nav.hourTable.oncontextmenu=null;if(c.nav.hourTable)c.nav.hourTable.onmousemove=null;if(c.nav.header)c.nav.header.oncontextmenu=null;if(c.nav.corner)c.nav.corner.oncontextmenu=null;c.nav.zoom.onmousemove=null;c.nav.scroll.onscroll=null;c.nav.scroll.root=null;DayPilot.pu(c.nav.loading);c.$4B();c.$4C();c.nav.select=null;c.nav.cornerRight=null;c.nav.scrollable=null;c.nav.bottomLeft=null;c.nav.bottomRight=null;c.nav.allday=null;c.nav.zoom=null;c.nav.loading=null;c.nav.events=null;c.nav.header=null;c.nav.hourTable=null;c.nav.scrolltop=null;c.nav.scroll=null;c.nav.vsph=null;c.nav.main=null;c.nav.message=null;c.nav.messageClose=null;c.nav.top.removeAttribute("style");c.nav.top.removeAttribute("class");c.nav.top.innerHTML='';c.nav.top.dp=null;c.nav.top=null;DayPilot.ue(window,'resize',c.$4D);DayPilotCalendar.unregister(c);};this.$4E=function(){this.nav.top.dispose=this.dispose;};this.$4w=function($o){$c.$4y($o.responseText);};this.$4s=function(){var h={};h.v=this.v;h.control="dpc";h.id=this.id;h.clientState=$c.clientState;h.columns=this.$4F();h.days=$c.days;h.startDate=$c.startDate;h.cellDuration=$c.cellDuration;h.cssOnly=$c.cssOnly;h.cssClassPrefix=$c.cssClassPrefix;h.heightSpec=$c.heightSpec;h.businessBeginsHour=$c.businessBeginsHour;h.businessEndsHour=$c.businessEndsHour;h.viewType=$c.viewType;h.dayBeginsHour=$c.dayBeginsHour;h.dayEndsHour=$c.dayEndsHour;h.headerLevels=$c.headerLevels;h.backColor=$c.cellBackColor;h.nonBusinessBackColor=$c.cellBackColorNonBusiness;h.eventHeaderVisible=$c.eventHeaderVisible;h.timeFormat=$c.timeFormat;h.timeHeaderCellDuration=$c.timeHeaderCellDuration;h.locale=$c.locale;h.scrollY=$c.scrollPos;h.showAllDayEvents=$c.showAllDayEvents;h.tagFields=$c.tagFields;h.weekStarts=$c.weekStarts;h.hourNameBackColor=$c.hourNameBackColor;h.hourFontFamily=$c.hourFontFamily;h.hourFontSize=$c.hourFontSize;h.hourFontColor=$c.hourFontColor;h.selected=$c.multiselect.events();h.hashes=$c.hashes;return h;};this.$4G=function(){this.$4H();DayPilot.Areas.hideAll();};this.$4F=function(){var $p=[];$p.ignoreToJSON=true;if(!this.columns){return $p;};for(var i=0;i<this.columns.length;i++){var $q=this.columns[i];var $r=this.$4I($q);$p.push($r);};return $p;};this.$4I=function($q){var $r={};$r.Value=$q.id;$r.Name=$q.name;$r.ToolTip=$q.toolTip;$r.Date=$q.start;$r.Children=this.$4J($q.children);return $r;};this.$4J=function($s){var $t=[];$t.ignoreToJSON=true;if(!$s){return $t;};for(var i=0;i<$s.length;i++){$t.push(this.$4I($s[i]));};return $t;};this.$4y=function($u,$v){var $u=DayPilot.Util.parseJSON($u);if($u.BubbleGuid){var $w=$u.BubbleGuid;var $x=this.bubbles[$w];delete this.bubbles[$w];$c.$4K();if(typeof $u.Result.BubbleHTML!=='undefined'){$x.updateView($u.Result.BubbleHTML,$x);};return;};if($u.CallBackRedirect){document.location.href=$u.CallBackRedirect;return;};if(typeof $u.ClientState!=='undefined'){$c.clientState=$u.ClientState;};if($u.UpdateType==="None"){$c.$4K();$c.$4L($u.CallBackData,true);if($u.Message){$c.message($u.Message);};return;};if($u.VsUpdate){var $y=document.createElement("input");$y.type='hidden';$y.name=$c.id+"_vsupdate";$y.id=$y.name;$y.value=$u.VsUpdate;$c.nav.vsph.innerHTML='';$c.nav.vsph.appendChild($y);};$c.$4A();$c.multiselect.clear(true);$c.multiselect.$4M=$u.SelectedEvents;if(typeof $u.TagFields!=='undefined'){$c.tagFields=$u.TagFields;};if(typeof $u.SortDirections!=='undefined'){$c.sortDirections=$u.SortDirections;};if($u.UpdateType==="Full"){$c.colors=$u.Colors;$c.palette=$u.Palette;$c.dirtyColors=$u.DirtyColors;$c.cellProperties=$u.CellProperties;$c.cellConfig=$u.CellConfig;$c.columns=$u.Columns;$c.days=$u.Days;$c.startDate=new DayPilot.Date($u.StartDate).getDatePart();$c.cellDuration=$u.CellDuration;$c.heightSpec=$u.HeightSpec?$u.HeightSpec:$c.heightSpec;$c.businessBeginsHour=$u.BusinessBeginsHour?$u.BusinessBeginsHour:$c.businessBeginsHour;$c.businessEndsHour=$u.BusinessEndsHour?$u.BusinessEndsHour:$c.businessEndsHour;$c.viewType=$u.ViewType;$c.headerLevels=$u.HeaderLevels;$c.backColor=$u.BackColor?$u.BackColor:$c.backColor;$c.nonBusinessBackColor=$u.NonBusinessBackColor?$u.NonBusinessBackColor:$c.nonBusinessBackColor;$c.eventHeaderVisible=$u.EventHeaderVisible?$u.EventHeaderVisible:$c.eventHeaderVisible;$c.timeFormat=$u.TimeFormat?$u.TimeFormat:$c.timeFormat;$c.timeHeaderCellDuration=typeof $u.TimeHeaderCellDuration!=='undefined'?$u.TimeHeaderCellDuration:$c.timeHeaderCellDuration;$c.locale=$u.Locale?$u.Locale:$c.locale;$c.dayBeginsHour=typeof $u.DayBeginsHour!=='undefined'?$u.DayBeginsHour:$c.dayBeginsHour;$c.dayEndsHour=typeof $u.DayEndsHour!=='undefined'?$u.DayEndsHour:$c.dayEndsHour;$c.cornerBackColor=$u.CornerBackColor;$c.cornerHtml=$u.CornerHTML;$c.hours=$u.Hours;$c.$4N();$c.$4O();};if($u.Hashes){for(var $z in $u.Hashes){$c.hashes[$z]=$u.Hashes[$z];}};$c.$4P($u.Events);$c.$4Q();if($u.UpdateType==="Full"||$c.hideFreeCells){$c.$4R();$c.$4S();$c.$4T();$c.$4U();$c.$4V();$c.$4W();$c.$4X();$c.$4Y();$c.clearSelection();if(typeof $u.ScrollY!=="undefined"){$c.scrollToY($u.ScrollY);}else{$c.scrollToY($c.initScrollPos);}};$c.$4Z();$c.$50();$c.$51();$c.$52();if($c.heightSpec==="Parent100Pct"){$c.$4D();};if($c.timeRangeSelectedHandling!=="HoldForever"){$c.clearSelection();};$c.$53();if($c.todo){if($c.todo.del){var $A=$c.todo.del;$A.parentNode.removeChild($A);$c.todo.del=null;}};$c.$4L($u.CallBackData,true);$c.$4K();$c.$54();if($u.Message){$c.message($u.Message);}};this.$4L=function($h,$B){var $C=function($h,$D){return function(){if($c.$55()){if(typeof $c.onAfterRender==='function'){var $n={};$n.isCallBack=$D;$n.data=$h;$c.onAfterRender($n);}}else{if($c.afterRender){$c.afterRender($h,$D);}}};};window.setTimeout($C($h,$B),0);};this.$56=function($E,$F,$l){var $G=$c.nav.events;var $H=$G.clientWidth/$G.rows[0].cells.length;var i=Math.floor($c.coords.x/$H);if(i<0){i=0;};if($c.rtl){i=$c.$57.length-i-1;};var $q=$G.rows[0].cells[i];var $I=0;var $J=0;var top=0;if(typeof $E.duration!=='undefined'){var $K=$E.duration;top=Math.floor((($c.coords.y-$I)+$c.cellHeight/ 2)/ $c.cellHeight)*$c.cellHeight+$I;$J=$K*$c.cellHeight/(60*$c.cellDuration);$J=Math.max($J,$c.cellHeight);}else{var e=$E.event;$J=e.part.height;top=e.part.top;};var $L=document.createElement('div');$L.setAttribute('unselectable','on');$L.style.position='absolute';$L.style.width='100%';$L.style.height=$J+'px';$L.style.left='0px';$L.style.top=top+'px';$L.style.zIndex=101;$L.exclude=true;var $M=document.createElement("div");$L.appendChild($M);if(this.cssOnly){$L.className=$c.$58("_shadow");$M.className=this.$58("_shadow_inner");};if(!this.cssOnly){$M.style.position="absolute";$M.style.top="0px";$M.style.bottom="0px";$M.style.left="0px";$M.style.right="0px";if($l==='Fill'){$M.style.backgroundColor="#aaaaaa";$M.style.opacity=0.5;$M.style.filter="alpha(opacity=50)";$M.style.border='2px solid #aaaaaa';}else{$M.style.border='2px dotted #666666';};if(this.roundedCorners){$M.style.MozBorderRadius="5px";$M.style.webkitBorderRadius="5px";$M.style.borderRadius="5px";}};$q.events.appendChild($L);return $L;};this.$59=function(){return this.$5a()/(3600*1000);};this.$5b=function(){if(this.businessBeginsHour>this.businessEndsHour){return 24-this.businessBeginsHour+this.businessEndsHour;}else{return this.businessEndsHour-this.businessBeginsHour;}};this.$5c=function(){if(this.dayBeginsHour>=this.dayEndsHour){return 24-this.dayBeginsHour+this.dayEndsHour;}else{return this.dayEndsHour-this.dayBeginsHour;}};this.$5a=function($N){var $O=0;if(this.heightSpec==='BusinessHoursNoScroll'){$O=this.$5b();}else if(this.hideFreeCells&&!$N){var $P=(this.$5d-1)*this.cellDuration/this.cellHeight;var $Q=Math.ceil($P/60);var $R=this.businessBeginsHour>this.businessEndsHour?this.businessEndsHour+24:this.businessEndsHour;$O=Math.max(this.dayBeginsHour+$Q,$R)-this.$5e();}else{$O=this.$5c();};return $O*60*60*1000;};this.message=function($S,$T,$U,$V){if(!$S){return;};var $T=$T||this.messageHideAfter||2000;var $U=$U||"#ffffff";var $V=$V||"#000000";var $W=0.8;var $d;var top=this.$5f();var $X=this.showHours?this.hourWidth:0;var $Y=DayPilot.sw($c.$5g());if(!this.cssOnly){top+=1;$X+=2;$Y-=2;};if($c.rtl){var $Z=$X;$X=$Y;$Y=$Z;};if(!this.nav.message){$d=document.createElement("div");$d.style.position="absolute";$d.style.left=($X)+"px";$d.style.top=(top)+"px";$d.style.right="0px";$d.style.display='none';$d.onmousemove=function(){if($d.messageTimeout&&!$d.status){clearTimeout($d.messageTimeout);}};$d.onmouseout=function(){if($c.nav.message.style.display!=='none'){$d.messageTimeout=setTimeout($c.$5h,500);}};var $M=document.createElement("div");$M.onclick=function(){$c.nav.message.style.display='none';};if(!this.cssOnly){$M.style.padding="5px";$M.style.opacity=$W;$M.style.filter="alpha(opacity="+($W*100)+")";}else{$M.className=this.$58("_message");};$d.appendChild($M);var close=document.createElement("div");close.style.position="absolute";if(!this.cssOnly){close.style.top="5px";close.style.right=(DayPilot.sw($c.$5g())+5)+"px";close.style.color=$U;close.style.lineHeight="100%";close.style.cursor="pointer";close.style.fontWeight="bold";close.innerHTML="X";}else{close.className=this.$58("_message_close");};close.onclick=function(){$c.nav.message.style.display='none';};$d.appendChild(close);this.nav.top.insertBefore($d,this.nav.loading);this.nav.message=$d;this.nav.messageClose=close;}else{$d=$c.nav.message;this.nav.message.style.top=top+"px";};if(this.nav.cornerRight){this.nav.message.style.right=$Y+"px";}else{this.nav.message.style.right="0px";};var $00=function(){if(!$c.nav.message){return;};var $M=$c.nav.message.firstChild;if(!$c.cssOnly){$M.style.padding="5px";$M.style.opacity=$W;$M.style.backgroundColor=$V;$M.style.color=$U;};$M.innerHTML=$S;var end=function(){$d.messageTimeout=setTimeout($c.$5h,$T);};DayPilot.fade($c.nav.message,0.2,end);};clearTimeout($d.messageTimeout);if(this.nav.message.style.display!=='none'){DayPilot.fade($c.nav.message,-0.2,$00);}else{$00();}};this.message.show=function($S){$c.message($S);};this.message.hide=function(){$c.$5h();};this.$5h=function(){var end=function(){$c.nav.message.style.display='none';};DayPilot.fade($c.nav.message,-0.2,end);};this.$4U=function(){if(this.nav.message){this.nav.message.style.top=(this.$5f())+"px";}};this.$5i=function(){return this.$5a()/(60*1000*this.cellDuration);};this.eventClickPostBack=function(e,$h){this.$4r('EventClick',$h,e);};this.eventClickCallBack=function(e,$h){this.$4t('EventClick',e,$h);};this.$5j=function(e){var $d=this;var e=e||window.event;var $01=e.ctrlKey;var $02=e.metaKey;if(typeof(DayPilot.Bubble)!=='undefined'){DayPilot.Bubble.hideActive();};if($c.eventDoubleClickHandling==='Disabled'){$c.$5k($d,$01,$02);return;};if(!$c.timeouts){$c.timeouts=[];}else{for(var $03 in $c.timeouts){window.clearTimeout($c.timeouts[$03]);};$c.timeouts=[];};var $04=function($d,$01,$02){return function(){$c.$5k($d,$01,$02);};};$c.timeouts.push(window.setTimeout($04(this,$01,$02),$c.doubleClickTimeout));};this.$5k=function($05,$01,$02){var e=$05.event;if(!e.client.clickEnabled()){return;};if($c.$55()){var $n={};$n.e=e;$n.ctrl=$01;$n.meta=$02;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventClick==='function'){$c.onEventClick($n);if($n.preventDefault.value){return;}};switch($c.eventClickHandling){case 'PostBack':$c.eventClickPostBack(e);break;case 'CallBack':$c.eventClickCallBack(e);break;case 'Edit':$c.$5l($05);break;case 'Select':$c.$5m($05,e,$01,$02);break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;case 'ContextMenu':var $06=e.client.contextMenu();if($06){$06.show(e);}else{if($c.contextMenu){$c.contextMenu.show(e);}};break;};if(typeof $c.onEventClicked==='function'){$c.onEventClicked($n);}}else{switch($c.eventClickHandling){case 'PostBack':$c.eventClickPostBack(e);break;case 'CallBack':$c.eventClickCallBack(e);break;case 'JavaScript':$c.onEventClick(e);break;case 'Edit':$c.$5l($05);break;case 'Select':$c.$5m($05,e,$01,$02);break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;case 'ContextMenu':var $06=e.client.contextMenu();if($06){$06.show(e);}else{if($c.contextMenu){$c.contextMenu.show(e);}};break;}}};this.eventDoubleClickPostBack=function(e,$h){this.$4r('EventDoubleClick',$h,e);};this.eventDoubleClickCallBack=function(e,$h){this.$4t('EventDoubleClick',e,$h);};this.$5n=function(ev){if(typeof(DayPilotBubble)!=='undefined'){DayPilotBubble.hideActive();};if($c.timeouts){for(var $03 in $c.timeouts){window.clearTimeout($c.timeouts[$03]);};$c.timeouts=null;};var e=this.event;var ev=ev||window.event;if($c.$55()){var $n={};$n.e=e;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventDoubleClick==='function'){$c.onEventDoubleClick($n);if($n.preventDefault.value){return;}};switch($c.eventDoubleClickHandling){case 'PostBack':$c.eventDoubleClickPostBack(e);break;case 'CallBack':$c.eventDoubleClickCallBack(e);break;case 'Edit':if(!e.allday()){$c.$5l(this);};break;case 'Select':if(!e.allday()){$c.$5m(this,e,ev.ctrlKey);};break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;};if(typeof $c.onEventDoubleClicked==='function'){$c.onEventDoubleClicked($n);}}else{switch($c.eventDoubleClickHandling){case 'PostBack':$c.eventDoubleClickPostBack(e);break;case 'CallBack':$c.eventDoubleClickCallBack(e);break;case 'JavaScript':$c.onEventDoubleClick(e);break;case 'Edit':if(!e.allday()){$c.$5l(this);};break;case 'Select':if(!e.allday()){$c.$5m(this,e,ev.ctrlKey);};break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;}}};this.eventRightClickPostBack=function(e,$h){this.$4r('EventRightClick',$h,e);};this.eventRightClickCallBack=function(e,$h){this.$4t('EventRightClick',e,$h);};this.$5o=function(ev){var e=this.event;if(!e.client.rightClickEnabled()){return false;};if($c.$55()){var $n={};$n.e=e;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventRightClick==='function'){$c.onEventRightClick($n);if($n.preventDefault.value){return;}};switch($c.eventRightClickHandling){case 'PostBack':$c.eventRightClickPostBack(e);break;case 'CallBack':$c.eventRightClickCallBack(e);break;case 'ContextMenu':var $06=e.client.contextMenu();if($06){$06.show(e);}else{if($c.contextMenu){$c.contextMenu.show(this.event);}};break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;};if(typeof $c.onEventRightClicked==='function'){$c.onEventRightClicked($n);}}else{switch($c.eventRightClickHandling){case 'PostBack':$c.eventRightClickPostBack(e);break;case 'CallBack':$c.eventRightClickCallBack(e);break;case 'JavaScript':$c.onEventRightClick(e);break;case 'ContextMenu':var $06=e.client.contextMenu();if($06){$06.show(e);}else{if($c.contextMenu){$c.contextMenu.show(this.event);}};break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;}};if(ev.preventDefault){ev.preventDefault();};return false;};this.headerClickPostBack=function(c,$h){this.$4r('HeaderClick',$h,c);};this.headerClickCallBack=function(c,$h){this.$4t('HeaderClick',c,$h);};this.$5p=function($E){var $h=this.data;var c=new DayPilotCalendar.Column($h.id,$h.name,$h.start);if($c.$55()){var $n={};$n.header={};$n.header.id=$h.id;$n.header.name=$h.name;$n.header.start=$h.start;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onHeaderClick==='function'){$c.onHeaderClick($n);if($n.preventDefault.value){return;}};switch($c.headerClickHandling){case 'PostBack':$c.headerClickPostBack(c);break;case 'CallBack':$c.headerClickCallBack(c);break;};if(typeof $c.onHeaderClicked==='function'){$c.onHeaderClicked($n);}}else{switch($c.headerClickHandling){case 'PostBack':$c.headerClickPostBack(c);break;case 'CallBack':$c.headerClickCallBack(c);break;case 'JavaScript':$c.onHeaderClick(c);break;}}};this.$5q=function(){if(typeof(DayPilotBubble)!=='undefined'&&$c.columnBubble){if($c.viewType==="Resources"){var $07={};$07.calendar=$c;$07.id=this.data.id;$07.toJSON=function(){var $08={};$08.id=this.id;return $08;};$c.columnBubble.showResource($07);}else{var $09=new DayPilot.Date(this.data.start);var end=$09.addDays(1);var $0a={};$0a.calendar=$c;$0a.start=$09;$0a.end=end;$0a.toJSON=function(){var $08={};$08.start=this.start;$08.end=this.end;return $08;};$c.columnBubble.showTime($0a);}};var $f=this;var $d=$f.firstChild;if(!$d.active){var $h=$f.data;var c=new DayPilotCalendar.Column($h.id,$h.name,$h.start);c.areas=$f.data.areas;DayPilot.Areas.showAreas($d,c);}};this.$5r=function(ev){if(typeof(DayPilotBubble)!=='undefined'&&$c.columnBubble){$c.columnBubble.hideOnMouseOut();};DayPilot.Areas.hideAreas(this.firstChild,ev);};this.eventDeletePostBack=function(e,$h){this.$4r('EventDelete',$h,e);};this.eventDeleteCallBack=function(e,$h){this.$4t('EventDelete',e,$h);};this.$5s=function($E){var e;if($E&&$E.isEvent){e=$E;}else{e=$E.parentNode.parentNode.event;};if($c.$55()){var $n={};$n.e=e;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventDelete==='function'){$c.onEventDelete($n);if($n.preventDefault.value){return;}};switch($c.eventDeleteHandling){case 'PostBack':$c.eventDeletePostBack(e);break;case 'CallBack':$c.eventDeleteCallBack(e);break;case 'Update':$c.events.remove(e);break;};if(typeof $c.onEventDeleted==='function'){$c.onEventDeleted($n);}}else{switch($c.eventDeleteHandling){case 'PostBack':$c.eventDeletePostBack(e);break;case 'CallBack':$c.eventDeleteCallBack(e);break;case 'JavaScript':$c.onEventDelete(e);break;}}};this.eventResizePostBack=function(e,$0b,$0c,$h){if(!$0b){throw 'newStart is null';};if(!$0c){throw 'newEnd is null';};var $0d={};$0d.e=e;$0d.newStart=$0b;$0d.newEnd=$0c;this.$4r('EventResize',$h,$0d);};this.eventResizeCallBack=function(e,$0b,$0c,$h){if(!$0b)throw 'newStart is null';if(!$0c)throw 'newEnd is null';var $0d={};$0d.e=e;$0d.newStart=$0b;$0d.newEnd=$0c;this.$4t('EventResize',$0d,$h);};this.$5t=function($l,$g,$0d,$h){if($l==='PostBack'){$c.postBack2($g,$0d,$h);}else if($l==='CallBack'){$c.$4t($g,$0d,$h,"CallBack");}else if($l==='Immediate'){$c.$4t($g,$0d,$h,"Notify");}else if($l==='Queue'){$c.queue.add(new DayPilot.Action(this,$g,$0d,$h));}else if($l==='Notify'){if($0e.notifyType()==='Notify'){$c.$4t($g,$0d,$h,"Notify");}else{$c.queue.add(new DayPilot.Action($c,$g,$0d,$h));}}else{throw "Invalid event invocation type";}};this.$5e=function($N){if(this.heightSpec==='BusinessHoursNoScroll'){return this.businessBeginsHour;}else if(this.hideFreeCells&&!$N){var $P=(this.$5u)*this.cellDuration/this.cellHeight;var $Q=Math.floor($P/60);$Q=Math.max(0,$Q);return Math.min(this.dayBeginsHour+$Q,this.businessBeginsHour);}else{return this.dayBeginsHour;}};this.visibleStart=function(){return this.$57[0].start;};this.visibleEnd=function(){var $0f=this.$57;var $N=$0f.length-1;return $0f[$N].start.addDays(1);};this.$55=function(){return $c.api===2;};this.$5v=function(e,$0g,$0h,$0i){if(this.eventResizeHandling==='Disabled'){return;};var $I=0;var $0b=new Date();var $0c=new Date();var $09=e.start();var end=e.end();var $0j=$c.cellDuration;var $0k=$c.$57[e.part.dayIndex].start;if($0i==='top'){var $0k=$09.getDatePart();var $0l=Math.floor(($0h-$I)/$c.cellHeight);var $0m=$0l*$0j;var ts=$0m*60*1000;var $0n=$c.$5e()*60*60*1000;$0b=$0k.addTime(ts+$0n);$0c=e.end();}else if($0i==='bottom'){var $0l=Math.floor(($0h+$0g-$I)/$c.cellHeight);var $0m=$0l*$0j;var ts=$0m*60*1000;var $0n=$c.$5e()*60*60*1000;$0b=$09;$0c=$0k.addTime(ts+$0n);};if($c.$55()){var $n={};$n.e=e;$n.newStart=$0b;$n.newEnd=$0c;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventResize==='function'){$c.onEventResize($n);if($n.preventDefault.value){return;}};switch($c.eventResizeHandling){case 'PostBack':$c.eventResizePostBack(e,$0b,$0c);break;case 'CallBack':$c.eventResizeCallBack(e,$0b,$0c);break;case 'Notify':$c.eventResizeNotify(e,$0b,$0c);break;case 'Update':e.start($0b);e.end($0c);$c.events.update(e);break;};if(typeof $c.onEventResized==='function'){$c.onEventResized($n);}}else{switch($c.eventResizeHandling){case 'PostBack':$c.eventResizePostBack(e,$0b,$0c);break;case 'CallBack':$c.eventResizeCallBack(e,$0b,$0c);break;case 'JavaScript':$c.onEventResize(e,$0b,$0c);break;case 'Notify':$c.eventResizeNotify(e,$0b,$0c);break;}}};this.eventResizeNotify=function(e,$0b,$0c,$h){var $0o=new DayPilot.Event(e.copy(),this);e.start($0b);e.end($0c);e.commit();$c.update();this.$5w("Notify",$0o,$0b,$0c,$h);};this.$5w=function($l,e,$0b,$0c,$h){var $0d={};$0d.e=e;$0d.newStart=$0b;$0d.newEnd=$0c;this.$5t($l,"EventResize",$0d,$h);};this.eventMovePostBack=function(e,$0b,$0c,$0p,$h){if(!$0b)throw 'newStart is null';if(!$0c)throw 'newEnd is null';var $0d={};$0d.e=e;$0d.newStart=$0b;$0d.newEnd=$0c;$0d.newResource=$0p;this.$4r('EventMove',$h,$0d);};this.eventMoveCallBack=function(e,$0b,$0c,$0p,$h){if(!$0b)throw 'newStart is null';if(!$0c)throw 'newEnd is null';var $0d={};$0d.e=e;$0d.newStart=$0b;$0d.newEnd=$0c;$0d.newResource=$0p;this.$4t('EventMove',$0d,$h);};this.$5x=function(e,$0q,$0h,ev,$0r){if($c.eventMoveHandling==='Disabled'){return;};var $I=0;var $0l=Math.floor(($0h-$I)/$c.cellHeight);var $0j=$c.cellDuration;var $0s=$0l*$0j*60*1000;var $09=e.start();var end=e.end();var $0k=new Date();if($09 instanceof DayPilot.Date){$09=$09.toDate();};$0k.setTime(Date.UTC($09.getUTCFullYear(),$09.getUTCMonth(),$09.getUTCDate()));var $0t=($c.useEventBoxes!=='Never')?$09.getTime()-($0k.getTime()+$09.getUTCHours()*3600*1000+Math.floor($09.getUTCMinutes()/$0j)*$0j*60*1000):0;var length=end.getTime()-$09.getTime();var $0n=$c.$5e()*3600*1000;var $0u=this.$57[$0q];var $0v=$0u.start.getTime();var $0w=new Date();$0w.setTime($0v+$0s+$0t+$0n);var $0b=new DayPilot.Date($0w);var $0c=$0b.addTime(length);var external=!!$0r;var $0p=$0u.id;if($c.$55()){var $n={};$n.e=e;$n.newStart=$0b;$n.newEnd=$0c;$n.newResource=$0p;$n.external=external;$n.ctrl=false;if(ev){$n.ctrl=ev.ctrlKey;};$n.shift=false;if(ev){$n.shift=ev.shiftKey;};$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventMove==='function'){$c.onEventMove($n);if($n.preventDefault.value){return;}};switch($c.eventMoveHandling){case 'PostBack':$c.eventMovePostBack(e,$0b,$0c,$0p);break;case 'CallBack':$c.eventMoveCallBack(e,$0b,$0c,$0p);break;case 'Notify':$c.eventMoveNotify(e,$0b,$0c,$0p);break;case 'Update':e.start($0b);e.end($0c);e.resource($0p);if(external){e.commit();$c.events.add(e);}else{$c.events.update(e);};$c.$5y();break;};if(typeof $c.onEventMoved==='function'){$c.onEventMoved($n);}}else{switch($c.eventMoveHandling){case 'PostBack':$c.eventMovePostBack(e,$0b,$0c,$0p);break;case 'CallBack':$c.eventMoveCallBack(e,$0b,$0c,$0p);break;case 'JavaScript':$c.onEventMove(e,$0b,$0c,$0p,external,ev?ev.ctrlKey:false,ev?ev.shiftKey:false);break;case 'Notify':$c.eventMoveNotify(e,$0b,$0c,$0p,null);break;}}};this.eventMoveNotify=function(e,$0b,$0c,$0p,$h){var $0o=new DayPilot.Event(e.copy(),this);e.start($0b);e.end($0c);e.resource($0p);e.commit();$c.update();this.$5z("Notify",$0o,$0b,$0c,$0p,$h);};this.$5z=function($l,e,$0b,$0c,$0p,$h){var $0d={};$0d.e=e;$0d.newStart=$0b;$0d.newEnd=$0c;$0d.newResource=$0p;this.$5t($l,"EventMove",$0d,$h);};this.$5y=function(){if($c.todo){if($c.todo.del){var $A=$c.todo.del;$A.parentNode.removeChild($A);$c.todo.del=null;}}};this.$5A=function($n,$x){var $w=$c.$5B($x);var $0d={};$0d.args=$n;$0d.guid=$w;$c.$4t("Bubble",$0d);};this.$5B=function($x){var $w=DayPilot.guid();if(!this.bubbles){this.bubbles=[];};this.bubbles[$w]=$x;return $w;};this.eventMenuClickPostBack=function(e,$0x,$h){var $0d={};$0d.e=e;$0d.command=$0x;this.$4r('EventMenuClick',$h,$0d);};this.eventMenuClickCallBack=function(e,$0x,$h){var $0d={};$0d.e=e;$0d.command=$0x;this.$4t('EventMenuClick',$0d,$h);};this.$5C=function($0x,e,$0y){switch($0y){case 'PostBack':$c.eventMenuClickPostBack(e,$0x);break;case 'CallBack':$c.eventMenuClickCallBack(e,$0x);break;}};this.timeRangeMenuClickPostBack=function(e,$0x,$h){var $0d={};$0d.selection=e;$0d.command=$0x;this.$4r("TimeRangeMenuClick",$h,$0d);};this.timeRangeMenuClickCallBack=function(e,$0x,$h){var $0d={};$0d.selection=e;$0d.command=$0x;this.$4t("TimeRangeMenuClick",$0d,$h);};this.$5D=function($0x,e,$0y){switch($0y){case 'PostBack':$c.timeRangeMenuClickPostBack(e,$0x);break;case 'CallBack':$c.timeRangeMenuClickCallBack(e,$0x);break;}};this.timeRangeSelectedPostBack=function($09,end,$0z,$h){var $0A={};$0A.start=$09;$0A.end=end;$0A.resource=$0z;this.$4r('TimeRangeSelected',$h,$0A);};this.timeRangeSelectedCallBack=function($09,end,$0z,$h){var $0A={};$0A.start=$09;$0A.end=end;$0A.resource=$0z;this.$4t('TimeRangeSelected',$0A,$h);};this.$5E=function($09,end,$q){$09=new DayPilot.Date($09);end=new DayPilot.Date(end);var $0z=$q;if($c.$55()){var $n={};$n.start=$09;$n.end=end;$n.resource=$0z;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onTimeRangeSelect==='function'){$c.onTimeRangeSelect($n);if($n.preventDefault.value){return;}};switch($c.timeRangeSelectedHandling){case 'PostBack':$c.timeRangeSelectedPostBack($09,end,$0z);break;case 'CallBack':$c.timeRangeSelectedCallBack($09,end,$0z);break;};if(typeof $c.onTimeRangeSelected==='function'){$c.onTimeRangeSelected($n);}}else{switch($c.timeRangeSelectedHandling){case 'PostBack':$c.timeRangeSelectedPostBack($09,end,$q);break;case 'CallBack':$c.timeRangeSelectedCallBack($09,end,$q);break;case 'JavaScript':$c.onTimeRangeSelected($09,end,$q);break;}}};this.timeRangeDoubleClickPostBack=function($09,end,$q,$h){var $0A={};$0A.start=$09;$0A.end=end;$0A.resource=$q;this.$4r('TimeRangeDoubleClick',$h,$0A);};this.timeRangeDoubleClickCallBack=function($09,end,$q,$h){var $0A={};$0A.start=$09;$0A.end=end;$0A.resource=$q;this.$4t('TimeRangeDoubleClick',$0A,$h);};this.$5F=function($09,end,$q){if($c.$55()){var $0z=$q;var $n={};$n.start=$09;$n.end=end;$n.resource=$0z;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onTimeRangeDoubleClick==='function'){$c.onTimeRangeDoubleClick($n);if($n.preventDefault.value){return;}};switch($c.timeRangeDoubleClickHandling){case 'PostBack':$c.timeRangeDoubleClickPostBack($09,end,$0z);break;case 'CallBack':$c.timeRangeDoubleClickCallBack($09,end,$0z);break;};if(typeof $c.onTimeRangeDoubleClicked==='function'){$c.onTimeRangeDoubleClicked($n);}}else{switch($c.timeRangeDoubleClickHandling){case 'PostBack':$c.timeRangeDoubleClickPostBack($09,end,$q);break;case 'CallBack':$c.timeRangeDoubleClickCallBack($09,end,$q);break;case 'JavaScript':$c.onTimeRangeDoubleClick($09,end,$q);break;}}};this.eventEditPostBack=function(e,$0B,$h){var $0d={};$0d.e=e;$0d.newText=$0B;this.$4r("EventEdit",$h,$0d);};this.eventEditCallBack=function(e,$0B,$h){var $0d={};$0d.e=e;$0d.newText=$0B;this.$4t("EventEdit",$0d,$h);};this.$5G=function(e,$0B){if($c.$55()){var $n={};$n.e=e;$n.newText=$0B;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventEdit==='function'){$c.onEventEdit($n);if($n.preventDefault.value){return;}};switch($c.eventEditHandling){case 'PostBack':$c.eventEditPostBack(e,$0B);break;case 'CallBack':$c.eventEditCallBack(e,$0B);break;case 'Update':e.text($0B);$c.events.update(e);break;};if(typeof $c.onEventEdited==='function'){$c.onEventEdited($n);if($n.preventDefault.value){return;}}}else{switch($c.eventEditHandling){case 'PostBack':$c.eventEditPostBack(e,$0B);break;case 'CallBack':$c.eventEditCallBack(e,$0B);break;case 'JavaScript':$c.onEventEdit(e,$0B);break;}}};this.eventSelectPostBack=function(e,$0C,$h){var $0d={};$0d.e=e;$0d.change=$0C;this.$4r('EventSelect',$h,$0d);};this.eventSelectCallBack=function(e,$0C,$h){var $0d={};$0d.e=e;$0d.change=$0C;this.$4t('EventSelect',$0d,$h);};this.$5H=function($d,e,$01,$02){var m=$c.multiselect;var $0D=false;var $0E=m.isSelected(e);var $0F=$01||$02;if(!$0F&&$0E&&!$0D&&m.$5I.length===1){return;};if($c.$55()){m.previous=m.events();var $n={};$n.e=e;$n.selected=m.isSelected(e);$n.ctrl=$01;$n.meta=$02;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventSelect==='function'){$c.onEventSelect($n);if($n.preventDefault.value){return;}};switch($c.eventSelectHandling){case 'PostBack':$c.eventSelectPostBack(e,$0C);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){window.__theFormPostData="";window.__theFormPostCollection=[];WebForm_InitCallback();};$c.eventSelectCallBack(e,$0C);break;case 'Update':m.$5J($d,$01);break;};if(typeof $c.onEventSelected==='function'){$n.change=m.isSelected(e)?"selected":"deselected";$n.selected=m.isSelected(e);$c.onEventSelected($n);}}else{m.previous=m.events();m.$5J($d,$01);var $0C=m.isSelected(e)?"selected":"deselected";switch($c.eventSelectHandling){case 'PostBack':$c.eventSelectPostBack(e,$0C);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){window.__theFormPostData="";window.__theFormPostCollection=[];WebForm_InitCallback();};$c.eventSelectCallBack(e,$0C);break;case 'JavaScript':$c.onEventSelect(e,$0C);break;}}};this.commandCallBack=function($0x,$h){this.$4z();var $0d={};$0d.command=$0x;this.$4t('Command',$0d,$h);};this.$5K=function(ev){if($0G.active||$0G.using){return;};clearTimeout(DayPilotCalendar.selectedTimeout);if(DayPilotCalendar.selecting){return;};if(DayPilotCalendar.editing){DayPilotCalendar.editing.blur();return;};if($c.selectedCells&&$c.timeRangeDoubleClickHandling!=='Disabled'){for(var i=0;i<$c.selectedCells.length;i++){if(this===$c.selectedCells[i]){return;}}};if($c.timeRangeSelectedHandling==="Disabled"){return;};var $0H=DayPilot.Util.mouseButton(ev);if(!$0H.left){return;};DayPilotCalendar.firstMousePos=DayPilot.mc(ev||window.event);$c.clearSelection();DayPilotCalendar.topSelectedCell=this;DayPilotCalendar.bottomSelectedCell=this;DayPilotCalendar.column=DayPilotCalendar.getColumn(this);$c.selectedCells.push(this);DayPilotCalendar.firstSelected=this;};this.$5L=function(){var $0I=this.getSelection();if(!$0I){return;};if(!$c.selectedCells){return;};for(var j=0;j<$c.selectedCells.length;j++){var $f=$c.selectedCells[j];if($f&&!$f.selected){var $d=document.createElement("div");$d.style.height=($c.cellHeight-1)+"px";$d.style.backgroundColor=$c.selectedColor;$f.firstChild.style.display="none";$f.insertBefore($d,$f.firstChild);$f.selected=$d;}}};this.$5M=function(ev){if(typeof(DayPilotBubble)!=='undefined'&&$c.cellBubble){$c.cellBubble.hideOnMouseOut();}};this.$5N=function(ev){if(typeof(DayPilotCalendar)==='undefined'){return;};if($0G.active||$0G.using){return;};if(typeof(DayPilotBubble)!=='undefined'&&$c.cellBubble){var $q=DayPilotCalendar.getColumn(this);var $07=$c.$57[$q].id;var $f={};$f.calendar=$c;$f.start=this.start;$f.end=this.end;$f.resource=$07;$f.toJSON=function(){var $08={};$08.start=this.start;$08.end=this.end;$08.resource=this.resource;return $08;};$c.cellBubble.showCell($f);};if(DayPilotCalendar.firstMousePos){var $0J=DayPilotCalendar.firstMousePos;var $0K=DayPilot.mc(ev||window.event);if($0J.x!==$0K.x||$0J.y!==$0K.y){DayPilotCalendar.selecting=true;$c.clearSelection();$c.$5L();}};if(!DayPilotCalendar.selecting){return;};var $0L=DayPilot.mc(ev||window.event);var $0M=DayPilotCalendar.getColumn(this);if($0M!==DayPilotCalendar.column){return;};$c.clearSelection();if($0L.y<DayPilotCalendar.firstMousePos.y){$c.selectedCells=DayPilotCalendar.getCellsBelow(this);DayPilotCalendar.topSelectedCell=$c.selectedCells[0];DayPilotCalendar.bottomSelectedCell=DayPilotCalendar.firstSelected;}else{$c.selectedCells=DayPilotCalendar.getCellsAbove(this);DayPilotCalendar.topSelectedCell=DayPilotCalendar.firstSelected;DayPilotCalendar.bottomSelectedCell=$c.selectedCells[0];};$c.$5L();};this.getSelection=function(){if(!DayPilotCalendar.topSelectedCell){return null;};if(!DayPilotCalendar.bottomSelectedCell){return null;};var $09=DayPilotCalendar.topSelectedCell.start;var end=DayPilotCalendar.bottomSelectedCell.end;var $0N=DayPilotCalendar.topSelectedCell.resource;return new DayPilot.Selection($09,end,$0N,$c);};this.$5O=function(ev){if(DayPilotCalendar.firstMousePos){var $0O=function(){DayPilotCalendar.selecting=true;$c.$5L();DayPilotCalendar.firstMousePos=null;DayPilotCalendar.selecting=false;var $0P=$c.getSelection();$c.$5E($0P.start,$0P.end,$0P.resource);};if(DayPilotCalendar.selecting&&DayPilotCalendar.topSelectedCell!==null){$0O();}else{DayPilotCalendar.selectedTimeout=setTimeout($0O,100);}}else{DayPilotCalendar.selecting=false;}};this.$5P=function(ev){var $0Q=$c.columnWidthSpec==="Fixed";if($0Q||$c.$5Q){if(!$c.nav.bottomLeft){return;};$c.nav.bottomLeft.scrollTop=$c.nav.bottomRight.scrollTop;if($c.nav.upperRight){$c.nav.upperRight.scrollLeft=$c.nav.bottomRight.scrollLeft;}};var scroll=$c.$5R();$c.scrollPos=scroll.scrollTop;$c.$5S=scroll.clientHeight;$c.nav.scrollpos.value=$c.scrollPos;$c.$53();};this.$53=function(){if(!this.scrollLabelsVisible){return;};if(!this.$5T){return;};var $0R=this.nav&&this.nav.main&&this.nav.main.rows&&this.nav.main.rows.length>0&&this.nav.main.rows[0].cells.length>0;if(!$0R){return;};var $0f=this.$57;var $0S=(this.showHours?this.hourWidth:0);var $H=this.nav.main.rows[0].cells[0].clientWidth;var iw=10;var $0T=1;for(var i=0;i<this.nav.scrollUp.length;i++){var $0U=this.nav.scrollUp[i];var $0V=this.nav.scrollDown[i];var $X=Math.floor($0S+i*$H+$H/ 2-(iw/ 2)+$0T);if($X<0){$X=0;};if($0U&&$0U.style){$0U.style.left=$X+"px";};if($0V&&$0V.style){$0V.style.left=$X+"px";}};var $0W=this.$5U();for(var i=0;i<this.nav.scrollUp.length;i++){var up=this.nav.scrollUp[i];var $0X=this.nav.scrollDown[i];var $0Y=this.$5T[i].minEnd-$0W;var $0Z=this.$5T[i].maxStart-$0W;if(up&&$0X){if($0Y<=$c.scrollPos){up.style.top=(this.$5f())+"px";up.style.display='';}else{up.style.display='none';};if($0Z>=$c.scrollPos+$c.$5S){$0X.style.top=(this.$5f()+this.$5S-10)+"px";$0X.style.display='';}else{$0X.style.display='none';}}}};this.$5V=function($E){var $10=$E.parentNode;while($10&&$10.tagName!=="TD"){$10=$10.parentNode;};var $X=0;var top=$E.offsetTop;var $11=$E.parentNode.offsetWidth;var $J=$E.offsetHeight;if($E.event.allday()){$X=$E.offsetLeft;$11=$E.offsetWidth;};var $12=document.createElement('textarea');$12.style.boxSizing="border-box";$12.style.position='absolute';$12.style.width=$11+'px';$12.style.height=$J+'px';var $13=DayPilot.gs($E,'fontFamily');if(!$13)$13=DayPilot.gs($E,'font-family');$12.style.fontFamily=$13;var $14=DayPilot.gs($E,'fontSize');if(!$14)$14=DayPilot.gs($E,'font-size');$12.style.fontSize=$14;$12.style.left=$X+'px';$12.style.top=top+'px';$12.style.border='1px solid black';$12.style.padding='0px';$12.style.marginTop='0px';$12.style.backgroundColor='white';$12.value=DayPilot.tr($E.event.text());$12.event=$E.event;$10.firstChild.appendChild($12);return $12;};this.$5m=function($d,e,$01,$02){$c.$5H($d,e,$01,$02);};this.multiselect={};this.multiselect.$4M=[];this.multiselect.$5I=[];this.multiselect.$5W=[];this.multiselect.$5X=[];this.multiselect.$5Y=function(){var m=$c.multiselect;return DayPilot.JSON.stringify(m.events());};this.multiselect.events=function(){var m=$c.multiselect;var $15=[];$15.ignoreToJSON=true;for(var i=0;i<m.$5I.length;i++){$15.push(m.$5I[i]);};return $15;};this.multiselect.$5Z=function(){var h=$c.nav.select;h.value=$c.multiselect.$5Y();};this.multiselect.$5J=function($d,$16){var m=$c.multiselect;if(m.isSelected($d.event)){if($c.allowMultiSelect){if($16){m.remove($d.event,true);}else{var $17=m.$5I.length;m.clear(true);if($17>1){m.add($d.event,true);}}}else{m.clear(true);}}else{if($c.allowMultiSelect){if($16){m.add($d.event,true);}else{m.clear(true);m.add($d.event,true);}}else{m.clear(true);m.add($d.event,true);}};m.redraw();m.$5Z();};this.multiselect.$60=function(ev){var m=$c.multiselect;return m.$61(ev,m.$4M);};this.multiselect.$62=function(){var m=$c.multiselect;var $18=[];for(var i=0;i<m.$5I.length;i++){var event=m.$5I[i];$18.push(event.value());};alert($18.join("\n"));};this.multiselect.add=function(ev,$19){var m=$c.multiselect;if(m.$63(ev)===-1){m.$5I.push(ev);};m.$5Z();if($19){return;};m.redraw();};this.multiselect.remove=function(ev,$19){var m=$c.multiselect;var i=m.$63(ev);if(i!==-1){m.$5I.splice(i,1);};m.$5Z();if($19){return;};m.redraw();};this.multiselect.clear=function($19){var m=$c.multiselect;m.$5I=[];m.$5Z();if($19){return;};m.redraw();};this.multiselect.redraw=function(){var m=$c.multiselect;for(var i=0;i<$c.elements.events.length;i++){var $d=$c.elements.events[i];if(m.isSelected($d.event)){m.$64($d);}else{m.$65($d);}}};this.multiselect.$64=function($d){var m=$c.multiselect;var cn=$c.cssOnly?$c.$58("_selected"):$c.$58("selected");var c=m.$66($d);DayPilot.Util.addClass(c,cn);if($c.useEventSelectionBars){m.$67($d);};m.$5W.push($d);};this.multiselect.$66=function($d){if($c.cssOnly){return $d;};for(var i=0;i<$d.childNodes.length;i++){var c=$d.childNodes[i];if(c.getAttribute("c")==="1"){return c;}};return null;};this.multiselect.$68=function(){var m=$c.multiselect;for(var i=0;i<m.$5W.length;i++){var $d=m.$5W[i];m.$65($d,true);};m.$5W=[];};this.multiselect.$65=function($d,$1a){var m=$c.multiselect;var cn=$c.cssOnly?$c.$58("_selected"):$c.$58("selected");var c=m.$66($d);DayPilot.Util.removeClass(c,cn);if($c.useEventSelectionBars){m.$69($d);};if($1a){return;};var i=DayPilot.indexOf(m.$5W,$d);if(i!==-1){m.$5W.splice(i,1);}};this.multiselect.isSelected=function(ev){return $c.multiselect.$61(ev,$c.multiselect.$5I);};this.multiselect.$63=function(ev){return DayPilot.indexOf($c.multiselect.$5I,ev);};this.multiselect.$61=function(e,$18){if(!$18){return false;};for(var i=0;i<$18.length;i++){var ei=$18[i];if(e===ei){return true;};if(typeof ei.value==='function'){if(ei.value()!==null&&e.value()!==null&&ei.value()===e.value()){return true;};if(ei.value()===null&&e.value()===null&&ei.recurrentMasterId()===e.recurrentMasterId()&&e.start().toStringSortable()===ei.start()){return true;}}else{if(ei.value!==null&&e.value()!==null&&ei.value===e.value()){return true;};if(ei.value===null&&e.value()===null&&ei.recurrentMasterId===e.recurrentMasterId()&&e.start().toStringSortable()===ei.start){return true;}}};return false;};this.multiselect.$67=function($1b){var w=5;if(!$1b.top){var top=document.createElement("div");top.setAttribute("unselectable","on");top.style.position='absolute';top.style.left=$1b.offsetLeft+'px';top.style.width=$1b.offsetWidth+'px';top.style.top=($1b.offsetTop-w)+'px';top.style.height=w+'px';top.style.backgroundColor=$c.eventSelectColor;top.style.zIndex=100;$1b.parentNode.appendChild(top);$1b.top=top;};if(!$1b.bottom){var $1c=document.createElement("div");$1c.setAttribute("unselectable","on");$1c.style.position='absolute';$1c.style.left=$1b.offsetLeft+'px';$1c.style.width=$1b.offsetWidth+'px';$1c.style.top=($1b.offsetTop+$1b.offsetHeight)+'px';$1c.style.height=w+'px';$1c.style.backgroundColor=$c.eventSelectColor;$1c.style.zIndex=100;$1b.parentNode.appendChild($1c);$1b.bottom=$1c;}};this.multiselect.$69=function($1b){if($1b.top){$1b.parentNode.removeChild($1b.top);$1b.top=null;};if($1b.bottom){$1b.parentNode.removeChild($1b.bottom);$1b.bottom=null;}};this.$5l=function($E){if(DayPilotCalendar.editing){DayPilotCalendar.editing.blur();return;};var $12=this.$5V($E);DayPilotCalendar.editing=$12;DayPilot.re($12,DayPilot.touch.start,function(ev){ev.stopPropagation();});$12.onblur=function(){var id=$E.event.value();var $1d=$E.event.tag();var $1e=$E.event.text();var $0B=$12.value;DayPilotCalendar.editing=null;$12.parentNode.removeChild($12);if($1e===$0B){return;};$E.style.display='none';$c.$5G($E.event,$0B);};$12.onkeypress=function(e){var $1f=(window.event)?event.keyCode:e.keyCode;if($1f===13){this.onblur();return false;}else if($1f===27){$12.parentNode.removeChild($12);DayPilotCalendar.editing=false;};return true;};$12.select();$12.focus();};this.$6a=function(){if($c.viewType==="Resources"){return false;};if($c.columns&&$c.$4u()){return false;};return true;};this.$4N=function(){var $1g=$c.$6a();if($1g){this.$57=this.$6b();this.$6c(this.$57);}else{if(!this.columns){this.columns=[];};this.$6c(this.columns);this.$57=this.$6d(this.headerLevels,true);}};this.$6e=function(){var $09=this.startDate.getDatePart();var $1h=this.days;switch(this.viewType){case "Day":$1h=1;break;case "Week":$1h=7;$09=$09.firstDayOfWeek($0e.weekStarts());break;case "WorkWeek":$1h=5;$09=$09.firstDayOfWeek(1);break;};var end=$09.addDays($1h);var $u={};$u.start=$09;$u.end=end;$u.days=$1h;return $u;};this.$6b=function(){var $0f=[];var $1i=this.$6e();var $09=$1i.start;var $1h=$1i.days;for(var i=0;i<$1h;i++){var $q={};$q.start=$09.addDays(i);var $1j=$0e.locale().datePattern;if($c.headerDateFormat){$1j=$c.headerDateFormat;};$q.name=$q.start.toString($1j);$q.html=$q.name;$0f.push($q);};return $0f;};this.$6f=function($q){if($q.Start){$q.id=$q.Value;$q.start=$q.Start;$q.name=$q.Name;$q.html=$q.InnerHTML;$q.toolTip=$q.ToolTip;$q.backColor=$q.BackColor;$q.areas=$q.Areas;$q.children=$q.Children;delete $q.Value;delete $q.Start;delete $q.Name;delete $q.InnerHTML;delete $q.ToolTip;delete $q.BackColor;delete $q.Areas;delete $q.Children;};$q.start=$q.start||$c.startDate;$q.start=new DayPilot.Date($q.start);$q.html=$q.html||$q.name;$q.getChildren=function($1k,$1l){var $18=[];if($1k<=1){$18.push(this);return $18;};if(!this.children||this.children.length===0){if($1l){$18.push(this);}else{$18.push("empty");};return $18;};for(var i=0;i<this.children.length;i++){var $1m=this.children[i];var $1n=$1m.getChildren($1k-1,$1l);for(var j=0;j<$1n.length;j++){$18.push($1n[j]);}};return $18;};$q.getChildrenCount=function($1k){var $17=0;if(!this.children||this.children.length<=0||$1k<=1){return 1;};for(var i=0;i<this.children.length;i++){$17+=this.children[i].getChildrenCount($1k-1);};return $17;};$q.putIntoBlock=function(ep){for(var i=0;i<this.blocks.length;i++){var $1o=this.blocks[i];if($1o.overlapsWith(ep.part.top,ep.part.height)){$1o.events.push(ep);$1o.min=Math.min($1o.min,ep.part.top);$1o.max=Math.max($1o.max,ep.part.top+ep.part.height);return i;}};var $1o=[];$1o.lines=[];$1o.events=[];$1o.overlapsWith=function($09,$11){var end=$09+$11-1;if(!(end<this.min||$09>this.max-1)){return true;};return false;};$1o.putIntoLine=function(ep){var $1p=this;for(var i=0;i<this.lines.length;i++){var $1q=this.lines[i];if($1q.isFree(ep.part.top,ep.part.height)){$1q.push(ep);return i;}};var $1q=[];$1q.isFree=function($09,$11){var end=$09+$11-1;var $N=this.length;for(var i=0;i<$N;i++){var e=this[i];if(!(end<e.part.top||$09>e.part.top+e.part.height-1)){return false;}};return true;};$1q.push(ep);this.lines.push($1q);return this.lines.length-1;};$1o.events.push(ep);$1o.min=ep.part.top;$1o.max=ep.part.top+ep.part.height;this.blocks.push($1o);return this.blocks.length-1;};$q.putIntoLine=function(ep){var $1p=this;for(var i=0;i<this.lines.length;i++){var $1q=this.lines[i];if($1q.isFree(ep.part.top,ep.part.height)){$1q.push(ep);return i;}};var $1q=[];$1q.isFree=function($09,$11){var end=$09+$11-1;var $N=this.length;for(var i=0;i<$N;i++){var e=this[i];if(!(end<e.part.top||$09>e.part.top+e.part.height-1)){return false;}};return true;};$1q.push(ep);this.lines.push($1q);return this.lines.length-1;};if($q.children){this.$6c($q.children);}};this.$6c=function(cc){DayPilot.list(cc).each(function($1r){$c.$6f($1r);});};this.$6d=function($1k,$1l){var $1s=this.$6a()?this.$57:this.columns;var $18=[];for(var i=0;i<$1s.length;i++){var $t=$1s[i].getChildren($1k,$1l);for(var j=0;j<$t.length;j++){$18.push($t[j]);}};return $18;};this.$52=function(){if(!this.showAllDayEvents){return;};var $1t=this.nav.header;if(!$1t){return;};$1t.style.display='none';var $0f=this.$57.length;for(var j=0;j<this.$6g.lines.length;j++){var $1q=this.$6g.lines[j];for(var i=0;i<$1q.length;i++){var $h=$1q[i];var $d=document.createElement("div");$d.event=$h;$d.setAttribute("unselectable","on");$d.style.position='absolute';if($c.rtl){$d.style.right=(100.0*$h.part.colStart/$0f)+"%";}else{$d.style.left=(100.0*$h.part.colStart/$0f)+"%";};$d.style.width=(100.0*$h.part.colWidth/$0f)+"%";$d.style.height=$0e.allDayEventHeight()+'px';if(!this.cssOnly){$d.style.top=(3+this.headerLevels*$0e.headerHeight()+j*($0e.allDayEventHeight()+2))+"px";}else{$d.className=this.$58("_alldayevent");$d.style.top=(this.headerLevels*$0e.headerHeight()+j*($0e.allDayEventHeight()))+"px";};$d.style.textAlign='left';$d.style.lineHeight="1.2";if($h.client.clickEnabled()){$d.onclick=this.$5j;};if($h.client.doubleClickEnabled()){$d.ondblclick=this.$5n;};if($h.client.clickEnabled()||$h.client.doubleClickEnabled()){$d.style.cursor="pointer";}else{$d.style.cursor="default";};DayPilot.re($d,"contextmenu",this.$5o);$d.onmousemove=function(ev){var $d=this;if(!$d.active){var $1u=[];if($h.client.deleteEnabled()){$1u.push({"action":"JavaScript","v":"Hover","w":17,"h":17,"top":3,"right":3,"css":$c.$58("_event_delete"),"js":function(e){$c.$5s(e);}});};var $18=$d.event.cache?$d.event.cache.areas:$d.event.data.areas;if($18&&$18.length>0){$1u=$1u.concat($18);};DayPilot.Areas.showAreas($d,$d.event,null,$1u);if($c.cssOnly){DayPilot.Util.addClass($d,$c.$58("_alldayevent_hover"));}};if(typeof(DayPilotBubble)!=='undefined'&&$c.bubble&&$c.eventHoverHandling!=='Disabled'){$c.bubble.showEvent(this.event);}};$d.onmouseout=function(ev){var $d=this;if($c.cssOnly){DayPilot.Util.removeClass($d,$c.$58("_alldayevent_hover"));};DayPilot.Areas.hideAreas(this,ev);if($c.bubble){$c.bubble.hideOnMouseOut();}};if(this.showToolTip&&!this.bubble){$d.setAttribute("title",$h.client.toolTip());};var $1v=$h.start().getTime()===$h.part.start.getTime();var $1w=$h.end().getTime()===$h.part.end.getTime();var back=$h.data.backColor;if(!this.cssOnly){var $M=document.createElement("div");$M.setAttribute("unselectable","on");$M.style.marginLeft='2px';$M.style.marginRight='3px';$M.style.paddingLeft='2px';$M.style.height=($0e.allDayEventHeight()-2)+'px';$M.style.border='1px solid '+this.allDayEventBorderColor;$M.style.overflow='hidden';$M.style.position='relative';$M.style.backgroundColor=back;$M.className=this.$58("alldayevent");if(this.roundedCorners){$M.style.MozBorderRadius="5px";$M.style.webkitBorderRadius="5px";$M.style.borderRadius="5px";};var $1x=[];var $1y=true;var $1z=this.showAllDayEventStartEnd;var $1A=this.showAllDayEventStartEnd;var $1B="Center";var $1C=0;if($1z){if($1B==='Left'){$1x.push("<div unselectable='on' style='position:absolute;text-align:left;height:1px;font-size:1px;width:100%'><div unselectable='on' style='font-size:8pt;color:gray;text-align:right;");$1x.push("width:");$1x.push($1C-4);$1x.push("px;");$1x.push("><span style='background-color:");}else{$1x.push("<div unselectable='on' style='position:absolute;text-align:left;height:1px;font-size:1px;width:100%'><div unselectable='on' style='font-size:8pt;color:gray'><span style='background-color:");};$1x.push('transparent');$1x.push("' unselectable='on'>");if($1v){if($h.start().getDatePart().getTime()!==$h.start().getTime()){$1x.push(DayPilot.DateUtil.hours($h.start(),this.$6h.timeFormat()==='Clock12Hours'));}}else{$1x.push("~");};$1x.push("</span></div></div>");};if($1A){$1x.push("<div unselectable='on' style='position:absolute;text-align:right;height:1px;font-size:1px;width:100%'><div unselectable='on' style='margin-right:4px;font-size:8pt;color:gray'><span style='background-color:");$1x.push('transparent');$1x.push("' unselectable='on'>");if($1w){if($h.end().getDatePart().getTime()!==$h.end().getTime()){$1x.push(DayPilot.DateUtil.hours($h.end(),this.$6h.timeFormat()==='Clock12Hours'));}}else{$1x.push("~");};$1x.push("</span></div></div>");};if($1B==='Left'){var $X=$1z?$1C:0;$1x.push("<div style='margin-top:0px;height:");$1x.push($0e.allDayEventHeight()-2);$1x.push("px;");$1x.push(";overflow:hidden;text-align:left;padding-left:");$1x.push($X);$1x.push("px;font-size:");$1x.push(this.allDayEventFontSize);$1x.push(";color:");$1x.push(this.allDayEventFontColor);$1x.push(";font-family:");$1x.push(this.eventFontFamily);$1x.push("' unselectable='on'>");if($h.client.innerHTML()){$1x.push($h.client.innerHTML());}else{$1x.push($h.text());};$1x.push("</div>");}else if($1B==='Center'){if($1y){$1x.push("<div style='position:absolute; text-align:center; width: 98%; height:1px;'>");$1x.push("<span style='background-color:");$1x.push('transparent');$1x.push(";font-size:");$1x.push(this.allDayEventFontSize);$1x.push(";color:");$1x.push(this.allDayEventFontColor);$1x.push(";font-family:");$1x.push(this.allDayEventFontFamily);$1x.push("' unselectable='on'>");if($h.client.innerHTML()){$1x.push($h.client.innerHTML());}else{$1x.push($h.text());};$1x.push("</span>");$1x.push("</div>");}else{$1x.push("<div style='margin-top:0px;height:");$1x.push($0e.allDayEventHeight()-2);$1x.push("px;");$1x.push(";overflow:hidden;text-align:center;font-size:");$1x.push(this.allDayEventFontSize);$1x.push(";color:");$1x.push(this.allDayEventFontColor);$1x.push(";font-family:");$1x.push(this.allDayEventFontFamily);$1x.push("' unselectable='on'>");if($h.client.innerHTML()){$1x.push($h.client.innerHTML());}else{$1x.push($h.text());};$1x.push("</div>");}};$M.innerHTML=$1x.join('');$d.appendChild($M);}else{var $M=document.createElement("div");$M.setAttribute("unselectable","on");$M.className=this.$58("_alldayevent_inner");if(back){$M.style.background=back;};if($c.rtl){if(!$1v){DayPilot.Util.addClass($d,this.$58("_alldayevent_continueright"));};if(!$1w){DayPilot.Util.addClass($d,this.$58("_alldayevent_continueleft"));}}else{if(!$1v){DayPilot.Util.addClass($d,this.$58("_alldayevent_continueleft"));};if(!$1w){DayPilot.Util.addClass($d,this.$58("_alldayevent_continueright"));}};if($h.client.innerHTML()){$M.innerHTML=$h.client.innerHTML();}else{$M.innerHTML=$h.text();};$d.appendChild($M);};if($c.$55()){if(typeof $c.onAfterEventRender==='function'){var $n={};$n.e=$d.event;$n.div=$d;$c.onAfterEventRender($n);}}else{if($c.afterEventRender){$c.afterEventRender($d.event,$d);}};this.nav.allday.appendChild($d);this.elements.events.push($d);}};$1t.style.display='';};this.$4A=function($1D){$c.multiselect.$68();if(this.elements.events){for(var i=0;i<this.elements.events.length;i++){var $d=this.elements.events[i];var $E=$d.event;if($E&&$1D&&!$E.allday()){continue;};if($E){$E.div=null;$E.root=null;};$d.onclick=null;$d.onclickSave=null;$d.ondblclick=null;$d.oncontextmenu=null;$d.onmouseover=null;$d.onmouseout=null;$d.onmousemove=null;$d.onmousedown=null;if($d.firstChild&&$d.firstChild.firstChild&&$d.firstChild.firstChild.tagName&&$d.firstChild.firstChild.tagName.toUpperCase()==='IMG'){var $1E=$d.firstChild.firstChild;$1E.onmousedown=null;$1E.onmousemove=null;$1E.onclick=null;};$d.helper=null;$d.event=null;DayPilot.de($d);}};this.elements.events=[];};this.$6i=function($h){var $G=this.nav.events;var $1F=this.roundedCorners;var $1G=this.roundedCorners&&(this.$4p.ff||this.$4p.opera105||this.$4p.webkit522||!this.$4p.ielt9);var $1H=this.roundedCorners&&!$1G;var $1I=$h.cache||$h.data;var $1J=$1I.borderColor||this.eventBorderColor;var $d=document.createElement("div");$d.setAttribute("unselectable","on");$d.style.MozUserSelect='none';$d.style.KhtmlUserSelect='none';$d.style.WebkitUserSelect='none';$d.style.position='absolute';if(!this.cssOnly){$d.style.fontFamily=this.eventFontFamily;$d.style.fontSize=this.eventFontSize;$d.style.color=$1I.fontColor||this.eventFontColor;if(!$1F){$d.style.backgroundColor=$1J;}}else{$d.className=this.$58("_event");};$d.style.left=$h.part.left+'%';$d.style.top=($h.part.top-this.$5U())+'px';$d.style.width=$h.part.width+'%';$d.style.height=Math.max($h.part.height,2)+'px';$d.style.overflow='hidden';$d.isFirst=$h.part.start.getTime()===$h.start().getTime();$d.isLast=$h.part.end.getTime()===$h.end().getTime();if($h.client.clickEnabled()){$d.onclick=this.$5j;};if($h.client.doubleClickEnabled()){$d.ondblclick=this.$5n;};DayPilot.re($d,"contextmenu",this.$5o);$d.onmousemove=this.$6j;$d.onmouseout=this.$6k;$d.onmousedown=this.$6l;DayPilot.re($d,DayPilot.touch.start,this.$6m.onEventTouchStart);DayPilot.re($d,DayPilot.touch.move,this.$6m.onEventTouchMove);DayPilot.re($d,DayPilot.touch.end,this.$6m.onEventTouchEnd);var $1x=[];if($1I.cssClass){DayPilot.Util.addClass($d,$1I.cssClass);};if(this.showToolTip&&!this.bubble){$d.setAttribute("title",$h.client.toolTip());};var $M=document.createElement("div");$M.setAttribute("unselectable","on");$M.className=$c.$58("_event_inner");$M.innerHTML=$h.client.innerHTML();if($1I.fontColor){$M.style.color=$1I.fontColor;};if($1I.backColor){$M.style.background=$1I.backColor;if(DayPilot.browser.ie9||DayPilot.browser.ielt9){$M.style.filter='';}};if($1I.borderColor){$M.style.borderColor=$1I.borderColor;};if($1I.backgroundImage){$M.style.backgroundImage="url("+$1I.backgroundImage+")";if($1I.backgroundRepeat){$M.style.backgroundRepeat=$1I.backgroundRepeat;}};$d.appendChild($M);if($h.client.barVisible()){var $J=$h.part.height-2;var $1K=100*$h.part.barTop/$J;var $1L=Math.ceil(100*$h.part.barHeight/$J);if(this.durationBarMode==="PercentComplete"){$1K=0;$1L=$1I.complete;};var $1M=document.createElement("div");$1M.setAttribute("unselectable","on");$1M.className=this.$58("_event_bar");$1M.style.position="absolute";if($1I.barBackColor){$1M.style.backgroundColor=$1I.barBackColor;};var $1N=document.createElement("div");$1N.setAttribute("unselectable","on");$1N.className=this.$58("_event_bar_inner");$1N.style.top=$1K+"%";if(0<$1L&&$1L<=1){$1N.style.height="1px";}else{$1N.style.height=$1L+"%";};if($1I.barColor){$1N.style.backgroundColor=$1I.barColor;};$1M.appendChild($1N);$d.appendChild($1M);};if($1I.areas){for(var i=0;i<$1I.areas.length;i++){var $1O=$1I.areas[i];if($1O.v!=='Visible'){continue;};var a=DayPilot.Areas.createArea($d,$h,$1O);$d.appendChild(a);}};if($G.rows[0].cells[$h.part.dayIndex]){var $1P=$G.rows[0].cells[$h.part.dayIndex].events;$1P.appendChild($d);$c.$6n($d);$d.event=$h;if($c.multiselect.$60($h)){$c.multiselect.add($d.event,true);};if($c.$55()){if(typeof $c.onAfterEventRender==='function'){var $n={};$n.e=$d.event;$n.div=$d;$c.onAfterEventRender($n);}}else{if($c.afterEventRender){$c.afterEventRender($d.event,$d);}}};$c.elements.events.push($d);};this.$6n=function(el){var c=(el&&el.childNodes)?el.childNodes.length:0;for(var i=0;i<c;i++){try{var $1m=el.childNodes[i];if($1m.nodeType===1){$1m.setAttribute("unselectable","on");this.$6n($1m);}}catch(e){}}};this.$51=function(){var $09=new Date();for(var i=0;i<this.$57.length;i++){var $1Q=this.$57[i];if(!$1Q.blocks){continue;};for(var m=0;m<$1Q.blocks.length;m++){var $1o=$1Q.blocks[m];for(var j=0;j<$1o.lines.length;j++){var $1q=$1o.lines[j];for(var k=0;k<$1q.length;k++){var e=$1q[k];e.part.width=100/$1o.lines.length;e.part.left=e.part.width*j;if(this.eventArrangement==='Cascade'){var $1R=(j===$1o.lines.length-1);if(!$1R){e.part.width=e.part.width*1.5;}};if(this.eventArrangement==='Full'){e.part.left=e.part.left/2;e.part.width=100-e.part.left;};if(!e.allday()){this.$6i(e);}}}}};this.multiselect.redraw();var end=new Date();var $1S=end.getTime()-$09.getTime();};this.$6o=function(){this.multiselect.$5I=[];for(var i=0;i<this.$57.length;i++){var $1Q=this.$57[i];for(var j=0;j<$1Q.lines.length;j++){var $1q=$1Q.lines[j];for(var k=0;k<$1q.length;k++){var e=$1q[k];e.part.width=100/$1Q.lines.length;e.part.left=e.Width*j;if(!e.allday()){this.$6i(e);}}}}};this.$58=function($1T){var $1U=this.theme||this.cssClassPrefix;if($1U){return $1U+$1T;}else{return "";}};this.$50=function(){if(this.nav.top.style.visibility==='hidden'){this.nav.top.style.visibility='visible';}};this.$6p=function(){var $J=this.$5f()+this.$6q();$c.debug.message("Getting totalHeight, headerHeight: "+this.$5f()+" scrollable: "+this.$6q());if($J<0){return 0;};return $J;};this.$6r=function(){this.nav.top.dp=this;this.nav.top.innerHTML='';this.nav.top.style.MozUserSelect='none';this.nav.top.style.KhtmlUserSelect='none';this.nav.top.style.WebkitUserSelect='none';this.nav.top.style.WebkitTapHighlightColor="rgba(0,0,0,0)";this.nav.top.style.WebkitTouchCallout="none";this.nav.top.style.position='relative';if(this.width){this.nav.top.style.width=this.width;};if(this.rtl){this.nav.top.style.direction="rtl";};if(!this.cssOnly){this.nav.top.style.lineHeight="1.2";this.nav.top.style.textAlign="left";};if(this.heightSpec==="Parent100Pct"){this.nav.top.style.height="100%";}else{this.nav.top.style.height=this.$6p()+"px";};if(this.hideUntilInit){this.nav.top.style.visibility='hidden';};if(!this.visible){this.nav.top.style.display="none";};this.nav.scroll=document.createElement("div");this.nav.scroll.style.height=this.$6q()+"px";if(this.cssOnly){DayPilot.Util.addClass(this.nav.top,this.$58("_main"));};this.nav.scroll.style.position="relative";if(!this.cssOnly){this.nav.scroll.style.border="1px solid "+this.borderColor;this.nav.scroll.style.backgroundColor=this.hourNameBackColor;};if(this.showHeader){var $1t=this.$6s();this.nav.top.appendChild($1t);};this.nav.scroll.style.zoom=1;this.nav.scroll.setAttribute("data-id","nav.scroll");this.nav.scroll.style.position="absolute";this.nav.scroll.style.left="0px";this.nav.scroll.style.right="0px";this.nav.scroll.style.top=this.$5f()+"px";var $1V=this.$6t();this.nav.scrollable=$1V.firstChild;this.nav.scroll.appendChild($1V);this.nav.top.appendChild(this.nav.scroll);this.nav.vsph=document.createElement("div");this.nav.vsph.style.display="none";this.nav.top.appendChild(this.nav.vsph);this.nav.scrollpos=document.createElement("input");this.nav.scrollpos.type="hidden";this.nav.scrollpos.id=$c.id+"_scrollpos";this.nav.scrollpos.name=this.nav.scrollpos.id;this.nav.top.appendChild(this.nav.scrollpos);this.nav.select=document.createElement("input");this.nav.select.type="hidden";this.nav.select.id=$c.id+"_select";this.nav.select.name=this.nav.select.id;this.nav.select.value=null;this.nav.top.appendChild(this.nav.select);this.nav.scrollLayer=document.createElement("div");this.nav.scrollLayer.style.position='absolute';this.nav.scrollLayer.style.top='0px';this.nav.scrollLayer.style.left='0px';this.nav.top.appendChild(this.nav.scrollLayer);this.nav.scrollUp=[];this.nav.scrollDown=[];this.nav.loading=document.createElement("div");this.nav.loading.style.position='absolute';this.nav.loading.style.top='0px';this.nav.loading.style.left=(this.hourWidth+5)+"px";this.nav.loading.style.backgroundColor=this.loadingLabelBackColor;this.nav.loading.style.fontSize=this.loadingLabelFontSize;this.nav.loading.style.fontFamily=this.loadingLabelFontFamily;this.nav.loading.style.color=this.loadingLabelFontColor;this.nav.loading.style.padding='2px';this.nav.loading.innerHTML=this.loadingLabelText;this.nav.loading.style.display='none';this.nav.top.appendChild(this.nav.loading);};this.$6u=function(){var $0Q=this.columnWidthSpec==='Fixed';var $1W=this.nav.header&&this.nav.header.rows[this.nav.header.rows.length-1];var $1X=this.nav.events.rows[0];for(var i=0;i<$c.$57.length;i++){var $1Y=$1W&&$1W.cells[i];var $1Z=$1X.cells[i];var $20=$1Y&&$1Y.firstChild;var $h=$c.$57[i];if($0Q){var $11=$h.width?$h.width:$c.columnWidth;$20&&($20.style.width=$11+"px");if($1Z){$1Z.style.width=$11+"px";}}else{$20&&($20.style.width=null);if($1Z){$1Z.style.width=null;}}}};this.$5g=function(){return this.$5Q?$c.nav.bottomRight:$c.nav.scroll;};this.$6v=function(){var $0Q=this.columnWidthSpec==='Fixed';if(!$0Q){var element=$c.$5g();if(this.heightSpec==="Fixed"){element.style.overflowY="scroll";}else if(this.heightSpec==='BusinessHours'&&this.$59()<=this.businessEndsHour-this.businessBeginsHour){element.style.overflow="hidden";}else if(this.heightSpec!=="Full"&&this.heightSpec!=="BusinessHoursNoScroll"){element.style.overflow="auto";}else{element.style.overflow="hidden";}};if($0Q){var $21=0;var w=this.$57.length*this.columnWidth;var $22=$c.$5R();if(w>$22.clientWidth){$21=DayPilot.sw($c.nav.bottomRight);};$c.nav.headerParent&&($c.nav.headerParent.style.width=(w+$21)+"px");$c.nav.main.style.width=w+"px";$c.nav.events.style.width=w+"px";$c.nav.crosshair.style.width=w+"px";}else{$c.nav.headerParent&&($c.nav.headerParent.style.width="100%");$c.nav.main.style.width="100%";$c.nav.events.style.width="100%";$c.nav.crosshair.style.width="100%";};this.$6u();};this.$4W=function(){if(!this.$4l){DayPilot.pu(this.nav.hourTable);}else{this.$6w();};if(this.nav.hoursPlaceholder){this.nav.hoursPlaceholder.innerHTML='';this.nav.hourTable=this.$6x();this.nav.hoursPlaceholder.appendChild(this.nav.hourTable);}};this.$6w=function(){if(!this.nav.hourTable){return;};for(var i=0;i<this.nav.hourTable.rows.length;i++){var $23=this.nav.hourTable.rows[i];var $d=$23.cells[0].firstChild;$d.data=null;$d.onmousemove=null;$d.onmouseout=null;}};this.$6t=function(){var $24=document.createElement("div");$24.style.zoom=1;$24.style.position='relative';$24.onmousemove=this.$6y;DayPilot.re($24,DayPilot.touch.start,this.$6m.onMainTouchStart);DayPilot.re($24,DayPilot.touch.move,this.$6m.onMainTouchMove);DayPilot.re($24,DayPilot.touch.end,this.$6m.onMainTouchEnd);DayPilot.re($24,"contextmenu",function(ev){var ev=ev||window.event;ev.preventDefault?ev.preventDefault():ev.returnValue=false;});if(navigator.msPointerEnabled){$24.style.msTouchAction="none";$24.style.touchAction="none";};$24.daypilotMainD=true;$24.calendar=this;var $25=null;var $26=null;var $27=null;var $0Q=this.columnWidthSpec==='Fixed';if($0Q||this.$5Q){if(this.showHours){var $X=document.createElement("div");$X.style.cssFloat="left";$X.style.styleFloat="left";$X.style.width=(this.hourWidth)+"px";$X.style.height=this.$6q()+"px";$X.style.overflow="hidden";$X.style.position="relative";$24.appendChild($X);$25=$X;var $21=30;var $J=(this.$5a()*this.cellHeight)/(60000*this.cellDuration)+$21;$27=document.createElement("div");$27.style.height=($J)+"px";$X.appendChild($27);};var $Y=document.createElement("div");$Y.style.height=this.$6q()+"px";if(this.showHours){$Y.style.marginLeft=(this.hourWidth)+"px";};$Y.style.position="relative";$Y.style.overflow="auto";$24.appendChild($Y);$26=$Y;}else{var $28=document.createElement("table");$28.cellSpacing="0";$28.cellPadding="0";$28.border="0";$28.style.border="0px none";$28.style.width="100%";$28.style.position='relative';var r=$28.insertRow(-1);var c;if(this.showHours){c=r.insertCell(-1);c.style.verticalAlign="top";c.style.padding='0px';c.style.border='0px none';$27=c;};c=r.insertCell(-1);c.width="100%";c.style.padding='0px';c.style.border='0px none';c.style.verticalAlign="top";if(!this.cssOnly){c.style.borderLeft="1px solid "+this.borderColor;};$26=c;$24.appendChild($28);};if($27){this.nav.hourTable=this.$6x();$27.appendChild(this.nav.hourTable);};if(!this.cssOnly&&!this.$4m){$26.appendChild(this.$6z());}else{var parent=document.createElement("div");parent.style.height="0px";parent.style.position="relative";parent.appendChild(this.$6z());var $29=document.createElement("div");$29.style.position="absolute";$29.style.top="0px";$29.style.left="0px";$29.style.width="100%";$29.style.height="0px";parent.appendChild($29);this.nav.crosshair=$29;parent.appendChild(this.$6A());$26.appendChild(parent);};this.nav.zoom=$24;this.nav.bottomLeft=$25;this.nav.bottomRight=$26;this.nav.hoursPlaceholder=$27;return $24;};this.$6z=function(){var $28=document.createElement("table");$28.cellPadding="0";$28.cellSpacing="0";$28.border="0";var $0Q=this.columnWidthSpec==='Fixed';if(!$0Q){$28.style.width="100%";};$28.style.border="0px none";if(!this.cssOnly){};$28.style.tableLayout='fixed';this.nav.main=$28;this.nav.events=$28;return $28;};this.$6B=function(){var $0Q=this.columnWidthSpec==='Fixed';if(!$0Q){return "100%";}else{var $2a=0;for(var i=0;i<$c.$57.length;i++){var $q=$c.$57[i];if($q.width){$2a+=$q.width;}else{$2a+=$c.columnWidth;}};return $2a+"px";}};this.$6A=function(){var $28=document.createElement("table");$28.style.position="absolute";$28.style.top="0px";$28.cellPadding="0";$28.cellSpacing="0";$28.border="0";$28.style.width=$c.$6B();$28.style.border="0px none";$28.style.tableLayout='fixed';this.nav.events=$28;var $2b=true;var $0f=this.$57;var cl=$0f.length;var r=($2b)?$28.insertRow(-1):$28.rows[0];for(var j=0;j<cl;j++){var c=($2b)?r.insertCell(-1):r.cells[j];if($2b){c.style.padding='0px';c.style.border='0px none';c.style.height='0px';c.style.overflow='visible';if(!$c.rtl){c.style.textAlign='left';};$c.$6C(c);}};return $28;};this.$6x=function(){var $28=document.createElement("table");$28.cellSpacing="0";$28.cellPadding="0";$28.border="0";$28.style.border='0px none';$28.style.width=this.hourWidth+"px";$28.oncontextmenu=function(){return false;};$28.onmousemove=function(){$c.$4H();};var $2c=this.$5a()/(this.timeHeaderCellDuration*60*1000);for(var i=0;i<$2c;i++){this.$6D($28,i);};return $28;};this.$6E=function(){return(this.$5e()-this.$5e(true))*(60/this.cellDuration);};this.$6F=function(){return(this.$5e()-this.$5e(true));};this.$5U=function(){return this.$6E()*this.cellHeight;};this.$6D=function($28,i){var $J=(this.cellHeight*60/ this.cellDuration)/(60/this.timeHeaderCellDuration);var r=$28.insertRow(-1);r.style.height=$J+"px";var c=r.insertCell(-1);c.valign="bottom";c.setAttribute("unselectable","on");if(!this.cssOnly){c.className=this.$58("rowheader");c.style.backgroundColor=this.hourNameBackColor;c.style.cursor="default";};c.style.padding='0px';c.style.border='0px none';var $2d=document.createElement("div");if(this.cssOnly){$2d.className=this.$58("_rowheader");};$2d.style.position="relative";$2d.style.width=this.hourWidth+"px";$2d.style.height=($J)+"px";$2d.style.overflow='hidden';$2d.setAttribute("unselectable","on");var $1o=document.createElement("div");if(this.cssOnly){$1o.className=this.$58("_rowheader_inner");};$1o.setAttribute("unselectable","on");if(!this.cssOnly){$1o.style.borderBottom="1px solid "+this.hourNameBorderColor;$1o.style.textAlign="right";$1o.style.height=($J-1)+"px";};var $S=null;var $h=null;if(this.hours){var $2e=i+this.$6F();$h=this.hours[$2e];$S=$h.html;};var $2f=this.timeHeaderCellDuration;var $09=this.startDate.addMinutes($2f*i+60*this.$5e());var $2g=$09.getHours();if(!$S){var $2h=document.createElement("div");$2h.setAttribute("unselectable","on");if(!this.cssOnly){$2h.style.padding="2px";$2h.style.fontFamily=this.hourFontFamily;$2h.style.fontSize=this.hourFontSize;$2h.style.color=this.hourFontColor;};var am=$2g<12;if(this.$6h.timeFormat()==="Clock12Hours"){$2g=$2g%12;if($2g===0){$2g=12;}};if(this.timeHeaderCellDuration!==60){$2g+=":"+$09.toString("mm");};$2h.innerHTML=$2g;var $2i=document.createElement("span");$2i.setAttribute("unselectable","on");if(!this.cssOnly){$2i.style.fontSize="10px";$2i.style.verticalAlign="super";}else{$2i.className=this.$58("_rowheader_minutes");};var $2j;if(this.$6h.timeFormat()==="Clock12Hours"){if(am){$2j="AM";}else{$2j="PM";}}else{$2j="00";};if(!this.cssOnly){$2i.innerHTML="&nbsp;"+$2j;}else{$2i.innerHTML=$2j;};$2h.appendChild($2i);$S=$2h.outerHTML;};if(typeof $c.onBeforeTimeHeaderRender==='function'){var $n={};$n.header={};$n.header.hours=$2g;$n.header.minutes=$09.getMinutes();$n.header.start=$09.toString("HH:mm");$n.header.html=$S;$n.header.areas=$h?$h.areas:null;$c.onBeforeTimeHeaderRender($n);if($n.header.html!==null){$S=$n.header.html;};$h=$n.header;};if($h){$2d.data=$h;$2d.onmousemove=$c.$6G;$2d.onmouseout=$c.$6H;};$1o.innerHTML=$S;$2d.appendChild($1o);c.appendChild($2d);};this.$6G=function(ev){$c.$4H();var $d=this;if(!$d.active){DayPilot.Areas.showAreas($d,$d.data);}};this.$6H=function(ev){DayPilot.Areas.hideAreas(this,ev);};this.$6q=function(){switch(this.heightSpec){case "Fixed":return this.height;case "Parent100Pct":return this.height;case "Full":return(this.$5a()*this.cellHeight)/(60000*this.cellDuration);case "BusinessHours":case "BusinessHoursNoScroll":var $O=this.$5b();return $O*this.cellHeight*60/this.cellDuration;default:throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";}};this.$5f=function(){if(!this.showHeader){return 0;};var $2k=this.headerLevels*$0e.headerHeight();if(this.showAllDayEvents&&$0e.allDayHeaderHeight()){return $2k+$0e.allDayHeaderHeight();}else{return $2k;}};this.$4S=function(){if(!this.headerHeightAutoFit){return;};var $N=0;for(var x=0;x<this.nav.header.rows.length;x++){var $23=this.nav.header.rows[x];for(var i=0;i<$23.cells.length;i++){var $f=$23.cells[i];var $d=$f.firstChild;var $M=$d.firstChild;var $2l=$d.style.height;$d.style.height="auto";$M.style.position="static";var h=$d.offsetHeight;$d.style.height=$2l;$M.style.position='';$N=Math.max($N,h);}};if($N>this.headerHeight){this.$4k.headerHeight=$N;this.$4Q();this.$4R();}};this.$5Q=true;this.$6I=function(){var element=this.$5Q?$c.nav.bottomRight:$c.nav.scroll;if(this.cssOnly){return DayPilot.sw(element)>0;}else{return DayPilot.sw(element)>2;}};this.$6s=function(){var $1t=document.createElement("div");if(!this.cssOnly){$1t.style.borderLeft="1px solid "+this.borderColor;$1t.style.borderRight="1px solid "+this.borderColor;};var $0Q=this.columnWidthSpec==='Fixed';if(!$0Q){$1t.style.overflow="auto";};$1t.style.position="absolute";$1t.style.left="0px";$1t.style.right="0px";var $24=document.createElement("div");$24.style.position="relative";$24.style.zoom="1";var $2m=null;var $0Q=this.columnWidthSpec==='Fixed';if($0Q||this.$5Q){var $X=document.createElement("div");$X.style.cssFloat="left";$X.style.styleFloat="left";$X.style.width=(this.hourWidth)+"px";if(this.showHours){var $2n=this.$6J();this.nav.corner=$2n;$X.appendChild($2n);$24.appendChild($X);this.nav.upperLeft=$X;};var $Y=document.createElement("div");if(this.showHours){$Y.style.marginLeft=(this.hourWidth)+"px";};$Y.style.position="relative";$Y.style.overflow="hidden";$Y.style.height=this.$5f()+"px";$24.appendChild($Y);this.nav.upperRight=$Y;$2m=document.createElement("div");$2m.style.position="relative";$Y.appendChild($2m);}else{var $28=document.createElement("table");$28.cellPadding="0";$28.cellSpacing="0";$28.border="0";$28.style.width="100%";$28.style.borderCollapse='separate';$28.style.border="0px none";var r=$28.insertRow(-1);this.nav.fullHeader=$28;if(this.showHours){var c=r.insertCell(-1);c.style.padding='0px';c.style.border='0px none';var $2n=this.$6J();c.appendChild($2n);this.nav.corner=$2n;};c=r.insertCell(-1);c.style.width="100%";if(!this.cssOnly){c.style.backgroundColor=this.hourNameBackColor;};c.valign="top";c.style.position='relative';c.style.padding='0px';c.style.border='0px none';$2m=document.createElement("div");$2m.style.position="relative";$2m.style.height=this.$5f()+"px";$2m.style.overflow="hidden";c.appendChild($2m);this.nav.mid=$2m;$24.appendChild($28);};this.nav.headerParent=$2m;this.$6K();var $2o=this.$6I();var $0Q=this.columnWidthSpec==='Fixed';if($2o&&!$0Q){this.$6L();};$1t.appendChild($24);return $1t;};this.$6K=function(){this.nav.unifiedCornerRight=null;this.nav.header=document.createElement("table");this.nav.header.cellPadding="0";this.nav.header.cellSpacing="0";var $0Q=this.columnWidthSpec==='Fixed';if(!$0Q){this.nav.header.width="100%";};this.nav.header.style.tableLayout="fixed";if(!this.cssOnly){this.nav.header.style.borderBottom="0px none #000000";this.nav.header.style.borderLeft="1px solid "+this.borderColor;this.nav.header.style.borderTop="1px solid "+this.borderColor;};this.nav.header.oncontextmenu=function(){return false;};var $2o=this.$6I();if(!this.cssOnly){if($2o){this.nav.header.style.borderRight="1px solid "+this.borderColor;}};this.nav.headerParent.appendChild(this.nav.header);if(this.nav.allday){DayPilot.de(this.nav.allday);};if(this.showAllDayEvents){var $2p=document.createElement("div");$2p.style.position='absolute';$2p.style.top="0px";$2p.style.height="0px";var $0Q=this.columnWidthSpec==='Fixed';if(!$0Q){$2p.style.left="0px";$2p.style.right="0px";}else{$2p.style.width=(this.$57.length*this.columnWidth)+"px";};this.nav.allday=$2p;this.nav.headerParent.appendChild($2p);}};this.$6L=function(){if(!this.nav.fullHeader){return;};var r=this.nav.fullHeader.rows[0];var c=r.insertCell(-1);if(!this.cssOnly){c.className=this.$58('cornerright');c.style.backgroundColor=this.hourNameBackColor;c.style.borderBottom="0px none";c.style.borderLeft="1px solid "+this.borderColor;c.style.borderRight="0px none";};c.style.padding='0px';c.style.verticalAlign='top';c.setAttribute("unselectable","on");var $1x=document.createElement("div");$1x.setAttribute("unselectable","on");if(this.cssOnly){$1x.className=this.$58('_cornerright');};$1x.style.overflow="hidden";$1x.style.position="relative";$1x.style.width="16px";$1x.style.height=this.$5f()+"px";var $M=document.createElement("div");if(this.cssOnly){$M.className=this.$58('_cornerright_inner');}else{$M.style.borderTop="1px solid "+this.borderColor;};$1x.appendChild($M);c.appendChild($1x);this.nav.cornerRight=$1x;};this.$6J=function(){var $1V=document.createElement("div");$1V.style.position='relative';if(!this.cssOnly){$1V.style.backgroundColor=this.cornerBackColor;$1V.style.fontFamily=this.headerFontFamily;$1V.style.fontSize=this.headerFontSize;$1V.style.color=this.headerFontColor;$1V.className=this.$58("corner");}else{$1V.className=this.$58("_corner");};$1V.style.width=this.hourWidth+"px";$1V.style.height=this.$5f()+"px";$1V.style.overflow="hidden";$1V.oncontextmenu=function(){return false;};var $2n=document.createElement("div");if(this.cssOnly){$2n.className=this.$58("_corner_inner");}else{$2n.style.borderTop="1px solid "+this.borderColor;};$2n.setAttribute("unselectable","on");var $S=this.cornerHTML||this.cornerHtml;$2n.innerHTML=$S?$S:'';$1V.appendChild($2n);if(!this.numberFormat)return $1V;var $2q=document.createElement("div");$2q.style.position='absolute';$2q.style.padding='2px';$2q.style.top='0px';$2q.style.left='1px';$2q.style.backgroundColor="#FF6600";$2q.style.color="white";$2q.innerHTML="\u0044\u0045\u004D\u004F";$2q.setAttribute("unselectable","on");$1V.appendChild($2q);return $1V;};this.$4B=function(){var $28=this.nav.main;$28.root=null;$28.onmouseup=null;for(var y=0;y<$28.rows.length;y++){var r=$28.rows[y];for(var x=0;x<r.cells.length;x++){var c=r.cells[x];c.root=null;c.onmousedown=null;c.onmousemove=null;c.onmouseout=null;c.onmouseup=null;c.onclick=null;c.ondblclick=null;c.oncontextmenu=null;}};if(!this.$4l)DayPilot.pu($28);};this.$4T=function(){for(var i=0;this.nav.scrollUp&&i<this.nav.scrollUp.length;i++){this.nav.scrollLayer.removeChild(this.nav.scrollUp[i]);};for(var i=0;this.nav.scrollDown&&i<this.nav.scrollDown.length;i++){this.nav.scrollLayer.removeChild(this.nav.scrollDown[i]);};this.nav.scrollUp=[];this.nav.scrollDown=[];};this.$6C=function(c){var $d=document.createElement("div");$d.style.marginRight=$c.columnMarginRight+"px";$d.style.position='relative';$d.style.height='1px';if(!this.cssOnly){$d.style.fontSize='1px';$d.style.lineHeight='1.2';};$d.style.marginTop='-1px';c.events=$d;var $2r=document.createElement("div");$2r.style.position="relative";$d.style.height="1px";$d.style.marginTop="-1px";c.separators=$2r;c.appendChild($2r);c.appendChild($d);};this.$4V=function(){var $28=this.nav.main;var $0l=this.cellDuration*60*1000;var $2s=this.$5i();var $2t=this.$6F()*(60/this.cellDuration);var $0f=$c.$57;var $2b=true;var scrollY=0;if($28){scrollY=$c.$5R().scrollTop;this.$4B();if($c.$4p.ielt9&&$2b){DayPilot.de(this.nav.scrollable.parentNode);var $1V=this.$6t();this.nav.scrollable=$1V.firstChild;this.nav.scroll.appendChild($1V);$28=this.nav.main;}};this.nav.scrollable.daypilotMainD=true;this.nav.scrollable.calendar=this;while($28&&$28.rows&&$28.rows.length>0&&$2b){if(!this.$4l)DayPilot.pu($28.rows[0]);$28.deleteRow(0);};this.$6M=true;if(this.scrollLabelsVisible){var $0f=this.$57;var $0S=(this.showHours?this.hourWidth:0);var $H=(this.nav.scroll.clientWidth-$0S)/$0f.length;for(var i=0;i<$0f.length;i++){var $0U=document.createElement("div");$0U.style.position='absolute';$0U.style.top='0px';$0U.style.left=($0S+2+i*$H+$H/2)+"px";$0U.style.display='none';var $1E=document.createElement("div");$1E.style.height='10px';$1E.style.width='10px';if(this.cssOnly){$1E.className=this.$58("_scroll_up");}else{$1E.style.backgroundRepeat="no-repeat";if(this.scrollUpUrl){$1E.style.backgroundImage="url('"+this.scrollUpUrl+"')";};$1E.className=this.$58("scroll_up");};$0U.appendChild($1E);this.nav.scrollLayer.appendChild($0U);this.nav.scrollUp.push($0U);var $0V=document.createElement("div");$0V.style.position='absolute';$0V.style.top='0px';$0V.style.left=($0S+2+i*$H+$H/2)+"px";$0V.style.display='none';var $1E=document.createElement("div");$1E.style.height='10px';$1E.style.width='10px';if(this.cssOnly){$1E.className=this.$58("_scroll_down");}else{$1E.style.backgroundRepeat="no-repeat";if(this.scrollDownUrl){$1E.style.backgroundImage="url('"+this.scrollDownUrl+"')";};$1E.className=this.$58("scroll_down");};$0V.appendChild($1E);this.nav.scrollLayer.appendChild($0V);this.nav.scrollDown.push($0V);}};var cl=$0f.length;if(this.cssOnly||this.$4m){var $15=this.nav.events;while($15&&$15.rows&&$15.rows.length>0&&$2b){if(!this.$4l)DayPilot.pu($15.rows[0]);$15.deleteRow(0);};var r=($2b)?$15.insertRow(-1):$15.rows[0];for(var j=0;j<cl;j++){var c=($2b)?r.insertCell(-1):r.cells[j];if($2b){c.style.padding='0px';c.style.border='0px none';c.style.height='1px';c.style.overflow='visible';var $0Q=this.columnWidthSpec==='Fixed';if($0Q){if($0f[j].width){c.style.width=$0f[j].width+"px";}else{c.style.width=this.columnWidth+"px";}};if(!$c.rtl){c.style.textAlign='left';};$c.$6C(c);}}};for(var i=0;i<$2s;i++){var r=($2b)?$28.insertRow(-1):$28.rows[i];var y=i+$2t;if($2b){r.style.MozUserSelect='none';r.style.KhtmlUserSelect='none';r.style.WebkitUserSelect='none';};for(var j=0;j<cl;j++){var $1Q=this.$57[j];var c=($2b)?r.insertCell(-1):r.cells[j];c.start=$1Q.start.addTime(y*$0l).addHours(this.$5e());c.end=c.start.addTime($0l);c.resource=$1Q.id;if(typeof this.onBeforeCellRender==='function'){if(!this.cellProperties){this.cellProperties={};};var $f={};$f.resource=c.resource;$f.start=c.start;$f.end=c.end;var $2e=j+"_"+y;$f.cssClass=null;$f.html=null;$f.backImage=null;$f.backRepeat=null;$f.backColor=null;$f.business=this.$6N(c.start,c.end);if(this.cellProperties[$2e]){DayPilot.Util.copyProps(this.cellProperties[$2e],$f,['cssClass','html','backImage','backRepeat','backColor','business']);};var $n={};$n.cell=$f;this.onBeforeCellRender($n);this.cellProperties[$2e]=$f;};var $2u=$c.$6O(j,y);if($2b){c.root=this;c.style.padding='0px';c.style.border='0px none';c.style.verticalAlign='top';c.style.height=$c.cellHeight+'px';c.style.overflow='hidden';c.setAttribute("unselectable","on");if(!this.cssOnly){var $2v=document.createElement("div");$2v.style.height=($c.cellHeight-1)+"px";$2v.style.width='100%';$2v.style.overflow='hidden';$2v.setAttribute("unselectable","on");c.appendChild($2v);var $d=document.createElement("div");$d.setAttribute("unselectable","on");$d.style.fontSize='1px';$d.style.height='0px';c.appendChild($d);if((!$c.rtl&&j!==cl-1)||$c.rtl){c.style.borderRight='1px solid '+$c.cellBorderColor;};var $2w=(c.end.getMinutes()+c.end.getSeconds()+c.end.getMilliseconds())>0;if($2w){if($c.hourHalfBorderColor!==''){$d.style.borderBottom='1px solid '+$c.hourHalfBorderColor;};$d.className=$c.$58("hourhalfcellborder");}else{if($c.hourBorderColor!==''){$d.style.borderBottom='1px solid '+$c.hourBorderColor;};$d.className=$c.$58("hourcellborder");}}else{var $2v=document.createElement("div");$2v.className=$c.$58("_cell");$2v.style.position="relative";$2v.style.height=($c.cellHeight)+"px";$2v.style.overflow='hidden';$2v.setAttribute("unselectable","on");var $M=document.createElement("div");$M.className=$c.$58("_cell_inner");$2v.appendChild($M);c.appendChild($2v);}}else{$2v=c.firstChild;$2v.className=$c.$58("_cell");};c.onmousedown=this.$5K;c.onmousemove=this.$5N;c.onmouseout=this.$5M;DayPilot.re(c,DayPilot.touch.end,this.$6m.onCellTouchEnd);c.onmouseup=function(){return false;};c.onclick=function(){return false;};c.ondblclick=function(){DayPilotCalendar.firstMousePos=null;$c.$5L();clearTimeout(DayPilotCalendar.selectedTimeout);if($c.timeRangeDoubleClickHandling==='Disabled'){return;};var $0P=$c.getSelection();$c.$5F($0P.start,$0P.end,$0P.resource);};c.oncontextmenu=function(){if(!this.selected){$c.clearSelection();DayPilotCalendar.column=DayPilotCalendar.getColumn(this);$c.selectedCells.push(this);DayPilotCalendar.firstSelected=this;DayPilotCalendar.topSelectedCell=this;DayPilotCalendar.bottomSelectedCell=this;$c.$5L();};if($c.contextMenuSelection){$c.contextMenuSelection.show($c.getSelection());};return false;};var $V=$c.$6P(j,y);$2v=c.firstChild;var $0Q=this.columnWidthSpec==='Fixed';if($0Q){if($1Q.width){$2v.style.width=$1Q.width+"px";}else{$2v.style.width=this.columnWidth+"px";}};if($V){if(this.cssOnly){$2v.firstChild.style.background=$V;}else{$2v.style.background=$V;}};var $2x=$2u?$2u.business:this.$6N(c.start,c.end);if($2x&&this.cssOnly){DayPilot.Util.addClass($2v,$c.$58("_cell_business"));};var $S=this.cssOnly?$2v.firstChild:$2v;if($S){$S.innerHTML='';};$2v.style.backgroundImage="";$2v.style.backgroundRepeat="";if($2u){if($2u.html){$S.innerHTML=$2u.html;};if($2u.cssClass){if(this.cssOnly){DayPilot.Util.addClass($2v,$2u.cssClass);}else{DayPilot.Util.addClass(c,$c.$58($2u.cssClass));}};if($2u.backImage){$2v.style.backgroundImage="url('"+$2u.backImage+"')";};if($2u.backRepeat){$2v.style.backgroundRepeat=$2u.backRepeat;}};if(!this.cssOnly){DayPilot.Util.addClass(c,$c.$58("cellbackground"));}}};$28.onmouseup=this.$5O;$28.root=this;$c.nav.scrollable.style.display='';$c.$5R().scrollTop=scrollY;};this.$6N=function($09,end){if(this.businessBeginsHour<this.businessEndsHour){return !($09.getHours()<this.businessBeginsHour||$09.getHours()>=this.businessEndsHour||$09.getDayOfWeek()===6||$09.getDayOfWeek()===0);};if($09.getHours()>=this.businessBeginsHour){return true;};if($09.getHours()<this.businessEndsHour){return true;};return false;};this.$6y=function(ev){ev=ev||window.event;ev.insideMainD=true;if(window.event){window.event.srcElement.inside=true;};DayPilotCalendar.activeCalendar=this;var $2y=$c.nav.main;$c.coords=DayPilot.mo3($2y,ev);var $0L=DayPilot.mc(ev);var $29=$c.crosshairType&&$c.crosshairType!=="Disabled";var $2z=$c.coords.x<$c.hourWidth;if(DayPilot.Global.moving||DayPilot.Global.resizing||DayPilotCalendar.selecting||$2z){$c.$4H();}else if($29){$c.$6Q();};if(DayPilot.Global.resizing){if(!DayPilot.Global.resizing.event){DayPilot.Global.resizing=null;DayPilot.de(DayPilotCalendar.resizingShadow);DayPilotCalendar.resizingShadow=null;return;};if(!DayPilotCalendar.resizingShadow){DayPilotCalendar.resizingShadow=$c.$56(DayPilot.Global.resizing,false,$c.shadow);};var $2A=DayPilot.Global.resizing.event.calendar.cellHeight;var $I=0;var $2B=($0L.y-DayPilotCalendar.originalMouse.y);if(DayPilot.Global.resizing.dpBorder==='bottom'){var $2C=Math.floor(((DayPilotCalendar.originalHeight+DayPilotCalendar.originalTop+$2B)+$2A/ 2)/ $2A)*$2A-DayPilotCalendar.originalTop+$I;if($2C<$2A)$2C=$2A;var $N=DayPilot.Global.resizing.event.calendar.nav.main.clientHeight;if(DayPilotCalendar.originalTop+$2C>$N){$2C=$N-DayPilotCalendar.originalTop;};DayPilotCalendar.resizingShadow.style.height=($2C)+'px';}else if(DayPilot.Global.resizing.dpBorder==='top'){var $2D=Math.floor(((DayPilotCalendar.originalTop+$2B-$I)+$2A/ 2)/ $2A)*$2A+$I;if($2D<$I){$2D=$I;};if($2D>DayPilotCalendar.originalTop+DayPilotCalendar.originalHeight-$2A){$2D=DayPilotCalendar.originalTop+DayPilotCalendar.originalHeight-$2A;};var $2C=DayPilotCalendar.originalHeight-($2D-DayPilotCalendar.originalTop);if($2C<$2A){$2C=$2A;}else{DayPilotCalendar.resizingShadow.style.top=$2D+'px';};DayPilotCalendar.resizingShadow.style.height=($2C)+'px';}}else if(DayPilot.Global.moving){if(!DayPilot.Global.moving.helper){DayPilotCalendar.movingShadow=null;return;};if(!DayPilotCalendar.movingShadow){var $2E=3;if(DayPilot.distance($0L,DayPilotCalendar.originalMouse)>$2E){DayPilotCalendar.movingShadow=$c.$56(DayPilot.Global.moving,!$c.$4p.ie,$c.shadow);DayPilotCalendar.movingShadow.style.width=(DayPilotCalendar.movingShadow.parentNode.offsetWidth+1)+'px';}else{return;}};if(!$c.coords){return;};var $2A=$c.cellHeight;var $I=0;var $0T=DayPilotCalendar.moveOffsetY;if(!$0T){$0T=$2A/2;};if(this.moveBy==="Top"){$0T=0;};var $2D=Math.floor((($c.coords.y-$0T-$I)+$2A/ 2)/ $2A)*$2A+$I;if($2D<$I){$2D=$I;};var $G=$c.nav.main;var $N=$G.clientHeight;var $J=parseInt(DayPilotCalendar.movingShadow.style.height);if($2D+$J>$N){$2D=$N-$J;};DayPilotCalendar.movingShadow.style.top=$2D+'px';var $H=$G.clientWidth/$G.rows[0].cells.length;var $q=Math.floor(($c.coords.x)/$H);if($q<0){$q=0;};if($c.rtl){$q=$c.$57.length-$q-1;};var $15=$c.nav.events;if($q<$15.rows[0].cells.length&&$q>=0&&DayPilotCalendar.movingShadow.column!==$q){DayPilotCalendar.movingShadow.column=$q;DayPilotCalendar.moveShadow($15.rows[0].cells[$q]);}};if(DayPilotCalendar.drag){if(DayPilotCalendar.gShadow){document.body.removeChild(DayPilotCalendar.gShadow);};DayPilotCalendar.gShadow=null;if(!DayPilotCalendar.movingShadow&&$c.coords){var $L=$c.$56(DayPilotCalendar.drag,false,DayPilotCalendar.drag.shadowType);if($L){DayPilotCalendar.movingShadow=$L;var $0K=new DayPilot.Date().getDatePart();var ev={'value':DayPilotCalendar.drag.id,'start':$0K,'end':$0K.addSeconds(DayPilotCalendar.drag.duration),'text':DayPilotCalendar.drag.text};var event=new DayPilot.Event(ev,$c);event.external=true;DayPilot.Global.moving={};DayPilot.Global.moving.event=event;DayPilot.Global.moving.helper={};}};ev.cancelBubble=true;}};this.$6R={};var $1E=this.$6R;$1E.getWidth=function(){return $c.nav.top.offsetWidth;};$1E.getHeight=function(){return $c.nav.top.offsetHeight-DayPilot.sh($c.nav.scroll)-1;};$1E.download=function(name){var $2F=$1E.canvas();var name=name||"image.png";if(window.navigator.msSaveBlob){var $2G=$2F.msToBlob();window.navigator.msSaveBlob($2G,name);}else{var $2H=document.createElement("a");$2H.download=name;$2H.href=$2F.toDataURL();$2H.click();}};$1E.getCanvas=function(){return $1E.canvas();};$1E.getRectangles=function(){var $2I=($c.showHours?$c.hourWidth:0);var $2J=$c.$5f();var $2K={};$2K.main={"x":0,"y":0,"w":$1E.getWidth(),"h":$1E.getHeight()};$2K.corner={"x":0,"y":0,"w":$2I,"h":$2J};$2K.grid={"x":$2I,"y":$2J,"w":$1E.getWidth()-$2I,"h":$1E.getHeight()-$2J};return $2K;};$1E.fakeDurationBar=function(){var $d=document.createElement("div");$d.style.display="none";$d.className=$c.$58("_event");var $1M=document.createElement("div");$1M.className=$c.$58("_event_bar");var $M=document.createElement("div");$M.className=$c.$58("_event_bar_inner");document.body.appendChild($d);$1M.appendChild($M);$d.appendChild($1M);return $d;};$1E.fakeCell=function(){var $d=document.createElement("div");$d.style.display="none";$d.className=$c.$58("_cell");var $M=document.createElement("div");$M.className=$c.$58("_cell_inner");document.body.appendChild($d);$d.appendChild($M);return $d;};$1E.extractUrl=function($2L){var $s=/url\((.*)\)/.exec($2L);return $s[1];};$1E.getImages=function(){var $u={};var $r=$1E.fakeExpand();$u.expand=$1E.extractUrl(new DayPilot.StyleReader($r).get("background-image"));$r.className=$c.$58("_tree_image_collapse");$u.collapse=$1E.extractUrl(new DayPilot.StyleReader($r).get("background-image"));$r.className=$c.$58("_tree_image_no_children");$u.nochildren=$1E.extractUrl(new DayPilot.StyleReader($r).get("background-image"));DayPilot.de($r);return $u;};$1E.canvas=function(){var $2K=$1E.getRectangles();var $2F=new DayPilot.Canvas($2K.main.w,$2K.main.h);console.log($2K);var $1J=new DayPilot.StyleReader($c.nav.top).get("border-color");var $2M=new DayPilot.StyleReader($c.nav.header.rows[0].cells[0].firstChild.firstChild).get("border-bottom-color");$2F.rect($2K.main,$1J);$2F.line($2K.grid.x,0,$2K.grid.x,$2K.main.h,$2M);$2F.line(0,$2K.grid.y,$2K.main.w,$2K.grid.y,$2M);return $2F.getCanvasElement();};this.temp={};this.temp.getPosition=function(){var $2N=$c.$6S.getCellCoords();if(!$2N){return null;};var $q=$c.$57[$2N.x];var $f={};$f.resource=$q.id;$f.start=new DayPilot.Date($q.start).addHours($c.$5e(true)).addMinutes($2N.y*$c.cellDuration);$f.end=$f.start.addMinutes($c.cellDuration);return $f;};this.temp.img=$c.$6R;this.$6S={};this.$6S.getCellCoords=function(){var $u={};$u.x=0;$u.y=0;if(!$c.coords){return null;};var $G=$c.nav.main;var $2O=$c.coords.x;var i=0;var $1Q=this.col($G,i);while($1Q&&$2O>$1Q.left){i+=1;$1Q=this.col($G,i);};$u.x=i-1;var $I=0;var $23=Math.floor(($c.coords.y-$I)/$c.cellHeight);$u.y=$23;if($u.x<0){return null;};return $u;};this.$6S.col=function($28,x){var $u={};$u.left=0;$u.width=0;if(!$28){return null;};if(!$28.rows){return null;};if($28.rows.length===0){return null;};if($28.rows[0].cells.length==0){return null;};var $f=$28.rows[0].cells[x];if(!$f){return null;};var t=DayPilot.abs($28);var c=DayPilot.abs($f);$u.left=c.x-t.x;$u.width=$f.offsetWidth;return $u;};this.$6Q=function(){this.$4H();if(!this.elements.crosshair){this.elements.crosshair=[];};var $2P=this.$6S.getCellCoords();if(!$2P){return;};var $q=$2P.x;var y=Math.floor($2P.y/(60/ $c.cellDuration)*(60/$c.timeHeaderCellDuration));if(y<0){return;};if(this.nav.hourTable){if(y>=this.nav.hourTable.rows.length){return;};var $2Q=document.createElement("div");$2Q.style.position="absolute";$2Q.style.left="0px";$2Q.style.right="0px";$2Q.style.top="0px";$2Q.style.bottom="0px";$2Q.style.opacity=.5;$2Q.style.backgroundColor=this.crosshairColor;$2Q.style.opacity=this.crosshairOpacity/100;$2Q.style.filter="alpha(opacity="+this.crosshairOpacity+")";this.nav.hourTable.rows[y].cells[0].firstChild.appendChild($2Q);this.elements.crosshair.push($2Q);};if(this.nav.header){var $2R=document.createElement("div");$2R.style.position="absolute";$2R.style.left="0px";$2R.style.right="0px";$2R.style.top="0px";$2R.style.bottom="0px";$2R.style.opacity=.5;$2R.style.backgroundColor=this.crosshairColor;$2R.style.opacity=this.crosshairOpacity/100;$2R.style.filter="alpha(opacity="+this.crosshairOpacity+")";var $23=this.nav.header.rows[this.headerLevels-1];if($23.cells[$q]){$23.cells[$q].firstChild.appendChild($2R);this.elements.crosshair.push($2R);}};if(this.crosshairType==="Header"){return;};var $2S=this.nav.crosshair;var $I=0;var top=Math.floor((($c.coords.y-$I))/$c.cellHeight)*$c.cellHeight+$I;var $J=$c.cellHeight;var $2T=document.createElement("div");$2T.style.position="absolute";$2T.style.left="0px";$2T.style.right="0px";$2T.style.top=top+"px";$2T.style.height=$J+"px";$2T.style.backgroundColor=this.crosshairColor;$2T.style.opacity=this.crosshairOpacity/100;$2T.style.filter="alpha(opacity="+this.crosshairOpacity+")";$2T.onmousedown=this.$6T;$2S.appendChild($2T);this.elements.crosshair.push($2T);var $1Q=this.$6S.col(this.nav.main,$q);$J=this.nav.main.clientHeight;if($1Q){var $2U=document.createElement("div");$2U.style.position="absolute";$2U.style.left=$1Q.left+"px";$2U.style.width=$1Q.width+"px";$2U.style.top="0px";$2U.style.height=$J+"px";$2U.style.backgroundColor=this.crosshairColor;$2U.style.opacity=this.crosshairOpacity/100;$2U.style.filter="alpha(opacity="+this.crosshairOpacity+")";$2U.onmousedown=this.$6T;$2S.appendChild($2U);this.elements.crosshair.push($2U);}};this.$6T=function(ev){$c.$4H();var $2P=$c.$6S.getCellCoords();var $2V=0;var $f=$c.nav.main.rows[$2P.y+$2V].cells[$2P.x];$c.$5K.apply($f,[ev]);};this.$4H=function(){if(!this.elements.crosshair||this.elements.crosshair.length===0){return;};for(var i=0;i<this.elements.crosshair.length;i++){var e=this.elements.crosshair[i];if(e&&e.parentNode){e.parentNode.removeChild(e);}};this.elements.crosshair=[];};this.$4O=function(){if(!this.cellConfig){return;};var $2W=this.cellConfig;if($2W.vertical){for(var x=0;x<$2W.x;x++){var $2X=this.cellProperties[x+"_0"];for(var y=1;y<$2W.y;y++){this.cellProperties[x+"_"+y]=$2X;}}};if($2W.horizontal){for(var y=0;y<$2W.y;y++){var $2X=this.cellProperties["0_"+y];for(var x=1;x<$2W.x;x++){this.cellProperties[x+"_"+y]=$2X;}}};if($2W["default"]){var $2X=$2W["default"];for(var y=0;y<$2W.y;y++){for(var x=0;x<$2W.x;x++){if(!this.cellProperties[x+"_"+y]){this.cellProperties[x+"_"+y]=$2X;}}}}};this.$6O=function(x,y){if(!this.cellProperties){return null;};return this.cellProperties[x+"_"+y];};this.$6U=function(x,y){var $2e=x+'_'+y;if(this.cellProperties&&this.cellProperties[$2e]){return this.cellProperties[$2e].business;};return false;};this.$6P=function(x,y){var $2e=x+'_'+y;if(this.cellProperties&&this.cellProperties[$2e]){return this.cellProperties[$2e].backColor;};return null;};this.$4C=function(){var $28=this.nav.header;if($28&&$28.rows){for(var y=0;y<$28.rows.length;y++){var r=$28.rows[y];for(var x=0;x<r.cells.length;x++){var c=r.cells[x];c.onclick=null;c.onmousemove=null;c.onmouseout=null;}}};if(!this.$4l)DayPilot.pu($28);};this.$6V=function($1k,$2b){var r=($2b)?this.nav.header.insertRow(-1):this.nav.header.rows[$1k-1];var $0f=this.$6d($1k);var $2Y=$0f.length;var $2Z=($1k===$c.headerLevels);for(var i=0;i<$2Y;i++){var $h=$0f[i];if($c.$55()){if(typeof $c.onBeforeHeaderRender==='function'){var $n={};$n.header={};DayPilot.Util.copyProps($h,$n.header,['id','start','name','html','backColor','toolTip','areas','children']);this.onBeforeHeaderRender($n);DayPilot.Util.copyProps($n.header,$h,['html','backColor','toolTip','areas']);}};var $30=$h.getChildren?true:false;var $f=($2b)?r.insertCell(-1):r.cells[i];$f.data=$h;if($2Z){}else{var $31=1;if($30){$31=$h.getChildrenCount($c.headerLevels-$1k+1);};$f.colSpan=$31;};if($30){$f.onclick=this.$5p;$f.onmousemove=this.$5q;$f.onmouseout=this.$5r;if($h.toolTip){$f.title=$h.toolTip;}};$f.style.overflow='hidden';$f.style.padding='0px';$f.style.border='0px none';$f.style.height=($0e.headerHeight())+"px";if(!this.cssOnly){$f.style.borderLeft="0px none";if(i!==$2Y-1){$f.style.borderRight="1px solid "+this.borderColor;}};var $d=($2b)?document.createElement("div"):$f.firstChild;if($2b){$d.setAttribute("unselectable","on");$d.style.MozUserSelect='none';$d.style.KhtmlUserSelect='none';$d.style.WebkitUserSelect='none';$d.style.position='relative';$d.style.height=$0e.headerHeight()+"px";if(!this.cssOnly){$d.className=$c.$58('colheader');$d.style.cursor='default';$d.style.fontFamily=this.headerFontFamily;$d.style.fontSize=this.headerFontSize;$d.style.color=this.headerFontColor;$d.style.backgroundColor=$h.backColor;$d.style.textAlign='center';var $2h=document.createElement("div");$2h.style.position='absolute';$2h.style.left='0px';$2h.style.right='0px';$2h.style.top="0px";$2h.style.bottom="0px";$2h.style.padding="2px";$2h.setAttribute("unselectable","on");if($1k!==1){$2h.style.borderTop='1px solid '+this.borderColor;};if(this.headerClickHandling!=="Disabled"){$2h.style.cursor='pointer';};$d.appendChild($2h);}else{$d.className=$c.$58('_colheader');var $M=document.createElement("div");$M.className=$c.$58('_colheader_inner');if($h.backColor){$M.style.background=$h.backColor;};$d.appendChild($M);};$f.appendChild($d);}else{$d.style.height=$0e.headerHeight()+"px";};this.$6W($d,$h);if($30){$d.firstChild.innerHTML=$h.html;}}};this.$6W=function($d,$h){var $32=[];for(var j=0;j<$d.childNodes.length;j++){var $r=$d.childNodes[j];if($r.isActiveArea){$32.push($r);}};for(var j=0;j<$32.length;j++){var $r=$32[j];DayPilot.de($r);};if($h.areas){var $1u=$h.areas;for(var j=0;j<$1u.length;j++){var $1O=$1u[j];if($1O.v!=='Visible'){continue;};var o=new DayPilotCalendar.Column($h.id,$h.name,$h.start);var a=DayPilot.Areas.createArea($d,o,$1O);$d.appendChild(a);}}};this.$4R=function(){if(!this.showHeader){return;};var $1t=this.nav.header;var $2b=true;var $0f=this.$6d($c.headerLevels,true);var $2Y=$0f.length;if(this.$6X&&$c.$4p.ielt9&&$2b){DayPilot.de(this.nav.header);this.$6K();}while(this.$6X&&$1t&&$1t.rows&&$1t.rows.length>0&&$2b){if(!this.$4l)DayPilot.pu($1t.rows[0]);$1t.deleteRow(0);};this.$6X=true;var $S=$c.cornerHTML||$c.cornerHtml;if(!$2b){var $2n=$c.nav.corner;if($2n){if(!this.cssOnly){if($c.cornerBackColor){$2n.style.backgroundColor=$c.cornerBackColor;}else{$2n.style.backgroundColor=$c.hourBackColor;}};if(!this.$4l)DayPilot.pu($2n.firstChild);$2n.firstChild.innerHTML=$S?$S:'';}};for(var i=0;i<$c.headerLevels;i++){this.$6V(i+1,$2b);};if(!this.showAllDayEvents){return;};var r=($2b)?this.nav.header.insertRow(-1):this.nav.header.rows[$c.headerLevels];for(var i=0;i<$2Y;i++){var $h=$0f[i];var $f=($2b)?r.insertCell(-1):r.cells[i];$f.data=$h;$f.style.padding='0px';$f.style.border='0px none';$f.style.overflow='hidden';if(!this.cssOnly){$f.style.lineHeight='1.2';};var $d=($2b)?document.createElement("div"):$f.firstChild;if($2b){$d.setAttribute("unselectable","on");$d.style.MozUserSelect='none';$d.style.KhtmlUserSelect='none';$d.style.WebkitUserSelect='none';$d.style.overflow='hidden';$d.style.position="relative";$d.style.height=$0e.allDayHeaderHeight()+"px";if(!this.cssOnly){$d.className=this.$58("alldayheader");$d.style.textAlign='center';$d.style.backgroundColor=$h.backColor;$d.style.cursor='default';var $2h=document.createElement("div");$2h.style.position="absolute";$2h.style.left='0px';$2h.style.right='0px';$2h.style.top="0px";$2h.style.bottom="0px";$2h.setAttribute("unselectable","on");$2h.style.borderTop='1px solid '+this.borderColor;$d.appendChild($2h);if($c.rtl){if(i===$2Y-1){$2h.style.borderLeft="1px solid "+$h.backColor;}else{$2h.style.borderLeft="1px solid "+this.borderColor;}}else{if(i!==$2Y-1){$2h.style.borderRight="1px solid "+this.borderColor;}}}else{$d.className=this.$58("_alldayheader");var $M=document.createElement("div");$M.className=this.$58("_alldayheader_inner");$d.appendChild($M);};$f.appendChild($d);};$d.style.height=$0e.allDayHeaderHeight()+"px";}};this.$4v=function(){if(this.loadingLabelVisible&&this.nav.loading){this.nav.loading.innerHTML=this.loadingLabelText;this.nav.loading.style.top=(this.$5f()+5)+"px";this.nav.loading.style.display='';}};this.$4K=function(){if(this.callbackTimeout){window.clearTimeout(this.callbackTimeout);};if(this.nav.loading){this.nav.loading.style.display='none';}};this.$6Y=function(){var $22=this.$5R();var $33=this.initScrollPos;if(!$33){var $2g=this.businessBeginsHour;$33=$2g*(60/$c.cellDuration)*$c.cellHeight;};$22.root=this;$22.onscroll=this.$5P;if($22.scrollTop===0){$22.scrollTop=$33-this.$5U();}else{this.$5P();}};this.$6Z=function(){var el=$c.nav.top;return el.offsetWidth>0&&el.offsetHeight>0;};this.$70=function(){var $1i=$c.$6Z;if(!$1i()){$c.$71=setInterval(function(){if($1i()){$c.$6Y();$c.$4Y();clearInterval($c.$71);}},100);}};this.scrollToY=function($1H){var $22=this.$5R();$22.scrollTop=$1H;};this.scrollToHour=function($2g){var $22=this.$5R();var $1H=$2g*(60/$c.cellDuration)*$c.cellHeight;$22.scrollTop=$1H-this.$5U();};this.$5R=function(){var $0Q=this.columnWidthSpec==='Fixed';return $0Q||this.$5Q?this.nav.bottomRight:this.nav.scroll;};this.onCallbackError=function($u,$v){alert("Error!\r\nResult: "+$u+"\r\nContext:"+$v);};this.$4Y=function(){if(!$c.showHeader){return;};var $34=this.$6I();var $1i=!!this.nav.cornerRight;if(this.$5Q){if(this.nav.unifiedCornerRight){DayPilot.de(this.nav.unifiedCornerRight);};var $35=this.$6B();if($35!="100%"&&parseInt($35)<this.$5R().clientWidth){return;};var w=DayPilot.sw(this.nav.bottomRight);this.nav.unifiedCornerRight=this.nav.header.rows[0].insertCell(-1);var c=this.nav.unifiedCornerRight;c.rowSpan=this.nav.header.rows.length;c.style.width=w+"px";var $2n=document.createElement("div");$2n.setAttribute("unselectable","on");if(this.cssOnly){$2n.className=this.$58('_cornerright');};$2n.style.overflow="hidden";$2n.style.height=this.$5f()+"px";$2n.style.position="relative";var $M=document.createElement("div");if(this.cssOnly){$M.className=this.$58('_cornerright_inner');};$2n.appendChild($M);c.appendChild($2n);var $36=this.columnWidthSpec==="Fixed";if(!$36&&this.nav.allday){this.nav.allday.style.right=w+"px";};return;};if($34!==$1i){if($34){this.$6L();}else{if(this.nav.fullHeader&&this.nav.fullHeader.rows[0].cells.length===3){var c=this.nav.fullHeader.rows[0].cells[2];if(c.parentNode){c.parentNode.removeChild(c);}};this.nav.cornerRight=null;}};var d=this.nav.cornerRight;if(!d){return;};var w=DayPilot.sw($c.$5g());if(!this.cssOnly){if(w>=3){d.style.width=(w-3)+'px';}}else{if(d){d.style.width=(w)+'px';}};return w;};this.$54=function($37){if($37){this.autoRefreshEnabled=true;};if(!this.autoRefreshEnabled){return;};if(this.$4o>=this.autoRefreshMaxCount){return;};this.$4z();var $38=this.autoRefreshInterval;if(!$38||$38<10){throw "The minimum autoRefreshInterval is 10 seconds";};this.autoRefreshTimeout=window.setTimeout(function(){$c.$72();},this.autoRefreshInterval*1000);};this.$4z=function(){if(this.autoRefreshTimeout){window.clearTimeout(this.autoRefreshTimeout);}};this.$72=function(){if(!DayPilot.Global.resizing&&!DayPilot.Global.moving&&!DayPilotCalendar.drag&&!DayPilotCalendar.selecting){var $39=false;if(typeof this.onAutoRefresh==='function'){var $n={};$n.i=this.$4o;$n.preventDefault=function(){this.preventDefault.value=true;};$c.onAutoRefresh($n);if($n.preventDefault.value){$39=true;}};if(!$39&&this.$4u()){this.commandCallBack(this.autoRefreshCommand);};this.$4o++;};if(this.$4o<this.autoRefreshMaxCount){this.autoRefreshTimeout=window.setTimeout(function(){$c.$72();},this.autoRefreshInterval*1000);}};this.$4D=function(){$c.$4X();if($c.heightSpec==="Parent100Pct"){$c.setHeight(parseInt($c.nav.top.clientHeight,10));};$c.$53();};this.$73=function(){if(!DayPilotCalendar.globalHandlers){DayPilotCalendar.globalHandlers=true;DayPilot.re(document,'mousemove',DayPilotCalendar.gMouseMove);DayPilot.re(document,'mouseup',DayPilotCalendar.gMouseUp);DayPilot.re(document,DayPilot.touch.move,DayPilotCalendar.gTouchMove);DayPilot.re(document,DayPilot.touch.end,DayPilotCalendar.gTouchEnd);};DayPilot.re(window,'resize',this.$4D);};this.$6l=function(ev){if($0G.active||$0G.using){return;};ev=ev||window.event;var $0H=DayPilot.Util.mouseButton(ev);if(typeof(DayPilotBubble)!=='undefined'){DayPilotBubble.hideActive();};if((this.style.cursor==='n-resize'||this.style.cursor==='s-resize')&&$0H.left){DayPilot.Global.resizing=this;DayPilotCalendar.originalMouse=DayPilot.mc(ev);DayPilotCalendar.originalHeight=this.offsetHeight;DayPilotCalendar.originalTop=this.offsetTop;$c.nav.top.style.cursor=this.style.cursor;}else if((this.style.cursor==='move'||($c.moveBy==='Full'&&this.event.client.moveEnabled()))&&$0H.left){DayPilot.Global.moving=this;var $3a=DayPilot.Global.moving.helper={};$3a.oldColumn=$c.$57[this.event.part.dayIndex].id;DayPilotCalendar.originalMouse=DayPilot.mc(ev);DayPilotCalendar.originalTop=this.offsetTop;var $0T=DayPilot.mo3(this,ev);if($0T){DayPilotCalendar.moveOffsetY=$0T.y;}else{DayPilotCalendar.moveOffsetY=0;};$c.nav.top.style.cursor=this.style.cursor;};return false;};this.$74=function(i){var $1I=this.$4k.events;var $h=this.events.list[i];var $3b={};for(var name in $h){$3b[name]=$h[name];};if($c.showEventStartEnd){var $3c=$h.start.getDatePart().getTime()===$h.end.getDatePart().getTime();var $1j=$3c?$0e.locale().timePattern:$0e.locale().dateTimePattern;var $3d=$h.start.toString($1j);var $3e=$h.end.toString($1j);$3b.html=$3b.text+" ("+$3d+" - "+$3e+")";};if(typeof this.onBeforeEventRender==='function'){var $n={};$n.e=$3b;$n.data=$3b;this.onBeforeEventRender($n);};$1I[i]=$3b;};this.$6m={};var $0G=$c.$6m;$0G.active=false;$0G.start=null;$0G.timeout=null;$0G.startcell=null;this.$6m.getCellCoords=function(ev){var x,y;if(ev.touches){x=ev.touches[0].pageX;y=ev.touches[0].pageY;}else{x=ev.pageX;y=ev.pageY;};var $3f=DayPilot.abs($c.nav.main);var $3g={x:x-$3f.x,y:y-$3f.y};var w=($c.nav.main.clientWidth/$c.$57.length);var $2N={"pageX":x,"pageY":y,"x":Math.floor($3g.x/w),"y":Math.floor($3g.y/$c.cellHeight),"toString":function(){return "x: "+this.x+" y:"+this.y;}};return $2N;};this.$6m.startSelecting=function($2N){var $f=$c.nav.main.rows[$2N.y].cells[$2N.x];$0G.startcell=$2N;$c.clearSelection();DayPilotCalendar.column=DayPilotCalendar.getColumn($f);$c.selectedCells.push($f);DayPilotCalendar.firstSelected=$f;DayPilotCalendar.topSelectedCell=$f;DayPilotCalendar.bottomSelectedCell=$f;$c.$5L();};this.$6m.extendSelection=function($2N){var $f=$c.nav.main.rows[$2N.y].cells[$2N.x];$c.clearSelection();if($2N.y<$0G.startcell.y){$c.selectedCells=DayPilotCalendar.getCellsBelow($f);DayPilotCalendar.topSelectedCell=$c.selectedCells[0];DayPilotCalendar.bottomSelectedCell=DayPilotCalendar.firstSelected;}else{$c.selectedCells=DayPilotCalendar.getCellsAbove($f);DayPilotCalendar.topSelectedCell=DayPilotCalendar.firstSelected;DayPilotCalendar.bottomSelectedCell=$c.selectedCells[0];};$c.$5L();};this.$6m.onMainTouchStart=function(ev){if(DayPilot.Util.isMouseEvent(ev)){return;};if($0G.active){return;};$0G.using=true;var $2N=$0G.getCellCoords(ev);$0G.startCoords=$2N;var $3h=$c.tapAndHoldTimeout;$0G.timeout=window.setTimeout(function(){ev.preventDefault();$0G.active=true;switch($c.timeRangeTapAndHoldHandling){case "Select":$0G.startSelecting($2N);break;case "ContextMenu":$0G.startSelecting($2N);$0G.active=false;if($c.contextMenuSelection){$c.contextMenuSelection.show($c.getSelection());};break;}},$3h);};this.$6m.onCellTouchMove=function(ev){};this.$6m.onCellTouchEnd=function(ev){if(!$0G.active){window.clearTimeout($0G.timeout);return;};ev.preventDefault();$0G.startcell=null;var $0P=$c.getSelection();$0P.toString=function(){return "start: "+this.start+"\nend: "+this.end;};$c.$5E($0P.start,$0P.end,$0P.resource);window.setTimeout(function(){$0G.active=false;},500);};this.$6m.startMoving=function($d,$2N){DayPilot.Global.moving=$d;var $3a=DayPilot.Global.moving.helper={};$3a.oldColumn=$c.$57[$d.event.part.dayIndex].id;DayPilotCalendar.originalMouse=$2N;DayPilotCalendar.originalTop=this.offsetTop;var $3f=DayPilot.abs($d);DayPilotCalendar.moveOffsetY=$2N.y-$3f.y;if(!DayPilotCalendar.movingShadow){DayPilotCalendar.movingShadow=$c.$56(DayPilot.Global.moving,!$c.$4p.ie,$c.shadow);DayPilotCalendar.movingShadow.style.width=(DayPilotCalendar.movingShadow.parentNode.offsetWidth+1)+'px';}};this.$6m.updateMoving=function(){var $2N=$c.coords;var $2A=$c.cellHeight;var $I=0;var $0T=DayPilotCalendar.moveOffsetY;if(!$0T){$0T=$2A/2;};var $2D=Math.floor((($2N.y-$0T-$I)+$2A/ 2)/ $2A)*$2A+$I;if($2D<$I){$2D=$I;};var $G=$c.nav.main;var $N=$G.clientHeight;var $J=parseInt(DayPilotCalendar.movingShadow.style.height);if($2D+$J>$N){$2D=$N-$J;};DayPilotCalendar.movingShadow.style.top=$2D+'px';var $H=$G.clientWidth/$G.rows[0].cells.length;var $q=Math.floor($2N.x/$H);if($q<0){$q=0;};var $15=$c.nav.events;if($q<$15.rows[0].cells.length&&$q>=0&&DayPilotCalendar.movingShadow.column!==$q){DayPilotCalendar.movingShadow.column=$q;DayPilotCalendar.moveShadow($15.rows[0].cells[$q]);}};this.$6m.onEventTouchStart=function(ev){if($0G.active){return;};if(DayPilot.Util.isMouseEvent(ev)){return;};ev.stopPropagation();$0G.preventEventTap=false;$0G.using=true;$0G.startCoords=$0G.getCellCoords(ev);var $d=this;var x=ev.touches?ev.touches[0].pageX:ev.pageX;var y=ev.touches?ev.touches[0].pageY:ev.pageY;var $2N={x:x,y:y,$d:this};$c.coords=$0G.relativeCoords(ev);var $3h=$c.tapAndHoldTimeout;$0G.timeout=window.setTimeout(function(){$0G.active=true;switch($c.eventTapAndHoldHandling){case "Move":$0G.startMoving($d,$2N);break;case "ContextMenu":var e=$d.event;var $06=e.client.contextMenu();if(DayPilot.Menu){DayPilot.Menu.touchPosition(ev);};if($06){$06.show(e);}else{if($c.contextMenu){$c.contextMenu.show(e);}};break;}},$3h);};this.$6m.onMainTouchMove=function(ev){if(DayPilot.Util.isMouseEvent(ev)){return;};if($0G.timeout){var $2N=$0G.getCellCoords(ev);if($2N&&$0G.startCoords){if($2N.pageX!==$0G.startCoords.pageX||$2N.pageY!==$0G.startCoords.pageY){window.clearTimeout($c.$6m.timeout);}}};if(DayPilot.Global.moving&&DayPilotCalendar.movingShadow){ev.preventDefault();$c.coords=$0G.relativeCoords(ev);$0G.updateMoving();return;}else if($0G.startcell){ev.preventDefault();if(!$0G.active){window.clearTimeout($0G.timeout);return;};var $2N=$0G.getCellCoords(ev);$0G.extendSelection($2N);};$0G.preventEventTap=true;};this.$6m.relativeCoords=function(ev){var $2y=$c.nav.main;var x=ev.touches?ev.touches[0].pageX:ev.pageX;var y=ev.touches?ev.touches[0].pageY:ev.pageY;var $3f=DayPilot.abs($2y);var $2N={x:x-$3f.x,y:y-$3f.y,"toString":function(){return "x: "+this.x+", y:"+this.y;}};return $2N;};this.$6m.onMainTouchEnd=function(ev){if(DayPilot.Util.isMouseEvent(ev)){return;};if(DayPilot.Global.moving){$0G.active=false;ev.preventDefault();ev.stopPropagation();var top=DayPilotCalendar.movingShadow.offsetTop;DayPilotCalendar.deleteShadow(DayPilotCalendar.movingShadow);var $3i=DayPilot.Global.moving.event;var $0q=DayPilotCalendar.movingShadow.column;DayPilot.Global.moving=null;DayPilotCalendar.movingShadow=null;$3i.calendar.$5x($3i,$0q,top,ev,DayPilotCalendar.drag);}else if($0G.startcell){if(!$0G.active){window.clearTimeout($0G.timeout);return;};ev.preventDefault();$0G.startcell=null;var $0P=$c.getSelection();$0P.toString=function(){return "start: "+this.start+"\nend: "+this.end;};$c.$5E($0P.start,$0P.end,$0P.resource);window.setTimeout(function(){$0G.active=false;},500);}};this.$6m.onEventTouchMove=function(ev){$0G.preventEventTap=true;};this.$6m.onEventTouchEnd=function(ev){if(DayPilot.Util.isMouseEvent(ev)){return;};if(!$0G.active){if($0G.preventEventTap){return;};ev.preventDefault();window.clearTimeout($0G.timeout);$c.$5k(this,false);return;};$0G.active=false;if($0G.timeout){window.clearTimeout($0G.timeout);return;};ev.preventDefault();};this.$6j=function(ev){var $3j=5;var $3k=Math.max($c.durationBarWidth,10);var w=5;var $1t=($c.moveBy==='Top');if(typeof(DayPilotCalendar)==='undefined'){return;};var $0T=DayPilot.mo3(this,ev);if(!$0T){return;};var $d=this;if(!$d.active){var $1u=[];if($d.event.client.deleteEnabled()){$1u.push({"action":"JavaScript","v":"Hover","w":17,"h":17,"top":2,"right":2,"css":$c.$58("_event_delete"),"js":function(e){$c.$5s(e);}});};var $18=$d.event.cache?$d.event.cache.areas:$d.event.data.areas;if($18&&$18.length>0){$1u=$1u.concat($18);};DayPilot.Areas.showAreas($d,$d.event,null,$1u);if($c.cssOnly){DayPilot.Util.addClass($d,$c.$58("_event_hover"));}};if(DayPilot.Global.resizing||DayPilot.Global.moving){return;};var $3l=this.isFirst;var $3m=this.isLast;if($c.moveBy==="Disabled"||$c.moveBy==="None"){return;};if(!$1t&&$0T.x<=$3k&&this.event.client.moveEnabled()){if($3l){this.style.cursor='move';}else{this.style.cursor='not-allowed';}}else if(!$1t&&$0T.y<=$3j&&this.event.client.resizeEnabled()){if($3l){this.style.cursor="n-resize";this.dpBorder='top';}else{this.style.cursor='not-allowed';}}else if($1t&&$0T.y<=$3k&&this.event.client.moveEnabled()){this.style.cursor="move";}else if(this.offsetHeight-$0T.y<=$3j&&this.event.client.resizeEnabled()){if($3m){this.style.cursor="s-resize";this.dpBorder='bottom';}else{this.style.cursor='not-allowed';}}else if(!DayPilot.Global.resizing&&!DayPilot.Global.moving){if(this.event.client.clickEnabled())this.style.cursor='pointer';else this.style.cursor='default';};if(typeof(DayPilotBubble)!=='undefined'&&$c.bubble&&$c.eventHoverHandling!=='Disabled'){if(this.style.cursor==='default'||this.style.cursor==='pointer'){var $3n=this.$75&&$0T.x===this.$75.x&&$0T.y===this.$75.y;if(!$3n){this.$75=$0T;$c.bubble.showEvent(this.event);}}else{}}};this.$6k=function(ev){if($c.cssOnly){DayPilot.Util.removeClass(this,$c.$58("_event_hover"));};if($c.bubble){$c.bubble.hideOnMouseOut();};DayPilot.Areas.hideAreas(this,ev);};this.$76=null;this.$4Z=function(){if(this.showCurrentTime){this.$77();var $0a=new DayPilot.Date().addMinutes($c.showCurrentTimeOffset);if($c.showCurrentTimeMode==="Full"){this.$78($0a);}else if($c.showCurrentTimeMode==="Day"){this.$79($0a);}else{throw "Invalid DayPilot.Calendar.showCurrentTimeMode value: "+$c.showCurrentTimeMode;};if(this.nav.events&&!this.$76){var $3o=30;this.$76=setTimeout(function(){$c.$76=null;$c.$4Z();},$3o*1000);}}};this.$77=function(){DayPilot.de($c.elements.separators);$c.elements.separators=[];};this.$79=function($0v){var $3p=$0v.getTime();var $G=$c.nav.events;if(!$G){return;};for(var i=0;i<$c.$57.length;i++){var $1Q=$c.$57[i];var $K=$c.$5a(true);var $3q=new DayPilot.Date($1Q.start).addHours(this.$5e(true));var $3r=$3q.getTime();var $3s=$3q.addTime($K);var $3t=$3s.getTime();if($3r<=$3p&&$3p<=$3t){var $3u=this.$7a($0v,$1Q.start).top-1;var $f=$G.rows[0].cells[i];var $1V=$f.separators;var $d=document.createElement("div");$d.style.position="absolute";$d.style.top=$3u+"px";$d.style.height="1px";$d.style.left="0px";$d.style.right="0px";$d.className=$c.$58("_now");$1V.insertBefore($d,$1V.firstChild);$c.elements.separators.push($d);}}};this.$78=function($0v){var $3p=$0v.getTime();var $G=$c.nav.events;if(!$G){return;};var $1Q=$c.$57[0];if(!$1Q){return;};var $3v=$1Q.start.getDatePart().addTime($0v.getTimePart());var $3u=this.$7a($3v,$1Q.start).top-1;for(var i=0;i<$c.$57.length;i++){var $1Q=$c.$57[i];var $K=$c.$5a(true);var $3q=new DayPilot.Date($1Q.start).addHours(this.$5e(true));var $3r=$3q.getTime();var $3s=$3q.addTime($K);var $3t=$3s.getTime();if($3r<=$3p&&$3p<=$3t){var $d=document.createElement("div");$d.style.position="absolute";$d.style.top=$3u+"px";$d.style.height="1px";$d.style.left="0px";$d.style.right="0px";$d.className=$c.$58("_now");$c.nav.events.appendChild($d);$c.elements.separators.push($d);return;}}};this.$4P=function($15){if(!$15){$15=this.events.list;}else{this.events.list=$15;};if(!$15){return;};this.$6g={};this.$6g.events=[];this.$6g.lines=[];var length=$15.length;var $K=this.$5a(true);this.$4k.pixels={};var $3w=[];this.$5T=[];this.$5u=10000;this.$5d=0;this.startDate=new DayPilot.Date(this.startDate);for(var i=0;i<length;i++){var e=$15[i];e.start=new DayPilot.Date(e.start);e.end=new DayPilot.Date(e.end);};if(typeof this.onBeforeEventRender==='function'||$c.showEventStartEnd){for(var i=0;i<length;i++){this.$74(i);}};var $3x=this.viewType==='Resources';var $1i=this.$6e();var $3y=$1i.start;var $3z=$1i.end;for(var i=0;i<this.$57.length;i++){var scroll={};scroll.minEnd=1000000;scroll.maxStart=-1;this.$5T.push(scroll);var $1Q=this.$57[i];$1Q.events=[];$1Q.lines=[];$1Q.blocks=[];var $3q=new DayPilot.Date($1Q.start).addHours(this.$5e(true));var $3r=$3q.getTime();var $3s=$3q.addTime($K);var $3t=$3s.getTime();if($3x){$3y=$3q.getDatePart();$3z=$3s.getDatePart();};for(var j=0;j<length;j++){if($3w[j]){continue;};var e=$15[j];var $09=e.start;var end=e.end;var $3A=$09.getTime();var $3B=end.getTime();if($3B<$3A){continue;};if(e.allday){var $3C=false;if($3A===$3B){$3C=!($3B<$3y.getTime()||$3A>=$3z.getTime());}else if($c.allDayEnd==='Date'){$3C=!($3B<$3y.getTime()||$3A>=$3z.getTime());}else{$3C=!($3B<=$3y.getTime()||$3A>=$3z.getTime());};if($3x){$3C=$3C&&(e.resource===$1Q.id||$1Q.id==="*");};if($3C){var ep=new DayPilot.Event(e,this);ep.part.start=$3y.getTime()<$3A?$09:$3y;ep.part.end=$3z.getTime()>$3B?end:$3z;ep.part.colStart=DayPilot.DateUtil.daysDiff($3y,ep.part.start);ep.part.colWidth=DayPilot.DateUtil.daysSpan(ep.part.start,ep.part.end)+1;if($3x){ep.part.colStart=i;ep.part.colWidth=1;};this.$6g.events.push(ep);if(typeof this.onBeforeEventRender==='function'||$c.showEventStartEnd){ep.cache=this.$4k.events[j];};$3w[j]=true;if($3x&&(ep.part.start.getTime()!==$3A||ep.part.end.getTime()!==$3B)){$3w[j]=false;}};continue;};var $3C=false;if($3x){$3C=($1Q.id===e.resource)&&!($3B<=$3r||$3A>=$3t);}else{$3C=!($3B<=$3r||$3A>=$3t)||($3B===$3A&&$3A===$3r);};if($3C){var ep=new DayPilot.Event(e,$c);ep.part.dayIndex=i;ep.part.start=$3r<$3A?$09:$3q;ep.part.end=$3t>$3B?end:$3s;var $3u=this.$7a(ep.part.start,$1Q.start);var $3D=this.$7a(ep.part.end,$1Q.start);var top=$3u.top;var $1c=$3D.top;if(top===$1c&&($3u.cut||$3D.cut)){continue;};ep.part.box=$0e.useBox($3B-$3A);var $I=0;if(ep.part.box){var $3E=$3D.boxBottom;ep.part.top=Math.floor(top/this.cellHeight)*this.cellHeight+$I;ep.part.height=Math.max(Math.ceil($3E/this.cellHeight)*this.cellHeight-ep.part.top,this.cellHeight-1);ep.part.barTop=Math.max(top-ep.part.top-1,0);ep.part.barHeight=Math.max($1c-top-2,1);}else{ep.part.top=top+$I;ep.part.height=Math.max($1c-top,0);ep.part.barTop=0;ep.part.barHeight=Math.max($1c-top-2,1);};var $09=ep.part.top;var end=ep.part.top+ep.part.height;if($09>scroll.maxStart){scroll.maxStart=$09;};if(end<scroll.minEnd){scroll.minEnd=end;};if($09<this.$5u){this.$5u=$09;};if(end>this.$5d){this.$5d=end;};$1Q.events.push(ep);if(typeof this.onBeforeEventRender==='function'||$c.showEventStartEnd){ep.cache=this.$4k.events[j];};if(ep.part.start.getTime()===$3A&&ep.part.end.getTime()===$3B){$3w[j]=true;}}}};for(var i=0;i<this.$57.length;i++){var $1Q=this.$57[i];$1Q.events.sort(this.$7b);for(var j=0;j<$1Q.events.length;j++){var e=$1Q.events[j];$1Q.putIntoBlock(e);};for(var j=0;j<$1Q.blocks.length;j++){var $1o=$1Q.blocks[j];$1o.events.sort(this.$7c);for(var k=0;k<$1o.events.length;k++){var e=$1o.events[k];$1o.putIntoLine(e);}}};this.$6g.events.sort(this.$7c);this.$6g.putIntoLine=function(ep){var $1p=this;for(var i=0;i<this.lines.length;i++){var $1q=this.lines[i];if($1q.isFree(ep.part.colStart,ep.part.colWidth)){$1q.push(ep);return i;}};var $1q=[];$1q.isFree=function($09,$11){var end=$09+$11-1;var $N=this.length;for(var i=0;i<$N;i++){var e=this[i];if(!(end<e.part.colStart||$09>e.part.colStart+e.part.colWidth-1)){return false;}};return true;};$1q.push(ep);this.lines.push($1q);return this.lines.length-1;};for(var i=0;i<this.$6g.events.length;i++){var e=this.$6g.events[i];this.$6g.putIntoLine(e);};var $3F=Math.max(this.$6g.lines.length,1);this.$4k.allDayHeaderHeight=$3F*($0e.allDayEventHeight()+2)+2;};this.$7b=function(a,b){if(!a||!b||!a.start||!b.start){return 0;};var $3G=a.start().ticks-b.start().ticks;if($3G!==0){return $3G;};var $3H=b.end().ticks-a.end().ticks;return $3H;};this.$7c=function(a,b){if(!a||!b){return 0;};if(!a.data||!b.data||!a.data.sort||!b.data.sort||a.data.sort.length===0||b.data.sort.length===0){return $c.$7b(a,b);};var $u=0;var i=0;while($u===0&&typeof a.data.sort[i]!=="undefined"&&typeof b.data.sort[i]!=="undefined"){if(a.data.sort[i]===b.data.sort[i]){$u=0;}else{$u=$c.$7d(a.data.sort[i],b.data.sort[i],$c.sortDirections[i]);};i++;};return $u;};this.$7d=function(a,b,$3I){var $3J=($3I!=="desc");var $3K=$3J?-1:1;var $3L=-$3K;if(a===null&&b===null){return 0;};if(b===null){return $3L;};if(a===null){return $3K;};var ar=[];ar[0]=a;ar[1]=b;ar.sort();return a===ar[0]?$3K:$3L;};this.$7e=function(e){for(var i=0;i<$c.elements.events.length;i++){var $d=$c.elements.events[i];if($d.event===e||$d.event.data===e.data){return $d;}};return null;};this.events.find=function(id){if(!$c.events.list||typeof $c.events.list.length==='undefined'){return null;};var $2Y=$c.events.list.length;for(var i=0;i<$2Y;i++){if($c.events.list[i].id===id){return new DayPilot.Event($c.events.list[i],$c);}};return null;};this.events.findRecurrent=function($3M,$0a){if(!$c.events.list||typeof $c.events.list.length==='undefined'){return null;};var $2Y=$c.events.list.length;for(var i=0;i<$2Y;i++){if($c.events.list[i].recurrentMasterId===$3M&&$c.events.list[i].start.getTime()===$0a.getTime()){return new DayPilot.Event($c.events.list[i],$c);}};return null;};this.events.update=function(e,$h){var $0d={};$0d.oldEvent=new DayPilot.Event(e.copy(),$c);$0d.newEvent=new DayPilot.Event(e.temp(),$c);var $g=new DayPilot.Action($c,"EventUpdate",$0d,$h);e.commit();if($c.$4n){$c.update();};$c.$7f.notify();return $g;};this.events.remove=function(e,$h){var $0d={};$0d.e=new DayPilot.Event(e.data,$c);var $g=new DayPilot.Action($c,"EventRemove",$0d,$h);var $2e=DayPilot.indexOf($c.events.list,e.data);$c.events.list.splice($2e,1);if($c.$4n){$c.update();};$c.$7f.notify();return $g;};this.events.add=function(e,$h){e.calendar=$c;if(!$c.events.list){$c.events.list=[];};$c.events.list.push(e.data);var $0d={};$0d.e=e;var $g=new DayPilot.Action($c,"EventAdd",$0d,$h);if($c.$4n){$c.update();};$c.$7f.notify();return $g;};this.events.load=function($3N,$3O,$3P){var $3Q=function($n){var $3R={};$3R.exception=$n.exception;$3R.request=$n.request;if(typeof $3P==='function'){$3P($3R);}};var $3S=function($n){var r=$n.request;var $h;try{$h=DayPilot.Util.parseJSON(r.responseText);}catch(e){var $3T={};$3T.exception=e;$3Q($3T);return;};if(DayPilot.isArray($h)){var $3U={};$3U.preventDefault=function(){this.preventDefault.value=true;};$3U.data=$h;if(typeof $3O==="function"){$3O($3U);};if($3U.preventDefault.value){return;};$c.events.list=$h;if($c.$4n){$c.update();}}};DayPilot.ajax({"method":"POST","data":{"start":$c.visibleStart().toString(),"end":$c.visibleEnd().toString()},"url":$3N,"success":$3S,"error":$3Q});};this.queue={};this.queue.list=[];this.queue.list.ignoreToJSON=true;this.queue.add=function($g){if(!$g){return;};if($g.isAction){$c.queue.list.push($g);}else{throw "DayPilot.Action object required for queue.add()";}};this.queue.notify=function($h){var $0d={};$0d.actions=$c.queue.list;$c.$4t('Notify',$0d,$h,"Notify");$c.queue.list=[];};this.queue.clear=function(){$c.queue.list=[];};this.queue.pop=function(){return $c.queue.list.pop();};this.$7g=function($n){if(!this.$4n||!this.$57){return;};var $n=$n||{};var $3V=!$n.eventsOnly;if(!$c.cssOnly){$c.cssOnly=true;DayPilot.Util.log("DayPilot: cssOnly = false mode is not supported since DayPilot Pro 8.0.");};if(!this.$4u()){$c.cellProperties={};};if($3V){$c.$4A();this.$7h();this.$4N();this.$4P();$c.$4R();$c.$4S();$c.$4T();$c.$4U();$c.$4q();$c.$4V();$c.$5L();$c.$4W();$c.$4X();$c.$4Y();$c.$6v();this.$51();this.$52();this.$4Z();$c.$53();}else{$c.$4A();$c.$4P();$c.$4Q();$c.$51();$c.$52();$c.$53();};if(this.visible){this.show();}else{this.hide();}};this.update=function(){this.$7g();if(typeof $c.onAfterRender==='function'){var $n={};$n.isUpdate=true;$n.data=null;$c.onAfterRender($n);}};this.show=function(){$c.visible=true;$c.nav.top.style.display='';$c.$4D();$c.$4Y();$c.$5P();};this.hide=function(){$c.visible=false;$c.nav.top.style.display='none';};this.$7f={};this.$7f.scope=null;this.$7f.notify=function(){if($c.$7f.scope){$c.$7f.scope["$apply"]();}};this.debug=new DayPilot.Debug(this);this.$7a=function($0v,$09){if(!$09)$09=this.startDate;var $3A=$09.getTime();var $3p=$0v.getTime();var $1I=this.$4k.pixels[$3p+"_"+$3A];if($1I){return $1I;};$3A=$09.addHours(this.$5e(true)).getTime();var $3W=this.cellDuration*60*1000;var $3X=$3p-$3A;var $3Y=$3X%$3W;var $3Z=$3X-$3Y;var $40=$3Z+$3W;if($3Y===0){$40=$3Z;};var $u={};$u.cut=false;$u.top=this.$7i($3X);$u.boxTop=this.$7i($3Z);$u.boxBottom=this.$7i($40);this.$4k.pixels[$3p+"_"+$3A]=$u;return $u;};this.$7i=function($3p){return Math.floor((this.cellHeight*$3p)/(1000*60*this.cellDuration));};this.$7h=function(){this.startDate=new DayPilot.Date(this.startDate).getDatePart();this.$7j=$0e.allDayEventHeight()+4;};this.$4Q=function(){var $1t=this.$5f();var $2a=this.$6p();if(this.nav.corner){this.nav.corner.style.height=$1t+"px";};if(this.nav.cornerRight){this.nav.cornerRight.style.height=$1t+"px";};if(this.nav.mid){this.nav.mid.style.height=$1t+"px";};if(this.showAllDayEvents&&this.nav.header){var $23=this.nav.header.rows[this.nav.header.rows.length-1];for(var i=0;i<$23.cells.length;i++){var $q=$23.cells[i];$q.firstChild.style.height=$0e.allDayHeaderHeight()+"px";}};if(this.nav.upperRight){this.nav.upperRight.style.height=$1t+"px";};this.nav.scroll.style.top=$1t+"px";this.nav.top.style.height=$2a+"px";};this.$4X=function(){var sh=this.$6q();if(this.nav.scroll&&sh>0){this.nav.scroll.style.height=sh+"px";this.$5S=$c.nav.scroll.clientHeight;if(this.nav.bottomLeft){this.nav.bottomLeft.style.height=sh+"px";};if(this.nav.bottomRight){this.nav.bottomRight.style.height=sh+"px";}};if(this.heightSpec==="Parent100Pct"){this.nav.top.style.height="100%";}else{this.nav.top.style.height=this.$6p()+"px";}};this.setHeight=function($1H){if(this.heightSpec!=="Parent100Pct"){this.heightSpec="Fixed";};if(this.cssOnly){this.height=$1H-(this.$5f());}else{this.height=$1H-(this.$5f()+3);};this.$4X();};this.$7k=function($41){var $d=document.createElement("div");$d.style.position="absolute";$d.style.top="-2000px";$d.style.left="-2000px";$d.className=this.$58($41);document.body.appendChild($d);var $J=$d.offsetHeight;var $11=$d.offsetWidth;document.body.removeChild($d);var $u={};$u.height=$J;$u.width=$11;return $u;};this.$6h={};var $0e=this.$6h;$0e.locale=function(){return DayPilot.Locale.find($c.locale);};$0e.weekStarts=function(){if(typeof $c.weekStarts==='number'){return $c.weekStarts;}else{return $0e.locale().weekStarts;}};$0e.timeFormat=function(){if($c.timeFormat!=='Auto'){return $c.timeFormat;};return this.locale().timeFormat;};$0e.useBox=function($42){if($c.useEventBoxes==='Always'){return true;};if($c.useEventBoxes==='Never'){return false;};return $42<$c.cellDuration*60*1000;};$0e.notifyType=function(){var $l;if($c.notifyCommit==='Immediate'){$l="Notify";}else if($c.notifyCommit==='Queue'){$l="Queue";}else{throw "Invalid notifyCommit value: "+$c.notifyCommit;};return $l;};$0e.allDayEventHeight=function(){if($c.$4k.allDayEventHeight){return $c.$4k.allDayEventHeight;};var $J=$c.$7k("_alldayevent_height").height;if(!$J){$J=$c.allDayEventHeight;};$c.$4k.allDayEventHeight=$J;return $J;};$0e.allDayHeaderHeight=function(){if($c.$4k.allDayHeaderHeight){return $c.$4k.allDayHeaderHeight;};var $J=$c.$7j;$c.$4k.allDayHeaderHeight=$J;return $J;};$0e.headerHeight=function(){if($c.$4k.headerHeight){return $c.$4k.headerHeight;};var $J=$c.$7k("_header_height").height;if(!$J){$J=$c.headerHeight;};$c.$4k.headerHeight=$J;return $J;};this.$7l=function(){if(this.backendUrl){return(typeof $c.events.list==='undefined')||(!$c.events.list);}else{return false;}};this.$7m=function(){if(this.id&&this.id.tagName){this.nav.top=this.id;}else if(typeof this.id==="string"){this.nav.top=document.getElementById(this.id);if(!this.nav.top){throw "DayPilot.Calendar: The placeholder element not found: '"+id+"'.";}}else{throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";}};this.$7n=function(){this.$7m();this.$7h();this.$4N();this.$6r();this.$4R();this.$4S();this.$4V();this.$4Y();this.$6Y();this.$73();this.$4E();DayPilotCalendar.register(this);this.$4D();this.$4Z();this.$70();this.$54();this.$4t('Init');};this.init=function(){this.$7m();if(this.nav.top.dp){return;};var $43=this.$7l();if(!$c.cssOnly){$c.cssOnly=true;DayPilot.Util.log("DayPilot: cssOnly = false mode is not supported since DayPilot Pro 8.0.");};if($43){this.$7n();this.$4n=true;return;};this.$7h();this.$4N();this.$4O();if(!this.events.list){this.events.list=[];};this.$4P();this.$6r();this.$4R();this.$4S();this.$4V();this.$50();this.$6v();this.$4Y();this.$6Y();this.$73();this.$4E();DayPilotCalendar.register(this);this.$4Q();this.$51();this.$52();this.$4D();if(this.messageHTML){this.message(this.messageHTML);};this.$4Z();this.$4L(null,false);this.$70();this.$54();this.$4n=true;this.$7o();};this.$7p=null;this.$7q=function($a){var $44={"events":{"preInit":function(){var $15=this.data;if(!$15){return;};if(DayPilot.isArray($15.list)){$c.events.list=$15.list;}else{$c.events.list=$15;}}},"scrollToHour":{"postInit":function(){if(typeof this.data!=='undefined'){$c.scrollToHour(this.data);}}}};this.$7p=$44;for(var name in $a){if($44[name]){var $1r=$44[name];$1r.data=$a[name];if($1r.preInit){$1r.preInit();}}else{$c[name]=$a[name];}}};this.$7o=function(){var $44=this.$7p;for(var name in $44){var $1r=$44[name];if($1r.postInit){$1r.postInit();}}};this.internal={};this.internal.initialized=function(){return $c.$4n;};this.internal.invokeEvent=this.$5t;this.internal.eventMenuClick=this.$5C;this.internal.timeRangeMenuClick=this.$5D;this.internal.bubbleCallBack=this.$5A;this.internal.findEventDiv=this.$7e;this.internal.eventDeleteDispatch=this.$5s;this.internal.touch=this.$6m;this.Init=this.init;this.$7q($a);};var DayPilotCalendar={};DayPilotCalendar.topSelectedCell=null;DayPilotCalendar.bottomSelectedCell=null;DayPilotCalendar.selecting=false;DayPilotCalendar.column=null;DayPilotCalendar.firstSelected=null;DayPilotCalendar.firstMousePos=null;DayPilotCalendar.originalMouse=null;DayPilotCalendar.originalHeight=null;DayPilotCalendar.originalTop=null;DayPilotCalendar.globalHandlers=false;DayPilotCalendar.editing=false;DayPilotCalendar.originalText=null;DayPilotCalendar.register=function($c){if(!DayPilotCalendar.registered){DayPilotCalendar.registered=[];};var r=DayPilotCalendar.registered;for(var i=0;i<r.length;i++){if(r[i]===$c){return;}};r.push($c);};DayPilotCalendar.unregister=function($c){var a=DayPilotCalendar.registered;if(a){var i=DayPilot.indexOf(a,$c);if(i!==-1){a.splice(i,1);};if(a.length===0){a=null;}};if(!a){DayPilot.ue(document,'mousemove',DayPilotCalendar.gMouseMove);DayPilot.ue(document,'mouseup',DayPilotCalendar.gMouseUp);DayPilot.ue(document,'touchmove',DayPilotCalendar.gTouchMove);DayPilot.ue(document,'touchend',DayPilotCalendar.gTouchEnd);DayPilotCalendar.globalHandlers=false;}};DayPilotCalendar.getCellsAbove=function($f){var $s=[];var c=DayPilotCalendar.getColumn($f);var tr=$f.parentNode;var $45=null;while(tr&&$45!==DayPilotCalendar.firstSelected){$45=tr.getElementsByTagName("td")[c];$s.push($45);tr=tr.previousSibling;while(tr&&tr.tagName!=="TR"){tr=tr.previousSibling;}};return $s;};DayPilotCalendar.getCellsBelow=function($f){var $s=[];var c=DayPilotCalendar.getColumn($f);var tr=$f.parentNode;var $45=null;while(tr&&$45!==DayPilotCalendar.firstSelected){$45=tr.getElementsByTagName("td")[c];$s.push($45);tr=tr.nextSibling;while(tr&&tr.tagName!=="TR"){tr=tr.nextSibling;}};return $s;};DayPilotCalendar.getColumn=function($f){var i=0;while($f.previousSibling){$f=$f.previousSibling;if($f.tagName==="TD"){i++;}};return i;};DayPilotCalendar.getShadowColumn=function($E){if(!$E){return null;};var $10=$E.parentNode;while($10&&$10.tagName!=="TD"){$10=$10.parentNode;};return $10;};DayPilotCalendar.gTouchMove=function(ev){if(DayPilot.Util.isMouseEvent(ev)){return;};if(DayPilotCalendar.drag){ev.preventDefault();var x=ev.touches?ev.touches[0].pageX:ev.pageX;var y=ev.touches?ev.touches[0].pageY:ev.pageY;var $0L={};$0L.x=x;$0L.y=y;var $c=(function(){var $46=ev.touches?ev.touches[0].clientX:ev.clientX;var $47=ev.touches?ev.touches[0].clientY:ev.clientY;var el=document.elementFromPoint($46,$47);while(el&&el.parentNode){el=el.parentNode;if(el.daypilotMainD){return el.calendar;}};return false;})();if($c){if(DayPilotCalendar.gShadow){document.body.removeChild(DayPilotCalendar.gShadow);};DayPilotCalendar.gShadow=null;$c.coords=$c.$6m.relativeCoords(ev);if(!DayPilotCalendar.movingShadow&&$c.coords){var $L=$c.$56(DayPilotCalendar.drag,false,DayPilotCalendar.drag.shadowType);if($L){DayPilotCalendar.movingShadow=$L;var $0K=new DayPilot.Date().getDatePart();var ev={'value':DayPilotCalendar.drag.id,'start':$0K,'end':$0K.addSeconds(DayPilotCalendar.drag.duration),'text':DayPilotCalendar.drag.text};var event=new DayPilot.Event(ev,$c);event.external=true;DayPilot.Global.moving={};DayPilot.Global.moving.event=event;DayPilot.Global.moving.helper={};}};if(DayPilot.Global.moving){$c.$6m.updateMoving();}}else{DayPilot.de(DayPilotCalendar.movingShadow);DayPilot.Global.moving=null;DayPilotCalendar.movingShadow=null;if(!DayPilotCalendar.gShadow){DayPilotCalendar.gShadow=DayPilotCalendar.createGShadow(DayPilotCalendar.drag.shadowType);};var $L=DayPilotCalendar.gShadow;$L.style.left=$0L.x+'px';$L.style.top=$0L.y+'px';}}};DayPilotCalendar.gTouchEnd=function(ev){if(DayPilot.Util.isMouseEvent(ev)){return;};DayPilotCalendar.gMouseUp(ev);};DayPilotCalendar.gMouseMove=function(ev){if(typeof(DayPilotCalendar)==='undefined'){return;};if(ev.insideMainD){return;}else if(ev.srcElement){if(ev.srcElement.inside){return;}};var $0L=DayPilot.mc(ev);if(DayPilotCalendar.drag){document.body.style.cursor='move';if(!DayPilotCalendar.gShadow){DayPilotCalendar.gShadow=DayPilotCalendar.createGShadow(DayPilotCalendar.drag.shadowType);};var $L=DayPilotCalendar.gShadow;$L.style.left=$0L.x+'px';$L.style.top=$0L.y+'px';DayPilot.Global.moving=null;DayPilotCalendar.deleteShadow(DayPilotCalendar.movingShadow);DayPilotCalendar.movingShadow=null;};for(var i=0;i<DayPilotCalendar.registered.length;i++){if(DayPilotCalendar.registered[i].$4G){DayPilotCalendar.registered[i].$4G();}}};DayPilotCalendar.gUnload=function(ev){if(!DayPilotCalendar.registered){return;};var r=DayPilotCalendar.registered;for(var i=0;i<r.length;i++){var c=r[i];DayPilotCalendar.unregister(c);}};DayPilotCalendar.gMouseUp=function(e){var e=e||window.event;if(DayPilot.Global.resizing){if(!DayPilotCalendar.resizingShadow){DayPilot.Global.resizing.style.cursor='default';DayPilot.Global.resizing.event.calendar.nav.top.style.cursor='auto';DayPilot.Global.resizing=null;return;};var $3i=DayPilot.Global.resizing.event;var $0i=DayPilot.Global.resizing.dpBorder;var $J=DayPilotCalendar.resizingShadow.clientHeight;var top=DayPilotCalendar.resizingShadow.offsetTop;DayPilotCalendar.deleteShadow(DayPilotCalendar.resizingShadow);DayPilotCalendar.resizingShadow=null;DayPilot.Global.resizing.style.cursor='default';$3i.calendar.nav.top.style.cursor='auto';DayPilot.Global.resizing.onclick=null;DayPilot.Global.resizing=null;if($3i.calendar.overlap){return;};$3i.calendar.$5v($3i,$J,top,$0i);}else if(DayPilot.Global.moving){if(!DayPilot.Global.moving.helper){DayPilotCalendar.deleteShadow(DayPilotCalendar.movingShadow);DayPilot.Global.moving=null;DayPilotCalendar.movingShadow=null;return;};if(!DayPilotCalendar.movingShadow){DayPilot.Global.moving.event.calendar.nav.top.style.cursor='auto';DayPilot.Global.moving=null;return;};var $48=DayPilot.Global.moving.helper.oldColumn;var top=DayPilotCalendar.movingShadow.offsetTop;DayPilotCalendar.deleteShadow(DayPilotCalendar.movingShadow);var $3i=DayPilot.Global.moving.event;var $0q=DayPilotCalendar.movingShadow.column;var $0r=DayPilotCalendar.drag;DayPilot.Global.moving.event.calendar.nav.top.style.cursor='auto';DayPilot.Global.moving=null;DayPilotCalendar.movingShadow=null;if($0r){if(!$3i.calendar.todo){$3i.calendar.todo={};};$3i.calendar.todo.del=$0r.element;};if($3i.calendar.overlap){return;};var ev=e||window.event;$3i.calendar.$5x($3i,$0q,top,ev,$0r);};if(DayPilotCalendar.drag){DayPilotCalendar.drag=null;document.body.style.cursor='';};if(DayPilotCalendar.gShadow){document.body.removeChild(DayPilotCalendar.gShadow);DayPilotCalendar.gShadow=null;};DayPilotCalendar.moveOffsetY=null;};DayPilotCalendar.dragStart=function(element,$K,id,$2h,$l){DayPilot.us(element);var $0r=DayPilotCalendar.drag={};$0r.element=element;$0r.duration=$K;$0r.text=$2h;$0r.id=id;$0r.shadowType=$l?$l:'Fill';return false;};DayPilot.Calendar.makeDraggable=function($a){var element=$a.element;var $49=$a.keepElement?null:element;var $K=$a.duration||1;if(navigator.msPointerEnabled){element.style.msTouchAction="none";element.style.touchAction="none";};DayPilot.us(element);DayPilot.re(element,"mousedown",function(ev){DayPilotCalendar.dragStart($49,$K,$a.id,$a.text);var element=(ev.target||ev.srcElement);if(element.tagName){var $4a=element.tagName.toLowerCase();if($4a==="textarea"||$4a==="select"||$4a==="input"){return false;}};ev.preventDefault&&ev.preventDefault();return false;});var $4b=function(ev){if(DayPilot.Util.isMouseEvent(ev)){return;};var $3h=0;window.setTimeout(function(){var $0r=DayPilotCalendar.drag={};$0r.element=$49;$0r.id=$a.id;$0r.text=$a.text||"";$0r.duration=$K;$0r.shadowType="Fill";DayPilotCalendar.gTouchMove(ev);ev.preventDefault();},$3h);ev.preventDefault();};DayPilot.re(element,DayPilot.touch.start,$4b);};DayPilotCalendar.deleteShadow=function($L){if(!$L){return;};if(!$L.parentNode){return;};$L.parentNode.removeChild($L);};DayPilotCalendar.createGShadow=function($l){var $L=document.createElement('div');$L.setAttribute('unselectable','on');$L.style.position='absolute';$L.style.width='100px';$L.style.height='20px';$L.style.border='2px dotted #666666';$L.style.zIndex=101;$L.style.pointerEvents="none";if($l==='Fill'){$L.style.backgroundColor="#aaaaaa";$L.style.opacity=0.5;$L.style.filter="alpha(opacity=50)";$L.style.border='2px solid #aaaaaa';};document.body.appendChild($L);return $L;};DayPilotCalendar.moveShadow=function($q){var $L=DayPilotCalendar.movingShadow;if($L.parentNode){$L.parentNode.removeChild($L);};$q.firstChild.appendChild($L);$L.style.left='0px';$L.style.width=(DayPilotCalendar.movingShadow.parentNode.offsetWidth)+'px';};DayPilotCalendar.Column=function($4c,name,$0v){this.value=$4c;this.id=$4c;this.name=name;this.date=new DayPilot.Date($0v);};DayPilot.CalendarVisible.dragStart=DayPilotCalendar.dragStart;DayPilot.CalendarVisible.Calendar=DayPilotCalendar.Calendar;if(typeof jQuery!=='undefined'){(function($){$.fn.daypilotCalendar=function($a){var $0J=null;var j=this.each(function(){if(this.daypilot){return;};var $4d=new DayPilot.Calendar(this.id,$a);$4d.init();this.daypilot=$4d;if(!$0J){$0J=$4d;}});if(this.length===1){return $0J;}else{return j;}};})(jQuery);};(function registerAngularModule(){var $4e=DayPilot.am();if(!$4e){return;};$4e.directive("daypilotCalendar",function(){return{"restrict":"E","template":"<div></div>","replace":true,"link":function($4f,element,$4g){var $c=new DayPilot.Calendar(element[0]);$c.$7f.scope=$4f;$c.init();var $4h=$4g["id"];if($4h){$4f[$4h]=$c;};var $4i=$4f["$watch"];$4i.call($4f,$4g["daypilotConfig"],function($4c){for(var name in $4c){$c[name]=$4c[name];};$c.update();},true);$4i.call($4f,$4g["daypilotEvents"],function($4c){$c.events.list=$4c;$c.$7g({"eventsOnly":true});},true);}};});})();if(typeof Sys!=='undefined'&&Sys.Application&&Sys.Application.notifyScriptLoaded){Sys.Application.notifyScriptLoaded();}})();
  
  
  if(typeof DayPilot==='undefined'){var DayPilot={};};if(typeof DayPilot.Global==='undefined'){DayPilot.Global={};};(function(){if(typeof DayPilot.DatePicker!=='undefined'){return;};DayPilot.DatePicker=function($a){this.v='1925';var $b="navigator_"+new Date().getTime();var $c=this;this.onShow=null;this.prepare=function(){this.locale="en-us";this.target=null;this.resetTarget=true;this.pattern=this.$m.locale().datePattern;this.theme=null;this.patterns=[];if($a){for(var name in $a){this[name]=$a[name];}};this.init();};this.init=function(){this.date=new DayPilot.Date(this.date);var $d=this.$n();if(this.resetTarget&&!$d){this.$o(this.date);};DayPilot.re(document,"mousedown",function(){$c.close();});};this.close=function(){if(!this.$p){return;};if(this.navigator){this.navigator.dispose();};this.div.innerHTML='';if(this.div&&this.div.parentNode===document.body){document.body.removeChild(this.div);}};this.$n=function(){var element=this.$q();if(!element){return this.date;};var $d=null;if(element.tagName==="INPUT"){$d=element.value;}else{$d=element.innerText;};if(!$d){return null;};var $e=DayPilot.Date.parse($d,$c.pattern);for(var i=0;i<$c.patterns.length;i++){if($e){return $e;};$e=DayPilot.Date.parse($d,$c.patterns[i]);};return $e;};this.$o=function($e){var element=this.$q();if(!element){return;};var $d=$e.toString($c.pattern,$c.locale);if(element.tagName==="INPUT"){element.value=$d;}else{element.innerHTML=$d;}};this.$m={};this.$m.locale=function(){return DayPilot.Locale.find($c.locale);};this.$q=function(){var id=this.target;var element=(id&&id.nodeType&&id.nodeType===1)?id:document.getElementById(id);return element;};this.show=function(){var element=this.$q();var navigator=this.navigator;var navigator=new DayPilot.Navigator($b);navigator.api=2;navigator.cssOnly=true;navigator.theme=$c.theme;navigator.weekStarts="Auto";navigator.locale=$c.locale;navigator.onTimeRangeSelected=function($f){$c.date=$f.start;var $g=$f.start.addTime(navigator.$r);var $d=$g.toString($c.pattern,$c.locale);var $f={};$f.start=$g;$f.date=$g;$f.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onTimeRangeSelect==='function'){$c.onTimeRangeSelect($f);if($f.preventDefault.value){return;}};$c.$o($d);$c.close();if(typeof $c.onTimeRangeSelected==='function'){$c.onTimeRangeSelected($f);}};this.navigator=navigator;var $h=DayPilot.abs(element);var $i=element.offsetHeight;var $j=document.createElement("div");$j.style.position="absolute";$j.style.left=$h.x+"px";$j.style.top=($h.y+$i)+"px";var $k=document.createElement("div");$k.id=$b;$j.appendChild($k);DayPilot.re($j,"mousedown",function(ev){var ev=ev||window.event;ev.cancelBubble=true;ev.stopPropagation&&ev.stopPropagation();});document.body.appendChild($j);this.div=$j;var $l=$c.$n()||new DayPilot.Date().getDatePart();navigator.startDate=$l;navigator.$r=$l.getTimePart();navigator.selectionStart=$l.getDatePart();navigator.init();this.$p=true;if(this.onShow){this.onShow();}};this.prepare();};})();
  
  if(typeof DayPilot==='undefined'){var DayPilot={};};if(typeof DayPilot.Global==='undefined'){DayPilot.Global={};};(function(){if(typeof DayPilot.Gantt!=='undefined'){return;};var $a=function(){};DayPilot.Gantt=function(id,$b){this.v='1925';var $c=this;this.id=id;this.isGantt=true;var $d=new DayPilot.Scheduler(id);this.scheduler=$d;$d.viewType="Resources";$d.onCallBackHeader=function($e){$e.header.taskGroupMode=$c.taskGroupMode;$e.header.rowHeaderColumns=$c.columns;$e.header.clientState=$c.clientState;};$d.onGetNodeState=function($e){var $f=function($g){var $h={};if($g.tags){for(var name in $g.tags){$h[name]=""+$g.tags[name];}};return $h;};var $i=function($j){var $g=$j.task;var $h={};$h.start=$g.start;$h.end=$g.end;$h.id=$g.id;$h.complete=$g.complete;$h.text=$g.text;$h.type=$g.type;$h.expanded=$j.expanded;$h.loaded=$j.loaded;$h.tags=$f($g);$h.versions=$g.versions;$h.children=$d.internal.getNodeChildren($j.children);return $h;};$e.result=$i($e.row);$e.preventDefault();};$d.$0f=function($k){};$d.onCallBackResult=function($e){var $h=$e.result;$e.preventDefault();var $l=function(){if($h.scrollToTaskId){$d.scrollToResource($h.scrollToTaskId);}};if($h.updateType==="None"){$l();return;};var $m=function($n){for(var i=0;i<$n.length;i++){var name=$n[i];if(typeof $h[name]!=="undefined"){$c[name]=$h[name];}}};$c.links.list=$h.links;$c.tasks.list=$h.tasks;$c.startDate=new DayPilot.Date($h.startDate);$m(['days','cellDuration','cellGroupBy','cellWidth','cellWidthSpec','cornerHtml','separators','rowMinHeight','rowMarginBottom','taskGroupMode','selectedRows']);$m(['cellProperties','cellConfig','timeHeader','timeHeaders','timeline','columns']);$o.translate();$o.$0g();$o.$0h();$d.update();$d.show();$l();};this.taskGroupMode="Auto";this.autoRefreshCommand="refresh";this.autoRefreshEnabled=false;this.autoRefreshInterval=60;this.autoRefreshMaxCount=20;this.autoScroll="Drag";this.bubbleTask=null;this.bubbleCell=null;this.bubbleRow=null;this.cellDuration=1440;this.cellGroupBy="Month";this.cellWidth=40;this.cellWidthSpec="Fixed";this.completeBarVisible=true;this.completeBarHeight=3;this.contextMenuTask=null;this.contextMenuRow=null;this.contextMenuLink=null;this.cornerHtml='';this.crosshairColor='Gray';this.crosshairOpacity=20;this.crosshairType='Header';this.doubleClickTimeout=300;this.progressiveTaskRendering='Progressive';this.progressiveTaskRenderingMargin=500;this.progressiveTaskRenderingCacheSweeping=false;this.progressiveTaskRenderingCacheSize=200;this.floatingTasks=true;this.floatingTimeHeaders=true;this.headerHeight=20;this.height=300;this.heightSpec="Max";this.hideUntilInit=false;this.linkBottomMargin=10;this.linkPointSize=10;this.loadingLabelVisible=true;this.loadingLabelText="Loading...";this.locale="en-us";this.messageBarPosition="Top";this.messageHideAfter=5000;this.numberFormat="0.00";this.progressiveRowRendering=true;this.progressiveRowRenderingPreload=25;this.rowHeaderScrolling=false;this.rowHeaderSplitterWidth=3;this.rowHeaderHideIconEnabled=true;this.rowHeaderWidth=80;this.rowHeaderWidthAutoFit=true;this.rowMarginBottom=4;this.rowMinHeight=0;this.scrollDelayTasks=200;this.scrollDelayCells=20;this.scrollDelayFloats=0;this.scale="Day";this.selectedRows=[];this.snapToGrid=true;this.syncTasks=true;this.syncLinks=true;this.tapAndHoldTimeout=300;this.taskHeight=24;this.taskResizeMargin=5;this.taskMovingStartEndEnabled=false;this.taskMovingStartEndFormat="MMMM d, yyyy";this.taskResizingStartEndEnabled=false;this.taskResizingStartEndFormat="MMMM d, yyyy";this.theme="gantt_default";this.treeAutoExpand=true;this.treeIndent=20;this.treeImageMarginLeft=5;this.treeImageMarginTop=5;this.timeline=null;this.timeHeaders=[{"groupBy":"Month","format":"MMMM yyyy"},{"groupBy":"Day","format":"d"}];this.useEventBoxes="Never";this.visible=true;this.taskVersionsEnabled=false;this.taskVersionHeight=24;this.taskVersionMargin=2;this.taskMoveHandling="Update";this.taskClickHandling="Enabled";this.taskResizeHandling="Update";this.linkCreateHandling="Update";this.taskRightClickHandling="ContextMenu";this.taskDoubleClickHandling="Disabled";this.rowCreateHandling="Disabled";this.rowMoveHandling="Update";this.rowClickHandling="Disabled";this.rowDoubleClickHandling="Disabled";this.rowEditHandling="Update";this.rowSelectHandling="Update";this.clientState={};this.separators=[];this.members={};this.members.obsolete=[];this.members.ignore=["members","scheduler","internal","cellProperties"];this.members.noCssOnly=[];this.links={};this.links.list=[];this.links.add=function(link){if(!link){return;};var $p=link.isLink?link.data:link;$c.links.list.push($p);if($c.$0i){$o.$0h();$d.update();};$c.$0j.notify();};this.links.remove=function(link){if(!link){return;};var $p;if(link.isLink){$p=link.data;}else{$p=link;};var $q=DayPilot.indexOf($c.links.list,$p);if($q===-1){return;};$c.links.list.splice($q,1);if($c.$0i){$o.$0h();$d.update();};$c.$0j.notify();};this.links.find=function(id){if(!DayPilot.isArray($c.links.list)){return null;};for(var i=0;i<$c.links.list.length;i++){var link=$c.links.list[i];if(link.id===id){return new DayPilot.Link(link,$c);}};return null;};this.links.findFromTo=function($r,to){if(!DayPilot.isArray($c.links.list)){return null;};for(var i=0;i<$c.links.list.length;i++){var link=$c.links.list[i];if(link.from===$r&&link.to===to){return new DayPilot.Link(link,$c);}};return null;};this.$0k={};var $s=this.$0k;$s.timeout=null;$s.update=function(){if(!$c.$0i){return;};window.clearTimeout($s.timeout);$s.timeout=setTimeout(function(){$o.$0g();$d.update();},0);};this.tasks={};this.tasks.list=[];this.tasks.add=function($g){if(!$g){return;};if($g instanceof DayPilot.Event){throw "DayPilot.Task object required. You have supplied DayPilot.Event.";};var $p=$g.isTask?$g.data:$g;$c.tasks.list.push($p);$s.update();$c.$0j.notify();};this.tasks.find=function(id){var $p=$t.findInCache(id);if(!$p){return null;};return new DayPilot.Task($p,$c);};this.tasks.update=function($g){if(!$g){return;};if(!$g.isTask){throw "DayPilot.Task object expected";};$g.commit();$s.update();$c.$0j.notify();};this.tasks.remove=function($g){if(!$g){return;};if(!$g.isTask){throw "DayPilot.Task object expected";};var $u=$t.findParentArray($g.data);if(!$u){return;};var $v=DayPilot.indexOf($u,$g.data);$u.splice($v,1);$s.update();$c.$0j.notify();};this.visibleStart=function(){return $d.visibleStart();};this.visibleEnd=function(){return $d.visibleEnd();};this.onAfterRender=null;this.onBeforeRowHeaderRender=null;this.onBeforeTaskRender=null;this.onBeforeTimeHeaderRender=null;this.onBeforeCellRender=null;this.onTaskClick=null;this.onTaskClicked=null;this.onTaskDoubleClick=null;this.onTaskDoubleClicked=null;this.onTaskRightClick=null;this.onTaskRightClicked=null;this.onRowCreate=null;this.onRowCreated=null;this.onRowMove=null;this.onRowMoved=null;this.onRowMoving=null;this.onRowClick=null;this.onRowClicked=null;this.onRowDoubleClick=null;this.onRowDoubleClicked=null;this.onRowEdit=null;this.onRowEdited=null;this.onRowSelect=null;this.onRowSelected=null;this.onTaskMove=null;this.onTaskMoved=null;this.onTaskMoving=null;this.onTaskResize=null;this.onTaskResized=null;this.onTaskResizing=null;this.onLinkCreate=null;this.onLinkCreated=null;this.$0l=function(){if(this.backendUrl){return true;};if(typeof WebForm_DoCallback==='function'&&this.uniqueID){return true;};return false;};this.$0m=function(){if(typeof $c.startDate==="string"){$c.startDate=new DayPilot.Date($c.startDate);};if($c.startDate&&$c.days){return;};var $w=DayPilot.Date.today();var end=$w.addDays(1);var $x=null;var $y=null;for(var i=0;i<$c.tasks.list.length;i++){var e=$c.tasks.list[i];$w=new DayPilot.Date(e.start);end=new DayPilot.Date(e.end);if($x===null||$w.getTime()<$x){$x=$w.getTime();};if($y===null||end.getTime()>$y){$y=end.getTime();}};if($x&&$y){$w=new DayPilot.Date($x).getDatePart();end=new DayPilot.Date($y).getDatePart().addDays(1);$d.startDate=$c.startDate||$w;$d.days=$c.days||DayPilot.DateUtil.daysDiff($w,end);}else{$d.startDate=$w;$d.days=1;}};this.commandCallBack=function($z,$p){$o.translate();$d.commandCallBack($z,$p);};this.message=function($A,$B,$C,$D){$d.message($A,$B,$C,$D);};this.setHeight=function($E){$d.setHeight($E);};this.$0n=function(){if(this.backendUrl){return !DayPilot.isArray($c.tasks.list)||$c.tasks.list.length==0;}else{return false;}};this.init=function(){$o.translate();$o.$0g();$o.$0h();this.$0m();$d.init();this.$0i=true;this.$0o();if(this.$0n()){$d.internal.callback('Init');}};this.update=function(){$o.translate();$o.$0g();$o.$0h();$c.$0m();$d.update();};this.scrollTo=function($F){$d.scrollTo($F);};this.scrollToTask=function(id){$d.scrollToResource(id);};this.$0p={};var $t=this.$0p;$t.cache={};$t.clearCache=function(){$t.cache={};};$t.addToCache=function($p,parent){var $G=$p.id;if(!$G){return;};var $H={};$H.isTaskWrapper=true;$H.data=$p;$H.parent=parent;if($t.cache[$G]){throw "Duplicate task id detected";};$t.cache[$G]=$H;};$t.findInCache=function(id){if(!id){return null;};return $t.cache[id.toString()];};$t.getProperty=function($g,name){if($g.tags&&$g.tags[name]){return $g.tags[name];};return $g[name];};$t.findParentArray=function($I){return $t.findInArray($c.tasks.list,$I);};$t.findInArray=function($J,$I){if(DayPilot.indexOf($J,$I)!==-1){return $J;};for(var i=0;i<$J.length;i++){var r=$J[i];if(r.children&&r.children.length>0){var parent=$t.findInArray(r.children,$I);if(parent){return parent;}}};return null;};this.$0q={};var $o=this.$0q;var $K=function(p,$L){if(typeof p!=="undefined"){return p;};return $L;};$o.translate=function(){$d.durationBarMode="PercentComplete";$d.timeRangeSelectedHandling="Disabled";$d.treeEnabled=true;$d.autoRefreshCommand=$c.autoRefreshCommand;$d.autoRefreshEnabled=$c.autoRefreshEnabled;$d.autoRefreshInterval=$c.autoRefreshInterval;$d.autoRefreshMaxCount=$c.autoRefreshMaxCount;$d.autoScroll=$c.autoScroll;$d.backendUrl=$c.backendUrl;$d.crosshairColor=$c.crosshairColor;$d.crosshairOpacity=$c.crosshairOpacity;$d.crosshairType=$c.crosshairType;$d.doubleClickTimeout=$c.doubleClickTimeout;$d.durationBarVisible=$c.completeBarVisible;$d.durationBarHeight=$c.completeBarHeight;$d.dynamicEventRendering=$c.progressiveTaskRendering?"Progressive":"Disabled";$d.dynamicEventRenderingMargin=$c.progressiveTaskRenderingMargin;$d.dynamicEventRenderingCacheSweeping=$c.progressiveTaskRenderingCacheSweeping;$d.dynamicEventRenderingCacheSize=$c.progressiveTaskRenderingCacheSize;$d.startDate=new DayPilot.Date($c.startDate);$d.days=$c.days;$d.cellDuration=$c.cellDuration;$d.cellGroupBy=$c.cellGroupBy;$d.cellWidth=$c.cellWidth;$d.cellWidthSpec=$c.cellWidthSpec;$d.cornerHtml=$c.cornerHtml;$d.eventHeight=$c.taskHeight;$d.eventResizeMargin=$c.taskResizeMargin;$d.floatingEvents=$c.floatingTasks;$d.floatingTimeHeaders=$c.floatingTimeHeaders;$d.headerHeight=$c.headerHeight;$d.heightSpec=$c.heightSpec;$d.height=$c.height;$d.linkBottomMargin=$c.linkBottomMargin;$d.linkPointSize=$c.linkPointSize;$d.loadingLabelVisible=$c.loadingLabelVisible;$d.loadingLabelText=$c.loadingLabelText;$d.locale=$c.locale;$d.messageBarPosition=$c.messageBarPosition;$d.messageHideAfter=$c.messageHideAfter;$d.rowCreateHandling=$c.rowCreateHandling;$d.numberFormat=$c.numberFormat;$d.progressiveRowRendering=$c.progressiveRowRendering;$d.progressiveRowRenderingPreload=$c.progressiveRowRenderingPreload;$d.scale=$c.scale;$d.scrollDelayEvents=$c.scrollDelayTasks;$d.scrollDelayCells=$c.scrollDelayCells;$d.scrollDelayFloats=$c.scrollDelayFloats;$d.scrollX=$c.scrollX;$d.scrollY=$c.scrollY;if($c.scrollToTaskId){$d.scrollToResourceId=$c.scrollToTaskId;};$d.separators=$c.separators;$d.tapAndHoldTimeout=$c.tapAndHoldTimeout;$d.eventMovingStartEndEnabled=$c.taskMovingStartEndEnabled;$d.eventMovingStartEndFormat=$c.taskMovingStartEndFormat;$d.eventResizingStartEndEnabled=$c.taskResizingStartEndEnabled;$d.eventResizingStartEndFormat=$c.taskResizingStartEndFormat;$d.hideUntilInit=$c.hideUntilInit;$d.treeIndent=$c.treeIndent;$d.treeAutoExpand=$c.treeAutoExpand;$d.treeImageMarginLeft=$c.treeImageMarginLeft;$d.treeImageMarginTop=$c.treeImageMarginTop;$d.timeHeaders=$c.timeHeaders;$d.rowHeaderHideIconEnabled=$c.rowHeaderHideIconEnabled;$d.rowHeaderScrolling=$c.rowHeaderScrolling;$d.rowHeaderSplitterWidth=$c.rowHeaderSplitterWidth;$d.rowHeaderWidth=$c.rowHeaderWidth;$d.rowHeaderWidthAutoFit=$c.rowHeaderWidthAutoFit;$d.rowMarginBottom=$c.rowMarginBottom;$d.rowMinHeight=$c.rowMinHeight;$d.selectedRows=$c.selectedRows;$d.theme=$c.theme;$d.useEventBoxes=$c.useEventBoxes;$d.snapToGrid=$c.snapToGrid;$d.uniqueID=$c.uniqueID;$d.bubble=$c.bubbleTask;$d.cellBubble=$c.bubbleCell;$d.resourceBubble=$c.bubbleRow;$d.contextMenu=$c.contextMenuTask;$d.contextMenuResource=$c.contextMenuRow;$d.contextMenuLink=$c.contextMenuLink;$d.syncResourceTree=$c.syncTasks;$d.syncLinks=$c.syncLinks;$d.timeline=$c.timeline;$d.visible=$c.visible;$d.eventMoveHandling=$c.taskMoveHandling;$d.eventClickHandling=$c.taskClickHandling;$d.eventResizeHandling=$c.taskResizeHandling;$d.linkCreateHandling=$c.linkCreateHandling;$d.eventRightClickHandling=$c.taskRightClickHandling;$d.eventDoubleClickHandling=$c.taskDoubleClickHandling;$d.rowMoveHandling=$c.rowMoveHandling;$d.rowClickHandling=$c.rowClickHandling;$d.rowDoubleClickHandling=$c.rowDoubleClickHandling;$d.rowEditHandling=$c.rowEditHandling;$d.rowSelectHandling=$c.rowSelectHandling;$d.eventVersionsEnabled=$c.taskVersionsEnabled;$d.eventVersionHeight=$c.taskVersionHeight;$d.eventVersionMargin=$c.taskVersionMargin;if(DayPilot.isArray($c.columns)){$d.rowHeaderColumns=[];for(var i=0;i<$c.columns.length;i++){var c=$c.columns[i];var $M={};DayPilot.Util.copyProps(c,$M,['title','width']);$d.rowHeaderColumns.push($M);}};if($c.$0l()){$d.timeHeader=$c.timeHeader;$d.cellProperties=$c.cellProperties;$d.cellConfig=$c.cellConfig;};$d.onRowCreate=function($e){if(typeof $c.onRowCreate==="function"){$c.onRowCreate($e);}};$d.onRowCreated=function($e){if(typeof $c.onRowCreated==="function"){$c.onRowCreated($e);}};$d.onAfterRender=function($e){if(typeof $c.onAfterRender==="function"){$c.onAfterRender($e);}};$d.onRowHeaderResized=function($e){$c.rowHeaderWidth=$d.rowHeaderWidth;};$d.onAjaxError=function($e){if(typeof $c.onAjaxError==="function"){$c.onAjaxError($e);}};$d.onRowHeaderColumnResized=function($e){var $N=$e.column;var $q=DayPilot.indexOf($d.rowHeaderColumns,$N);for(var i=0;i<$c.columns.length;i++){var $M=$d.rowHeaderColumns[i];var c=$c.columns[i];c.width=$M.width;};if(typeof $c.onColumnResized==="function"){var $O={};$O.column=$c.columns[$q];$c.onColumnResized($O);}};$d.onBeforeRowHeaderRender=function($e){$e.task=new DayPilot.Task($e.row.$.row.task,$c);var $P=[];if(DayPilot.isArray($c.columns)){for(var i=0;i<$c.columns.length;i++){var $N=$c.columns[i];var $Q=$N.property;var $R={};$R.value=$t.getProperty($e.task.data,$Q);if($e.task.data.row&&$e.task.data.row.columns&&$e.task.data.row.columns[i]){$R.html=$e.task.data.row.columns[i].html;}else{$R.html=$R.value;};$P.push($R);}};$e.row.columns=$P;if(typeof $c.onBeforeRowHeaderRender==="function"){$c.onBeforeRowHeaderRender($e);};if(DayPilot.isArray($c.columns)){for(var i=0;i<$c.columns.length;i++){var $A=$P[i].html;if(i===0){$e.row.html=$A;}else{$e.row.columns[i-1].html=$A;}}}};$d.onBeforeCellRender=function($e){$e.task=$c.tasks.find($e.cell.resource);delete $e.cell.resource;if(typeof $c.onBeforeCellRender==="function"){$c.onBeforeCellRender($e);}};$d.onBeforeTimeHeaderRender=function($e){if(typeof $c.onBeforeTimeHeaderRender==="function"){$c.onBeforeTimeHeaderRender($e);}};$d.onEventClick=function($e){$e.task=new DayPilot.Task($e.e,$c);if(typeof $c.onTaskClick==="function"){$c.onTaskClick($e);}};$d.onEventClicked=function($e){if(typeof $c.onTaskClicked==="function"){$c.onTaskClicked($e);}};$d.onEventDelete=function($e){if(typeof $c.onTaskDelete==="function"){$c.onTaskDelete($e);}};$d.onEventDeleted=function($e){if(typeof $c.onTaskDeleted==="function"){$c.onTaskDeleted($e);}};$d.onEventDoubleClick=function($e){$e.task=new DayPilot.Task($e.e,$c);if(typeof $c.onTaskDoubleClick==="function"){$c.onTaskDoubleClick($e);}};$d.onEventDoubleClicked=function($e){if(typeof $c.onTaskDoubleClicked==="function"){$c.onTaskDoubleClicked($e);}};$d.onEventRightClick=function($e){$e.task=new DayPilot.Task($e.e,$c);if(typeof $c.onTaskRightClick==="function"){$c.onTaskRightClick($e);}};$d.onEventRightClicked=function($e){if(typeof $c.onTaskRightClicked==="function"){$c.onTaskRightClicked($e);}};$d.onRowMoving=function($e){$e.$0r=$e.source;$e.$0s=$e.target;$e.source=new DayPilot.Task($e.$0r.$.row.task,$c);$e.target=new DayPilot.Task($e.$0s.$.row.task,$c);if(typeof $c.onRowMoving==="function"){$c.onRowMoving($e);}};$d.onRowMove=function($e){$e.$0r=$e.source;$e.$0s=$e.target;$e.source=new DayPilot.Task($e.$0r.$.row.task,$c);$e.target=new DayPilot.Task($e.$0s.$.row.task,$c);if(typeof $c.onRowMove==="function"){$c.onRowMove($e);};$e.source=$e.$0r;$e.target=$e.$0s;};$d.onRowMoved=function($e){var $S=$c.rowMoveHandling==="Update"||$c.rowMoveHandling==="Notify";if($S){var $T=$e.$0r.$.row.task;var $F=$e.$0s.$.row.task;var $U=$e.position;if($U==="forbidden"){return;};var $V=$t.findParentArray($T);if(!$V){throw "Cannot find source node parent";};var $v=DayPilot.indexOf($V,$T);$V.splice($v,1);var $W=$t.findParentArray($F);if(!$W){throw "Cannot find target node parent";};var $X=DayPilot.indexOf($W,$F);switch($U){case "before":$W.splice($X,0,$T);break;case "after":$W.splice($X+1,0,$T);break;case "child":if(!$F.children){$F.children=[];$F.expanded=true;};$F.children.push($T);break;};$c.$0j.notify();$c.update();};$e.source=new DayPilot.Task($e.$0r.$.row.task,$c);$e.target=new DayPilot.Task($e.$0s.$.row.task,$c);if(typeof $c.onRowMoved==="function"){$c.onRowMoved($e);}};$d.onRowClick=function($e){$e.task=new DayPilot.Task($e.resource.$.row.task,$c);if(typeof $c.onRowClick==="function"){$c.onRowClick($e);}};$d.onRowClicked=function($e){if(typeof $c.onRowClicked==="function"){$c.onRowClicked($e);}};$d.onRowDoubleClick=function($e){$e.task=new DayPilot.Task($e.resource.$.row.task,$c);if(typeof $c.onRowDoubleClick==="function"){$c.onRowDoubleClick($e);}};$d.onRowDoubleClicked=function($e){if(typeof $c.onRowDoubleClicked==="function"){$c.onRowDoubleClicked($e);}};$d.onRowEdit=function($e){$e.task=new DayPilot.Task($e.resource.$.row.task,$c);if(typeof $c.onRowEdit==="function"){$c.onRowEdit($e);}};$d.onRowEdited=function($e){if(typeof $c.onRowEdited==="function"){$c.onRowEdited($e);}};$d.onRowSelect=function($e){$e.task=new DayPilot.Task($e.row.$.row.task,$c);if(typeof $c.onRowSelect==="function"){$c.onRowSelect($e);}};$d.onRowSelected=function($e){if(typeof $c.onRowSelected==="function"){$c.onRowSelected($e);}};$d.onEventMove=function($e){$e._e=$e.e;$e.task=new DayPilot.Task($e.e,$c);if(typeof $c.onTaskMove==="function"){$c.onTaskMove($e);}};$d.onEventMoved=function($e){if($c.taskGroupMode==="Auto"){var e=$e._e;var $g=e.data.task;$g.start=e.start();$g.end=e.end();while(e.data.parent){var parent=$d.events.find(e.data.parent.id);var $Y=$o.childrenStartEnd(e.data.parent);parent.start($Y.start);parent.end($Y.end);$d.events.update(parent);e=parent;}};$c.$0j.notify();if(typeof $c.onTaskMoved==="function"){$c.onTaskMoved($e);}};$d.onEventMoving=function($e){$e.task=new DayPilot.Task($e.e,$c);$e._e=$e.e;delete $e.position;delete $e.overlapping;delete $e.resource;if(typeof $c.onTaskMoving==="function"){$c.onTaskMoving($e);}};$d.onEventResize=function($e){$e._e=$e.e;$e.task=new DayPilot.Task($e.e,$c);if(typeof $c.onTaskResize==="function"){$c.onTaskResize($e);}};$d.onEventResized=function($e){if($c.taskGroupMode==="Auto"){var e=$e._e;var $g=e.data.task;$g.start=e.start();$g.end=e.end();while(e.data.parent){var parent=$d.events.find(e.data.parent.id);var $Y=$o.childrenStartEnd(e.data.parent);parent.start($Y.start);parent.end($Y.end);$d.events.update(parent);e=parent;}};$c.$0j.notify();if(typeof $c.onTaskResized==="function"){$c.onTaskResized($e);}};$d.onEventResizing=function($e){$e.task=new DayPilot.Task($e.e,$c);$e._e=$e.e;if(typeof $c.onTaskResizing==="function"){$c.onTaskResizing($e);}};$d.onLinkCreate=function($e){$e.source=$c.tasks.find($e.from);$e.target=$c.tasks.find($e.to);if(typeof $c.onLinkCreate==="function"){$c.onLinkCreate($e);}};$d.onLinkCreated=function($e){if(typeof $c.onLinkCreated==="function"){$c.onLinkCreated($e);}};$d.onResourceExpand=function($e){var $g=$e.resource.$.row.task;if(!$g.row){$g.row={};};$g.row.collapsed=false;};$d.onResourceCollapse=function($e){var $g=$e.resource.$.row.task;if(!$g.row){$g.row={};};$g.row.collapsed=true;};};$o.$0t=function($p){for(var i=0;i<$d.rowlist.length;i++){var $j=$d.rowlist[i];if($j.task===$p){return $d.internal.createRowObject($j);}};return null;};$o.$0h=function(){$d.links.list=$c.links.list?$c.links.list:[];};$o.$0g=function(){$d.resources=[];$d.events.list=[];$t.clearCache();$o.$0u($c.tasks.list,$d.resources,null);};$o.$0v=function($g){var $Z=$g.type||"Task";if($g.children&&$g.children.length){$Z="Group";};var $p={};for(var name in $g){if(name==="children"){continue;};$p[name]=$g[name];};var $e={};$e.data=$p;$e.type=$Z;if(!$p.box){$p.box={};};if(typeof $p.box.html==="undefined"){if($e.type==="Task"){var $00=$p.complete||0;$p.box.html=$00+"%";}else{$p.box.html="";}};if(typeof $p.box.htmlRight==="undefined"){$p.box.htmlRight=$p.text;};if(typeof $c.onBeforeTaskRender==="function"){$c.onBeforeTaskRender($e);};$e.type=$Z;return $e;};$o.$0u=function($T,$F,parent){if(!DayPilot.isArray($T)){return;};for(var i=0;i<$T.length;i++){var $01=$T[i];$t.addToCache($01,parent);var $e=$o.$0v($01);var $g=$e.data;var $Z=$e.type;var event={};DayPilot.Util.copyProps($g,event,['id','start','end','text','complete','tags','versions']);DayPilot.Util.copyProps($g.box,event);event.parent=parent;event.task=$01;event.resource=$g.id;if($Z=="Group"){event.type="Group";event.html="";delete event.backColor;if($c.taskGroupMode==="Auto"){var $Y=$o.childrenStartEnd($01);event.start=$Y.start;event.end=$Y.end;event.resizeDisabled=true;event.moveDisabled=true;}}else if($Z==="Milestone"){$01.end=$01.start;$g.end=$g.start;event.end=$g.start;event.barHidden=true;event.resizeDisabled=true;event.type="Milestone";event.width=$c.taskHeight;delete event.backColor;}else if($Z==="Task"){$a();};event.moveVDisabled=true;event.htmlRight=$g.box.htmlRight;event.htmlLeft=$g.box.htmlLeft;$d.events.list.push(event);var r={};r.task=$01;DayPilot.Util.copyProps($g.row,r);r.name=$g.text;r.id=$g.id;r.children=[];r.expanded=!$g.row||!$g.row.collapsed;if($01.children&&$01.children.length){$o.$0u($01.children,r.children,$01);};$F.push(r);}};$o.childrenStartEnd=function($g){if(!$g.children||!$g.children.length){var $w=$g.start;var end=$g.end;if($g.type==="Milestone"){end=$w;};return{"start":new DayPilot.Date($w),"end":new DayPilot.Date(end)};};var $w=null;var end=null;for(var i=0;i<$g.children.length;i++){var $Y=$o.childrenStartEnd($g.children[i]);if(!$w||$Y.start.getTime()<$w.getTime()){$w=$Y.start;};if(!end||$Y.end.getTime()>end.getTime()){end=$Y.end;}};return{"start":$w,"end":end};};this.rows={};this.rows.expand=function($02){$d.rows.expand($02);};this.rows.expandAll=function(){$d.rows.expandAll();};this.internal={};this.internal.initialized=function(){return $c.$0i;};this.internal.rowObjectForTaskData=$o.$0t;this.$0j={};this.$0j.scope=null;this.$0j.notify=function(){if($c.$0j.scope){$c.$0j.scope["$apply"]();}};this.$0w=null;this.$0x=function($b){var $03={"tasks":{"preInit":function(){var $04=this.data;if(!$04){return;};if(DayPilot.isArray($04.list)){$c.tasks.list=$04.list;}else{$c.tasks.list=$04;}}},"links":{"preInit":function(){var $05=this.data;if(!$05){return;};if(DayPilot.isArray($05.list)){$c.links.list=$05.list;}else{$c.links.list=$05;}}},"scrollTo":{"postInit":function(){if(this.data){$c.scrollTo(this.data);}}},"scrollToTask":{"postInit":function(){if(this.data){$c.scrollToTask(this.data);}}}};this.$0w=$03;for(var name in $b){if($03[name]){var $06=$03[name];$06.data=$b[name];if($06.preInit){$06.preInit();}}else{$c[name]=$b[name];}}};this.$0o=function(){var $03=this.$0w;for(var name in $03){var $06=$03[name];if($06.postInit){$06.postInit();}}};this.$0x($b);};if(typeof jQuery!=='undefined'){(function($){$.fn.daypilotGantt=function($b){var $07=null;var j=this.each(function(){if(this.daypilot){return;};var $08=new DayPilot.Gantt(this.id,$b);$08.init();this.daypilot=$08;if(!$07){$07=$08;}});if(this.length===1){return $07;}else{return j;}};})(jQuery);};(function registerAngularModule(){var $09=DayPilot.am();if(!$09){return;};$09.directive("daypilotGantt",function(){return{"restrict":"E","template":"<div id='{{id}};'></div>","compile":function compile(element,$0a){element.replaceWith(this["template"].replace("{{id}};",$0a["id"]));return function link($0b,element,$0a){var $c=new DayPilot.Gantt(element[0]);$c.$0j.scope=$0b;$c.init();var $0c=$0a["id"];if($0c){$0b[$0c]=$c;};var $0d=$0b["$watch"];$0d.call($0b,$0a["daypilotConfig"],function($0e){$c.$0x($0e);$c.update();},true);};}};});})();if(typeof Sys!=='undefined'&&Sys.Application&&Sys.Application.notifyScriptLoaded){Sys.Application.notifyScriptLoaded();}})();
  
  if(typeof DayPilot==='undefined'){var DayPilot={};};if(typeof DayPilot.Global==='undefined'){DayPilot.Global={};};if(typeof DayPilotMenu==='undefined'){var DayPilotMenu=DayPilot.MenuVisible={};};(function(){if(typeof DayPilot.Menu!=='undefined'){return;};var DayPilotMenu={};DayPilotMenu.mouse=null;DayPilotMenu.menu=null;DayPilotMenu.clickRegistered=false;DayPilotMenu.hideTimeout=null;DayPilotMenu.waitingSubmenu=null;DayPilot.Menu=function($a){var $b=this;this.v='1925';this.zIndex=10;this.useShadow=true;this.cssClassPrefix="menu_default";this.cssOnly=true;this.menuTitle=null;this.showMenuTitle=false;this.hideOnMouseOut=false;this.$K=function(){};if($a&&DayPilot.isArray($a)){this.items=$a;};this.show=function(e,$c){var $c=$c||{};var $d=null;if(typeof e.id==='string'||typeof e.id==='number'){$d=e.id;}else if(typeof e.id==='function'){$d=e.id();}else if(typeof e.value==='function'){$d=e.value();};if(typeof(DayPilot.Bubble)!=='undefined'){DayPilot.Bubble.hideActive();};if(!$c.submenu){DayPilotMenu.menuClean();};this.$K.submenu=null;if(DayPilotMenu.mouse===null){return;};if(!$b.cssOnly){$b.cssOnly=true;DayPilot.Util.log("DayPilot: cssOnly = false mode is not supported since DayPilot Pro 8.0.");};var $e=document.createElement("div");$e.style.position="absolute";$e.style.top="0px";$e.style.left="0px";$e.style.display='none';$e.style.overflow='hidden';$e.style.zIndex=this.zIndex+1;$e.className=this.applyCssClass('main');$e.onclick=function(ev){ev.cancelBubble=true;this.parentNode.removeChild(this);};if(this.hideOnMouseOut){$e.onmousemove=function(ev){clearTimeout(DayPilotMenu.hideTimeout);};$e.onmouseout=function(ev){$b.delayedHide();};};if(!this.items||this.items.length===0){throw "No menu items defined.";};if(this.showMenuTitle){var title=document.createElement("div");title.innerHTML=this.menuTitle;title.className=this.applyCssClass("title");$e.appendChild(title);};for(var i=0;i<this.items.length;i++){var mi=this.items[i];var $f=document.createElement("div");DayPilot.Util.addClass($f,this.applyCssClass("item"));if(mi.items){DayPilot.Util.addClass($f,this.applyCssClass("item_haschildren"));};if(typeof mi==='undefined'){continue;};if(mi.text==='-'){var $g=document.createElement("div");$f.appendChild($g);}else{var $h=document.createElement("a");$h.style.position='relative';$h.style.display="block";if(mi.disabled){DayPilot.Util.addClass($h,$b.applyCssClass("item_disabled"));}else if(mi.href){$h.href=mi.href.replace(/\x7B0\x7D/gim,$d);if(mi.target){$h.setAttribute("target",mi.target);}}else if(mi.onclick){$h.item=mi;$h.onclick=mi.onclick;var $i=function(mi,$h){return function(e){e.stopPropagation();e.preventDefault();mi.onclick.call($h,e);DayPilotMenu.menuClean();window.setTimeout(function(){$h.source.calendar.internal.touch.active=false;},500);};};$h.ontouchstart=function(ev){ev.stopPropagation();ev.preventDefault();$h.source.calendar.internal.touch.active=true;};$h.ontouchend=$i(mi,$h);}else if(mi.command){var $j=function(mi,$h){return function(e){var $k=$h.source;var $f=mi;$f.action=$f.action?$f.action:'CallBack';var $l=$k.calendar||$k.root;if($k instanceof DayPilot.Link){$l.internal.linkMenuClick($f.command,$k,$f.action);return;}else if($k instanceof DayPilot.Selection){$l.internal.timeRangeMenuClick($f.command,$k,$f.action);return;}else if($k instanceof DayPilot.Event){$l.internal.eventMenuClick($f.command,$k,$f.action);return;}else if($k instanceof DayPilot.Selection){$l.internal.timeRangeMenuClick($f.command,$k,$f.action);return;}else if($k instanceof DayPilot.Task){if($k.menuType==="resource"){$l.internal.resourceHeaderMenuClick($f.command,$h.menuSource,$f.action);}else{$l.internal.eventMenuClick($f.command,$h.menuSource,$f.action);};return;}else{switch($k.menuType){case 'resource':$l.internal.resourceHeaderMenuClick($f.command,$k,$f.action);return;case 'selection':$l.internal.timeRangeMenuClick($f.command,$k,$f.action);return;default:$l.internal.eventMenuClick($f.command,$k,$f.action);return;}};e.preventDefault();};};$h.onclick=$j(mi,$h);$h.ontouchend=$j(mi,$h);};if(e&&e.isRow&&e.$.row.task){$h.source=new DayPilot.Task(e.$.row.task,e.calendar);$h.source.menuType="resource";}else if(e&&e.isEvent&&e.data.task){$h.source=new DayPilot.Task(e,e.calendar);}else{$h.source=e;};$h.menuSource=e;var $m=document.createElement("span");$m.innerHTML=mi.text;$h.appendChild($m);if(mi.image){var $n=document.createElement("img");$n.src=mi.image;$n.style.position='absolute';$n.style.top='0px';$n.style.left='0px';$h.appendChild($n);};var $o=function(mi,$h){return function(){var $k=$h.source;var $f=mi;var ws=DayPilotMenu.waitingSubmenu;if(ws){if(ws.parent===$f){return;}else{clearTimeout(ws.timeout);DayPilotMenu.waitingSubmenu=null;}};DayPilotMenu.waitingSubmenu={};DayPilotMenu.waitingSubmenu.parent=$f;DayPilotMenu.waitingSubmenu.timeout=setTimeout(function(){DayPilotMenu.waitingSubmenu=null;if($b.$K.submenu&&$b.$K.submenu.item===$f){return;};if($b.$K.submenu&&$b.$K.submenu.item!==$f){DayPilot.Util.removeClass($b.$K.submenu.link.parentNode,$b.applyCssClass("item_haschildren_active"));$b.$K.submenu.menu.hide();$b.$K.submenu=null;};if(!$f.items){return;};var $c=$b.cloneOptions();$c.items=$f.items;$b.$K.submenu={};$b.$K.submenu.menu=new DayPilot.Menu($c);$b.$K.submenu.menu.show($k,{"submenu":true,"parentLink":$h,"parentItem":mi});$b.$K.submenu.item=$f;$b.$K.submenu.link=$h;DayPilot.Util.addClass($h.parentNode,$b.applyCssClass("item_haschildren_active"));},300);};};$h.onmouseover=$o(mi,$h);$f.appendChild($h);};$e.appendChild($f);};var $p=function(e){window.setTimeout(function(){DayPilotMenu.menuClean();},100);};$e.onclick=$p;$e.ontouchend=$p;$e.onmousedown=function(e){e=e||window.event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();};$e.oncontextmenu=function(){return false;};document.body.appendChild($e);$b.$K.visible=true;$b.$K.source=e;$e.style.display='';var $q=$e.offsetHeight;var $r=$e.offsetWidth;$e.style.display='none';var $s=document.documentElement.clientHeight;var $t=document.documentElement.clientWidth;(function ajdustPosition(){var x=DayPilotMenu.mouse.x+1;var y=DayPilotMenu.mouse.y+1;if(DayPilotMenu.mouse.clientY>$s-$q&&$s!==0){var $u=DayPilotMenu.mouse.clientY-($s-$q)+5;$e.style.top=(y-$u)+'px';}else{$e.style.top=y+'px';};if(DayPilotMenu.mouse.clientX>$t-$r&&$t!==0){var $v=DayPilotMenu.mouse.clientX-($t-$r)+5;$e.style.left=(x-$v)+'px';}else{$e.style.left=x+'px';}})();if($c.parentLink){var parent=$c.parentLink;var $w=parseInt(new DayPilot.StyleReader($e).get("border-top-width"));var $x=DayPilot.abs($c.parentLink.parentNode);var x=$x.x+parent.offsetWidth;var y=$x.y-$w;if(x+$r>$t){x=Math.max(0,$x.x-$r);};var $y=document.body.scrollTop+document.documentElement.scrollTop;if(y+$q-$y>$s){y=Math.max(0,$s-$q+$y);};$e.style.left=x+"px";$e.style.top=y+"px";};$e.style.display='';this.addShadow($e);this.$K.div=$e;if(!$c.submenu){DayPilot.Menu.active=this;}};this.applyCssClass=function($z){var $A=this.theme||this.cssClassPrefix;var $B=(this.cssOnly?"_":"");if($A){return $A+$B+$z;}else{return "";}};this.cloneOptions=function(){var $c={};var $C=['cssOnly','cssClassPrefix','useShadow','zIndex'];for(var i=0;i<$C.length;i++){var p=$C[i];$c[p]=this[p];};return $c;};this.hide=function(){if(this.$K.submenu){this.$K.submenu.menu.hide();};this.removeShadow();if(this.$K.div&&this.$K.div.parentNode===document.body){document.body.removeChild(this.$K.div);};$b.$K.visible=false;$b.$K.source=null;};this.delayedHide=function(){DayPilotMenu.hideTimeout=setTimeout(function(){$b.hide();},200);};this.cancelHideTimeout=function(){clearTimeout(DayPilotMenu.hideTimeout);};this.init=function(ev){DayPilotMenu.mouseMove(ev);};this.addShadow=function($D){if(!this.useShadow||this.cssOnly){return;};if(!$D){return;};if(this.$K.shadows&&this.$K.shadows.length>0){this.removeShadow();};this.$K.shadows=[];for(var i=0;i<5;i++){var $E=document.createElement('div');$E.style.position='absolute';$E.style.width=$D.offsetWidth+'px';$E.style.height=$D.offsetHeight+'px';$E.style.top=$D.offsetTop+i+'px';$E.style.left=$D.offsetLeft+i+'px';$E.style.zIndex=this.zIndex;$E.style.filter='alpha(opacity:10)';$E.style.opacity=0.1;$E.style.backgroundColor='#000000';document.body.appendChild($E);this.$K.shadows.push($E);}};this.removeShadow=function(){if(!this.$K.shadows){return;};for(var i=0;i<this.$K.shadows.length;i++){document.body.removeChild(this.$K.shadows[i]);};this.$K.shadows=[];};var $c=DayPilot.isArray($a)?null:$a;if($c){for(var name in $c){this[name]=$c[name];}};if(!DayPilotMenu.clickRegistered){DayPilot.re(document,'mousemove',DayPilotMenu.mouseMove);DayPilot.re(document,'touchmove',DayPilotMenu.touchMove);DayPilot.re(document,'touchstart',DayPilotMenu.touchStart);DayPilot.re(document,'touchend',DayPilotMenu.touchEnd);DayPilot.re(document,'mousedown',DayPilotMenu.menuClean);DayPilotMenu.clickRegistered=true;}};DayPilotMenu.menuClean=function(ev){if(typeof(DayPilot.Menu.active)==='undefined')return;if(DayPilot.Menu.active){DayPilot.Menu.active.hide();DayPilot.Menu.active=null;}};DayPilotMenu.mouseMove=function(ev){if(typeof(DayPilotMenu)==='undefined')return;DayPilotMenu.mouse=DayPilotMenu.mousePosition(ev);};DayPilotMenu.touchMove=function(ev){if(typeof(DayPilotMenu)==='undefined'){return;};DayPilotMenu.mouse=DayPilotMenu.touchPosition(ev);};DayPilotMenu.touchStart=function(ev){if(typeof(DayPilotMenu)==='undefined'){return;};DayPilotMenu.mouse=DayPilotMenu.touchPosition(ev);};DayPilotMenu.touchEnd=function(ev){DayPilotMenu.menuClean();};DayPilotMenu.touchPosition=function(ev){if(!ev||!ev.touches){return null;};var $F=ev.touches[0];var $G={};$G.x=$F.pageX;$G.y=$F.pageY;$G.clientX=$F.clientX;$G.clientY=$F.clientY;return $G;};DayPilotMenu.mousePosition=function(e){var $H=0;var $I=0;if(!e)var e=window.event;if(e.pageX||e.pageY){$H=e.pageX;$I=e.pageY;}else if(e.clientX||e.clientY){$H=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;$I=e.clientY+document.body.scrollTop+document.documentElement.scrollTop;};var $J={};$J.x=$H;$J.y=$I;$J.clientY=e.clientY;$J.clientX=e.clientX;return $J;};DayPilot.Menu.touchPosition=function(ev){if(ev.touches){DayPilotMenu.mouse=DayPilotMenu.touchPosition(ev);}};DayPilot.MenuVisible.Menu=DayPilotMenu.Menu;if(typeof Sys!=='undefined'&&Sys.Application&&Sys.Application.notifyScriptLoaded){Sys.Application.notifyScriptLoaded();}})();
  
  
  if(typeof(DayPilot)==='undefined'){DayPilot={};};(function(){DayPilot.ModalStatic={};DayPilot.ModalStatic.list=[];DayPilot.ModalStatic.hide=function(){if(this.list.length>0){var $a=this.list.pop();if($a){$a.hide();}}};DayPilot.ModalStatic.remove=function($b){var $c=DayPilot.ModalStatic.list;for(var i=0;i<$c.length;i++){if($c[i]===$b){$c.splice(i,1);return;}}};DayPilot.ModalStatic.close=function($d){DayPilot.ModalStatic.result($d);DayPilot.ModalStatic.hide();};DayPilot.ModalStatic.result=function(r){var $c=DayPilot.ModalStatic.list;if($c.length>0){$c[$c.length-1].result=r;}};DayPilot.ModalStatic.displayed=function($b){var $c=DayPilot.ModalStatic.list;for(var i=0;i<$c.length;i++){if($c[i]===$b){return true;}};return false;};DayPilot.ModalStatic.stretch=function(){if(this.list.length>0){var $a=this.list[this.list.length-1];if($a){$a.stretch();}}};var $e=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("MSIE")!==-1);DayPilot.Modal=function($f){this.autoStretch=true;this.autoStretchFirstLoadOnly=false;this.border="10px solid #ccc";this.corners='Rounded';this.className=null;this.dragDrop=true;this.height=200;this.maxHeight=null;this.opacity=30;this.scrollWithPage=true;this.top=20;this.useIframe=true;this.width=500;this.zIndex=null;this.closed=null;this.onClosed=null;var $g=this;this.id='_'+new Date().getTime()+'n'+(Math.random()*10);this.registered=false;this.start=null;this.coords=null;this.showHtml=function($h){if(DayPilot.ModalStatic.displayed(this)){throw "This modal dialog is already displayed.";};if(!this.div){this.create();};this.update();if(this.useIframe){var $i=function(p,$j){return function(){p.setInnerHTML(p.id+"iframe",$j);};};window.setTimeout($i(this,$h),0);}else{if($h.nodeType){this.div.appendChild($h);}else{this.div.innerHTML=$h;}};this.update();this.register();};this.rounded=function(){return this.corners&&this.corners.toLowerCase()==='rounded';};this.showUrl=function($k){if(DayPilot.ModalStatic.displayed(this)){throw "This modal dialog is already displayed.";};this.useIframe=true;if(!this.div){this.create();};this.re(this.iframe,"load",this.onIframeLoad);this.iframe.src=$k;this.update();this.register();};this.update=function(){var $l=window;var $m=document;var scrollY=$l.pageYOffset?$l.pageYOffset:(($m.documentElement&&$m.documentElement.scrollTop)?$m.documentElement.scrollTop:$m.body.scrollTop);var $n=function(){return $g.windowRect().y;};this.hideDiv.style.filter="alpha(opacity="+this.opacity+")";this.hideDiv.style.opacity="0."+this.opacity;this.hideDiv.style.backgroundColor="black";if(this.zIndex){this.hideDiv.style.zIndex=this.zIndex;};this.hideDiv.style.display='';window.setTimeout(function(){$g.hideDiv.onclick=function(){$g.hide();};},500);this.div.className=this.className;this.div.style.border=this.border;if(this.rounded()){this.div.style.MozBorderRadius="5px";this.div.style.webkitBorderRadius="5px";this.div.style.borderRadius="5px";};this.div.style.marginLeft='-'+Math.floor(this.width/2)+"px";this.div.style.position='absolute';this.div.style.top=(scrollY+this.top)+'px';this.div.style.width=this.width+'px';if(this.zIndex){this.div.style.zIndex=this.zIndex;};if(this.height){this.div.style.height=this.height+'px';};if(this.useIframe&&this.height){this.iframe.style.height=(this.height)+'px';};this.div.style.display='';DayPilot.ModalStatic.list.push(this);};this.onIframeLoad=function(){$g.iframe.contentWindow.modal=$g;if($g.autoStretch){$g.stretch();}};this.stretch=function(){var $n=function(){return $g.windowRect().y;};var $o=function(){return $g.windowRect().x;};var $p=$o()-40;for(var w=this.width;w<$p&&this.hasHorizontalScrollbar();w+=10){this.div.style.width=w+'px';this.div.style.marginLeft='-'+Math.floor(w/2)+"px";};var $q=this.maxHeight||$n()-2*this.top;for(var h=this.height;h<$q&&this.hasVerticalScrollbar();h+=10){this.iframe.style.height=(h)+'px';this.div.style.height=h+'px';};if(this.autoStretchFirstLoadOnly){this.ue(this.iframe,"load",this.onIframeLoad);}};this.hasHorizontalScrollbar=function(){var document=this.iframe.contentWindow.document;var $r=document.compatMode==='BackCompat'?document.body:document.documentElement;var $s=$r.scrollWidth;var $t=document.body.children;for(var i=0;i<$t.length;i++){var $u=$t[i].offsetLeft+$t[i].offsetWidth;$s=Math.max($s,$u);};var $v=$s>$r.clientWidth;return $v;};this.hasVerticalScrollbar=function(){var document=this.iframe.contentWindow.document;var $r=document.compatMode==='BackCompat'?document.body:document.documentElement;var $w=$r.scrollHeight;var $t=document.body.children;for(var i=0;i<$t.length;i++){var $u=$t[i].offsetTop+$t[i].offsetHeight;$w=Math.max($w,$u);};var $x=$w>$r.clientHeight;return $x;};this.windowRect=function(){var $m=document;if($m.compatMode==="CSS1Compat"&&$m.documentElement&&$m.documentElement.clientWidth){var x=$m.documentElement.clientWidth;var y=$m.documentElement.clientHeight;return{x:x,y:y};}else{var x=$m.body.clientWidth;var y=$m.body.clientHeight;return{x:x,y:y};}};this.register=function(){if(this.registered){return;};this.re(window,'resize',this.resize);this.re(window,'scroll',this.resize);if(this.dragDrop){this.re(document,'mousemove',this.drag);this.re(document,'mouseup',this.drop);};this.registered=true;};this.drag=function(e){if(!$g.coords){return;};var e=e||window.event;var $y=$g.mc(e);var x=$y.x-$g.coords.x;var y=$y.y-$g.coords.y;$g.div.style.marginLeft='0px';$g.div.style.top=($g.start.y+y)+"px";$g.div.style.left=($g.start.x+x)+"px";};this.drop=function(e){if(!$g.coords){return;};$g.unmaskIframe();$g.coords=null;};this.maskIframe=function(){if(!this.useIframe){return;};var $z=80;var $A=document.createElement("div");$A.style.backgroundColor="#ffffff";$A.style.filter="alpha(opacity="+$z+")";$A.style.opacity="0."+$z;$A.style.width="100%";$A.style.height=this.height+"px";$A.style.position="absolute";$A.style.left='0px';$A.style.top='0px';this.div.appendChild($A);this.mask=$A;};this.unmaskIframe=function(){if(!this.useIframe){return;};this.div.removeChild(this.mask);this.mask=null;};this.resize=function(){if(!$g.hideDiv){return;};if(!$g.div){return;};if($g.hideDiv.style.display==='none'){return;};if($g.div.style.display==='none'){return;};var scrollY=window.pageYOffset?window.pageYOffset:((document.documentElement&&document.documentElement.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop);if(!$g.scrollWithPage){$g.div.style.top=(scrollY+$g.top)+'px';}};this.re=function(el,ev,$B){if(el.addEventListener){el.addEventListener(ev,$B,false);}else if(el.attachEvent){el.attachEvent("on"+ev,$B);}};this.ue=function(el,ev,$B){if(el.removeEventListener){el.removeEventListener(ev,$B,false);}else if(el.detachEvent){el.detachEvent("on"+ev,$B);}};this.mc=function(ev){if(ev.pageX||ev.pageY){return{x:ev.pageX,y:ev.pageY};};return{x:ev.clientX+document.documentElement.scrollLeft,y:ev.clientY+document.documentElement.scrollTop};};this.abs=function(element){var r={x:element.offsetLeft,y:element.offsetTop};while(element.offsetParent){element=element.offsetParent;r.x+=element.offsetLeft;r.y+=element.offsetTop;};return r;};this.create=function(){var $C=document.createElement("div");$C.id=this.id+"hide";$C.style.position='fixed';$C.style.left="0px";$C.style.top="0px";$C.style.right="0px";$C.style.bottom="0px";$C.style.backgroundColor="black";$C.style.opacity=0.50;$C.oncontextmenu=function(){return false;};document.body.appendChild($C);var $D=document.createElement("div");$D.id=this.id+'popup';$D.style.position='fixed';$D.style.left='50%';$D.style.top='0px';$D.style.backgroundColor='white';$D.style.width="50px";$D.style.height="50px";if(this.dragDrop){$D.onmousedown=this.dragStart;};var $E=50;var $F=null;if(this.useIframe){$F=document.createElement("iframe");$F.id=this.id+"iframe";$F.name=this.id+"iframe";$F.frameBorder='0';$F.style.width='100%';$F.style.height=$E+'px';$D.appendChild($F);};document.body.appendChild($D);this.div=$D;this.iframe=$F;this.hideDiv=$C;};this.dragStart=function(e){$g.maskIframe();$g.coords=$g.mc(e||window.event);$g.start={x:$g.div.offsetLeft,y:$g.div.offsetTop};};this.setInnerHTML=function(id,$j){var $G=window.frames[id];var $m=$G.contentWindow||$G.document||$G.contentDocument;if($m.document){$m=$m.document;};if($j.nodeType){$m.body.appendChild($j);}else{$m.body.innerHTML=$j;}};this.close=function($d){this.result=$d;this.hide();};this.hide=function(){if(this.div){this.div.style.display='none';this.hideDiv.style.display='none';if(!this.useIframe){this.div.innerHTML=null;}};DayPilot.ModalStatic.remove(this);if(this.onClosed){var $H={};$H.result=this.result;this.onClosed($H);}else if(this.closed){this.closed();}};this.$I=function(){if(!$f){return;};for(var name in $f){this[name]=$f[name];}};this.$I();};DayPilot.Modal.close=function($d){if(parent&&parent.DayPilot&&parent.DayPilot.ModalStatic){parent.DayPilot.ModalStatic.close($d);}else{throw "Unable to close DayPilot.Modal dialog.";}};DayPilot.Modal.opener=function(){return parent&&parent.DayPilot&&parent.DayPilot.ModalStatic&&parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length-1];};})();
  
  
  if(typeof DayPilot==='undefined'){var DayPilot={};};if(typeof DayPilot.Global==='undefined'){DayPilot.Global={};};if(typeof DayPilotMonth==='undefined'){var DayPilotMonth=DayPilot.MonthVisible={};};(function(){var $a=function(){};if(typeof DayPilot.Month!=='undefined'){return;};var DayPilotMonth={};DayPilot.Month=function(id,$b){this.v='1925';this.nav={};var $c=this;this.id=id;this.isMonth=true;this.api=2;this.$20=false;this.hideUntilInit=true;this.startDate=new DayPilot.Date();this.width='100%';this.cssClassPrefix="month_default";this.cellHeight=100;this.cellMarginBottom=0;this.allowMultiSelect=true;this.autoRefreshCommand='refresh';this.autoRefreshEnabled=false;this.autoRefreshInterval=60;this.autoRefreshMaxCount=20;this.doubleClickTimeout=300;this.eventFontColor="#000000";this.eventFontFamily="Tahoma";this.eventFontSize="11px";this.headerBackColor='#ECE9D8';this.headerFontColor='#000000';this.headerFontFamily="Tahoma";this.headerFontSize="10pt";this.headerHeight=20;this.heightSpec="Auto";this.weekStarts=0;this.innerBorderColor='#cccccc';this.borderColor='black';this.eventHeight=25;this.cellHeaderHeight=16;this.numberFormat="0.00";this.clientState={};this.afterRender=function(){};this.backColor='#FFFFD5';this.nonBusinessBackColor='#FFF4BC';this.cellHeaderBackColor='';this.cellHeaderFontColor='#000000';this.cellHeaderFontFamily='Tahoma';this.cellHeaderFontSize='10pt';this.cssOnly=true;this.eventBackColor='White';this.eventBorderColor='Black';this.eventCorners="Regular";this.eventFontColor='#000000';this.eventFontFamily='Tahoma';this.eventFontSize='11px';this.cellWidth=14.285;this.lineSpace=1;this.locale="en-us";this.messageHideAfter=5000;this.notifyCommit='Immediate';this.visible=true;this.eventMoveToPosition=false;this.eventTextLayer='Top';this.eventStartTime=false;this.eventEndTime=false;this.eventStartEndWidth=60;this.eventTextAlignment=null;this.eventTextLeftIndent=20;this.showWeekend=true;this.cellMode=false;this.shadowType="Fill";this.tapAndHoldTimeout=300;this.timeFormat="Auto";this.eventTimeFontColor='gray';this.eventTimeFontFamily='Tahoma';this.eventTimeFontSize='8pt';this.viewType='Month';this.weeks=1;this.eventClickHandling='Enabled';this.eventDeleteHandling="Disabled";this.eventDoubleClickHandling='Enabled';this.eventMoveHandling='Update';this.eventResizeHandling='Update';this.eventRightClickHandling='ContextMenu';this.eventSelectHandling='Update';this.headerClickHandling="Enabled";this.timeRangeSelectedHandling='Enabled';this.timeRangeDoubleClickHandling='Enabled';this.backendUrl=null;this.cellEvents=[];this.elements={};this.elements.events=[];this.$21={};this.$21.events={};this.events={};this.$22=0;this.members={};this.members.ignore=["internal","nav","debug","temp","elements","members","cellProperties"];this.$23=function($d,$e){var $d=DayPilot.Util.parseJSON($d);if($d.BubbleGuid){var $f=$d.BubbleGuid;var $g=this.bubbles[$f];delete this.bubbles[$f];$c.$24();if(typeof $d.Result.BubbleHTML!=='undefined'){$g.updateView($d.Result.BubbleHTML,$g);};return;};if($d.CallBackRedirect){document.location.href=$d.CallBackRedirect;return;};if(typeof $d.ClientState!=='undefined'){$c.clientState=$d.ClientState;};if($d.UpdateType==="None"){$c.$25($d.CallBackData,true);if($d.Message){$c.message($d.Message);};return;};if($d.VsUpdate){var $h=document.createElement("input");$h.type='hidden';$h.name=$c.id+"_vsupdate";$h.id=$h.name;$h.value=$d.VsUpdate;$c.$26.innerHTML='';$c.$26.appendChild($h);};$c.events.list=$d.Events;if(typeof $d.TagFields!=='undefined'){$c.tagFields=$d.TagFields;};if(typeof $d.SortDirections!=='undefined'){$c.sortDirections=$d.SortDirections;};if($d.UpdateType==="Full"){$c.cellProperties=$d.CellProperties;$c.headerProperties=$d.HeaderProperties;$c.startDate=$d.StartDate;if(typeof $d.ShowWeekend!=='undefined'){$c.showWeekend=$d.ShowWeekend;};$c.headerBackColor=$d.HeaderBackColor?$d.HeaderBackColor:$c.headerBackColor;$c.backColor=$d.BackColor?$d.BackColor:$c.backColor;$c.nonBusinessBackColor=$d.NonBusinessBackColor?$d.NonBusinessBackColor:$c.nonBusinessBackColor;$c.locale=$d.Locale?$d.Locale:$c.locale;$c.timeFormat=$d.TimeFormat?$d.TimeFormat:$c.timeFormat;if(typeof $d.WeekStarts!=='undefined'){$c.weekStarts=$d.WeekStarts;};$c.hashes=$d.Hashes;};$c.multiselect.clear(true);$c.multiselect.initList=$d.SelectedEvents;$c.$27();$c.$28();$c.$29();if($d.UpdateType==="Full"){$c.$2a();$c.$2b();};$c.$2c();$c.$2d();$c.$2e();$c.$25($d.CallBackData,true);$c.$2f();if($d.Message){$c.message($d.Message);}};this.$25=function($i,$j){var $k=function($i,$l){return function(){if($c.$2g()){if(typeof $c.onAfterRender==='function'){var $m={};$m.isCallBack=$l;$m.data=$i;$c.onAfterRender($m);}}else{if($c.afterRender){$c.afterRender($i,$l);}}};};window.setTimeout($k($i,$j),0);};this.$2g=function(){return $c.api===2;};this.$2h=function($n){var $o=this.theme||this.cssClassPrefix;if($o){return $o+$n;}else{return "";}};this.$29=function(){if(!this.events.list){return;};if(typeof this.onBeforeEventRender==='function'){var length=this.events.list.length;for(var i=0;i<length;i++){this.$2i(i);}};if(this.cellMode){this.$2j();}else{this.$2k();}};this.$24=function(){};this.$2k=function(){if(!this.events.list){return;};for(var x=0;x<this.events.list.length;x++){var e=this.events.list[x];e.start=new DayPilot.Date(e.start);e.end=new DayPilot.Date(e.end);if(e.start.getTime()>e.end.getTime()){continue;};for(var i=0;i<this.rows.length;i++){var $p=this.rows[i];if($p.belongsHere(e)){var ep=new DayPilot.Event(e,$c);$p.events.push(ep);if(typeof this.onBeforeEventRender==='function'){ep.cache=this.$21.events[x];}}}};for(var ri=0;ri<this.rows.length;ri++){var $p=this.rows[ri];$p.events.sort(this.$2l);for(var ei=0;ei<this.rows[ri].events.length;ei++){var ev=$p.events[ei];var $q=$p.getStartColumn(ev);var $r=$p.getWidth(ev);$p.putIntoLine(ev,$q,$r,ri);}}};this.$2j=function(){this.cellEvents=[];for(var x=0;x<this.$2m();x++){this.cellEvents[x]=[];for(var y=0;y<this.rows.length;y++){var $s={};var d=this.firstDate.addDays(y*7+x);$s.start=d;$s.end=d.addDays(1);$s.events=[];this.cellEvents[x][y]=$s;}};for(var i=0;i<this.events.list.length;i++){var e=this.events.list[i];e.start=new DayPilot.Date(e.start);e.end=new DayPilot.Date(e.start);if(e.start.getTime()>e.end.getTime()){continue;};for(var x=0;x<this.$2m();x++){for(var y=0;y<this.rows.length;y++){var $s=this.cellEvents[x][y];if(e.start.getTime()>=$s.start.getTime()&&e.start.getTime()<$s.end.getTime()){var ep=new DayPilot.Event(e,$c);$s.events.push(ep);if(typeof this.onBeforeEventRender==='function'){ep.cache=this.$21.events[i];}}}}};for(var x=0;x<this.$2m();x++){for(var y=0;y<this.rows.length;y++){var $s=this.cellEvents[x][y];$s.events.sort(this.$2l);}}};this.$27=function(){for(var i=0;i<this.elements.events.length;i++){var e=this.elements.events[i];e.event=null;e.click=null;e.parentNode.removeChild(e);};this.elements.events=[];};this.$2e=function(){this.$21.events={};if(this.cellMode){this.$2n();}else{this.$2o();};this.multiselect.redraw();};this.$2n=function(){this.elements.events=[];for(var x=0;x<this.$2m();x++){for(var y=0;y<this.rows.length;y++){var $s=this.cellEvents[x][y];var $t=this.cells[x][y];for(var i=0;i<$s.events.length;i++){var ep=$s.events[i];ep.part.colStart=x;ep.part.colWidth=1;ep.part.row=y;ep.part.line=i;ep.part.startsHere=true;ep.part.endsHere=true;this.$2p(ep);}}}};this.$2o=function(){this.elements.events=[];for(var ri=0;ri<this.rows.length;ri++){var $p=this.rows[ri];for(var li=0;li<$p.lines.length;li++){var $u=$p.lines[li];for(var pi=0;pi<$u.length;pi++){this.$2p($u[pi]);}}}};this.$2q=function(a,b){if(!a||!b||!a.start||!b.start){return 0;};var $v=a.start().ticks-b.start().ticks;if($v!==0){return $v;};var $w=b.end().ticks-a.end().ticks;return $w;};this.$2l=function(a,b){if(!a||!b){return 0;};if(!a.data||!b.data||!a.data.sort||!b.data.sort||a.data.sort.length===0||b.data.sort.length===0){return $c.$2q(a,b);};var $d=0;var i=0;while($d===0&&typeof a.data.sort[i]!=="undefined"&&typeof b.data.sort[i]!=="undefined"){if(a.data.sort[i]===b.data.sort[i]){$d=0;}else{$d=$c.$2r(a.data.sort[i],b.data.sort[i],$c.sortDirections[i]);};i++;};return $d;};this.$2r=function(a,b,$x){var $y=($x!=="desc");var $z=$y?-1:1;var $A=-$z;if(a===null&&b===null){return 0;};if(b===null){return $A;};if(a===null){return $z;};var ar=[];ar[0]=a;ar[1]=b;ar.sort();return a===ar[0]?$z:$A;};this.$2s=function(x,y,$u,$B,$C,e){if(!$C){$C=0;};var $D=$B;this.shadow={};this.shadow.list=[];this.shadow.start={x:x,y:y};this.shadow.width=$B;if(this.eventMoveToPosition){$D=1;this.shadow.position=$u;};var $E=y*7+x-$C;if($E<0){$D+=$E;x=0;y=0;};var $F=$C;while($F>=7){y--;$F-=7;};if($F>x){var $G=7-this.$2m();if($F>(x+$G)){y--;x=x+7-$F;}else{$D=$D-$F+x;x=0;}}else{x-=$F;};if(y<0){y=0;x=0;};var $H=null;if(DayPilotMonth.resizingEvent){$H='w-resize';}else if(DayPilotMonth.movingEvent){$H="move";};this.nav.top.style.cursor=$H;while($D>0&&y<this.rows.length){var $I=Math.min(this.$2m()-x,$D);var $p=this.rows[y];var top=this.$2t(y);var $J=$p.getHeight();if(this.eventMoveToPosition){top=this.$2u(y,$u);$J=2;};var $K=document.createElement("div");$K.setAttribute("unselectable","on");$K.style.position='absolute';$K.style.left=(this.$2v()*x)+'%';$K.style.width=(this.$2v()*$I)+'%';$K.style.top=(top)+'px';$K.style.height=($J)+'px';$K.style.cursor=$H;var $L=document.createElement("div");$L.setAttribute("unselectable","on");$K.appendChild($L);if(this.cssOnly){$K.className=this.$2h("_shadow");$L.className=this.$2h("_shadow_inner");};if(!this.cssOnly){$L.style.position="absolute";$L.style.top="0px";$L.style.right="0px";$L.style.left="0px";$L.style.bottom="0px";if(this.shadowType==='Fill'){$L.style.backgroundColor="#aaaaaa";$L.style.opacity=0.5;$L.style.filter="alpha(opacity=50)";if(e&&e.event){$L.style.overflow='hidden';$L.style.fontSize=this.eventFontSize;$L.style.fontFamily=this.eventFontFamily;$L.style.color=this.eventFontColor;$L.innerHTML=e.event.client.innerHTML()?e.event.client.innerHTML():e.event.text();}}else{$L.style.border='2px dotted #666666';}};var $M=this.nav.events;$M.appendChild($K);this.shadow.list.push($K);$D-=($I+7-this.$2m());x=0;y++;}};this.$2w=function(){if(this.shadow){var $M=this.nav.events;DayPilot.de(this.shadow.list);this.shadow=null;this.nav.top.style.cursor='';}};this.$2u=function($p,$u){var top=0;for(var i=0;i<$p;i++){top+=this.rows[i].getHeight();};top+=this.cellHeaderHeight;top+=$u*$N.lineHeight();return top;};this.$2x=function(x,y){return this.firstDate.addDays(y*7+x);};this.$2i=function(i){var $O=this.$21.events;var $i=this.events.list[i];var $P={};for(var name in $i){$P[name]=$i[name];};if(typeof this.onBeforeEventRender==='function'){var $m={};$m.e=$P;$m.data=$P;this.onBeforeEventRender($m);};$O[i]=$P;};this.$2p=function(ep,$Q){var $Q=this.cellMode;var $p=ep.part.row;var $u=ep.part.line;var $q=ep.part.colStart;var $r=ep.part.colWidth;var $O=ep.cache||ep.data;var $R=$Q?0:this.$2v()*($q);var $B=$Q?100:this.$2v()*($r);var top=$Q?$u*$N.lineHeight():this.$2u($p,$u);var e=document.createElement("div");e.setAttribute("unselectable","on");e.style.height=$N.eventHeight()+'px';if(!this.cssOnly){e.style.fontFamily=this.eventFontFamily;}else{e.style.position="relative";e.style.overflow="hidden";e.className=this.$2h("_event");};if($O.cssClass){DayPilot.Util.addClass(e,$O.cssClass);};e.event=ep;if($Q){e.style.marginRight="2px";e.style.marginBottom="2px";}else{e.style.width=$B+'%';e.style.position='absolute';e.style.left=$R+'%';e.style.top=top+'px';};if(this.showToolTip&&$O.toolTip&&!this.bubble){e.title=$O.toolTip;};e.onclick=this.$2y;;e.ondblclick=this.$2z;e.oncontextmenu=this.$2A;e.onmousedown=this.$2B;e.onmousemove=this.$2C;e.onmouseout=this.$2D;e.ontouchstart=$S.onEventTouchStart;e.ontouchmove=$S.onEventTouchMove;e.ontouchend=$S.onEventTouchEnd;if(!ep.part.startsHere){DayPilot.Util.addClass(e,this.$2h("_event_continueleft"));};if(!ep.part.endsHere){DayPilot.Util.addClass(e,this.$2h("_event_continueright"));};var $T=document.createElement("div");$T.setAttribute("unselectable","on");$T.className=this.$2h("_event_inner");if(ep.client.innerHTML()){$T.innerHTML=ep.client.innerHTML();}else{$T.innerHTML=ep.text();};if($O.backColor){$T.style.background=$O.backColor;if(DayPilot.browser.ie9||DayPilot.browser.ielt9){$T.style.filter='';}};e.appendChild($T);if(this.eventTextAlignment){$T.style.textAlign=this.eventTextAlignment.toLowerCase();};var $U=this.$2E.locale();var $V=$c.eventStartEndWidth;if(this.eventStartTime){var $W=($c.$2E.timeFormat()==='Clock12Hours')?ep.start().toString("h tt",$U):ep.start().toString("H",$U);var $X={"left":5,"top":3,"width":$V,"bottom":2,"v":"Visible","html":$W,"css":$c.$2h("_event_timeleft")};var a=DayPilot.Areas.createArea(e,ep,$X);e.appendChild(a);$T.style.paddingLeft=$V+"px";};if(this.eventEndTime){var $W=($c.$2E.timeFormat()==='Clock12Hours')?ep.end().toString("h tt",$U):ep.end().toString("H",$U);var $X={"right":5,"top":3,"width":$V,"bottom":2,"v":"Visible","html":$W,"css":$c.$2h("_event_timeright")};var a=DayPilot.Areas.createArea(e,ep,$X);e.appendChild(a);$T.style.paddingRight=$V+"px";};if($O.areas){var $Y=$O.areas;for(var i=0;i<$Y.length;i++){var $X=$Y[i];if($X.v!=='Visible'){continue;};var a=DayPilot.Areas.createArea(e,ep,$X);e.appendChild(a);}};this.elements.events.push(e);if($Q){this.cells[$q][$p].body.appendChild(e);}else{this.nav.events.appendChild(e);};if($c.multiselect.$2F(e.event)){$c.multiselect.add(e.event,true);};var $t=e;if($c.$2g()){if(typeof $c.onAfterEventRender==='function'){var $m={};$m.e=$t.event;$m.div=$t;$c.onAfterEventRender($m);}}else{if($c.afterEventRender){$c.afterEventRender($t.event,$t);}}};this.$2y=function(ev){if($S.start){return;};$c.$2G(this,ev);};this.$2z=function(ev){$c.$2H(this,ev);};this.$2C=function(ev){var e=this;var ep=e.event;if(typeof(DayPilotMonth)==='undefined'){return;};if(DayPilotMonth.movingEvent||DayPilotMonth.resizingEvent){return;};var $C=DayPilot.mo3(e,ev);if(!$C){return;};(function(){var $t=e;if(!$t.active){var $Y=[];if($c.eventDeleteHandling!=="Disabled"){$Y.push({"action":"JavaScript","v":"Hover","w":17,"h":17,"top":2,"right":2,"css":$c.$2h("_event_delete"),"js":function(e){$c.$2I(e);}});};var $Z=$t.event.cache?$t.event.cache.areas:$t.event.data.areas;if($Z&&$Z.length>0){$Y=$Y.concat($Z);};DayPilot.Areas.showAreas($t,$t.event,null,$Y);}})();if($c.cssOnly){$c.$2J(e.event).each(function($t){DayPilot.Util.addClass($t,$c.$2h("_event_hover"));});};var $00=6;if(!$c.cellMode&&$C.x<=$00&&ep.client.resizeEnabled()){if(ep.part.startsHere){e.style.cursor="w-resize";e.dpBorder='left';}else{e.style.cursor='not-allowed';}}else if(!$c.cellMode&&e.clientWidth-$C.x<=$00&&ep.client.resizeEnabled()){if(ep.part.endsHere){e.style.cursor="e-resize";e.dpBorder='right';}else{e.style.cursor='not-allowed';}}else{e.style.cursor='default';};if(typeof(DayPilotBubble)!=='undefined'&&$c.bubble&&$c.eventHoverHandling!=='Disabled'){if(!DayPilotMonth.movingEvent&&!DayPilotMonth.resizingEvent){var $01=this.$2K&&$C.x===this.$2K.x&&$C.y===this.$2K.y;if(!$01){this.$2K=$C;$c.bubble.showEvent(e.event);}}else{DayPilotBubble.hideActive();}}};this.$2D=function(ev){var e=this;if(typeof(DayPilotBubble)!=='undefined'&&$c.bubble){$c.bubble.hideOnMouseOut();};e.style.cursor='';if($c.cssOnly){$c.$2J(e.event).each(function($t){DayPilot.Util.removeClass($t,$c.$2h("_event_hover"));});};DayPilot.Areas.hideAreas(e,ev);};this.$2A=function(){var e=this;$c.$2L(e.event);return false;};this.$2B=function(ev){if($S.start){return;};var e=this;var ep=e.event;var $p=ep.part.row;var $q=ep.part.colStart;var $u=ep.part.line;var $r=ep.part.colWidth;ev=ev||window.event;var $02=DayPilot.Util.mouseButton(ev);ev.cancelBubble=true;if(ev.stopPropagation){ev.stopPropagation();};if($02.left){if(typeof(DayPilotBubble)!=='undefined'&&$c.bubble){DayPilotBubble.hideActive();};DayPilotMonth.movingEvent=null;if(this.style.cursor==='w-resize'||this.style.cursor==='e-resize'){var $03={};$03.start={};$03.start.x=$q;$03.start.y=$p;$03.event=e.event;$03.width=DayPilot.DateUtil.daysSpan($03.event.start(),$03.event.end())+1;$03.direction=this.style.cursor;DayPilotMonth.resizingEvent=$03;}else if(this.style.cursor==='move'||ep.client.moveEnabled()){$c.$2w();var $04=DayPilot.mo3($c.nav.events,ev);if(!$04){return;};var $s=$c.$2M($04.x,$04.y);if(!$s){return;};var $E=DayPilot.DateUtil.daysDiff(ep.start(),$c.rows[$p].start);var $C=($s.y*7+$s.x)-($p*7+$q);if($E){$C+=$E;};var $05={};$05.start={};$05.start.x=$q;$05.start.y=$p;$05.start.line=$u;$05.offset=$c.eventMoveToPosition?0:$C;$05.colWidth=$r;$05.event=e.event;$05.coords=$04;DayPilotMonth.movingEvent=$05;}}};this.temp={};this.temp.getPosition=function(){if(!$c.coords){return null;};var $s=$c.$2M($c.coords.x,$c.coords.y);if(!$s){return null;};var d=new DayPilot.Date($c.$2x($s.x,$s.y));var $s={};$s.start=d;$s.end=d.addDays(1);return $s;};this.$2N={};var $S=$c.$2N;$S.active=false;$S.start=false;$S.timeouts=[];$S.onEventTouchStart=function(ev){if($S.active||$S.start){return;};$S.clearTimeouts();$S.start=true;$S.active=false;var $t=this;var $06=$c.tapAndHoldTimeout;$S.timeouts.push(window.setTimeout(function(){$S.active=true;$S.start=false;var $04=$S.relativeCoords(ev);$S.startMoving($t,$04);ev.preventDefault();},$06));ev.stopPropagation();};$S.onEventTouchMove=function(ev){$S.clearTimeouts();$S.start=false;};$S.onEventTouchEnd=function(ev){$S.clearTimeouts();if($S.start){$c.$2O(this,false);};window.setTimeout(function(){$S.start=false;$S.active=false;},500);};$S.onMainTouchStart=function(ev){if($S.active||$S.start){return;};$S.clearTimeouts();$S.start=true;$S.active=false;var $06=$c.tapAndHoldTimeout;$S.timeouts.push(window.setTimeout(function(){$S.active=true;$S.start=false;ev.preventDefault();var $04=$S.relativeCoords(ev);$S.startRange($04);},$06));};$S.onMainTouchMove=function(ev){$S.clearTimeouts();$S.start=false;if($S.active){ev.preventDefault();var $04=$S.relativeCoords(ev);if($S.moving){$S.updateMoving($04);return;};if($S.range){$S.updateRange($04);}}};$S.onMainTouchEnd=function(ev){$S.clearTimeouts();if($S.active){if($S.moving){var $07=$S.moving;var e=$S.moving.event;var $08=$c.shadow.start;var $09=$c.shadow.position;var $C=$S.moving.offset;$c.$2w();$S.moving=null;$c.$2P(e,$08.x,$08.y,$C,ev,$09);};if($S.range){var $0a=$S.range;var $08=new DayPilot.Date($c.$2x($0a.from.x,$0a.from.y));var end=$08.addDays($0a.width);$S.range=null;$c.$2Q($08,end);}};window.setTimeout(function(){$S.start=false;$S.active=false;},500);};$S.clearTimeouts=function(){for(var i=0;i<$S.timeouts.length;i++){clearTimeout($S.timeouts[i]);};$S.timeouts=[];};$S.relativeCoords=function(ev){var $M=$c.nav.events;var x=ev.touches[0].pageX;var y=ev.touches[0].pageY;var $04={x:x,y:y};var $0b=DayPilot.abs($M);var $04={x:x-$0b.x,y:y-$0b.y,toString:function(){return "x: "+this.x+", y:"+this.y;}};return $04;};$S.startMoving=function($t,$04){$c.$2w();var ep=$t.event;var $s=$c.$2M($04.x,$04.y);if(!$s){return;};var $E=DayPilot.DateUtil.daysDiff(ep.start(),$c.rows[ep.part.row].start);var $C=($s.y*7+$s.x)-(ep.part.row*7+ep.part.colStart);if($E){$C+=$E;};var $05={};$05.start={};$05.start.x=ep.part.colStart;$05.start.y=ep.part.row;$05.start.line=ep.part.line;$05.offset=$c.eventMoveToPosition?0:$C;$05.colWidth=ep.part.colWidth;$05.event=ep;$05.coords=$04;$S.moving=$05;$S.updateMoving($04);};$S.updateMoving=function($04){var $s=$c.$2M($04.x,$04.y);if(!$s){return;};var $0c=$c.$2R($s);$c.$2w();var event=$S.moving.event;var $C=$S.moving.offset;var $B=$c.cellMode?1:DayPilot.DateUtil.daysSpan(event.start(),event.end())+1;if($B<1){$B=1;};$c.$2s($s.x,$s.y,$0c,$B,$C,event);};$S.startRange=function($04){var $s=$c.$2M($04.x,$04.y);if(!$s){return;};$c.$2w();var $0d={};$0d.start={};$0d.start.x=$s.x;$0d.start.y=$s.y;$0d.x=$s.x;$0d.y=$s.y;$0d.width=1;$S.range=$0d;$S.updateRange($04);};$S.updateRange=function($04){var $s=$c.$2M($04.x,$04.y);if(!$s){return;};$c.$2w();var $08=$S.range.start;var $0e=$08.y*7+$08.x;var $0f=$s.y*7+$s.x;var $B=Math.abs($0f-$0e)+1;if($B<1){$B=1;};var $0g=$0e<$0f?$08:$s;$S.range.width=$B;$S.range.from={x:$0g.x,y:$0g.y};$c.$2s($0g.x,$0g.y,0,$B,0,null);};this.isWeekend=function($0h){var $0i=0;var $0j=6;if($0h.dayOfWeek()===$0i){return true;};if($0h.dayOfWeek()===$0j){return true;};return false;};this.$2S=function(){var $0k=this.startDate.lastDayOfMonth();if(this.showWeekend){return $0k;}while(this.isWeekend($0k)){$0k=$0k.addDays(-1);};return $0k;};this.$28=function(){if(typeof this.startDate==='string'){this.startDate=new DayPilot.Date(this.startDate);};if(this.viewType==='Month'){this.startDate=this.startDate.firstDayOfMonth();}else{this.startDate=this.startDate.getDatePart();};this.firstDate=this.startDate.firstDayOfWeek($N.weekStarts());if(!this.showWeekend){var $0l=this.startDate.addMonths(-1).getMonth();var $0m=new DayPilot.Date(this.firstDate).addDays(6);while(this.isWeekend($0m)){$0m=$0m.addDays(-1);};if($0m.getMonth()===$0l){this.firstDate=this.firstDate.addDays(7);}};var $0n=this.startDate;var $0o;if(this.viewType==='Month'){var $0p=this.$2S();var $0q=DayPilot.DateUtil.daysDiff(this.firstDate,$0p)+1;$0o=Math.ceil($0q/7);}else{$0o=this.weeks;};this.days=$0o*7;this.rows=[];for(var x=0;x<$0o;x++){var r={};r.start=this.firstDate.addDays(x*7);r.end=r.start.addDays(this.$2m());r.events=[];r.lines=[];r.index=x;r.minHeight=this.cellHeight;r.calendar=this;r.belongsHere=function(ev){if(ev.end.getTime()===ev.start.getTime()&&ev.start.getTime()===this.start.getTime()){return true;};return !(ev.end.getTime()<=this.start.getTime()||ev.start.getTime()>=this.end.getTime());};r.getPartStart=function(ep){return DayPilot.DateUtil.max(this.start,ep.start());};r.getPartEnd=function(ep){return DayPilot.DateUtil.min(this.end,ep.end());};r.getStartColumn=function(ep){var $0r=this.getPartStart(ep);return DayPilot.DateUtil.daysDiff(this.start,$0r);};r.getWidth=function(ep){return DayPilot.DateUtil.daysSpan(this.getPartStart(ep),this.getPartEnd(ep))+1;};r.putIntoLine=function(ep,$q,$r,$p){var $0s=this;for(var i=0;i<this.lines.length;i++){var $u=this.lines[i];if($u.isFree($q,$r)){$u.addEvent(ep,$q,$r,$p,i);return i;}};var $u=[];$u.isFree=function($q,$r){var $0t=true;for(var i=0;i<this.length;i++){var ep=this[i];if(!($q+$r-1<ep.part.colStart||$q>ep.part.colStart+ep.part.colWidth-1)){$0t=false;}};return $0t;};$u.addEvent=function(ep,$q,$r,$p,$0u){ep.part.colStart=$q;ep.part.colWidth=$r;ep.part.row=$p;ep.part.line=$0u;ep.part.startsHere=$0s.start.getTime()<=ep.start().getTime();ep.part.endsHere=$0s.end.getTime()>=ep.end().getTime();this.push(ep);};$u.addEvent(ep,$q,$r,$p,this.lines.length);this.lines.push($u);return this.lines.length-1;};r.getStart=function(){var $08=0;for(var i=0;i<$c.rows.length&&i<this.index;i++){$08+=$c.rows[i].getHeight();}};r.getHeight=function(){return Math.max(this.lines.length*$N.lineHeight()+$c.cellHeaderHeight+$c.cellMarginBottom,this.calendar.cellHeight);};this.rows.push(r);};this.$2T=this.firstDate.addDays($0o*7);};this.$2U=function(){switch(this.heightSpec){case "Auto":var $J=$N.headerHeight();for(var i=0;i<this.rows.length;i++){$J+=this.rows[i].getHeight();};return $J;case "Fixed":return this.height;}};this.$2V=function($08,end){var $0v=(end.y*7+end.x)-($08.y*7+$08.x);return $0v+1;};this.$2W={};this.$2W.scope=null;this.$2W.notify=function(){if($c.$2W.scope){$c.$2W.scope["$apply"]();}};this.debug=new DayPilot.Debug(this);this.$2X=function(){var $0w=this.nav.top;this.nav.top.dp=this;$0w.setAttribute("unselectable","on");$0w.style.MozUserSelect='none';$0w.style.KhtmlUserSelect='none';$0w.style.WebkitUserSelect='none';$0w.style.WebkitTapHighlightColor="rgba(0,0,0,0)";$0w.style.WebkitTouchCallout="none";$0w.style.position='relative';if(this.width){$0w.style.width=this.width;};$0w.onselectstart=function(e){return false;};if(this.cssOnly){$0w.className=this.$2h("_main");}else{$0w.style.border="1px solid "+this.borderColor;};if(this.hideUntilInit){$0w.style.visibility='hidden';};if(!this.visible){$0w.style.display="none";};$0w.onmousemove=this.$2Y;$0w.ontouchstart=$S.onMainTouchStart;$0w.ontouchmove=$S.onMainTouchMove;$0w.ontouchend=$S.onMainTouchEnd;this.$26=document.createElement("div");this.$26.style.display='none';this.nav.top.appendChild(this.$26);var $0x=document.createElement("div");$0x.style.position="relative";$0x.style.height=$N.headerHeight()+"px";$0x.oncontextmenu=function(){return false;};this.nav.top.appendChild($0x);this.nav.header=$0x;var $0y=document.createElement("div");$0y.style.zoom="1";var $0z=document.createElement("div");$0z.style.position="relative";$0y.appendChild($0z);this.nav.top.appendChild($0y);this.nav.scrollable=$0y;this.nav.events=$0z;};this.$2Y=function(ev){$c.coords=DayPilot.mo3($c.nav.events,ev);var $04=$c.coords;if(!$04){return;};var $s=$c.$2M($04.x,$04.y);if(!$s){return;};if(DayPilotMonth.resizingEvent){$c.$2w();var $03=DayPilotMonth.resizingEvent;var $0A=$03.start;var $B,$08;if($03.direction==='w-resize'){$08=$s;var $0B=$03.event.end();if($0B.getDatePart().getTime()===$0B.getTime()){$0B=$0B.addDays(-1);};var end=$c.$2Z($0B);$B=$c.$2V($s,end);}else{$08=$c.$2Z($03.event.start());$B=$c.$2V($08,$s);};if($B<1){$B=1;};$c.$2s($08.x,$08.y,0,$B);}else if(DayPilotMonth.movingEvent){$c.debug.message("mousemove/moving start coords: "+DayPilotMonth.movingEvent.coords.x+" "+DayPilotMonth.movingEvent.coords.y);$c.debug.message("mousemove/current coords: "+$04.x+" "+$04.y);if($04.x===DayPilotMonth.movingEvent.coords.x&&$04.y===DayPilotMonth.movingEvent.coords.y){return;};var $0c=$c.$2R($s);$c.$2w();var event=DayPilotMonth.movingEvent.event;var $C=DayPilotMonth.movingEvent.offset;var $B=$c.cellMode?1:DayPilot.DateUtil.daysSpan(event.start(),event.end())+1;if($B<1){$B=1;};$c.$2s($s.x,$s.y,$0c,$B,$C,event);}else if(DayPilotMonth.timeRangeSelecting){DayPilotMonth.cancelCellClick=true;$c.$2w();var $08=DayPilotMonth.timeRangeSelecting;var $0e=$08.y*7+$08.x;var $0f=$s.y*7+$s.x;var $B=Math.abs($0f-$0e)+1;if($B<1){$B=1;};var $0g=$0e<$0f?$08:$s;DayPilotMonth.timeRangeSelecting.from={x:$0g.x,y:$0g.y};DayPilotMonth.timeRangeSelecting.width=$B;DayPilotMonth.timeRangeSelecting.moved=true;$c.$2s($0g.x,$0g.y,0,$B,0,null);}};this.$2R=function($s){var y=$s.relativeY;var $p=$c.rows[$s.y];var top=$c.cellHeaderHeight;var lh=$N.lineHeight();var $0C=$p.lines.length;for(var i=0;i<$p.lines.length;i++){var $u=$p.lines[i];if($u.isFree($s.x,1)){$0C=i;break;}};var $0D=Math.floor((y-top+lh/ 2)/ lh);var $0D=Math.min($0C,$0D);var $0D=Math.max(0,$0D);return $0D;};this.message=function($0E,$0F,$0G,$0H){if($0E===null){return;};var $0F=$0F||this.messageHideAfter||2000;var $0G=$0G||"#ffffff";var $0H=$0H||"#000000";var $0I=0.8;var top=$N.headerHeight();var $R=1;var $0J=0;var $t;if(!this.nav.message){$t=document.createElement("div");$t.setAttribute("unselectable","on");$t.style.position="absolute";$t.style.right="0px";$t.style.left="0px";$t.style.top=top+"px";$t.style.opacity=$0I;$t.style.filter="alpha(opacity="+($0I*100)+")";$t.style.display='none';$t.onmousemove=function(){if($t.messageTimeout&&!$t.status){clearTimeout($t.messageTimeout);}};$t.onmouseout=function(){if($c.nav.message.style.display!=='none'){$t.messageTimeout=setTimeout($c.$30,500);}};if(!this.cssOnly){$t.style.textAlign="left";};var $T=document.createElement("div");$T.setAttribute("unselectable","on");$T.onclick=function(){$c.nav.message.style.display='none';};if(!this.cssOnly){$T.style.padding="5px";}else{$T.className=this.$2h("_message");};$t.appendChild($T);var close=document.createElement("div");close.setAttribute("unselectable","on");close.style.position="absolute";if(!this.cssOnly){close.style.top="5px";close.style.right=(DayPilot.sw($c.nav.scroll)+5)+"px";close.style.color=$0G;close.style.lineHeight="100%";close.style.cursor="pointer";close.style.fontWeight="bold";close.innerHTML="X";}else{close.className=this.$2h("_message_close");};close.onclick=function(){$c.nav.message.style.display='none';};$t.appendChild(close);this.nav.top.appendChild($t);this.nav.message=$t;}else{$t=$c.nav.message;};var $0K=function(){$c.nav.message.style.opacity=$0I;var $T=$c.nav.message.firstChild;if(!$c.cssOnly){$T.style.backgroundColor=$0H;$T.style.color=$0G;};$T.innerHTML=$0E;var end=function(){$t.messageTimeout=setTimeout($c.$30,$0F);};DayPilot.fade($c.nav.message,0.2,end);};clearTimeout($t.messageTimeout);if(this.nav.message.style.display!=='none'){DayPilot.fade($c.nav.message,-0.2,$0K);}else{$0K();}};this.message.show=function($0E){$c.message($0E);};this.message.hide=function(){$c.$30();};this.$30=function(){var end=function(){$c.nav.message.style.display='none';};DayPilot.fade($c.nav.message,-0.2,end);};this.$31=function(ev){if($c.heightSpec==="Parent100Pct"){$c.$2c();}};this.$2c=function(){var $0y=this.nav.scrollable;if(this.heightSpec==="Parent100Pct"||this.heightSpec==='Fixed'){$0y.style.top=this.headerHeight+"px";$0y.style.bottom="0px";$0y.style.left="0px";$0y.style.right="0px";$0y.style.overflow="auto";$0y.style.position="absolute";}else{$0y.style.position="relative";};if(this.heightSpec==='Parent100Pct'){this.nav.top.style.height="100%";var $J=this.nav.top.clientHeight;}else{this.nav.top.style.height=this.$2U()+'px';};for(var x=0;x<this.cells.length;x++){for(var y=0;y<this.cells[x].length;y++){this.cells[x][y].style.top=this.$2t(y)+'px';this.cells[x][y].style.height=this.rows[y].getHeight()+'px';}};this.$32();};this.$2M=function(x,y){var $0L=Math.floor(this.nav.top.clientWidth/this.$2m());var $0M=Math.min(Math.floor(x/$0L),this.$2m()-1);var $p=null;var $0N=0;var $J=0;var $0O=0;for(var i=0;i<this.rows.length;i++){$J+=this.rows[i].getHeight();if(y<$J){$0N=y-$0O;$p=i;break;};$0O=$J;};if($p===null){$p=this.rows.length-1;};var $s={};$s.x=$0M;$s.y=$p;$s.relativeY=$0N;return $s;};this.$2Z=function($0h){var $B=DayPilot.DateUtil.daysDiff(this.firstDate,$0h);var $s={x:0,y:0};while($B>=7){$s.y++;$B-=7;};$s.x=$B;return $s;};this.$32=function(){var $B=DayPilot.sw(this.nav.scrollable);this.nav.header.style.marginRight=$B+"px";};var $0P=null;this.$2b=function(){var $0x=this.nav.header;var $0z=this.nav.events;this.cells=[];for(var x=0;x<this.$2m();x++){this.cells[x]=[];var $0Q=this.headerProperties?this.headerProperties[x]:null;var $0R=x+$N.weekStarts();if($0R>6){$0R-=7;};if(!$0Q){var $0Q={};$0Q.html=$N.locale().dayNames[$0R];if(!this.cssOnly){$0Q.backColor=this.headerBackColor;}};if(typeof $c.onBeforeHeaderRender==='function'){var $m={};$m.header={};$m.header.dayOfWeek=$0R;var $0S=['html','backColor','cssClass'];DayPilot.Util.copyProps($0Q,$m.header,$0S);$c.onBeforeHeaderRender($m);DayPilot.Util.copyProps($m.header,$0Q,$0S);};var $0T=document.createElement("div");$0T.setAttribute("unselectable","on");$0T.style.position='absolute';$0T.style.left=(this.$2v()*x)+'%';$0T.style.width=(this.$2v())+'%';$0T.style.top='0px';$0T.style.height=($N.headerHeight())+'px';(function(x){$0T.onclick=function(){$c.$33(x);};})($0R);var $T=document.createElement("div");$T.setAttribute("unselectable","on");$T.className=this.$2h("_header_inner");$T.innerHTML=$0Q.html;$0T.appendChild($T);if(!this.cssOnly){$T.style.position="absolute";$T.style.top="0px";$T.style.bottom="0px";$T.style.left="0px";$T.style.right="0px";$T.style.backgroundColor=$0Q.backColor;$T.style.fontFamily=this.headerFontFamily;$T.style.fontSize=this.headerFontSize;$T.style.color=this.headerFontColor;$T.style.textAlign='center';$T.style.cursor='default';$T.className=this.$2h("header");if(x!==this.$2m()-1){$T.style.borderRight='1px solid '+this.borderColor;}}else{$0T.className=this.$2h("_header");if($0Q){if($0Q.cssClass){DayPilot.Util.addClass($0T,$0Q.cssClass);};if($0Q.backColor){$T.style.background=$0Q.backColor;}}};$0x.appendChild($0T);for(var y=0;y<this.rows.length;y++){this.$34(x,y,$0z);}};if(!DayPilot.contains(this.nav.top.childNodes,$0P)&&this.numberFormat){var $t=document.createElement("div");$t.style.position='absolute';$t.style.padding='2px';$t.style.top='0px';$t.style.left='0px';$t.style.backgroundColor="#FF6600";$t.style.color="white";$t.innerHTML="\u0044\u0045\u004D\u004F";$0P=$t;this.nav.top.appendChild($t);}};this.$2a=function(){for(var x=0;x<this.cells.length;x++){for(var y=0;y<this.cells[x].length;y++){this.cells[x][y].onclick=null;}};this.nav.header.innerHTML='';this.nav.events.innerHTML='';};this.$34=function(x,y,$0x){var $p=this.rows[y];var d=this.firstDate.addDays(y*7+x);var $0U=this.cellProperties?this.cellProperties[y*this.$2m()+x]:null;var $0V=null;if($0U){$0V=$0U["headerHtml"];}else{var $0h=d.getDay();if($0h===1){$0V=$N.locale().monthNames[d.getMonth()]+' '+$0h;}else{$0V=$0h+"";}};if(!$0U){var $0U={};$0U.business=!$c.isWeekend(d);$0U.headerHtml=$0V;};if(typeof $c.onBeforeCellRender==='function'){var $m={};$m.cell={};$m.cell.areas=null;$m.cell.backColor=null;$m.cell.backImage=null;$m.cell.backRepeat=null;$m.cell.business=$c.isWeekend(d);$m.cell.headerHtml=$0V;$m.cell.headerBackColor=null;$m.cell.cssClass=null;$m.cell.html=null;$m.cell.start=d;$m.cell.end=$m.cell.start.addDays(1);DayPilot.Util.copyProps($0U,$m.cell);$c.onBeforeCellRender($m);DayPilot.Util.copyProps($m.cell,$0U,['areas','backColor','backImage','backRepeat','business','headerHtml','headerBackColor','cssClass','html']);};var $s=document.createElement("div");$s.setAttribute("unselectable","on");$s.style.position='absolute';$s.style.cursor='default';$s.style.left=(this.$2v()*x)+'%';$s.style.width=(this.$2v())+'%';$s.style.top=(this.$2t(y))+'px';$s.style.height=($p.getHeight())+'px';$s.d=d;$s.x=x;$s.y=y;$s.props=$0U;var $0l=this.startDate.addMonths(-1).getMonth();var $0W=this.startDate.addMonths(1).getMonth();var $0X=this.startDate.getMonth();var $T=document.createElement("div");$T.setAttribute("unselectable","on");$s.appendChild($T);$T.className=this.$2h("_cell_inner");$T.className=this.$2h("_cell_inner");if(d.getMonth()===$0X){$s.className=this.$2h("_cell");}else if(d.getMonth()===$0l){$s.className=this.$2h("_cell")+" "+this.$2h("_previous");}else if(d.getMonth()===$0W){$s.className=this.$2h("_cell")+" "+this.$2h("_next");}else{$a();};if($0U){if($0U["cssClass"]){DayPilot.Util.addClass($s,$0U.cssClass);};if($0U["business"]){DayPilot.Util.addClass($s,this.$2h("_cell_business"));};if($0U["backColor"]){$T.style.backgroundColor=$0U["backColor"];};if($0U["backImage"]){$T.style.backgroundImage="url('"+$0U["backImage"]+"')";};if($0U["backRepeat"]){$T.style.backgroundRepeat=$0U["backRepeat"];}};$s.onmousedown=this.$35;$s.onmousemove=this.$36;$s.onmouseout=this.$37;$s.oncontextmenu=this.$38;$s.onclick=this.$39;$s.ondblclick=this.$3a;var $0Y=document.createElement("div");$0Y.setAttribute("unselectable","on");$0Y.style.height=this.cellHeaderHeight+"px";if($0U&&$0U["headerBackColor"]){$0Y.style.background=$0U["headerBackColor"];};$0Y.className=this.$2h("_cell_header");$0Y.innerHTML=$0U.headerHtml;$T.appendChild($0Y);if($0U&&$0U["html"]){var $0E=document.createElement("div");$0E.setAttribute("unselectable","on");$0E.style.height=($p.getHeight()-this.cellHeaderHeight)+'px';$0E.style.overflow='hidden';$0E.innerHTML=$0U["html"];$T.appendChild($0E);};if(this.cellMode){var $0Z=document.createElement("div");$0Z.setAttribute("unselectable","on");$0Z.style.height=(this.cellHeight-this.cellHeaderHeight)+"px";$0Z.style.overflow='auto';$0Z.style.position='relative';var $L=document.createElement('div');$L.setAttribute("unselectable","on");$L.style.paddingTop="1px";$L.style.paddingBottom="1px";$0Z.appendChild($L);$T.appendChild($0Z);$s.body=$L;$s.scrolling=$0Z;};if($s.props){var $Y=$s.props.areas||[];for(var i=0;i<$Y.length;i++){var $X=$Y[i];if($X.v!=='Visible'){continue;};var a=DayPilot.Areas.createArea($s,$s.props,$X);$s.appendChild(a);}};this.cells[x][y]=$s;$0x.appendChild($s);if(typeof $c.onAfterCellRender==="function"){$m.cell.div=$s;$m.cell.divHeader=$0Y;$c.onAfterCellRender($m);}};this.$36=function(){var c=this;if(c.props){DayPilot.Areas.showAreas(c,c.props);}};this.$37=function(ev){var c=this;if(c.props){DayPilot.Areas.hideAreas(c,ev);}};this.$38=function(){var d=this.d;var go=function(d){var $08=new DayPilot.Date(d);var end=$08.addDays(1);var $10=new DayPilot.Selection($08,end,null,$c);if($c.contextMenuSelection){$c.contextMenuSelection.show($10);}};go(d);return false;};this.$3a=function(){var d=this.d;if($c.timeouts){for(var $11 in $c.timeouts){window.clearTimeout($c.timeouts[$11]);};$c.timeouts=null;};if($c.timeRangeDoubleClickHandling!=='Disabled'){var $08=new DayPilot.Date(d);var end=$08.addDays(1);$c.$3b($08,end);}};this.$39=function(){if(DayPilotMonth.cancelCellClick){return;};var d=this.d;var $12=function(d){var $08=new DayPilot.Date(d);var end=$08.addDays(1);$c.$2Q($08,end);};if($c.timeRangeSelectedHandling!=='Disabled'&&$c.timeRangeDoubleClickHandling==='Disabled'){$12(d);return;};if(!$c.timeouts){$c.timeouts=[];};var $13=function(d){return function(){$12(d);};};$c.timeouts.push(window.setTimeout($13(d),$c.doubleClickTimeout));};this.$35=function(e){var $s=this;var x=$s.x;var y=$s.y;DayPilotMonth.cancelCellClick=false;if($s.scrolling){var $C=DayPilot.mo3($s.scrolling,e);var sw=DayPilot.sw($s.scrolling);var $B=$s.scrolling.offsetWidth;if($C.x>$B-sw){return;}};if($c.timeRangeSelectedHandling!=='Disabled'){$c.$2w();DayPilotMonth.timeRangeSelecting={"root":$c,"x":x,"y":y,"from":{x:x,y:y},"width":1};}};this.$2m=function(){if(this.showWeekend){return 7;}else{return 5;}};this.$2v=function(){if(this.showWeekend){return 14.285;}else{return 20;}};this.$3c=function(d){if(d.getUTCDay()===6||d.getUTCDay()===0){return this.nonBusinessBackColor;};return this.backColor;};this.$2t=function($0u){var top=0;for(var i=0;i<$0u;i++){top+=this.rows[i].getHeight();};return top;};this.clearSelection=function(){this.$2w();};this.$3d=function($14,$i,$15){var $16={};$16.action=$14;$16.parameters=$15;$16.data=$i;$16.header=this.$3e();var $17="JSON"+DayPilot.JSON.stringify($16);__doPostBack($c.uniqueID,$17);};this.$3f=function($14,$15,$i,$18){if(!this.$3g()){$c.debug.message("Callback invoked without the server-side backend specified. Callback canceled.","warning");return;};if(typeof $18==='undefined'){$18="CallBack";};var $16={};$16.action=$14;$16.type=$18;$16.parameters=$15;$16.data=$i;$16.header=this.$3e();var $17="JSON"+DayPilot.JSON.stringify($16);if(this.backendUrl){DayPilot.request(this.backendUrl,this.$3h,$17,this.$3i);}else if(typeof WebForm_DoCallback==='function'){WebForm_DoCallback(this.uniqueID,$17,this.$23,null,this.callbackError,true);}};this.$3g=function(){if(this.backendUrl){return true;};if(typeof WebForm_DoCallback==='function'&&this.uniqueID){return true;};return false;};this.$3i=function($19){if(typeof $c.onAjaxError==='function'){var $m={};$m.request=$19;$c.onAjaxError($m);}else if(typeof $c.ajaxError==='function'){$c.ajaxError($19);}};this.$3h=function($1a){$c.$23($1a.responseText);};this.$3e=function(){var h={};h.v=this.v;h.control="dpm";h.id=this.id;h.visibleStart=new DayPilot.Date(this.firstDate);h.visibleEnd=h.visibleStart.addDays(this.days);h.clientState=this.clientState;h.cssOnly=$c.cssOnly;h.cssClassPrefix=$c.cssClassPrefix;h.startDate=$c.startDate;h.showWeekend=this.showWeekend;h.headerBackColor=this.headerBackColor;h.backColor=this.backColor;h.nonBusinessBackColor=this.nonBusinessBackColor;h.locale=this.locale;h.timeFormat=this.timeFormat;h.weekStarts=this.weekStarts;h.viewType=this.viewType;h.weeks=this.weeks;h.selected=$c.multiselect.events();h.hashes=$c.hashes;return h;};this.visibleStart=function(){return new DayPilot.Date(this.firstDate);};this.visibleEnd=function(){return $c.visibleStart().addDays($c.days);};this.$3j=function($18,$14,$1b,$i){if($18==='PostBack'){$c.postBack2($14,$1b,$i);}else if($18==='CallBack'){$c.$3f($14,$1b,$i,"CallBack");}else if($18==='Immediate'){$c.$3f($14,$1b,$i,"Notify");}else if($18==='Queue'){$c.queue.add(new DayPilot.Action(this,$14,$1b,$i));}else if($18==='Notify'){if($N.notifyType()==='Notify'){$c.$3f($14,$1b,$i,"Notify");}else{$c.queue.add(new DayPilot.Action($c,$14,$1b,$i));}}else{throw "Invalid event invocation type";}};this.$3k=function($m,$g){var $f=$c.$3l($g);var $1b={};$1b.args=$m;$1b.guid=$f;$c.$3f("Bubble",$1b);};this.$3l=function($g){var $f=DayPilot.guid();if(!this.bubbles){this.bubbles=[];};this.bubbles[$f]=$g;return $f;};this.eventClickPostBack=function(e,$i){this.$3d("EventClick",$i,e);};this.eventClickCallBack=function(e,$i){this.$3f('EventClick',e,$i);};this.$2G=function($t,e){DayPilotMonth.movingEvent=null;DayPilotMonth.resizingEvent=null;var e=e||window.event;var $1c=e.ctrlKey;var $1d=e.metaKey;e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation();};if(typeof(DayPilotBubble)!=='undefined'){DayPilotBubble.hideActive();};if($c.eventDoubleClickHandling==='Disabled'){$c.$2O($t,$1c,$1d);return;};if(!$c.timeouts){$c.timeouts=[];}else{for(var $11 in $c.timeouts){window.clearTimeout($c.timeouts[$11]);};$c.timeouts=[];};var $1e=function($t,$1c,$1d){return function(){$c.$2O($t,$1c,$1d);};};$c.timeouts.push(window.setTimeout($1e($t,$1c,$1d),$c.doubleClickTimeout));};this.$2O=function($t,$1c,$1d){var e=$t.event;if(!e.client.clickEnabled()){return;};if($c.$2g()){var $m={};$m.e=e;$m.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventClick==='function'){$c.onEventClick($m);if($m.preventDefault.value){return;}};switch($c.eventClickHandling){case 'PostBack':$c.eventClickPostBack(e);break;case 'CallBack':$c.eventClickCallBack(e);break;case 'Select':$c.$3m($t,e,$1c,$1d);break;case 'ContextMenu':var $1f=e.client.contextMenu();if($1f){$1f.show(e);}else{if($c.contextMenu){$c.contextMenu.show(e);}};break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;};if(typeof $c.onEventClicked==='function'){$c.onEventClicked($m);}}else{switch($c.eventClickHandling){case 'PostBack':$c.eventClickPostBack(e);break;case 'CallBack':$c.eventClickCallBack(e);break;case 'JavaScript':$c.onEventClick(e);break;case 'Select':$c.$3m($t,e,$1c,$1d);break;case 'ContextMenu':var $1f=e.client.contextMenu();if($1f){$1f.show(e);}else{if($c.contextMenu){$c.contextMenu.show(e);}};break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;}}};this.$2I=function(e){if($c.$2g()){var $m={};$m.e=e;$m.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventDelete==='function'){$c.onEventDelete($m);if($m.preventDefault.value){return;}};switch($c.eventDeleteHandling){case 'PostBack':$c.eventDeletePostBack(e);break;case 'CallBack':$c.eventDeleteCallBack(e);break;case 'Update':$c.events.remove(e);break;};if(typeof $c.onEventDeleted==='function'){$c.onEventDeleted($m);}}else{switch($c.eventDeleteHandling){case 'PostBack':$c.eventDeletePostBack(e);break;case 'CallBack':$c.eventDeleteCallBack(e);break;case 'JavaScript':$c.onEventDelete(e);break;}}};this.eventDeletePostBack=function(e,$i){this.$3d('EventDelete',e,$i);};this.eventDeleteCallBack=function(e,$i){this.$3f('EventDelete',e,$i);};this.eventDoubleClickPostBack=function(e,$i){this.$3d('EventDoubleClick',$i,e);};this.eventDoubleClickCallBack=function(e,$i){this.$3f('EventDoubleClick',e,$i);};this.$2H=function($t,ev){if(typeof(DayPilotBubble)!=='undefined'){DayPilotBubble.hideActive();};if($c.timeouts){for(var $11 in $c.timeouts){window.clearTimeout($c.timeouts[$11]);};$c.timeouts=null;};var ev=ev||window.event;var e=$t.event;if($c.$2g()){var $m={};$m.e=e;$m.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventDoubleClick==='function'){$c.onEventDoubleClick($m);if($m.preventDefault.value){return;}};switch($c.eventDoubleClickHandling){case 'PostBack':$c.eventDoubleClickPostBack(e);break;case 'CallBack':$c.eventDoubleClickCallBack(e);break;case 'Select':$c.$3m($t,e,ev.ctrlKey,ev.metaKey);break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;};if(typeof $c.onEventDoubleClicked==='function'){$c.onEventDoubleClicked($m);}}else{switch($c.eventDoubleClickHandling){case 'PostBack':$c.eventDoubleClickPostBack(e);break;case 'CallBack':$c.eventDoubleClickCallBack(e);break;case 'JavaScript':$c.onEventDoubleClick(e);break;case 'Select':$c.$3m($t,e,ev.ctrlKey,ev.metaKey);break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;}}};this.$3m=function($t,e,$1c,$1d){$c.$3n($t,e,$1c,$1d);};this.eventSelectPostBack=function(e,$1g,$i){var $1b={};$1b.e=e;$1b.change=$1g;this.$3d('EventSelect',$i,$1b);};this.eventSelectCallBack=function(e,$1g,$i){var $1b={};$1b.e=e;$1b.change=$1g;this.$3f('EventSelect',$1b,$i);};this.$3n=function($t,e,$1c,$1d){var m=$c.multiselect;var $1h=false;var $1i=m.isSelected(e);var $1j=$1c||$1d;if(!$1j&&$1i&&!$1h&&m.list.length===1){return;};if($c.$2g()){m.previous=m.events();var $m={};$m.e=e;$m.selected=m.isSelected(e);$m.ctrl=$1c;$m.meta=$1d;$m.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventSelect==='function'){$c.onEventSelect($m);if($m.preventDefault.value){return;}};switch($c.eventSelectHandling){case 'PostBack':$c.eventSelectPostBack(e,$1g);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){window.__theFormPostData="";window.__theFormPostCollection=[];WebForm_InitCallback();};$c.eventSelectCallBack(e,$1g);break;case 'Update':m.$3o($t,$1c);break;};if(typeof $c.onEventSelected==='function'){$m.change=m.isSelected(e)?"selected":"deselected";$m.selected=m.isSelected(e);$c.onEventSelected($m);}}else{m.previous=m.events();m.$3o($t,$1c);var $1g=m.isSelected(e)?"selected":"deselected";switch($c.eventSelectHandling){case 'PostBack':$c.eventSelectPostBack(e,$1g);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){window.__theFormPostData="";window.__theFormPostCollection=[];WebForm_InitCallback();};$c.eventSelectCallBack(e,$1g);break;case 'JavaScript':$c.onEventSelect(e,$1g);break;}}};this.eventRightClickPostBack=function(e,$i){this.$3d("EventRightClick",$i,e);};this.eventRightClickCallBack=function(e,$i){this.$3f('EventRightClick',e,$i);};this.$2L=function(e){this.event=e;if(!e.client.rightClickEnabled()){return false;};if($c.$2g()){var $m={};$m.e=e;$m.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventRightClick==='function'){$c.onEventRightClick($m);if($m.preventDefault.value){return;}};switch($c.eventRightClickHandling){case 'PostBack':$c.eventRightClickPostBack(e);break;case 'CallBack':$c.eventRightClickCallBack(e);break;case 'ContextMenu':var $1f=e.client.contextMenu();if($1f){$1f.show(e);}else{if($c.contextMenu){$c.contextMenu.show(this.event);}};break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;};if(typeof $c.onEventRightClicked==='function'){$c.onEventRightClicked($m);}}else{switch($c.eventRightClickHandling){case 'PostBack':$c.eventRightClickPostBack(e);break;case 'CallBack':$c.eventRightClickCallBack(e);break;case 'JavaScript':$c.onEventRightClick(e);break;case 'ContextMenu':var $1f=e.client.contextMenu();if($1f){$1f.show(e);}else{if($c.contextMenu){$c.contextMenu.show(this.event);}};break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;}};return false;};this.eventMenuClickPostBack=function(e,$1k,$i){var $1b={};$1b.e=e;$1b.command=$1k;this.$3d('EventMenuClick',$i,$1b);};this.eventMenuClickCallBack=function(e,$1k,$i){var $1b={};$1b.e=e;$1b.command=$1k;this.$3f('EventMenuClick',$1b,$i);};this.$3p=function($1k,e,$1l){switch($1l){case 'PostBack':$c.eventMenuClickPostBack(e,$1k);break;case 'CallBack':$c.eventMenuClickCallBack(e,$1k);break;}};this.eventMovePostBack=function(e,$1m,$1n,$i,$09){if(!$1m)throw 'newStart is null';if(!$1n)throw 'newEnd is null';var $1b={};$1b.e=e;$1b.newStart=$1m;$1b.newEnd=$1n;$1b.position=$09;this.$3d('EventMove',$i,$1b);};this.eventMoveCallBack=function(e,$1m,$1n,$i,$09){if(!$1m)throw 'newStart is null';if(!$1n)throw 'newEnd is null';var $1b={};$1b.e=e;$1b.newStart=$1m;$1b.newEnd=$1n;$1b.position=$09;this.$3f('EventMove',$1b,$i);};this.$2P=function(e,x,y,$C,ev,$09){var $1o=e.start().getTimePart();var $0B=e.end().getDatePart();if($0B.getTime()!==e.end().getTime()){$0B=$0B.addDays(1);};var $1p=DayPilot.DateUtil.diff(e.end(),$0B);var $1q=this.$2x(x,y);$1q=$1q.addDays(-$C);var $B=DayPilot.DateUtil.daysSpan(e.start(),e.end())+1;var $1r=$1q.addDays($B);var $1m=$1q.addTime($1o);var $1n=$1r.addTime($1p);if($c.$2g()){var $m={};$m.e=e;$m.newStart=$1m;$m.newEnd=$1n;$m.position=$09;$m.ctrl=false;if(ev){$m.ctrl=ev.ctrlKey;};$m.shift=false;if(ev){$m.shift=ev.shiftKey;};$m.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventMove==='function'){$c.onEventMove($m);if($m.preventDefault.value){return;}};switch($c.eventMoveHandling){case 'PostBack':$c.eventMovePostBack(e,$1m,$1n,null,$09);break;case 'CallBack':$c.eventMoveCallBack(e,$1m,$1n,null,$09);break;case 'Notify':$c.eventMoveNotify(e,$1m,$1n,null,$09);break;case 'Update':e.start($1m);e.end($1n);$c.events.update(e);break;};if(typeof $c.onEventMoved==='function'){$c.onEventMoved($m);}}else{switch($c.eventMoveHandling){case 'PostBack':$c.eventMovePostBack(e,$1m,$1n,null,$09);break;case 'CallBack':$c.eventMoveCallBack(e,$1m,$1n,null,$09);break;case 'JavaScript':$c.onEventMove(e,$1m,$1n,ev.ctrlKey,ev.shiftKey,$09);break;case 'Notify':$c.eventMoveNotify(e,$1m,$1n,null,$09);break;}}};this.eventMoveNotify=function(e,$1m,$1n,$i,$u){var $1s=new DayPilot.Event(e.copy(),this);e.start($1m);e.end($1n);e.commit();$c.update();this.$3q("Notify",$1s,$1m,$1n,$i,$u);};this.$3q=function($18,e,$1m,$1n,$i,$u){var $1b={};$1b.e=e;$1b.newStart=$1m;$1b.newEnd=$1n;$1b.position=$u;this.$3j($18,"EventMove",$1b,$i);};this.eventResizePostBack=function(e,$1m,$1n,$i){if(!$1m)throw 'newStart is null';if(!$1n)throw 'newEnd is null';var $1b={};$1b.e=e;$1b.newStart=$1m;$1b.newEnd=$1n;this.$3d('EventResize',$i,$1b);};this.eventResizeCallBack=function(e,$1m,$1n,$i){if(!$1m)throw 'newStart is null';if(!$1n)throw 'newEnd is null';var $1b={};$1b.e=e;$1b.newStart=$1m;$1b.newEnd=$1n;this.$3f('EventResize',$1b,$i);};this.$3r=function(e,$08,$B){var $1o=e.start().getTimePart();var $0B=e.end().getDatePart();if($0B!=e.end()){$0B=$0B.addDays(1);};var $1p=DayPilot.DateUtil.diff(e.end(),$0B);var $1q=this.$2x($08.x,$08.y);var $1r=$1q.addDays($B);var $1m=$1q.addTime($1o);var $1n=$1r.addTime($1p);if($c.$2g()){var $m={};$m.e=e;$m.newStart=$1m;$m.newEnd=$1n;$m.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onEventResize==='function'){$c.onEventResize($m);if($m.preventDefault.value){return;}};switch($c.eventResizeHandling){case 'PostBack':$c.eventResizePostBack(e,$1m,$1n);break;case 'CallBack':$c.eventResizeCallBack(e,$1m,$1n);break;case 'Notify':$c.eventResizeNotify(e,$1m,$1n);break;case 'Update':e.start($1m);e.end($1n);$c.events.update(e);break;};if(typeof $c.onEventResized==='function'){$c.onEventResized($m);}}else{switch($c.eventResizeHandling){case 'PostBack':$c.eventResizePostBack(e,$1m,$1n);break;case 'CallBack':$c.eventResizeCallBack(e,$1m,$1n);break;case 'JavaScript':$c.onEventResize(e,$1m,$1n);break;case 'Notify':$c.eventResizeNotify(e,$1m,$1n);break;}}};this.eventResizeNotify=function(e,$1m,$1n,$i){var $1s=new DayPilot.Event(e.copy(),this);e.start($1m);e.end($1n);e.commit();$c.update();this.$3s("Notify",$1s,$1m,$1n,$i);};this.$3s=function($18,e,$1m,$1n,$i){var $1b={};$1b.e=e;$1b.newStart=$1m;$1b.newEnd=$1n;this.$3j($18,"EventResize",$1b,$i);};this.timeRangeSelectedPostBack=function($08,end,$i){var $0d={};$0d.start=$08;$0d.end=end;this.$3d('TimeRangeSelected',$i,$0d);};this.timeRangeSelectedCallBack=function($08,end,$i){var $0d={};$0d.start=$08;$0d.end=end;this.$3f('TimeRangeSelected',$0d,$i);};this.$2Q=function($08,end){if($c.$2g()){var $m={};$m.start=$08;$m.end=end;$m.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onTimeRangeSelect==='function'){$c.onTimeRangeSelect($m);if($m.preventDefault.value){return;}};switch($c.timeRangeSelectedHandling){case 'PostBack':$c.timeRangeSelectedPostBack($08,end);$c.clearSelection();break;case 'CallBack':$c.timeRangeSelectedCallBack($08,end);$c.clearSelection();break;};if(typeof $c.onTimeRangeSelected==='function'){$c.onTimeRangeSelected($m);}}else{switch($c.timeRangeSelectedHandling){case 'PostBack':$c.timeRangeSelectedPostBack($08,end);$c.clearSelection();break;case 'CallBack':$c.timeRangeSelectedCallBack($08,end);$c.clearSelection();break;case 'JavaScript':$c.onTimeRangeSelected($08,end);break;}}};this.timeRangeMenuClickPostBack=function(e,$1k,$i){var $1b={};$1b.selection=e;$1b.command=$1k;this.$3d("TimeRangeMenuClick",$i,$1b);};this.timeRangeMenuClickCallBack=function(e,$1k,$i){var $1b={};$1b.selection=e;$1b.command=$1k;this.$3f("TimeRangeMenuClick",$1b,$i);};this.$3t=function($1k,e,$1l){switch($1l){case 'PostBack':$c.timeRangeMenuClickPostBack(e,$1k);break;case 'CallBack':$c.timeRangeMenuClickCallBack(e,$1k);break;}};this.headerClickPostBack=function(c,$i){this.$3d('HeaderClick',$i,c);};this.headerClickCallBack=function(c,$i){this.$3f('HeaderClick',c,$i);};this.$33=function(x){var $i=this.data;var c={$0Y:x};if($c.$2g()){var $m={};$m.header={};$m.header.dayOfWeek=x;$m.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onHeaderClick==='function'){$c.onHeaderClick($m);if($m.preventDefault.value){return;}};switch($c.headerClickHandling){case 'PostBack':$c.headerClickPostBack(c);break;case 'CallBack':$c.headerClickCallBack(c);break;};if(typeof $c.onHeaderClicked==='function'){$c.onHeaderClicked($m);}}else{switch($c.headerClickHandling){case 'PostBack':$c.headerClickPostBack(c);break;case 'CallBack':$c.headerClickCallBack(c);break;case 'JavaScript':$c.onHeaderClick(c);break;}}};this.timeRangeDoubleClickPostBack=function($08,end,$i){var $0d={};$0d.start=$08;$0d.end=end;this.$3d('TimeRangeDoubleClick',$i,$0d);};this.timeRangeDoubleClickCallBack=function($08,end,$i){var $0d={};$0d.start=$08;$0d.end=end;this.$3f('TimeRangeDoubleClick',$0d,$i);};this.$3b=function($08,end){if($c.$2g()){var $m={};$m.start=$08;$m.end=end;$m.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onTimeRangeDoubleClick==='function'){$c.onTimeRangeDoubleClick($m);if($m.preventDefault.value){return;}};switch($c.timeRangeDoubleClickHandling){case 'PostBack':$c.timeRangeDoubleClickPostBack($08,end);break;case 'CallBack':$c.timeRangeDoubleClickCallBack($08,end);break;};if(typeof $c.onTimeRangeDoubleClicked==='function'){$c.onTimeRangeDoubleClicked($m);}}else{switch($c.timeRangeDoubleClickHandling){case 'PostBack':$c.timeRangeDoubleClickPostBack($08,end);break;case 'CallBack':$c.timeRangeDoubleClickCallBack($08,end);break;case 'JavaScript':$c.onTimeRangeDoubleClick($08,end);break;}}};this.commandCallBack=function($1k,$i){this.$3u();var $1b={};$1b.command=$1k;this.$3f('Command',$1b,$i);};this.$3v=function(e){for(var i=0;i<$c.elements.events.length;i++){var $t=$c.elements.events[i];if($t.event===e||$t.event.data===e.data){return $t;}};return null;};this.$2J=function(e){var $d={};$d.list=[];$d.each=function(m){if(!m){return;};for(var i=0;i<this.list.length;i++){m(this.list[i]);}};for(var i=0;i<this.elements.events.length;i++){var $t=this.elements.events[i];if($t.event.data===e.data){$d.list.push($t);}};return $d;};this.$3w=function($1t){var $t=document.createElement("div");$t.style.position="absolute";$t.style.top="-2000px";$t.style.left="-2000px";$t.className=this.$2h($1t);document.body.appendChild($t);var $J=$t.offsetHeight;var $B=$t.offsetWidth;document.body.removeChild($t);var $d={};$d.height=$J;$d.width=$B;return $d;};this.$2E={};var $N=this.$2E;$N.lineHeight=function(){return $N.eventHeight()+$c.lineSpace;};$N.rounded=function(){return $c.eventCorners==="Rounded";};$N.loadFromServer=function(){if($c.backendUrl){return(typeof $c.events.list==='undefined')||(!$c.events.list);}else{return false;}};$N.locale=function(){return DayPilot.Locale.find($c.locale);};$N.getWeekStart=function(){if($c.showWeekend){return $c.weekStarts;}else{return 1;}};$N.weekStarts=function(){if(!$c.showWeekend){return 1;};if($c.weekStarts==='Auto'){var $U=$N.locale();if($U){return $U.weekStarts;}else{return 0;}}else{return $c.weekStarts;}};$N.notifyType=function(){var $18;if($c.notifyCommit==='Immediate'){$18="Notify";}else if($c.notifyCommit==='Queue'){$18="Queue";}else{throw "Invalid notifyCommit value: "+$c.notifyCommit;};return $18;};$N.eventHeight=function(){if($c.$21.eventHeight){return $c.$21.eventHeight;};var $J=$c.$3w("_event_height").height;if(!$J){$J=$c.eventHeight;};$c.$21.eventHeight=$J;return $J;};$N.headerHeight=function(){if($c.$21.headerHeight){return $c.$21.headerHeight;};var $J=$c.$3w("_header_height").height;if(!$J){$J=$c.headerHeight;};$c.$21.headerHeight=$J;return $J;};$N.timeFormat=function(){if($c.timeFormat!=='Auto'){return $c.timeFormat;};return $N.locale().timeFormat;};this.multiselect={};this.multiselect.initList=[];this.multiselect.list=[];this.multiselect.divs=[];this.multiselect.previous=[];this.multiselect.$3x=function(){var m=$c.multiselect;return DayPilot.JSON.stringify(m.events());};this.multiselect.events=function(){var m=$c.multiselect;var $1u=[];$1u.ignoreToJSON=true;for(var i=0;i<m.list.length;i++){$1u.push(m.list[i]);};return $1u;};this.multiselect.$3y=function(){};this.multiselect.$3o=function($t,$1v){var m=$c.multiselect;if(m.isSelected($t.event)){if($c.allowMultiSelect){if($1v){m.remove($t.event,true);}else{var $0q=m.list.length;m.clear(true);if($0q>1){m.add($t.event,true);}}}else{m.clear(true);}}else{if($c.allowMultiSelect){if($1v){m.add($t.event,true);}else{m.clear(true);m.add($t.event,true);}}else{m.clear(true);m.add($t.event,true);}};m.redraw();m.$3y();};this.multiselect.$2F=function(ev){var m=$c.multiselect;return m.$3z(ev,m.initList);};this.multiselect.$3A=function(){var m=$c.multiselect;var $Z=[];for(var i=0;i<m.list.length;i++){var event=m.list[i];$Z.push(event.value());};alert($Z.join("\n"));};this.multiselect.add=function(ev,$1w){var m=$c.multiselect;if(m.indexOf(ev)===-1){m.list.push(ev);};if($1w){return;};m.redraw();};this.multiselect.remove=function(ev,$1w){var m=$c.multiselect;var i=m.indexOf(ev);if(i!==-1){m.list.splice(i,1);}};this.multiselect.clear=function($1w){var m=$c.multiselect;m.list=[];if($1w){return;};m.redraw();};this.multiselect.redraw=function(){var m=$c.multiselect;for(var i=0;i<$c.elements.events.length;i++){var $t=$c.elements.events[i];if(m.isSelected($t.event)){m.$3B($t);}else{m.$3C($t);}}};this.multiselect.$3B=function($t){var m=$c.multiselect;var cn=$c.cssOnly?$c.$2h("_selected"):$c.$2h("selected");var $t=m.$3D($t);DayPilot.Util.addClass($t,cn);m.divs.push($t);};this.multiselect.$3D=function($t){if($c.cssOnly){return $t;};return $t.firstChild;};this.multiselect.$3E=function(){var m=$c.multiselect;for(var i=0;i<m.divs.length;i++){var $t=m.divs[i];m.$3C($t,true);};m.divs=[];};this.multiselect.$3C=function($t,$1x){var m=$c.multiselect;var cn=$c.cssOnly?$c.$2h("_selected"):$c.$2h("selected");var c=m.$3D($t);if(c&&c.className&&c.className.indexOf(cn)!==-1){c.className=c.className.replace(cn,"");};if($1x){return;};var i=DayPilot.indexOf(m.divs,$t);if(i!==-1){m.divs.splice(i,1);}};this.multiselect.isSelected=function(ev){return $c.multiselect.$3z(ev,$c.multiselect.list);};this.multiselect.indexOf=function(ev){return DayPilot.indexOf($c.multiselect.list,ev);};this.multiselect.$3z=function(e,$Z){if(!$Z){return false;};for(var i=0;i<$Z.length;i++){var ei=$Z[i];if(e===ei){return true;};if(typeof ei.value==='function'){if(ei.value()!==null&&e.value()!==null&&ei.value()===e.value()){return true;};if(ei.value()===null&&e.value()===null&&ei.recurrentMasterId()===e.recurrentMasterId()&&e.start().toStringSortable()===ei.start()){return true;}}else{if(ei.value!==null&&e.value()!==null&&ei.value===e.value()){return true;};if(ei.value===null&&e.value()===null&&ei.recurrentMasterId===e.recurrentMasterId()&&e.start().toStringSortable()===ei.start){return true;}}};return false;};this.events.forRange=function($08,end){$08=new DayPilot.Date($08);end=new DayPilot.Date(end);return DayPilot.list($c.events.list).filter(function($1y){var $1z=new DayPilot.Date($1y.start);var $1A=new DayPilot.Date($1y.end);return DayPilot.Util.overlaps($08,end,$1z,$1A);}).map(function($1y){return new DayPilot.Event($1y,$c);});};this.events.find=function(id){if(!$c.events.list||typeof $c.events.list.length==='undefined'){return null;};var $1B=$c.events.list.length;for(var i=0;i<$1B;i++){if($c.events.list[i].id===id){return new DayPilot.Event($c.events.list[i],$c);}};return null;};this.events.findRecurrent=function($1C,$1D){if(!$c.events.list||typeof $c.events.list.length==='undefined'){return null;};var $1B=$c.events.list.length;for(var i=0;i<$1B;i++){if($c.events.list[i].recurrentMasterId===$1C&&$c.events.list[i].start.getTime()===$1D.getTime()){return new DayPilot.Event($c.events.list[i],$c);}};return null;};this.events.update=function(e,$i){var $1b={};$1b.oldEvent=new DayPilot.Event(e.copy(),$c);$1b.newEvent=new DayPilot.Event(e.temp(),$c);var $14=new DayPilot.Action($c,"EventUpdate",$1b,$i);e.commit();if($c.$20){$c.update();};$c.$2W.notify();return $14;};this.events.remove=function(e,$i){var $1b={};$1b.e=new DayPilot.Event(e.data,$c);var $14=new DayPilot.Action($c,"EventRemove",$1b,$i);var $0u=DayPilot.indexOf($c.events.list,e.data);$c.events.list.splice($0u,1);if($c.$20){$c.update();};$c.$2W.notify();return $14;};this.events.add=function(e,$i){e.calendar=$c;if(!$c.events.list){$c.events.list=[];};$c.events.list.push(e.data);var $1b={};$1b.e=e;var $14=new DayPilot.Action($c,"EventAdd",$1b,$i);if($c.$20){$c.update();};$c.$2W.notify();return $14;};this.events.load=function($1E,$1F,$1G){var $1H=function($m){var $1I={};$1I.exception=$m.exception;$1I.request=$m.request;if(typeof $1G==='function'){$1G($1I);}};var $1J=function($m){var r=$m.request;var $i;try{$i=DayPilot.Util.parseJSON(r.responseText);}catch(e){var $1K={};$1K.exception=e;$1H($1K);return;};if(DayPilot.isArray($i)){var $1L={};$1L.preventDefault=function(){this.preventDefault.value=true;};$1L.data=$i;if(typeof $1F==="function"){$1F($1L);};if($1L.preventDefault.value){return;};$c.events.list=$i;if($c.$20){$c.update();}}};DayPilot.ajax({"method":"POST","data":{"start":$c.visibleStart().toString(),"end":$c.visibleEnd().toString()},"url":$1E,"success":$1J,"error":$1H});};this.queue={};this.queue.list=[];this.queue.list.ignoreToJSON=true;this.queue.add=function($14){if(!$14){return;};if($14.isAction){$c.queue.list.push($14);}else{throw "DayPilot.Action object required for queue.add()";}};this.queue.notify=function($i){var $1b={};$1b.actions=$c.queue.list;$c.$3f('Notify',$1b,$i,"Notify");$c.queue.list=[];};this.queue.clear=function(){$c.queue.list=[];};this.queue.pop=function(){return $c.queue.list.pop();};this.$2f=function($1M){if($1M){this.autoRefreshEnabled=true;};if(!this.autoRefreshEnabled){return;};if(this.$22>=this.autoRefreshMaxCount){return;};this.$3u();var $1N=this.autoRefreshInterval;if(!$1N||$1N<10){throw "The minimum autoRefreshInterval is 10 seconds";};this.autoRefreshTimeout=window.setTimeout(function(){$c.$3F();},this.autoRefreshInterval*1000);};this.$3u=function(){if(this.autoRefreshTimeout){window.clearTimeout(this.autoRefreshTimeout);}};this.$3F=function(){if(!DayPilotMonth.eventResizing&&!DayPilotMonth.eventMoving&&!DayPilotMonth.timeRangeSelecting){var $1O=false;if(typeof this.onAutoRefresh==='function'){var $m={};$m.i=this.$22;$m.preventDefault=function(){this.preventDefault.value=true;};$c.onAutoRefresh($m);if($m.preventDefault.value){$1O=true;}};if(!$1O&&this.$3g()){this.commandCallBack(this.autoRefreshCommand);};this.$22++;};if(this.$22<this.autoRefreshMaxCount){this.autoRefreshTimeout=window.setTimeout(function(){$c.$3F();},this.autoRefreshInterval*1000);}};this.$3G=function($m){if(!this.cells){return;};var $m=$m||{};var $1P=!$m.eventsOnly;if(!$c.cssOnly){$c.cssOnly=true;DayPilot.Util.log("DayPilot: cssOnly = false mode is not supported since DayPilot Pro 8.0.");};$c.$27();$c.$28();$c.$29();if($1P){$c.$2a();$c.$2b();};$c.$2c();$c.$2d();$c.$2e();if(this.visible){this.show();}else{this.hide();}};this.update=function(){this.$3G();};this.dispose=function(){var c=$c;if(!c.nav.top){return;};c.$3u();c.$27();c.nav.top.removeAttribute("style");c.nav.top.removeAttribute("class");c.nav.top.innerHTML='';c.nav.top.dp=null;c.nav.top=null;DayPilotMonth.unregister(c);};this.$3H=function(){if(!DayPilotMonth.globalHandlers){DayPilotMonth.globalHandlers=true;DayPilot.re(document,'mouseup',DayPilotMonth.gMouseUp);};DayPilot.re(window,'resize',this.$31);};this.$2d=function(){if(this.nav.top.style.visibility==='hidden'){this.nav.top.style.visibility='visible';}};this.show=function(){$c.visible=true;$c.nav.top.style.display='';};this.hide=function(){$c.visible=false;$c.nav.top.style.display='none';};this.$3I=function(){if(this.id&&this.id.tagName){this.nav.top=this.id;}else if(typeof this.id==="string"){this.nav.top=document.getElementById(this.id);if(!this.nav.top){throw "DayPilot.Month: The placeholder element not found: '"+id+"'.";}}else{throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";}};this.$3J=function(){this.$3I();this.$28();this.$2X();this.$2b();this.$3H();this.$2f();this.$3f('Init');DayPilotMonth.register(this);};this.init=function(){this.$3I();if(this.nav.top.dp){return;};var $1Q=$N.loadFromServer();if(!$c.cssOnly){$c.cssOnly=true;window.console&&window.console.log&&window.console.log("DayPilot: cssOnly = false mode is not supported since DayPilot Pro 8.0.");};if($1Q){this.$3J();this.$20=true;return;};this.$28();this.$29();this.$2X();this.$2b();this.$2d();this.$2e();this.$2c();this.$3H();if(this.messageHTML){this.message(this.messageHTML);};this.$25(null,false);this.$2f();DayPilotMonth.register(this);this.$20=true;this.$3K();};this.$3L=null;this.$3M=function($b){var $1R={"events":{"preInit":function(){var $1u=this.data;if(!$1u){return;};if(DayPilot.isArray($1u.list)){$c.events.list=$1u.list;}else{$c.events.list=$1u;}}}};this.$3L=$1R;for(var name in $b){if($1R[name]){var $1y=$1R[name];$1y.data=$b[name];if($1y.preInit){$1y.preInit();}}else{$c[name]=$b[name];}}};this.$3K=function(){var $1R=this.$3L;for(var name in $1R){var $1y=$1R[name];if($1y.postInit){$1y.postInit();}}};this.internal={};this.internal.initialized=function(){return $c.$20;};this.internal.invokeEvent=this.$3j;this.internal.eventMenuClick=this.$3p;this.internal.timeRangeMenuClick=this.$3t;this.internal.bubbleCallBack=this.$3k;this.internal.findEventDiv=this.$3v;this.Init=this.init;this.$3M($b);};DayPilotMonth.register=function($c){if(!DayPilotMonth.registered){DayPilotMonth.registered=[];};for(var i=0;i<DayPilotMonth.registered.length;i++){if(DayPilotMonth.registered[i]===$c){return;}};DayPilotMonth.registered.push($c);};DayPilotMonth.unregister=function($c){var a=DayPilotMonth.registered;if(a){var i=DayPilot.indexOf(a,$c);if(i!==-1){a.splice(i,1);};if(a.length===0){a=null;}};if(!a){DayPilot.ue(document,'mouseup',DayPilotMonth.gMouseUp);DayPilotMonth.globalHandlers=false;}};DayPilotMonth.gMouseUp=function(ev){if(DayPilotMonth.movingEvent){var $07=DayPilotMonth.movingEvent;DayPilotMonth.movingEvent=null;if(!$07.event||!$07.event.calendar||!$07.event.calendar.shadow||!$07.event.calendar.shadow.start){return;};var $c=$07.event.calendar;var e=$07.event;var $08=$c.shadow.start;var $09=$c.shadow.position;var $C=$07.offset;$c.$2w();var ev=ev||window.event;$c.$2P(e,$08.x,$08.y,$C,ev,$09);ev.cancelBubble=true;if(ev.stopPropagation){ev.stopPropagation();};return false;}else if(DayPilotMonth.resizingEvent){var $07=DayPilotMonth.resizingEvent;DayPilotMonth.resizingEvent=null;if(!$07.event||!$07.event.calendar||!$07.event.calendar.shadow||!$07.event.calendar.shadow.start){return;};var $c=$07.event.calendar;var e=$07.event;var $08=$c.shadow.start;var $B=$c.shadow.width;$c.$2w();$c.$3r(e,$08,$B);ev.cancelBubble=true;return false;}else if(DayPilotMonth.timeRangeSelecting){if(DayPilotMonth.timeRangeSelecting.moved){var $0a=DayPilotMonth.timeRangeSelecting;var $c=$0a.root;var $08=new DayPilot.Date($c.$2x($0a.from.x,$0a.from.y));var end=$08.addDays($0a.width);$c.$2Q($08,end);};DayPilotMonth.timeRangeSelecting=null;}};DayPilot.MonthVisible.Month=DayPilotMonth.Month;if(typeof jQuery!=='undefined'){(function($){$.fn.daypilotMonth=function($b){var $1S=null;var j=this.each(function(){if(this.daypilot){return;};var $1T=new DayPilot.Month(this.id,$b);$1T.init();this.daypilot=$1T;if(!$1S){$1S=$1T;}});if(this.length===1){return $1S;}else{return j;}};})(jQuery);};(function registerAngularModule(){var $1U=DayPilot.am();if(!$1U){return;};$1U.directive("daypilotMonth",function(){return{"restrict":"E","template":"<div></div>","replace":true,"link":function($1V,element,$1W){var $c=new DayPilot.Month(element[0]);$c.$2W.scope=$1V;$c.init();var $1X=$1W["id"];if($1X){$1V[$1X]=$c;};var $1Y=$1V["$watch"];$1Y.call($1V,$1W["daypilotConfig"],function($1Z){for(var name in $1Z){$c[name]=$1Z[name];};$c.update();},true);$1Y.call($1V,$1W["daypilotEvents"],function($1Z){$c.events.list=$1Z;$c.$3G({"eventsOnly":true});},true);}};});})();if(typeof Sys!=='undefined'&&Sys.Application&&Sys.Application.notifyScriptLoaded){Sys.Application.notifyScriptLoaded();}})();
  
  if(typeof DayPilot==='undefined'){var DayPilot={};};if(typeof DayPilot.Global==='undefined'){DayPilot.Global={};};if(typeof DayPilotNavigator==='undefined'){var DayPilotNavigator=DayPilot.NavigatorVisible={};};(function(){if(typeof DayPilot.Navigator!=='undefined'){return;};DayPilotNavigator={};DayPilot.Navigator=function(id,$a){this.v='1925';var $b=this;this.id=id;this.api=2;this.isNavigator=true;this.weekStarts='Auto';this.selectMode='day';this.titleHeight=20;this.dayHeaderHeight=20;this.cellWidth=20;this.cellHeight=20;this.cssOnly=true;this.cssClassPrefix="navigator_default";this.selectionStart=new DayPilot.Date().getDatePart();this.selectionEnd=null;this.selectionDay=null;this.showMonths=1;this.skipMonths=1;this.command="navigate";this.year=new DayPilot.Date().getYear();this.month=new DayPilot.Date().getMonth()+1;this.showWeekNumbers=false;this.weekNumberAlgorithm='Auto';this.rowsPerMonth='Six';this.orientation="Vertical";this.locale="en-us";this.visible=true;this.timeRangeSelectedHandling="Bind";this.visibleRangeChangedHandling="Enabled";this.nav={};this.$0j={};this.$0k=function(){this.root.dp=this;if(this.cssOnly){this.root.className=this.$0l('_main');}else{this.root.className=this.$0l('main');};if(this.orientation==="Horizontal"){this.root.style.width=this.showMonths*($c.cellWidth()*7+this.$0m())+'px';this.root.style.height=(this.cellHeight*6+this.titleHeight+this.dayHeaderHeight)+'px';}else{this.root.style.width=($c.cellWidth()*7+this.$0m())+'px';};this.root.style.position="relative";if(!this.visible){this.root.style.display="none";};var $d=document.createElement("input");$d.type='hidden';$d.name=$b.id+"_state";$d.id=$d.name;this.root.appendChild($d);this.state=$d;if(!this.startDate){this.startDate=DayPilot.Date.fromYearMonthDay(this.year,this.month);}else{this.startDate=new DayPilot.Date(this.startDate).firstDayOfMonth();};this.calendars=[];this.selected=[];this.months=[];};this.$0n=function(){return $b.api===2;};this.$0o=function(){this.root.innerHTML='';};this.$0l=function($e){var $f=this.theme||this.cssClassPrefix;if($f){return $f+$e;}else{return "";}};this.$0p=function($g,name){var $h=this.cssOnly?this.$0l("_"+name):this.$0l(name);DayPilot.Util.addClass($g,$h);};this.$0q=function($g,name){var $h=this.cssOnly?this.$0l("_"+name):this.$0l(name);DayPilot.Util.removeClass($g,$h);};this.$0r=function(j,$i){var $j={};$j.cells=[];$j.days=[];$j.weeks=[];var $k=this.startDate.addMonths(j);var $l=$i.before;var $m=$i.after;var $n=$k.firstDayOfMonth();var $o=$n.firstDayOfWeek($c.weekStarts());var $p=$n.addMonths(1);var $q=DayPilot.DateUtil.daysDiff($o,$p);var $r=(this.rowsPerMonth==="Auto")?Math.ceil($q/7):6;$j.rowCount=$r;var $s=(new DayPilot.Date()).getDatePart();var $t=$c.cellWidth()*7+this.$0m();var $u=this.cellHeight*$r+this.titleHeight+this.dayHeaderHeight;$j.height=$u;var $v=document.createElement("div");$v.style.width=($t)+'px';$v.style.height=($u)+'px';if(this.orientation==="Horizontal"){$v.style.position="absolute";$v.style.left=($t*j)+"px";$v.style.top="0px";}else{$v.style.position='relative';};if(this.cssOnly){$v.className=this.$0l('_month');}else{$v.className=this.$0l('month');};$v.style.cursor='default';$v.style.MozUserSelect='none';$v.style.KhtmlUserSelect='none';$v.style.WebkitUserSelect='none';$v.month=$j;this.root.appendChild($v);var $w=this.titleHeight+this.dayHeaderHeight;var tl=document.createElement("div");tl.style.position='absolute';tl.style.left='0px';tl.style.top='0px';tl.style.width=$c.cellWidth()+'px';tl.style.height=this.titleHeight+'px';tl.style.lineHeight=this.titleHeight+'px';tl.setAttribute("unselectable","on");if(this.cssOnly){tl.className=this.$0l('_titleleft');}else{tl.className=this.$0l('titleleft');};if($i.left){tl.style.cursor='pointer';tl.innerHTML="<span>&lt;</span>";tl.onclick=this.$0s;};$v.appendChild(tl);this.tl=tl;var ti=document.createElement("div");ti.style.position='absolute';ti.style.left=$c.cellWidth()+'px';ti.style.top='0px';ti.style.width=($c.cellWidth()*5+this.$0m())+'px';ti.style.height=this.titleHeight+'px';ti.style.lineHeight=this.titleHeight+'px';ti.setAttribute("unselectable","on");if(this.cssOnly){ti.className=this.$0l('_title');}else{ti.className=this.$0l('title');};ti.innerHTML=$c.locale().monthNames[$k.getMonth()]+' '+$k.getYear();$v.appendChild(ti);this.ti=ti;var tr=document.createElement("div");tr.style.position='absolute';tr.style.left=($c.cellWidth()*6+this.$0m())+'px';tr.style.top='0px';tr.style.width=$c.cellWidth()+'px';tr.style.height=this.titleHeight+'px';tr.style.lineHeight=this.titleHeight+'px';tr.setAttribute("unselectable","on");if(this.cssOnly){tr.className=this.$0l('_titleright');}else{tr.className=this.$0l('titleright');};if($i.right){tr.style.cursor='pointer';tr.innerHTML="<span>&gt;</span>";tr.onclick=this.$0t;};$v.appendChild(tr);this.tr=tr;var $x=this.$0m();if(this.showWeekNumbers){for(var y=0;y<$r;y++){var $y=$o.addDays(y*7);var $z=null;switch(this.weekNumberAlgorithm){case "Auto":$z=($c.weekStarts()===0)?$y.weekNumber():$y.weekNumberISO();break;case "US":$z=$y.weekNumber();break;case "ISO8601":$z=$y.weekNumberISO();break;default:throw "Unknown weekNumberAlgorithm value.";};var dh=document.createElement("div");dh.style.position='absolute';dh.style.left=(0)+'px';dh.style.top=(y*this.cellHeight+$w)+'px';dh.style.width=$c.cellWidth()+'px';dh.style.height=this.cellHeight+'px';dh.style.lineHeight=this.cellHeight+'px';dh.setAttribute("unselectable","on");if(this.cssOnly){dh.className=this.$0l('_weeknumber');}else{dh.className=this.$0l('weeknumber');};dh.innerHTML="<span>"+$z+"</span>";$v.appendChild(dh);$j.weeks.push(dh);}};for(var x=0;x<7;x++){$j.cells[x]=[];var dh=document.createElement("div");dh.style.position='absolute';dh.style.left=(x*$c.cellWidth()+$x)+'px';dh.style.top=this.titleHeight+'px';dh.style.width=$c.cellWidth()+'px';dh.style.height=this.dayHeaderHeight+'px';dh.style.lineHeight=this.dayHeaderHeight+'px';dh.setAttribute("unselectable","on");if(this.cssOnly){dh.className=this.$0l('_dayheader');}else{dh.className=this.$0l('dayheader');};dh.innerHTML="<span>"+this.$0u(x)+"</span>";$v.appendChild(dh);$j.days.push(dh);for(var y=0;y<$r;y++){var $y=$o.addDays(y*7+x);var $A=this.$0v($y)&&this.$0w()!=='none';var $B=$y.firstDayOfMonth()===$k;var $C=$y<$k;var $D=$y>=$k.addMonths(1);if(this.$0w()==="month"||this.$0w()==="day"){$A=$A&&$B;}else if(this.$0w()==="week"){var sd=this.selectionDay||this.selectionStart;var $E=sd.firstDayOfMonth()===$k;$A=$A&&($E||($l&&$C)||($m&&$D));};var dc=document.createElement("div");$j.cells[x][y]=dc;dc.day=$y;dc.x=x;dc.y=y;dc.isCurrentMonth=$B;if(this.cssOnly){dc.className=this.$0l(($B?'_day':'_dayother'));}else{dc.className=this.$0l(($B?'day':'dayother'));};$b.$0p(dc,"cell");if($y.getTime()===$s.getTime()&&$B){this.$0p(dc,'today');};if($y.dayOfWeek()===0||$y.dayOfWeek()===6){this.$0p(dc,'weekend');};dc.style.position='absolute';dc.style.left=(x*$c.cellWidth()+$x)+'px';dc.style.top=(y*this.cellHeight+$w)+'px';dc.style.width=$c.cellWidth()+'px';dc.style.height=this.cellHeight+'px';dc.style.lineHeight=this.cellHeight+'px';var $F=document.createElement("div");$F.style.position='absolute';if(this.cssOnly){$F.className=($y.getTime()===$s.getTime()&&$B)?this.$0l('_todaybox'):this.$0l('_daybox');}else{$F.className=($y.getTime()===$s.getTime()&&$B)?this.$0l('todaybox'):this.$0l('daybox');};$b.$0p($F,"cell_box");$F.style.left='0px';$F.style.top='0px';$F.style.right='0px';$F.style.bottom='0px';dc.appendChild($F);var $G=null;if(this.cells&&this.cells[$y.toStringSortable()]){$G=this.cells[$y.toStringSortable()];};if(typeof $b.onBeforeCellRender==="function"){var $H={};$H.cell={};$H.cell.day=$y;$H.cell.isCurrentMonth=$B;$H.cell.isToday=$y.getTime()===$s.getTime()&&$B;$H.cell.isWeekend=$y.dayOfWeek()===0||$y.dayOfWeek()===6;$H.cell.html=$y.getDay();$H.cell.cssClass=null;$b.onBeforeCellRender($H);$G=$H.cell;};if($G){DayPilot.Util.addClass(dc,$G.cssClass||$G.css);};if($B||($l&&$C)||($m&&$D)){var $I=document.createElement("div");$I.innerHTML=$y.getDay();$I.style.position="absolute";$I.style.left='0px';$I.style.top='0px';$I.style.right='0px';$I.style.bottom='0px';$b.$0p($I,"cell_text");dc.style.cursor='pointer';dc.isClickable=true;if($G&&$G.html){$I.innerHTML=$G.html;};dc.appendChild($I);};dc.setAttribute("unselectable","on");dc.onclick=this.$0x;dc.onmousedown=this.$0y;dc.onmousemove=this.$0z;$v.appendChild(dc);if($A){$b.$0A($v,x,y);this.selected.push(dc);}}};var $J=document.createElement("div");$J.style.position='absolute';$J.style.left='0px';$J.style.top=($w-2)+'px';$J.style.width=($c.cellWidth()*7+this.$0m())+'px';$J.style.height='1px';$J.style.fontSize='1px';$J.style.lineHeight='1px';if(this.cssOnly){$J.className=this.$0l("_line");}else{$J.className=this.$0l("line");};$v.appendChild($J);this.months.push($j);};this.$0A=function($v,x,y){var $K=$v.month.cells[x][y];$b.$0p($K,'select');};this.$0B=function($v,x,y){var $K=$v.month.cells[x][y];$b.$0q($K,'select');};this.$0m=function(){if(this.showWeekNumbers){return $c.cellWidth();};return 0;};this.$0C=function(){if(!this.items){return;};for(var j=0;j<this.showMonths;j++){for(var x=0;x<7;x++){for(var y=0;y<6;y++){var $G=this.months[j].cells[x][y];if(!$G){continue;};if(this.items[$G.day.toStringSortable()]===1){this.$0p($G,'busy');}else{this.$0q($G,'busy');}}}}};this.$0D=function(){var s={};s.startDate=$b.startDate;s.selectionStart=$b.selectionStart;s.selectionEnd=$b.selectionEnd.addDays(1);$b.state.value=DayPilot.JSON.stringify(s);};this.$0w=function(){var $L=this.selectMode||"";return $L.toLowerCase();};this.$0E=function(){var $M=this.selectionDay||this.selectionStart;var $M=new DayPilot.Date($M);switch(this.$0w()){case 'day':this.selectionDay=$M;this.selectionEnd=$M;break;case 'week':this.selectionDay=$M;this.selectionStart=$M.firstDayOfWeek($c.weekStarts());this.selectionEnd=this.selectionStart.addDays(6);break;case 'month':this.selectionDay=$M;this.selectionStart=$M.firstDayOfMonth();this.selectionEnd=this.selectionStart.lastDayOfMonth();break;case 'none':this.selectionEnd=$M;break;default:throw "Unknown selectMode value.";}};this.select=function($N){var $O=true;var $P=this.selectionStart;var $Q=this.selectionEnd;this.selectionStart=new DayPilot.Date($N).getDatePart();this.selectionDay=this.selectionStart;var $R=false;if($O){var $S=this.startDate;if(this.selectionStart<this.$0F()||this.selectionStart>=this.$0G()){$S=this.selectionStart.firstDayOfMonth();};if($S.toStringSortable()!==this.startDate.toStringSortable()){$R=true;};this.startDate=$S;};this.$0E();this.$0o();this.$0k();this.$0H();this.$0C();this.$0D();if(!$P.equals(this.selectionStart)||!$Q.equals(this.selectionEnd)){this.$0I();};if($R){this.$0J();}};this.update=function(){if(!$b.cssOnly){$b.cssOnly=true;DayPilot.Util.log("DayPilot: cssOnly = false mode is not supported since DayPilot Pro 8.0.");};this.$0o();this.$0k();this.$0E();this.$0H();this.$0K();this.$0C();this.$0D();if(this.visible){this.show();}else{this.hide();}};this.$0L=function($T,$U,$V){var $W={};$W.action=$T;$W.parameters=$V;$W.data=$U;$W.header=this.$0M();var $X="JSON"+DayPilot.JSON.stringify($W);var $Y=null;if(this.backendUrl){DayPilot.request(this.backendUrl,this.$0N,$X,this.$0O);}else{WebForm_DoCallback(this.uniqueID,$X,this.$0P,$Y,this.callbackError,true);}};this.$0O=function($Z){if(typeof $b.onAjaxError==='function'){var $H={};$H.request=$Z;$b.onAjaxError($H);}else if(typeof $b.ajaxError==='function'){$b.ajaxError($Z);}};this.$0N=function($00){$b.$0P($00.responseText);};this.$0Q=function($T,$U,$V){var $W={};$W.action=$T;$W.parameters=$V;$W.data=$U;$W.header=this.$0M();var $X="JSON"+DayPilot.JSON.stringify($W);__doPostBack($b.uniqueID,$X);};this.$0M=function(){var h={};h.v=this.v;h.startDate=this.startDate;h.selectionStart=this.selectionStart;return h;};this.$0R=function($T,$U){if($T==='refresh'){this.$0J();}};this.$0u=function(i){var x=i+$c.weekStarts();if(x>6){x-=7;};return $c.locale().dayNamesShort[x];};this.$0v=function($N){if(this.selectionStart===null||this.selectionEnd===null){return false;};if(this.selectionStart.getTime()<=$N.getTime()&&$N.getTime()<=this.selectionEnd.getTime()){return true;};return false;};this.$0y=function(ev){};this.$0z=function(ev){};this.$0x=function(ev){var $v=this.parentNode;var $j=this.parentNode.month;var x=this.x;var y=this.y;var $y=$j.cells[x][y].day;if(!$j.cells[x][y].isClickable){return;};$b.clearSelection();$b.selectionDay=$y;var $y=$b.selectionDay;switch($b.$0w()){case 'none':$b.selectionStart=$y;$b.selectionEnd=$y;break;case 'day':var s=$j.cells[x][y];$b.$0A($v,x,y);$b.selected.push(s);$b.selectionStart=s.day;$b.selectionEnd=s.day;break;case 'week':for(var j=0;j<7;j++){$b.$0A($v,j,y);$b.selected.push($j.cells[j][y]);};$b.selectionStart=$j.cells[0][y].day;$b.selectionEnd=$j.cells[6][y].day;break;case 'month':var $01=null;var end=null;for(var y=0;y<6;y++){for(var x=0;x<7;x++){var s=$j.cells[x][y];if(!s){continue;};if(s.day.getYear()===$y.getYear()&&s.day.getMonth()===$y.getMonth()){$b.$0A($v,x,y);$b.selected.push(s);if($01===null){$01=s.day;};end=s.day;}}};$b.selectionStart=$01;$b.selectionEnd=end;break;default:throw 'unknown selectMode';};$b.$0D();$b.$0I();};this.$0I=function(){var $01=$b.selectionStart;var end=$b.selectionEnd.addDays(1);var $q=DayPilot.DateUtil.daysDiff($01,end);var $y=$b.selectionDay;if($b.$0n()){var $H={};$H.start=$01;$H.end=end;$H.day=$y;$H.days=$q;$H.preventDefault=function(){this.preventDefault.value=true;};if(typeof $b.onTimeRangeSelect==='function'){$b.onTimeRangeSelect($H);if($H.preventDefault.value){return;}};switch($b.timeRangeSelectedHandling){case 'Bind':var $02=DayPilot.Util.evalVariable($b.bound);if($02){var $03={};$03.start=$01;$03.end=end;$03.days=$q;$03.day=$y;$02.commandCallBack($b.command,$03);};break;case 'None':break;case 'PostBack':$b.timeRangeSelectedPostBack($01,end,$y);break;};if(typeof $b.onTimeRangeSelected==='function'){$b.onTimeRangeSelected($H);}}else{switch($b.timeRangeSelectedHandling){case 'Bind':var $02=DayPilot.Util.evalVariable($b.bound);if($02){var $03={};$03.start=$01;$03.end=end;$03.days=$q;$03.day=$y;$02.commandCallBack($b.command,$03);};break;case 'JavaScript':$b.onTimeRangeSelected($01,end,$y);break;case 'None':break;case 'PostBack':$b.timeRangeSelectedPostBack($01,end,$y);break;}}};this.timeRangeSelectedPostBack=function($01,end,$U,$y){var $04={};$04.start=$01;$04.end=end;$04.day=$y;this.$0Q('TimeRangeSelected',$U,$04);};this.$0t=function(ev){$b.$0S($b.skipMonths);};this.$0s=function(ev){$b.$0S(-$b.skipMonths);};this.$0S=function(i){this.startDate=this.startDate.addMonths(i);this.$0o();this.$0k();this.$0H();this.$0D();this.$0J();this.$0C();};this.$0F=function(){return $b.startDate.firstDayOfMonth();};this.$0G=function(){return $b.startDate.firstDayOfMonth().addMonths(this.showMonths);};this.visibleStart=function(){return $b.startDate.firstDayOfMonth().firstDayOfWeek($c.weekStarts());};this.visibleEnd=function(){return $b.startDate.firstDayOfMonth().addMonths(this.showMonths-1).firstDayOfWeek($c.weekStarts()).addDays(42);};this.$0J=function(){var $01=this.visibleStart();var end=this.visibleEnd();if($b.$0n()){var $H={};$H.start=$01;$H.end=end;$H.preventDefault=function(){this.preventDefault.value=true;};if(typeof $b.onVisibleRangeChange==='function'){$b.onVisibleRangeChange($H);if($H.preventDefault.value){return;}};switch(this.visibleRangeChangedHandling){case "CallBack":this.visibleRangeChangedCallBack(null);break;case "PostBack":this.visibleRangeChangedPostBack(null);break;case "Disabled":break;};if(typeof $b.onVisibleRangeChanged==='function'){$b.onVisibleRangeChanged($H);}}else{switch(this.visibleRangeChangedHandling){case "CallBack":this.visibleRangeChangedCallBack(null);break;case "PostBack":this.visibleRangeChangedPostBack(null);break;case "JavaScript":this.onVisibleRangeChanged($01,end);break;case "Disabled":break;}}};this.visibleRangeChangedCallBack=function($U){var $V={};this.$0L("Visible",$U,$V);};this.visibleRangeChangedPostBack=function($U){var $V={};this.$0Q("Visible",$U,$V);};this.$0P=function($05,$Y){var $05=DayPilot.Util.parseJSON($05);$b.items=$05.Items;$b.cells=$05.Cells;$b.$0C();};this.$0H=function(){for(var j=0;j<this.showMonths;j++){var $i=this.$0T(j);this.$0r(j,$i);};this.root.style.height=this.$0U()+"px";};this.$0U=function(){if(this.orientation==="Horizontal"){var $06=0;for(var i=0;i<this.months.length;i++){var $j=this.months[i];if($j.height>$06){$06=$j.height;}};return $06;}else{var $07=0;for(var i=0;i<this.months.length;i++){var $j=this.months[i];$07+=$j.height;};return $07;}};this.$0T=function(j){if(this.internal.showLinks){return this.internal.showLinks;};var $i={};$i.left=(j===0);$i.right=(j===0);$i.before=j===0;$i.after=j===this.showMonths-1;if(this.orientation==="Horizontal"){$i.right=(j===this.showMonths-1);};return $i;};this.$0V={};this.$0V.scope=null;this.$0V.notify=function(){if($b.$0V.scope){$b.$0V.scope["$apply"]();}};this.internal={};this.internal.initialized=function(){return $b.$0W;};this.$0X={};var $c=this.$0X;$c.locale=function(){return DayPilot.Locale.find($b.locale);};$c.weekStarts=function(){if($b.weekStarts==='Auto'){var $08=$c.locale();if($08){return $08.weekStarts;}else{return 0;}}else{return $b.weekStarts;}};$c.cellWidth=function(){if($b.$0j.cellWidth){return $b.$0j.cellWidth;};var $t=$b.$0Y("_cell_dimensions").width;if(!$t){$t=$b.cellWidth;};$b.$0j.cellWidth=$t;return $t;};this.clearSelection=function(){for(var j=0;j<this.selected.length;j++){var $K=this.selected[j];$b.$0B($K.parentNode,$K.x,$K.y);};this.selected=[];};this.$0Z=function(){if(this.backendUrl){return(typeof $b.items==='undefined')||(!$b.items);}else{return false;}};this.events={};this.$0K=function(){if(!DayPilot.isArray(this.events.list)){return;};this.items={};for(var i=0;i<this.events.list.length;i++){var e=this.events.list[i];var $q=this.$10(e);for(var name in $q){this.items[name]=1;}}};this.$0Y=function($09){var $K=document.createElement("div");$K.style.position="absolute";$K.style.top="-2000px";$K.style.left="-2000px";$K.className=this.$0l($09);var $0a=$b.root||document.body;$0a.appendChild($K);var $u=$K.offsetHeight;var $t=$K.offsetWidth;$0a.removeChild($K);var $05={};$05.height=$u;$05.width=$t;return $05;};this.$10=function(e){var $01=new DayPilot.Date(e.start);var end=new DayPilot.Date(e.end);var $q={};var d=$01.getDatePart();while(d.getTime()<end.getTime()){$q[d.toStringSortable()]=1;d=d.addDays(1);};return $q;};this.show=function(){$b.visible=true;$b.root.style.display='';};this.hide=function(){$b.visible=false;$b.root.style.display='none';};this.$11=function(){if(this.id&&this.id.tagName){this.nav.top=this.id;}else if(typeof this.id==="string"){this.nav.top=document.getElementById(this.id);if(!this.nav.top){throw "DayPilot.Navigator: The placeholder element not found: '"+id+"'.";}}else{throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";};this.root=this.nav.top;};this.init=function(){this.$11();if(this.root.dp){return;};if(!$b.cssOnly){$b.cssOnly=true;DayPilot.Util.log("DayPilot: cssOnly = false mode is not supported since DayPilot Pro 8.0.");};this.$0E();this.$0k();this.$0H();this.$0K();this.$0C();this.$12();var $0b=this.$0Z();if($0b){this.$0J();};this.$0W=true;};this.dispose=function(){var c=$b;if(!c.root){return;};c.root.removeAttribute("style");c.root.removeAttribute("class");c.root.dp=null;c.root.innerHTML=null;c.root=null;};this.$12=function(){this.root.dispose=this.dispose;};this.Init=this.init;};DayPilot.NavigatorVisible.Navigator=DayPilotNavigator.Navigator;if(typeof jQuery!=='undefined'){(function($){$.fn.daypilotNavigator=function($a){var $o=null;var j=this.each(function(){if(this.daypilot){return;};var $0c=new DayPilot.Navigator(this.id);this.daypilot=$0c;for(var name in $a){$0c[name]=$a[name];};$0c.Init();if(!$o){$o=$0c;}});if(this.length===1){return $o;}else{return j;}};})(jQuery);};(function registerAngularModule(){var $0d=DayPilot.am();if(!$0d){return;};$0d.directive("daypilotNavigator",function(){return{"restrict":"E","template":"<div id='{{id}};'></div>","compile":function compile(element,$0e){element.replaceWith(this["template"].replace("{{id}};",$0e["id"]));return function link($0f,element,$0e){var $b=new DayPilot.Navigator(element[0]);$b.$0V.scope=$0f;$b.init();var $0g=$0e["id"];if($0g){$0f[$0g]=$b;};var $0h=$0f["$watch"];$0h.call($0f,$0e["daypilotConfig"],function($0i){for(var name in $0i){$b[name]=$0i[name];};$b.update();},true);$0h.call($0f,$0e["daypilotEvents"],function($0i){$b.events.list=$0i;$b.$0K();$b.$0C();},true);};}};});})();if(typeof Sys!=='undefined'&&Sys.Application&&Sys.Application.notifyScriptLoaded){Sys.Application.notifyScriptLoaded();}})();
  
  
  if(typeof DayPilot==='undefined'){var DayPilot={};};if(typeof DayPilot.Global==='undefined'){DayPilot.Global={};};if(typeof DayPilotScheduler==='undefined'){var DayPilotScheduler=DayPilot.SchedulerVisible={};};(function(){if(typeof DayPilot.Scheduler!=='undefined'){return;};var $a=(function(){var $b=navigator.userAgent;return(($b.indexOf('Mozilla/5.0')>-1&&$b.indexOf('Android ')>-1&&$b.indexOf('AppleWebKit')>-1)&&!($b.indexOf('Chrome')>-1));})();var DayPilotScheduler={};var $c=function(){};var debug=false;var $d=function($e){if(!debug){return;};window.console&&window.console.log($e);};var $f=function($e){if(typeof $g==="undefined"){return;};$d($e);};var console={"log":$d};DayPilot.Scheduler=function(id,$h){this.v='1925';var $i=this;this.id=id;this.isScheduler=true;this.hideUntilInit=true;this.api=2;this.allowDefaultContextMenu=false;this.allowEventOverlap=true;this.allowMultiMove=false;this.allowMultiRange=false;this.allowMultiResize=false;this.allowMultiSelect=true;this.multiSelectRectangle="Disabled";this.autoRefreshCommand='refresh';this.autoRefreshEnabled=false;this.autoRefreshInterval=60;this.autoRefreshMaxCount=20;this.autoScroll="Drag";this.blockOnCallBack=false;this.businessBeginsHour=9;this.businessEndsHour=18;this.businessWeekends=false;this.cellDuration=60;this.cellGroupBy='Day';this.cellWidth=40;this.cellWidthMin=1;this.cellWidthSpec="Fixed";this.groupConcurrentEvents=false;this.groupConcurrentEventsLimit=1;this.$8W=true;this.$8X=false;this.cellSweeping=true;this.cellSweepingCacheSize=1000;this.crosshairColor='Gray';this.crosshairOpacity=20;this.crosshairType='Header';this.$8Y=false;this.doubleClickTimeout=300;this.dragOutAllowed=false;this.durationBarHeight=3;this.durationBarVisible=true;this.durationBarMode="Duration";this.durationBarDetached=false;this.days=1;this.drawBlankCells=true;this.dynamicEventRendering='Progressive';this.dynamicEventRenderingMargin=50;this.dynamicEventRenderingMarginX=null;this.dynamicEventRenderingMarginY=null;this.dynamicEventRenderingCacheSweeping=false;this.dynamicEventRenderingCacheSize=200;this.dynamicLoading=false;this.eventBorderColor="#000000";this.eventBorderVisible=true;this.eventBackColor="#FFFFFF";this.eventEndSpec="DateTime";this.eventFontFamily="Tahoma, Arial";this.eventFontSize='8pt';this.eventFontColor='#000000';this.eventHeight=25;this.eventMoveMargin=5;this.eventMoveToPosition=false;this.eventResizeMargin=5;this.eventStackingLineHeight=100;this.eventTapAndHoldHandling="Move";this.eventTextWrappingEnabled=false;this.$8Z=false;this.headerFontColor="#000000";this.headerFontFamily="Tahoma, Arial";this.headerFontSize='8pt';this.headerHeight=20;this.heightSpec='Auto';this.hideBorderFor100PctHeight=false;this.hourFontFamily="Tahoma, Arial";this.hourFontSize='10pt';this.hourNameBackColor="#ECE9D8";this.hourNameBorderColor="#ACA899";this.$90=10;this.$91=30;this.$92=true;this.layout='Auto';this.linkCreateHandling="Disabled";this.linkBottomMargin=10;this.linkPointSize=10;this.locale="en-us";this.loadingLabelText="Loading...";this.loadingLabelVisible=true;this.loadingLabelBackColor="orange";this.loadingLabelFontColor="#ffffff";this.loadingLabelFontFamily="Tahoma";this.loadingLabelFontSize="10pt";this.messageHideAfter=5000;this.messageHideOnMouseOut=true;this.multiMoveVerticalMode="Disabled";this.moveBy='Full';this.notifyCommit='Immediate';this.numberFormat="0.00";this.progressiveRowRendering=true;this.progressiveRowRenderingPreload=25;this.tapAndHoldTimeout=300;this.timeHeaders=[{"groupBy":"Default"},{"groupBy":"Cell"}];this.treePreventParentUsage=false;this.treeAutoExpand=true;this.rowHeaderHideIconEnabled=false;this.rowHeaderWidth=80;this.rowHeaderScrolling=false;this.rowHeaderSplitterWidth=3;this.rowHeaderWidthAutoFit=true;this.rowHeaderCols=null;this.rowMarginBottom=0;this.rowMarginTop=0;this.rowMinHeight=0;this.scale="CellDuration";this.scrollDelayDynamic=500;this.scrollDelayEvents=200;this.scrollDelayCells=0;this.scrollDelayFloats=0;this.scrollX=0;this.scrollY=0;this.selectedRows=[];this.shadow="Fill";this.showBaseTimeHeader=true;this.showNonBusiness=true;this.showToolTip=true;this.snapToGrid=true;this.startDate=new DayPilot.Date().getDatePart();this.syncResourceTree=false;this.timeBreakColor='#000000';this.timeHeaderTextWrappingEnabled=false;this.treeEnabled=false;this.treeIndent=20;this.treeImageMarginLeft=5;this.treeImageMarginTop=5;this.timeFormat="Auto";this.useEventBoxes='Always';this.viewType='Resources';this.visible=true;this.weekStarts='Auto';this.width=null;this.floatingEvents=true;this.floatingTimeHeaders=true;this.eventCorners='Regular';this.separators=[];this.cornerHtml='';this.$93=-1;this.$94=-1;this.eventClickHandling='Enabled';this.eventDeleteHandling="Disabled";this.eventHoverHandling='Bubble';this.eventDoubleClickHandling='Disabled';this.eventEditHandling='Update';this.eventMoveHandling='Update';this.eventResizeHandling='Update';this.eventRightClickHandling='ContextMenu';this.eventSelectHandling='Update';this.rowClickHandling='Enabled';this.rowDoubleClickHandling="Disabled";this.rowCreateHandling="Disabled";this.rowEditHandling='Update';this.rowHeaderColumnResizedHandling="Update";this.rowSelectHandling='Update';this.rowMoveHandling="Disabled";this.timeRangeDoubleClickHandling='Disabled';this.timeRangeSelectedHandling='Enabled';this.eventMovingStartEndEnabled=false;this.eventMovingStartEndFormat="MMMM d, yyyy";this.timeRangeSelectingStartEndEnabled=false;this.timeRangeSelectingStartEndFormat="MMMM d, yyyy";this.eventResizingStartEndEnabled=false;this.eventResizingStartEndFormat="MMMM d, yyyy";this.cssOnly=true;this.cssClassPrefix="scheduler_default";this.eventVersionsEnabled=false;this.eventVersionHeight=25;this.eventVersionMargin=2;this.backendUrl=null;if($i.api===1){this.onEventMove=function(){};this.onEventResize=function(){};this.onResourceExpand=function(){};this.onResourceCollapse=function(){};};this.onBeforeTimeHeaderRender=null;this.onEventMove=null;this.onEventMoved=null;this.onEventMoving=null;this.onEventResize=null;this.onEventResized=null;this.onEventResizing=null;this.onEventMouseOver=null;this.onEventMouseOut=null;this.onTimeRangeSelect=null;this.onTimeRangeSelected=null;this.onTimeRangeSelecting=null;this.onRowHeaderResized=null;this.onBeforeCellRender=null;this.onCellMouseOver=null;this.onCellMouseOut=null;this.onRectangleEventSelecting=null;this.onRectangleEventSelect=null;this.onRectangleEventSelected=null;this.$95=0;this.$96=0;this.rowlist=DayPilot.list();this.itline=DayPilot.list();this.timeline=null;this.events={};this.cells={};this.elements={};this.elements.events=[];this.elements.bars=[];this.elements.text=[];this.elements.cells=[];this.elements.linesVertical=[];this.elements.separators=[];this.elements.range=[];this.elements.breaks=[];this.elements.links=[];this.elements.linkpoints=[];this.elements.rectangle=[];this.$97={};this.$97.cells=[];this.$97.linesVertical={};this.$97.linesHorizontal={};this.$97.timeHeaderGroups=[];this.$97.timeHeader={};this.$97.pixels=[];this.$97.breaks=[];this.$97.events=[];this.clientState={};this.members={};this.members.obsolete=["Init","cleanSelection","cssClassPrefix","getHScrollPosition","setHScrollPosition","getVScrollPosition","setVScrollPosition","showBaseTimeHeader"];this.members.ignoreFilter=function(name){if(name.indexOf("div")===0){return true;};return false;};this.members.ignore=["internal","nav","debug","temp","elements","members","cellProperties","itline","rowlist","timeHeader"];this.members.noCssOnly=["borderColor","cellBackColor","cellBackColorNonBusiness","cellBorderColor","cellSelectColor","durationBarColor","eventBackColor","eventBorderColor","eventBorderVisible","eventCorners","eventFontColor","eventFontFamily","eventFontSize","headerFontColor","headerFontFamily","headerFontSize","hourFontFamily","hourFontSize","hourNameBackColor","hourNameBorderColor","loadingLabelBackColor","loadingLabelFontColor","loadingLabelFontFamily","loadingLabelFontSize","shadow","timeBreakColor"];this.nav={};this.$98=function($j,$k){var $j=DayPilot.Util.parseJSON($j);$i.onScrollCalled=false;if(typeof $i.onCallBackResult==="function"){var $l={};$l.result=$j;$l.preventDefault=function(){$l.preventDefault.value=true;};$i.onCallBackResult($l);if($l.preventDefault.value){$i.$99();$i.$9a();$i.$9b();if($j.Message){if($i.message){$i.message($j.Message);}};$i.$9c($j.CallBackData,true);$i.$9d();$i.$9e();return;}};if($j.BubbleGuid){var $m=$j.BubbleGuid;var $n=this.bubbles[$m];delete this.bubbles[$m];$i.$9a();if(typeof $j.Result.BubbleHTML!=='undefined'&&$n){$n.updateView($j.Result.BubbleHTML,$n);};$i.$9d();return;};if($j.CallBackRedirect){document.location.href=$j.CallBackRedirect;return;};if(typeof DayPilot.Bubble!=="undefined"){DayPilot.Bubble.hideActive();};if(typeof $j.ClientState!=='undefined'){if($j.ClientState===null){$i.clientState={};}else{$i.clientState=$j.ClientState;}};if($j.UpdateType==="None"){$i.$9a();$i.$9d();if($j.Message){$i.message($j.Message);};$i.$9c($j.CallBackData,true);return;};if($j.VsUpdate){var $o=document.createElement("input");$o.type='hidden';$o.name=$i.id+"_vsupdate";$o.id=$o.name;$o.value=$j.VsUpdate;$i.$9f.innerHTML='';$i.$9f.appendChild($o);};if(typeof $j.TagFields!=='undefined'){$i.tagFields=$j.TagFields;};if(typeof $j.SortDirections!=='undefined'){$i.sortDirections=$j.SortDirections;};$i.$97.drawArea=null;if($j.UpdateType==="Full"){$i.resources=$j.Resources;$i.colors=$j.Colors;$i.palette=$j.Palette;$i.dirtyColors=$j.DirtyColors;$i.cellProperties=$j.CellProperties;$i.cellConfig=$j.CellConfig;$i.separators=$j.Separators;$i.timeline=$j.Timeline;$i.timeHeader=$j.TimeHeader;$i.timeHeaders=$j.TimeHeaders;if(typeof $j.Links!=="undefined"){$i.links.list=$j.Links;};if(typeof $j.RowHeaderColumns!=='undefined')$i.rowHeaderColumns=$j.RowHeaderColumns;$i.startDate=$j.StartDate?new DayPilot.Date($j.StartDate):$i.startDate;$i.days=$j.Days?$j.Days:$i.days;$i.cellDuration=$j.CellDuration?$j.CellDuration:$i.cellDuration;$i.cellGroupBy=$j.CellGroupBy?$j.CellGroupBy:$i.cellGroupBy;$i.cellWidth=$j.CellWidth?$j.CellWidth:$i.cellWidth;$i.viewType=$j.ViewType?$j.ViewType:$i.viewType;$i.hourNameBackColor=$j.HourNameBackColor?$j.HourNameBackColor:$i.hourNameBackColor;if(typeof $j.ShowNonBusiness!=='undefined')$i.showNonBusiness=$j.ShowNonBusiness;$i.businessBeginsHour=$j.BusinessBeginsHour?$j.BusinessBeginsHour:$i.businessBeginsHour;$i.businessEndsHour=$j.BusinessEndsHour?$j.BusinessEndsHour:$i.businessEndsHour;if(typeof $j.DynamicLoading!=='undefined')$i.dynamicLoading=$j.DynamicLoading;if(typeof $j.TreeEnabled!=='undefined')$i.treeEnabled=$j.TreeEnabled;$i.backColor=$j.BackColor?$j.BackColor:$i.backColor;$i.nonBusinessBackColor=$j.NonBusinessBackColor?$j.NonBusinessBackColor:$i.nonBusinessBackColor;$i.locale=$j.Locale?$j.Locale:$i.locale;if(typeof $j.TimeZone!=='undefined')$i.timeZone=$j.TimeZone;$i.timeFormat=$j.TimeFormat?$j.TimeFormat:$i.timeFormat;$i.rowHeaderCols=$j.RowHeaderCols?$j.RowHeaderCols:$i.rowHeaderCols;if(typeof $j.DurationBarMode!=="undefined")$i.durationBarMode=$j.DurationBarMode;$i.cornerBackColor=$j.CornerBackColor?$j.CornerBackColor:$i.cornerBackColor;if(typeof $j.CornerHTML!=='undefined'){$i.cornerHtml=$j.CornerHTML;};$i.hashes=$j.Hashes;$i.$9g();$i.$9h();$i.$9i();$i.$9j();};if($j.Action!=="Scroll"){$i.$9k($j.Events);};if($j.UpdateType==='Full'){$i.$9l();$i.$9m();};$i.$9n();$i.$9o();$i.$9p();$i.$97.drawArea=null;if($j.Action!=="Scroll"){$i.$9q();$i.$9r();if($i.heightSpec==='Auto'||$i.heightSpec==='Max'){$i.$9s();};$i.$9t();$i.$9u();$i.$9v();$i.multiselect.clear(true);$i.multiselect.$9w($j.SelectedEvents);$i.$9x();$i.$9y();$i.$9z();}else{$i.multiselect.clear(true);$i.multiselect.$9w($j.SelectedEvents);$i.$9A($j.Events);};if($i.timeRangeSelectedHandling!=="HoldForever"){$i.$9B();};if($j.UpdateType==="Full"){$i.setScroll($j.ScrollX,$j.ScrollY);$i.$9C();};$i.$9D();$i.$99();if($j.SelectedRows){$i.$9E($j.SelectedRows);};$i.$9a();if($j.UpdateType==='Full'&&navigator.appVersion.indexOf("MSIE 7.")!==-1){window.setTimeout(function(){$i.$9l();$i.$9s();},0);};$i.$9b();if($j.Message){if($i.message){$i.message($j.Message);}};$i.$9c($j.CallBackData,true);$i.$9d();$i.$9e();if($j.UpdateType==='Full'&&$j.Action!=="Scroll"&&!$i.onScrollCalled){setTimeout(function(){$i.$9F();},0);}};this.$99=function(){if($i.todo){if($i.todo.del){var $p=$i.todo.del;$p.parentNode.removeChild($p);$i.todo.del=null;}}};this.$9c=function($q,$r){var $s=function($q,$t){return function(){if($i.$9G()){if(typeof $i.onAfterRender==='function'){var $l={};$l.isCallBack=$t;$l.data=$q;$i.onAfterRender($l);}}else{if($i.afterRender){$i.afterRender($q,$t);}}};};window.setTimeout($s($q,$r),0);};this.scrollTo=function($u,$v,$w){if(!$u){return;};var $x;if($u instanceof DayPilot.Date){$x=this.getPixels($u).left;}else if(typeof $u==="string"){$x=this.getPixels(new DayPilot.Date($u)).left;}else if(typeof $u==="number"){$x=$u;}else{throw "Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object";};var $y=this.$9H.clientWidth;var $z=this.nav.scroll.clientWidth;$w=$w||"left";switch($w.toLowerCase()){case "left":break;case "middle":$x-=$z/2;break;case "right":$x-=$z;break;};if($x<0){$x=0;};if($x>$y-$z){$x=$y-$z;};if(!$v){this.setScrollX($x);return;};var $A=Math.abs($i.nav.scroll.scrollLeft-$x);var $B=$A/$y;var $C=50;if(typeof $v==="number"){$C=$v;}else if(typeof $v==="string"){switch($v){case "fast":$C=30;break;case "normal":$C=50;break;case "slow":$C=100;break;case "linear":$C=Math.floor(100*$B);break;}};if($B>.6){$C=Math.min($C,80);};this.$9I($x,$C);};this.$9I=function($x,$C){var $D={};$D.steps=[];$D.index=0;$D.delay=10;$D.next=function(){var $E=$D.steps[$D.index];$D.index+=1;return $E;};$D.finished=function(){$i.$9F();};var $F=$i.getScrollX();var $C=$C||100;var $G=$x-$F;for(var i=0;i<$C;i++){var x=i/$C;var $H=((x-.5)*2)/(Math.pow(((x-0.5)*2),2)+1)+.5;$D.steps.push($F+$G*$H);};$D.steps.push($x);scrollStep($D);function scrollStep($D){var $E=$D.next();if(typeof $E==="undefined"){$D.finished&&$D.finished();return;};$i.setScrollX($E);window.clearTimeout($i.refreshTimeout);setTimeout(function(){scrollStep($D);},$D.delay);};};this.scrollToResource=function(id){DayPilot.complete(function(){var $I=$i.$9J(id);if(!$I){return;};setTimeout(function(){var scrollY=$I.top;$i.nav.scroll.scrollTop=scrollY;},100);});};this.$9K=function(){if(!this.cssOnly){return;};if(!this.floatingTimeHeaders){return;};if(!this.timeHeader){return;};var $J=this.$9L();if(!$J){return;};this.$9M();var $K=$J.pixels.left+$L.shiftX;var end=$J.pixels.right+$L.shiftX;var $M=[];for(var y=0;y<this.timeHeader.length;y++){for(var x=0;x<this.timeHeader[y].length;x++){var h=this.timeHeader[y][x];var $N=h.left;var $O=h.left+h.width;var $P=null;if($N<$K&&$K<$O){$P={};$P.x=x;$P.y=y;$P.marginLeft=$K-$N;$P.marginRight=0;$P.div=this.$97.timeHeader[x+"_"+y];$M.push($P);};if($N<end&&end<$O){if(!$P){$P={};$P.x=x;$P.y=y;$P.marginLeft=0;$P.div=this.$97.timeHeader[x+"_"+y];$M.push($P);};$P.marginRight=$O-end;break;}}};for(var i=0;i<$M.length;i++){var $P=$M[i];this.$9N($P.div,$P.marginLeft,$P.marginRight);}};this.$9D=function(){this.$9K();this.$9O();};this.$9P={};var $Q=this.$9P;$Q.eventsInRectangle=function(x,y,$z,$R){var $S=x;var $T=x+$z;var $U=y;var $V=y+$R;return DayPilot.list($i.elements.events).filter(function(e){var $q=e.event;var $N=$q.part.left;var $O=$q.part.left+$q.part.width;var $I=$i.rowlist[$q.part.dayIndex];var top=$I.top+$q.part.top;var $W=top+$q.part.height;if(DayPilot.Util.overlaps($N,$O,$S,$T)&&DayPilot.Util.overlaps(top,$W,$U,$V)){return true;}});};$Q.events=function($X){var $Y=[];var $X=$X||"All";var $J=$i.$9L();if(!$J){return DayPilot.list($Y);};var $K=$J.pixels.left;var end=$J.pixels.right;for(var i=0;i<$i.elements.events.length;i++){var e=$i.elements.events[i];var $q=e.event;var $N=$q.part.left;var $O=$q.part.left+$q.part.width;switch($X){case "Left":if($N<$K&&$K<$O){$Y.push(e);};break;case "All":if(DayPilot.Util.overlaps($N,$O,$K,end)){$Y.push(e);};break;}};return DayPilot.list($Y).addProps({"area":$J});};this.$9O=function(){if(!this.cssOnly){return;};if(!this.floatingEvents){return;};var $Z=$Q.events("Left");this.$9Q();$Z.each(function($00){var $N=$Z.area.pixels.left;var $q=$00.event;var $K=$q.part.left;var $01=$N-$K;$i.$9R($00,$01,0);});};this.elements.sections=[];this.elements.hsections=[];this.$9N=function($02,$01,$03){var $04=document.createElement("div");$04.setAttribute("unselectable","on");$04.className=this.$9S("_timeheader_float");$04.style.position="absolute";$04.style.left=$01+"px";$04.style.right=$03+"px";$04.style.top="0px";$04.style.bottom="0px";$04.style.overflow="hidden";var $05=document.createElement("div");$05.className=this.$9S("_timeheader_float_inner");$05.setAttribute("unselectable","on");$05.innerHTML=$02.cell.th.innerHTML;$04.appendChild($05);$02.section=$04;$02.insertBefore($04,$02.firstChild.nextSibling);$02.firstChild.innerHTML='';this.elements.hsections.push($02);};this.$9M=function(){for(var i=0;i<this.elements.hsections.length;i++){var e=this.elements.hsections[i];var $q=e.cell;if($q&&e.firstChild){e.firstChild.innerHTML=$q.th.innerHTML;};DayPilot.de(e.section);e.section=null;};this.elements.hsections=[];};this.$9R=function($02,$01,$03){var $04=document.createElement("div");$04.setAttribute("unselectable","on");$04.className=this.$9S("_event_float");$04.style.position="absolute";$04.style.left=$01+"px";$04.style.right=$03+"px";$04.style.top="0px";$04.style.bottom="0px";$04.style.overflow="hidden";var $05=document.createElement("div");$05.className=this.$9S("_event_float_inner");$05.setAttribute("unselectable","on");$05.innerHTML=$02.event.client.html();if($02.event.data.fontColor){$05.style.color=$02.event.data.fontColor;};$04.appendChild($05);$02.section=$04;$02.insertBefore($04,$02.firstChild.nextSibling);$02.firstChild.innerHTML='';var $h={"offsetX":parseInt(new DayPilot.StyleReader($05).get("padding-left"))};DayPilot.Areas.attach($04,$02.event,$h);DayPilot.Areas.disable($02);this.elements.sections.push($02);};this.$9Q=function(){for(var i=0;i<this.elements.sections.length;i++){var e=this.elements.sections[i];var $q=e.event;if($q){e.firstChild.innerHTML=$q.client.html();};DayPilot.de(e.section);DayPilot.Areas.enable(e);e.section=null;};this.elements.sections=[];};this.setScrollX=function(scrollX){var scroll=$i.nav.scroll;var $06=$i.$9T()*$i.cellWidth;if(scroll.clientWidth+scrollX>$06){scrollX=$06-scroll.clientWidth;};$i.divTimeScroll.scrollLeft=scrollX;scroll.scrollLeft=scrollX;};this.setScrollY=function(scrollY){var scroll=$i.nav.scroll;var $07=$i.$96;if(scroll.clientHeight+scrollY>$07){scrollY=$07-scroll.clientHeight;};$i.divResScroll.scrollTop=scrollY;scroll.scrollTop=scrollY;};this.setScroll=function(scrollX,scrollY){$i.setScrollX(scrollX);$i.setScrollY(scrollY);};this.message=function($08,$09){if($08===null){return;};var $h={};if(typeof arguments[1]==="object"){$h=arguments[1];$09=$h.delay;};var $09=$09||this.messageHideAfter||2000;var top=this.$9U()+1;var $N=this.$9V()+$0a.splitterWidth();var $O=DayPilot.sw($i.nav.scroll)+1;var $W=DayPilot.sh($i.nav.scroll)+1;var $02;if(!this.nav.message){$02=document.createElement("div");$02.style.position="absolute";$02.style.left=$N+"px";$02.style.right=$O+"px";$02.style.display='none';DayPilot.re($02,DayPilot.touch.start,function(e){$i.nav.message.style.display='none';e.preventDefault();e.stopPropagation();});$02.onmousemove=function(){if(!$i.messageHideOnMouseOut){return;};if($02.messageTimeout&&!$02.status){clearTimeout($02.messageTimeout);}};$02.onmouseout=function(){if(!$i.messageHideOnMouseOut){return;};if($i.nav.message.style.display!=='none'){$02.messageTimeout=setTimeout($i.$9W,500);}};var $05=document.createElement("div");$05.onclick=function(){$i.nav.message.style.display='none';};$05.className=this.$9S("_message");$02.appendChild($05);var close=document.createElement("div");close.style.position="absolute";close.className=this.$9S("_message_close");close.onclick=function(){$i.nav.message.style.display='none';};$02.appendChild(close);this.nav.top.appendChild($02);this.nav.message=$02;}else{$02=$i.nav.message;};var $0b=function(){var $02=$i.nav.message;if($h.cssClass){DayPilot.Util.addClass($02.firstChild,$h.cssClass);};var $05=$i.nav.message.firstChild;$05.innerHTML=$08;var $O=DayPilot.sw($i.nav.scroll)+1;$i.nav.message.style.right=$O+"px";var $w=$i.messageBarPosition||"Top";if($w==="Bottom"){$i.nav.message.style.bottom=$W+"px";$i.nav.message.style.top="";}else if($w==="Top"){$i.nav.message.style.bottom="";$i.nav.message.style.top=top+"px";};var end=function(){$02.messageTimeout=setTimeout($i.$9W,$09);};DayPilot.fade($i.nav.message,0.2,end);};clearTimeout($02.messageTimeout);if(this.nav.message.style.display!=='none'){DayPilot.fade($i.nav.message,-0.2,$0b);}else{$0b();}};this.$9W=function(){if(!$i.nav.message){return;};var end=function(){$i.nav.message.style.display='none';};DayPilot.fade($i.nav.message,-0.2,end);};this.message.show=function($08){$i.message($08);};this.message.hide=function(){$i.$9W();};this.$9X=null;this.$9s=function(){if(this.nav.scroll){var $0c=1;if(this.$9X!==null){this.nav.top.style.border=this.$9X;this.$9X=null;};if(this.heightSpec==='Parent100Pct'){this.nav.top.style.height="100%";if(this.hideBorderFor100PctHeight){this.$9X=this.nav.top.style.border;this.nav.top.style.border="0 none";};this.height=parseInt(this.nav.top.clientHeight,10)-(this.$9U())-$0c;};this.nav.scroll.style.height='30px';var $R=this.$9Y();var $0d=$R+this.$9U()+$0c;if($R>=0){this.nav.scroll.style.height=($R)+'px';this.$9Z.style.height=($R)+'px';};if(this.nav.divider){if(!$0d||isNaN($0d)||$0d<0){$0d=0;};this.nav.divider.style.height=($0d)+"px";};if(this.heightSpec!=="Parent100Pct"){this.nav.top.style.height=($0d)+"px";};if($i.nav.resScrollSpace){$i.nav.resScrollSpace.style.height=($R+20)+"px";};for(var i=0;i<this.elements.separators.length;i++){this.elements.separators[i].style.height=this.$96+'px';};for(var i=0;i<this.elements.linesVertical.length;i++){this.elements.linesVertical[i].style.height=this.$96+'px';}}};this.$9h=function(){this.startDate=new DayPilot.Date(this.startDate).getDatePart();this.$97.pixels=[];this.itline=DayPilot.list();var $0e=this.cellWidthSpec==="Auto";var $0f=function(){if(!$0e){return;};var $0g=0;if($i.timeHeader){if($i.timeline){$0g=$i.timeline.length;}else{}}else{if($i.scale==="Manual"){$0g=$i.timeline.length;}else{$i.$a0();$0g=$i.itline.length;$i.itline=DayPilot.list();}};var $z=$i.$a1();if($0g>0&&$z>0){$i.cellWidth=$z/$0g;}};$0f();if(this.$a2()&&this.timeline){if(this.timeline){this.itline=DayPilot.list();var $0h=null;var $N=0;for(var i=0;i<this.timeline.length;i++){var $0i=this.timeline[i];var $P={};$P.start=new DayPilot.Date($0i.start);$P.end=$0i.end?new DayPilot.Date($0i.end):$P.start.addMinutes(this.cellDuration);if(!$0i.width){var $O=Math.floor($N+this.cellWidth);var $z=$O-Math.floor($N);$P.left=Math.floor($N);$P.width=$z;$N+=this.cellWidth;}else{$P.left=$0i.left||$N;$P.width=$0i.width||this.cellWidth;$N+=$P.width;};$P.breakBefore=$0h&&$0h.ticks!==$P.start.ticks;$0h=$P.end;this.itline.push($P);}};if($0e){this.$a3();}}else{this.timeHeader=[];if(this.scale==="Manual"){this.itline=DayPilot.list();var $N=0;var $0h=null;for(var i=0;i<this.timeline.length;i++){var $0i=this.timeline[i];var $P={};$P.start=new DayPilot.Date($0i.start);$P.end=$0i.end?new DayPilot.Date($0i.end):$P.start.addMinutes(this.cellDuration);var w=$0i.width||this.cellWidth;var $O=Math.floor($N+w);var $z=$O-Math.floor($N);$P.left=Math.floor($N);$P.width=$z;$N+=w;$P.breakBefore=$0h&&$0h.ticks!==$P.start.ticks;$0h=$P.end;this.itline.push($P);}}else{this.$a0();};this.$a4();}};this.$a5={};var $L=this.$a5;$L.shiftX=0;$L.active=false;$L.updateRowStarts=function(){DayPilot.list($i.rowlist).each(function($I,i){$I.start=$i.$a6();$I.data=null;$i.$a7(i);});};$L.isEnabled=function(){return $i.temp.infiniteScrolling;};$L.shiftTo=function($0j){var $0j=new DayPilot.Date($0j);var $K=$0j.addDays(-$i.$91).getDatePart();var $G=new DayPilot.Duration($K.getTime()-$i.startDate.getDatePart().getTime()).totalDays();$L.shiftStart($G,$0j);};$L.shiftStart=function($0k,scrollTo){var $x;$L.active=true;var $0l=$i.startDate;var $0m=$i.startDate.addDays($0k);if($0k>0){$x=-$i.getPixels($0m).left;};$i.startDate=$i.startDate.addDays($0k);$i.itline=DayPilot.list();$i.$97.pixels=[];$i.$a0();$L.updateRowStarts();if($0k<0){$x=$i.getPixels($0l).left;};$i.timeHeader=[];$i.$a4();$i.$9m();$i.cellProperties={};$i.$9t();$i.$9v();$i.$9k();$i.$9u();if(typeof scrollTo!=='undefined'){$i.scrollTo(new DayPilot.Date(scrollTo));$i.$9F();}else{$i.nav.scroll.scrollLeft+=$x;};$i.$9z();$L.active=false;};this.$a0=function(){var $0n=(this.viewType!=='Days')?this.startDate.addDays(this.days):this.startDate.addDays(1);var $K=this.startDate;var end=this.$a8($K);var $0o=false;var $N=0;while(end.ticks<=$0n.ticks&&end.ticks>$K.ticks){if(this.$a9($K,end)){var $O=Math.floor($N+this.cellWidth);var $z=$O-Math.floor($N);var $0p={};$0p.start=$K;$0p.end=end;$0p.left=Math.floor($N);$0p.width=$z;$0p.breakBefore=$0o;this.itline.push($0p);$N+=this.cellWidth;$0o=false;}else{$0o=true;};$K=end;end=this.$a8($K);}};this.$a3=function(){if(!this.timeHeader){return;};for(var y=0;y<this.timeHeader.length;y++){var $I=this.timeHeader[y];for(var x=0;x<$I.length;x++){var h=$I[x];h.left=this.getPixels(new DayPilot.Date(h.start)).left;var $O=this.getPixels(new DayPilot.Date(h.end)).left;var $z=$O-h.left;h.width=$z;}}};this.$a4=function(){var $0q=this.timeHeaders;if(!$0q){$0q=[{"groupBy":this.cellGroupBy},{"groupBy":"Cell"}];};var $0r=$i.$aa();for(var i=0;i<$0q.length;i++){var $0s=$0q[i].groupBy;var $0t=$0q[i].format;if($0s==="Default"){$0s=this.cellGroupBy;};var $0u=[];var $K=this.$a6();while($K.ticks<$0r.ticks){var h={};h.start=$K;h.end=this.$ab(h.start,$0s);if(h.start.ticks===h.end.ticks){break;};h.left=this.getPixels(h.start).left;var $O=this.getPixels(h.end).left;var $z=$O-h.left;h.width=$z;h.colspan=Math.ceil($z/(1.0*this.cellWidth));if($0t){h.innerHTML=h.start.toString($0t,$0a.locale());}else{h.innerHTML=this.$ac(h,$0s);};if($z>0){if(typeof this.onBeforeTimeHeaderRender==='function'){var $P={};$P.start=h.start;$P.end=h.end;$P.html=h.innerHTML;$P.toolTip=h.innerHTML;$P.backColor=null;if(!this.cssOnly){$P.backColor=this.hourNameBackColor;};$P.level=this.timeHeader.length;var $l={};$l.header=$P;this.onBeforeTimeHeaderRender($l);h.innerHTML=$P.html;h.backColor=$P.backColor;h.toolTip=$P.toolTip;h.areas=$P.areas;};$0u.push(h);};$K=h.end;};this.timeHeader.push($0u);}};this.$a9=function($K,end){if(typeof this.onIncludeTimeCell==='function'){var $P={};$P.start=$K;$P.end=end;$P.visible=true;var $l={};$l.cell=$P;this.onIncludeTimeCell($l);return $P.visible;};if(this.showNonBusiness){return true;};return this.isBusiness({"start":$K,"end":end});};this.getPixels=function($u){var $0v=$u.ticks;var $0w=this.$97.pixels[$0v];if($0w){return $0w;};var $0x=null;var $0y=221876841600000;if(this.itline.length===0||$0v<this.itline[0].start.ticks){var $j={};$j.cut=false;$j.left=0;$j.boxLeft=$j.left;$j.boxRight=$j.left;$j.i=null;return $j;};for(var i=0;i<this.itline.length;i++){var $P=this.itline[i];var $0z=$P.start.ticks;var $0A=$P.end.ticks;if($0z<$0v&&$0v<$0A){var $0B=$0v-$0z;var $j={};$j.cut=false;$j.left=$P.left+this.$ad($P,$0B);$j.boxLeft=$P.left;$j.boxRight=$P.left+$P.width;$j.i=i;break;}else if($0z===$0v){var $j={};$j.cut=false;$j.left=$P.left;$j.boxLeft=$j.left;$j.boxRight=$j.left+$P.width;$j.i=i;break;}else if($0A===$0v){var $j={};$j.cut=false;$j.left=$P.left+$P.width;$j.boxLeft=$j.left;$j.boxRight=$j.left;$j.i=i+1;break;}else if($0v<$0z&&$0v>$0y){var $j={};$j.cut=true;$j.left=$P.left;$j.boxLeft=$j.left;$j.boxRight=$j.left;$j.i=i;break;};$0y=$0A;};if(!$j){var $0C=this.itline[this.itline.length-1];var $j={};$j.cut=true;$j.left=$0C.left+$0C.width;$j.boxLeft=$j.left;$j.boxRight=$j.left;$j.i=null;};this.$97.pixels[$0v]=$j;return $j;};this.getDate=function($N,$0D,$0E){var $w=this.$ae($N,$0E);if(!$w){return null;};var x=$w.x;var $0F=this.itline[x];if(!$0F){return null;};var $K=($0E&&!$0D)?$0F.end:$0F.start;if(!$0D){return $K;}else{return $K.addTime(this.$af($w.cell,$w.offset));}};this.$ae=function($x,$0E){if(this.itline.length===0){return null;};var $F=0;var $0x=0;for(var i=0;i<this.itline.length;i++){var $P=this.itline[i];var $z=$P.width||this.cellWidth;$F+=$z;if(($x<$F)||($0E&&$x===$F)){var $j={};$j.x=i;$j.offset=$x-$0x;$j.cell=$P;return $j;};$0x=$F;};var $P=$i.itline.last();var $j={};$j.x=this.itline.length-1;$j.offset=$P.width||this.cellWidth;$j.cell=$P;return $j;};this.$ag=function($0G){var $F=new DayPilot.Date($0G);for(var i=0;i<this.itline.length;i++){var $P=this.itline[i];if($P.start.ticks<=$F.ticks&&$F.ticks<$P.end.ticks){var $j={};$j.hidden=false;$j.current=$P;return $j;};if($F.ticks<$P.start.ticks){var $j={};$j.hidden=true;$j.previous=i>0?this.itline[i-1]:null;$j.current=null;$j.next=this.itline[i];return $j;}};var $j={};$j.past=true;$j.previous=this.itline[this.itline.length-1];return $j;};this.$ad=function($P,$0v){var $z=$P.width||this.cellWidth;var $0H=$P.end.ticks-$P.start.ticks;return Math.floor(($z*$0v)/($0H));};this.$af=function($P,$x){var $0H=$P.end.ticks-$P.start.ticks;var $z=$P.width||this.cellWidth;return Math.floor($x/$z*$0H);};this.$ah=function(ev){if($0I.start){return;};$0J={};$i.$ai(this,ev);};this.eventClickPostBack=function(e,$q){this.$aj('EventClick',e,$q);};this.eventClickCallBack=function(e,$q){this.$ak('EventClick',e,$q);};this.$ai=function($02,ev){var e=$02.event;var ev=ev||window.event;if(typeof(DayPilotBubble)!=='undefined'){DayPilotBubble.hideActive();};if(!e.client.doubleClickEnabled()){$i.$al($02,ev);return;};if(!$i.timeouts.click){$i.timeouts.click=[];};var $0K=function($02,ev){return function(){$i.$al($02,ev);};};$i.timeouts.click.push(window.setTimeout($0K($02,ev),$i.doubleClickTimeout));};this.$am=function(x){return $i.itline[x];};this.$al=function($02,ev){if(typeof ev==="boolean"){throw "Invalid _eventClickSingle parameters";};var e=$02.event;var $0L=ev.ctrlKey;var $0M=ev.metaKey;if(!e.client.clickEnabled()){return;};if($i.$9G()){var $l={};$l.e=e;$l.div=$02;$l.originalEvent=ev;$l.ctrl=$0L;$l.meta=$0M;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onEventClick==='function'){$i.onEventClick($l);if($l.preventDefault.value){return;}};switch($i.eventClickHandling){case 'PostBack':$i.eventClickPostBack(e);break;case 'CallBack':$i.eventClickCallBack(e);break;case 'Edit':$i.$an($02);break;case 'Select':$i.$ao($02,e,$0L,$0M);break;case 'ContextMenu':var $0N=e.client.contextMenu();if($0N){$0N.show(e);}else{if($i.contextMenu){$i.contextMenu.show(e);}};break;case 'Bubble':if($i.bubble){$i.bubble.showEvent(e);};break;case "RectangleSelect":if($i.multiSelectRectangle!=="Disabled"){$0O.start();return false;};break;};if(typeof $i.onEventClicked==='function'){$i.onEventClicked($l);}}else{switch($i.eventClickHandling){case 'PostBack':$i.eventClickPostBack(e);break;case 'CallBack':$i.eventClickCallBack(e);break;case 'JavaScript':$i.onEventClick(e);break;case 'Edit':$i.$an($02);break;case 'Select':$i.$ao($02,e,$0L,$0M);break;case 'ContextMenu':var $0N=e.client.contextMenu();if($0N){$0N.show(e);}else{if($i.contextMenu){$i.contextMenu.show(e);}};break;case 'Bubble':if($i.bubble){$i.bubble.showEvent(e);};break;case "RectangleSelect":if($i.multiSelectRectangle!=="Disabled"){$0O.start();return false;};break;}}};this.$ap=function(e){if($i.$9G()){var $l={};$l.e=e;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onEventDelete==='function'){$i.onEventDelete($l);if($l.preventDefault.value){return;}};switch($i.eventDeleteHandling){case 'PostBack':$i.eventDeletePostBack(e);break;case 'CallBack':$i.eventDeleteCallBack(e);break;case 'Update':$i.events.remove(e);break;};if(typeof $i.onEventDeleted==='function'){$i.onEventDeleted($l);}}else{switch($i.eventDeleteHandling){case 'PostBack':$i.eventDeletePostBack(e);break;case 'CallBack':$i.eventDeleteCallBack(e);break;case 'JavaScript':$i.onEventDelete(e);break;}}};this.eventDeletePostBack=function(e,$q){this.$aj('EventDelete',e,$q);};this.eventDeleteCallBack=function(e,$q){this.$ak('EventDelete',e,$q);};this.setHScrollPosition=function($x){this.nav.scroll.scrollLeft=$x;};this.getScrollX=function(){return this.nav.scroll.scrollLeft;};this.getHScrollPosition=this.getScrollX;this.getScrollY=function(){return this.nav.scroll.scrollTop;};this.$ao=function($02,e,$0L,$0M){$i.$aq($02,e,$0L,$0M);};this.eventSelectPostBack=function(e,$0P,$q){var $0Q={};$0Q.e=e;$0Q.change=$0P;this.$aj('EventSelect',$0Q,$q);};this.eventSelectCallBack=function(e,$0P,$q){var $0Q={};$0Q.e=e;$0Q.change=$0P;this.$ak('EventSelect',$0Q,$q);};this.$aq=function($02,e,$0L,$0M){var m=$i.multiselect;var $0R=false;var $0S=m.isSelected(e);var $0T=$0L||$0M;if(!$0T&&$0S&&!$0R&&m.list.length===1){return;};if($i.$9G()){m.previous=m.events();var $l={};$l.e=e;$l.selected=$0S;$l.ctrl=$0L;$l.meta=$0M;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onEventSelect==='function'){$i.onEventSelect($l);if($l.preventDefault.value){return;}};switch($i.eventSelectHandling){case 'PostBack':$i.eventSelectPostBack(e,$0P);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){window.__theFormPostData="";window.__theFormPostCollection=[];WebForm_InitCallback();};$i.eventSelectCallBack(e,$0P);break;case 'Update':m.$ar($02,$0L,$0M);break;};if(typeof $i.onEventSelected==='function'){$l.change=m.isSelected(e)?"selected":"deselected";$l.selected=m.isSelected(e);$i.onEventSelected($l);}}else{m.previous=m.events();m.$ar($02,$0L,$0M);var $0P=m.isSelected(e)?"selected":"deselected";switch($i.eventSelectHandling){case 'PostBack':$i.eventSelectPostBack(e,$0P);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){window.__theFormPostData="";window.__theFormPostCollection=[];WebForm_InitCallback();};$i.eventSelectCallBack(e,$0P);break;case 'JavaScript':$i.onEventSelect(e,$0P);break;}}};this.eventRightClickPostBack=function(e,$q){this.$aj('EventRightClick',e,$q);};this.eventRightClickCallBack=function(e,$q){this.$ak('EventRightClick',e,$q);};this.$as=function(ev){var e=this.event;ev=ev||window.event;ev.cancelBubble=true;if(!this.event.client.rightClickEnabled()){return false;};if($i.$9G()){var $l={};$l.e=e;$l.div=this;$l.originalEvent=ev;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onEventRightClick==='function'){$i.onEventRightClick($l);if($l.preventDefault.value){return false;}};switch($i.eventRightClickHandling){case 'PostBack':$i.eventRightClickPostBack(e);break;case 'CallBack':$i.eventRightClickCallBack(e);break;case 'ContextMenu':var $0N=e.client.contextMenu();if($0N){$0N.show(e);}else{if($i.contextMenu){$i.contextMenu.show(this.event);}};break;case 'Bubble':if($i.bubble){$i.bubble.showEvent(e);};break;};if(typeof $i.onEventRightClicked==='function'){$i.onEventRightClicked($l);}}else{switch($i.eventRightClickHandling){case 'PostBack':$i.eventRightClickPostBack(e);break;case 'CallBack':$i.eventRightClickCallBack(e);break;case 'JavaScript':$i.onEventRightClick(e);break;case 'ContextMenu':var $0N=e.client.contextMenu();if($0N){$0N.show(e);}else{if($i.contextMenu){$i.contextMenu.show(this.event);}};break;case 'Bubble':if($i.bubble){$i.bubble.showEvent(e);};break;}};return false;};this.eventDoubleClickPostBack=function(e,$q){this.$aj('EventDoubleClick',e,$q);};this.eventDoubleClickCallBack=function(e,$q){this.$ak('EventDoubleClick',e,$q);};this.$at=function(ev){if(typeof(DayPilotBubble)!=='undefined'){DayPilotBubble.hideActive();};if($i.timeouts.click){for(var $0U in $i.timeouts.click){window.clearTimeout($i.timeouts.click[$0U]);};$i.timeouts.click=null;};var ev=ev||window.event;var e=this.event;ev.stopPropagation&&ev.stopPropagation();ev.cancelBubble=true;if($i.$9G()){var $l={};$l.e=e;$l.originalEvent=ev;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onEventDoubleClick==='function'){$i.onEventDoubleClick($l);if($l.preventDefault.value){return;}};switch($i.eventDoubleClickHandling){case 'PostBack':$i.eventDoubleClickPostBack(e);break;case 'CallBack':$i.eventDoubleClickCallBack(e);break;case 'Edit':$i.$an(this);break;case 'Select':$i.$ao($02,e,ev.ctrlKey,ev.metaKey);break;case 'Bubble':if($i.bubble){$i.bubble.showEvent(e);};break;case 'ContextMenu':var $0N=e.client.contextMenu();if($0N){$0N.show(e);}else{if($i.contextMenu){$i.contextMenu.show(e);}};break;};if(typeof $i.onEventDoubleClicked==='function'){$i.onEventDoubleClicked($l);}}else{switch($i.eventDoubleClickHandling){case 'PostBack':$i.eventDoubleClickPostBack(e);break;case 'CallBack':$i.eventDoubleClickCallBack(e);break;case 'JavaScript':$i.onEventDoubleClick(e);break;case 'Edit':$i.$an(this);break;case 'Select':$i.$ao($02,e,ev.ctrlKey,ev.metaKey);break;case 'Bubble':if($i.bubble){$i.bubble.showEvent(e);};break;case 'ContextMenu':var $0N=e.client.contextMenu();if($0N){$0N.show(e);}else{if($i.contextMenu){$i.contextMenu.show(e);}};break;}}};this.eventResizePostBack=function(e,$0m,$0V,$q){this.$au("PostBack",e,$0m,$0V,$q);};this.eventResizeCallBack=function(e,$0m,$0V,$q){this.$au("CallBack",e,$0m,$0V,$q);};this.$au=function($X,e,$0m,$0V,$q){var $0Q={};$0Q.e=e;$0Q.newStart=$0m;$0Q.newEnd=$0V;this.$av($X,"EventResize",$0Q,$q);};this.$aw=function(e,$0m,$0V){if(this.eventResizeHandling==='Disabled'){return;};$0V=$i.$ax($0V);if($i.$9G()){var $l={};var $0W=function(){$0X.hide();if($l.preventDefault.value){return;};$0m=$l.newStart;$0V=$l.newEnd;switch($i.eventResizeHandling){case 'PostBack':$i.eventResizePostBack(e,$0m,$0V);break;case 'CallBack':$i.eventResizeCallBack(e,$0m,$0V);break;case 'Notify':$i.eventResizeNotify(e,$0m,$0V);break;case 'Update':$i.$ay($l);break;};if(typeof $i.onEventResized==='function'){$i.onEventResized($l);}};$l.e=e;$l.async=false;$l.loaded=function(){$0W();};$l.newStart=$0m;$l.newEnd=$0V;$l.preventDefault=function(){this.preventDefault.value=true;};$l.multiresize=DayPilot.list($0Y.list);var $0Z={};$0Z.event=e;$0Z.start=$0m;$0Z.end=$0V;$l.multiresize.splice(0,0,$0Z);if(typeof $i.onEventResize==='function'){$i.onEventResize($l);};if(!$l.async){$0W();}else{if($i.blockOnCallBack){$0X.show();}}}else{switch($i.eventResizeHandling){case 'PostBack':$i.eventResizePostBack(e,$0m,$0V);break;case 'CallBack':$i.eventResizeCallBack(e,$0m,$0V);break;case 'JavaScript':$i.onEventResize(e,$0m,$0V);break;case 'Notify':$i.eventResizeNotify(e,$0m,$0V);break;case 'Update':$i.$ay($l);break;}}};this.eventMovePostBack=function(e,$0m,$0V,$10,$q,$0u){this.$az("PostBack",e,$0m,$0V,$10,$q,$0u);};this.eventMoveCallBack=function(e,$0m,$0V,$10,$q,$0u){this.$az("CallBack",e,$0m,$0V,$10,$q,$0u);};this.$az=function($X,e,$0m,$0V,$10,$q,$0u){var $11=e&&!!e.preventDefault;var $0Q={};if($11){var $l=e;$0Q.e=$l.e;$0Q.newStart=$l.newStart;$0Q.newEnd=$l.newEnd;$0Q.newResource=$l.newResource;$0Q.position=$l.position;$0Q.multimove=[];$l.multimove.each(function($00){var $12={};$12.e=$00.event;$12.newStart=$00.start;$12.newEnd=$00.end;$12.newResource=$00.event.resource();if($12.e===$l.e||$12.e.data.id==$l.e.data.id){$12.newResource=$l.newResource;}else if(mm.rowoffset){var ri=$00.event.part.dayIndex+mm.rowoffset;$12.newResource=$i.rowlist[ri].id;};$0Q.multimove.push($12);});}else{$0Q.e=e;$0Q.newStart=$0m;$0Q.newEnd=$0V;$0Q.newResource=$10;$0Q.position=$0u;};this.$av($X,"EventMove",$0Q,$q);};this.$aA=function($X,$l,$q){var $0Q={};$0Q.start=$l.start;$0Q.end=$l.end;$0Q.resource=$l.resource;$0Q.multirange=[];$l.multirange.each(function($00){var $13={};$13.start=$00.start;$13.end=$00.end;$13.resource=$00.resource;$0Q.multirange.push($13);});this.$av($X,"TimeRangeSelected",$0Q,$q);};this.$av=function($X,$14,$0Q,$q){if($X==='PostBack'){$i.$aj($14,$0Q,$q);}else if($X==='CallBack'){$i.$ak($14,$0Q,$q,"CallBack");}else if($X==='Immediate'){$i.$ak($14,$0Q,$q,"Notify");}else if($X==='Queue'){$i.queue.add(new DayPilot.Action(this,$14,$0Q,$q));}else if($X==='Notify'){if($0a.notifyType()==='Notify'){$i.$ak($14,$0Q,$q,"Notify");}else{$i.queue.add(new DayPilot.Action($i,$14,$0Q,$q));}}else{throw "Invalid event invocation type";}};this.eventMoveNotify=function(e,$0m,$0V,$10,$q,$0u){var $11=e&&!!e.preventDefault;if($11){var $l=e;$l.old=new DayPilot.Event($l.e.copy(),$i);$l.multimove.each(function($00){$00.old=new DayPilot.Event($00.event.copy(),$i);});$i.$ay($l);$l.e=$l.old;delete $l.old;$l.multimove.each(function($00){$00.event=$00.old;delete $00.old;});}else{e=new DayPilot.Event(e.copy(),$i);var $15=$i.events.$aB(e.data);e.start($0m);e.end($0V);e.resource($10);e.commit();$15=$15.concat($i.events.$aC(e.data));$i.$aD($15);$i.$aE();$i.$aF($15);};this.$az("Notify",e,$0m,$0V,$10,$q,$0u);};this.eventResizeNotify=function(e,$0m,$0V,$q){var $16=new DayPilot.Event(e.copy(),this);var $15=$i.events.$aB(e.data);e.start($0m);e.end($0V);e.commit();$15=$15.concat($i.events.$aC(e.data));$i.$aD($15);$i.$aE();$i.$aF($15);this.$au("Notify",$16,$0m,$0V,$q);};this.multiselect={};this.multiselect.list=[];this.multiselect.divs=[];this.multiselect.previous=[];this.multiselect.$9w=function($Y){$i.multiselect.list=DayPilot.list($Y).map(function($00){return new DayPilot.Event($00,$i);});};this.multiselect.$aG=function(){var m=$i.multiselect;return DayPilot.JSON.stringify(m.events());};this.multiselect.events=function(){var m=$i.multiselect;var $Z=DayPilot.list();$Z.ignoreToJSON=true;for(var i=0;i<m.list.length;i++){$Z.push(m.list[i]);};return $Z;};this.multiselect.$aH=function(){};this.multiselect.$ar=function($02,$17,$18){var m=$i.multiselect;if(m.isSelected($02.event)){if($i.allowMultiSelect){if($17||$18){m.remove($02.event,true);}else{var $0g=m.list.length;m.clear();if($0g>1){m.add($02.event,true);}}}else{m.clear();}}else{if($i.allowMultiSelect){if($17||$18){m.add($02.event,true);}else{m.clear();m.add($02.event,true);}}else{m.clear();m.add($02.event,true);}};m.$aI($02);m.$aH();};this.multiselect.$aJ=function(ev){var m=$i.multiselect;return m.$aK(ev,m.initList);};this.multiselect.$aL=function(){var m=$i.multiselect;var $Y=[];for(var i=0;i<m.list.length;i++){var event=m.list[i];$Y.push(event.value());};alert($Y.join("\n"));};this.multiselect.add=function(ev,$19){var m=$i.multiselect;if(m.indexOf(ev)===-1){m.list.push(ev);};if($19){return;};m.redraw();};this.multiselect.remove=function(ev,$19){var m=$i.multiselect;var i=m.indexOf(ev);if(i!==-1){m.list.splice(i,1);};if($19){return;};m.redraw();};this.multiselect.clear=function($19){var m=$i.multiselect;m.list=[];if($19){return;};m.redraw();};this.multiselect.redraw=function(){var m=$i.multiselect;m.divs=[];for(var i=0;i<$i.elements.events.length;i++){var $02=$i.elements.events[i];if(!$02.event){continue;};if(!$02.event.isEvent){continue;};if(m.isSelected($02.event)){m.$aM($02);}else{m.$aN($02);}}};this.multiselect.$aO=function(ev){var m=$i.multiselect;var $02=null;for(var i=0;i<$i.elements.events.length;i++){if(m.isSelected($i.elements.events[i].event)){$02=$i.elements.events[i];break;}};m.$aI($02);};this.multiselect.$aI=function($02){if(!$02){return;};var m=$i.multiselect;if(m.isSelected($02.event)){m.$aM($02);}else{m.$aN($02);}};this.multiselect.$aM=function($02){var m=$i.multiselect;var cn=$i.cssOnly?$i.$9S("_selected"):$i.$9S("selected");var $02=m.$aP($02);DayPilot.Util.addClass($02,cn);m.divs.push($02);};this.multiselect.$aP=function($02){return $02;};this.multiselect.$aQ=function(){var m=$i.multiselect;for(var i=0;i<m.divs.length;i++){var $02=m.divs[i];m.$aN($02,true);};m.divs=[];};this.multiselect.$aN=function($02,$1a){var m=$i.multiselect;var cn=$i.cssOnly?$i.$9S("_selected"):$i.$9S("selected");DayPilot.Util.removeClass($02,cn);if($1a){return;};var i=DayPilot.indexOf(m.divs,$02);if(i!==-1){m.divs.splice(i,1);}};this.multiselect.isSelected=function(ev){if(!ev){return false;};if(!ev.isEvent){return false;};return $i.multiselect.$aK(ev,$i.multiselect.list);};this.multiselect.indexOf=function(ev){var $q=ev.data;for(var i=0;i<$i.multiselect.list.length;i++){var $00=$i.multiselect.list[i];if($00.data===$q){return i;}};return -1;};this.multiselect.$aK=function(e,$Y){if(!$Y){return false;};for(var i=0;i<$Y.length;i++){var ei=$Y[i];if(e===ei){return true;};if(typeof ei.id==='function'){if(ei.id()!==null&&e.id()!==null&&ei.id()===e.id()){return true;};if(ei.id()===null&&e.id()===null&&ei.recurrentMasterId()===e.recurrentMasterId()&&e.start().toStringSortable()===ei.start().toStringSortable()){return true;}}else{if(ei.id!==null&&e.id()!==null&&ei.id===e.id()){return true;};if(ei.id===null&&e.id()===null&&ei.recurrentMasterId===e.recurrentMasterId()&&e.start().toStringSortable()===ei.start){return true;}}};return false;};this.multiselect.startRectangle=function(){$0O.start();};this.$aR=function(){this.$9v();this.$9y();};this.$aI=function($l){var $l=$l||{};var $1b=!$l.eventsOnly;if(!$i.cssOnly){$i.cssOnly=true;DayPilot.Util.log("DayPilot: cssOnly = false mode is not supported since DayPilot Pro 8.0.")};if($1b){if(!this.$a2()){$i.timeHeader=null;$i.cellProperties={};};$i.$9g();$i.$9h();if(!$l||!$l.dontLoadResources){$i.$9i();}};this.$9k();if($1b){$i.$aS();$i.$9l();$i.$9m();$i.$9E($i.selectedRows);};$i.$9n();$i.$9q();$i.$aT();$i.$9r();$1c.hideLinkpoints();this.$9u();this.$9t();this.$9e();this.$9j();this.$9x();this.$aR();$i.$9s();if($l.immediateEvents||$l.eventsOnly){$i.$9z();}else{setTimeout(function(){$i.$9z();},100);};if(this.visible){this.show();}else{this.hide();};this.$9D();this.$9F();};this.update=function($h){if($i.$8Y){throw "You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable.";};$1d.request($h);};var $1d={};$1d.timeout=null;$1d.options=null;$1d.request=function($h){clearTimeout($1d.timeout);$1d.mergeOptions($h);$1d.timeout=setTimeout($1d.doit);};$1d.mergeOptions=function($h){if(!$h){return;};if(!$1d.options){$1d.options={};};for(var name in $h){$1d.options[name]=$h[name];}};$1d.doit=function(){var $h=$1d.options;$1d.options=null;if(!$h){$i.$aU&&$i.$aI({"immediateEvents":true});return;};if($h.events){$i.events.list=$h.events;$i.$aU&&$i.$aI({"eventsOnly":true});}else if($h.separators){$i.separators=$h.separators;$i.$aU&&$i.$aR();}};this.$aF=function($15,$1e,$1f){$15=DayPilot.ua($15);for(var i=0;i<$15.length;i++){var ri=$15[i];$i.$aV(ri);};if(this.$aW){this.$9n();this.$9q();this.$9t();this.$9v();for(var i=0;i<$15.length;i++){var ri=$15[i];this.$aX(ri);};for(var i=0;i<$15.length;i++){var ri=$15[i];this.$aY(ri);};this.$9x();this.$9y();this.$aZ();}else{var $1g=true;if($1g){var $1h=function(i){if(i>=$15.length){return;};var ri=$15[i];if(!$1e){$i.$aX(ri);};$i.$aY(ri);if(i+1<$15.length){setTimeout(function(){$1h(i+1);},10);}else{$i.$9O();$1c.load();$i.multiselect.redraw();if($1f){$1f();}}};$1h(0);}else{for(var i=0;i<$15.length;i++){var ri=$15[i];if(!$1e){this.$aX(ri);};this.$aY(ri);}};DayPilot.list($15).each(function(y){$i.$b0(y);});$i.$9x();};$i.$9O();$1c.load();$i.multiselect.redraw();if($1f){$1f();};this.$9e();};this.$ax=function($u){if($i.eventEndSpec==="DateTime"){return $u;};if($u.getDatePart().ticks===$u.ticks){return $u.addDays(-1);};return $u.getDatePart();};this.$b1=function($u){if($i.eventEndSpec==="DateTime"){return $u;};return $u.getDatePart().addDays(1);};this.$b2=function($u){if($i.eventEndSpec==="DateTime"){return $u;};return $u.getDatePart();};this.$b3=function(e,$0m,$0V,$10,external,ev,$0u){if($i.eventMoveHandling==='Disabled'){return;};$0V=$i.$ax($0V);var $l={};$l.e=e;$l.newStart=$0m;$l.newEnd=$0V;$l.newResource=$10;$l.external=external;$l.ctrl=false;$l.meta=false;$l.shift=false;if(ev){$l.shift=ev.shiftKey;$l.ctrl=ev.ctrlKey;$l.meta=ev.metaKey;};$l.multimove=DayPilot.list(mm.list);var $0Z={};$0Z.event=e;$0Z.start=$0m;$0Z.end=$0V;$l.multimove.splice(0,0,$0Z);$l.position=$0u;$l.preventDefault=function(){this.preventDefault.value=true;};if($i.$9G()){var $0W=function(){$0X.hide();if($l.preventDefault.value){$i.$b4();return;};$0m=$l.newStart;$0V=$l.newEnd;switch($i.eventMoveHandling){case 'PostBack':$i.eventMovePostBack($l);break;case 'CallBack':$i.eventMoveCallBack($l);break;case 'Notify':$i.eventMoveNotify($l);break;case 'Update':$i.$ay($l);break;};$i.$b4();if(typeof $i.onEventMoved==='function'){$i.onEventMoved($l);}};$l.async=false;$l.loaded=function(){$0W();};if(typeof $i.onEventMove==='function'){$i.onEventMove($l);};if(!$l.async){$0W();}else{if($i.blockOnCallBack){$0X.show();}}}else{switch($i.eventMoveHandling){case 'PostBack':$i.eventMovePostBack($l);break;case 'CallBack':$i.eventMoveCallBack($l);break;case 'JavaScript':$i.onEventMove(e,$0m,$0V,$10,external,ev?ev.ctrlKey:false,ev?ev.shiftKey:false,$0u);break;case 'Notify':$i.eventMoveNotify($l);break;case 'Update':$i.$ay($l);break;};$i.$b4();}};this.$ay=function($l){var e=$l.e;var $0m=$l.newStart;var $0V=$l.newEnd;var $10=$l.newResource;var external=$l.external;e.start($0m);e.end($0V);e.resource($10);if(external){e.commit();$i.events.add(e);}else{$i.events.update(e);};if($l.multimove&&!$l.multimove.isEmpty()){$l.multimove.each(function($00){if($00.event===e){return;};$00.event.start($00.start);$00.event.end($00.end);if(mm.rowoffset){var ri=$00.event.part.dayIndex+mm.rowoffset;var $10=$i.rowlist[ri].id;$00.event.resource($10);};$00.event.commit();$i.events.update($00.event);});};if($l.multiresize&&!$l.multiresize.isEmpty()){$l.multiresize.each(function($00){if($00.event===e){return;};$00.event.start($00.start);$00.event.end($00.end);$00.event.commit();$i.events.update($00.event);});};$i.$99();};this.$b5=function($l,$n){var $m=$i.$b6($n);var $0Q={};$0Q.args=$l;$0Q.guid=$m;$i.$ak("Bubble",$0Q);};this.$b6=function($n){var $m=DayPilot.guid();if(!this.bubbles){this.bubbles=[];};this.bubbles[$m]=$n;return $m;};this.eventMenuClickPostBack=function(e,$1i,$q){var $0Q={};$0Q.e=e;$0Q.command=$1i;this.$aj('EventMenuClick',$0Q,$q);};this.eventMenuClickCallBack=function(e,$1i,$q){var $0Q={};$0Q.e=e;$0Q.command=$1i;this.$ak('EventMenuClick',$0Q,$q);};this.$b7=function($1i,e,$1j){switch($1j){case 'PostBack':$i.eventMenuClickPostBack(e,$1i);break;case 'CallBack':$i.eventMenuClickCallBack(e,$1i);break;}};this.timeRangeSelectedPostBack=function($K,end,$1k,$q){var $1l={};$1l.start=$K;$1l.end=end;$1l.resource=$1k;this.$aj('TimeRangeSelected',$1l,$q);};this.timeRangeSelectedCallBack=function($K,end,$1k,$q){var $1l={};$1l.start=$K;$1l.end=end;$1l.resource=$1k;this.$ak('TimeRangeSelected',$1l,$q);};this.$b8=function($1l){if(!$1l){return;};if($1l.disabled){$i.clearSelection();return;};var $1m=$i.$b9($1l);if(!$1m){return;};$i.$ba($1m.start,$1m.end,$1m.resource);};this.$ba=function($K,end,$1k){if($i.timeRangeSelectedHandling==='Disabled'){return;};var $1n=end;end=$i.$ax($1n);var $l={};$l.start=$K;$l.end=end;$l.resource=$1k;$l.preventDefault=function(){this.preventDefault.value=true;};$l.multirange=DayPilot.list(mr.list).map(function($00){return $i.$b9($00);});if($l.multirange.isEmpty()){$l.multirange.push({"start":$l.start,"end":$l.end,"resource":$l.resource});};if($i.$9G()){if(typeof $i.onTimeRangeSelect==='function'){$i.onTimeRangeSelect($l);if($l.preventDefault.value){return;};$K=$l.start;end=$l.end;};$i.$bb(DayPilotScheduler.rangeHold,$K,end,$l.multirange);$i.$bc(DayPilotScheduler.rangeHold,true);switch($i.timeRangeSelectedHandling){case 'PostBack':$i.$aA("PostBack",$l);break;case 'CallBack':$i.$aA("CallBack",$l);break;};if(typeof $i.onTimeRangeSelected==='function'){$i.onTimeRangeSelected($l);}}else{switch($i.timeRangeSelectedHandling){case 'PostBack':$i.$aA("PostBack",$l);break;case 'CallBack':$i.$aA("CallBack",$l);break;case 'JavaScript':$i.onTimeRangeSelected($K,end,$1k,$l.multirange);break;case 'Hold':break;}}};this.$bb=function($1l,$K,end,$1o){if(!$1l||($1o&&$1o.length>1)){return;};var $1n=$i.$b1(end);var $0F,$P;var $1p=0;if($i.viewType==="Days"){var $I=$i.$bd($K);$1p=$I.start.getTime()-$i.$a6().getTime();};if($K.getTime()<$i.itline[0].start.getTime()){$1l.start.x=0;}else{$0F=$i.$ag($K.addTime(-$1p));$P=$0F.current||$0F.previous;$1l.start.x=DayPilot.indexOf($i.itline,$P);};$0F=$i.$ag($1n.addSeconds(-1).addTime(-$1p));if($0F.past){$1l.end.x=$i.itline.length-1;}else{$P=$0F.current||$0F.next;$1l.end.x=DayPilot.indexOf($i.itline,$P);}};this.$bd=function($K){var $0j=$K.getDatePart();return DayPilot.list($i.rowlist).find(function($00){return $00.start.getDatePart()===$0j;});};this.timeRangeDoubleClickPostBack=function($K,end,$1k,$q){var $1l={};$1l.start=$K;$1l.end=end;$1l.resource=$1k;this.$aj('TimeRangeDoubleClick',$1l,$q);};this.timeRangeDoubleClickCallBack=function($K,end,$1k,$q){var $1l={};$1l.start=$K;$1l.end=end;$1l.resource=$1k;this.$ak('TimeRangeDoubleClick',$1l,$q);};this.$be=function($K,end,$1k){end=$i.$ax(end);if($i.$9G()){var $l={};$l.start=$K;$l.end=end;$l.resource=$1k;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onTimeRangeDoubleClick==='function'){$i.onTimeRangeDoubleClick($l);if($l.preventDefault.value){return;}};switch($i.timeRangeDoubleClickHandling){case 'PostBack':$i.timeRangeDoubleClickPostBack($K,end,$1k);break;case 'CallBack':$i.timeRangeDoubleClickCallBack($K,end,$1k);break;};if(typeof $i.onTimeRangeDoubleClicked==='function'){$i.onTimeRangeDoubleClicked($l);}}else{switch($i.timeRangeDoubleClickHandling){case 'PostBack':$i.timeRangeDoubleClickPostBack($K,end,$1k);break;case 'CallBack':$i.timeRangeDoubleClickCallBack($K,end,$1k);break;case 'JavaScript':$i.onTimeRangeDoubleClick($K,end,$1k);break;}}};this.timeRangeMenuClickPostBack=function(e,$1i,$q){var $0Q={};$0Q.selection=e;$0Q.command=$1i;this.$aj("TimeRangeMenuClick",$0Q,$q);};this.timeRangeMenuClickCallBack=function(e,$1i,$q){var $0Q={};$0Q.selection=e;$0Q.command=$1i;this.$ak("TimeRangeMenuClick",$0Q,$q);};this.$bf=function($1i,e,$1j){switch($1j){case 'PostBack':$i.timeRangeMenuClickPostBack(e,$1i);break;case 'CallBack':$i.timeRangeMenuClickCallBack(e,$1i);break;}};this.linkMenuClickPostBack=function(e,$1i,$q){var $0Q={};$0Q.link=e;$0Q.command=$1i;this.$aj("LinkMenuClick",$0Q,$q);};this.linkMenuClickCallBack=function(e,$1i,$q){var $0Q={};$0Q.link=e;$0Q.command=$1i;this.$ak("LinkMenuClick",$0Q,$q);};this.$bg=function($1i,e,$1j){switch($1j){case 'PostBack':$i.linkMenuClickPostBack(e,$1i);break;case 'CallBack':$i.linkMenuClickCallBack(e,$1i);break;}};this.rowMenuClickPostBack=function(e,$1i,$q){var $0Q={};$0Q.resource=e;$0Q.command=$1i;this.$aj("RowMenuClick",$0Q,$q);};this.resourceHeaderMenuClickPostBack=this.rowMenuClickPostBack;this.rowMenuClickCallBack=function(e,$1i,$q){var $0Q={};$0Q.resource=e;$0Q.command=$1i;this.$ak("RowMenuClick",$0Q,$q);};this.resourceHeaderMenuClickCallBack=this.rowMenuClickCallBack;this.$bh=function($1i,e,$1j){switch($1j){case 'PostBack':$i.rowMenuClickPostBack(e,$1i);break;case 'CallBack':$i.rowMenuClickCallBack(e,$1i);break;}};this.$bi=function($I,$1q){var r=$1r.$bj($I);var c=r.cells[0];var $1s=c.textDiv;$1s.innerHTML=$1q;$I.Text=$1q;$I.html=$1q;};this.$bk=function($I,$1q){if(!$1q){return;};var $l={};$l.text=$1q;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onRowCreate==="function"){$i.onRowCreate($l);if($l.preventDefault.value){return;}};switch($i.rowCreateHandling){case "CallBack":$i.rowCreateCallBack($l.text);break;case "PostBack":$i.rowCreatePostBack($l.text);break;};if(typeof $i.onRowCreated==="function"){$i.onRowCreated($l);}};this.$bl=function($I,$1q){if($I.isNewRow){$i.$bk($I,$1q);return;};var $1t=DayPilot.indexOf($i.rowlist,$I);var e=$i.$bm($I,$1t);if($i.$9G()){var $l={};$l.resource=e;$l.newText=$1q;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onRowEdit==='function'){$i.onRowEdit($l);if($l.preventDefault.value){return;}};switch($i.rowEditHandling){case 'PostBack':$i.rowEditPostBack(e,$1q);break;case 'CallBack':$i.rowEditCallBack(e,$1q);break;case 'Update':$i.$bi($I,$1q);break;};if(typeof $i.onRowEdited==='function'){$i.onRowEdited($l);}}else{switch($i.rowEditHandling){case 'PostBack':$i.rowEditPostBack(e,$1q);break;case 'CallBack':$i.rowEditCallBack(e,$1q);break;case 'JavaScript':$i.onrowEdit(e,$1q);break;}}};this.rowCreatePostBack=function($1q,$q){var $0Q={};$0Q.text=$1q;this.$aj("RowCreate",$0Q,$q);};this.rowCreateCallBack=function($1q,$q){var $0Q={};$0Q.text=$1q;this.$ak("RowCreate",$0Q,$q);};this.rowEditPostBack=function(e,$1q,$q){var $0Q={};$0Q.resource=e;$0Q.newText=$1q;this.$aj("RowEdit",$0Q,$q);};this.rowEditCallBack=function(e,$1q,$q){var $0Q={};$0Q.resource=e;$0Q.newText=$1q;this.$ak("RowEdit",$0Q,$q);};this.rowMovePostBack=function($1u,$1v,$w,$q){var $0Q={};$0Q.source=$1u;$0Q.target=$1v;$0Q.position=$w;this.$aj("RowMove",$0Q,$q);};this.rowMoveCallBack=function($1u,$1v,$w,$q){var $0Q={};$0Q.source=$1u;$0Q.target=$1v;$0Q.position=$w;this.$ak("RowMove",$0Q,$q);};this.rowMoveNotify=function($1u,$1v,$w,$q){var $0Q={};$0Q.source=$1u;$0Q.target=$1v;$0Q.position=$w;this.$ak("RowMove",$0Q,$q,"Notify");};this.rowClickPostBack=function(e,$q){var $0Q={};$0Q.resource=e;this.$aj("RowClick",$0Q,$q);};this.resourceHeaderClickPostBack=this.rowClickPostBack;this.rowClickCallBack=function(e,$q){var $0Q={};$0Q.resource=e;this.$ak("RowClick",$0Q,$q);};this.resourceHeaderClickCallBack=this.rowClickCallBack;this.$bn=function(e,$17,$1w,$18){if($i.rowDoubleClickHandling==="Disabled"){$i.$bo(e,$17,$1w,$18);return;};if(!$i.timeouts.resClick){$i.timeouts.resClick=[];};var $1x=function(e,$17,$1w,$18){return function(){$i.$bo(e,$17,$1w,$18);};};$i.timeouts.resClick.push(window.setTimeout($1x(e,$17,$1w,$18),$i.doubleClickTimeout));};this.$bo=function(e,$17,$1w,$18){var $1y=$i.resourceHeaderClickHandling||$i.rowClickHandling;if($i.$9G()){var $l={};$l.resource=e;$l.row=e;$l.ctrl=$17;$l.shift=$1w;$l.meta=$18;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onRowClick==='function'){$i.onRowClick($l);if($l.preventDefault.value){return;}};if(typeof $i.onResourceHeaderClick==='function'){$i.onResourceHeaderClick($l);if($l.preventDefault.value){return;}};switch($1y){case 'PostBack':$i.rowClickPostBack(e);break;case 'CallBack':$i.rowClickCallBack(e);break;case 'Select':$i.$bp(e.$.row,$17,$1w,$18);break;case 'Edit':$i.$bq.edit(e.$.row);break;};if(typeof $i.onRowClicked==='function'){$i.onRowClicked($l);};if(typeof $i.onResourceHeaderClicked==='function'){$i.onResourceHeaderClicked($l);}}else{switch($1y){case 'PostBack':$i.rowClickPostBack(e);break;case 'CallBack':$i.rowClickCallBack(e);break;case 'JavaScript':$i.onRowClick(e);break;case 'Select':$i.$bp(e.$.row,$17,$1w);break;case 'Edit':$i.$bq.edit(e.$.row);break;}}};this.timeHeaderClickPostBack=function(e,$q){var $0Q={};$0Q.header=e;this.$aj("TimeHeaderClick",$0Q,$q);};this.timeHeaderClickCallBack=function(e,$q){var $0Q={};$0Q.header=e;this.$ak("TimeHeaderClick",$0Q,$q);};this.$br=function(e){if($i.$9G()){var $l={};$l.header=e;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onTimeHeaderClick==='function'){$i.onTimeHeaderClick($l);if($l.preventDefault.value){return;}};switch(this.timeHeaderClickHandling){case 'PostBack':$i.timeHeaderClickPostBack(e);break;case 'CallBack':$i.timeHeaderClickCallBack(e);break;};if(typeof $i.onTimeHeaderClicked==='function'){$i.onTimeHeaderClicked($l);}}else{switch(this.timeHeaderClickHandling){case 'PostBack':$i.timeHeaderClickPostBack(e);break;case 'CallBack':$i.timeHeaderClickCallBack(e);break;case 'JavaScript':$i.onTimeHeaderClick(e);break;}}};this.resourceCollapsePostBack=function(e,$q){var $0Q={};$0Q.resource=e;this.$aj("ResourceCollapse",$0Q,$q);};this.resourceCollapseCallBack=function(e,$q){var $0Q={};$0Q.resource=e;this.$ak("ResourceCollapse",$0Q,$q);};this.$bs=function(e){if($i.$9G()){var $l={};$l.resource=e;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onResourceCollapse==='function'){$i.onResourceCollapse($l);if($l.preventDefault.value){return;}};switch(this.resourceCollapseHandling){case 'PostBack':$i.resourceCollapsePostBack(e);break;case 'CallBack':$i.resourceCollapseCallBack(e);break;}}else{switch(this.resourceCollapseHandling){case 'PostBack':$i.resourceCollapsePostBack(e);break;case 'CallBack':$i.resourceCollapseCallBack(e);break;case 'JavaScript':$i.onResourceCollapse(e);break;}}};this.resourceExpandPostBack=function(e,$q){var $0Q={};$0Q.resource=e;this.$aj("ResourceExpand",$0Q,$q);};this.resourceExpandCallBack=function(e,$q){var $0Q={};$0Q.resource=e;this.$ak("ResourceExpand",$0Q,$q);};this.$bt=function(e){if($i.$9G()){var $l={};$l.resource=e;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onResourceExpand==='function'){$i.onResourceExpand($l);if($l.preventDefault.value){return;}};switch(this.resourceExpandHandling){case 'PostBack':$i.resourceExpandPostBack(e);break;case 'CallBack':$i.resourceExpandCallBack(e);break;}}else{switch(this.resourceExpandHandling){case 'PostBack':$i.resourceExpandPostBack(e);break;case 'CallBack':$i.resourceExpandCallBack(e);break;case 'JavaScript':$i.onResourceExpand(e);break;}}};this.eventEditPostBack=function(e,$1q,$q){var $0Q={};$0Q.e=e;$0Q.newText=$1q;this.$aj("EventEdit",$0Q,$q);};this.eventEditCallBack=function(e,$1q,$q){var $0Q={};$0Q.e=e;$0Q.newText=$1q;this.$ak("EventEdit",$0Q,$q);};this.$bu=function(e,$1q,$1z){if($i.$9G()){var $l={};$l.e=e;$l.newText=$1q;$l.canceled=$1z;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onEventEdit==='function'){$i.onEventEdit($l);if($l.preventDefault.value){return;}};if(!$1z){switch($i.eventEditHandling){case 'PostBack':$i.eventEditPostBack(e,$1q);break;case 'CallBack':$i.eventEditCallBack(e,$1q);break;case 'Update':e.text($1q);$i.events.update(e);break;}};if(typeof $i.onEventEdited==='function'){$i.onEventEdited($l);if($l.preventDefault.value){return;}}}else{switch($i.eventEditHandling){case 'PostBack':$i.eventEditPostBack(e,$1q);break;case 'CallBack':$i.eventEditCallBack(e,$1q);break;case 'JavaScript':$i.onEventEdit(e,$1q);break;}}};this.commandCallBack=function($1i,$q){this.$bv("CallBack",$1i,$q);};this.commandPostBack=function($1i,$q){this.$bv("PostBack",$1i,$q);};this.$bv=function($X,$1i,$q){var $0Q={};$0Q.command=$1i;this.$av($X,"Command",$0Q,$q);};this.$aj=function($14,$1A,$q){var $1B={};$1B.action=$14;$1B.type="PostBack";$1B.parameters=$1A;$1B.data=$q;$1B.header=this.$bw();var $1C="JSON"+DayPilot.JSON.stringify($1B);__doPostBack($i.uniqueID,$1C);};this.$ak=function($14,$1A,$q,$X){if(!$i.$a2()){$i.debug.message("Callback invoked without the server-side backend specified. Callback canceled.","warning");return;};if(typeof $X==='undefined'){$X="CallBack";};this.$bx();$i.$by();var $1B={};$1B.action=$14;$1B.type=$X;$1B.parameters=$1A;$1B.data=$q;$1B.header=this.$bw();var $1D=DayPilot.JSON.stringify($1B);var $1C;if(typeof Iuppiter!=='undefined'&&Iuppiter.compress){$1C="LZJB"+Iuppiter.Base64.encode(Iuppiter.compress($1D));}else{$1C="JSON"+$1D;};this.$bz($1B);var $k=null;if(this.backendUrl){DayPilot.request(this.backendUrl,this.$bA,$1C,this.$bB);}else if(typeof WebForm_DoCallback==='function'){WebForm_DoCallback(this.uniqueID,$1C,this.$98,$k,this.callbackError,true);}};this.$bz=function($1B){var $l={};if(typeof $i.onCallBackStart==='function'){$i.onCallBackStart($l);}};this.$9d=function(){var $l={};if(typeof $i.onCallBackEnd==='function'){setTimeout(function(){$i.onCallBackEnd($l);},0);}};this.$a2=function(){if(this.backendUrl){return true;};if(this.$bC()){return true;};return false;};this.$bC=function(){if(typeof WebForm_DoCallback==='function'&&this.uniqueID){return true;};return false;};this.$bB=function($1E){if(typeof $i.onAjaxError==='function'){var $l={};$l.request=$1E;$i.onAjaxError($l);}else if(typeof $i.ajaxError==='function'){$i.ajaxError($1E);}};this.$bA=function($1F){$i.$98($1F.responseText);};this.$bw=function(){var h={};h.v=this.v;h.control="dps";h.id=this.id;h.startDate=$i.startDate;h.days=$i.days;h.cellDuration=$i.cellDuration;h.cellGroupBy=$i.cellGroupBy;h.cellWidth=$i.cellWidth;h.cellWidthSpec=$i.cellWidthSpec;h.viewType=$i.viewType;h.hourNameBackColor=$i.hourNameBackColor;h.showNonBusiness=$i.showNonBusiness;h.businessBeginsHour=$i.businessBeginsHour;h.businessEndsHour=$i.businessEndsHour;h.weekStarts=$i.weekStarts;h.treeEnabled=$i.treeEnabled;h.locale=$i.locale;h.timeZone=$i.timeZone;h.tagFields=$i.tagFields;h.timeHeaders=$i.timeHeaders;h.cssOnly=$i.cssOnly;h.cssClassPrefix=$i.cssClassPrefix;h.durationBarMode=$i.durationBarMode;h.showBaseTimeHeader=true;h.rowHeaderColumns=$i.rowHeaderColumns;h.rowMarginBottom=$i.rowMarginBottom;h.rowMarginTop=$i.rowMarginTop;h.rowMinHeight=$i.rowMinHeight;h.scale=$i.scale;h.clientState=$i.clientState;if(this.nav.scroll){h.scrollX=this.nav.scroll.scrollLeft;h.scrollY=this.nav.scroll.scrollTop;};h.selected=$i.multiselect.events();h.selectedRows=$1r.$bD();h.hashes=$i.hashes;var $J=$i.$bE(h.scrollX,h.scrollY);var $1l=$i.$bF($J);var $1G=$i.$bG($J);h.rangeStart=$1l.start;h.rangeEnd=$1l.end;h.resources=$1G;h.dynamicLoading=$i.dynamicLoading;h.separators=this.separators;if(this.syncResourceTree&&this.viewType!="Days"){h.tree=this.$bH();};if(this.syncLinks){h.links=this.$bI();};if(this.scale==="Manual"){h.timeline=this.$bJ();};if(typeof $i.onCallBackHeader==="function"){var $l={};$l.header=h;$i.onCallBackHeader($l);};return h;};this.$bJ=function(){var $Y=[];DayPilot.list($i.timeline).each(function($00){var $1D={};$1D.start=$00.start;$1D.end=$00.end;$1D.width=$00.width;$Y.push($1D);});return $Y;};this.$bI=function(){var $Y=[];var $1H=function(link){var $j={};if(link.tags){for(var name in link.tags){$j[name]=""+link.tags[name];}};return $j;};if(!DayPilot.isArray($i.links.list)){return $Y;};for(var i=0;i<$i.links.list.length;i++){var link=$i.links.list[i];var $1D={};$1D.id=link.id;$1D.from=link.from;$1D.to=link.to;$1D.type=link.type;$1D.tags=$1H(link);$Y.push($1D);};return $Y;};this.getViewPort=function(){var scrollX=this.nav.scroll.scrollLeft-$L.shiftX;var scrollY=this.nav.scroll.scrollTop;var $J=this.$bE(scrollX,scrollY);var $1l=this.$bF($J);var $1I=this.$bG($J);var $j={};$j.start=$1l.start;$j.end=$1l.end;$j.resources=$1I;return $j;};this.$bE=function(scrollX,scrollY){var $J={};$J.start={};$J.end={};$J.start.x=Math.floor(scrollX/$i.cellWidth);$J.end.x=Math.floor((scrollX+$i.nav.scroll.clientWidth)/$i.cellWidth);$J.start.y=$i.$bK(scrollY).i;$J.end.y=$i.$bK(scrollY+$i.nav.scroll.clientHeight).i;var $1J=this.itline.length;if($J.end.x>=$1J){$J.end.x=$1J-1;};return $J;};this.$bF=function($J){var $j={};if(this.itline.length<=0){$j.start=this.startDate;$j.end=this.startDate;return $j;};if(!this.itline[$J.start.x]){throw 'Internal error: area.start.x is null.';};$j.start=this.itline[$J.start.x].start;$j.end=this.itline[$J.end.x].end;return $j;};this.$bG=function($J){if(!$J){var $J=this.$bE(this.nav.scroll.scrollLeft,this.nav.scroll.scrollTop);};var $1G=[];$1G.ignoreToJSON=true;for(var i=$J.start.y;i<=$J.end.y;i++){var r=$i.rowlist[i];if(r&&!r.hidden){$1G.push(r.id);}};return $1G;};this.$bH=function(){var $1K=[];$1K.ignoreToJSON=true;for(var i=0;i<this.rowlist.length;i++){var $I=this.rowlist[i];if($I.level>0){continue;};if($I.isNewRow){continue;};var $1L=this.$bL(i);$1K.push($1L);};return $1K;};this.$bM=function($1M){var $1N=[];$1N.ignoreToJSON=true;for(var i=0;i<$1M.length;i++){var $1t=$1M[i];var $I=$i.rowlist[$1t];if($I.isNewRow){continue;};$1N.push($i.$bL($1t));};return $1N;};this.$bL=function(i){var $I=this.rowlist[i];if(typeof $i.onGetNodeState==="function"){var $l={};$l.row=$I;$l.preventDefault=function(){$l.preventDefault.value=true;};$l.result={};$i.onGetNodeState($l);if($l.preventDefault.value){return $l.result;}};var $1L={};$1L.Value=$I.id;$1L.BackColor=$I.backColor;$1L.Name=$I.name;$1L.InnerHTML=$I.html;$1L.ToolTip=$I.toolTip;$1L.Expanded=$I.expanded;$1L.Children=this.$bM($I.children);$1L.Loaded=$I.loaded;$1L.IsParent=$I.isParent;$1L.Columns=this.$bN($I);if($I.start.getTime()!==$i.$a6().getTime()){$1L.Start=$I.start;};if($I.minHeight!==$i.rowMinHeight){$1L.MinHeight=$I.minHeight;};if($I.marginBottom!==$i.rowMarginBottom){$1L.MarginBottom=$I.marginBottom;};if($I.marginTop!==$i.rowMarginTop){$1L.MarginTop=$I.marginTop;};if($I.eventHeight!==$i.eventHeight){$1L.EventHeight=$I.eventHeight;};return $1L;};this.$bN=function($I){if(!$I.columns||$I.columns.length===0){return null;};var $1O=[];$1O.ignoreToJSON=true;for(var i=0;i<$I.columns.length;i++){var c={};c.InnerHTML=$I.columns[i].html;$1O.push(c);};return $1O;};this.$9S=function($1P){var $1Q=this.theme||this.cssClassPrefix;if($1Q){return $1Q+$1P;}else{return "";}};this.$bO=function(){this.nav.top.dispose=this.dispose;};this.dispose=function(){var c=$i;if(c.$8Y){return;};c.$8Y=true;c.$bx();c.$9u();c.divBreaks=null;c.divCells=null;c.divCorner=null;c.divCrosshair=null;c.divEvents=null;if(c.divHeader){c.divHeader.rows=null;};c.divHeader=null;c.divLines=null;c.divNorth=null;c.divRange=null;c.divResScroll=null;c.divSeparators=null;c.divSeparatorsAbove=null;c.divStretch=null;c.divTimeScroll=null;c.$9Z=null;c.$9f=null;c.$9H.calendar=null;c.$9H=null;c.nav.loading=null;c.nav.top.onmousemove=null;c.nav.top.dispose=null;c.nav.top.ontouchstart=null;c.nav.top.ontouchmove=null;c.nav.top.ontouchend=null;c.nav.top.removeAttribute('style');c.nav.top.removeAttribute('class');c.nav.top.innerHTML="";c.nav.top.dp=null;c.nav.top=null;c.nav.scroll.onscroll=null;c.nav.scroll.root=null;c.nav.scroll=null;DayPilot.ue(window,'resize',c.$bP);DayPilotScheduler.unregister(c);};this.$bQ=function($1R,$X){var $1S=$i.$9H;var $1T=$i.$bR($1R);var event=$1R.event;var $R=event.part.height||$i.$bS.eventHeight();var top=(event.part&&event.part.top)?(event.part.top+$i.rowlist[event.part.dayIndex].top):$1T.top;var $1U=document.createElement('div');$1U.setAttribute('unselectable','on');$1U.style.position='absolute';$1U.style.width=($1T.width)+'px';$1U.style.height=$R+'px';$1U.style.left=$1T.left+'px';$1U.style.top=top+'px';$1U.style.zIndex=101;$1U.style.overflow='hidden';var $05=document.createElement("div");$1U.appendChild($05);if(this.cssOnly){$1U.className=this.$9S("_shadow");$05.className=this.$9S("_shadow_inner");};if(!this.cssOnly){if($X==='Fill'){$05.style.backgroundColor="#aaaaaa";$05.style.opacity=0.5;$05.style.filter="alpha(opacity=50)";$05.style.height="100%";if($1R&&$1R.event&&$1R.style){$05.style.fontSize=$1R.style.fontSize;$05.style.fontFamily=$1R.style.fontFamily;$05.style.color=$1R.style.color;$05.innerHTML=$1R.event.client.innerHTML();}}else{$1U.style.paddingTop="2px";$05.style.border='2px dotted #666666';}};$1S.appendChild($1U);$1U.calendar=$i;return $1U;};this.$bT=function($1R,$X){var $1S=$i.$9H;var $1T=$i.$bR($1R);var event=$1R.event;var ev=event;if($i.$bU($1T.rowIndex)){return;};var $R=event.part.height||$i.$bS.eventHeight();var top=(event.part&&event.part.top)?(event.part.top+$i.rowlist[event.part.dayIndex].top):$1T.top;var $N=$1T.left;var $1V=(ev.cache&&typeof ev.cache.moveVDisabled!=='undefined')?!ev.cache.moveVDisabled:!ev.data.moveVDisabled;var $1W=(ev.cache&&typeof ev.cache.moveHDisabled!=='undefined')?!ev.cache.moveHDisabled:!ev.data.moveHDisabled;if(!$1V&&DayPilotScheduler.moving){top=$i.rowlist[ev.part.dayIndex].top;};if(!$1W&&DayPilotScheduler.moving){$N=event.part.left;};var $1U=document.createElement('div');$1U.setAttribute('unselectable','on');$1U.style.position='absolute';$1U.style.width=($1T.width)+'px';$1U.style.height=$R+'px';$1U.style.left=$N+'px';$1U.style.top=top+'px';$1U.style.zIndex=101;$1U.style.overflow='hidden';var $05=document.createElement("div");$1U.appendChild($05);if(this.cssOnly){$1U.className=this.$9S("_shadow");$05.className=this.$9S("_shadow_inner");};if(!this.cssOnly){if($X==='Fill'){$05.style.backgroundColor="#aaaaaa";$05.style.opacity=0.5;$05.style.filter="alpha(opacity=50)";$05.style.height="100%";if($1R&&$1R.event&&$1R.style){$05.style.fontSize=$1R.style.fontSize;$05.style.fontFamily=$1R.style.fontFamily;$05.style.color=$1R.style.color;$05.innerHTML=$1R.event.client.innerHTML();}}else{$1U.style.paddingTop="2px";$05.style.border='2px dotted #666666';}};$1S.appendChild($1U);$1U.calendar=$i;return $1U;};this.$bK=function(y){var $j={};var element;var top=0;var $1X=0;var $1Y=this.rowlist.length;for(var i=0;i<$1Y;i++){var $I=this.rowlist[i];if($I.hidden){continue;};$1X+=$I.height;if(y<$1X||i===$1Y-1){top=$1X-$I.height;element=$I;break;}};$j.top=top;$j.bottom=$1X;$j.i=i;$j.element=element;return $j;};this.links={};var $1c={};this.$bV=$1c;$1c.clear=function(){$i.divLinksAbove.innerHTML='';$i.divLinksBelow.innerHTML='';$i.elements.links=[];};$1c.showLinkpoints=function(){var $Z=$Q.events();$Z.each(function($02){$1c.showLinkpoint($02);});};$1c.showLinkpoint=function($02){var $z=$i.linkPointSize;var $1Z=$z/2;var $N=$02.event.part.left;var top=$i.rowlist[$02.event.part.dayIndex].top+$02.event.part.top;var $R=$02.event.part.height;var $O=$02.event.part.right;var $K=DayPilot.Util.div($i.divLinkpoints,$N-$1Z,top-$1Z+$R/2,$z,$z);$K.className=$i.$9S("_linkpoint");$K.style.boxSizing="border-box";$K.coords={x:$N,y:top+$R/2};$K.type="Start";$K.event=$02.event;$1c.activateLinkpoint($K);$i.elements.linkpoints.push($K);var end=DayPilot.Util.div($i.divLinkpoints,$O-$1Z,top-$1Z+$R/2,$z,$z);end.className=$i.$9S("_linkpoint");end.style.boxSizing="border-box";end.coords={x:$O,y:top+$R/2};end.type="Finish";end.event=$02.event;$1c.activateLinkpoint(end);$i.elements.linkpoints.push(end);};$1c.activateLinkpoint=function($02){$02.onmousedown=function(ev){var ev=ev||window.event;$20.source=$02;$20.calendar=$i;$1c.showLinkpoints();ev.preventDefault&&ev.preventDefault();ev.stopPropagation&&ev.stopPropagation();return false;};$02.onmousemove=function(ev){DayPilot.Util.addClass($02,$i.$9S("_linkpoint_hover"));$1c.clearHideTimeout();};$02.onmouseout=function(ev){if(!$20.source||$20.source.event!==$02.event){DayPilot.Util.removeClass($02,$i.$9S("_linkpoint_hover"));}};$02.onmouseup=function(ev){if($20.source){var $X=$20.source.type+"To"+$02.type;var $21=$20.source.event.id();var to=$02.event.id();var $l={};$l.from=$21;$l.to=to;$l.type=$X;$l.id=null;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onLinkCreate==="function"){$i.onLinkCreate($l);if($l.preventDefault.value){return;}};var $22=function(){$i.links.list.push({"from":$21,"to":to,"type":$X,"id":$l.id});$1c.load();};switch($i.linkCreateHandling){case "Update":$22();break;case "CallBack":$i.$bW($l);break;case "PostBack":$i.$bX($l);break;case "Notify":$22();$i.$bY($l);break;};if(typeof $i.onLinkCreated==="function"){$i.onLinkCreated($l);}}};};$1c.hideLinkpoints=function(){$i.divLinkpoints.innerHTML='';$i.elements.linkpoints=[];};$1c.hideTimeout=null;$1c.hideLinkpointsWithDelay=function(){$1c.hideTimeout=setTimeout(function(){$1c.hideLinkpoints();},100);};$1c.clearHideTimeout=function(){if($1c.hideTimeout){clearTimeout($1c.hideTimeout);$1c.hideTimeout=null;}};$1c.load=function(){$1c.clear();if(!DayPilot.isArray($i.links.list)){return;};for(var i=0;i<$i.links.list.length;i++){var link=$i.links.list[i];$1c.drawLinkId(link.from,link.to,link);}};$1c.drawLinkId=function($21,to,$23){var $K=$i.events.find($21);var end=$i.events.find(to);$1c.drawLink($K,end,$23);};$1c.drawLink=function($21,to,$23){var $24=$i.$bZ($21);var $25=$i.$bZ(to);if(!$24){return;};if(!$25){return;};var $X=$23.type||"FinishToStart";var $K,end;var $26=$i.rowlist[$24.event.part.dayIndex].top;var $27=$i.rowlist[$25.event.part.dayIndex].top;switch($X){case "FinishToStart":$K={x:$24.event.part.right,y:$26+$24.event.part.top};end={x:$25.event.part.left,y:$27+$25.event.part.top};if($K.y>end.y){if($K.x<end.x){end.y+=$25.event.part.height;}else{}};break;case "StartToFinish":$K={x:$24.event.part.left,y:$26+$24.event.part.top};end={x:$25.event.part.right,y:$27+$25.event.part.top};break;case "StartToStart":$K={x:$24.event.part.left,y:$26+$24.event.part.top};end={x:$25.event.part.left,y:$27+$25.event.part.top};break;case "FinishToFinish":$K={x:$24.event.part.right,y:$26+$24.event.part.top};end={x:$25.event.part.right,y:$27+$25.event.part.top};break;};$1c.drawLinkXy($K,end,$23);};$1c.clearShadow=function(){$i.divLinkShadow.innerHTML='';$i.elements.linkshadow=[];};$1c.drawShadow=function($21,to){$1c.clearShadow();if(DayPilot.browser.ielt9){$1c.drawShadowOldStyle($21,to);}else{var parent=$i.divLinkShadow;var $0u=DayPilot.line($21.x,$21.y,to.x,to.y,true);parent.appendChild($0u);$i.elements.linkshadow.push($0u);}};$1c.drawShadowOldStyle=function($21,to){var nx=Math.min($21.x,to.x);var $z=2;var parent=$i.divLinkShadow;var $28="black";var h1=DayPilot.Util.div(parent,nx,$21.y,$21.x-nx,$z);h1.style.backgroundColor=$28;$i.elements.linkshadow.push(h1);var v1=DayPilot.Util.div(parent,nx,$21.y,$z,to.y-$21.y);v1.style.backgroundColor=$28;$i.elements.linkshadow.push(v1);var h3=DayPilot.Util.div(parent,nx,to.y,to.x-nx,$z);h3.style.backgroundColor=$28;$i.elements.linkshadow.push(h3);var a=DayPilot.Util.div(parent,to.x-6,to.y-5,0,0);a.style.borderColor="transparent transparent transparent "+$28;a.style.borderStyle="solid";a.style.borderWidth="6px";$i.elements.linkshadow.push(a);};$1c.drawLinkXy=function($21,to,$23){var $29=$i.eventHeight/2;var $z=$23.width||1;var $X=$23.type||"FinishToStart";var $28=$23.color;var style=$23.style;var $2a=$23.layer||"Above";var $2b=$2a==="Above";var $2c=$2b?$i.divLinksAbove:$i.divLinksBelow;var $R=$i.eventHeight;var $W=$i.linkBottomMargin;var $2d=function($02,$2e){if($28){$02.style["border"+$2e+"Color"]=$28;};if(style){$02.style["border"+$2e+"Style"]=style;}};var $2f=[];var $2g=function($02,$2h){$i.elements.links.push($02);$2i($02);$2j($02);$02.divs=$2f;if(!$2h){$2f.push($02);}};var $2j=function($02){$02.oncontextmenu=function(ev){ev=ev||window.event;if($i.contextMenuLink){var link=new DayPilot.Link($23,$i);$i.contextMenuLink.show(link);};ev.cancelBubble=true;ev.preventDefault?ev.preventDefault():null;}};var $2i=function($02){$02.onmouseenter=function(){DayPilot.Util.addClass($02.divs,$i.$9S("_link_hover"));};$02.onmouseleave=function(){DayPilot.Util.removeClass($02.divs,$i.$9S("_link_hover"));};};if($X==="FinishToStart"){if($21.y>to.y){if($21.x<to.x){}else{var $2b=5;var $2k=to.y+$2b;var h1=DayPilot.Util.div($2c,$21.x,$21.y+$R-$W,$29+$z,$z);h1.style.boxSizing="border-box";h1.style.borderBottomWidth=$z+"px";h1.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h1,$23.cssClass);$2d(h1,"Bottom");$2g(h1);var v1=DayPilot.Util.div($2c,$21.x+$29,$21.y+$R-$W,$z,$2k-($21.y+$R-$W));v1.style.boxSizing="border-box";v1.style.borderRightWidth=$z+"px";v1.className=$i.$9S("_link_vertical");DayPilot.Util.addClass(v1,$23.cssClass);$2d(v1,"Right");$2g(v1);var h2=DayPilot.Util.div($2c,to.x-$29,$2k,$21.x+2*$29+$z-to.x,$z);h2.style.boxSizing="border-box";h2.style.borderBottomWidth=$z+"px";h2.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h2,$23.cssClass);$2d(h2,"Bottom");$2g(h2);var v2=DayPilot.Util.div($2c,to.x-$29,$2k,$z,to.y-$2k+$R-$W);v2.style.boxSizing="border-box";v2.style.borderRightWidth=$z+"px";v2.className=$i.$9S("_link_vertical");DayPilot.Util.addClass(v2,$23.cssClass);$2d(v2,"Right");$2g(v2);var h3=DayPilot.Util.div($2c,to.x-$29,to.y+$R-$W,$29,$z);h3.style.boxSizing="border-box";h3.style.borderBottomWidth=$z+"px";h3.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h3,$23.cssClass);$2d(h3,"Bottom");$2g(h3);var a;if($28){a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,0,0);a.style.borderWidth="6px";a.style.borderColor="transparent transparent transparent "+$28;a.style.borderStyle="solid";}else{a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,6,6);a.className=$i.$9S("_link_arrow_right");DayPilot.Util.addClass(a,$23.cssClass);};$2g(a,true);}}else if($21.y===to.y){if($21.x<to.x){var $2l=$21.x;var $2m=$21.y+$R-$W;var $2n=to.x;var h1=DayPilot.Util.div($2c,$2l,$2m,$2n-$21.x,$z);h1.style.boxSizing="border-box";h1.style.borderBottomWidth=$z+"px";h1.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h1,$23.cssClass);$2d(h1,"Bottom");$2g(h1);var a;if($28){a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,0,0);a.style.borderWidth="6px";a.style.borderColor="transparent transparent transparent "+$28;a.style.borderStyle="solid";}else{a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,6,6);a.className=$i.$9S("_link_arrow_right");DayPilot.Util.addClass(a,$23.cssClass);};$2g(a,true);}else{}}else{if($21.x>to.x){var $2b=5;var $2k=to.y-$2b;var h1=DayPilot.Util.div($2c,$21.x,$21.y+$R-$W,$29+$z,$z);h1.style.boxSizing="border-box";h1.style.borderBottomWidth=$z+"px";h1.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h1,$23.cssClass);$2d(h1,"Bottom");$2g(h1);var v1=DayPilot.Util.div($2c,$21.x+$29,$21.y+$R-$W,$z,$2k-($21.y+$R-$W));v1.style.boxSizing="border-box";v1.style.borderRightWidth=$z+"px";v1.className=$i.$9S("_link_vertical");DayPilot.Util.addClass(v1,$23.cssClass);$2d(v1,"Right");$2g(v1);var h2=DayPilot.Util.div($2c,to.x-$29,$2k,$21.x+2*$29+$z-to.x,$z);h2.style.boxSizing="border-box";h2.style.borderBottomWidth=$z+"px";h2.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h2,$23.cssClass);$2d(h2,"Bottom");$2g(h2);var v2=DayPilot.Util.div($2c,to.x-$29,$2k,$z,to.y-$2k+$R-$W);v2.style.boxSizing="border-box";v2.style.borderRightWidth=$z+"px";v2.className=$i.$9S("_link_vertical");DayPilot.Util.addClass(v2,$23.cssClass);$2d(v2,"Right");$2g(v2);var h3=DayPilot.Util.div($2c,to.x-$29,to.y+$R-$W,$29,$z);h3.style.boxSizing="border-box";h3.style.borderBottomWidth=$z+"px";h3.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h3,$23.cssClass);$2d(h3,"Bottom");$2g(h3);var a;if($28){a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,0,0);a.style.borderWidth="6px";a.style.borderColor="transparent transparent transparent "+$28;a.style.borderStyle="solid";}else{a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,6,6);a.className=$i.$9S("_link_arrow_right");DayPilot.Util.addClass(a,$23.cssClass);};$2g(a,true);}else{var $2l=$21.x;var $2m=$21.y+$R-$W;var $2n=to.x+$29;var $2o=to.y;var h1=DayPilot.Util.div($2c,$2l,$2m,$2n-$21.x,$z);h1.style.boxSizing="border-box";h1.style.borderBottomWidth=$z+"px";h1.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h1,$23.cssClass);$2d(h1,"Bottom");$2g(h1);var v1=DayPilot.Util.div($2c,$2n,$2m,$z,$2o-$2m);v1.style.boxSizing="border-box";v1.style.borderRightWidth=$z+"px";v1.className=$i.$9S("_link_vertical");DayPilot.Util.addClass(v1,$23.cssClass);$2d(v1,"Right");$2g(v1);var a;if($28){a=DayPilot.Util.div($2c,$2n-5+Math.floor($z/2),$2o-5,0,0);if($21.y<to.y){a.style.borderColor=$28+" transparent transparent transparent";}else{a.style.borderColor="transparent transparent "+$28+"transparent";};a.style.borderStyle="solid";a.style.borderWidth="5px";}else{a=DayPilot.Util.div($2c,$2n-6+Math.floor($z/2),$2o-6,6,6);if($21.y<to.y){a.className=$i.$9S("_link_arrow_down");}else{a.className=$i.$9S("_link_arrow_up");};DayPilot.Util.addClass(a,$23.cssClass);};$2g(a,true);}}}else if($X==="StartToFinish"){var $2b=5;var $2k=to.y-$2b;var h1=DayPilot.Util.div($2c,to.x,to.y+$R-$W,$29+$z,$z);h1.style.boxSizing="border-box";h1.style.borderBottomWidth=$z+"px";h1.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h1,$23.cssClass);$2d(h1,"Bottom");$2g(h1);var v1=DayPilot.Util.div($2c,to.x+$29,to.y+$R-$W,$z,$2k-(to.y+$R-$W)+0);v1.style.boxSizing="border-box";v1.style.borderRightWidth=$z+"px";v1.className=$i.$9S("_link_vertical");DayPilot.Util.addClass(v1,$23.cssClass);$2d(v1,"Right");$2g(v1);var h2=DayPilot.Util.div($2c,$21.x-$29,$2k,to.x+2*$29+$z-$21.x,$z);h2.style.boxSizing="border-box";h2.style.borderBottomWidth=$z+"px";h2.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h2,$23.cssClass);$2d(h2,"Bottom");$2g(h2);var v2=DayPilot.Util.div($2c,$21.x-$29,$2k,$z,$21.y+$R-$W-$2k+0);v2.style.boxSizing="border-box";v2.style.borderRightWidth=$z+"px";v2.className=$i.$9S("_link_vertical");DayPilot.Util.addClass(v2,$23.cssClass);$2d(v2,"Right");$2g(v2);var h3=DayPilot.Util.div($2c,$21.x-$29,$21.y+$R-$W,$29,$z);h3.style.boxSizing="border-box";h3.style.borderBottomWidth=$z+"px";h3.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h3,$23.cssClass);$2d(h3,"Bottom");$2g(h3);var a;if($28){a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,0,0);a.style.borderColor="transparent "+$28+" transparent transparent";a.style.borderStyle="solid";a.style.borderWidth="6px";}else{a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,6,6);a.className=$i.$9S("_link_arrow_left");DayPilot.Util.addClass(a,$23.cssClass);};$2g(a,true);}else if($X==="StartToStart"){var nx=Math.min($21.x,to.x)-$29;var h1=DayPilot.Util.div($2c,nx,$21.y+$R-$W,$21.x-nx,$z);h1.style.boxSizing="border-box";h1.style.borderBottomWidth=$z+"px";h1.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h1,$23.cssClass);$2d(h1,"Bottom");$2g(h1);var v1=DayPilot.Util.div($2c,nx,$21.y+$R-$W,$z,to.y-$21.y);v1.style.boxSizing="border-box";v1.style.borderRightWidth=$z+"px";v1.className=$i.$9S("_link_vertical");DayPilot.Util.addClass(v1,$23.cssClass);$2d(v1,"Right");$2g(v1);var h3=DayPilot.Util.div($2c,nx,to.y+$R-$W,to.x-nx,$z);h3.style.boxSizing="border-box";h3.style.borderBottomWidth=$z+"px";h3.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h3,$23.cssClass);$2d(h3,"Bottom");$2g(h3);var a;if($28){a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,0,0);a.style.borderColor="transparent transparent transparent "+$28;a.style.borderStyle="solid";a.style.borderWidth="6px";}else{a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,6,6);a.className=$i.$9S("_link_arrow_right");DayPilot.Util.addClass(a,$23.cssClass);};$2g(a,true);}else if($X==="FinishToFinish"){var fx=Math.max(to.x,$21.x)+$29;var h1=DayPilot.Util.div($2c,$21.x,$21.y+$R-$W,fx-$21.x,$z);h1.style.boxSizing="border-box";h1.style.borderBottomWidth=$z+"px";h1.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h1,$23.cssClass);$2d(h1,"Bottom");$2g(h1);var v1=DayPilot.Util.div($2c,fx,$21.y+$R-$W,$z,to.y-$21.y);v1.style.boxSizing="border-box";v1.style.borderRightWidth=$z+"px";v1.className=$i.$9S("_link_vertical");DayPilot.Util.addClass(v1,$23.cssClass);$2d(v1,"Right");$2g(v1);var h3=DayPilot.Util.div($2c,to.x,to.y+$R-$W,fx-to.x,$z);h3.style.boxSizing="border-box";h3.style.borderBottomWidth=$z+"px";h3.className=$i.$9S("_link_horizontal");DayPilot.Util.addClass(h3,$23.cssClass);$2d(h3,"Bottom");$2g(h3);var a;if($28){a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,0,0);a.style.borderColor="transparent "+$28+" transparent transparent";a.style.borderStyle="solid";a.style.borderWidth="6px";}else{a=DayPilot.Util.div($2c,to.x-6,to.y+$R-$W-5,6,6);a.className=$i.$9S("_link_arrow_left");DayPilot.Util.addClass(a,$23.cssClass);};$2g(a,true);}};this.$bW=function($l,$q){var $0Q={};$0Q.from=$l.from;$0Q.to=$l.to;$0Q.type=$l.type;$i.$ak("LinkCreate",$0Q,$q);};this.$bY=function($l,$q){var $0Q={};$0Q.from=$l.from;$0Q.to=$l.to;$0Q.type=$l.type;$i.$ak("LinkCreate",$0Q,$q,"Notify");};this.$bX=function($l,$q){var $0Q={};$0Q.from=$l.from;$0Q.to=$l.to;$0Q.type=$l.type;$i.$aj("LinkCreate",$0Q,$q);};this.$c0=function(i){var top=0;var $W=0;var $1t=0;if(i>this.rowlist.length-1){throw "Row index too high (DayPilotScheduler._getRowByIndex)";};for(var j=0;j<=i;j++){var $I=this.rowlist[j];if($I.hidden){continue;};$W+=$I.height;$1t++;};top=$W-$I.height;var $j={};$j.top=top;$j.height=$I.height;$j.bottom=$W;$j.i=$1t-1;$j.data=$I;return $j;};this.$c1=function(){if(this.backendUrl){return(typeof $i.events.list==='undefined')||(!$i.events.list);}else{return false;}};this.events.find=function(id){if(!$i.events.list||typeof $i.events.list.length==='undefined'){return null;};var $2p=$i.events.list.length;for(var i=0;i<$2p;i++){if($i.events.list[i].id===id){return new DayPilot.Event($i.events.list[i],$i);}};return null;};this.events.all=function(){var $Y=[];for(var i=0;i<$i.events.list.length;i++){var e=new DayPilot.Event($i.events.list[i],$i);$Y.push(e);};return DayPilot.list($Y);};this.events.filter=function($l){$i.events.$c2=$l;$i.$aI({"eventsOnly":true});};this.events.edit=function(e){var $02=$i.$bZ(e);if(!$02){return;};$i.$an($02);};this.events.load=function($2q,$2r,$2s){var $2t=function($l){var $2u={};$2u.exception=$l.exception;$2u.request=$l.request;if(typeof $2s==='function'){$2s($2u);}};var $2v=function($l){var r=$l.request;var $q;try{$q=DayPilot.Util.parseJSON(r.responseText);}catch(e){var $2w={};$2w.exception=e;$2t($2w);return;};if(DayPilot.isArray($q)){var $2x={};$2x.preventDefault=function(){this.preventDefault.value=true;};$2x.data=$q;if(typeof $2r==="function"){$2r($2x);};if($2x.preventDefault.value){return;};$i.events.list=$q;if($i.$aU){$i.update();}}};DayPilot.ajax({"method":"POST","data":{"start":$i.visibleStart().toString(),"end":$i.visibleEnd().toString()},"url":$2q,"success":$2v,"error":$2t});};this.events.findRecurrent=function($2y,$0G){if(!$i.events.list||typeof $i.events.list.length==='undefined'){return null;};var $2p=$i.events.list.length;for(var i=0;i<$2p;i++){if($i.events.list[i].recurrentMasterId===$2y&&$i.events.list[i].start.getTime()===$0G.getTime()){return new DayPilot.Event($i.events.list[i],$i);}};return null;};this.events.$aB=function($q){var $15=[];for(var i=0;i<$i.rowlist.length;i++){var $I=$i.rowlist[i];if($I.isNewRow){continue;};$i.$a7(i);for(var r=0;r<$I.events.length;r++){if($I.events[r].data===$q){$15.push(i);$I.events.splice(r,1);break;}}};return $15;};this.events.$aC=function($q){var $15=[];var $2z=$i.$c3()||$i.viewType==="Days";var $1t=DayPilot.indexOf($i.events.list,$q);$i.$c4($1t);for(var i=0;i<$i.rowlist.length;i++){var $I=$i.rowlist[i];if($I.isNewRow){continue;};$i.$a7(i);var ep=$i.$c5($q,$I);if(ep){if(typeof $i.onBeforeEventRender==='function'){ep.cache=$i.$97.events[$1t];};$15.push(i);if(!$2z){break;}}};return $15;};this.events.update=function(e,$q){var $0Q={};$0Q.oldEvent=new DayPilot.Event(e.copy(),$i);$0Q.newEvent=new DayPilot.Event(e.temp(),$i);var $14=new DayPilot.Action($i,"EventUpdate",$0Q,$q);var $2A=DayPilot.list($i.events.list).find(function($00){var $q=$00 instanceof DayPilot.Event?$00.data:$00;return $q===e.data;});if(!$2A){return;};if($i.$c6.scope){$i.$c6.notify(function(){e.commit();});}else{var $15=$i.events.$aB(e.data);e.commit();$15=$15.concat($i.events.$aC(e.data));$i.$aD($15);$i.$aE();if($i.$aU){if($i.viewType==="Gantt"){$i.update();}else{$i.$aF($15);$i.$9s();}}};return $14;};this.events.remove=function(e,$q){var $0Q={};$0Q.e=new DayPilot.Event(e.data,$i);var $14=new DayPilot.Action($i,"EventRemove",$0Q,$q);var $1t=DayPilot.indexOf($i.events.list,e.data);$i.events.list.splice($1t,1);if($i.$c6.scope){$i.$c6.notify();}else{var $15=$i.events.$aB(e.data);$i.$aD($15);$i.$aE();if($i.$aU){if($i.viewType==="Gantt"){$i.update();}else{$i.$aF($15);$i.$9s();}}};return $14;};this.events.add=function(e,$q){e.calendar=$i;if(!$i.events.list){$i.events.list=[];};$i.events.list.push(e.data);var $14=new DayPilot.Action($i,"EventAdd",$0Q,$q);if(!$i.$aU){return $14;};if($i.$c6.scope){$i.$c6.notify();}else{var $0Q={};$0Q.e=e;var $15=$i.events.$aC(e.data);$i.events.$c7($15);};return $14;};this.events.$c8={"rows":[]};this.events.$c9=null;this.events.$c7=function($15){clearTimeout($i.events.$c9);var $22=$i.events.$c8.rows;DayPilot.list($15).each(function($I){$22.push($I);});$i.events.$c8.rows=DayPilot.ua($22);var $0W=function(){var $15=$i.events.$c8.rows;$i.events.$c8.rows=[];$i.$aD($15);$i.$aE();if($i.$aU){if($i.viewType==="Gantt"){$i.update();}else{$i.$aF($15);$i.$9s();}}};$i.events.$c9=setTimeout($0W);};this.queue={};this.queue.list=[];this.queue.list.ignoreToJSON=true;this.queue.add=function($14){if(!$14){return;};if($14.isAction){$i.queue.list.push($14);}else{throw "DayPilot.Action object required for queue.add()";}};this.queue.notify=function($q){var $0Q={};$0Q.actions=$i.queue.list;$i.$ak('Notify',$0Q,$q,"Notify");$i.queue.list=[];};this.queue.clear=function(){$i.queue.list=[];};this.queue.pop=function(){return $i.queue.list.pop();};this.cells.find=function($K,$1k){var $x=$i.getPixels(new DayPilot.Date($K));if(!$x){return $2B();};var x=$x.i;var $I=$i.$9J($1k);if(!$I){return $2B();};var top=$I.top;var y=$i.$bK(top).i;return this.findXy(x,y);};this.cells.findByPixels=function(x,y){var $0F=$i.$ae(x);if(!$0F){return $2B();};var x=$0F.x;var $I=$i.$bK(y);if(!$I){return $2B();};var y=$I.i;return this.findXy(x,y);};this.cells.all=function(){var $Y=[];var $1J=$i.itline.length;var $2C=$i.rowlist.length;for(var x=0;x<$1J;x++){for(var y=0;y<$2C;y++){var $P=$i.cells.findXy(x,y);$Y.push($P[0]);}};return $2B($Y);};this.cells.$ca=function(x,y){var $0F=$i.$am(x);var $I=$i.rowlist[y];var $1p=$I.start.getTime()-$i.$a6().getTime();var $K=$0F.start.addTime($1p);var end=$0F.end.addTime($1p);var $P={};$P.x=x;$P.y=y;$P.i=x+"_"+y;$P.resource=$I.id;$P.start=$0F.start;$P.end=$0F.end;$P.isParent=$I.children&&$I.children.length;$P.update=function(){if(!$i.rowlist[$P.y].hidden){var $16=$i.$97.cells[$P.i];$i.$cb($16);var $J=$i.$9L();if($J.xStart<=$P.x&&$P.x<=$J.xEnd){if($J.yStart<=$P.y&&$P.y<=$J.yEnd){$i.$cc($P.x,$P.y);}}}};$P.utilization=function(name){if(!$I.sections){$I.calculateUtilization();};return $I.sections.forRange($K,end).maxSum(name);};$P.events=function(){return $I.events.forRange($K,end);};$P.div=$i.$97.cells[$P.i];var p=$i.$cd(x,y);$P.properties=p;return $P;};this.cells.findXy=function(x,y){if(DayPilot.isArray(x)){var $M=[];for(var i=0;i<x.length;i++){var o=x[i];$M.push($i.cells.$ca(o.x,o.y));};return $2B($M);}else if(x===null||y===null){return $2B();};var $P=$i.cells.$ca(x,y);return $2B($P);};var $2D=function(a){var $Y=[];if(DayPilot.isArray(a)){for(var i=0;i<a.length;i++){$Y.push(a[i]);}}else if(typeof a==='object'){$Y.push(a);};$Y.each=function(f){if(!f){return;};for(var i=0;i<$Y.length;i++){f($Y[i]);}};return $Y;};this.$ce=function(a){var $Y=DayPilot.list();if(DayPilot.isArray(a)){for(var i=0;i<a.length;i++){$Y.push(a[i]);}}else if(typeof a==='object'){$Y.push(a);};$Y.cssClass=function($2E){this.each(function($00){$00.properties.cssClass=DayPilot.Util.addClassToString($00.properties.cssClass,$2E);$00.update();});return this;};$Y.removeClass=function($2E){this.each(function($00){$00.properties.cssClass=DayPilot.Util.removeClassFromString($00.properties.cssClass,$2E);$00.update();});return this;};$Y.addClass=$Y.cssClass;$Y.html=function($08){this.each(function($00){$00.properties.html=$08;$00.update();});return this;};return $Y;};var $2B=this.$ce;this.$c6={};this.$c6.scope=null;this.$c6.notify=function(f){if($i.$c6.scope){$i.$c6.scope["$apply"](f);}};this.debug=new DayPilot.Debug(this);this.$cf=function($u){if($i.viewType!=='Days'){throw "Checking row start when viewType !== 'Days'";};for(var i=0;i<$i.rowlist.length;i++){var $I=$i.rowlist[i];var $q=$I.element?$I.element.data:$I.data;var $K=$q.start;if($u.getTime()>=$K.getTime()&&$u.getTime()<$K.addDays(1).getTime()){return $K;}};return null;};this.$cg=function($u){if($u.ticks===this.startDate.ticks){return $u;};var $2F=this.startDate;if($u.ticks<this.startDate.ticks){var $2G=this.itline[0].end.ticks-this.itline[0].start.ticks;while($2F.ticks>$u.ticks){$2F=$2F.addTime(-$2G);};return $2F;};if($i.viewType==='Days'){var $2H=this.$cf($u);var $0B=$2H.getTime()-$i.$a6().getTime();var $P=this.$ag($u.addTime(-$0B));if($P.current){return $P.current.start.addTime($0B);};if($P.past){return $P.previous.end.addTime($0B);};throw "getBoxStart(): time not found";}else{var $P=this.$ag($u);if($P.current){return $P.current.start;};if($P.past){return $P.previous.end;};if($P.hidden){var $G=$P.next.start.getTime()-$u.getTime();var $2I=$P.next.end.getTime()-$P.next.start.getTime();var $2J=Math.ceil($G/$2I)*$2I;var $j=$P.next.start.addTime(-$2J);return $j;};throw "getBoxStart(): time not found";}};this.$bR=function($1R){var $I=this.$bK($i.coords.y);var e=$1R.event;if(typeof e.end !=='function'){throw "e.end function is not defined";};if(!e.end()){throw "e.end() returns null";};var $0H=DayPilot.DateUtil.diff(e.rawend(),e.start());$0H=Math.max($0H,1);var $2K=$0a.useBox($0H);var $2L=e.data&&e.data.type==="Milestone";var $2M=$i.eventHeight;var $2N=0;var x=$i.coords.x;if($2L){x+=$2M/2;};if($i.scale==="Manual"){var $2O=(function(){var end=$i.getDate($i.coords.x,true,true);var $K=end.addTime(-$0H);var $2P=$i.getPixels($K).boxLeft;var $2Q=$i.getPixels(end).boxRight;var end=Math.min($2Q,$i.coords.x);return end -$2P;})();var $0B=Math.min(DayPilotScheduler.moveOffsetX,$2O);x=$i.coords.x-$0B;};var $1p=0;var $2R=this.viewType==='Days'||this.$ch();if($2R&&!e.part.external){$1p=this.rowlist[e.part.dayIndex].start.getTime()-this.$a6().getTime();};if($2K&&!$2L){var $P=$i.$ag(e.start());var $2S=!$P.hidden&&!$P.past;$2N=e.start().getTime()-this.$cg(e.start().addTime(-$1p)).addTime($1p).getTime();if($2S){$2N=(function($2T,$0B){var $2U=$i.$ci($i.$ag($2T).current);var $2V=$i.$ci($i.$ae(x).cell);if($2U>$2V*1.2){var $2W=$0B>0?1:-1;var $0B=Math.abs($0B);while($0B>=$2V){$0B-=$2V;};$0B*=$2W;};return $0B;})(e.start(),$2N);}};var $2X=0;if(DayPilotScheduler.moveDragStart&&$i.scale!=="Manual"){if($2K){var $2Y=e.start().addTime(-$1p);var $2Z=this.$cg($2Y);$2X=DayPilotScheduler.moveDragStart.getTime()-$2Z.getTime();var $30=$i.$cj()*60*1000;$2X=Math.floor($2X/$30)*$30;}else{$2X=DayPilotScheduler.moveDragStart.getTime()-e.start().addTime($1p).getTime();}}else{$2X=0;};if(this.eventMoveToPosition){$2X=0;};var $K=this.getDate(x,true).addTime(-$2X).addTime($1p);if(DayPilotScheduler.resizing){$K=e.start();};if(this.snapToGrid){$K=this.$cg($K.addTime(-$1p)).addTime($1p);};$K=$K.addTime($2N);var end=$K.addTime($0H);var $31=$K;var $32=end;if($2R){$31=$K.addTime(-$1p);$32=$31.addTime($0H);var $33=$I.element.data.start.getTime()-this.$a6().getTime();$K=$31.addTime($33);end=$K.addTime($0H);};var $34=this.getPixels($31);var $35=this.getPixels($32);var $N=($2K)?$34.boxLeft:$34.left;var $z=($2K)?($35.boxRight-$N):($35.left-$N);if($2L){$z=$2M;$N-=$z/2;};var $1T={};$1T.top=$I.top;$1T.left=$N;$1T.row=$I.element;$1T.rowIndex=$I.i;$1T.width=$z;$1T.start=$K;$1T.end=end;$1T.relativeY=$i.coords.y-$I.top;return $1T;};this.$cj=function(){switch(this.scale){case "CellDuration":return this.cellDuration;case "Minute":return 1;case "Hour":return 60;case "Day":return 60*24;case "Week":return 60*24*7;case "Month":return 60*24*30;case "Year":return 60*24*365;};throw "can't guess cellDuration value";};this.$ci=function($0F){return $0F.end.ticks-$0F.start.ticks;};this.$bU=function(y){return this.treePreventParentUsage&&this.$ck(y);};this.$ck=function(y){var $I=this.rowlist[y];if($I.isParent){return true;};if(this.treeEnabled){if($I.children&&$I.children.length>0){return true;}};return false;};this.$cl={};this.$cm=function(){if(!$i.treeAutoExpand){return;};var $1T=this.$bR(DayPilotScheduler.moving);var y=$1T.rowIndex;var $36=this.$ck(y);var $37=this.$cl;if($37.timeout&&$37.y!==y){clearTimeout($37.timeout);$37.timeout=null;};if($36){$37.y=y;if(!$37.timeout){$37.timeout=setTimeout(function(){var $38=!$i.rowlist[$37.y].expanded;if($38){$i.$cn($37.y);$i.$co();};$37.timeout=null;},500);}}};this.$cp=function(){var $39=DayPilotScheduler.resizingShadow.clientWidth;var $3a=DayPilotScheduler.resizingShadow.offsetLeft;var e=DayPilotScheduler.resizing.event;var $3b=DayPilotScheduler.resizing.dpBorder;var $I=$i.rowlist[DayPilotScheduler.resizing.event.part.dayIndex];var $1p=0;$1p=$I.start.getTime()-$i.$a6().getTime();var $0m=null;var $0V=null;var $3c=!$i.snapToGrid;if($3b==='left'){$0m=$i.getDate($3a,$3c).addTime($1p);$0V=e.rawend();}else if($3b==='right'){$0m=e.start();$0V=$i.getDate($3a+$39,$3c,true).addTime($1p);};DayPilotScheduler.resizingShadow.start=$0m;DayPilotScheduler.resizingShadow.end=$0V;$0Y.update();};this.$cq={};var $3d=this.$cq;$3d.getWidth=function(){return $i.nav.top.offsetWidth;};$3d.getHeight=function(){return $i.nav.top.offsetHeight-DayPilot.sh($i.nav.scroll)-1;};$3d.getRowHeaderWidth=function(){return $i.$9V();};$3d.getTimeHeaderHeight=function(){return $i.$9U();};$3d.download=function(name){var $3e=$3d.canvas();var name=name||"image.png";if(window.navigator.msSaveBlob){var $3f=$3e.msToBlob();window.navigator.msSaveBlob($3f,name);}else{var link=document.createElement("a");link.download=name;link.href=$3e.toDataURL();link.click();}};$3d.getCanvas=function(){return $3d.canvas();};$3d.getRectangles=function($3e){var $3g=$3d.getRowHeaderWidth();var $3h=$3d.getTimeHeaderHeight();var $3i={};$3i.main={"x":0,"y":0,"w":$3e.getWidth(),"h":$3e.getHeight()};$3i.corner={"x":0,"y":0,"w":$3g,"h":$3h};$3i.grid={"x":$3g,"y":$3h,"w":$3e.getWidth()-$3g,"h":$3e.getHeight()-$3h};return $3i;};$3d.getViewportRows=function(){var $j=DayPilot.list();var top=$i.$cr;var $W=top+$i.nav.scroll.offsetHeight;var $3j=$i.$bK(top).i;var $3k=$i.$bK($W).i;if($3k<$i.rowlist.length){$3k+=1;};for(var y=$3j;y<$3k;y++){var $I=$i.rowlist[y];if($I.hidden){continue;};$j.push($I);};$j.offset=$3j;return $j;};$3d.getViewportEvents=function(){return $Q.events();};$3d.getViewportTimeline=function(){var $j=DayPilot.list();if($i.itline&&$i.itline.length>0){var $N=$i.$cs;var $O=$N+$i.$ct;var $K=$i.$ae($N).x;var end=$i.$ae($O,true).x;var $3l=$i.$9T();end=Math.min(end,$3l);$K=Math.max($K,0);for(var x=$K;x<=end;x++){var $P=$i.itline[x];$j.push($P);};$j.offset=$K;};return $j;};$3d.getViewportTimeHeader=function(y){var $j=DayPilot.list();var $3m=dp.nav.scroll.scrollLeft;var $3n=$3m+dp.nav.scroll.offsetWidth;var $3o=$i.$cu(y,$3m);var $3p=$i.$cu(y,$3n);if(!$3p){$3p={"x":$i.timeHeader[y].length-1};};for(var x=$3o.x;x<=$3p.x;x++){var $P=$i.timeHeader[y][x];$j.push($P);};return $j;};$3d.fakeDurationBar=function(){var $02=document.createElement("div");$02.style.display="none";$02.className=$i.$9S("_event");var $3q=document.createElement("div");$3q.className=$i.$9S("_event_bar");var $05=document.createElement("div");$05.className=$i.$9S("_event_bar_inner");document.body.appendChild($02);$3q.appendChild($05);$02.appendChild($3q);return $02;};$3d.fakeCell=function(){var $02=document.createElement("div");$02.style.display="none";$02.className=$i.$9S("_cell");var $05=document.createElement("div");$05.className=$i.$9S("_cell_inner");document.body.appendChild($02);$02.appendChild($05);return $02;};$3d.fakeExpand=function(){var $02=document.createElement("div");$02.style.display="none";$02.className=$i.$9S('_tree_image_expand');document.body.appendChild($02);return $02;};$3d.extractUrl=function($3r){var $3s=/url\((.*)\)/.exec($3r);return $3s[1];};$3d.getImages=function(){var $j={};var $1L=$3d.fakeExpand();$j.expand=$3d.extractUrl(new DayPilot.StyleReader($1L).get("background-image"));$1L.className=$i.$9S("_tree_image_collapse");$j.collapse=$3d.extractUrl(new DayPilot.StyleReader($1L).get("background-image"));$1L.className=$i.$9S("_tree_image_no_children");$j.nochildren=$3d.extractUrl(new DayPilot.StyleReader($1L).get("background-image"));DayPilot.de($1L);return $j;};$3d.canvas=function(){var $3e=new DayPilot.Canvas($3d.getWidth(),$3d.getHeight());var $3i=$3d.getRectangles($3e);var $3t=$3d.getImages();var $3u=new DayPilot.StyleReader($i.nav.corner).get("background-color");var $3v=new DayPilot.StyleReader($i.nav.top).get("border-color");var $3w=new DayPilot.StyleReader($i.nav.divider).get("background-color");var $3x=new DayPilot.StyleReader(DayPilot.list($i.elements.events).map(function($00){return $00.firstChild;}).last()).get("border-color");var $3q=$3d.fakeDurationBar();var $3y=new DayPilot.StyleReader($3q.firstChild).get("background-color");var $3z=new DayPilot.StyleReader($3q.firstChild.firstChild).get("background-color");DayPilot.de($3q);var $P=$3d.fakeCell();var $3A=new DayPilot.StyleReader($P).get("background-color");DayPilot.Util.addClass($P,$i.$9S("_cell_business"));var $3B=new DayPilot.StyleReader($P).get("background-color");DayPilot.de($P);var $3C=DayPilot.Util.firstPropValue($i.$97.linesVertical);var $3D=new DayPilot.StyleReader($3C).get("background-color");var $3E=new DayPilot.StyleReader($i.$97.timeHeader["0_0"]).get("font");var $3F=new DayPilot.StyleReader($i.$97.timeHeader["0_0"]).get("color");var $3m=dp.nav.scroll.scrollLeft;var $3n=$3m+dp.nav.scroll.offsetWidth;var $3G=dp.nav.scroll.scrollTop;$3e.fillRect($3i.corner,$3u);DayPilot.list($i.timeHeader).each(function($00,y){$3d.getViewportTimeHeader(y).each(function($P){var $N=$3i.grid.x+$P.left-$3m;var top=y*$i.headerHeight;var $z=$P.width;var $R=$i.headerHeight;var $3H=Math.max(0,$3i.grid.x-$N);$N+=$3H;$z-=$3H;var $3H=Math.max(0,$N+$z-($3i.grid.x+$3i.grid.w));$z-=$3H;var $3I={"x":$N,"y":top,"w":$z+1,"h":$R+1};$3e.fillRect($3I,$3u);$3e.rect($3I,$3v);$3e.text($3I,$P.innerHTML,$3E,$3F,"center");});});$3d.getViewportTimeline().each(function($P){var $N=$3i.grid.x+$P.left-$3m;var $3H=Math.max(0,$3i.grid.x-$N);$N+=$3H;if($N===$3i.grid.x){return;};$3e.line($N,$3i.grid.y+1,$N,$3i.grid.y+$3i.grid.h-2,$3D);});$3d.getViewportRows().each(function($I,y,$15){var y=$15.offset+y;$3d.getViewportTimeline().each(function($P,x,$3J){var x=$3J.offset+x;var $23=$i.$cd(x,y);var top=$3i.grid.y+$I.top-$3G;var $3K=Math.max(0,$3i.grid.y-top);top+=$3K;var $N=$3i.grid.x+$P.left-$3m;var $3H=Math.max(0,$3i.grid.x-$N);$N+=$3H;var $3L=$23.business;var $3M=$23.backColor||($3L?$3B:$3A);var $3N={"x":$N,"y":top,"w":$P.width,"h":$I.height};$3e.fillRect($3N,$3M);});});$3d.getViewportRows().each(function($I){var top=$3i.grid.y+$I.top-$3G;var $3K=Math.max(0,$3i.grid.y-top);top+=$3K;if(top===$3i.grid.y){return;};$3e.line($3i.grid.x+1,top,$3i.grid.x+$3i.grid.w-1,top,$3D);});$3d.getViewportRows().each(function($I){var top=$3i.grid.y+$I.top-$3G;var $3K=Math.max(0,$3i.grid.y-top);top+=$3K;var $3O=10;var $N=$I.level*$i.treeIndent+$i.treeImageMarginLeft;var $3N={"x":0,"y":top,"w":$3i.grid.x+1,"h":$I.height+1};var $1s=$I.html;var $3P={"x":$N,"y":top+$i.treeImageMarginTop,"w":10,"h":10};var $3Q={"x":$N+$3O,"y":top,"w":$3N.w-($N+$3O),"h":$I.height+1};$3e.fillRect($3N,$3u);$3e.text($3Q,$1s,$3E,$3F);$3e.rect($3N,$3v);var $3R=null;if(DayPilot.list($I.children).isEmpty()){$3R=$3t.nochildren;}else if($I.expanded){$3R=$3t.collapse;}else{$3R=$3t.expand;};$3e.image($3P,$3R);});$3d.getViewportEvents().each(function($02){var e=$02.event;var $3S=$i.rowlist[e.part.dayIndex].top;var $z=e.part.width;var $3T=e.part.barWidth;var top=$3i.grid.y+$3S+e.part.top-$3G;var $3K=Math.max(0,$3i.grid.y-top);top+=$3K;var $N=$3i.grid.x+e.part.left-$3m;var $3H=Math.max(0,$3i.grid.x-$N);$N+=$3H;$z-=$3H;$3T-=$3H;var $3U=e.data.barColor||$3z;var $3V=e.data.barBackColor||$3y;var $3M=e.data.backColor||"white";var $3W=5;var $3N={"x":$N,"y":top,"w":$z,"h":e.part.height};var $3X={"x":$N,"y":top,"w":$z,"h":$3W};var $3Y={"x":$N+e.part.barLeft,"y":top,"w":$3T,"h":$3W};var $3Z={"x":$N,"y":top+$3W,"w":$z,"h":e.part.height-$3W};$3e.fillRect($3N,$3M);$3e.text($3Z,e.text(),$3E,$3F,"left",2);$3e.rect($3N,$3x);$3e.fillRect($3X,$3V);if($3T>0){$3e.fillRect($3Y,$3U);}});$3e.rect($3i.main,$3v);$3e.line($3i.grid.x,0,$3i.grid.x,$3i.main.h,$3w);$3e.line(0,$3i.grid.y,$3i.main.w,$3i.grid.y,$3w);return $3e.getCanvasElement();};this.$cv={};var $40=this.$cv;$40.findJointDivs=function(e){var id=e.data.join;if(!id){return DayPilot.list();};var $2f=DayPilot.list($i.elements.events).filter(function($00){return $00.event.data.join===id&&$00.event!==e;});return $2f;};this.$cw={};var $0Y=this.$cw;$0Y.divs=[];$0Y.list=[];$0Y.forbidden=false;$0Y.additional=function(){var $Y=DayPilot.list();var $41=$i.multiselect.isSelected(DayPilotScheduler.resizing.event);var $42=$i.allowMultiResize;var $Y=DayPilot.list();if($41&&$42){$Y=DayPilot.list($i.multiselect.divs).filter(function($00){return $00!==DayPilotScheduler.resizing;});};var j=$40.findJointDivs(DayPilotScheduler.resizing.event);$Y=$Y.concat(j);return $Y;};$0Y.update=function(){$0Y.clear();$0Y.draw();};$0Y.clear=function(){DayPilot.de($0Y.divs);$0Y.divs=[];};$0Y.draw=function(){if(!DayPilotScheduler.resizing){return;};var e=DayPilotScheduler.resizing.event;var $1U=DayPilotScheduler.resizingShadow;var $43=$1U.start.getTime()-e.start().getTime();var $44=$1U.end.getTime()-e.end().getTime();var $45=0;$0Y.list=[];$0Y.forbidden=false;$0Y.invalid=false;$0Y.rowoffset=$45;$0Y.additional().each(function($00){if(!$00.event){return;};var event=$00.event;var $I=$i.rowlist[event.part.dayIndex+$45];if(!$I){$0Y.invalid=true;return;};var top=event.part.top+$I.top;var $R=event.part.height;if($45){top=$I.top;$R=$I.height;};var $31=event.start().addTime($43);var $32=event.end().addTime($44);var $0Z={};$0Z.event=event;$0Z.start=$31;$0Z.end=$32;$0Z.overlapping=false;$0Y.list.push($0Z);var $34=$i.getPixels($31);var $35=$i.getPixels($32);var $0H=DayPilot.DateUtil.diff(event.rawend(),event.start());$0H=Math.max($0H,1);var $2K=$0a.useBox($0H);var $N=($2K)?$34.boxLeft:$34.left;var $z=($2K)?($35.boxRight-$N):($35.left-$N);var $02=document.createElement("div");$02.style.position="absolute";$02.style.left=$N+"px";$02.style.top=top+"px";$02.style.height=$R+"px";$02.style.width=$z+"px";$02.style.zIndex=101;$02.style.overflow="hidden";$02.className=$i.$9S("_shadow");$02.info=$0Z;var $05=document.createElement("div");$05.className=$i.$9S("_shadow_inner");$02.appendChild($05);$i.$9H.appendChild($02);$0Y.divs.push($02);});if($0Y.invalid){var $46=$i.$9S("_shadow_overlap");DayPilot.list($0Y.divs).each(function($00){DayPilot.Util.addClass($00,$46);});return;};DayPilot.list($0Y.divs).each(function($00){if(!$00.info){return;};var $02=$00;var $0Z=$00.info;var event=$00.info.event;var $I=$i.rowlist[event.part.dayIndex+$45];var $34=$i.getPixels($0Z.start);var $35=$i.getPixels($0Z.end);var $N=$34.left;var $z=$35.left-$N;var $47=DayPilot.list($0Y.list).map(function($00){return $00.event.data;}).add(DayPilotScheduler.resizing.event.data);$i.$cx($02,$I,$N,$z,$47);if($02.overlapping){$0Z.overlapping=true;$0Y.forbidden=true;}});};this.$cy={};var mm=this.$cy;mm.divs=[];mm.list=[];mm.forbidden=false;mm.verticalAll=function(){return $i.multiMoveVerticalMode==="All";};mm.additional=function(){var $Y=DayPilot.list();var $41=$i.multiselect.isSelected(DayPilotScheduler.moving.event);var $42=$i.allowMultiMove;var $Y=DayPilot.list();if($41&&$42){$Y=DayPilot.list($i.multiselect.divs).filter(function($00){return $00!==DayPilotScheduler.moving&&$00!==$0J.moving;});};var j=$40.findJointDivs(DayPilotScheduler.moving.event);$Y=$Y.concat(j);return $Y;};mm.update=function(){mm.clear();mm.draw();};mm.draw=function(){if(!DayPilotScheduler.moving){return;};var e=DayPilotScheduler.moving.event;var $K=DayPilotScheduler.movingShadow.start;var $0B=$K.getTime()-e.start().getTime();var $48=e.part.dayIndex;var $49=DayPilot.indexOf($i.rowlist,DayPilotScheduler.movingShadow.row);var $45=$49-$48;if(!mm.verticalAll()){$45=0;};mm.list=[];mm.forbidden=false;mm.invalid=false;mm.rowoffset=$45;mm.additional().each(function($00){if(!$00.event){return;};var event=$00.event;var $I=$i.rowlist[event.part.dayIndex+$45];if(!$I){mm.invalid=true;return;};var top=event.part.top+$I.top;var $R=event.part.height;if($45){top=$I.top;$R=$I.height;};var $31=event.start().addTime($0B);var $32=event.end().addTime($0B);var $0Z={};$0Z.event=event;$0Z.start=$31;$0Z.end=$32;$0Z.overlapping=false;mm.list.push($0Z);var $34=$i.getPixels($31);var $35=$i.getPixels($32);var $0H=DayPilot.DateUtil.diff(event.rawend(),event.start());$0H=Math.max($0H,1);var $2K=$0a.useBox($0H);var $N=($2K)?$34.boxLeft:$34.left;var $z=($2K)?($35.boxRight-$N):($35.left-$N);var $02=document.createElement("div");$02.style.position="absolute";$02.style.left=$N+"px";$02.style.top=top+"px";$02.style.height=$R+"px";$02.style.width=$z+"px";$02.style.zIndex=101;$02.style.overflow="hidden";$02.className=$i.$9S("_shadow");$02.info=$0Z;var $05=document.createElement("div");$05.className=$i.$9S("_shadow_inner");$02.appendChild($05);$i.$9H.appendChild($02);mm.divs.push($02);});if(mm.invalid){var $46=$i.$9S("_shadow_overlap");DayPilot.list(mm.divs).each(function($00){DayPilot.Util.addClass($00,$46);});return;};DayPilot.list(mm.divs).each(function($00){if(!$00.info){return;};var $02=$00;var $0Z=$00.info;var event=$00.info.event;var $I=$i.rowlist[event.part.dayIndex+$45];var $34=$i.getPixels($0Z.start);var $35=$i.getPixels($0Z.end);var $N=$34.left;var $z=$35.left-$N;var $47=DayPilot.list(mm.list).map(function($00){return $00.event.data;}).add(DayPilotScheduler.moving.event.data);$i.$cx($02,$I,$N,$z,$47);if($02.overlapping){$0Z.overlapping=true;mm.forbidden=true;}});};mm.clear=function(){DayPilot.de(mm.divs);mm.divs=[];};this.$cz=function(){var $1T=$i.coords;var $3b=DayPilotScheduler.resizing.dpBorder;var e=DayPilotScheduler.resizing.event;var $4a=e.part.left;if($3b=="right"){$4a+=e.part.width;};var $4b=DayPilotScheduler.resizing.event.calendar.cellWidth;var $4c=DayPilotScheduler.resizing.event.part.width;var $4d=DayPilotScheduler.resizing.event.part.left;var $4e=0;var $4f=($1T.x-$4a);var $4g,$4h;if($3b==='right'){$4g=$4d;if($i.snapToGrid){var $0F=$i.$ae($4c+$4d+$4f).cell;var $4i=$0F.left+$0F.width;$4h=$4i-$4d;if($4h<$4b){$4h=$4b;}}else{$4h=$4c+$4f;};var $y=$i.$cA();if($4d+$4h>$y){$4h=$y-$4d;};DayPilotScheduler.resizingShadow.style.width=($4h)+'px';}else if($3b==='left'){if($i.snapToGrid){if($4f>=$4c){$4f=$4c;};$4g=Math.floor((($4d+$4f)+0)/$4b)*$4b;if($4g<$4e){$4g=$4e;}}else{$4g=$4d+$4f;};$4h=$4c-($4g-$4d);var $O=$4d+$4c;var $4j=$4b;if(!$i.snapToGrid){$4j=1;}else if($i.useEventBoxes==="Never"){if($4c<$4b){$4j=$4c;}else{$4j=1;}};if($4h<$4j){$4h=$4j;$4g=$O-$4h;};DayPilotScheduler.resizingShadow.style.left=$4g+'px';DayPilotScheduler.resizingShadow.style.width=($4h)+'px';}else{throw "Invalid dpBorder.";};(function checkOverlap(){var ev=DayPilotScheduler.resizing.event;var $I=$i.rowlist[ev.part.dayIndex];var $N=$4g;var $z=$4h;$i.$cx(DayPilotScheduler.resizingShadow,$I,$N,$z,ev.data);})();$i.$cB();};this.$co=function(){var scroll=this.nav.scroll;if(!$i.coords){return;};if(!DayPilotScheduler.moving){return;};$i.$9W();var $1U=DayPilotScheduler.movingShadow;var $1T=this.$bR(DayPilotScheduler.moving);if($i.$bU($1T.rowIndex)){return;};var ev=DayPilotScheduler.moving.event;var $4k=0;(function calculatePosition(){var y=$1T.relativeY;var $I=$1T.row;var $4l=$I.lines.length;var top=0;var lh=$i.$bS.eventHeight();var $y=$I.lines.length;for(var i=0;i<$I.lines.length;i++){var $0u=$I.lines[i];if($0u.isFree($1T.left,$i.cellWidth)){$y=i;break;}};var $F=Math.floor((y-top+lh/ 2)/ lh);var $F=Math.min($y,$F);var $F=Math.max(0,$F);$4k=$F;})();var $1V=(ev.cache&&typeof ev.cache.moveVDisabled!=='undefined')?!ev.cache.moveVDisabled:!ev.data.moveVDisabled;var $1W=(ev.cache&&typeof ev.cache.moveHDisabled!=='undefined')?!ev.cache.moveHDisabled:!ev.data.moveHDisabled;var $4m=!mm.additional().isEmpty();if($4m&&$i.multiMoveVerticalMode==="Disabled"){$1V=false;};var $4n=$4k*$i.$bS.eventHeight();if($4n>0){$4n-=3;};if($1V){if(!this.$bU($1T.rowIndex)){$1U.row=$1T.row;$1U.style.height=Math.max($1T.row.height,0)+'px';$1U.style.top=($1T.top)+'px';if($i.eventMoveToPosition){$1U.style.top=($1T.top+$4n)+"px";$1U.style.height="3px";$1U.line=$4k;}}else{var $4o=$1U.row;var $4p=1;if($4o){$4p=$1T.rowIndex<$4o.index?1:-1;}else{return;};for(var i=$1T.rowIndex;i!==$4o.index;i+=$4p){var $I=this.rowlist[i];if(!this.$bU(i)&&!$I.hidden){$1U.style.top=($I.top)+'px';$1U.style.height=Math.max($I.height,0)+'px';$1U.row=$I;if($i.eventMoveToPosition){$4k=$4p>0?0:$I.lines.length-1;$1U.style.top=($1T.top+$4n)+"px";$1U.style.height="3px";$1U.line=$4k;};break;}}}}else{var $4o=$i.rowlist[ev.part.dayIndex];var $y=$4o.lines.length;for(var i=0;i<$4o.lines.length;i++){var $0u=$4o.lines[i];if($0u.isFree($1T.left,$i.cellWidth)){$y=i;break;}};if(!$4m){$1U.style.height=Math.max($4o.height,0)+'px';$1U.style.top=($4o.top)+'px';};$1U.row=$4o;if($i.eventMoveToPosition&&!$4m){if($1T.row===$4o){$1U.style.top=($4o.top+$4n)+"px";$1U.style.height="3px";$1U.line=$4k;}else{var $F=($1T.rowIndex>$4o.index&&$y>0)?$y*$i.$bS.eventHeight()-3:0;$1U.style.top=($4o.top+$F)+"px";$1U.style.height="3px";$1U.line=0;}}};if($1W){$1U.style.left=$1T.left+'px';if($i.eventMoveToPosition){$1U.style.width=($i.cellWidth)+'px';}else{$1U.style.width=($1T.width)+'px';};$1U.start=$1T.start;$1U.end=$1T.end;}else{$1U.style.left=ev.part.left+"px";$1U.start=ev.start();$1U.end=ev.rawend();};(function checkOverlap(){var $I=$1U.row;var $q=ev.data;var $z=$1T.width;var $N=$1T.left;var $47=DayPilot.list(mm.list).map(function($00){return $00.event.data;}).add($q);$i.$cx($1U,$I,$N,$z,$47);})();(function(){var $0C=$i.$cC;if($0C&&$0C.start.getTime()===$1U.start.getTime()&&$0C.end.getTime()===$1U.end.getTime()&&$0C.resource===$1U.row.id){return;};mm.update();var $l={};$l.start=$1U.start;$l.end=$i.$ax($1U.end);$l.duration=new DayPilot.Duration($l.start,$l.end);$l.e=ev;$l.resource=$1U.row.id;$l.row=$i.$bm($1U.row);$l.position=$1U.line;$l.overlapping=$1U.overlapping||mm.forbidden;$l.allowed=true;$l.left={};$l.left.html=$l.start.toString($i.eventMovingStartEndFormat);$l.left.enabled=$i.eventMovingStartEndEnabled;$l.right={};$l.right.html=$l.end.toString($i.eventMovingStartEndFormat);$l.right.enabled=$i.eventMovingStartEndEnabled;$l.multimove=DayPilot.list(mm.list);var $0Z={};$0Z.event=ev;$0Z.start=$l.start;$0Z.end=$l.end;$l.multimove.splice(0,0,$0Z);$i.$cC=$l;var $0l={"start":$l.start,"end":$l.end};if(typeof $i.onEventMoving==='function'){$i.onEventMoving($l);};$1U.allowed=$l.allowed;if($l.start!==$0l.start||$l.end !==$0l.end){var $K=$l.start;var end=$i.$b1($l.end);$1U.start=$K;$1U.end=end;var $0H=DayPilot.DateUtil.diff($K,end);$0H=Math.max($0H,1);var $2K=$0a.useBox($0H);var $N=$2K?$i.getPixels($K).boxLeft:$i.getPixels($K).left;var $O=$2K?$i.getPixels(end).boxRight:$i.getPixels(end).left;$1U.style.left=$N+"px";$1U.style.width=($O-$N)+"px";};$i.$cD($1U,$l);DayPilot.Util.addClass(DayPilotScheduler.moving,$i.$9S("_event_moving_source"));$i.$cE(DayPilotScheduler.movingShadow,$l);})();};this.$cx=function($1U,$I,$N,$z,$q){if($i.allowEventOverlap){return;};(function calculate(){$1U.overlapping=false;for(var i=0;i<$I.lines.length;i++){var $0u=$I.lines[i];if(!$0u.isFree($N,$z,$q)){$1U.overlapping=true;return;}};if(!$i.allowMultiRange){return;};var $4q=$I.index;var $4r=DayPilot.list(mr.list).some(function($00){var $02=$00.div;var $4s=parseInt($02.style.left);var $4t=parseInt($02.style.width);var ry=$00.start.y;if($1U===$02){return false;};if(ry!==$4q){return false;};return DayPilot.Util.overlaps($N,$N+$z,$4s,$4s+$4t);});if($4r){$1U.overlapping=true;return;}})();var $4u=$1U.overlapping;var $46=$i.$9S("_shadow_overlap");if($4u){DayPilot.Util.addClass($1U,$46);}else{DayPilot.Util.removeClass($1U,$46);}};this.$cD=function($1U,$l){var $46=$i.$9S("_shadow_forbidden");if(!$l.allowed||mm.invalid){DayPilot.Util.addClass($1U,$46);}else{DayPilot.Util.removeClass($1U,$46);}};this.$cE=function($1U,$l){var $4v=5;this.$cF();var $F={};$F.left=parseInt($1U.style.left);$F.top=parseInt($1U.style.top);$F.right=$F.left+parseInt($1U.style.width);var $z=$l.left.width||10;var $N=document.createElement("div");$N.style.position="absolute";$N.style.left=($F.left-$z-$4v)+"px";$N.style.top=$F.top+"px";$N.style.height=$i.eventHeight+"px";$N.style.overflow="hidden";$N.style.boxSizing="border-box";$N.innerHTML=$l.left.html;$N.className=this.$9S("_event_move_left");if($l.left.enabled){$i.divHover.appendChild($N);};if($l.left.width){$N.style.width=$z+"px";}else{$N.style.whiteSpace="nowrap";var $4w=$N.offsetWidth;var $4x=$F.left-$4w-$4v;$N.style.width=$4w+"px";$N.style.left=$4x+"px";};var $O=document.createElement("div");$O.style.position="absolute";$O.style.left=($F.right+$4v)+"px";$O.style.top=$F.top+"px";$O.style.height=$i.eventHeight+"px";$O.style.overflow="hidden";$O.style.boxSizing="border-box";if($l.right.width){$O.style.width=$l.right.width+"px";}else{$O.style.whiteSpace="nowrap";};$O.innerHTML=$l.right.html;$O.className=this.$9S("_event_move_right");if($l.right.enabled){$i.divHover.appendChild($O);}};this.$cF=function(){$i.divHover.innerHTML='';};this.$cG=function(){if(this.rowHeaderColumns){this.rowHeaderCols=DayPilot.Util.propArray(this.rowHeaderColumns,"width");}};this.$cH=function(){var $3l=0;this.$cG();if(this.rowHeaderCols){for(var i=0;i<this.rowHeaderCols.length;i++){$3l+=this.rowHeaderCols[i];}}else{$3l=this.rowHeaderWidth;};return $3l;};this.$cI=function(){return this.$cJ($i.progressiveRowRenderingPreload);};this.$cJ=function($4y){var $4y=$4y||0;var $K=0;var end=$i.rowlist.length;var $4z=$i.progressiveRowRendering;if($4z){var $J=$i.$9L();$K=$J.yStart;end=$J.yEnd+1;$K=Math.max(0,$K-$4y);end=Math.min($i.rowlist.length,end +$4y);};return{"start":$K,"end":end}};this.$cK=function(){if(!this.$cL()){return;};if(!this.rowHeaderWidthAutoFit){return;};var $4A=this.divHeader;if(!$4A){return;};if(!$4A.rows){return;};var $y=[];var $1l=$i.$cI();for(var i=$1l.start;i<$1l.end;i++){var $I=$4A.rows[i];if(!$I){continue;};if($I.hidden){continue;};if($I.autofitDone){continue;};$I.autofitDone=true;for(var j=0;j<$I.cells.length;j++){var $05=$I.cells[j].firstChild.firstChild;if(!$05||!$05.style){continue;};var $4B=$05.style.width;var $4C=$05.style.right;$05.style.position="absolute";$05.style.width="auto";$05.style.right="auto";$05.style.whiteSpace="nowrap";var w=$05.offsetWidth+2;$05.style.position="";$05.style.width=$4B;$05.style.right=$4C;$05.style.whiteSpace="";if(typeof $y[j]==='undefined'){$y[j]=0;};$y[j]=Math.max($y[j],w);}};var $4D=0;var $4E=false;this.$cG();if(this.rowHeaderCols){for(var i=0;i<$y.length;i++){if(this.rowHeaderCols[i]){if($y[i]>this.rowHeaderCols[i]){this.rowHeaderCols[i]=$y[i];$4E=true;};$4D+=this.rowHeaderCols[i];}}}else{$4D=this.rowHeaderWidth;if(this.rowHeaderWidth<$y[0]){$4D=$y[0];$4E=true;}};if($i.progressiveRowRendering){};if($4E){if(this.$cM){this.$cM.widths=this.rowHeaderCols;this.$cM.updateWidths();DayPilot.Util.updatePropsFromArray(this.rowHeaderColumns,"width",this.rowHeaderCols);};if(!this.rowHeaderScrolling){this.rowHeaderWidth=$4D;};this.$aT();this.$cN();}};this.$9l=function(){this.$cO=true;this.$cG();var $3l=this.$cH();var $4F=this.divHeader;if($4F){$4F.innerHTML='';DayPilot.puc($4F);}else{$4F=document.createElement("div");$4F.onmousemove=function(){$i.$cP();};if(!this.cssOnly){$4F.className=this.$9S("resourceheader");};this.divHeader=$4F;};$4F.style.width=$3l+"px";$4F.style.height=$i.$96+"px";$4F.rows=[];var $4z=$i.progressiveRowRendering;if($4z){$c();}else{var m=this.rowlist.length;for(var i=0;i<m;i++){$i.$cQ(i);}};$i.$cR();this.divResScroll.appendChild($4F);if(this.rowHeaderWidthAutoFit){this.$cK();}};this.$cS=function(){if(!$i.progressiveRowRendering){return;};var $J=this.$cI();for(var i=0;i<$i.rowlist.length;i++){if($J.start<=i&&i<$J.end){$i.$cQ(i);}else{$i.$cT(i);}};if(this.rowHeaderWidthAutoFit){var $4c=$i.$9V();this.$cK();var $4h=$i.$9V();if($4h!==$4c){var $4G=this.cellWidth;this.$9g();var $4H=this.cellWidth;if($4H!==$4G){this.$9h();this.$9m();this.$9s();this.$9k();}}}};this.$cR=function(){var $4F=$i.divHeader;var $4I=this.rowHeaderCols;var $1O=$4I?this.rowHeaderCols.length:0;var $3l=this.$cH();var c=document.createElement("div");c.style.position="absolute";c.style.top=this.$96+"px";c.colSpan=$1O+1;c.style.width=$3l+"px";c.style.height=($i.divResScroll.clientHeight+20)+"px";$4F.appendChild(c);$i.nav.resScrollSpace=c;if(!this.cssOnly){c.style.backgroundColor=this.hourNameBackColor;c.style.cursor='default';};c.setAttribute("unselectable","on");if(!this.cssOnly){c.className=this.$9S('rowheader');c.style.fontSize="1px";c.innerHTML="&nbsp;";};if(this.cssOnly){var $02=document.createElement("div");$02.style.position="relative";$02.style.height="100%";$02.className=this.$9S('_rowheader');c.appendChild($02);}};this.$cT=function(i){var $I=$i.divHeader.rows[i];if(!$I){return;};DayPilot.de($I.cells);$i.divHeader.rows[i]=null;};this.$aV=function(i){this.$cT(i);this.$cQ(i);};this.$cQ=function(i){var $4F=$i.divHeader;var $4J=this.divHeader;if($4J.rows[i]){return;};var $4I=this.rowHeaderCols;var $1O=$4I?this.rowHeaderCols.length:0;var $3l=this.$cH();var $I=this.rowlist[i];if(!$I){return;};if($I.hidden){return;};var $l=this.$cU($I);$4J.rows[i]={};$4J.rows[i].cells=[];var c=document.createElement("div");c.style.position="absolute";c.style.top=$I.top+"px";c.row=$I;c.index=i;var $23=$l.row;var $z=$4I?$4I[0]:this.rowHeaderWidth;c.style.width=($z)+"px";c.style.border="0px none";if($23.toolTip){c.title=$23.toolTip;};c.setAttribute("unselectable","on");c.onmousemove=$i.$cV;c.onmouseout=$i.$cW;c.onmouseup=$i.$cX;c.oncontextmenu=$i.$cY;c.onclick=$i.$cZ;c.ondblclick=$i.$d0;var $02=document.createElement("div");$02.style.width=($z)+"px";$02.setAttribute("unselectable","on");$02.className=this.cssOnly?this.$9S('_rowheader'):this.$9S('rowheader');if($23.cssClass){DayPilot.Util.addClass($02,$23.cssClass);};if($23.backColor){$02.style.background=$23.backColor;};$02.style.height=($I.height)+"px";$02.style.overflow='hidden';$02.style.position='relative';var $05=document.createElement("div");$05.setAttribute("unselectable","on");$05.className=this.cssOnly?this.$9S('_rowheader_inner'):"";$02.appendChild($05);var $0J=this.rowMoveHandling!=="Disabled";var $4K=10;var $4L=$23.areas||[];if($0J&&!$23.moveDisabled){$4L.push({"v":"Hover","w":$4K,"bottom":0,"top":0,"left":0,"css":$i.$9S("_rowmove_handle"),"action":"Move"});};var ro=$i.$bm($I);DayPilot.Areas.attach($02,ro,{"areas":$4L,"allowed":function(){return !$4M.row;}});var $3b=document.createElement("div");$3b.style.position="absolute";$3b.style.bottom="0px";$3b.style.width="100%";$3b.style.height="1px";$3b.className=this.$9S("_resourcedivider");$02.appendChild($3b);(function drawText(){if($i.treeEnabled&&!$I.isNewRow){var $N=$I.level*$i.treeIndent+$i.treeImageMarginLeft;if($0J){$N+=$4K;};var $z=10;var $37=document.createElement("div");$37.style.width="10px";$37.style.height=$z+"px";$37.style.backgroundRepeat="no-repeat";$37.style.position='absolute';$37.style.left=$N+'px';$37.style.top=$i.treeImageMarginTop+"px";if(!$I.loaded&&$I.children.length===0){if($i.treeImageExpand&&!$i.cssOnly){$37.style.backgroundImage="url('"+$i.treeImageExpand+"')";};$37.className=$i.cssOnly?$i.$9S('_tree_image_expand'):$i.$9S('tree_image_expand');$37.style.cursor='pointer';$37.index=i;$37.onclick=function(ev){$i.$d1(this.index);ev=ev||window.event;ev.cancelBubble=true;};}else if($I.children.length>0){if($I.expanded){if($i.treeImageCollapse&&!$i.cssOnly){$37.style.backgroundImage="url('"+$i.treeImageCollapse+"')";};$37.className=$i.cssOnly?$i.$9S('_tree_image_collapse'):$i.$9S('tree_image_collapse');}else{if($i.treeImageExpand&&!$i.cssOnly){$37.style.backgroundImage="url('"+$i.treeImageExpand+"')";};$37.className=$i.cssOnly?$i.$9S('_tree_image_expand'):$i.$9S('tree_image_expand');};$37.style.cursor='pointer';$37.index=i;$37.onclick=function(ev){$i.$cn(this.index);ev=ev||window.event;ev.cancelBubble=true;};}else{if($i.treeImageNoChildren&&!$i.cssOnly){$37.style.backgroundImage="url('"+$i.treeImageNoChildren+"')";};$37.className=$i.cssOnly?$i.$9S('_tree_image_no_children'):$i.$9S('tree_image_no_children');};$05.appendChild($37);};var $1s=document.createElement("div");if($i.treeEnabled){$1s.style.marginLeft=($N+$z)+"px";}else if(!$i.cssOnly){$1s.style.marginLeft="4px";};$1s.innerHTML=$23.html;c.textDiv=$1s;c.cellDiv=$02;$05.appendChild($1s);})();c.appendChild($02);if($23.areas){for(var j=0;j<$23.areas.length;j++){var $J=$23.areas[j];var v=$J.v||"Visible";if(v!=="Visible"){continue;};var r=$i.$bm($I);var a=DayPilot.Areas.createArea($02,r,$J);$02.appendChild(a);}};$4F.appendChild(c);$4J.rows[i].cells.push(c);if(!$I.columns||$I.columns.length===0){c.colSpan=$1O>0?$1O:1;$02.style.width=$3l+"px";}else{var $N=$z;for(var j=1;j<$1O;j++){var c=document.createElement("div");c.style.position="absolute";c.style.top=$I.top+"px";c.style.left=$N+"px";$4F.appendChild(c);$4J.rows[i].cells.push(c);c.row=$I;c.index=i;if($23.toolTip){c.title=$23.toolTip;};c.setAttribute("unselectable","on");c.onmousemove=$i.$cV;c.onmouseout=$i.$cW;c.onmouseup=$i.$cX;c.oncontextmenu=$i.$cY;c.onclick=$i.$cZ;c.ondblclick=$i.$d0;var $02=document.createElement("div");var w=this.cssOnly?$4I[j]:$4I[j]-1;$N+=w;if($23.backColor){$02.style.backgroundColor=$23.backColor;};$02.style.width=w+"px";$02.style.height=($I.height)+"px";$02.style.overflow='hidden';$02.style.position='relative';$02.setAttribute("unselectable","on");if(this.cssOnly){DayPilot.Util.addClass($02,this.$9S("_rowheader"));DayPilot.Util.addClass($02,this.$9S("_rowheadercol"));DayPilot.Util.addClass($02,this.$9S("_rowheadercol"+j));};if($23.cssClass){DayPilot.Util.addClass($02,$23.cssClass);};var $05=document.createElement("div");$05.setAttribute("unselectable","on");$05.className=this.$9S("_rowheader_inner");$02.appendChild($05);var $3b=document.createElement("div");$3b.style.position="absolute";$3b.style.bottom="0px";$3b.style.width="100%";$3b.style.height="1px";$3b.className=this.$9S("_resourcedivider");$02.appendChild($3b);var $1s=document.createElement("div");if(!this.cssOnly){$1s.style.marginLeft='4px';};var $4N=$23.columns[j-1];var $4O=$4N&&$4N.html?$4N.html:"";$1s.innerHTML=$4O;c.textDiv=$1s;c.cellDiv=$02;$05.appendChild($1s);c.appendChild($02);}}};this.$cY=function(){var $I=this.row;if($I.contextMenu){$I.contextMenu.show($i.$bm($I));};return false;};this.$cZ=function(ev){if($1r.cancelClick){return;};var $I=this.row;var r=$i.$bm($I,this.index);if($I.isNewRow){$i.$bq.edit($I);return;};$i.$bn(r,ev.ctrlKey,ev.shiftKey,ev.metaKey);};this.$d0=function(ev){if($i.timeouts.resClick){for(var $0U in $i.timeouts.resClick){window.clearTimeout($i.timeouts.resClick[$0U]);};$i.timeouts.resClick=null;};var $I=this.row;var e=$i.$bm($I,this.index);if($i.$9G()){var $l={};$l.resource=e;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onRowDoubleClick==='function'){$i.onRowDoubleClick($l);if($l.preventDefault.value){return;}};switch($i.rowDoubleClickHandling){case 'PostBack':$i.rowDoubleClickPostBack(e);break;case 'CallBack':$i.rowDoubleClickCallBack(e);break;case 'Select':$i.$bp($I,ev.ctrlKey,ev.shiftKey,ev.metaKey);break;case 'Edit':$i.$bq.edit($I);break;};if(typeof $i.onRowDoubleClicked==='function'){$i.onRowDoubleClicked($l);}}else{switch($i.rowDoubleClickHandling){case 'PostBack':$i.rowDoubleClickPostBack(e);break;case 'CallBack':$i.rowDoubleClickCallBack(e);break;case 'JavaScript':$i.onRowDoubleClick(e);break;case 'Select':$i.$bp($I,ev.ctrlKey,ev.shiftKey,ev.metaKey);break;case 'Edit':$i.$bq.edit($I);break;}}};this.rowDoubleClickPostBack=function(e,$q){var $0Q={};$0Q.resource=e;this.$aj("RowDoubleClick",$0Q,$q);};this.rowDoubleClickCallBack=function(e,$q){var $0Q={};$0Q.resource=e;this.$ak("RowDoubleClick",$0Q,$q);};this.$d2=function(ev){var $P={};$P.start=this.cell.start;$P.level=this.cell.level;$P.end=this.cell.end;if(!$P.end){$P.end=new DayPilot.Date($P.start).addMinutes($i.cellDuration);};$i.$br($P);};this.$bm=function($I){return new DayPilot.Row($I,$i);};this.$a7=function(i){var $I=this.rowlist[i];if(!$I.events){$I.resetEvents();};if($I.data){return;};$I.data={};$I.data.start=new DayPilot.Date($I.start);$I.data.startTicks=$I.data.start.getTime();var $0H=this.$aa().getTime()-this.$a6().getTime();$I.data.end=$0a.isResourcesView()?$I.data.start.addTime($0H):$I.data.start.addDays(1);$I.data.endTicks=$I.data.end.getTime();$I.data.offset=$I.start.getTime()-this.$a6().getTime();$I.data.i=i;};this.$9k=function($Z){if($Z){this.events.list=$Z;}else if(!this.events.list){this.events.list=[];};$4P.prepareRows(true);var $Y=this.events.list;var $4Q=$Y.length;var $4R=typeof this.onBeforeEventRender==='function';var $15;var $4S=$i.viewType==="Resources";for(var j=0;j<$4Q;j++){var $4T=$Y[j];if(!$4T){continue;};if($4T instanceof DayPilot.Event){throw "DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.";};if($4R){this.$c4(j);};if($4T.resource==="*"){$15=$i.rowlist;}else if($4S){$15=$4P.rowcache[$4T.resource];}else if($i.viewType==="Days"){$15=$i.rowlist;}else if($i.viewType==="Gantt"){$15=$4P.rowcache[$4T.id];};for(var x=0;$15&&x<$15.length;x++){var $I=$15[x];var ep=this.$c5($4T,$I);if(!ep){continue;};if($4R){ep.cache=this.$97.events[j];}}};DayPilot.list($i.rowlist).each(function($I){$i.$d3($I);});this.$aE();};this.$d4=function($Z){var $4U=[];var $4V=[];var $4W=null;if($Z&&$4X){var $4Y=$Z;var $4W=[];for(var i=0;i<$4Y.length;i++){var e=$4Y[i];var $4Z=false;for(var j=0;j<this.events.list.length;j++){var ex=this.events.list[j];if(ex.id===e.id&&ex.start.toString()===e.start.toString()&&ex.resource===e.resource){var $15=$i.events.$aB(ex);$4V=$4V.concat($15);this.events.list[j]=e;$4Z=true;break;}};if(!$4Z){$4W.push(e);}};this.events.list=this.events.list.concat($4W);}else if($Z){this.events.list=$Z;}else if(!this.events.list){this.events.list=[];};var $Y=$4W||this.events.list;if($Z){this.events.list=$Z;}else if(!this.events.list){this.events.list=[];};var $Y=this.events.list;var $50=$Y.length;if(typeof this.onBeforeEventRender==='function'){var $K=$4W?this.events.list.length-$4W.length:0;var end=this.events.list.length;for(var i=$K;i<end;i++){this.$c4(i);}};var $51=!this.$c3();var $52=true;if($52){var $53=!$4W||typeof $I.events==="undefined";$4P.prepareRows($53);for(var j=0;$Y&&j<$50;j++){if($4U[j]){continue;};var $4T=$Y[j];if(!$4T){continue;};var $15=[];if($4T.resource==="*"){$15=$i.rowlist;}else if($i.viewType==="Days"){$15=$i.rowlist;}else if($i.viewType==="Gantt"){$15=$4P.rowcache[$4T.id];}else{$15=$4P.rowcache[$4T.resource];};for(var x=0;$15&&x<$15.length;x++){var $I=$15[x];var ep=this.$c5($4T,$I);if(!ep){continue;};if(typeof this.onBeforeEventRender==='function'){ep.cache=this.$97.events[j+$K];};$4V.push($I.index);}}}else{for(var i=0;i<this.rowlist.length;i++){var $I=this.rowlist[i];if(!$4W||typeof $I.events==="undefined"){$I.resetEvents();};$i.$a7(i);if(this.$bU(i)){continue;};for(var j=0;$Y&&j<$50;j++){if($4U[j]){continue;};var e=$Y[j];var ep=this.$c5(e,$I);if(!ep){continue;};if(typeof this.onBeforeEventRender==='function'){ep.cache=this.$97.events[j+$K];};$4V.push(i);if($51){if(ep.data.resource!=="*"&&ep.part.start.getTime()===ep.start().getTime()&&ep.part.end.getTime()===ep.rawend().getTime()){$4U[j]=true;}}}}};for(var i=0;i<this.rowlist.length;i++){var $I=this.rowlist[i];this.$d3($I);};this.$aE();return DayPilot.ua($4V);};this.$d5={};var $4P=this.$d5;$4P.rowCache={};$4P.prepareRows=function($53){$4P.rowcache={};for(var i=0;i<$i.rowlist.length;i++){var $I=$i.rowlist[i];if($53){$I.resetEvents();};$i.$a7(i);if(!$I.id){continue;};var $54=$I.id.toString();if(!$4P.rowcache[$54]){$4P.rowcache[$54]=[];};$4P.rowcache[$54].push($I);}};$4P.loadEvent=function($4T){};this.$c3=function(){var $55={};if($i.viewType!=="Resources"){return false;};for(var i=0;i<$i.rowlist.length;i++){var $I=$i.rowlist[i];var id=$I.id;if($55[id]){return true;};$55[id]=true;};return false;};this.$c4=function(i){var $0w=this.$97.events;var $q=this.events.list[i];var $56={};if($q instanceof DayPilot.Event){$q=$q.data;};for(var name in $q){$56[name]=$q[name];};if(typeof this.onBeforeEventRender==='function'){var $l={};$l.e=$56;$l.data=$56;this.onBeforeEventRender($l);};$0w[i]=$56;};this.$d3=function($I){$I.lines=[];$I.sections=null;if($I.isNewRow){return;};if(this.sortDirections){$I.events.sort(this.$d6);}else{$I.events.sort(this.$d7);};var $57=$i.groupConcurrentEvents;if($57){for(var i=0;i<$I.blocks.length;i++){$I.blocks[i].events=[];}};DayPilot.list($I.events).each(function(e){if(e.part.height){return;};if($I.eventHeight){e.part.height=$I.eventHeight;return;};e.part.height=$0a.eventHeight();});for(var j=0;j<$I.events.length;j++){var e=$I.events[j];$I.putIntoLine(e);if($57){$I.putIntoBlock(e);}};var $58=0;for(var i=0;i<$I.lines.length;i++){var $0u=$I.lines[i];$0u.top=$58;$58+=($0u.height||$I.eventHeight)*this.eventStackingLineHeight/100;};if($57){for(var j=0;j<$I.blocks.length;j++){var $59=$I.blocks[j];$59.lines=[];$59.events.sort(this.$d6);for(var k=0;k<$59.events.length;k++){var e=$59.events[k];$59.putIntoLine(e);};if($59.lines.length<=$i.groupConcurrentEventsLimit){$59.expanded=true;};var $5a=DayPilot.list($59.events).map(function(e){return e.id();}).some(function($00){return DayPilot.contains($i.$d8,$00);});if($5a){$59.expanded=true;};var $58=0;for(var i=0;i<$59.lines.length;i++){var $0u=$59.lines[i];$0u.top=$58;$58+=($0u.height||$I.eventHeight)*this.eventStackingLineHeight/100;}}}};this.$aD=function($15){$15=DayPilot.ua($15);for(var i=0;i<$15.length;i++){var ri=$15[i];$i.$d3($i.rowlist[ri]);};for(var i=0;i<$15.length;i++){var ri=$15[i];var $I=$i.rowlist[ri];$i.$d9($I);}};this.$ch=function(){var $K=$i.scale==="Manual"?$i.itline[0].start:$i.startDate;return DayPilot.list($i.rowlist).some(function($00){if(!$00.start){return false;};return $00.start.getTime()!==new DayPilot.Date($K).getTime();});};this.$c5=function(e,$I){var $K=new DayPilot.Date(e.start);var end=new DayPilot.Date(e.end);end=$i.$b1(end);var $5b=$K.ticks;var $5c=end.ticks;if($5c<$5b){return null;};var $0w=null;if(typeof $i.onBeforeEventRender==='function'){var $1t=DayPilot.indexOf($i.events.list,e);$0w=$i.$97.events[$1t];};if($0w){if($0w.hidden){return null;}}else if(e.hidden){return null;};var $5d=false;switch(this.viewType){case 'Days':$5d=!($5c<=$I.data.startTicks||$5b>=$I.data.endTicks)||($5b===$5c&&$5b===$I.data.startTicks);break;case 'Resources':$5d=($I.id===e.resource||$I.id==="*"||e.resource==="*")&&(!($5c<=$I.data.startTicks||$5b>=$I.data.endTicks)||($5b===$5c&&$5b===$I.data.startTicks));break;case 'Gantt':$5d=($I.id===e.id)&&!($5c<=$I.data.startTicks||$5b>=$I.data.endTicks);break;};if(!$5d){return null;};var ep=new DayPilot.Event(e,$i);ep.part.dayIndex=$I.data.i;ep.part.start=$I.data.startTicks<$5b?$K:$I.data.start;ep.part.end=$I.data.endTicks>$5c?end:$I.data.end;var $5e=this.getPixels(ep.part.start.addTime(-$I.data.offset));var $5f=this.getPixels(ep.part.end.addTime(-$I.data.offset));if(ep.part.start===ep.part.end){$5f=this.getPixels(ep.part.end.addTime(-$I.data.offset).addSeconds(1));};if($0w&&$0w.height){ep.part.height=$0w.height;}else if(e.height){ep.part.height=e.height;};ep.part.$da=function(){var $5g=this.height;if($i.eventVersionsEnabled&&!DayPilot.list(ep.data.versions).isEmpty()){var $0g=ep.versions.length;$5g+=$0g*$i.eventVersionHeight;$5g+=$0g*$i.eventVersionMargin;};return $5g;};var $N=$5e.left;var $O=$5f.left;ep.part.startPixels=$5e;ep.part.endPixels=$5f;if($N===$O){if($5e.cut||$5f.cut){return null;};var $1Z=(ep.part.start.addTime(-$I.data.offset).getTime()+ep.part.end.addTime(-$I.data.offset).getTime())/2;var $5h=$i.getPixels(new DayPilot.Date(Math.floor($1Z)));if($5h.cut){return null;}};ep.part.box=$0a.useBox($5c-$5b);var $2M=$i.eventHeight;if(e.type==="Milestone"){var $z=e.width||$2M;ep.part.end=ep.part.start;ep.part.left=$N-$z/2;ep.part.width=$z;ep.part.barLeft=0;ep.part.barWidth=$z;}else if(ep.part.box){var $5i=$5e.boxLeft;var $5j=$5f.boxRight;ep.part.left=$5i;ep.part.width=$5j-$5i;ep.part.barLeft=Math.max($N-ep.part.left,0);ep.part.barWidth=Math.max($O-$N,1);}else{ep.part.left=$N;ep.part.width=Math.max($O-$N,1);ep.part.barLeft=0;ep.part.barWidth=Math.max($O-$N-1,1);};if($i.eventVersionsEnabled){$i.$db(ep,$I);};if(typeof $i.onEventFilter==="function"&&$i.events.$c2){var $l={};$l.filter=$i.events.$c2;$l.visible=true;$l.e=ep;$i.onEventFilter($l);if(!$l.visible){return null;}};$I.events.push(ep);return ep;};this.$db=function(ep,$I){ep.versions=[];var $q=ep.data;var $Y=DayPilot.list($q.versions);if($Y.isEmpty()){return;};$Y.each(function($1u){var $K=new DayPilot.Date($1u.start);var end=new DayPilot.Date($1u.end);var $5e=$i.getPixels($K.addTime(-$I.data.offset));var $5f=$i.getPixels(end.addTime(-$I.data.offset));if($K.ticks===end.ticks){$5f=$i.getPixels(end.addTime(-$I.data.offset).addTime(1));};var $N=$5e.left;var $O=$5f.left;if($N===$O&&($5e.cut||$5f.cut)){return null;};var $5k={};$5k.left=$N;$5k.continueLeft=$K<$I.data.start;$5k.right=$O;$5k.continueRight=end>$I.data.end;$5k.width=$O-$N;ep.versions.push($5k);});};this.$d7=function(a,b){if(!a||!b||!a.start||!b.start){return 0;};var $5l=a.start().ticks-b.start().ticks;if($5l!==0){return $5l;};var $5m=b.end().ticks-a.end().ticks;return $5m;};this.$d6=function(a,b){if(!a||!b){return 0;};if(!a.data||!b.data||!a.data.sort||!b.data.sort||a.data.sort.length===0||b.data.sort.length===0){return $i.$d7(a,b);};var $j=0;var i=0;while($j===0&&typeof a.data.sort[i]!=="undefined"&&typeof b.data.sort[i]!=="undefined"){if(a.data.sort[i]===b.data.sort[i]){$j=0;}else{$j=$i.$dc(a.data.sort[i],b.data.sort[i],$i.sortDirections[i]);};i++;};return $j;};this.$dc=function(a,b,$5n){var $5o=($5n!=="desc");var $5p=$5o?-1:1;var $5q=-$5p;if(a===null&&b===null){return 0;};if(b===null){return $5q;};if(a===null){return $5p;};var ar=[];ar[0]=a;ar[1]=b;ar.sort();return a===ar[0]?$5p:$5q;};this.$bp=function($I,$17,$1w,$18){if($i.$9G()){var $1t=DayPilot.indexOf($i.rowlist,$I);var e=$i.$bm($I,$1t);var $5r=DayPilot.indexOf($1r.selected,$I)!==-1;var $0P=$5r?"deselected":"selected";var $l={};$l.row=e;$l.selected=$5r;$l.ctrl=$17;$l.shift=$1w;$l.meta=$18;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onRowSelect==='function'){$i.onRowSelect($l);if($l.preventDefault.value){return;}};var $5s=$1w&&!$17&&!$18;if(!$1w){$1r.$dd={"row":$I,"index":$1t};};if($5s){$1r.fixRowSelectLast();var $5t=$1r.$dd.index;var $5u=$1t;$1r.selectRange($5t,$5u);};switch($i.rowSelectHandling){case 'PostBack':$i.rowSelectPostBack(e,$0P);break;case 'CallBack':$i.rowSelectCallBack(e,$0P);break;case 'Update':!$5s&&$1r.select($I,$17,$1w,$18);break;};if(typeof $i.onRowSelected==='function'){$l.selected=DayPilot.indexOf($1r.selected,$I)!==-1;$i.onRowSelected($l);}}else{$1r.select($I,$17,$1w);var $1t=DayPilot.indexOf($i.rowlist,$I);var e=$i.$bm($I,$1t);var $5r=DayPilot.indexOf($1r.selected,$I)!==-1;var $0P=$5r?"deselected":"selected";switch($i.rowSelectHandling){case 'PostBack':$i.rowSelectPostBack(e,$0P);break;case 'CallBack':$i.rowSelectCallBack(e,$0P);break;case 'JavaScript':$i.onRowSelect(e,$0P);break;}}};this.rowSelectPostBack=function(r,$0P,$q){var $0Q={};$0Q.resource=r;$0Q.change=$0P;this.$aj('RowSelect',$0Q,$q);};this.rowSelectCallBack=function(r,$0P,$q){var $0Q={};$0Q.resource=r;$0Q.change=$0P;this.$ak('RowSelect',$0Q,$q);};this.rows={};this.rows.selection={};var $5v=this.rows.selection;$5v.get=function(){var $Y=[];DayPilot.list($1r.selected).each(function($00){$Y.push($i.$bm($00));});return $Y;};$5v.clear=function(){$1r.clearSelection();};$5v.add=function($I){if(!$I||!$I.isRow){throw "DayPilot.Scheduler.rows.selection.add(): DayPilot.Row object expected";};var $5w=DayPilot.list($1r.selected).some(function($00){return $00===$I.$.row;});if(!$5w){$1r.selected.push($I.$.row);};$1r.$de();$1r.$df();};$5v.$df=function(){$i.selectedRows=DayPilot.list($1r.selected).map(function($00){return $00.id;});};this.rows.all=function(){var $Y=[];for(var i=0;i<$i.rowlist.length;i++){var r=$i.$bm($i.rowlist[i]);$Y.push(r);};return $2D($Y);};this.rows.each=function(f){$i.rows.all().each(f);};this.rows.filter=function($5x){$i.rows.$c2=$5x;$i.$aI({"immediateEvents":true});};this.rows.find=function(id,$K){var $15=$i.rows.all();for(var i=0;i<$15.length;i++){var $00=$15[i];if($00.id===id){if(typeof $K==="string"){if($K===$00.start.toString()){return $00;}}else{return $00;}}}};this.rows.load=function($2q){DayPilot.ajax({"method":"POST","url":$2q,"success":function($l){var r=$l.request;var $q=DayPilot.Util.parseJSON(r.responseText);if(DayPilot.isArray($q)){$i.resources=$q;if($i.$aU){$i.update();}}}});};this.rows.expand=function($5y){var $15=[];var $5z=$5y||1;for(var i=0;i<$i.rowlist.length;i++){var $I=$i.rowlist[i];var $5A=$5z===-1;if($I.level<$5z){$5A=true;};if($5A&&!$I.expanded&&$I.children&&$I.children.length>0){$15.push($I.index);}};if($15.length===0){return;};if($15.length===1){$i.$cn($15[0]);}else{for(var i=0;i<$15.length;i++){var $1t=$15[i];var $I=$i.rowlist[$1t];$I.expanded=true;};$i.$aI();}};this.rows.expandAll=function(){$i.rows.expand(-1);};this.rows.headerHide=function(){$i.$dg=true;$i.$dh();$i.$cN();};this.rows.headerShow=function(){$i.$dg=false;$i.$dh();$i.$cN();};this.rows.headerToggle=function(){if($i.$dg){$i.rows.headerShow();}else{$i.rows.headerHide();}};this.$di=function(){var $1u=$4M.source;var $1v=$4M.target;var $w=$4M.position;$1r.resetMoving();if($i.$9G()){var $l={};$l.source=$i.$bm($1u);$l.target=$i.$bm($1v);$l.position=$w;$l.preventDefault=function(){this.preventDefault.value=true;};if(typeof $i.onRowMove==="function"){$i.onRowMove($l);if($l.preventDefault.value){return;}};switch($i.rowMoveHandling){case "Update":$1r.move($l);break;case "CallBack":$i.rowMoveCallBack($l.source,$l.target,$l.position);break;case "PostBack":$i.rowMovePostBack($l.source,$l.target,$l.position);break;case "Notify":$1r.move($l);$i.rowMoveNotify($l.source,$l.target,$l.position);break;};if(typeof $i.onRowMoved==="function"){$i.onRowMoved($l);}}else{var $1u=$i.$bm($1u);var $1v=$i.$bm($1v);var $w=$w;switch($i.rowMoveHandling){case "CallBack":$i.rowMoveCallBack($1u,$1v,$w);break;case "PostBack":$i.rowMovePostBack($1u,$1v,$w);break;case "JavaScript":$i.onRowMove($1u,$1v,$w);break;}}};this.$9E=function($15){var $Y=DayPilot.list($15);$1r.selected=[];if(!$Y.isEmpty()){$i.$8W=false;$i.$9j();};$Y.each(function($00){var $I=$i.$9J($00);if($I){$1r.selected.push($I);}});$1r.$de();};this.$bq={};var $1r=this.$bq;$1r.edit=function($I){var $5B=$1r.$dj($I);};$1r.rowSelectLastSetDefault=function(){$1r.$dd={"row":$i.rowlist[0],"index":0};};$1r.rowSelectSetLast=function($I){var $1t=DayPilot.indexOf($i.rowlist,$I);if($1t===-1){throw "DayPilot.Scheduler: Row not found when selecting a range";};$1r.$dd={"row":$I,"index":$1t};};$1r.fixRowSelectLast=function(){if(!$1r.$dd){$1r.rowSelectLastSetDefault();};var $1t=DayPilot.indexOf($i.rowlist,$1r.$dd.row);if($1t>-1){return;};var $I=$i.$9J($1r.$dd.row.id);if($I){$1t=DayPilot.indexOf($i.rowlist,$I);$1r.$dd={"row":$I,"index":$1t};}else{$1r.rowSelectLastSetDefault();}};$1r.createOverlay=function($I){var $z=$i.$cH();var $2E=$i.$9S("_rowmove_source");var $02=DayPilot.Util.div($i.divHeader,0,$I.top,$z,$I.height);$02.className=$2E;$I.moveOverlay=$02;};$1r.deleteOverlay=function($I){DayPilot.de($I.moveOverlay);$I.moveOverlay=null;};$1r.$dj=function($I){var r=$1r.$bj($I);var c=r.cells[0];if(c.input){return c.input;};var $z=c.clientWidth;if($I.isNewRow){$z=$i.$9V();};var $5B=document.createElement("textarea");$5B.style.position="absolute";$5B.style.top="0px";$5B.style.left="0px";$5B.style.width=$z+"px";$5B.style.height=$I.height+"px";$5B.style.border="0px none";$5B.style.overflow="hidden";$5B.style.boxSizing="border-box";$5B.style.resize="none";var $1R=c.textDiv;$5B.style.fontFamily=DayPilot.gs($1R,'fontFamily')||DayPilot.gs($1R,'font-family');$5B.style.fontSize=DayPilot.gs($1R,'fontSize')||DayPilot.gs($1R,'font-size');$5B.value=$I.html;c.firstChild.appendChild($5B);c.input=$5B;var $5C=function(){try{c.input.parentNode.removeChild(c.input);}catch(e){$c();};c.input=null;};$5B.focus();$5B.onblur=function(){$5B.onblur=null;var $1q=$5B.value;var $1t=DayPilot.indexOf($i.rowlist,$I);$5C();if(!$5B.canceled){$i.$bl($I,$1q);}};$5B.onkeydown=function(e){var $5D=(window.event)?event.keyCode:e.keyCode;if($5D===27){$5B.canceled=true;$5C();};if($5D===13){$5B.onblur();return false;};return true;};if($5B.setSelectionRange){$5B.setSelectionRange(0,9999);}else{$5B.select();};return $5B;};$1r.selected=[];$1r.select=function($I,$17,$1w,$18){var $5r=DayPilot.indexOf($1r.selected,$I)!==-1;if($17||$18){if($5r){$1r.unselect($I);DayPilot.rfa($1r.selected,$I);return;}}else{$5r=false;$1r.clearSelection();};$1r.$dk($I);if(!$5r){$1r.selected.push($I);};$5v.$df();};$1r.selectRange=function($5t,$5u){$1r.clearSelection();var $4j=Math.min($5t,$5u);var $y=Math.max($5t,$5u);for(var i=$4j;i<=$y;i++){var $I=$i.rowlist[i];$1r.$dk($I);$1r.selected.push($I);};$5v.$df();};$1r.$de=function(){for(var i=0;i<$1r.selected.length;i++){var $I=$1r.selected[i];$1r.$dk($I);}};$1r.$dk=function($I){var y=DayPilot.indexOf($i.rowlist,$I);if(y===-1){var $5E=$i.$9J($I.id).index;if($5E){y=$5E.index;}else{return;}};var cl=$i.$9S("_cell_selected");var $M=[];for(var i=0;i<$i.itline.length;i++){var c={};c.x=i;c.y=y;$M.push(c);};$i.cells.findXy($M).addClass(cl);var cl=$i.$9S("_rowheader_selected");var $4A=$i.divHeader;for(var y=0;y<$4A.rows.length;y++){var r=$4A.rows[y];if(r&&r.cells[0]&&r.cells[0].row===$I){for(var x=0;x<r.cells.length;x++){var c=r.cells[x];var $5F=c.firstChild;DayPilot.Util.addClass($5F,cl);}}}};$1r.$bD=function(){var $Y=[];if(!$1r.selected){return $Y;};for(var i=0;i<$1r.selected.length;i++){var $I=$1r.selected[i];var $1t=DayPilot.indexOf($i.rowlist,$I);var r=$i.$bm($I,$1t);$Y.push(r.toJSON());};return $Y;};$1r.unselect=function($I){var cl=$i.$9S("_cell_selected");var y=DayPilot.indexOf($i.rowlist,$I);var $M=[];for(var i=0;i<$i.itline.length;i++){var c={};c.x=i;c.y=y;$M.push(c);};$i.cells.findXy($M).removeClass(cl);var cl=$i.$9S("_rowheader_selected");var $4A=$i.divHeader;var r=$1r.$bj($I);if(r){for(var x=0;x<r.cells.length;x++){var c=r.cells[x];var $5F=c.firstChild;DayPilot.Util.removeClass($5F,cl);}}};$1r.$dd=null;$1r.clearSelection=function(){for(var j=0;j<$1r.selected.length;j++){var $I=$1r.selected[j];$1r.unselect($I);};$1r.selected=[];$i.selectedRows=[];};$1r.$bj=function($I){var $4A=$i.divHeader;for(var y=0;y<$4A.rows.length;y++){var r=$4A.rows[y];if(r&&r.cells[0]&&r.cells[0].row===$I){return r;}};return null;};$1r.selectById=function(id){var $I=$i.$9J(id);if($I){$1r.select($I);}};$1r.startMoving=function($I){var $4M=DayPilot.Global.rowmoving;$4M.row=$I;$4M.cursor=$i.divResScroll.style.cursor;$i.divResScroll.style.cursor="move";$1r.createOverlay($I);};$1r.resetMoving=function(){$i.divResScroll.style.cursor=$4M.cursor;DayPilot.de($4M.div);$1r.deleteOverlay($4M.row);DayPilot.Global.rowmoving=$4M={};};$1r.move=function($l){var $1u=$l.source.$.row.resource;var $1v=$l.target.$.row.resource;var $w=$l.position;if($w==="forbidden"){return;};var $5G=$5H.findParentArray($1u);if(!$5G){throw "Cannot find source node parent";};var $5I=DayPilot.indexOf($5G,$1u);$5G.splice($5I,1);var $5J=$5H.findParentArray($1v);if(!$5J){throw "Cannot find target node parent";};var $5K=DayPilot.indexOf($5J,$1v);switch($w){case "before":$5J.splice($5K,0,$1u);break;case "after":$5J.splice($5K+1,0,$1u);break;case "child":if(!$1v.children){$1v.children=[];$1v.expanded=true;};$1v.children.push($1u);break;};$i.update();};var $5H={};$5H.findParentArray=function($1G){return $5H.findInArray($i.resources,$1G);};$5H.findInArray=function($3s,$1G){if(DayPilot.indexOf($3s,$1G)!==-1){return $3s;};for(var i=0;i<$3s.length;i++){var r=$3s[i];if(r.children&&r.children.length>0){var parent=$5H.findInArray(r.children,$1G);if(parent){return parent;}}};return null;};this.$9i=function(){this.rowlist=DayPilot.list();var $1I=this.resources;var $5L=this.$a2();if(!$5L){if(this.viewType==="Gantt"){$1I=this.$dl();}else if(this.viewType==="Days"){$1I=this.$dm();}};if($5L&&this.viewType==="Days"&&(!$1I||$1I.length===0)){$1I=this.$dm();};var $1t={};$1t.i=0;this.$dn($1I,$1t,0,null,this.treeEnabled,false);var $5M=$i.rowCreateHandling!=="Disabled";if($5M){this.$do();}};this.$do=function(){var r={};r.id="NEW";r.isNewRow=true;r.html="";r.loaded=true;r.start=this.startDate;r.children=[];r.height=$i.eventHeight;r.marginBottom=0;r.marginTop=0;r.getHeight=function(){return $i.eventHeight+$i.rowMarginBottom+$i.rowMarginTop;};r.putIntoLine=function(){};r.resetEvents=function(){};this.rowlist.push(r);};this.$dl=function(){var $Y=[];if(this.$8Z&&this.resources){for(var i=0;i<this.resources.length;i++){$Y.push(this.resources[i]);}};if(!this.events.list){return;};for(var i=0;i<this.events.list.length;i++){var e=this.events.list[i];var r={};r.id=e.id;r.name=e.text;$Y.push(r);};return $Y;};this.$dm=function(){var $Y=[];var $K=$i.$a6();var $5N=this.$bS.locale();for(var i=0;i<this.days;i++){var d=$K.addDays(i);var r={};r.name=d.toString($5N.datePattern,$5N);r.start=d;$Y.push(r);};return $Y;};this.$a6=function(){if(this.itline&&this.itline.length>0){return this.itline[0].start;};return this.startDate;};this.$aa=function(){if(this.itline&&this.itline.length>0){return this.itline[this.itline.length-1].end;};return this.startDate.addDays(this.days);};this.$dp={};var $5O=this.$dp;this.visibleStart=function(){return this.$a6();};this.visibleEnd=function(){return this.$aa();};this.$dn=function($1I,$1t,$5z,parent,$5P,$5Q){if(!$1I){return;};for(var i=0;i<$1I.length;i++){if(!$1I[i]){continue;};var $5R={};$5R.level=$5z;$5R.hidden=$5Q;$5R.index=$1t.i;var $1G=this.$dq($1I[i],$5R);var $I={};$I.backColor=$1G.backColor;$I.cssClass=$1G.cssClass;$I.expanded=$1G.expanded;$I.name=$1G.name;$I.html=$1G.html?$1G.html:$I.name;$I.eventHeight=typeof $1G.eventHeight!=='undefined'?$1G.eventHeight:$i.$bS.eventHeight();$I.minHeight=typeof $1G.minHeight!=='undefined'?$1G.minHeight:$i.rowMinHeight;$I.marginBottom=typeof $1G.marginBottom!=='undefined'?$1G.marginBottom:$i.rowMarginBottom;$I.marginTop=typeof $1G.marginTop!=='undefined'?$1G.marginTop:$i.rowMarginTop;$I.loaded=!$1G.dynamicChildren;$I.id=$1G.id||$1G.value;$I.toolTip=$1G.toolTip;$I.children=[];$I.columns=[];$I.start=$1G.start?new DayPilot.Date($1G.start):this.$a6();$I.isParent=$1G.isParent;$I.contextMenu=$1G.contextMenu?DayPilot.Util.evalVariable($1G.contextMenu):this.contextMenuResource;$I.areas=$1G.areas;$I.moveDisabled=$1G.moveDisabled;$I.bubbleHtml=$1G.bubbleHtml;$I.tags=$1G.tags;$I.task=$1G.task;$I.height=$I.eventHeight;$I.hidden=$5Q;$I.level=$5z;$I.index=$1t.i;$I.resource=$1I[i];$I.lines=[];$I.blocks=[];$I.isRow=true;$I.getHeight=function(){var $R=0;if($i.groupConcurrentEvents){for(var i=0;i<this.blocks.length;i++){var $59=this.blocks[i];$R=Math.max($R,$59.getHeight());}}else{if(this.lines.length>0){var $0C=this.lines.length-1;var $0u=this.lines[$0C];var $5S=$0u.height||this.eventHeight;var top=$0u.top||0;$R=top+$5S;}};if($R===0){$R=this.eventHeight;};return($R>this.minHeight)?$R:this.minHeight;};$I.resetEvents=function(){var r=this;r.events=[];r.events.forRange=function($K,end){var $j=[];for(var i=0;i<r.events.length;i++){var ev=r.events[i];if(DayPilot.Util.overlaps(ev.start(),ev.end(),$K,end)){$j.push(ev);}};return $j;};};$I.calculateUtilization=function(){var r=this;var $5T=r.sections=getSections();for(var i=0;i<$5T.length;i++){var $04=$5T[i];$04.events=[];for(var x=0;x<r.events.length;x++){var e=r.events[x];if(DayPilot.Util.overlaps($04.start,$04.end,e.start(),e.rawend())){$04.events.push(e);}};$04.sum=function(name){var $5U=0;for(var i=0;i<this.events.length;i++){var e=this.events[i];var $5V=0;if(typeof name==="undefined"){$5V=1;}else if(e.tag(name)){$5V=e.tag(name);}else if(e.data[name]){$5V=e.data[name];};if(typeof $5V==='number'){$5U+=$5V;}};return $5U;}};function getPoints(){var $5W=[];for(var i=0;i<r.events.length;i++){var e=r.events[i];if(!DayPilot.contains($5W,e.start().toString())){$5W.push(e.start().toString());};if(!DayPilot.contains($5W,e.rawend().toString())){$5W.push(e.rawend().toString());}};$5W.sort();return $5W;};function getSections(){var $5W=getPoints();var $5T=[];var $04={"start":r.data.start};for(var i=0;i<$5W.length;i++){$04.end=new DayPilot.Date($5W[i]);$5T.push($04);$04={"start":new DayPilot.Date($5W[i])};};$04.end=r.data.end;$5T.push($04);$5T.forRange=function($K,end){var $Y=[];for(var i=0;i<this.length;i++){var $04=this[i];if(DayPilot.Util.overlaps($K,end,$04.start,$04.end)){$Y.push($04);}};$Y.maxSum=function(name){var $y=0;for(var i=0;i<this.length;i++){var $04=this[i];var $5U=$04.sum(name);if($5U>$y){$y=$5U;}};return $y;};return $Y;};return $5T;}};$I.putIntoLine=function(ep){var $5X=this;for(var i=0;i<this.lines.length;i++){var $0u=this.lines[i];if($0u.isFree(ep.part.left,ep.part.width)){$0u.add(ep);return i;}};var $0u=[];$0u.height=0;$0u.add=function(ep){this.push(ep);var $5g=ep.part.$da();if($5g>$0u.height){$0u.height=$5g;}};$0u.isFree=function($5Y,$5Z,$47){var end=$5Y+$5Z-1;var $y=this.length;for(var i=0;i<$y;i++){var e=this[i];if(!(end<e.part.left||$5Y>e.part.left+e.part.width-1)){if(DayPilot.contains($47,e.data)){continue;};return false;}};return true;};$0u.add(ep);this.lines.push($0u);return this.lines.length-1;};$I.putIntoBlock=function(ep){for(var i=0;i<this.blocks.length;i++){var $59=this.blocks[i];if(DayPilot.indexOf($59.events,ep)!==-1){return;};if($59.overlapsWith(ep.part.left,ep.part.width)){$59.events.push(ep);ep.part.block=$59;$59.min=Math.min($59.min,ep.part.left);$59.max=Math.max($59.max,ep.part.left+ep.part.width);return i;}};var $59={};$59.expanded=false;$59.row=this;$59.events=[];$59.lines=[];$59.putIntoLine=function(ep){var $60=this;for(var i=0;i<this.lines.length;i++){var $0u=this.lines[i];if($0u.isFree(ep.part.left,ep.part.width)){$0u.add(ep);return i;}};var $0u=[];$0u.height=0;$0u.add=function(ep){this.push(ep);if(ep.part.height>$0u.height){$0u.height=ep.part.height;}};$0u.isFree=function($K,$z){var end=$K+$z-1;var $y=this.length;for(var i=0;i<$y;i++){var e=this[i];if(!(end<e.part.left||$K>e.part.left+e.part.width-1)){return false;}};return true;};$0u.add(ep);this.lines.push($0u);};$59.overlapsWith=function($K,$z){var end=$K+$z-1;if(!(end<this.min||$K>this.max-1)){return true;};return false;};$59.getHeight=function(){if(!this.expanded){return $i.eventHeight;};if(this.lines.length>0){var $0C=this.lines.length-1;var $0u=this.lines[$0C];var $5S=$0u.height||$i.eventHeight;var top=$0u.top||0;return top+$5S;}};$59.events.push(ep);ep.part.block=$59;$59.min=ep.part.left;$59.max=ep.part.left+ep.part.width;this.blocks.push($59);};$I.$dr=false;$I.$ds=parent;$I.$dt=function(){this.hidden=!this.$du();this.$dr=false;if(this.$ds){this.$ds.$dt();}};$I.$du=function(){if(!this.$ds){return true;};return this.$ds.$du()&&this.$ds.expanded;};this.rowlist.push($I);if(typeof $i.onRowFilter==="function"&&$i.rows.$c2){var $l={};$l.visible=true;$l.row=$i.$bm($I);$l.filter=$i.rows.$c2;$i.onRowFilter($l);$I.$dr=!$l.visible;if(!$l.visible){$I.hidden=true;}else{if(parent){parent.$dt();}}};if(parent!==null){parent.children.push($1t.i);};if($1G.columns){for(var j=0;j<$1G.columns.length;j++){$I.columns.push($1G.columns[j]);}};$1t.i++;if($5P&&$1G.children&&$1G.children.length){var $61=$5Q||!$I.expanded;this.$dn($1G.children,$1t,$5z+1,$I,true,$61);}}};this.$cU=function($I){if($I.isNewRow){return{"row":{"cssClass":$i.$9S("_row_new"),"moveDisabled":true,"html":""}};};var $l={};$l.row=this.$bm($I);DayPilot.Util.copyProps($I,$l.row,['html','backColor','cssClass','toolTip','contextMenu','moveDisabled']);$l.row.columns=DayPilot.Util.createArrayCopy($I.columns,['html']);$l.row.areas=DayPilot.Util.createArrayCopy($I.areas);if(typeof $l.row.columns==='undefined'&&$i.rowHeaderColumns&&$i.rowHeaderColumns.length>0){r.columns=[];for(var i=0;i<$i.rowHeaderColumns.length;i++){r.columns.push({});}};if(typeof this.onBeforeRowHeaderRender==="function"){this.onBeforeRowHeaderRender($l);};return $l;};this.$dq=function($1G,$5R){var r=this.$dv($1G,$5R);if(typeof this.onBeforeResHeaderRender==='function'){var $l={};$l.resource=r;this.onBeforeResHeaderRender($l);};return r;};this.$dv=function($1G,$5R){var r={};for(var name in $5R){r[name]=$5R[name];};for(var name in $1G){r[name]=$1G[name];};if(typeof $1G.html==='undefined'){r.html=$1G.name;};if(typeof r.columns==='undefined'&&$i.rowHeaderColumns&&$i.rowHeaderColumns.length>0){r.columns=[];for(var i=0;i<$i.rowHeaderColumns.length;i++){r.columns.push({});}};return r;};this.$dw=function(){this.$dx();this.nav.top.dp=this;this.nav.top.innerHTML="";DayPilot.Util.addClass(this.nav.top,this.$9S("_main"));if(DayPilot.browser.ie9){DayPilot.Util.addClass(this.nav.top,this.$9S("_browser_ie9"));};if(DayPilot.browser.ie8){DayPilot.Util.addClass(this.nav.top,this.$9S("_browser_ie8"));};this.nav.top.style.MozUserSelect='none';this.nav.top.style.KhtmlUserSelect='none';this.nav.top.style.webkitUserSelect='none';this.nav.top.style.WebkitTapHighlightColor="rgba(0,0,0,0)";this.nav.top.style.WebkitTouchCallout="none";if(this.width){this.nav.top.style.width=this.width;};if(this.heightSpec==="Parent100Pct"){this.nav.top.style.height="100%";};this.nav.top.style.lineHeight="1.2";this.nav.top.style.position="relative";if(!this.visible){this.nav.top.style.display="none";};this.nav.top.onmousemove=this.$dy;this.nav.top.ontouchstart=$0I.onMainTouchStart;this.nav.top.ontouchmove=$0I.onMainTouchMove;this.nav.top.ontouchend=$0I.onMainTouchEnd;if(this.hideUntilInit&&this.backendUrl){this.nav.top.style.visibility='hidden';};var $3g=this.$9V();var $62=this.$bS.layout();if($62==='DivBased'){var $N=document.createElement("div");$N.style.position="absolute";$N.style.left="0px";$N.style.width=($3g)+"px";$N.appendChild(this.$dz());var $63=document.createElement("div");$63.style.height="1px";$63.className=this.$9S("_divider_horizontal");$N.appendChild($63);this.nav.dh1=$63;$N.appendChild(this.$dA());this.nav.left=$N;var $64=document.createElement("div");$64.style.position="absolute";$64.style.left=($3g)+"px";$64.style.width=$0a.splitterWidth()+"px";$64.style.height=(this.$9U()+this.$9Y())+"px";$64.className=this.$9S("_divider")+" "+this.$9S("_splitter");$64.setAttribute("unselectable","on");this.nav.divider=$64;if(this.rowHeaderScrolling){this.$dB();};var $O=document.createElement("div");$O.style.marginLeft=($3g+$0a.splitterWidth())+"px";$O.style.marginRight='1px';$O.style.position='relative';$O.appendChild(this.$dC());this.nav.right=$O;var $65=document.createElement("div");$65.style.height="1px";$65.style.position="absolute";$65.style.top=this.$9U()+"px";$65.style.width="100%";$65.className=this.$9S("_divider_horizontal");$O.appendChild($65);this.nav.dh2=$65;$O.appendChild(this.$dD());var $66=document.createElement("div");$66.style.clear='left';this.nav.top.appendChild($N);this.nav.top.appendChild($64);this.nav.top.appendChild($O);this.nav.top.appendChild($66);}else{var $4A=document.createElement("table");$4A.cellPadding=0;$4A.cellSpacing=0;$4A.border=0;$4A.style.position='absolute';if(!this.cssOnly){$4A.style.backgroundColor=this.hourNameBackColor;};var $67=$4A.insertRow(-1);var $68=$67.insertCell(-1);$68.appendChild(this.$dz());var $69=$67.insertCell(-1);$69.appendChild(this.$dC());var $6a=$4A.insertRow(-1);var $6b=$6a.insertCell(-1);$6b.appendChild(this.$dA());var $6c=$6a.insertCell(-1);$6c.appendChild(this.$dD());this.nav.top.appendChild($4A);};this.$9f=document.createElement("div");this.$9f.style.display="none";this.nav.top.appendChild(this.$9f);if(this.$bC()){var $6d=document.createElement("input");$6d.type="hidden";$6d.id=this.id+"_state";$6d.name=this.id+"_state";this.nav.state=$6d;this.nav.top.appendChild($6d);};var $4y=5;var loading=document.createElement("div");loading.style.position='absolute';loading.style.left=(this.$9V()+$0a.splitterWidth()+5)+"px";loading.style.top=(this.$9U()+5)+"px";loading.style.display='none';if(!this.cssOnly){loading.style.backgroundColor=this.loadingLabelBackColor;loading.style.fontSize=this.loadingLabelFontSize;loading.style.fontFamily=this.loadingLabelFontFamily;loading.style.color=this.loadingLabelFontColor;loading.style.padding='2px';};loading.innerHTML=this.loadingLabelText;DayPilot.Util.addClass(loading,this.$9S("_loading"));this.nav.loading=loading;this.nav.top.appendChild(loading);this.$dE();};this.$dy=function(ev){if($4M.row){var $1T=DayPilot.mo3($i.divHeader,ev);var ri=$i.$bK($1T.y);var $I=$i.rowlist[ri.i];if($I.isNewRow){return;};var $6e=$1T.y-ri.top;var $6f=ri.bottom-ri.top;var $6g=$6f/3;var $6h=$6g*2;var $1Z=$6f/2;var $w="before";var $6i=$I.children&&$I.children.length>0;var $6j=(function(){var i=ri.i;var $6k=$I.level;while(i>=0){var r=$i.rowlist[i];i--;if($6k<=r.level){continue;};if(r===$4M.row){return true;};if(r.level===0){return false;};$6k=r.level;};return false;})();var $6l=true;if($6j||ri.i===$4M.row.index){$w="forbidden";}else if($6l){if($6i){if($6e<$1Z){$w="before";}else{$w="child";}}else{if($6e<$6g){$w="before";}else if($6e<$6h){$w="child";}else{$w="after";}}}else{if($6i){$w="before";}else{if($6e<$1Z){$w="before";}else{$w="after";}}};if($4M.row.moveDisabled){$w="forbidden";};$4M.calendar=$i;$4M.source=$4M.row;$4M.target=$i.rowlist[ri.i];$4M.position=$w;var $6m=(function(){if(!$4M.last){return true;};if($4M.last.target!==$4M.target){return true;};if($4M.last.position!==$4M.position){return true;};return false;})();if($6m){if(typeof $i.onRowMoving==='function'){var $l={};$l.source=$i.$bm($4M.source);$l.target=$i.$bm($4M.target);$l.position=$w;$i.onRowMoving($l);$4M.position=$l.position;}}else if($4M.last){$4M.position=$4M.last.position;};$4M.last={};$4M.last.target=$4M.target;$4M.last.position=$4M.position;(function drawRowPosition(){if($4M.div){DayPilot.de($4M.div);};var top=ri.top;var $F=$4M.position;var ro=$i.rowlist[ri.i];var $5z=ro.level;var $N=$5z*$i.treeIndent;switch($F){case "before":top=ri.top;break;case "child":top=ri.top+$1Z;break;case "after":top=ri.bottom;break;case "forbidden":top=ri.top+$1Z;break;};var $z=$i.$cH()-$N;var $w=document.createElement("div");$w.style.position="absolute";$w.style.left=$N+"px";$w.style.width=$z+"px";$w.style.top=top+"px";$w.className=$i.$9S("_rowmove_position_"+$F);$4M.div=$w;$i.divResScroll.appendChild($w);})();}else if(DayPilotScheduler.splitting){var $z=DayPilot.mo3($i.nav.top,ev).x;var $y=$i.$cH();var $4h=Math.min($y,$z-1);$i.rowHeaderWidth=$4h;$i.$dg=false;$i.$dh();}};this.$9r=function(){var $R=this.$9U();this.nav.corner.style.height=($R)+"px";this.divTimeScroll.style.height=$R+"px";this.divNorth.style.height=$R+"px";if(this.nav.dh1&&this.nav.dh2){this.nav.dh1.style.top=$R+"px";this.nav.dh2.style.top=$R+"px";};this.nav.loading.style.top=($R+5)+"px";this.nav.scroll.style.top=($R+1)+"px";};this.$9V=function(){if(this.$dg){return 0;};var $6n=this.rowHeaderScrolling;if($6n){return this.rowHeaderWidth;};return this.$cH();};this.$dB=function(){var $02=this.nav.divider;$02.style.cursor="col-resize";$02.setAttribute("unselectable","on");$02.onmousedown=function(ev){var $6o=DayPilotScheduler.splitting={};$6o.cursor=$i.nav.top.style.cursor;$6o.cleanup=function(){$i.nav.top.style.cursor=$6o.cursor;if(typeof $i.onRowHeaderResized==="function"){var $l={};$i.onRowHeaderResized($l);}};$i.nav.top.style.cursor="col-resize";return false;};};this.$dh=function(){var $6p=$0a.splitterWidth();var $z=this.$9V();this.nav.corner.style.width=$z+"px";this.divCorner.style.width=$z+"px";this.divResScroll.style.width=$z+"px";this.nav.left.style.width=($z)+"px";this.nav.divider.style.left=($z)+"px";this.nav.right.style.marginLeft=($z+$6p)+"px";if(this.nav.message){this.nav.message.style.left=($z+$6p)+"px";};if(this.nav.loading){this.nav.loading.style.left=($z+$6p+5)+"px";};if(this.nav.hideIcon){var hi=this.nav.hideIcon;var $6q=$i.$9S("_header_icon_show");var $6r=$i.$9S("_header_icon_hide");hi.style.left=($z+$6p-1)+"px";if($i.$dg){DayPilot.Util.removeClass(hi,$6r);DayPilot.Util.addClass(hi,$6q);}else{DayPilot.Util.removeClass(hi,$6q);DayPilot.Util.addClass(hi,$6r);}}};this.$dF=function(){this.$cG();var $0d=this.$cH();var $6s=function($P,$z,$N){if(!$P||!$P.style){return;};var $02=$P.firstChild;if($i.$cO){$P.style.width=$z+"px";$02.style.width=$z+"px";if(typeof $N==="number"){$P.style.left=$N+"px";}}else{$02.style.width=$z+"px";}};var $4A=this.divHeader;$4A.style.width=$0d+"px";var $1l=$i.$cI();for(var i=$1l.start;i<$1l.end;i++){var $I=$4A.rows[i];if(!$I){continue;};var $P=$I.cells[0];if($P.colSpan>1){var $P=$I.cells[0];$6s($P,$0d);}else{if(this.rowHeaderCols){var $N=0;for(var j=0;j<$I.cells.length;j++){var $z=this.rowHeaderCols[j];var $P=$I.cells[j];$6s($P,$z,$N);$N+=$z;}}else{var $z=this.rowHeaderWidth;var $P=$I.cells[0];$6s($P,$z);}}};if($i.nav.resScrollSpace){$i.nav.resScrollSpace.style.width=$0d+"px";};this.$dG();};this.$aT=function(){this.$dh();this.$dF();};this.$dH=function(){var $02=$i.nav.corner;var $23=this.rowHeaderColumns;var scroll=document.createElement("div");scroll.style.position="absolute";scroll.style.bottom="0px";scroll.style.left="0px";scroll.style.width="100%";scroll.style.height=$0a.headerHeight()+"px";scroll.style.overflow="hidden";$i.nav.columnScroll=scroll;var $I=document.createElement("div");$I.style.position="absolute";$I.style.bottom="0px";$I.style.left="0px";$I.style.width="5000px";$I.style.height=$0a.headerHeight()+"px";$I.style.overflow="hidden";$I.className=this.$9S("_columnheader");scroll.appendChild($I);var $05=document.createElement("div");$05.style.position="absolute";$05.style.top="0px";$05.style.bottom="0px";$05.style.left="0px";$05.style.right="0px";$05.className=this.$9S("_columnheader_inner");$I.appendChild($05);var $6t=new DayPilot.Splitter($05);$6t.widths=DayPilot.Util.propArray($23,"width");$6t.height=$0a.headerHeight();$6t.css.title=this.$9S("_columnheader_cell");$6t.css.titleInner=this.$9S("_columnheader_cell_inner");$6t.css.splitter=this.$9S("_columnheader_splitter");$6t.titles=DayPilot.Util.propArray($23,"title");$6t.updating=function($l){DayPilot.Util.updatePropsFromArray($i.rowHeaderColumns,"width",this.widths);$i.$aT();if($i.cellWidthSpec==="Auto"){}};$6t.updated=function($6u){$i.$cN();if($i.$9G()){if(typeof $i.onRowHeaderColumnResized==="function"){var $l={};$l.column=$i.rowHeaderColumns[$6u.index];$i.onRowHeaderColumnResized($l);};}else{switch($i.rowHeaderColumnResizedHandling){case "CallBack":break;case "PostBack":break;case "JavaScript":if(typeof $i.onRowHeaderColumnResized==="function"){var $l={};$l.column=$i.rowHeaderColumns[$6u.index];$i.onRowHeaderColumnResized($l);};break;}}};$6t.color='#000000';$6t.opacity=30;$6t.init();$02.appendChild(scroll);this.$cM=$6t;};this.$aS=function(){var $02=this.nav.corner;$02.innerHTML='';$02.className=this.cssOnly?this.$9S('_corner'):this.$9S('corner');if(!this.cssOnly){$02.style.backgroundColor=this.hourNameBackColor;$02.style.fontFamily=this.hourFontFamily;$02.style.fontSize=this.hourFontSize;$02.style.cursor='default';};var $05=document.createElement("div");$05.style.position="absolute";$05.style.top="0px";$05.style.left="0px";$05.style.right="0px";$05.style.bottom="0px";if(this.cssOnly){$05.className=this.$9S('_corner_inner');};this.divCorner=$05;$05.innerHTML='&nbsp;';if(this.rowHeaderColumns&&this.rowHeaderColumns.length>0){var $6v=document.createElement("div");$6v.style.position="absolute";$6v.style.top="0px";$6v.style.left="0px";$6v.style.right="0px";$6v.style.bottom=($0a.headerHeight()+1)+"px";$02.appendChild($6v);var $64=document.createElement("div");$64.style.position="absolute";$64.style.left="0px";$64.style.right="0px";$64.style.height="1px";$64.style.bottom=($0a.headerHeight())+"px";$64.className=this.$9S("_divider");$02.appendChild($64);$6v.appendChild($05);this.$dH();}else{$02.appendChild($05);};var $6w=document.createElement("div");$6w.style.position='absolute';$6w.style.padding='2px';$6w.style.top='0px';$6w.style.left='1px';$6w.style.backgroundColor="#FF6600";$6w.style.color="white";$6w.innerHTML="\u0044\u0045\u004D\u004F";if(this.numberFormat)$02.appendChild($6w);};this.$dE=function(){if(!this.rowHeaderHideIconEnabled){return;};var $6x=3;var $N=this.$9V()+$0a.splitterWidth()-1;var $z=10;var $R=20;var top=this.$9U()+$6x;var $02=DayPilot.Util.div(this.nav.top,$N,top,$z,$R);$02.style.cursor="pointer";$02.className=$i.$9S("_header_icon");DayPilot.Util.addClass($02,$i.$9S("_header_icon_hide"));$02.onclick=function(){$i.rows.headerToggle();};this.nav.hideIcon=$02;};this.$dz=function(){var $3g=this.$9V();var $02=document.createElement("div");$i.nav.corner=$02;$02.style.width=$3g+"px";$02.style.height=(this.$9U())+"px";$02.style.overflow='hidden';$02.style.position='relative';$02.setAttribute("unselectable","on");$02.onmousemove=function(){$i.$cP();};$02.oncontextmenu=function(){return false;};this.$aS();return $02;};this.$9U=function(){if(this.timeHeader){var $6y=this.timeHeader.length;return $6y*$0a.headerHeight();};return 2*$0a.headerHeight();};this.$dI=null;this.$dA=function(){var $02=document.createElement("div");if(!this.cssOnly){$02.style.backgroundColor=this.hourNameBackColor;};$02.style.width=(this.$9V())+"px";$02.style.height=this.$9Y()+"px";$02.style.overflow='hidden';$02.style.position='relative';$02.className=$i.$9S("_rowheader_scroll");$02.onmousemove=function(){$i.$cP();};$02.onscroll=function(){if($i.nav.columnScroll&&$i.rowHeaderScrolling){$i.nav.columnScroll.scrollLeft=$02.scrollLeft;};if($i.$dI){clearTimeout($i.$dI);};$i.$dI=setTimeout(function(){$i.nav.scroll.scrollTop=$02.scrollTop;},500);};$02.onwheel=function(ev){var $4f=ev.deltaY>0?$i.eventHeight:-$i.eventHeight;$i.nav.scroll.scrollTop=$02.scrollTop+$4f;ev.preventDefault&&ev.preventDefault();};$02.onmousewheel=function(ev){ev=ev||window.event;var $4f=ev.wheelDelta<0?$i.eventHeight:-$i.eventHeight;$i.nav.scroll.scrollTop=$02.scrollTop+$4f;ev.preventDefault&&ev.preventDefault();ev.returnValue=false;};$02.oncontextmenu=function(){return false;};$02.onmouseenter=function(){if($i.rowHeaderScrolling){$02.style.overflowX="auto";}};$02.onmouseleave=function(){if($i.rowHeaderScrolling){$02.style.overflowX="hidden";}};this.divResScroll=$02;this.$9Z=$02;return $02;};this.$dJ=function($02){if($0a.layout()==='TableBased'){var $z=parseInt(this.width,10);var $6z=(this.width.indexOf("%")!==-1);var $6A=/MSIE/i.test(navigator.userAgent);var $3g=this.$cH();if($6z){if(this.nav.top&&this.nav.top.offsetWidth>0){$02.style.width=(this.nav.top.offsetWidth-6-$3g)+"px";}}else{$02.style.width=($z-$3g)+"px";}}};this.$bP=function(ev){$i.$9p();$i.$9F();};this.$9p=function(){if($i.$bS.layout()==='TableBased'){$i.$dJ($i.nav.scroll);$i.$dJ($i.divTimeScroll);};$i.$9s();$i.$cN();$i.$dK();$i.$97.drawArea=null;};this.$dK=function(){var $1l=DayPilotScheduler.rangeHold;$i.clearSelection();DayPilotScheduler.rangeHold=$1l;$i.$bc($1l,true);};this.$cN=function(){if(!$i.$aU){return;};if($i.cellWidthSpec!=='Auto'){return;};$i.$9g();$i.$9h();$i.$9m();$i.$9t();$i.$9x();$i.$9v();$i.$9y();$i.$9u();$i.$9k();$i.$9z();};this.$9g=function(){if(this.cellWidthSpec!=='Auto'){return;};var $0d=this.nav.top.clientWidth;var $6B=this.$9V();var $6C=$i.$dL();var $1b=$0d-$6B-$6C;var $6D=this.$9T();if(!$6D){return;};var $P=$1b/this.$9T();this.cellWidth=Math.max($P,$i.cellWidthMin);$i.$dM=$P<$i.cellWidthMin;};this.$dL=function(){if($i.heightSpec==="Auto"){return 0;};if($i.heightSpec==="Max"||$i.heightSpec==="Fixed"||$i.heightSpec==="Parent100Pct"){var $05=$i.$dN();if($05>$i.height){return DayPilot.sw($i.nav.scroll);}else{return 0;}};return DayPilot.sw($i.nav.scroll);};this.$a1=function(){var $0d=this.nav.top.clientWidth;var $6B=this.$9V();var $6E=2;var $R=this.$9Y();var innerHeight=this.$dN();var $6F=0;if(innerHeight>$R){$6F=DayPilot.swa();};var $1b=$0d-$6B-$6E-$6F;return $1b;};this.$dC=function(){var $02=document.createElement("div");$02.style.overflow='hidden';$02.style.position='absolute';$02.style.display='block';$02.style.top="0px";$02.style.width="100%";$02.style.height=this.$9U()+"px";$02.style.overflow="hidden";$02.onmousemove=function(){$i.$cP();if($i.cellBubble){$i.cellBubble.delayedHide();}};this.$dJ($02);this.divTimeScroll=$02;var $05=document.createElement("div");$05.style.width=(this.$9T()*this.cellWidth+5000)+"px";this.divNorth=$05;$02.appendChild($05);return $02;};this.$9Y=function(){var $R=0;if(this.heightSpec==='Fixed'||this.heightSpec==="Parent100Pct"){return this.height?this.height:0;}else{$R=this.$dN();};if(this.heightSpec==='Max'&&$R>this.height){return this.height;};return $R;};this.$dN=function(){var $R;if(this.$96){var $6G=DayPilot.sh($i.nav.scroll);if($6G===0){$R=this.$96;}else{$R=this.$96+$6G;}}else{$R=this.rowlist.length*this.$bS.eventHeight();};return $R;};this.$cP=function(){this.$dG();this.$dO();this.$dP();};this.$dD=function(){var $02=document.createElement("div");$02.style.overflow="auto";$02.style.overflowX="auto";$02.style.overflowY="auto";$02.style.position="absolute";$02.style.height=(this.$9Y())+"px";$02.style.top=(this.$9U()+1)+"px";$02.style.width="100%";if(!this.cssOnly){$02.style.backgroundColor=this.emptyBackColor;};$02.className=this.$9S("_scrollable");$02.oncontextmenu=function(){return false;};this.$dJ($02);this.nav.scroll=$02;this.$9H=document.createElement("div");this.$9H.style.MozUserSelect="none";this.$9H.style.KhtmlUserSelect="none";this.$9H.style.webkitUserSelect="none";this.$9H.daypilotMainD=true;this.$9H.calendar=this;if($a){this.$9H.style.webkitTransform="translateZ(0px)";};this.$9H.style.position='absolute';var $6H=this.$cA();if($6H>0&&!isNaN($6H)){this.$9H.style.width=($6H)+"px";};this.$9H.setAttribute("unselectable","on");this.$9H.onmousedown=this.$dQ;this.$9H.onmousemove=this.$dR;this.$9H.onmouseup=this.$dS;this.$9H.oncontextmenu=this.$dT;this.$9H.ondblclick=this.$dU;this.$9H.className=this.$9S("_matrix");this.divStretch=document.createElement("div");this.divStretch.style.position='absolute';this.divStretch.style.height='1px';this.$9H.appendChild(this.divStretch);this.divCells=document.createElement("div");this.divCells.style.position='absolute';this.divCells.oncontextmenu=this.$dT;this.$9H.appendChild(this.divCells);this.divLines=document.createElement("div");this.divLines.style.position='absolute';this.divLines.oncontextmenu=this.$dT;this.$9H.appendChild(this.divLines);this.divBreaks=document.createElement("div");this.divBreaks.style.position='absolute';this.divBreaks.oncontextmenu=this.$dT;this.$9H.appendChild(this.divBreaks);this.divSeparators=document.createElement("div");this.divSeparators.style.position='absolute';this.divSeparators.oncontextmenu=this.$dT;this.$9H.appendChild(this.divSeparators);this.divLinksBelow=document.createElement("div");this.divLinksBelow.style.position="absolute";this.$9H.appendChild(this.divLinksBelow);this.divCrosshair=document.createElement("div");this.divCrosshair.style.position='absolute';this.divCrosshair.ondblclick=this.$dU;this.$9H.appendChild(this.divCrosshair);this.divRange=document.createElement("div");this.divRange.style.position='absolute';this.divRange.oncontextmenu=this.$dT;this.$9H.appendChild(this.divRange);this.divEvents=document.createElement("div");this.divEvents.style.position='absolute';this.$9H.appendChild(this.divEvents);this.divSeparatorsAbove=document.createElement("div");this.divSeparatorsAbove.style.position='absolute';this.divSeparatorsAbove.oncontextmenu=this.$dT;this.$9H.appendChild(this.divSeparatorsAbove);this.divLinksAbove=document.createElement("div");this.divLinksAbove.style.position="absolute";this.$9H.appendChild(this.divLinksAbove);this.divLinkShadow=document.createElement("div");this.divLinkShadow.style.position="absolute";this.$9H.appendChild(this.divLinkShadow);this.divLinkpoints=document.createElement("div");this.divLinkpoints.style.position="absolute";this.$9H.appendChild(this.divLinkpoints);this.divRectangle=document.createElement("div");this.divRectangle.style.position="absolute";this.$9H.appendChild(this.divRectangle);this.divHover=document.createElement("div");this.divHover.style.position='absolute';this.$9H.appendChild(this.divHover);$02.appendChild(this.$9H);return $02;};this.$dV={};var $0X=this.$dV;$0X.create=function(){if($i.nav.overlay){return;};var $02=document.createElement('div');$02.style.position="absolute";$02.style.left="0px";$02.style.right="0px";$02.style.top="0px";$02.style.bottom="0px";$02.className=$i.$9S("_block");$i.nav.top.appendChild($02);$i.nav.overlay=$02;};$0X.show=function(){$0X.create();$i.nav.overlay.style.display='';};$0X.hide=function(){if($i.nav.overlay){$i.nav.overlay.style.display='none';}};this.$by=function($6I){if($i.loadingTimeout){window.clearTimeout($i.loadingTimeout);};var $09=$6I?0:100;$i.loadingTimeout=window.setTimeout(function(){if($i.loadingLabelVisible){$i.nav.loading.innerHTML=$i.loadingLabelText;$i.nav.loading.style.display='';};if($i.blockOnCallBack){$0X.show();}},$09);};this.$9a=function(){if(this.loadingTimeout){window.clearTimeout(this.loadingTimeout);};this.nav.loading.style.display='none';if(this.blockOnCallBack){$0X.hide();}};this.$dW=function(){this.startDate=new DayPilot.Date(this.startDate).getDatePart();};this.$dX=function($6J){var $02=document.createElement("div");$02.style.position="absolute";$02.style.top="-2000px";$02.style.left="-2000px";$02.className=this.$9S($6J);document.body.appendChild($02);var $R=$02.offsetHeight;var $z=$02.offsetWidth;document.body.removeChild($02);var $j={};$j.height=$R;$j.width=$z;return $j;};this.$9b=function($6K){if($6K){this.autoRefreshEnabled=true;};if(!this.autoRefreshEnabled){return;};if(this.$95>=this.autoRefreshMaxCount){return;};this.$bx();var $6L=this.autoRefreshInterval;if(!$6L||$6L<10){throw "The minimum autoRefreshInterval is 10 seconds";};this.autoRefreshTimeout=window.setTimeout(function(){$i.$dY();},this.autoRefreshInterval*1000);};this.$bx=function(){if(this.autoRefreshTimeout){window.clearTimeout(this.autoRefreshTimeout);}};this.autoRefreshStart=function($6K){$i.$9b($6K);};this.autoRefreshPause=function(){$i.$bx();};this.$dY=function(){if(!DayPilotScheduler.resizing&&!DayPilotScheduler.moving&&!DayPilotScheduler.drag&&!DayPilotScheduler.range){var $6M=false;if(typeof this.onAutoRefresh==='function'){var $l={};$l.i=this.$95;$l.preventDefault=function(){this.preventDefault.value=true;};$i.onAutoRefresh($l);if($l.preventDefault.value){$6M=true;}};if(!$6M&&this.$a2()){this.commandCallBack(this.autoRefreshCommand);};this.$95++;};if(this.$95<this.autoRefreshMaxCount){this.autoRefreshTimeout=window.setTimeout(function(){$i.$dY();},this.autoRefreshInterval*1000);}};this.$dZ=function(){if(!DayPilotScheduler.globalHandlers){DayPilotScheduler.globalHandlers=true;DayPilot.re(document,'mousemove',DayPilotScheduler.gMouseMove);DayPilot.re(document,'mouseup',DayPilotScheduler.gMouseUp);DayPilot.re(document,'keyup',DayPilotScheduler.gKeyUp);DayPilot.re(document,'mousedown',DayPilotScheduler.gMouseDown);DayPilot.re(document,'touchmove',DayPilotScheduler.gTouchMove);DayPilot.re(document,'touchend',DayPilotScheduler.gTouchEnd);};DayPilot.re(window,'resize',this.$bP);};this.$e0=function(){this.nav.scroll.root=this;this.nav.scroll.onscroll=this.$9F;$i.$cs=this.nav.scroll.scrollLeft;$i.$cr=this.nav.scroll.scrollTop;$i.$ct=this.divNorth.clientWidth;};this.$9C=function(){if(!this.nav.state){return;};var $6N={};$6N.scrollX=this.nav.scroll.scrollLeft;$6N.scrollY=this.nav.scroll.scrollTop;if(this.syncResourceTree){$6N.tree=this.$bH();};this.nav.state.value=DayPilot.he(DayPilot.JSON.stringify($6N));};this.$9y=function(){if(!this.separators){return;};for(var i=0;i<this.separators.length;i++){this.$e1(i);}};this.$e2={};this.$e2.step=300;this.$e2.delay=10;this.$e2.mode="display";this.$e2.layers=true;this.$d9=function($I){var $6O=true;var $6P=this.durationBarDetached?-10:0;var $58=0;for(var j=0;j<$I.lines.length;j++){var $0u=$I.lines[j];$0u.height=0;$0u.top=$58;for(var k=0;k<$0u.length;k++){var e=$0u[k];if(!e.part.top||$6O){e.part.line=j;if(!e.part.height){e.part.height=$I.eventHeight;};var $5g=e.part.$da();if($5g>$0u.height){$0u.height=$5g;};e.part.top=$58+$I.marginTop;if($i.eventVersionsEnabled&&!DayPilot.list(e.data.versions).isEmpty()){var $0g=e.data.versions.length;var top=e.part.top;DayPilot.list(e.data.versions).each(function($5k,i){if(!e.versions[i]){return;};var $0B=i*($i.eventVersionHeight+$i.eventVersionMargin);e.versions[i].top=top+$0B;e.part.top+=$i.eventVersionHeight;e.part.top+=$i.eventVersionMargin;});};e.part.detachedBarTop=e.part.top-$6P;e.part.right=e.part.left+e.part.width;e.part.fullTop=this.rowlist[e.part.dayIndex].top+e.part.top;e.part.fullBottom=e.part.fullTop+e.part.height;}};$58+=($0u.height||$I.eventHeight)*this.eventStackingLineHeight/100;}};this.$9z=function($1g){var $E=this.$e2.step;var $6Q=this.$e2.layers;if($6Q){$i.divEvents=document.createElement("div");$i.divEvents.style.position='absolute';$i.$9H.insertBefore(this.divEvents,this.divSeparatorsAbove);};if(this.$e2.mode==='display'){this.divEvents.style.display='none';}else if(this.$e2.mode==='visibility'){this.divEvents.style.visibility='hidden';};var $6R=this.dynamicEventRendering==='Progressive';var $J=this.$9L();var top=$J.pixels.top;var $W=$J.pixels.bottom;for(var i=0;i<this.rowlist.length;i++){var $I=this.rowlist[i];var $3S=$I.top-this.dynamicEventRenderingMargin;var $6S=$3S+$I.height+2*this.dynamicEventRenderingMargin;if($6R&&($W<=$3S||top>=$6S)){continue;};this.$d9($I);for(var j=0;j<$I.lines.length;j++){var $0u=$I.lines[j];for(var k=0;k<$0u.length;k++){var e=$0u[k];var $6T=this.$e3(e);if($1g&&$6T){$E--;if($E<=0){this.divEvents.style.visibility='';this.divEvents.style.display='';window.setTimeout(function(){$i.$9z($1g);},$i.$e2.delay);return;}}}}};this.divEvents.style.display='';if(!DayPilot.list($i.multiselect.list).isEmpty()){$i.multiselect.redraw();};this.$9O();$1c.load();};this.$aY=function($6U){var $I=this.rowlist[$6U];this.divEvents=document.createElement("div");this.divEvents.style.position='absolute';this.divEvents.style.display='none';this.$9H.insertBefore(this.divEvents,this.divSeparatorsAbove);var $6P=this.durationBarDetached?10:0;this.$d9($I);for(var j=0;j<$I.lines.length;j++){var $0u=$I.lines[j];for(var k=0;k<$0u.length;k++){var e=$0u[k];this.$e3(e);}};this.divEvents.style.display='';};this.$9u=function(){if(this.elements.events){var length=this.elements.events.length;for(var i=0;i<length;i++){var $02=this.elements.events[i];this.$e4($02);}};this.elements.events=[];};this.$aX=function($6U){if(this.elements.events){var length=this.elements.events.length;var $6V=[];for(var i=0;i<length;i++){var $02=this.elements.events[i];if($02.row===$6U){this.$e4($02);$6V.push(i);}};for(var i=$6V.length-1;i>=0;i--){this.elements.events.splice($6V[i],1);}}};this.$e4=function($02){$02.onclick=null;$02.oncontextmenu=null;$02.onmouseover=null;$02.onmouseout=null;$02.onmousemove=null;$02.onmousedown=null;$02.ondblclick=null;if($02.event){if(!$02.isBar){$02.event.rendered=null;};$02.event=null;};if($02.related){DayPilot.de($02.related);};if($02.parentNode){$02.parentNode.removeChild($02);}};this.$e5=function($02){if($02.event){$02.event.rendered=false;};$02.onclick=null;$02.onmousedown=null;$02.event=null;if($02.parentNode){$02.parentNode.removeChild($02);}};this.$e6=function($6W){if(!$6W){$6W=0;};if(this.dynamicEventRendering!=='Progressive'){return;};this.divEvents.style.display='none';var $6X=[];var $6Y=0;var length=this.elements.events.length;for(var i=length-1;i>=0;i--){var $02=this.elements.events[i];if(this.$e7($02.event)){if($6W>0){$6W--;$6X.unshift($02);}else{this.$e4($02);$6Y++;}}else{$6X.unshift($02);}};this.elements.events=$6X;this.divEvents.style.display='';};this.$e8=function($6W){var $6X=[];var $6Y=0;var $J=this.$9L();var length=this.elements.cells.length;for(var i=length-1;i>=0;i--){var $02=this.elements.cells[i];var $6Z=($J.xStart<$02.coords.x&&$02.coords.x<=$J.xEnd)&&($J.yStart<$02.coords.y&&$02.coords.y<=$J.yEnd);if(!$6Z){if($6W>0){$6W--;$6X.unshift($02);}else{this.$cb($02);$6Y++;}}else{$6X.unshift($02);}}};this.$cb=function($02){if(!$02){return;};var x=$02.coords.x;var y=$02.coords.y;DayPilot.rfa($i.elements.cells,$02);DayPilot.de($02);$i.$97.cells[x+"_"+y]=null;};this.$9v=function(){if(this.elements.separators){for(var i=0;i<this.elements.separators.length;i++){var $02=this.elements.separators[i];DayPilot.de($02);}};this.elements.separators=[];};this.$e9=function(){var $6R=this.dynamicEventRendering==='Progressive';if(!this.nav.scroll){return false;};var top=this.nav.scroll.scrollTop;var $W=top+this.nav.scroll.clientHeight;for(var i=0;i<this.rowlist.length;i++){var $I=this.rowlist[i];var $3S=$I.top;var $6S=$I.top+$I.height;if($6R&&($W<=$3S||top>=$6S)){continue;};for(var j=0;j<$I.lines.length;j++){var $0u=$I.lines[j];for(var k=0;k<$0u.length;k++){var e=$0u[k];if(this.$ea(e)){return true;}}}};return false;};this.$ea=function($q){if($q.rendered){return false;};var $6R=this.dynamicEventRendering==='Progressive';var $N=this.nav.scroll.scrollLeft;var $O=$N+this.nav.scroll.clientWidth;var $70=$q.Left;var $71=$q.Left+$q.Width;if($6R&&($O<=$70||$N>=$71)){return false;};return true;};this.$e7=function(ev){if(!ev.rendered){return true;};var $J=this.$9L();var top=$J.pixels.top;var $W=$J.pixels.bottom;var $N=$J.pixels.left-this.dynamicEventRenderingMargin;var $O=$J.pixels.right+this.dynamicEventRenderingMargin;var $70=ev.part.left;var $71=ev.part.right;var $72=ev.part.fullTop;var $73=ev.part.fullBottom;if($O<=$70||$N>=$71){return true;};if($W<=$72||top>=$73){return true;};return false;};this.$d8=DayPilot.list();this.$eb=function($59){if($59.rendered){return false;};var $N=$59.min;var $z=$59.max-$59.min;var $R=$i.eventHeight;var top=$59.row.top;var $02=document.createElement("div");$02.style.position='absolute';$02.style.left=$N+'px';$02.style.top=top+'px';$02.style.width=$z+'px';$02.style.height=$R+'px';$02.className=$i.$9S("_event_group");$02.style.cursor="pointer";var $l={};$l.group={};$l.group.count=$59.events.length;$l.group.html="[+] "+$59.events.length+" events";if(typeof $i.onBeforeGroupRender==="function"){$i.onBeforeGroupRender($l);};var $05=document.createElement("div");$05.innerHTML=$l.group.html;$02.appendChild($05);$02.onmousedown=function(ev){var ev=ev||window.event;ev.cancelBubble=true;};$02.onclick=function(ev){var $59=$02.event;$59.expanded=true;$i.$e5($02);var $74=DayPilot.indexOf($i.elements.events,$02);if($74!==-1){$i.elements.events.splice($74,1);};var $Y=$i.$d8;DayPilot.list($59.events).each(function(e){$Y.push(e.id());});$i.$aE();$i.$aF($59.part.dayIndex);$i.$9s();var ev=ev||window.event;ev.cancelBubble=true;};$59.part={};$59.part.left=$N;$59.part.width=$z;$59.part.dayIndex=DayPilot.indexOf($i.rowlist,$59.row);$59.part.top=0;$59.client={};$59.client.html=function(){return $l.group.html;};$02.event=$59;this.elements.events.push($02);this.divEvents.appendChild($02);$59.rendered=true;return true;};this.$e3=function(e){if(e.rendered){return false;};if($i.groupConcurrentEvents){var $59=e.part.block;if($59.events.length>1&&!$59.expanded){return $i.$eb($59);}};var $6R=this.dynamicEventRendering==='Progressive';var $J=this.$9L();var $N=$J.pixels.left-this.dynamicEventRenderingMargin;var $O=$J.pixels.right+this.dynamicEventRenderingMargin;var $70=e.part.left;var $71=e.part.left+e.part.width;if($6R&&($O<=$70||$N>=$71)){return false;};var $6U=e.part.dayIndex;var $75=!this.cssOnly&&this.eventBorderVisible;var $z=e.part.width;var $R=e.part.height;if($75){$z-=2;$R-=2;};var $0w=e.cache||e.data;$z=Math.max(0,$z);$R=Math.max(0,$R);var $I=this.rowlist[$6U];if($I.hidden){return false;};var $3S=$I.top;var $76=this.durationBarDetached;var $02=document.createElement("div");$02.related=[];if($76){var $77=e.part.barLeft;var $3T=e.part.barWidth;if(this.durationBarMode==="PercentComplete"){$77=0;$3T=($0w.complete||0)/100*$z;};var $3q=document.createElement("div");$3q.style.position='absolute';$3q.style.left=(e.part.left+$77)+'px';$3q.style.top=($3S+e.part.detachedBarTop)+'px';$3q.style.width=$3T+'px';$3q.style.height=5+'px';$3q.style.backgroundColor="black";$3q.type="detachedBar";$02.related.push($3q);this.divEvents.appendChild($3q);};(function drawVersions(parent){if(!$i.eventVersionsEnabled){return;};DayPilot.list(e.data.versions).each(function($5k,i){if(!$5k){return;};var $78=e.versions[i];if(!$78){return;};var $02=document.createElement("div");$02.style.position='absolute';$02.style.left=$78.left+'px';$02.style.top=($3S+$78.top)+'px';$02.style.width=$78.width+'px';$02.style.height=$i.eventVersionHeight+'px';$02.className=$i.$9S("_event")+" "+$i.$9S("_event_previous")+" "+$i.$9S("_event_version");if($5k.toolTip){$02.title=$5k.toolTip;};if($5k.cssClass){DayPilot.Util.addClass($02,$5k.cssClass);};var $05=document.createElement("div");$05.setAttribute("unselectable","on");$05.className=$i.$9S("_event_inner");$05.innerHTML=$5k.html||$5k.text||"";if($5k.backColor){$05.style.background=$5k.backColor;if(DayPilot.browser.ie9||DayPilot.browser.ielt9){$05.style.filter='';}};if($5k.fontColor){$05.style.color=$5k.fontColor;};if($5k.borderColor){$05.style.borderColor=$5k.borderColor;};if($5k.backImage){$05.style.backgroundImage="url("+$5k.backImage+")";if($5k.backRepeat){$05.style.backgroundRepeat=$5k.backRepeat;}};$02.appendChild($05);if($78.continueLeft){DayPilot.Util.addClass($02,$i.$9S("_event_continueleft"));};if($78.continueRight){DayPilot.Util.addClass($02,$i.$9S("_event_continueright"));};var $79=$i.durationBarVisible&&!$5k.barHidden;var $z=$78.width;if($79&&$z>0){var $77=100*$78.barLeft/($z);var $3T=Math.ceil(100*$78.barWidth/($z));if($i.durationBarMode==="PercentComplete"){$77=0;$3T=$5k.complete||0;};var $3q=document.createElement("div");$3q.setAttribute("unselectable","on");$3q.className=$i.$9S("_event_bar");$3q.style.position="absolute";if($5k.barBackColor){$3q.style.backgroundColor=$5k.barBackColor;};var $7a=document.createElement("div");$7a.setAttribute("unselectable","on");$7a.className=$i.$9S("_event_bar_inner");$7a.style.left=$77+"%";if(0<$3T&&$3T<=1){$7a.style.width="1px";}else{$7a.style.width=$3T+"%";};if($5k.barColor){$7a.style.backgroundColor=$5k.barColor;};if($5k.barImageUrl){$7a.style.backgroundImage="url("+$5k.barImageUrl+")";};$3q.appendChild($7a);$02.appendChild($3q);};if($5k.htmlLeft){var $4y=5;var $7b=document.createElement("div");$7b.style.position='absolute';$7b.style.right=-($78.left-$4y)+'px';$7b.style.top=($3S+$78.top)+'px';$7b.style.height=$i.eventHeight+'px';$7b.style.boxSizing="border-box";$7b.innerHTML=$5k.htmlLeft;$7b.className=$i.$9S("_event_left");$7b.type="divLeft";$7b.versionPart=$78;parent.related.push($7b);$i.divEvents.appendChild($7b);};if($5k.htmlRight){var $4y=5;var $7c=document.createElement("div");$7c.style.position='absolute';$7c.style.left=($78.left+$78.width+$4y)+'px';$7c.style.top=($3S+$78.top)+'px';$7c.style.height=$i.eventHeight+'px';$7c.style.boxSizing="border-box";$7c.innerHTML=$5k.htmlRight;$7c.className=$i.$9S("_event_right");$7c.type="divRight";$7c.versionPart=$78;parent.related.push($7c);$i.divEvents.appendChild($7c);};$02.versionPart=$78;$02.type="version";parent.related.push($02);$i.divEvents.appendChild($02);});})($02);if(e.data.htmlLeft){var $4y=5;var $7b=document.createElement("div");$7b.style.position='absolute';$7b.style.right=-(e.part.left-$4y)+'px';$7b.style.top=($3S+e.part.top)+'px';$7b.style.height=$i.eventHeight+'px';$7b.style.boxSizing="border-box";$7b.innerHTML=e.data.htmlLeft;$7b.className=$i.$9S("_event_left");$7b.type="divLeft";$02.related.push($7b);this.divEvents.appendChild($7b);};if(e.data.htmlRight){var $4y=5;var $7c=document.createElement("div");$7c.style.position='absolute';$7c.style.left=(e.part.left+e.part.width+$4y)+'px';$7c.style.top=($3S+e.part.top)+'px';$7c.style.height=$i.eventHeight+'px';$7c.style.boxSizing="border-box";$7c.innerHTML=e.data.htmlRight;$7c.className=$i.$9S("_event_right");$7c.type="divRight";$02.related.push($7c);this.divEvents.appendChild($7c);};var top=$3S+e.part.top;$02.style.position='absolute';$02.style.left=e.part.left+'px';$02.style.top=($3S+e.part.top)+'px';$02.style.width=$z+'px';$02.style.height=$R+'px';if(!$i.eventTextWrappingEnabled){$02.style.whiteSpace='nowrap';};$02.style.overflow='hidden';$02.className=this.cssOnly?this.$9S("_event"):this.$9S("event");if(e.data.type==="Milestone"){DayPilot.Util.addClass($02,$i.$9S("_task_milestone"));};if(e.data.type==="Group"){DayPilot.Util.addClass($02,$i.$9S("_task_parent"));DayPilot.Util.addClass($02,$i.$9S("_task_group"));};if($0w.cssClass){DayPilot.Util.addClass($02,$0w.cssClass);};var $7d=true;if($7d){DayPilot.Util.addClass($02,this.$9S("_event_line"+e.part.line));};$02.setAttribute("unselectable","on");if(this.showToolTip&&!this.bubble){$02.title=e.client.toolTip()||"";};$02.onmousemove=this.$ec;$02.onmouseout=this.$ed;$02.onmousedown=this.$ee;$02.ontouchstart=$0I.onEventTouchStart;$02.ontouchmove=$0I.onEventTouchMove;$02.ontouchend=$0I.onEventTouchEnd;if(e.client.clickEnabled()){$02.onclick=this.$ah;};if(e.client.doubleClickEnabled()){$02.ondblclick=this.$at;};$02.oncontextmenu=this.$as;var $7e=[];var $7f=0;if(this.cssOnly){var $05=document.createElement("div");$05.setAttribute("unselectable","on");$05.className=$i.$9S("_event_inner");$05.innerHTML=e.client.innerHTML();if($0w.backColor){$05.style.background=$0w.backColor;if(DayPilot.browser.ie9||DayPilot.browser.ielt9){$05.style.filter='';}};if($0w.fontColor){$05.style.color=$0w.fontColor;};if($0w.borderColor){$05.style.borderColor=$0w.borderColor;};if($0w.backImage){$05.style.backgroundImage="url("+$0w.backImage+")";if($0w.backRepeat){$05.style.backgroundRepeat=$0w.backRepeat;}};$02.appendChild($05);var $7g=e.start().getTime()===e.part.start.getTime();var $7h=e.rawend().getTime()===e.part.end.getTime();if(!$7g){DayPilot.Util.addClass($02,this.$9S("_event_continueleft"));};if(!$7h){DayPilot.Util.addClass($02,this.$9S("_event_continueright"));};if(e.client.barVisible()&&$z>0){var $77=100*e.part.barLeft/($z);var $3T=Math.ceil(100*e.part.barWidth/($z));if(this.durationBarMode==="PercentComplete"){$77=0;$3T=$0w.complete||0;};var $3q=document.createElement("div");$3q.setAttribute("unselectable","on");$3q.className=this.$9S("_event_bar");$3q.style.position="absolute";if($0w.barBackColor){$3q.style.backgroundColor=$0w.barBackColor;};var $7a=document.createElement("div");$7a.setAttribute("unselectable","on");$7a.className=this.$9S("_event_bar_inner");$7a.style.left=$77+"%";if(0<$3T&&$3T<=1){$7a.style.width="1px";}else{$7a.style.width=$3T+"%";};if($0w.barColor){$7a.style.backgroundColor=$0w.barColor;};if($0w.barImageUrl){$7a.style.backgroundImage="url("+$0w.barImageUrl+")";};$3q.appendChild($7a);$02.appendChild($3q);}};$02.row=$6U;if($0w.areas){for(var i=0;i<$0w.areas.length;i++){var $J=$0w.areas[i];var v=$J.v||"Visible";if(v!=="Visible"){continue;};if($J.start||$J.end){$J.left=$i.getPixels(new DayPilot.Date($J.start)).left-e.part.left;$J.width=$i.getPixels(new DayPilot.Date($J.end)).left-$J.left-e.part.left;};var a=DayPilot.Areas.createArea($02,e,$J);$02.appendChild(a);}};this.elements.events.push($02);this.divEvents.appendChild($02);e.rendered=true;$02.event=e;if($i.multiselect.$aJ($02.event)){$i.multiselect.add($02.event,true);$i.multiselect.$aI($02);};if($i.$9G()){if(typeof $i.onAfterEventRender==='function'){var $l={};$l.e=$02.event;$l.div=$02;$i.onAfterEventRender($l);}}else{if($i.afterEventRender){$i.afterEventRender($02.event,$02);}};return true;};this.$9G=function(){return $i.api===2;};this.$aZ=function(){for(var i=0;i<this.elements.events.length;i++){var $02=this.elements.events[i];var event=$02.event;var $6U=event.part.dayIndex;var $I=this.rowlist[$6U];var $3S=$I.top;var top=$3S+event.part.top;$02.style.top=top+'px';DayPilot.list($02.related).filter(function($00){return !!$00.versionPart;}).each(function($7i){var $78=$7i.versionPart;$7i.style.top=($3S+$78.top)+'px';});DayPilot.list($02.related).filter(function($00){return !$00.versionPart&&($00.type==="divLeft"||$00.type==="divRight");}).each(function($7i){$7i.style.top=top+'px';});}};this.$bZ=function(e){if(!e){return null;};for(var i=0;i<$i.elements.events.length;i++){var $02=$i.elements.events[i];if($02.event===e||$02.event.data===e.data){return $02;}};return null;};this.$ed=function(ev){var $02=this;DayPilot.Areas.hideAreas($02,ev);if($i.cssOnly){DayPilot.Util.removeClass($02,$i.$9S("_event_hover"));};$i.$ef($02);if(!$20.source){$1c.hideLinkpointsWithDelay();};if($i.bubble&&$i.eventHoverHandling==='Bubble'){$i.bubble.hideOnMouseOut();}};this.$eg=function($02){if(typeof this.onEventMouseOver==="function"){var $l={};$l.div=$02;$l.e=$02.event;this.onEventMouseOver($l);}};this.$ef=function($02){if(typeof this.onEventMouseOut==="function"){var $l={};$l.div=$02;$l.e=$02.event;this.onEventMouseOut($l);}};this.$ec=function(ev){ev=ev||window.event;if($i.cellBubble){$i.cellBubble.delayedHide();};var $02=this;while($02&&!$02.event){$02=$02.parentNode;};$i.$eh($02,ev);var $7j=$02.event.cache?$02.event.cache.deleteDisabled:$02.event.data.deleteDisabled;if(!$02.active){var $4L=[];if($i.eventDeleteHandling!=="Disabled"&&!$7j){var top=$i.durationBarVisible?$i.durationBarHeight:0;$4L.push({"action":"JavaScript","v":"Hover","w":17,"h":17,"top":top+2,"right":2,"css":$i.$9S("_event_delete"),"js":function(e){$i.$ap(e);}});};var $Y=$02.event.cache?$02.event.cache.areas:$02.event.data.areas;if($Y&&$Y.length>0){$4L=$4L.concat($Y);};DayPilot.Areas.showAreas($02,$02.event,null,$4L);if($i.cssOnly){DayPilot.Util.addClass($02,$i.$9S("_event_hover"));};$i.$eg($02);};if($i.linkCreateHandling!=="Disabled"&&!$20.source){$1c.clearHideTimeout();$1c.hideLinkpoints();if(!DayPilotScheduler.moving&&!DayPilotScheduler.resizing){$1c.showLinkpoint($02);}};if(ev.srcElement){ev.srcElement.insideEvent=true;}else{ev.insideEvent=true;}};this.$ei={};var $0J=this.$ei;this.$ee=function(ev){$i.$cP();if(typeof DayPilot.Bubble!=='undefined'){DayPilot.Bubble.hideActive();};ev=ev||window.event;var $7k=DayPilot.Util.mouseButton(ev);if($7k.left){var $1w=ev.shiftKey;if($i.multiSelectRectangle!=="Disabled"&&$1w){$0O.start();return false;};if(this.style.cursor==='w-resize'||this.style.cursor==='e-resize'){DayPilotScheduler.resizing=this;DayPilotScheduler.originalMouse=DayPilot.mc(ev);document.body.style.cursor=this.style.cursor;$1c.hideLinkpoints();}else if((this.style.cursor==='move')||($i.moveBy==='Full'&&this.event.client.moveEnabled())){$0J.start=true;$0J.moving=this;$0J.originalMouse=DayPilot.mc(ev);$0J.moveOffsetX=DayPilot.mo3(this,ev).x;$0J.moveDragStart=$i.getDate($i.coords.x,true);$1c.hideLinkpoints();}};DayPilot.Menu&&DayPilot.Menu.active&&DayPilot.Menu.active.hide();ev.cancelBubble=true;return false;};this.$ej={};var $0I=$i.$ej;$0I.active=false;$0I.start=false;$0I.timeouts=[];$0I.onEventTouchStart=function(ev){if($0I.active||$0I.start){return;};ev.stopPropagation();$0I.clearTimeouts();$0I.start=true;$0I.active=false;var $02=this;var $7l=$i.tapAndHoldTimeout;$0I.timeouts.push(window.setTimeout(function(){$0I.active=true;$0I.start=false;$i.coords=$0I.relativeCoords(ev);ev.preventDefault();switch($i.eventTapAndHoldHandling){case "Move":var $1T=touchMousePos(ev);$0I.startMoving($02,$1T);break;case "ContextMenu":var e=$02.event;if(DayPilot.Menu){DayPilot.Menu.touchPosition(ev);};var $0N=e.client.contextMenu();if($0N){$0N.show(e);}else{if($i.contextMenu){$i.contextMenu.show(e);}};break;}},$7l));};$0I.onEventTouchMove=function(ev){$0I.clearTimeouts();$0I.start=false;};$0I.onEventTouchEnd=function(ev){if(DayPilot.Util.isMouseEvent(ev)){return;};$0I.clearTimeouts();if($0I.start){$0I.start=false;ev.preventDefault();ev.stopPropagation();var $02=this;window.setTimeout(function(){$i.$al($02,ev);});};window.setTimeout(function(){$0I.start=false;$0I.active=false;},500);};$0I.onMainTouchStart=function(ev){if($0I.active||$0I.start){return;};$0I.clearTimeouts();$0I.start=true;$0I.active=false;var $7l=$i.tapAndHoldTimeout;$0I.timeouts.push(window.setTimeout(function(){$0I.active=true;$0I.start=false;ev.preventDefault();$i.coords=$0I.relativeCoords(ev);$0I.range=$i.$ek();},$7l));var $7m=true;if($7m){$i.coords=$0I.relativeCoords(ev);}};$0I.onMainTouchMove=function(ev){$0I.clearTimeouts();$0I.start=false;if(DayPilotScheduler.resizing){ev.preventDefault();$0I.updateResizing();return;};if($0I.active){ev.preventDefault();$i.coords=$0I.relativeCoords(ev);if(DayPilotScheduler.moving){$0I.updateMoving();return;};if($0I.range){var $1l=$0I.range;$1l.end={x:Math.floor($i.coords.x/$i.cellWidth)};$i.$bc($1l);}}};$0I.onMainTouchEnd=function(ev){$0I.clearTimeouts();var $7m=true;if($0I.active){if(DayPilotScheduler.moving){ev.preventDefault();var e=DayPilotScheduler.moving.event;var $0m=DayPilotScheduler.movingShadow.start;var $0V=DayPilotScheduler.movingShadow.end;var $10=($i.viewType!=='Days')?DayPilotScheduler.movingShadow.row.id:null;var external=DayPilotScheduler.drag?true:false;var $4u=DayPilotScheduler.movingShadow.overlapping;var $7n=!DayPilotScheduler.movingShadow.allowed;DayPilot.Util.removeClass(DayPilotScheduler.moving,$i.$9S("_event_moving_source"));DayPilot.de(DayPilotScheduler.movingShadow);$i.$cF();DayPilotScheduler.movingShadow.calendar=null;document.body.style.cursor='';DayPilotScheduler.moving=null;DayPilotScheduler.movingShadow=null;$i.$cy.clear();if($4u||$7n||$i.$cy.forbidden||$i.$cy.invalid){return;};$i.$b3(e,$0m,$0V,$10,external);};if($0I.range){var $1l=$0I.range;$0I.range=null;var $1U=$i.elements.range2;if($1U&&$1U.overlapping){$i.clearSelection();}else{$i.$b8($1l);}}}else if($0I.start&&$7m){var $1l=$i.$ek();$i.$bc($1l);var $1U=$i.elements.range2;if($1U&&$1U.overlapping){$i.clearSelection();}else{$i.$b8($1l);}};window.setTimeout(function(){$0I.start=false;$0I.active=false;},500);};$0I.clearTimeouts=function(){for(var i=0;i<$0I.timeouts.length;i++){clearTimeout($0I.timeouts[i]);};$0I.timeouts=[];};$0I.relativeCoords=function(ev){var $7o=$i.$9H;var x=ev.touches[0].pageX;var y=ev.touches[0].pageY;var $7p=DayPilot.abs($7o);var $1T={x:x-$7p.x,y:y-$7p.y,toString:function(){return "x: "+this.x+", y:"+this.y;}};return $1T;};$0I.startMoving=function($02,$1T){DayPilotScheduler.moving=$02;DayPilotScheduler.originalMouse=$1T;var $7q=DayPilot.abs($02);DayPilotScheduler.moveOffsetX=$1T.x-$7q.x;DayPilotScheduler.moveDragStart=$i.getDate($i.coords.x,true);DayPilotScheduler.movingShadow=$i.$bT($02,$i.shadow);$i.$co();};$0I.startResizing=function($02,$3b){DayPilotScheduler.resizing=$02;DayPilotScheduler.resizing.dpBorder=$3b;if(!DayPilotScheduler.resizingShadow){DayPilotScheduler.resizingShadow=$i.$bT($02,$i.shadow);};$i.$cz();};$0I.updateResizing=function(){if(!DayPilotScheduler.resizingShadow){var mv=DayPilotScheduler.resizing;DayPilotScheduler.resizingShadow=$i.$bT(mv,$i.shadow);};$i.$cz();};$0I.updateMoving=function(){if(DayPilotScheduler.movingShadow&&DayPilotScheduler.movingShadow.calendar!==$i){DayPilotScheduler.movingShadow.calendar=null;DayPilot.de(DayPilotScheduler.movingShadow);DayPilotScheduler.movingShadow=null;};if(!DayPilotScheduler.movingShadow){var mv=DayPilotScheduler.moving;DayPilotScheduler.movingShadow=$i.$bT(mv,$i.shadow);};DayPilotScheduler.moving.target=$i;$i.$co();};this.$eh=function($02,ev){var $7r=this.eventResizeMargin;var $7s=this.eventMoveMargin;var $1R=$02;if(typeof(DayPilotScheduler)==='undefined'){return;};var $0B=DayPilot.mo3($02,ev);if(!$0B){return;};$i.eventOffset=$0B;if(DayPilotScheduler.resizing){return;};if(DayPilotScheduler.moving){return;};var $7t=$1R.event.part.start.toString()===$1R.event.start().toString();var $7u=$1R.event.part.end.toString()===$1R.event.rawend().toString();if($i.moveBy==='Top'&&$0B.y<=$7s&&$1R.event.client.moveEnabled()&&$i.eventMoveHandling!=='Disabled'){$02.style.cursor='move';}else if(($i.moveBy==='Top'||$i.moveBy==='Full')&&$0B.x<=$7r&&$1R.event.client.resizeEnabled()&&$i.eventResizeHandling!=='Disabled'){if($7t){$02.style.cursor="w-resize";$02.dpBorder='left';}else{$02.style.cursor='not-allowed';}}else if($i.moveBy==='Left'&&$0B.x<=$7s&&$1R.event.client.moveEnabled()&&$i.eventMoveHandling!=='Disabled'){$02.style.cursor="move";}else if($02.offsetWidth-$0B.x<=$7r&&$1R.event.client.resizeEnabled()&&$i.eventResizeHandling!=='Disabled'){if($7u){$02.style.cursor="e-resize";$02.dpBorder='right';}else{$02.style.cursor='not-allowed';}}else if(!DayPilotScheduler.resizing&&!DayPilotScheduler.moving){if($1R.event.client.clickEnabled()&&$i.eventClickHandling!=='Disabled'){$02.style.cursor='pointer';}else{$02.style.cursor='default';}};if(typeof(DayPilotBubble)!=='undefined'&&$i.bubble&&$i.eventHoverHandling==='Bubble'){if($02.style.cursor==='default'||$02.style.cursor==='pointer'){var $7v=this.$el&&$0B.x===this.$el.x&&$0B.y===this.$el.y;if(!$7v){this.$el=$0B;$i.bubble.showEvent($02.event);}}else{}}};this.$9T=function(){if(this.viewType!=='Days'){return this.itline.length;}else{return Math.floor(24*60/this.cellDuration);}};this.$b9=function($1l){var $1l=$1l||DayPilotScheduler.range||DayPilotScheduler.rangeHold;if(!$1l){return null;};var $I=$i.rowlist[$1l.start.y];if(!$I){return null;};var r=$1l.$em?$1l.$em:$1l;var $1k=$I.id;var $S=r.end.x>r.start.x?r.start.x:r.end.x;var $T=(r.end.x>r.start.x?r.end.x:r.start.x);var $1p=0;$1p=$I.start.getTime()-this.$a6().getTime();var $K=this.itline[$S].start.addTime($1p);var end=this.itline[$T].end.addTime($1p);return new DayPilot.Selection($K,end,$1k,$i);};this.$en=function($1R){var $7w=$1R.parentNode;var $7x=document.createElement('textarea');$7x.style.position='absolute';$7x.style.width=(($1R.offsetWidth<100)?100:($1R.offsetWidth-2))+'px';$7x.style.height=($1R.offsetHeight-2)+'px';$7x.style.fontFamily=DayPilot.gs($1R,'fontFamily')||DayPilot.gs($1R,'font-family');$7x.style.fontSize=DayPilot.gs($1R,'fontSize')||DayPilot.gs($1R,'font-size');$7x.style.left=$1R.offsetLeft+'px';$7x.style.top=$1R.offsetTop+'px';$7x.style.border='1px solid black';$7x.style.padding='0px';$7x.style.marginTop='0px';$7x.style.backgroundColor='white';$7x.value=DayPilot.tr($1R.event.text());$7x.event=$1R.event;$7w.appendChild($7x);return $7x;};this.$an=function($1R){if(DayPilotScheduler.editing){DayPilotScheduler.editing.blur();};if(!$1R.event){return;};var $7x=this.$en($1R);DayPilotScheduler.editing=$7x;DayPilot.re($7x,DayPilot.touch.start,function(ev){ev.stopPropagation();});$7x.onblur=function(){$7x.onblur=null;DayPilotScheduler.editing=null;if($7x.parentNode){$7x.parentNode.removeChild($7x);};if(!$1R.event){return;};var $7y=$1R.event.text();var $1q=$7x.value;$i.$bu($1R.event,$1q,$7x.canceling);};$7x.onmousedown=function(e){e=e||window.event;e.stopPropagation&&e.stopPropagation();};$7x.onkeypress=function(e){var $5D=(window.event)?event.keyCode:e.keyCode;if($5D===13){this.onblur();return false;};return true;};$7x.cancel=function(){if(DayPilotScheduler.editing){DayPilotScheduler.editing.canceling=true;DayPilotScheduler.editing.blur();}};$7x.onkeydown=function(e){var $5D=(window.event)?event.keyCode:e.keyCode;if($5D===27){DayPilotScheduler.editing.cancel();}};$7x.select();$7x.focus();};this.$cV=function(ev){var td=this;var $I=td.row;if(typeof(DayPilotBubble)!=='undefined'){if($i.cellBubble){$i.cellBubble.hideOnMouseOut();};if($i.resourceBubble){var $1G={};$1G.calendar=$i;$1G.id=$I.id;if($I.bubbleHtml){$1G.bubbleHtml=function(){return $I.bubbleHtml;}};$1G.toJSON=function(){var $1D={};$1D.id=this.id;return $1D;};$i.resourceBubble.showResource($1G);}}};this.$cW=function(ev){var td=this;if(typeof(DayPilotBubble)!=='undefined'&&$i.resourceBubble){$i.resourceBubble.hideOnMouseOut();};var $02=td.firstChild;DayPilot.Areas.hideAreas($02,ev);$02.data=null;};this.$cX=function(ev){if($4M.row){$1r.cancelClick=true;setTimeout(function(){$1r.cancelClick=false;},100);}};this.$9m=function(){if(!this.timeHeader){return;};this.$97.timeHeader={};var $6B=document.createElement("div");$6B.style.position="relative";this.nav.timeHeader=$6B;for(var y=0;y<this.timeHeader.length;y++){var $I=this.timeHeader[y];for(var x=0;x<$I.length;x++){this.$eo(x,y);}};var $7z=this.divNorth;DayPilot.puc($7z);$7z.innerHTML='';$7z.appendChild($6B);var $6H=this.$cA();$7z.style.width=(this.$cA()+5000)+"px";var $7A=this.divCorner;if(!this.cssOnly){$7A.style.backgroundColor=this.cornerBackColor;};if(this.cornerHtml){$7A.innerHTML=this.cornerHtml;}else{$7A.innerHTML='';};var $6H=this.$cA();if($6H>0){this.divStretch.style.width=(this.$cA())+"px";}};this.$ac=function(h,$7B){var $08=null;var $5N=this.$bS.locale();var $7B=$7B||this.cellGroupBy;var $21=h.start;var to=h.end;switch($7B){case 'Hour':$08=($i.$bS.timeFormat()==='Clock12Hours')?$21.toString("h tt",$5N):$21.toString("H",$5N);break;case 'Day':$08=$21.toString($5N.datePattern);break;case 'Week':$08=$0a.weekStarts()===1?$21.weekNumberISO():$21.weekNumber();break;case 'Month':$08=$21.toString("MMMM yyyy",$5N);break;case 'Year':$08=$21.toString("yyyy");break;case 'None':$08='';break;case 'Cell':if(this.scale==='Manual'||this.scale==='CellDuration'){var $0H=(h.end.ticks-h.start.ticks)/60000;$08=this.$ep($21,$0H);}else{$08=this.$ac(h,this.scale);};break;default:throw 'Invalid cellGroupBy value';};return $08;};this.$ep=function($K,$0H){var $5N=this.$bS.locale();var $0H=$0H||this.cellDuration;if($0H<60){return $K.toString("mm");}else if($0H<1440){return $i.$bS.timeFormat()==='Clock12Hours'?$K.toString("h tt",$5N):$K.toString("H",$5N);}else if($0H<10080){return $K.toString("d");}else if($0H===10080){return $0a.weekStarts()===1?$K.weekNumberISO():$K.weekNumber();}else{return $K.toString("MMMM yyyy",$5N);}};this.$a8=function($21){var $7C=this.scale;switch($7C){case "Cell":throw "Invalid scale: Cell";case "Manual":throw "Internal error (addScaleSize in Manual mode)";case "Minute":return $21.addMinutes(1);case "CellDuration":return $21.addMinutes(this.cellDuration);default:return this.$ab($21,$7C);}};this.$ab=function($21,$7B){var to;var $7D=this.viewType!=='Days'?this.days:1;var $0r=this.startDate.addDays($7D);if($i.scale==="Manual"){$0r=$i.$aa();};var $7B=$7B||this.cellGroupBy;var $7E=60;switch($7B){case 'Hour':to=$21.addHours(1);break;case 'Day':to=$21.getDatePart().addDays(1);break;case 'Week':to=$21.getDatePart().addDays(1);while(to.dayOfWeek()!==$0a.weekStarts()){to=to.addDays(1);};break;case 'Month':to=$21.addMonths(1);to=to.firstDayOfMonth();var $7F=(DayPilot.DateUtil.diff(to,$21)/(1000.0*60))%$7E===0;while(!$7F){to=to.addHours(1);$7F=(DayPilot.DateUtil.diff(to,$21)/(1000.0*60))%$7E===0;};break;case 'Year':to=$21.addYears(1);to=to.firstDayOfYear();var $7F=(DayPilot.DateUtil.diff(to,$21)/(1000.0*60))%$7E===0;while(!$7F){to=to.addHours(1);$7F=(DayPilot.DateUtil.diff(to,$21)/(1000.0*60))%$7E===0;};break;case 'None':to=$0r;break;case 'Cell':var $P=this.$ag($21);if($P.current){to=$P.current.end;}else{if($P.past){to=$P.previous.end;}else{to=$P.next.start;}};break;default:throw 'Invalid cellGroupBy value';};if(to.getTime()>$0r.getTime()){to=$0r;};return to;};this.$eo=function(x,y){var $6B=this.nav.timeHeader;var p=this.timeHeader[y][x];var $7G=y<this.timeHeader.length-1;var top=y*$0a.headerHeight();var $N=p.left;var $z=p.width;var $R=$0a.headerHeight();var $P=document.createElement("div");$P.style.position="absolute";$P.style.top=top+"px";$P.style.left=$N+"px";$P.style.width=$z+"px";$P.style.height=$R+"px";if(p.toolTip){$P.title=p.toolTip;};$P.setAttribute("unselectable","on");$P.style.KhtmlUserSelect='none';$P.style.MozUserSelect='none';$P.style.webkitUserSelect='none';$P.oncontextmenu=function(){return false;};$P.cell={};$P.cell.start=p.start;$P.cell.end=p.end;$P.cell.level=y;$P.cell.th=p;$P.onclick=this.$d2;$P.style.overflow='hidden';if(!$i.timeHeaderTextWrappingEnabled){$P.style.whiteSpace="nowrap";};var $05=document.createElement("div");$05.setAttribute("unselectable","on");$05.innerHTML=p.innerHTML;if(p.backColor){$05.style.background=p.backColor;};if(this.cssOnly){var cl=this.$9S("_timeheadercol");var $7H=this.$9S("_timeheadercol_inner");if($7G){cl=this.$9S("_timeheadergroup");$7H=this.$9S("_timeheadergroup_inner");};DayPilot.Util.addClass($P,cl);DayPilot.Util.addClass($05,$7H);};$P.appendChild($05);DayPilot.list(p.areas).each(function($J){if($J.start||$J.end){$J.left=$i.getPixels(new DayPilot.Date($J.start)).left-$N;$J.width=$i.getPixels(new DayPilot.Date($J.end)).left-$J.left-$N;}});DayPilot.Areas.attach($P,p,{"areas":p.areas});this.$97.timeHeader[x+"_"+y]=$P;$6B.appendChild($P);};this.$aE=function(){for(var i=0;i<this.rowlist.length;i++){var $I=this.rowlist[i];var $6X=$I.getHeight()+$I.marginBottom+$I.marginTop;if($I.height!==$6X){this.$aW=true;};$I.height=$6X;}};this.$9q=function(){var $6B=this.divHeader;if(!$6B){return false;};var $2p=this.rowlist.length;var $1O=this.rowHeaderCols?this.rowHeaderCols.length:1;var j=0;for(var i=0;i<$2p;i++){var $I=this.rowlist[i];if($I.hidden){continue;};var $1t=this.$cO?i:j;if(!$6B.rows[$1t]){continue;};for(var c=0;c<$6B.rows[$1t].cells.length;c++){var $7I=$6B.rows[$1t].cells[c];if(this.$cO){$7I.style.top=$I.top+"px";};var $7J=$I.height;if($7I&&$7I.firstChild&&parseInt($7I.firstChild.style.height,10)!==$7J){$7I.firstChild.style.height=$7J+"px";}};j++;};if(this.$cO){if($i.nav.resScrollSpace){$i.nav.resScrollSpace.style.top=$i.$96+"px";}}};this.$e1=function($1t){var s=this.separators[$1t];s.location=s.location||s.Location;s.color=s.color||s.Color;s.layer=s.layer||s.Layer;s.width=s.width||s.Width;s.opacity=s.opacity||s.Opacity;var $0G=new DayPilot.Date(s.location);var $28=s.color;var $z=s.width?s.width:1;var $2b=s.layer?s.layer==='AboveEvents':false;var $7K=s.opacity?s.opacity:100;if($0G.getTime()<this.$a6().getTime()){return;};if($0G.getTime()>=this.$aa().getTime()){return;};var $x=this.getPixels($0G);if($x.cut){return;};if($x.left<0){return;};if($x.left>this.$9T()*this.cellWidth){return;};var $0u=document.createElement("div");$0u.style.width=$z+'px';$0u.style.height=$i.$96+'px';$0u.style.position='absolute';$0u.style.left=($x.left-1)+'px';$0u.style.top='0px';$0u.style.backgroundColor=$28;$0u.style.opacity=$7K/100;$0u.style.filter="alpha(opacity="+$7K+")";if($2b){this.divSeparatorsAbove.appendChild($0u);}else{this.divSeparators.appendChild($0u);};this.elements.separators.push($0u);};this.$dU=function(ev){if($i.timeRangeDoubleClickHandling==='Disabled'){return false;};if(DayPilotScheduler.timeRangeTimeout){clearTimeout(DayPilotScheduler.timeRangeTimeout);DayPilotScheduler.timeRangeTimeout=null;};var $1l={};if(!$i.coords){var $7o=$i.$9H;$i.coords=DayPilot.mo3($7o,ev);};ev=ev||window.event;ev.stopPropagation&&ev.stopPropagation();ev.cancelBubble=true;if($i.$eq($i.coords)){var $1m=$i.$b9(DayPilotScheduler.rangeHold);$i.$be($1m.start,$1m.end,$1m.resource);}else{DayPilotScheduler.range=$i.$ek();if(DayPilotScheduler.range){DayPilotScheduler.rangeCalendar=$i;var $1m=$i.$b9(DayPilotScheduler.range);$i.$be($1m.start,$1m.end,$1m.resource);}};DayPilotScheduler.rangeHold=DayPilotScheduler.range;DayPilotScheduler.range=null;};this.$dQ=function(ev){if($0I.start||$0I.active){return;};if(DayPilotScheduler.timeRangeTimeout&&false){clearTimeout(DayPilotScheduler.timeRangeTimeout);DayPilotScheduler.timeRangeTimeout=null;};$i.$dG();$i.$dO();if(!$i.coords){var $7o=$i.$9H;$i.coords=DayPilot.mo3($7o,ev);};if(DayPilotScheduler.rectangleSelect){return false;};ev=ev||window.event;var $7k=DayPilot.Util.mouseButton(ev);if($7k.middle||($7k.right&&$i.$eq($i.coords))){return false;};if($i.timeRangeSelectedHandling==='Disabled'){return false;};var $17=ev.ctrlKey||ev.metaKey;if($i.allowMultiRange&&!$17){mr.clear();};var $1w=ev.shiftKey;if($i.multiSelectRectangle!=="Disabled"&&$1w){var $3N={};$3N.start=$i.coords;$3N.calendar=$i;DayPilotScheduler.rectangleSelect=$3N;return false;};var i=$i.$bK($i.coords.y).i;var $I=$i.rowlist[i];if($I.isNewRow){return false;};DayPilotScheduler.range=$i.$ek();if(DayPilotScheduler.range){DayPilotScheduler.range.ctrl=$17;DayPilotScheduler.rangeCalendar=$i;};return false;};this.$ek=function(){var $1l={};var cx=this.$ae($i.coords.x).x;$1l.start={y:$i.$bK($i.coords.y).i,x:cx};$1l.end={x:cx};if(this.$bU($i.$bK($i.coords.y).i)){return null;};$1l.calendar=$i;$i.$bc($1l);return $1l;};this.$cB=function(){$i.$cp();var $1U=DayPilotScheduler.resizingShadow;var ev=DayPilotScheduler.resizing;(function(){var $0C=$i.$er;if($0C&&$0C.start.getTime()===$1U.start.getTime()&&$0C.end.getTime()===$i.$ax($1U.end).getTime()){return;};var $l={};$l.start=$1U.start;$l.end=$i.$ax($1U.end);$l.duration=new DayPilot.Duration($l.start,$l.end);$l.e=ev.event;$l.allowed=true;$l.left={};$l.left.html=$l.start.toString($i.eventResizingStartEndFormat);$l.left.enabled=$i.eventResizingStartEndEnabled;$l.right={};$l.right.html=$l.end.toString($i.eventResizingStartEndFormat);$l.right.enabled=$i.eventResizingStartEndEnabled;$l.multiresize=DayPilot.list($0Y.list);var $0Z={};$0Z.event=ev;$0Z.start=$l.start;$0Z.end=$l.end;$l.multiresize.splice(0,0,$0Z);$i.$er=$l;if(typeof $i.onEventResizing==='function'){$i.onEventResizing($l);};$1U.allowed=$l.allowed;$i.$cD(DayPilotScheduler.resizingShadow,$l);$i.$cE(DayPilotScheduler.resizingShadow,$l);})();};this.$dS=function(ev){if(DayPilotScheduler.rectangleSelect){var ev=ev||window.event;ev.cancelBubble=true;ev.preventDefault&&ev.preventDefault();DayPilotScheduler.gMouseUp(ev);return false;};$0J={};};this.$dR=function(ev){if($0I.active){return;};DayPilotScheduler.activeCalendar=$i;ev=ev||window.event;var $7L=DayPilot.mc(ev);$i.coords=DayPilot.mo3($i.$9H,ev);ev.insideMainD=true;if(window.event){window.event.srcElement.inside=true;};if($0J.start){if($0J.originalMouse.x!==$7L.x||$0J.originalMouse.y!==$7L.y){DayPilot.Util.copyProps($0J,DayPilotScheduler);document.body.style.cursor='move';$0J={};}};if(DayPilotScheduler.resizing&&DayPilotScheduler.resizing.event.calendar===$i){$i.$es();}else if(DayPilotScheduler.moving&&(DayPilotScheduler.moving.event.calendar===$i||DayPilotScheduler.moving.event.calendar.dragOutAllowed)){$i.$et();}else if(DayPilotScheduler.range&&DayPilotScheduler.range.calendar===$i){$i.$eu();}else if($20.source){var $0i=$20.source;$1c.drawShadow($0i.coords,$i.coords);}else if(DayPilotScheduler.rectangleSelect){$0O.draw();}else if($i.crosshairType!=='Disabled'){$i.$ev();};$i.$ew();var $7M=ev.insideEvent;if(window.event){$7M=window.event.srcElement.insideEvent;};if($i.cellBubble&&$i.coords&&$i.rowlist&&$i.rowlist.length>0&&!$7M){var x=$i.$ae($i.coords.x);var y=$i.$bK($i.coords.y).i;if(0<=y&&y<$i.rowlist.length&&0<=x&&x<$i.itline.length){var $P={};$P.calendar=$i;$P.start=$i.itline[x].start;$P.end=$i.itline[x].end;$P.resource=$i.rowlist[y].id;$P.toJSON=function(){var $1D={};$1D.start=this.start;$1D.end=this.end;$1D.resource=this.resource;return $1D;};$i.cellBubble.showCell($P);}};if(DayPilotScheduler.drag){$i.$dG();if(DayPilotScheduler.gShadow){document.body.removeChild(DayPilotScheduler.gShadow);};DayPilotScheduler.gShadow=null;if(!DayPilotScheduler.movingShadow&&$i.coords&&$i.rowlist.length>0){if(!DayPilotScheduler.moving){DayPilotScheduler.moving={};var event=DayPilotScheduler.drag.event;if(!event){var $7N=$i.itline[0].start;var ev={'id':DayPilotScheduler.drag.id,'start':$7N,'end':$7N.addSeconds(DayPilotScheduler.drag.duration),'text':DayPilotScheduler.drag.text};var $q=DayPilotScheduler.drag.data;if($q){var $6M=['duration','element','id','text'];for(var name in $q){if(DayPilot.contains($6M,name)){continue;};ev[name]=$q[name];}};event=new DayPilot.Event(ev);event.calendar=$i;event.part.external=true;};DayPilotScheduler.moving.event=event;};DayPilotScheduler.movingShadow=$i.$bT(DayPilotScheduler.moving,DayPilotScheduler.drag.shadowType);};ev.cancelBubble=true;};if($i.autoScroll==="Always"||($i.autoScroll==="Drag"&&(DayPilotScheduler.moving||DayPilotScheduler.resizing||DayPilotScheduler.range))){var $7O=$i.nav.scroll;var $1T={x:$i.coords.x,y:$i.coords.y};$1T.x-=$7O.scrollLeft;$1T.x+=$L.shiftX;$1T.y-=$7O.scrollTop;var $z=$7O.clientWidth;var $R=$7O.clientHeight;var $3b=30;var $N=$1T.x<$3b?$1T.x:0;var $O=$z-$1T.x<$3b?$z-$1T.x:0;var top=$1T.y<$3b?$1T.y:0;var $W=$R-$1T.y<$3b?$R-$1T.y:0;var x=0;var y=0;var $7P=50;if($N){x=-$7P*invertedPct($N,$3b);};if($O){x=$7P*invertedPct($O,$3b);};if(top){y=-$7P*invertedPct(top,$3b)/2;};if($W){y=$7P*invertedPct(top,$3b)/2;};if(DayPilotScheduler.resizing||DayPilotScheduler.range){y=0;};if(x||y){$i.$ex(x,y);}else{$i.$dO();}}};function invertedPct($5V,$y){return 1-$5V/$y;};this.$eu=function(){var $1l=DayPilotScheduler.range;$1l.end={x:$i.$ae($i.coords.x).x};$i.$bc($1l);};this.$es=function(){if(!DayPilotScheduler.resizingShadow){DayPilotScheduler.resizingShadow=$i.$bT(DayPilotScheduler.resizing,$i.shadow);};$i.$cz();};this.$et=function(){if(DayPilotScheduler.movingShadow&&DayPilotScheduler.movingShadow.calendar!==$i){DayPilotScheduler.movingShadow.calendar=null;DayPilot.de(DayPilotScheduler.movingShadow);DayPilotScheduler.movingShadow=null;};if(!DayPilotScheduler.movingShadow){var mv=DayPilotScheduler.moving;DayPilotScheduler.movingShadow=$i.$bT(mv,$i.shadow);};$i.$cm();DayPilotScheduler.moving.target=$i;$i.$co();};this.$ey={};var $0O=this.$ey;$0O.start=function(){var $3N={};$3N.start=$i.coords;$3N.calendar=$i;DayPilotScheduler.rectangleSelect=$3N;};$0O.draw=function(){var $3N=DayPilotScheduler.rectangleSelect;var $K=DayPilotScheduler.rectangleSelect.start;var end=$i.coords;$0O.clear();var $0l={"x":$3N.x,"y":$3N.y,"width":$3N.width,"height":$3N.height};var $N,top,$z,$R;var $S,$U,$T,$V;(function rectifyStartEnd(){$S=Math.min($K.x,end.x);$T=Math.max($K.x,end.x);if($i.multiSelectRectangle==="Free"){$U=Math.min($K.y,end.y);$V=Math.max($K.y,end.y);}else if($i.multiSelectRectangle==="Row"){$U=$K.y;$V=$K.y;}})();if($i.multiSelectRectangle==="Free"){$N=$S;top=$U;$z=$T-$S;$R=$V-$U;}else if($i.multiSelectRectangle==="Row"){var y=$i.$bK($U).i;var $I=$i.rowlist[y];top=$I.top;$R=$I.height;var $3o=$i.$ae($S).cell;$N=$3o.left;var $3p=$i.$ae($T).cell;$z=$3p.left+$3p.width-$N;}else{throw "Invalid DayPilot.Scheduler.multiSelectRectangle value: "+$i.multiSelectRectangle;};var $02=DayPilot.Util.div($i.divRectangle,$N,top,$z,$R);$02.style.boxSizing="border-box";$02.style.backgroundColor="#0000ff";$02.style.border="1px solid #000033";$02.style.opacity=0.4;$3N.x=$N;$3N.y=top;$3N.width=$z;$3N.height=$R;if($3N.x!==$0l.x||$3N.y!==$0l.y||$3N.width!==$0l.width||$3N.height!==$0l.height){if(typeof $i.onRectangleEventSelecting==="function"){var $l={};$l.events=$Q.eventsInRectangle($3N.x,$3N.y,$3N.width,$3N.height).map(function($00){return $00.event;});$l.start=$i.getDate($3N.x,true);$l.end=$i.getDate($3N.x+$3N.width,true);$i.onRectangleEventSelecting($l);}}};$0O.clear=function(){$i.divRectangle.innerHTML='';$i.elements.rectangle=[];};this.$ez=function(){var x,y;if($i.coords&&$i.rowlist&&$i.rowlist.length>0&&$i.itline&&$i.itline.length>0){x=$i.$ae($i.coords.x).x;y=$i.$bK($i.coords.y).i;if(y>=$i.rowlist.length){return;}}else{return null;};var $M=$i.cells.findXy(x,y);return $M[0];};this.$ew=function(){var $P=this.$ez();if(this.hover.cell){if(this.hover.cell.x===$P.x&&this.hover.cell.y===$P.y){return;};this.$dP();};this.hover.cell=$P;if(typeof this.onCellMouseOver==='function'){var $l={};$l.cell=$P;this.onCellMouseOver($l);}};this.$dP=function(){if(!this.hover.cell){return;};if(typeof this.onCellMouseOut==='function'){var $l={};$l.cell=this.hover.cell;this.onCellMouseOut($l);};this.hover.cell=null;};this.hover={};this.$ev=function(){var $P=this.$ez();if(this.hover.cell){if(this.hover.cell.x===$P.x&&this.hover.cell.y===$P.y){return;}};this.$eA();};this.$dG=function(){this.divCrosshair.innerHTML='';this.$eB=null;this.$eC=null;if(this.crosshairTop&&this.crosshairTop.parentNode){this.crosshairTop.parentNode.removeChild(this.crosshairTop);this.crosshairTop=null;};if(this.crosshairLeft){for(var i=0;i<this.crosshairLeft.length;i++){var ch=this.crosshairLeft[i];if(ch.parentNode){ch.parentNode.removeChild(ch);}};this.crosshairLeft=null;};this.$94=-1;this.$93=-1;};this.$eA=function(){var x,y;if($i.coords&&$i.rowlist&&$i.rowlist.length>0){x=$i.$ae($i.coords.x).x;y=$i.$bK($i.coords.y).i;if(y>=$i.rowlist.length){return;}}else{return;};var $X=this.crosshairType;var $I=$i.rowlist[y];if($X==='Full'){var $0F=this.itline[x];var $N=$0F.left;var $0u=this.$eB;if(!$0u){var $0u=document.createElement("div");$0u.style.height=$i.$96+'px';$0u.style.position='absolute';$0u.style.top='0px';$0u.style.backgroundColor=this.crosshairColor;$0u.style.opacity=this.crosshairOpacity/100;$0u.style.filter="alpha(opacity="+this.crosshairOpacity+")";this.$eB=$0u;this.divCrosshair.appendChild($0u);};$0u.style.left=$N+'px';$0u.style.width=$0F.width+'px';var top=$I.top;var $R=$I.height;var $z=this.$cA();var $0u=this.$eC;if(!$0u){var $0u=document.createElement("div");$0u.style.width=$z+'px';$0u.style.height=$R+'px';$0u.style.position='absolute';$0u.style.top=top+'px';$0u.style.left='0px';$0u.style.backgroundColor=this.crosshairColor;$0u.style.opacity=this.crosshairOpacity/100;$0u.style.filter="alpha(opacity="+this.crosshairOpacity+")";this.$eC=$0u;this.divCrosshair.appendChild($0u);};$0u.style.top=top+'px';$0u.style.height=$R+'px';};var $7Q=this.$eD(this.coords.x);if($7Q&&this.$94!==$7Q.x){if(this.crosshairTop&&this.crosshairTop.parentNode){this.crosshairTop.parentNode.removeChild(this.crosshairTop);this.crosshairTop=null;};var $0u=document.createElement("div");$0u.style.width=$7Q.cell.width+"px";$0u.style.height=$0a.headerHeight()+"px";$0u.style.left='0px';$0u.style.top='0px';$0u.style.position='absolute';$0u.style.backgroundColor=this.crosshairColor;$0u.style.opacity=this.crosshairOpacity/100;$0u.style.filter="alpha(opacity="+this.crosshairOpacity+")";this.crosshairTop=$0u;var $7z=this.divNorth;var $7R=this.timeHeader?this.timeHeader.length-1:1;if(this.nav.timeHeader){this.$97.timeHeader[$7Q.x+"_"+$7R].appendChild($0u);}else{if($7z.firstChild.rows[$7R].cells[x]){$7z.firstChild.rows[$7R].cells[x].firstChild.appendChild($0u);}}};if(this.$93!==y){if(this.crosshairLeft){for(var i=0;i<this.crosshairLeft.length;i++){var ch=this.crosshairLeft[i];if(ch.parentNode){ch.parentNode.removeChild(ch);}};this.crosshairLeft=null;};var $1O=this.rowHeaderCols?this.rowHeaderCols.length:1;this.crosshairLeft=[];if(this.divHeader.rows[y]){for(var i=0;i<this.divHeader.rows[y].cells.length;i++){var $z=$i.$9V();var $0u=document.createElement("div");$0u.style.width=$z+"px";$0u.style.height=$I.height+"px";$0u.style.left='0px';$0u.style.top='0px';$0u.style.position='absolute';$0u.style.backgroundColor=this.crosshairColor;$0u.style.opacity=this.crosshairOpacity/100;$0u.style.filter="alpha(opacity="+this.crosshairOpacity+")";this.crosshairLeft.push($0u);this.divHeader.rows[y].cells[i].firstChild.appendChild($0u);}}};if($7Q){this.$94=$7Q.x;};this.$93=y;};this.$cu=function(y,$x){var $I=$i.timeHeader[y];if(!$I){return null;};for(var i=0;i<$I.length;i++){var $P=$I[i];if($x>=$P.left&&$x<$P.left+$P.width){var $j={};$j.cell=$P;$j.x=i;return $j;}};return null;};this.$eD=function($x){return $i.$cu($i.timeHeader.length-1,$x);};this.$dT=function(ev){ev=ev||window.event;if($i.timeRangeSelectedHandling==='Disabled'){return false;};if(!$i.$eq($i.coords)){$i.$eE(ev);};if($i.contextMenuSelection){var $7S=null;if($i.$eq($i.coords)){$7S=$i.$b9(DayPilotScheduler.rangeHold);}else{$7S=$i.$b9();};$7S.end=$i.$ax($7S.end);$i.contextMenuSelection.show($7S);};ev.cancelBubble=true;if(!$i.allowDefaultContextMenu){return false;}};this.$eq=function($1T){var $1l=DayPilotScheduler.rangeHold;if(!$1l||!$1l.start||!$1l.end){return false;};var $I=this.$c0($1l.start.y);var $7T=$1l.start.x<$1l.end.x;var $7U=($7T?$1l.start.x:$1l.end.x)*this.cellWidth;var $7V=($7T?$1l.end.x:$1l.start.x)*this.cellWidth+this.cellWidth;var $7W=$I.top;var $7X=$I.bottom;if($1T.x>=$7U&&$1T.x<=$7V&&$1T.y>=$7W&&$1T.y<=$7X){return true;};return false;};this.$bc=function($1l,$7Y){var $1l=$1l||DayPilotScheduler.range;if(!$1l){return;};function draw($1l){var $S=$1l.end.x>$1l.start.x?$1l.start.x:$1l.end.x;var $T=($1l.end.x>$1l.start.x?$1l.end.x:$1l.start.x);var y=$1l.start.y;var $I=$i.rowlist[y];var $K=$i.itline[$S];var end=$i.itline[$T];var $N=$K.left;var $O=end.left+end.width;var $z=$O-$N;var $P=$i.elements.range2;if(!$P){$P=document.createElement("div");$P.style.position='absolute';$P.setAttribute("unselectable","on");$P.className=$i.$9S("_shadow");var $05=document.createElement("div");$05.className=$i.$9S("_shadow_inner");$P.appendChild($05);$i.divRange.appendChild($P);};$P.style.left=($K.left)+"px";$P.style.top=$i.rowlist[y].top+"px";$P.style.width=$z+"px";$P.style.height=($i.rowlist[y].height-1)+"px";$i.elements.range2=$P;(function checkOverlap(){var $I=$i.rowlist[y];var $1U=$P;var $N=$K.left;$i.$cx($P,$I,$N,$z,null);})();return $P;};(function(){var $S=$1l.end.x>$1l.start.x?$1l.start.x:$1l.end.x;var $T=($1l.end.x>$1l.start.x?$1l.end.x:$1l.start.x);var y=$1l.start.y;var $I=$i.rowlist[y];var $K=$i.itline[$S];var end=$i.itline[$T];var $0C=$i.$eF;var $7Z=$K.start.addTime($I.data.offset);var $80=end.end.addTime($I.data.offset);if(!$7Y&&$0C&&$0C.start.getTime()===$7Z.getTime()&&$0C.end.getTime()===$80.getTime()&&$0C.resource===$i.rowlist[y].id){return;};var $0l={"start":$7Z,"end":$i.$ax($80)};var $l={};$l.start=$0l.start;$l.end=$0l.end;$l.duration=new DayPilot.Duration($0l.start,$0l.end);$l.resource=$i.rowlist[y].id;$l.allowed=true;$l.left={};$l.left.html=$l.start.toString($i.timeRangeSelectingStartEndFormat);$l.left.enabled=$i.timeRangeSelectingStartEndEnabled;$l.right={};$l.right.html=$l.end.toString($i.timeRangeSelectingStartEndFormat);$l.right.enabled=$i.timeRangeSelectingStartEndEnabled;$i.$eF=$l;if(typeof $i.onTimeRangeSelecting==='function'&&!$7Y){$i.onTimeRangeSelecting($l);};var $81=$i.$eG($1l);$i.$bb($81,$l.start,$l.end);var $P=draw($81);$i.$cD($P,$l);$1l.$em=$81;$1l.disabled=!$l.allowed;$i.$cE($P,$l);$l.start=$0l.start;$l.end=$0l.end;})();};this.$eG=function($1l){return{"start":{"x":$1l.start.x,"y":$1l.start.y},"end":{"x":$1l.end.x},"disabled":$1l.disabled}};this.range={};this.range.all=function(){return mr.get();};this.$eH={};var mr=this.$eH;this.$eH.list=[];this.$eH.clear=function(){DayPilot.de(DayPilot.list(mr.list).map(function($00){return $00.div;}));mr.list=[];};this.$eH.add=function($1l){$1l.div=$i.elements.range2;$i.elements.range2=null;$i.$cF();mr.list.push($1l);};this.$eH.get=function(){return DayPilot.list(mr.list).map(function($00){return $i.$b9($00);});};this.$eH.dispatch=function(){if(!$i.allowMultiRange){return;};if(DayPilotScheduler.range){return;};var $0C=DayPilot.list(mr.list).last();$i.$b8($0C);};this.$eE=function(ev){if($i.timeRangeSelectedHandling==='Disabled'){return false;};if($0I.active||$0I.start){return;};ev=ev||window.event;var $7k=DayPilot.Util.mouseButton(ev);if(DayPilotScheduler.range){return;};if(DayPilotScheduler.rectangleSelect){return;};if(DayPilotScheduler.rangeHold&&$i.$eq($i.coords)&&($7k.right||$7k.middle)){return;};if($i.$bU($i.$bK($i.coords.y).i)){return;};var $1l={};var cx=$i.$ae($i.coords.x).x;$1l.start={y:$i.$bK($i.coords.y).i,x:cx};$1l.end={x:cx};$i.$bc($1l);$i.$b8($1l);DayPilotScheduler.rangeHold=$1l;};this.timeouts={};this.timeouts.drawEvents=null;this.timeouts.drawCells=null;this.timeouts.click=null;this.$9F=function(ev){$i.$9e();if($L.isEnabled()&&!$L.active&&$i.$aU&&$i.cellWidthSpec!="Auto"){if($i.nav.scroll.scrollLeft<$i.$90){$L.active=true;setTimeout(function(){$L.shiftStart(-$i.$91);},100);}else if($i.nav.scroll.scrollWidth-($i.nav.scroll.scrollLeft+$i.nav.scroll.clientWidth)<$i.$90){$L.active=true;setTimeout(function(){$L.shiftStart($i.$91);},100);}};if($i.dynamicLoading){$i.$eI();return;};var $82=$i.nav.scroll;$i.$cs=$82.scrollLeft;$i.$cr=$82.scrollTop;$i.$ct=$82.clientWidth;$i.divTimeScroll.scrollLeft=$i.$cs;$i.divResScroll.scrollTop=$i.$cr;if($i.timeouts.drawEvents){clearTimeout($i.timeouts.drawEvents);$i.timeouts.drawEvents=null;};if($i.scrollDelayEvents>0){$i.timeouts.drawEvents=setTimeout($i.$eJ(),$i.scrollDelayEvents);}else{$i.$9z();};if($i.timeouts.drawCells){clearTimeout($i.timeouts.drawCells);$i.timeouts.drawCells=null;};if($i.scrollDelayCells>0){$i.timeouts.drawCells=setTimeout($i.$eK(),$i.scrollDelayCells);}else{var f=$i.$eK();f();};if($i.timeouts.updateFloats){clearTimeout($i.timeouts.updateFloats);$i.timeouts.updateFloats=null;};if($i.scrollDelayFloats>0){$i.timeouts.updateFloats=setTimeout(function(){$i.$9D();},$i.scrollDelayFloats);}else{$i.$9D();};$i.onScrollCalled=true;};this.$eK=function(){return function(){$i.$9C();$i.$9x();};};this.$eJ=function(){var $1g=true;var $83=$i.dynamicEventRenderingCacheSweeping;var $84=$i.dynamicEventRenderingCacheSize;return function(){if($i.$e9()){window.setTimeout(function(){if($83)$i.$e6($84);window.setTimeout(function(){$i.$9z($1g);},50);},50);}else{$i.$9O();}};};this.$9e=function(){this.$97.eventHeight=null;this.$97.drawArea=null;};this.show=function(){this.visible=true;$i.nav.top.style.display='';this.$9o();this.$9p();$i.$9F();};this.hide=function(){this.visible=false;$i.nav.top.style.display='none';};this.$eI=function(){var $82=$i.nav.scroll;$i.$cs=$82.scrollLeft;$i.$cr=$82.scrollTop;$i.$ct=$82.clientWidth;$i.divTimeScroll.scrollLeft=$i.$cs;$i.divResScroll.scrollTop=$i.$cr;if($i.refreshTimeout){window.clearTimeout($i.refreshTimeout);};var $09=$i.scrollDelayDynamic;$i.refreshTimeout=window.setTimeout($i.$eL($82.scrollLeft,$82.scrollTop),$09);$i.$9D();};this.$eM=function(e){var $85=e.id;var $2Y=new DayPilot.Date(e.start).toString();for(var j=0;j<this.events.list.length;j++){var ex=this.events.list[j];var $86=ex.id;if($86===$85){if(DayPilot.Util.isNullOrUndefined($85)&&!DayPilot.Util.isNullOrUndefined(e.recurrentMasterId)){var $87=new DayPilot.Date(ex.start).toString();if(ex.recurrentMasterId!==e.recurrentMasterId||$2Y!==$87){continue;}};var $j={};$j.ex=ex;$j.index=j;$j.modified=!$i.$eN(e,ex);return $j;}};return null;};this.$eN=function($5F,$88){for(var name in $5F){if(typeof $5F[name]==='object'){continue;};if($5F[name]!==$88[name]){return false;}};for(var name in $88){if(typeof $88[name]==='object'){continue;};if($5F[name]!==$88[name]){return false;}};return true;};this.$9A=function($4Y,$89){var $4V=[];for(var i=0;i<$4Y.length;i++){var e=$4Y[i];var $4Z=$i.$eM(e);var $22=$4Z&&$4Z.modified;var $4X=!$4Z;if($22){this.events.list[$4Z.index]=e;var $15=$i.events.$aB($4Z.ex);$4V=$4V.concat($15);}else if($4X){this.events.list.push(e);};if($22||$4X){$4V=$4V.concat($i.events.$aC(e));}};$i.$aD($4V);$i.$aE();$i.$9n();$i.$9s();var $8a=false;if($8a){$i.$aF($4V,false,$89);}else{$i.$9t();$i.$9q();$i.$9x();$i.$aZ();var f=$i.$eJ();f();}};this.$eL=function(scrollX,scrollY){if(!$i.$a2()){return function(){if(typeof $i.onScroll==='function'){var $22=function($Z){var $89=function(){if($i.$9G()){if(typeof $i.onAfterRender==='function'){var $l={};$l.isCallBack=false;$l.isScroll=true;$l.data=null;$i.onAfterRender($l);}}};$i.$9A($Z,$89);};var $J=$i.$bE(scrollX,scrollY);var $1l=$i.$bF($J);var $1G=$i.$bG($J);var $l={};$l.viewport={};$l.viewport.start=$1l.start;$l.viewport.end=$1l.end;$l.viewport.resources=$1G;$l.async=false;$l.events=[];$l.loaded=function(){if(this.async){$22(this.events);}};$i.onScroll($l);if(!$l.async){$22($l.events);}}};}else{return function(){$i.scrollX=scrollX;$i.scrollY=scrollY;$i.$ak('Scroll');};}};this.$eO=function(){var $J=this.$9L();var $8b=$J.xStart;var $8c=$J.xEnd-$J.xStart;var $3j=$J.yStart;var $8d=$J.yEnd-$J.yStart;if(!this.cellProperties){this.cellProperties={};};for(var i=0;i<=$8c;i++){var x=$8b+i;for(var j=0;j<$8d;j++){var y=$3j+j;if(!this.rowlist[y].hidden){this.$cc(x,y);}};this.$eP(x);};var $8e=this.$cI();for(var y=$8e.start;y<$8e.end;y++){if(!this.rowlist[y].hidden){this.$eQ(y);}}};this.$9x=function(){if($i.progressiveRowRendering){this.$cS();};if(this.rowlist!==null&&this.rowlist.length>0){var $8f=this.cellSweeping;if($8f){var $84=this.cellSweepingCacheSize;this.$e8($84);};this.$eO();this.$eR();$1r.$de();};var $z=this.$cA();this.$9H.style.height=this.$96+"px";this.$9H.style.width=$z+"px";if($i.cellWidthSpec==="Auto"&&!$i.$dM){$i.nav.scroll.style.overflowX="hidden";$i.nav.scroll.scrollLeft=0;}else{$i.nav.scroll.style.overflowX="auto";};this.$aW=false;};this.$eR=function(){var $J=this.$9L();for(var x=$J.xStart;x<$J.xEnd;x++){var $8g=(x<this.itline.length-1)?this.itline[x+1].breakBefore:false;if($8g){this.$eS(x);}}};this.$eS=function(x){var $1t="x"+x;if(this.$97.breaks[$1t]){return;};var $N=this.itline[x+1].left-1;var $R=this.$96;var $0u=document.createElement("div");$0u.style.left=$N+"px";$0u.style.top="0px";$0u.style.width="1px";$0u.style.height=$R+"px";$0u.style.fontSize='1px';$0u.style.lineHeight='1px';$0u.style.overflow='hidden';$0u.style.position='absolute';$0u.setAttribute("unselectable","on");if(this.cssOnly){$0u.className=this.$9S("_matrix_vertical_break");}else{$0u.style.backgroundColor=this.timeBreakColor;};this.divBreaks.appendChild($0u);this.elements.breaks.push($0u);this.$97.breaks[$1t]=$0u;};this.$9L=function(){if($i.$97.drawArea){return $i.$97.drawArea;};if(!this.nav.scroll){return null;};var $8h=$i.$cr;var $J={};var $8i=this.dynamicEventRenderingMargin;var $8i=this.dynamicEventRenderingMarginX!=null?this.dynamicEventRenderingMarginX:this.dynamicEventRenderingMargin;var $8j=this.dynamicEventRenderingMarginY!=null?this.dynamicEventRenderingMarginY:this.dynamicEventRenderingMargin;var $N=$i.$cs-$8i-$L.shiftX;var $O=$N+$i.$ct+2*$8i;var $K=0;var end=0;if($i.itline&&$i.itline.length>0){$K=$i.$ae($N).x;end=$i.$ae($O,true).x;var $3l=this.$9T();end=Math.min(end,$3l);$K=Math.max($K,0);};var top=$8h-$8j;var $W=$8h+this.nav.scroll.offsetHeight+2*$8j;var $3j=this.$bK(top).i;var $3k=this.$bK($W).i;if($3k<this.rowlist.length){$3k++;};$J.xStart=$K;$J.xEnd=end;$J.yStart=$3j;$J.yEnd=$3k;$J.pixels={};$J.pixels.left=this.nav.scroll.scrollLeft-$L.shiftX;$J.pixels.right=this.nav.scroll.scrollLeft-$L.shiftX+this.nav.scroll.clientWidth;$J.pixels.top=this.nav.scroll.scrollTop;$J.pixels.bottom=this.nav.scroll.scrollTop+this.nav.scroll.clientHeight;$J.pixels.width=this.nav.scroll.scrollWidth;$i.$97.drawArea=$J;return $J;};this.$cA=function(){var $j=0;var $0C=this.itline[this.itline.length-1];if(!$0C){$j=0;}else{$j=$0C.left+$0C.width;};if($j<0||isNaN($j)){$j=0;};return $j;};this.$eQ=function(y){var $1t="y"+y;if(this.$97.linesHorizontal[$1t]){return;};var top=this.rowlist[y].top+this.rowlist[y].height-1;var $z=this.$cA();var $0u=document.createElement("div");$0u.style.left="0px";$0u.style.top=top+"px";$0u.style.width=$z+"px";$0u.style.height="1px";$0u.style.fontSize='1px';$0u.style.lineHeight='1px';$0u.style.overflow='hidden';$0u.style.position='absolute';$0u.setAttribute("unselectable","on");$0u.className=this.$9S("_matrix_horizontal_line");this.divLines.appendChild($0u);this.$97.linesHorizontal[$1t]=$0u;};this.$eP=function(x){var $0F=this.itline[x];if(!$0F){return;};var $1t="x"+x;if(this.$97.linesVertical[$1t]){return;};var $N=$0F.left+$0F.width-1;var $0u=document.createElement("div");$0u.style.left=$N+"px";$0u.style.top="0px";$0u.style.width="1px";$0u.style.height=$i.$96+"px";$0u.style.fontSize='1px';$0u.style.lineHeight='1px';$0u.style.overflow='hidden';$0u.style.position='absolute';$0u.setAttribute("unselectable","on");$0u.className=this.$9S("_matrix_vertical_line");this.divLines.appendChild($0u);this.elements.linesVertical.push($0u);this.$97.linesVertical[$1t]=$0u;};this.$cn=function($1t){var $I=this.rowlist[$1t];var $8k=!$I.expanded;$I.expanded=$8k;if($I.resource){$I.resource.expanded=$8k;};var $15=this.$eT($1t,$I.expanded);if(!$8k){for(var i=0;i<$15.length;i++){var ri=$15[i];this.$aX(ri);}};this.$9n();this.$9l();this.$9s();this.$9e();if($8k){for(var i=0;i<$15.length;i++){var ri=$15[i];this.$aY(ri);};this.$9O();};this.$aZ();$1c.load();this.$9t();this.$9x();this.$9z();this.$9C();var r=this.$bm($I,$1t);if($8k){this.$bt(r);}else{this.$bs(r);};this.$9e();};this.$d1=function(i){var $0Q={};$0Q.index=i;if(typeof this.onLoadNode==='function'){var $l={};var $1k=this.rowlist[i].resource;$l.resource=$1k;$l.async=false;$l.loaded=function(){if(this.async){$1k.dynamicChildren=false;$1k.expanded=true;$i.update();}};this.onLoadNode($l);if(!$l.async){$1k.dynamicChildren=false;$1k.expanded=true;this.update();}}else{this.$ak('LoadNode',$0Q);}};this.$eT=function(i,$8l){var $I=this.rowlist[i];var $6m=[];if($I.children===null||$I.children.length===0){return $6m;};for(var k=0;k<$I.children.length;k++){var $1t=$I.children[k];var $8m=this.rowlist[$1t];var $6Z=$8l&&$I.expanded&&!$8m.$dr;$8m.hidden=!$6Z;if($8l===!$8m.hidden){$6m.push($1t);};var $8n=this.$eT($1t,$8l);if($8n.length>0){$6m=$6m.concat($8n);}};return $6m;};this.$ex=function($8o,$8p){this.$dO();this.$eU($8o,$8p);};this.$eV=function($E){if(!$E){return false;};var $0d=this.nav.scroll.scrollWidth;var $K=this.nav.scroll.scrollLeft;var $z=this.nav.scroll.clientWidth;var $O=$K+$z;if($E<0&&$K<=0){return false;};if($E>0&&$O>=$0d){return false;};this.nav.scroll.scrollLeft+=$E;$i.coords.x+=$E;$i.$eW();return true;};this.$eX=function($E){if(!$E){return false;};var $0d=this.nav.scroll.scrollHeight;var $K=this.nav.scroll.scrollTop;var $R=this.nav.scroll.clientHeight;var $W=$K+$R;if($E<0&&$K<=0){return false;};if($E>0&&$W>=$0d){return false;};this.nav.scroll.scrollTop+=$E;$i.coords.y+=$E;$i.$eW();return true;};this.$eW=function(){if(DayPilotScheduler.resizing&&DayPilotScheduler.resizing.event.calendar===$i){$i.$es();}else if(DayPilotScheduler.moving&&(DayPilotScheduler.moving.event.calendar===$i||DayPilotScheduler.moving.event.calendar.dragOutAllowed)){$i.$et();}else if(DayPilotScheduler.range&&DayPilotScheduler.range.calendar===$i){$i.$eu();}};this.$eU=function($8o,$8p){var $8q=this.$eV($8o)||this.$eX($8p);if(!$8q){return;};var $8r=function($8o,$8p){return function(){$i.$eU($8o,$8p);};};this.$eY=window.setTimeout($8r($8o,$8p),100);};this.$dO=function(){if($i.$eY){window.clearTimeout($i.$eY);$i.$eY=null;}};this.$9n=function(){var top=0;for(var i=0;i<this.rowlist.length;i++){var $I=this.rowlist[i];if(!$I.hidden){$I.top=top;top+=$I.height;}};this.$96=top;};this.$9t=function(){this.elements.cells=[];this.elements.linesVertical=[];this.elements.breaks=[];this.$97.cells=[];this.$97.linesVertical={};this.$97.linesHorizontal={};this.$97.breaks=[];this.divCells.innerHTML='';this.divLines.innerHTML='';this.divBreaks.innerHTML='';};this.$b0=function(y){var $Y=DayPilot.list();for(var name in $i.$97.cells){$Y.push($i.$97.cells[name]);};$Y.filter(function($00){return $00&&$00.coords&&$00.coords.y===y;}).each(function($00){$i.$cb($00);});};this.$eZ=0;this.$f0=['html','cssClass','backColor','backImage','backRepeat','business','areas'];this.$cc=function(x,y){if(!this.$aU){return;};var $0F=$i.$am(x);if(!$0F){return;};var $1t=x+'_'+y;if(this.$97.cells[$1t]){return;};var p=this.$cd(x,y);if(typeof this.onBeforeCellRender==='function'&&x>=0){var $I=$i.rowlist[y];var $1k=$I.id;var $1p=$I.start.getTime()-this.$a6().getTime();var $K=$0F.start.addTime($1p);var end=$0F.end.addTime($1p);var $P=$i.cells.findXy(x,y)[0];var $l={};$l.cell=$P;$l.getPixels=function($u){var $u=new DayPilot.Date($u);var $8s=$i.getPixels($u).left;return $8s-$0F.left;};this.onBeforeCellRender($l);DayPilot.Util.copyProps($l.cell,$l.cell.properties,$i.$f0);};if(!this.drawBlankCells){var $8t=false;if(this.cssOnly&&this.$ck(y)){$8t=false;}else if(!this.$f1(p,$i.$f0)){$8t=true;};if($8t){return;}};var $P=document.createElement("div");$P.style.left=($0F.left)+"px";$P.style.top=this.rowlist[y].top+"px";$P.style.width=($0F.width)+"px";$P.style.height=(this.rowlist[y].height)+"px";$P.style.position='absolute';if(p&&p.backColor){$P.style.backgroundColor=p.backColor;};$P.setAttribute("unselectable","on");$P.className=this.cssOnly?this.$9S('_cell'):this.$9S('cellbackground');$P.coords={};$P.coords.x=x;$P.coords.y=y;if(this.cssOnly&&this.$ck(y)){DayPilot.Util.addClass($P,this.$9S("_cellparent"));};if(p){if(p.cssClass){if(this.cssOnly){DayPilot.Util.addClass($P,p.cssClass);}else{DayPilot.Util.addClass($P,$i.$9S(p.cssClass));}};if(!DayPilot.Util.isNullOrUndefined(p.html)){$P.innerHTML=p.html;};if(p.backImage){$P.style.backgroundImage="url(\"" + p.backImage + "\")";};if(p.backRepeat){$P.style.backgroundRepeat=p.backRepeat;};if(p.business){DayPilot.Util.addClass($P,$i.$9S("_cell_business"));};DayPilot.list(p.areas).each(function($J){if($J.start||$J.end){$J.left=$i.getPixels(new DayPilot.Date($J.start)).left-$0F.left;$J.width=$i.getPixels(new DayPilot.Date($J.end)).left-$J.left-$0F.left;}});var c=$i.cells.findXy(x,y)[0];DayPilot.Areas.attach($P,c,{"areas":p.areas});};$P.onmouseup=this.$dS;this.divCells.appendChild($P);this.elements.cells.push($P);this.$97.cells[$1t]=$P;};this.$f1=function($1R,$23){if($23){for(var i=0;i<$23.length;i++){if(!DayPilot.Util.isNullOrUndefined($1R[$23[i]])){return true;}}}else{for(var name in $1R){if(!DayPilot.Util.isNullOrUndefined($1R[name])){return true;}}};return false;};this.clearSelection=function(){this.$9B();mr.clear();};this.cleanSelection=this.clearSelection;this.$b4=function(){DayPilot.de(DayPilotScheduler.movingShadow);DayPilotScheduler.movingShadow=null;$i.$cF();$i.$cy.clear();};this.$9B=function(){this.divRange.innerHTML='<div style="position:absolute; left:0px; top:0px; width:0px; height:0px;"></div>';this.elements.range=[];this.elements.range2=null;this.$cF();DayPilotScheduler.rangeHold=null;};this.$bS={};var $0a=this.$bS;$0a.locale=function(){return DayPilot.Locale.find($i.locale);};$0a.timeFormat=function(){if($i.timeFormat!=='Auto'){return $i.timeFormat;};return $0a.locale().timeFormat;};$0a.weekStarts=function(){if($i.weekStarts==='Auto'){var $5N=$0a.locale();if($5N){return $5N.weekStarts;}else{return 0;}}else{return $i.weekStarts;}};$0a.rounded=function(){return $i.eventCorners==='Rounded';};$0a.layout=function(){var $8u=/MSIE 6/i.test(navigator.userAgent);if($i.layout==='Auto'){if($8u){return 'TableBased';}else{return 'DivBased';}};return $i.layout;};$0a.notifyType=function(){var $X;if($i.notifyCommit==='Immediate'){$X="Notify";}else if($i.notifyCommit==='Queue'){$X="Queue";}else{throw "Invalid notifyCommit value: "+$i.notifyCommit;};return $X;};$0a.isResourcesView=function(){return $i.viewType!=='Days';};$0a.useBox=function($8v){if($i.useEventBoxes==='Always'){return true;};if($i.useEventBoxes==='Never'){return false;};return $8v<$i.cellDuration*60*1000;};$0a.eventHeight=function(){if($i.$97.eventHeight){return $i.$97.eventHeight;};var $R=$i.$dX("_event_height").height;if(!$R){$R=$i.eventHeight;};$i.$97.eventHeight=$R;return $R;};$0a.headerHeight=function(){if($i.$97.headerHeight){return $i.$97.headerHeight;};var $R=$i.$dX("_header_height").height;if(!$R){$R=$i.headerHeight;};$i.$97.headerHeight=$R;return $R;};$0a.splitterWidth=function(){if($i.rowHeaderScrolling){return $i.rowHeaderSplitterWidth;};return 1;};this.$f2=function(x,y){var $1t=x+'_'+y;if(this.cellProperties&&this.cellProperties[$1t]){return this.cellProperties[$1t].backColor;};return null;};this.$cd=function(x,y){var $1t=x+'_'+y;if(!this.cellProperties){this.cellProperties={};};if(this.cellProperties[$1t]){return this.cellProperties[$1t];};if(this.$8W){this.cellProperties[$1t]=$i.$f3(x,y);};if(!this.cellProperties[$1t]){var $I=$i.rowlist[y];var $1k=$I.id;var $1p=$I.start.getTime()-$i.$a6().getTime();var $0F=$i.$am(x);var $K=$0F.start.addTime($1p);var end=$0F.end.addTime($1p);var $8w={};$8w.start=$K;$8w.end=end;$8w.resource=$1k;var $P={};$P.business=$i.isBusiness($8w);this.cellProperties[$1t]=$P;};return this.cellProperties[$1t];};this.$f4=function($1u,x,y){var $1t=x+'_'+y;this.cellProperties[$1t]={};DayPilot.Util.copyProps($1u,this.cellProperties[$1t],$i.$f0);return this.cellProperties[$1t];};this.$f3=function(x,y){if(!this.cellConfig){return null;};var $8x=this.cellConfig;var $P=this.cellProperties[x+"_"+y];if(!$P&&$8x.vertical){$P=this.cellProperties[x+"_0"];};if(!$P&&$8x.horizontal){$P=this.cellProperties["0_"+y];};if(!$P&&$8x["default"]){$P=$8x["default"];};var $81={};DayPilot.Util.copyProps($P,$81,$i.$f0);return $81;};this.$9j=function(){if(this.$8W){return;};if(this.$8X){return;};this.$8X=true;if(!this.cellConfig){return;};var $8x=this.cellConfig;if($8x.vertical){for(var x=0;x<$8x.x;x++){var $8y=this.cellProperties[x+"_0"];if(!$8y){continue;};for(var y=1;y<$8x.y;y++){this.$f4($8y,x,y);}}};if($8x.horizontal){for(var y=0;y<$8x.y;y++){var $8y=this.cellProperties["0_"+y];if(!$8y){continue;};for(var x=1;x<$8x.x;x++){this.$f4($8y,x,y);}}};if($8x["default"]){var $8y=$8x["default"];for(var y=0;y<$8x.y;y++){for(var x=0;x<$8x.x;x++){if(!this.cellProperties[x+"_"+y]){this.$f4($8y,x,y);}}}}};this.isBusiness=function($P){var $K=$P.start;var end=$P.end;var $7E=(end.getTime()-$K.getTime())/(1000*60);if($7E<=1440){if((!$i.businessWeekends)&&($P.start.dayOfWeek()===0||$P.start.dayOfWeek()===6)){return false;}};if($7E<720){var $8z=$K.getHours();$8z+=$K.getMinutes()/60.0;$8z+=$K.getSeconds()/3600.0;$8z+=$K.getMilliseconds()/3600000.0;if($8z<this.businessBeginsHour){return false;};if(this.businessEndsHour>=24){return true;};if($8z>=this.businessEndsHour){return false;}};return true;};this.$9o=function(){if(this.nav.top.style.visibility==='hidden'){this.nav.top.style.visibility='visible';}};this.$cL=function(){var el=$i.nav.top;return el.offsetWidth>0&&el.offsetHeight>0;};this.$f5=function(){var $6Z=$i.$cL;if(!$6Z()){$i.debug.message("Not visible during init, starting visibilityInterval");$i.$f6=setInterval(function(){if($6Z()){$i.debug.message("Made visible, calling .show()");$i.show();$i.$cK();clearInterval($i.$f6);}},100);}};this.$f7=function($x){if(this.heightSpec!=="Parent100Pct"){this.heightSpec="Fixed";};this.height=$x-(this.$9U()+2);this.$9s();};this.setHeight=this.$f7;this.$9J=function(id){for(var i=0;i<this.rowlist.length;i++){if(this.rowlist[i].id===id){return this.rowlist[i];}};return null;};this.$dx=function(){if(this.id&&this.id.tagName){this.nav.top=this.id;}else if(typeof this.id==="string"){this.nav.top=document.getElementById(this.id);if(!this.nav.top){throw "DayPilot.Scheduler: The placeholder element not found: '"+id+"'.";}}else{throw "DayPilot.Scheduler() constructor requires the target element or its ID as a parameter";}};this.$f8=function(){this.$dW();this.$9i();this.$9p();this.$dZ();this.$bO();DayPilotScheduler.register(this);this.$9c(this.afterRenderData,false);this.$e0();this.$f5();this.$9b();this.$ak("Init");};this.init=function(){this.$f9();};this.$f9=function(){this.$dx();if(this.nav.top.dp){return;};this.$dw();var $8A=this.$c1();if($8A){this.$f8();this.$aU=true;this.$9e();return;};this.$dZ();this.$bO();DayPilotScheduler.register(this);this.$e0();this.$aI();this.$aU=true;if($i.scrollToDate){$i.scrollTo($i.scrollToDate);}else if($i.scrollX||$i.scrollY){$i.setScroll($i.scrollX,$i.scrollY);}else{$i.$9F();};if($i.scrollToResourceId){$i.scrollToResource($i.scrollToResourceId);$i.scrollToResourceId=null;};var $8B=function(){if($i.scrollY){$i.setScroll($i.scrollX,$i.scrollY);}};window.setTimeout($8B,200);if(this.messageHTML){window.setTimeout(function(){$i.message($i.messageHTML);},0);};this.$f5();this.$9b();this.$9e();this.$9c(this.afterRenderData,false);if($i.$92){setTimeout(function(){$i.$ak("Init");});};this.$fa();};this.$fb=null;this.$fc=function($h){var $8C={"events":{"preInit":function(){var $Z=this.data;if(!$Z){return;};if(DayPilot.isArray($Z.list)){$i.events.list=$Z.list;}else{$i.events.list=$Z;}},"postInit":function(){}},"scrollTo":{"preInit":function(){},"postInit":function(){if(this.data){$i.scrollTo(this.data,$h.scrollToAnimated,$h.scrollToPosition);}}}};this.$fb=$8C;for(var name in $h){if($8C[name]){var $00=$8C[name];$00.data=$h[name];if($00.preInit){$00.preInit();}}else{$i[name]=$h[name];}}};this.$fa=function(){var $8C=this.$fb;for(var name in $8C){var $00=$8C[name];if($00.postInit){$00.postInit();}}};this.temp={};this.temp.getPosition=function(){var x=Math.floor($i.coords.x/$i.cellWidth);var y=$i.$bK($i.coords.y).i;if(y<$i.rowlist.length){var $P={};$P.start=$i.itline[x].start;$P.end=$i.itline[x].end;$P.resource=$i.rowlist[y].id;return $P;}else{return null;}};this.temp.img=$i.$cq;this.internal={};this.internal.initialized=function(){return $i.$aU;};this.internal.invokeEvent=this.$av;this.internal.eventMenuClick=this.$b7;this.internal.timeRangeMenuClick=this.$bf;this.internal.resourceHeaderMenuClick=this.$bh;this.internal.linkMenuClick=this.$bg;this.internal.bubbleCallBack=this.$b5;this.internal.findEventDiv=this.$bZ;this.internal.rowtools=this.$bq;this.internal.getNodeChildren=this.$bM;this.internal.callback=function(){$i.$ak.apply($i,arguments);};this.internal.createRowObject=this.$bm;this.internal.adjustEndIn=$i.$b1;this.internal.adjustEndNormalize=$i.$b2;this.internal.touch=$i.$ej;this.Init=this.init;this.$fc($h);};debug=new DayPilot.Scheduler().v==="${v\u007d";DayPilot.Row=function($I,$i){if(!$I){throw "Now row object supplied when creating DayPilot.Row";};if(!$i){throw "No parent control supplied when creating DayPilot.Row";};var $1t=DayPilot.indexOf($i.rowlist,$I);var r=this;r.isRow=true;r.menuType='resource';r.start=$I.start;r.name=$I.name;r.value=$I.id;r.id=$I.id;r.tags=$I.tags;r.index=$1t;r.level=$I.level;r.calendar=$i;r.$fd=$I;r.$={};r.$.row=$I;r.toJSON=function($54){var $1D={};$1D.start=this.start;$1D.name=this.name;$1D.value=this.value;$1D.id=this.id;$1D.index=this.index;return $1D;};r.parent=function(){if(!r.$fd.$ds){return null;};return $i.$bm(r.$fd.$ds);};r.children=function(){return DayPilot.list(r.$fd.children).map(function($00){return $i.$bm($00);});};r.cells={};r.cells.all=function(){var $Y=[];var $1J=$i.itline.length;var y=r.index;for(var x=0;x<$1J;x++){var $P=$i.cells.findXy(x,y);$Y.push($P[0]);};return $i.$ce($Y);};r.events={};r.events.all=function(){var $Y=[];for(var i=0;i<r.$fd.events.length;i++){$Y.push(r.$fd.events[i]);};return DayPilot.list($Y);};r.events.totalDuration=function(){var $0v=0;r.events.all().each(function($00){$0v+=$00.part.end.getTime()-$00.part.start.getTime();});return new DayPilot.Duration($0v);};r.groups={};r.groups.collapseAll=function(){for(var i=0;i<r.$fd.blocks.length;i++){var $59=r.$fd.blocks[i];var $8D=new $8E($59);$8D.$fe();};$i.$aE();$i.$aF(r.index);$i.$9s();};r.groups.expandAll=function(){for(var i=0;i<r.$fd.blocks.length;i++){var $59=r.$fd.blocks[i];var $8D=new $8E($59);$8D.$ff();};$i.$aE();$i.$aF(r.index);$i.$9s();};r.groups.expanded=function(){var $Y=[];for(var i=0;i<r.$fd.blocks.length;i++){var $59=r.$fd.blocks[i];if($59.expanded&&$59.lines.length>$i.groupConcurrentEventsLimit){$Y.push(new $8E($59));}};return DayPilot.list($Y);};r.groups.collapsed=function(){var $Y=[];for(var i=0;i<r.$fd.blocks.length;i++){var $59=r.$fd.blocks[i];if(!$59.expanded){$Y.push(new $8E($59));}};return DayPilot.list($Y);};r.groups.all=function(){var $Y=[];for(var i=0;i<r.$fd.blocks.length;i++){var $59=r.$fd.blocks[i];$Y.push(new $8E($59));};return DayPilot.list($Y);};r.events.collapseGroups=r.groups.collapseAll;r.events.expandGroups=r.groups.expandAll;r.column=function(i){return new $8F(r,i);};r.toggle=function(){$i.$cn(r.index);};r.addClass=function($46){var $I=r;var $4A=$i.divHeader;var $I=$4A.rows[$I.index];if($I){var $M=DayPilot.list($I.cells).map(function($P){return $P.cellDiv;});DayPilot.Util.addClass($M,$46);};r.$.row.cssClass=DayPilot.Util.addClassToString(r.$.row.cssClass,$46);};r.removeClass=function($46){var $I=r;var $4A=$i.divHeader;var $I=$4A.rows[$I.index];if($I){var $M=DayPilot.list($I.cells).map(function($P){return $P.cellDiv;});DayPilot.Util.removeClass($M,$46);};r.$.row.cssClass=DayPilot.Util.removeClassFromString(r.$.row.cssClass,$46);};var $8E=function($59){var $8G=function($59){for(var i=0;i<$i.elements.events.length;i++){var $02=$i.elements.events[i];if($02.event===$59){return $02;}};return null;};this.$ff=function(){$59.expanded=true;var $Y=$i.$d8;DayPilot.list($59.events).each(function(e){$Y.push(e.id());});var $02=$8G($59);if($02){$i.$e5($02);var $74=DayPilot.indexOf($i.elements.events,$02);if($74!==-1){$i.elements.events.splice($74,1);}}};this.expand=function(){this.$ff();$i.$aE();$i.$aF($59.row.index);$i.$9s();};this.$fe=function(){if($59.lines.length>$i.groupConcurrentEventsLimit){$59.expanded=false;var $38=DayPilot.list($59.events).map(function(e){return e.id()});$i.$d8=$i.$d8.filter(function($00){return !DayPilot.contains($38,$00);});}};this.collapse=function(){this.$fe();$i.$aE();$i.$aF($59.row.index);$i.$9s();};};var $8F=function($I,i){this.html=function($08){var $4A=$I.calendar.divHeader;var $P=$4A.rows[$I.index].cells[i];var $1s=$P.textDiv;if(typeof $08==="undefined"){return $1s.innerHTML;}else{$1s.innerHTML=$08;}};};};DayPilotScheduler.moving=null;DayPilotScheduler.originalMouse=null;DayPilotScheduler.resizing=null;DayPilotScheduler.globalHandlers=false;DayPilotScheduler.timeRangeTimeout=null;DayPilotScheduler.selectedCells=null;DayPilotScheduler.dragStart=function(element,$0H,id,$1s,$X){DayPilot.us(element);var $8H=DayPilotScheduler.drag={};$8H.element=element;$8H.duration=$0H;$8H.text=$1s;$8H.id=id;$8H.shadowType=$X?$X:'Fill';$8H.data={"id":id,"text":$1s,"duration":$0H,"externalHtml":$1s};return false;};DayPilot.Scheduler.startDragging=function($h){var $h=$h||{};var element=$h.element;var $8I=$h.keepElement?null:element;DayPilot.us(element);var $8H=DayPilotScheduler.drag={};$8H.element=$8I;$8H.id=$h.id;$8H.duration=$h.duration||60;$8H.text=$h.text||"";$8H.shadowType='Fill';$8H.data=$h;return false;};DayPilot.Scheduler.makeDraggable=function($h){var element=$h.element;var $8I=$h.keepElement?null:element;DayPilot.us(element);DayPilot.re(element,"mousedown",function(ev){startDragging();var element=(ev.target||ev.srcElement);if(element.tagName){var $8J=element.tagName.toLowerCase();if($8J==="textarea"||$8J==="select"||$8J==="input"){return false;}};ev.preventDefault&&ev.preventDefault();return false;});element.ontouchstart=function(ev){var $7l=0;window.setTimeout(function(){startDragging();DayPilotScheduler.gTouchMove(ev);ev.preventDefault();},$7l);ev.preventDefault();};function startDragging(){var $8H=DayPilotScheduler.drag={};$8H.element=$8I;$8H.id=$h.id;$8H.duration=$h.duration||60;$8H.text=$h.text||"";$8H.shadowType='Fill';$8H.data=$h;}};DayPilot.Scheduler.stopDragging=function(){DayPilotScheduler.dragStop();if(DayPilotScheduler.resizing){DayPilot.de(DayPilotScheduler.resizingShadow);DayPilotScheduler.resizing=null;DayPilotScheduler.resizingShadow=null;};if(DayPilotScheduler.moving){var $i=DayPilotScheduler.moving.event.calendar;DayPilot.Util.removeClass(DayPilotScheduler.moving,$i.$9S("_event_moving_source"));DayPilot.de(DayPilotScheduler.movingShadow);DayPilotScheduler.moving=null;DayPilotScheduler.movingShadow=null;};if(DayPilotScheduler.range){var $i=DayPilotScheduler.range.calendar;$i.clearSelection();DayPilotScheduler.range=null;};document.body.style.cursor='';DayPilot.list(DayPilotScheduler.registered).each(function($i){$i.$dO();$i.$cF();});};DayPilotScheduler.dragStop=function(){if(DayPilotScheduler.gShadow){document.body.removeChild(DayPilotScheduler.gShadow);DayPilotScheduler.gShadow=null;};DayPilotScheduler.drag=null;};DayPilotScheduler.register=function($i){if(!DayPilotScheduler.registered){DayPilotScheduler.registered=[];};for(var i=0;i<DayPilotScheduler.registered.length;i++){if(DayPilotScheduler.registered[i]===$i){return;}};DayPilotScheduler.registered.push($i);};DayPilotScheduler.unregister=function($i){var a=DayPilotScheduler.registered;if(a){var i=DayPilot.indexOf(a,$i);if(i!==-1){a.splice(i,1);};if(a.length===0){a=null;}};if(!a){DayPilot.ue(document,'mousemove',DayPilotScheduler.gMouseMove);DayPilot.ue(document,'mouseup',DayPilotScheduler.gMouseUp);DayPilot.ue(document,'keyup',DayPilotScheduler.gKeyUp);DayPilot.ue(document,'touchmove',DayPilotScheduler.gTouchMove);DayPilot.ue(document,'touchend',DayPilotScheduler.gTouchEnd);DayPilotScheduler.globalHandlers=false;}};function calendarFromTouchEvent(ev){var $8K=ev.touches[0].clientX;var $8L=ev.touches[0].clientY;var el=document.elementFromPoint($8K,$8L);while(el&&el.parentNode){el=el.parentNode;if(el.daypilotMainD){return el.calendar;}};return false;};function touchMousePos(ev){var x=ev.touches[0].pageX;var y=ev.touches[0].pageY;var $7L={};$7L.x=x;$7L.y=y;return $7L;};DayPilotScheduler.gTouchMove=function(ev){if(DayPilotScheduler.resizing){var $i=DayPilotScheduler.resizing.event.calendar;$i.coords=$i.$ej.relativeCoords(ev);$i.$ej.updateResizing();ev.preventDefault();};if(DayPilotScheduler.moving){var $i=DayPilotScheduler.moving.event.calendar;$i.coords=$i.$ej.relativeCoords(ev);$i.$ej.updateMoving();ev.preventDefault();};if(DayPilotScheduler.drag){ev.preventDefault();var $7L=touchMousePos(ev);var $i=calendarFromTouchEvent(ev);if($i){if(DayPilotScheduler.gShadow){document.body.removeChild(DayPilotScheduler.gShadow);};DayPilotScheduler.gShadow=null;$i.coords=$i.$ej.relativeCoords(ev);if(!DayPilotScheduler.movingShadow&&$i.rowlist.length>0){if(!DayPilotScheduler.moving){DayPilotScheduler.moving={};var event=DayPilotScheduler.drag.event;if(!event){var $7N=$i.itline[0].start;var ev={'id':DayPilotScheduler.drag.id,'start':$7N,'end':$7N.addSeconds(DayPilotScheduler.drag.duration),'text':DayPilotScheduler.drag.text};var $q=DayPilotScheduler.drag.data;if($q){var $6M=['duration','element','id','text'];for(var name in $q){if(DayPilot.contains($6M,name)){continue;};ev[name]=$q[name];}};event=new DayPilot.Event(ev);event.calendar=$i;event.part.external=true;};DayPilotScheduler.moving.event=event;};DayPilotScheduler.movingShadow=$i.$bT(DayPilotScheduler.moving,DayPilotScheduler.drag.shadowType);};if(DayPilotScheduler.moving){$i.$ej.updateMoving();}}else{DayPilot.de(DayPilotScheduler.movingShadow);var $8M=DayPilotScheduler.moving;DayPilotScheduler.moving=null;DayPilotScheduler.movingShadow=null;if(!DayPilotScheduler.gShadow){DayPilotScheduler.gShadow=DayPilotScheduler.createGShadow(DayPilotScheduler.drag.data);DayPilotScheduler.gShadow.source=$8M;};var $1U=DayPilotScheduler.gShadow;$1U.style.left=$7L.x+'px';$1U.style.top=$7L.y+'px';}}};DayPilotScheduler.gTouchEnd=function(ev){DayPilotScheduler.gMouseUp(ev);};DayPilotScheduler.gMouseMove=function(ev){if(typeof(DayPilotScheduler)==='undefined'){return;};ev=ev||window.event;if(ev.insideMainD){return;}else if(ev.srcElement){if(ev.srcElement.inside){return;}};var $7L=DayPilot.mc(ev);if(DayPilotScheduler.drag){document.body.style.cursor='move';if(!DayPilotScheduler.gShadow){DayPilotScheduler.gShadow=DayPilotScheduler.createGShadow(DayPilotScheduler.drag.data);};var $1U=DayPilotScheduler.gShadow;$1U.style.left=$7L.x+'px';$1U.style.top=$7L.y+'px';DayPilotScheduler.moving=null;if(DayPilotScheduler.movingShadow){var $8N=DayPilotScheduler.movingShadow.calendar;if($8N){$8N.$cF();DayPilotScheduler.movingShadow.calendar=null;DayPilot.de(DayPilotScheduler.movingShadow);DayPilotScheduler.movingShadow=null;}}}else if(DayPilotScheduler.moving&&DayPilotScheduler.moving.event.calendar.dragOutAllowed&&!DayPilotScheduler.drag){var $8N=DayPilotScheduler.moving.event.calendar;var ev=DayPilotScheduler.moving.event;DayPilotScheduler.moving.target=null;document.body.style.cursor='move';if(!DayPilotScheduler.gShadow){DayPilotScheduler.gShadow=DayPilotScheduler.createGShadow(ev.data);DayPilotScheduler.gShadow.source=DayPilotScheduler.moving;};var $1U=DayPilotScheduler.gShadow;$1U.style.left=$7L.x+'px';$1U.style.top=$7L.y+'px';DayPilotScheduler.drag={};var $8H=DayPilotScheduler.drag;$8H.element=null;$8H.duration=(ev.rawend().getTime()-ev.start().getTime())/1000;$8H.text=ev.text();$8H.id=ev.value();$8H.shadowType=$8N.shadow;$8H.event=ev;$8N.$cF();DayPilot.de(DayPilotScheduler.movingShadow);DayPilotScheduler.movingShadow.calendar=null;DayPilotScheduler.movingShadow=null;};for(var i=0;i<DayPilotScheduler.registered.length;i++){if(DayPilotScheduler.registered[i].$cP){DayPilotScheduler.registered[i].$cP();}}};DayPilotScheduler.gUnload=function(ev){if(!DayPilotScheduler.registered){return;};for(var i=0;i<DayPilotScheduler.registered.length;i++){var c=DayPilotScheduler.registered[i];DayPilotScheduler.unregister(c);}};DayPilotScheduler.gMouseDown=function(ev){if(DayPilotScheduler.editing){DayPilotScheduler.editing.blur();}};DayPilotScheduler.gKeyUp=function(ev){var ev=ev||window.event;var $54=ev.keyCode;if($54===17){if(DayPilotScheduler.rangeCalendar){var $i=DayPilotScheduler.rangeCalendar;$i.$eH.dispatch();}}};DayPilotScheduler.gMouseUp=function(ev){DayPilot.list(DayPilotScheduler.registered).each(function($i){$i.$dO();});if(DayPilotScheduler.resizing){if(!DayPilotScheduler.resizingShadow){document.body.style.cursor='';DayPilotScheduler.resizing=null;return;};var e=DayPilotScheduler.resizing.event;var $i=e.calendar;$i.$cp();var $0m=DayPilotScheduler.resizingShadow.start;var $0V=DayPilotScheduler.resizingShadow.end;var $4u=DayPilotScheduler.resizingShadow.overlapping;var $7n=!DayPilotScheduler.resizingShadow.allowed;DayPilot.de(DayPilotScheduler.resizingShadow);DayPilotScheduler.resizing=null;DayPilotScheduler.resizingShadow=null;$i.$cF();$i.$cw.clear();document.body.style.cursor='';if($4u||$7n){return;};$i.$aw(e,$0m,$0V);}else if(DayPilotScheduler.moving){var $8O=function(){if(DayPilotScheduler.movingShadow){DayPilot.de(DayPilotScheduler.movingShadow);DayPilotScheduler.movingShadow.calendar=null;};document.body.style.cursor='';DayPilotScheduler.moving=null;DayPilotScheduler.drag=null;};if(!DayPilotScheduler.movingShadow){$8O();return;};var e=DayPilotScheduler.moving.event;var $i=DayPilotScheduler.moving.target;if(!$i){$8O();return;};DayPilot.Util.removeClass(DayPilotScheduler.moving,$i.$9S("_event_moving_source"));if(!DayPilotScheduler.movingShadow.row){$8O();return;};clearTimeout($i.$cl.timeout);var $0m=DayPilotScheduler.movingShadow.start;var $0V=DayPilotScheduler.movingShadow.end;var $10=($i.viewType!=='Days')?DayPilotScheduler.movingShadow.row.id:null;var external=(DayPilotScheduler.drag?true:false)&&e.part.external;var $0u=DayPilotScheduler.movingShadow.line;var $4u=DayPilotScheduler.movingShadow.overlapping;var $7n=!DayPilotScheduler.movingShadow.allowed;if(DayPilotScheduler.drag){if(!$i.todo){$i.todo={};};$i.todo.del=DayPilotScheduler.drag.element;DayPilotScheduler.drag=null;};DayPilotScheduler.movingShadow.calendar=null;document.body.style.cursor='';DayPilotScheduler.moving=null;if($4u||$7n||$i.$cy.forbidden||$i.$cy.invalid){$i.$b4();return;};var ev=ev||window.event;$i.$b3(e,$0m,$0V,$10,external,ev,$0u);}else if(DayPilotScheduler.range){ev=ev||window.event;var $7k=DayPilot.Util.mouseButton(ev);var $1l=DayPilotScheduler.range;var $i=$1l.calendar;$i.$eF=null;var $17=ev.ctrlKey||ev.metaKey;if($i.allowMultiRange){if(!$i.elements.range2.overlapping){$i.$eH.add($1l);}else{DayPilot.de($i.elements.range2);$i.elements.range2=null;$i.$cF();};DayPilotScheduler.range=null;if(!$17){$i.$eH.dispatch();};return;};if(DayPilotScheduler.timeRangeTimeout){clearTimeout(DayPilotScheduler.timeRangeTimeout);DayPilotScheduler.timeRangeTimeout=null;return;};DayPilotScheduler.rangeHold=$1l;DayPilotScheduler.range=null;var $8r=function($1l){return function(){DayPilotScheduler.timeRangeTimeout=null;var $1U=$i.elements.range2;if($1U&&$1U.overlapping){$i.clearSelection();return;};$i.$b8($1l);if($i.timeRangeSelectedHandling!=="Hold"&&$i.timeRangeSelectedHandling!=="HoldForever"){$c();}else{DayPilotScheduler.rangeHold=$1l;}};};var rc=$i.$eG($1l);if(!$7k.left){DayPilotScheduler.timeRangeTimeout=null;return;};if($i.timeRangeDoubleClickHandling==='Disabled'){$8r(rc)();var ev=ev||window.event;ev.cancelBubble=true;return false;}else{DayPilotScheduler.timeRangeTimeout=setTimeout($8r(rc),$i.doubleClickTimeout);}}else if($4M.row){var $i=$4M.calendar;if($i){$i.$di();}}else if($20.source){var $i=$20.calendar;$i.$bV.clearShadow();$i.$bV.hideLinkpoints();$20.source=null;$20.calendar=null;}else if(DayPilotScheduler.splitting){var $6o=DayPilotScheduler.splitting;$6o.cleanup();DayPilotScheduler.splitting=null;}else if(DayPilotScheduler.rectangleSelect){var $3N=DayPilotScheduler.rectangleSelect;var $i=$3N.calendar;var x=$3N.x;var y=$3N.y;var $z=$3N.width;var $R=$3N.height;var $4W=false;var $Z=$i.$9P.eventsInRectangle(x,y,$z,$R).map(function($00){return $00.event;});if(typeof $i.onRectangleEventSelect==="function"){var $l={};$l.events=$Z;$l.append=false;$l.start=$i.getDate(x,true);$l.end=$i.getDate(x+$z,true);$l.preventDefault=function(){this.preventDefault.value=true;};$i.onRectangleEventSelect($l);if($l.preventDefault.value){$i.$ey.clear();DayPilotScheduler.rectangleSelect=null;return;};$4W=$l.append;};if(!$4W){$i.multiselect.clear(true);};$Z.each(function(e){$i.multiselect.add(e,true);});$i.multiselect.redraw();setTimeout(function(){$i.$ey.clear();DayPilotScheduler.rectangleSelect=null;},0);if(typeof $i.onRectangleEventSelected==="function"){var $l={};$l.events=$Z;$i.onRectangleEventSelected($l);}};if(DayPilotScheduler.drag){if(DayPilotScheduler.drag.event&&DayPilotScheduler.drag.event.part){delete DayPilotScheduler.drag.event.part.external;};DayPilotScheduler.drag=null;document.body.style.cursor='';};if(DayPilotScheduler.gShadow){if(DayPilotScheduler.gShadow.source){var $i=DayPilotScheduler.gShadow.source.event.calendar;DayPilot.Util.removeClass(DayPilotScheduler.gShadow.source,$i.$9S("_event_moving_source"));};document.body.removeChild(DayPilotScheduler.gShadow);DayPilotScheduler.gShadow=null;};DayPilotScheduler.moveOffsetX=null;DayPilotScheduler.moveDragStart=null;};DayPilotScheduler.createGShadow=function($h){var $h=$h||{};var $1U=document.createElement('div');$1U.setAttribute('unselectable','on');$1U.style.position='absolute';$1U.style.width='100px';$1U.style.height='20px';$1U.style.zIndex=101;$1U.style.pointerEvents="none";$1U.style.backgroundColor="#aaaaaa";$1U.style.opacity=0.5;$1U.style.filter="alpha(opacity=50)";$1U.className=$h.externalCssClass;if($h.externalHtml){$1U.innerHTML=$h.externalHtml;};document.body.appendChild($1U);return $1U;};var $4M={};DayPilot.Global.rowmoving=$4M;var $20={};DayPilot.Global.linking=$20;DayPilot.SchedulerVisible.dragStart=DayPilotScheduler.dragStart;DayPilot.SchedulerVisible.dragStop=DayPilotScheduler.dragStop;DayPilot.SchedulerVisible.Scheduler=DayPilotScheduler.Scheduler;DayPilot.SchedulerVisible.globalHandlers=DayPilotScheduler.globalHandlers;if(typeof jQuery!=='undefined'){(function($){$.fn.daypilotScheduler=function($h){var $5F=null;var j=this.each(function(){if(this.daypilot){return;};var $8P=new DayPilot.Scheduler(this.id,$h);$8P.init();this.daypilot=$8P;if(!$5F){$5F=$8P;}});if(this.length===1){return $5F;}else{return j;}};})(jQuery);};(function registerAngularModule(){var $8Q=DayPilot.am();if(!$8Q){return;};$8Q.directive("daypilotScheduler",function(){return{"restrict":"E","template":"<div id='{{id}};'></div>","compile":function compile(element,$8R){element.replaceWith(this["template"].replace("{{id}};",$8R["id"]));return function link($8S,element,$8R){var $i=new DayPilot.Scheduler(element[0]);$i.$c6.scope=$8S;$i.init();var $8T=$8R["id"];if($8T){$8S[$8T]=$i;};var $8U=$8S["$watch"];$8U.call($8S,$8R["daypilotConfig"],function($5V,$8V){$i.debug.message("daypilot-config value change detected, updating.");$i.$fc($5V);$i.update();$i.$fa();},true);$8U.call($8S,$8R["daypilotEvents"],function($5V){$i.debug.message("daypilot-events value change detected, updating.");$i.events.list=$5V;$i.$aI({"eventsOnly":true});},true);};}};});})();if(typeof Sys!=='undefined'&&Sys.Application&&Sys.Application.notifyScriptLoaded){Sys.Application.notifyScriptLoaded();}})();
  
  if(typeof DayPilot==='undefined'){var DayPilot={};};if(typeof DayPilot.Global==='undefined'){DayPilot.Global={};};(function(){if(typeof DayPilot.Year!=='undefined'){return;};DayPilot.Year=function(id,$a){this.v='1925';var $b=this;this.startDate=new DayPilot.Date();this.cssOnly=true;this.cssClassPrefix=null;this.columns=4;this.cellWidth=20;this.showWeekNumbers=false;this.$i=[];this.$j=function(){this.root.dp=this;this.$k=new DayPilot.Date(this.startDate.toString("yyyy-01-01","en-us"));};this.$l=function($c){if(this.cssClassPrefix){return this.cssClassPrefix+$c;}else{return "";}};this.$m=function(){if(this.showWeekNumbers){return this.cellWidth;};return 0;};this.$n=function(){this.$i=[];var $d=this.columns;var $e=12/$d;this.root.className=this.$l('_main');this.root.style.width=$d*(this.cellWidth*7+this.$m())+'px';for(var y=0;y<$e;y++){for(var x=0;x<$d;x++){var m=y*$d+x;var id=id+"_nav_"+m;var $f=document.createElement("div");$f.id=id;$f.style.float='left';this.root.appendChild($f);var navigator=new DayPilot.Navigator(id);navigator.startDate=this.$k.addMonths(m);navigator.cssOnly=this.cssOnly;navigator.cssClassPrefix=this.cssClassPrefix;navigator.cellWidth=this.cellWidth;navigator.showWeekNumbers=this.showWeekNumbers;navigator.internal.showLinks={};navigator.selectMode='none';navigator.timeRangeSelectedHandling="JavaScript";navigator.onTimeRangeSelected=this.$o;navigator.init();navigator.root.className='';this.$i.push(navigator);};var $g=document.createElement("div");$g.style.clear='left';this.root.appendChild($g);}};this.$o=function($h){alert("clicked: "+$h.day);};this.init=function(){this.root=document.getElementById(id);if(this.root.dp){return;};this.$j();this.$n();};};})();
  
  