/* DayPilot Pro Copyright (c) 2005 - 2014 Annpoint s.r.o. http://www.daypilot.org/ Use of this software is subject to license terms. Version: 791 */ 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.mo=function(t,ev){ev=ev||window.event;if(ev.layerX){var $a={x:ev.layerX,y:ev.layerY};if(!t){return $a;};return $a;};if(ev.offsetX){return{x:ev.offsetX,y:ev.offsetY};};return null;};DayPilot.isKhtml=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("KHTML")!==-1);DayPilot.isIE=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("MSIE")!==-1);DayPilot.isIE7=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("MSIE 7")!==-1);DayPilot.isIEQuirks=DayPilot.isIE&&(document.compatMode&&document.compatMode==="BackCompat");DayPilot.browser={};DayPilot.browser.ie9=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("MSIE 9")!==-1);DayPilot.browser.ielt9=(function(){var $b=document.createElement("div");$b.innerHTML="";var $c=($b.getElementsByTagName("i").length===1);return $c;})();DayPilot.mo2=function($d,ev){ev=ev||window.event;if(typeof(ev.offsetX)!=='undefined'){var $a={x:ev.offsetX+1,y:ev.offsetY+1};if(!$d){return $a;};var $e=ev.srcElement;while($e&&$e!==$d){if($e.tagName!=='SPAN'){$a.x+=$e.offsetLeft;if($e.offsetTop>0){$a.y+=$e.offsetTop-$e.scrollTop;}};$e=$e.offsetParent;};if($e){return $a;};return null;};if(typeof(ev.layerX)!=='undefined'){var $a={x:ev.layerX,y:ev.layerY,$f:ev.target};if(!$d){return $a;};var $e=ev.target;while($e&&$e.style.position!=='absolute'&&$e.style.position!=='relative'){$e=$e.parentNode;if(DayPilot.isKhtml){$a.y+=$e.scrollTop;}}while($e&&$e!==$d){$a.x+=$e.offsetLeft;$a.y+=$e.offsetTop-$e.scrollTop;$e=$e.offsetParent;};if($e){return $a;};return null;};return null;};DayPilot.mo3=function($d,ev){ev=ev||window.event;var $g=DayPilot.page(ev);if($g){var $h=DayPilot.abs($d);return{x:$g.x-$h.x,y:$g.y-$h.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.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;i0&&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 $k=DayPilot.pageOffset();r.x+=$k.x;r.y+=$k.y;return r;};DayPilot.wd=function(){var $m=DayPilot.isIEQuirks;var $n=document.documentElement.clientHeight;if($m){$n=document.body.clientHeight;};var $o=document.documentElement.clientWidth;if($m){$o=document.body.clientWidth;};var $p=(document.documentElement&&document.documentElement.scrollTop)||document.body.scrollTop;var $q=(document.documentElement&&document.documentElement.scrollLeft)||document.body.scrollLeft;var $r={};$r.width=$o;$r.height=$n;$r.scrollTop=$p;$r.scrollLeft=$q;return $r;};DayPilot.op=function(element){try{return element.offsetParent;}catch(e){return document.body;}};DayPilot.distance=function($s,$t){return Math.sqrt(Math.pow($s.x-$t.x,2)+Math.pow($s.y-$t.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,$u){if(!$u){var $u=[];};for(var i=0;e.children&&i/g,">");$r=$r.replace(/"/g,""");return $r;};DayPilot.ci=function($M){var i=$M.cellIndex;if(i&&i>0)return i;var tr=$M.parentNode;var $N=tr.cells.length;for(i=0;i<$N;i++){if(tr.cells[i]===$M)return i;};return null;};DayPilot.us=function(element){if(element){element.setAttribute("unselectable","on");element.style.MozUserSelect='none';for(var i=0;i0;var $R=$O<0;if($O===0){return;};if($Q&&!$i){element.target=parseFloat(element.style.opacity);element.opacity=0;element.style.opacity=0;element.style.filter="alpha(opacity=0)";element.style.display='';}else if($R&&!element.target){element.target=element.style.opacity;}else{var $e=element.opacity;var $S=Math.floor(10*($e+$O))/10;if($Q&&$S>element.target){$S=element.target;};if($R&&$S<0){$S=0;};var ie=$S*100;element.opacity=$S;element.style.opacity=$S;element.style.filter="alpha(opacity="+ie+")";};if(($Q&&(element.opacity>=element.target||element.opacity>=1))||($R&&element.opacity<=0)){element.target=null;if($R){element.style.opacity=element.target;element.opacity=element.target;var $T=element.target?"alpha(opacity="+(element.target*100)+")":null;element.style.filter=$T;element.style.display='none';};if(end&&typeof end==='function'){end();}}else{this.messageTimeout=setTimeout(function(){DayPilot.fade(element,$O,end);},$P);}};DayPilot.sw=function(element){if(!element){return 0;};return element.offsetWidth-element.clientWidth;};DayPilot.swa=function(){var $b=document.createElement("div");$b.style.position="absolute";$b.style.top="-2000px";$b.style.left="-2000px";$b.style.width='200px';$b.style.height='100px';$b.style.overflow='auto';var $U=document.createElement("div");$U.style.width='300px';$U.style.height='300px';$b.appendChild($U);document.body.appendChild($b);var sw=DayPilot.sw($b);document.body.removeChild($b);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($v){var u={},a=[];for(var i=0,l=$v.length;i0.8;i-=$O){$Y.push(i);$01=i;};for(var i=$01;i<=1;i+=$O){$Y.push(i);$01=i;};return $Y;};var $02=function(){var $Y=[];$Y.time=15;var $01;var $O=0.04;$01=0.1;for(var i=$01;i<=1;i+=$O){$Y.push(i);$01=i;};return $Y;};var $03=function(){var $Y=[];$Y.time=9;var $01;var $O=0.04;$01=0.1;for(var i=$01;i<=1;i+=$O){$Y.push(i);$01=i;};return $Y;};var $04={"fast":$03,"slow":$02,"jump":$00};if(!$04[$Z]){$Z="fast";};return $04[$Z]();};function doStep($Y){var $b=$Y.div;var $05=$Y[$Y.i];var $06=$05*$Y.target.h;var top;switch($Y.config.vertical){case "center":top=$Y.target.y-($06-$Y.target.h)/2;break;case "top":top=$Y.target.y;break;case "bottom":top=$Y.target.y-($06-$Y.target.h);break;default:throw "Unexpected 'vertical' value.";};var $07=$05*$Y.target.w;var $j;switch($Y.config.horizontal){case "left":$j=$Y.target.x;break;case "center":$j=$Y.target.x-($07-$Y.target.w)/2;break;case "right":$j=$Y.target.x-($07-$Y.target.w);break;default:throw "Unexpected 'horizontal' value.";};var wd=DayPilot.wd();var $08=(wd.height+wd.scrollTop)-(top+$06);if($08<0){top+=$08;};var $09=(wd.width)-($j+$07);if($09<0){$j+=$09;};$b.style.height=$06+"px";$b.style.top=top+"px";$b.style.width=$07+"px";$b.style.left=$j+"px";$b.style.visibility='visible';$Y.i++;if($Y.i<$Y.length-1){setTimeout((function($Y){return function(){doStep($Y);};})($Y),$Y.time);}else{$b.style.width=$Y.target.width;$b.style.height=$Y.target.height;$b.style.top=$Y.target.top;$b.style.left=$Y.target.left;if(typeof $Y.config.finished==='function'){$Y.config.finished();}}}})();DayPilot.Util={};DayPilot.Util.addClass=function($w,name){if(!$w){return;};if(!$w.className){$w.className=name;return;};var $0a=new RegExp("(^|\\s)"+name+"($|\\s)");if(!$0a.test($w.className)){$w.className=$w.className+' '+name;}};DayPilot.Util.addClassToString=function(str,name){if(!str){return name;};var $0a=new RegExp("(^|\\s)"+name+"($|\\s)");if(!$0a.test(str)){return str+' '+name;}else{return str;}};DayPilot.Util.removeClassFromString=function(str,name){if(!str){return "";};var $0a=new RegExp("(^|\\s)"+name+"($|\\s)");return str.replace($0a,' ').replace(/^\s\s*/,'').replace(/\s\s*$/,'');};DayPilot.Util.removeClass=function($w,name){if(!$w){return;};var $0a=new RegExp("(^|\\s)"+name+"($|\\s)");$w.className=$w.className.replace($0a,' ').replace(/^\s\s*/,'').replace(/\s\s*$/,'');};DayPilot.Util.props=function(o){var t=[];for(a in o){t.push(a);t.push(o[a]);};return t.join("-");};DayPilot.Util.propArray=function($0b,name){var $r=[];if(!$0b||!$0b.length){return $r;};for(var i=0;i<$0b.length;i++){$r.push($0b[i][name]);};return $r;};DayPilot.Util.updatePropsFromArray=function($0b,name,$v){for(var i=0;i<$v.length;i++){$0b[i][name]=$v[i];}};DayPilot.Util.copyProps=function($0c,$d,$0b){if(!$0c){return;};if(typeof $0b==='undefined'){for(var name in $0c){$d[name]=$0c[name];}}else{for(var i=0;i<$0b.length;i++){var name=$0b[i];$d[name]=$0c[name];}}};DayPilot.Areas={};DayPilot.Areas.showAreas=function($b,e,ev){if(DayPilot.Global.resizing){return;};if(DayPilot.Global.moving){return;};if(DayPilot.Areas.all&&DayPilot.Areas.all.length>0){for(var i=0;i0){return;};$b.areas=[];for(var i=0;i<$0d.length;i++){var $0e=$0d[i];if($0e.v!=='Hover'){continue;};var a=DayPilot.Areas.createArea($b,e,$0e);$b.areas.push(a);$b.appendChild(a);DayPilot.Areas.all.push($b);};$b.active.children=DayPilot.ac($b);};DayPilot.Areas.createArea=function($b,e,$0e){var a=document.createElement("div");a.isActiveArea=true;a.style.position="absolute";a.setAttribute("unselectable","on");if(typeof $0e.w!=='undefined'){a.style.width=$0e.w+"px";};if(typeof $0e.h!=='undefined'){a.style.height=$0e.h+"px";};if(typeof $0e.right!=='undefined'){a.style.right=$0e.right+"px";};if(typeof $0e.top!=='undefined'){a.style.top=$0e.top+"px";};if(typeof $0e.left!=='undefined'){a.style.left=$0e.left+"px";};if(typeof $0e.bottom!=='undefined'){a.style.bottom=$0e.bottom+"px";};if(typeof $0e.html!=='undefined'&&$0e.html){a.innerHTML=$0e.html;};if($0e.css){a.className=$0e.css;};if($0e.action==="ResizeEnd"||$0e.action==="ResizeStart"||$0e.action==="Move"){if(e.calendar.isCalendar){switch($0e.action){case "ResizeEnd":$0e.cursor="s-resize";$0e.dpBorder="bottom";break;case "ResizeStart":$0e.cursor="n-resize";$0e.dpBorder="top";break;case "Move":$0e.cursor="move";break;}};if(e.calendar.isScheduler||e.calendar.isMonth){switch($0e.action){case "ResizeEnd":$0e.cursor="e-resize";$0e.dpBorder="right";break;case "ResizeStart":$0e.cursor="w-resize";$0e.dpBorder="left";break;case "Move":$0e.cursor="move";break;}};a.onmousemove=(function($b,e,$0e){return function(ev){var ev=ev||window.event;$b.style.cursor=$0e.cursor;if($0e.dpBorder)$b.dpBorder=$0e.dpBorder;ev.cancelBubble=true;};})($b,e,$0e);a.onmouseout=(function($b,e,$0e){return function(ev){$b.style.cursor='';};})($b,e,$0e);};if($0e.action==="Bubble"&&e.isEvent){a.onmousemove=(function($b,e,$0e){return function(ev){if(e.calendar.bubble){e.calendar.bubble.showEvent(e);}};})($b,e,$0e);a.onmouseout=(function($b,e,$0e){return function(ev){if(typeof DayPilot.Bubble!=="undefined"){if(e.calendar.bubble){e.calendar.bubble.hideOnMouseOut();}}};})($b,e,$0e);};a.onmousedown=(function($b,e,$0e){return function(ev){var $0f=true;if($0f){if($0e.action==="Move"||$0e.action==="ResizeEnd"||$0e.action==="ResizeStart"){return;};ev=ev||window.event;ev.cancelBubble=true;}};})($b,e,$0e);a.onclick=(function($b,e,$0e){return function(ev){var ev=ev||window.event;switch($0e.action){case "JavaScript":var f=$0e.js;if(typeof f==='string'){f=eval("0, "+$0e.js);};if(typeof f==='function'){f.call(this,e);};break;case "ContextMenu":var m=$0e.menu;if(typeof m==='string'){m=eval(m);};if(m&&m.show){m.show(e);};break;case "CallBack":alert("callback not implemented yet, id: "+$0e.id);break;};ev.cancelBubble=true;};})($b,e,$0e);return a;};DayPilot.Areas.all=[];DayPilot.Areas.hideAreas=function($b,ev){if(!$b){return;};if(!$b||!$b.active){return;};var $0g=$b.active;var $0d=$b.areas;if($0g&&$0g.children){var ev=ev||window.event;if(ev){var $d=ev.toElement||ev.relatedTarget;if(~DayPilot.indexOf($0g.children,$d)){return;}}};if(!$0d||$0d.length===0){$b.active=null;return;};for(var i=0;i<$0d.length;i++){var a=$0d[i];$b.removeChild(a);};$b.active=null;$b.areas=[];DayPilot.rfa(DayPilot.Areas.all,$b);$0g.children=null;};DayPilot.Areas.hideAll=function(ev){if(!DayPilot.Areas.all||DayPilot.Areas.all.length===0){return;};for(var i=0;i=4){$0Z=$0Z+1;};if($0Z>52&&!$0T){$0Z=1;};if($0Z===0){$0Z=this.firstDayOfYear().addDays(-1).weekNumberISO();};return $0Z;};DayPilot.Date.prototype.toDateLocal=function(){return DayPilot.Date.toLocal(this.d);};DayPilot.Date.prototype.toJSON=function(){return this.value;};DayPilot.Date.prototype.toString=function($10,$11){if(typeof $10==='undefined'){return this.toStringSortable();};return new $12($10,$11).print(this);};DayPilot.Date.prototype.toStringSortable=function(){return DayPilot.Date.toStringSortable(this.d);};DayPilot.Date.parse=function(str,$10){var p=new $12($10);return p.parse(str);};DayPilot.Date.fromStringSortable=function($13){var $r;if(!$13){throw "Can't create DayPilot.Date from empty string";};var $N=$13.length;var $0D=$N===10;var $14=$N=19;var $15=$N===25;if(!$0D&&!$14&&!$15){throw "Invalid string format (use '2010-01-01', '2010-01-01T00:00:00', or '2010-01-01T00:00:00+00:00'.";};if(DayPilot.Date.Cache.Parsing[$13]){return DayPilot.Date.Cache.Parsing[$13];};var $0Q=$13.substring(0,4);var $16=$13.substring(5,7);var $17=$13.substring(8,10);var d=new Date();d.setUTCFullYear($0Q,$16-1,$17);if($0D){d.setUTCHours(0);d.setUTCMinutes(0);d.setUTCSeconds(0);d.setUTCMilliseconds(0);$r=new DayPilot.Date(d);DayPilot.Date.Cache.Parsing[$13]=$r;return $r;};var $0H=$13.substring(11,13);var $0J=$13.substring(14,16);var $0L=$13.substring(17,19);d.setUTCHours($0H);d.setUTCMinutes($0J);d.setUTCSeconds($0L);d.setUTCMilliseconds(0);var $r=new DayPilot.Date(d);if($14){DayPilot.Date.Cache.Parsing[$13]=$r;return $r;};var $18=$13[20];var $19=$13.substring(21,23);var $1a=$13.substring(24);var $1b=$19*60+$1a;if($18==="-"){$1b=-$1b;};$r=$r.addMinutes(-$1b);$r.offset=$1c;DayPilot.Date.Cache.Parsing[$13]=$r;return $r;};DayPilot.Date.addDays=function($0D,$0G){var d=new Date();d.setTime($0D.getTime()+$0G*24*60*60*1000);return d;};DayPilot.Date.addMinutes=function($0D,$0J){var d=new Date();d.setTime($0D.getTime()+$0J*60*1000);return d;};DayPilot.Date.addMonths=function($0D,$0K){if($0K===0)return $0D;var y=$0D.getUTCFullYear();var m=$0D.getUTCMonth()+1;if($0K>0){while($0K>=12){$0K-=12;y++;};if($0K>12-m){y++;m=$0K-(12-m);}else{m+=$0K;}}else{while($0K<=-12){$0K+=12;y--;};if(m<=$0K){y--;m=12-($0K+m);}else{m=m+$0K;}};var d=DayPilot.Date.clone($0D);d.setUTCFullYear(y);d.setUTCMonth(m-1);return d;};DayPilot.Date.addTime=function($0D,$1d){var d=new Date();d.setTime($0D.getTime()+$1d);return d;};DayPilot.Date.clone=function($1e){var d=new Date();return DayPilot.Date.dateFromTicks($1e.getTime());};DayPilot.Date.daysDiff=function($0S,$1f){if($0S.getTime()>$1f.getTime()){return null;};var i=0;var $1g=DayPilot.Date.getDate($0S);var $1h=DayPilot.Date.getDate($1f);while($1g<$1h){$1g=DayPilot.Date.addDays($1g,1);i++;};return i;};DayPilot.Date.daysInMonth=function($0Q,$16){if($0Q.getUTCFullYear){$16=$0Q.getUTCMonth()+1;$0Q=$0Q.getUTCFullYear();};var m=[31,28,31,30,31,30,31,31,30,31,30,31];if($16!==2)return m[$16-1];if($0Q%4!==0)return m[1];if($0Q%100===0&&$0Q%400!==0)return m[1];return m[1]+1;};DayPilot.Date.daysSpan=function($0S,$1f){if($0S.getTime()===$1f.getTime()){return 0;};var $1i=DayPilot.Date.daysDiff($0S,$1f);if(DayPilot.Date.equals($1f,DayPilot.Date.getDate($1f))){$1i--;};return $1i;};DayPilot.Date.diff=function($0S,$1f){if(!($0S&&$1f&&$0S.getTime&&$1f.getTime)){throw "Both compared objects must be Date objects (DayPilot.Date.diff).";};return $0S.getTime()-$1f.getTime();};DayPilot.Date.equals=function($0S,$1f){return $0S.getTime()===$1f.getTime();};DayPilot.Date.fromLocal=function($1j){if(!$1j){$1j=new Date();};var d=new Date();d.setUTCFullYear($1j.getFullYear(),$1j.getMonth(),$1j.getDate());d.setUTCHours($1j.getHours());d.setUTCMinutes($1j.getMinutes());d.setUTCSeconds($1j.getSeconds());d.setUTCMilliseconds($1j.getMilliseconds());return d;};DayPilot.Date.firstDayOfMonth=function($0Q,$16){var d=new Date();d.setUTCFullYear($0Q,$16-1,1);d.setUTCHours(0);d.setUTCMinutes(0);d.setUTCSeconds(0);d.setUTCMilliseconds(0);return d;};DayPilot.Date.firstDayOfWeek=function(d,$0R){var $17=d.getUTCDay();while($17!==$0R){d=DayPilot.Date.addDays(d,-1);$17=d.getUTCDay();};return d;};DayPilot.Date.dateFromTicks=function($0M){var d=new Date();d.setTime($0M);return d;};DayPilot.Date.getDate=function($1e){var d=DayPilot.Date.clone($1e);d.setUTCHours(0);d.setUTCMinutes(0);d.setUTCSeconds(0);d.setUTCMilliseconds(0);return d;};DayPilot.Date.getStart=function($0Q,$16,$0R){var $1k=DayPilot.Date.firstDayOfMonth($0Q,$16);d=DayPilot.Date.firstDayOfWeek($1k,$0R);return d;};DayPilot.Date.getTime=function($1e){var $0D=DayPilot.Date.getDate($1e);return DayPilot.Date.diff($1e,$0D);};DayPilot.Date.hours=function($0D,$1l){var $1m=$0D.getUTCMinutes();if($1m<10)$1m="0"+$1m;var $1n=$0D.getUTCHours();if($1l){var am=$1n<12;var $1n=$1n%12;if($1n===0){$1n=12;};var $1o=am?"AM":"PM";return $1n+':'+$1m+' '+$1o;}else{return $1n+':'+$1m;}};DayPilot.Date.lastDayOfMonth=function($0Q,$16){var d=DayPilot.Date.firstDayOfMonth($0Q,$16);var length=DayPilot.Date.daysInMonth($0Q,$16);d.setUTCDate(length);return d;};DayPilot.Date.max=function($0S,$1f){if($0S.getTime()>$1f.getTime()){return $0S;}else{return $1f;}};DayPilot.Date.min=function($0S,$1f){if($0S.getTime()<$1f.getTime()){return $0S;}else{return $1f;}};DayPilot.Date.today=function(){var $1p=new Date();var d=new Date();d.setUTCFullYear($1p.getFullYear());d.setUTCMonth($1p.getMonth());d.setUTCDate($1p.getDate());return d;};DayPilot.Date.toLocal=function($0D){if(!$0D){$0D=new Date();};var d=new Date();d.setFullYear($0D.getUTCFullYear(),$0D.getUTCMonth(),$0D.getUTCDate());d.setHours($0D.getUTCHours());d.setMinutes($0D.getUTCMinutes());d.setSeconds($0D.getUTCSeconds());d.setMilliseconds($0D.getUTCMilliseconds());return d;};DayPilot.Date.toStringSortable=function($0D){if($0D.isDayPilotDate){return $0D.toStringSortable();};var d=$0D;var $1f=d.getUTCSeconds();if($1f<10)$1f="0"+$1f;var $1m=d.getUTCMinutes();if($1m<10)$1m="0"+$1m;var $1n=d.getUTCHours();if($1n<10)$1n="0"+$1n;var $17=d.getUTCDate();if($17<10)$17="0"+$17;var $16=d.getUTCMonth()+1;if($16<10)$16="0"+$16;var $0Q=d.getUTCFullYear();if($0Q<=0){throw "The minimum year supported is 1.";};if($0Q<10){$0Q="000"+$0Q;}else if($0Q<100){$0Q="00"+$0Q;}else if($0Q<1000){$0Q="0"+$0Q;};return $0Q+"-"+$16+"-"+$17+'T'+$1n+":"+$1m+":"+$1f;};var $12=function($10,$11){if(typeof $11==="string"){$11=DayPilot.Locale.find($11);};var $11=$11||DayPilot.Locale.US;var $1q=[{"seq":"yyyy","expr":"[0-9]{4,4\u007d","str":function(d){return d.getYear();}},{"seq":"MMMM","expr":"[a-z]*","str":function(d){var r=$11.monthNames[d.getMonth()];return r;}},{"seq":"MMM","expr":"[a-z]*","str":function(d){var r=$11.monthNamesShort[d.getMonth()];return r;}},{"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":"[a-z]*","str":function(d){var r=$11.dayNames[d.getDayOfWeek()];return r;}},{"seq":"ddd","expr":"[a-z]*","str":function(d){var r=$11.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":"m","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getMinutes();return r;}},{"seq":"mm","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getMinutes();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 r=d.getHours();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":"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":"tt","expr":"(AM|PM)","str":function(d){var $1n=d.getHours();var am=$1n<12;return am?"AM":"PM";}},{"seq":"s","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getSeconds();return r;}},{"seq":"ss","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getSeconds();return r<10?"0"+r:r;}}];var $1r=function($G){return $G.replace(/[-[\]{};()*+?.,\\^$|#\s]/g,"\\$&");};this.init=function(){this.year=this.findSequence("yyyy");this.month=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($1s){var $B=$10.indexOf($1s);if($B===-1){return null;};return{"findValue":function($1t){var $1u=$1r($10);for(var i=0;i<$1q.length;i++){var $N=$1q[i].length;var $1v=($1s===$1q[i].seq);var $1w=$1q[i].expr;if($1v){$1w="("+$1w+")";};$1u=$1u.replace($1q[i].seq,$1w);};try{var r=new RegExp($1u);var $v=r.exec($1t);if(!$v){return null;};return parseInt($v[1]);}catch(e){throw "unable to create regex from: "+$1u;}}};};this.print=function($0D){var find=function(t){for(var i=0;i<$1q.length;i++){if($1q[i].seq===t){return $1q[i];}};return null;};var $1x=$10.length<=0;var $1y=0;var $1z=[];while(!$1x){var $1A=$10.substring($1y);var $1B=/(.)\1*/.exec($1A);if($1B&&$1B.length>0){var $1C=$1B[0];var q=find($1C);if(q){$1z.push(q);}else{$1z.push($1C);};$1y+=$1C.length;$1x=$10.length<=$1y;}else{$1x=true;}};for(var i=0;i<$1z.length;i++){var c=$1z[i];if(typeof c!=='string'){$1z[i]=c.str($0D);}};return $1z.join("");};this.parse=function($1t){var $0Q=this.year.findValue($1t);if(!$0Q){return null;};var $16=this.month.findValue($1t);var $17=this.day.findValue($1t);var $0H=this.hours?this.hours.findValue($1t):0;var $0J=this.minutes?this.minutes.findValue($1t):0;var $0L=this.seconds?this.seconds.findValue($1t):0;var d=new Date();d.setUTCFullYear($0Q,$16-1,$17);d.setUTCHours($0H);d.setUTCMinutes($0J);d.setUTCSeconds($0L);d.setUTCMilliseconds(0);return new DayPilot.Date(d);};this.init();};DayPilot.Action=function($C,$0h,$0i,$0j){this.calendar=$C;this.isAction=true;this.action=$0h;this.params=$0i;this.data=$0j;this.notify=function(){$C.invokeEvent("Immediate",this.action,this.params,this.data);};this.auto=function(){$C.invokeEvent("Notify",this.action,this.params,this.data);};this.queue=function(){$C.queue.add(this);};this.toJSON=function(){var $0k={};$0k.name=this.action;$0k.params=this.params;$0k.data=this.data;return $0k;};};DayPilot.Locale=function(id,$W){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($W){for(var name in $W){this[name]=$W[name];}}};DayPilot.Locale.all={};DayPilot.Locale.find=function(id){if(!id){return null;};var $1D=id.toLowerCase();if($1D.length>2){$1D[2]='-';};return DayPilot.Locale.all[$1D];};DayPilot.Locale.register=function($11){DayPilot.Locale.all[$11.id]=$11;};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('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('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(){var $1E=this;this.views=[];this.switchers=[];this.navigator={};this.selectedClass=null;this.active=null;this.day=new DayPilot.Date();this.navigator.updateMode=function($1F){var $1G=$1E.navigator.control;if(!$1G){return;};$1G.selectMode=$1F;$1G.select($1E.day);};this.addView=function($1H,$V){var element;if(typeof $1H==='string'){element=document.getElementById($1H);if(!element){throw "Element not found: "+$1H;}}else{element=$1H;};var $1G=element;var $1I={};$1I.isView=true;$1I.id=$1G.id;$1I.control=$1G;$1I.options=$V||{};$1I.hide=function(){if($1G.hide){$1G.hide();}else if($1G.nav&&$1G.nav.top){$1G.nav.top.style.display='none';}else{$1G.style.display='none';}};$1I.sendNavigate=function($0D){var $1J=(function(){if($1G.backendUrl){return true;};if(typeof WebForm_DoCallback==='function'&&$1G.uniqueID){return true;};return false;})();if($1J){if($1G.commandCallBack){$1G.commandCallBack("navigate",{"day":$0D});}}};$1I.show=function(){$1E.$24();if($1G.show){$1G.show();}else if($1G.nav&&$1G.nav.top){$1G.nav.top.style.display='';}else{$1G.style.display='';}};$1I.selectMode=function(){if($1I.options.navigatorSelectMode){return $1I.options.navigatorSelectMode;};if($1G.isCalendar){switch($1G.viewType){case "Day":return "day";case "Week":return "week";case "WorkWeek":return "week";default:return "day";}}else if($1G.isMonth){switch($1G.viewType){case "Month":return "month";case "Weeks":return "week";default:return "day";}};return "day";};this.views.push($1I);return $1I;};this.addButton=function(id,$1G){var element;if(typeof id==='string'){element=document.getElementById(id);if(!element){throw "Element not found: "+id;}}else{element=id;};var $1I=this.$25($1G);if(!$1I){$1I=this.addView($1G);};var $1K={};$1K.isSwitcher=true;$1K.element=element;$1K.id=element.id;$1K.view=$1I;$1K.onClick=function(ev){$1E.show($1K);$1E.$26($1K);ev=ev||window.event;if(ev){ev.preventDefault?ev.preventDefault():ev.returnValue=false;}};DayPilot.re(element,'click',$1K.onClick);this.switchers.push($1K);return $1K;};this.select=function(id){var $1K=this.$27(id);if($1K){$1K.onClick();}else if(this.switchers.length>0){this.switchers[0].onClick();}};this.$27=function(id){for(var i=0;i$A-$x+$w){var $D=this.mouse.clientY-($A-$x)+$w;top=(this.mouse.y-$x-$C);}else{top=this.mouse.y+$B;};if(typeof top==='number'){$n.style.top=Math.max(top,0)+"px";};if(this.mouse.clientX>$z-$y+$w){var $E=this.mouse.clientX-($z-$y)+$w;$n.style.left=(this.mouse.x-$E)+'px';}else{$n.style.left=this.mouse.x+'px';}}else if($v==='EventTop'){var $F=2;var top=this.mouse.y-$x-$F;var $G=wd.scrollTop;if(top<$G){top=this.mouse.y+this.mouse.h+$F;};if(typeof top==='number'){$n.style.top=Math.max(top,0)+'px';};var $H=this.mouse.x;if(this.mouse.x+$y+$w>$z){$H=$z-$y-$w;};$n.style.left=$H+'px';};$n.style.display='';if($p){$n.style.display='';var $I={};$I.color=$n.firstChild.style.color;$I.overflow=$n.style.overflow;$n.firstChild.style.color="transparent";$n.style.overflow='hidden';this.removeShadow();DayPilot.pop($n,{"finished":function(){$n.firstChild.style.color=$I.color;$n.style.overflow=$I.overflow;$f.addShadow();},"vertical":"bottom","horizontal":"left","animation":$f.animation});}};this.delayedHide=function(){DayPilotBubble.cancelTimeout();if($f.hideAfter>0){DayPilotBubble.timeout=window.setTimeout(DayPilotBubble.hideActive,$f.hideAfter);}};this.showOnMouseOver=function($o){DayPilotBubble.cancelTimeout();var $J=function($K){return function(){$f.show($K);};};DayPilotBubble.timeout=window.setTimeout($J($o),this.showAfter);};this.hideOnMouseOut=function(){this.delayedHide();};this.$S=function(){if(this.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(!this.elements.div){return;};var $n=this.elements.div;if(this.shadows&&this.shadows.length>0){this.removeShadow();};this.shadows=[];for(var i=0;i<5;i++){var $L=document.createElement('div');$L.setAttribute("unselectable","on");$L.style.position='absolute';$L.style.width=$n.offsetWidth+'px';$L.style.height=$n.offsetHeight+'px';$L.style.top=$n.offsetTop+i+'px';$L.style.left=$n.offsetLeft+i+'px';$L.style.zIndex=this.zIndex;$L.style.filter='alpha(opacity:10)';$L.style.opacity=0.1;$L.style.backgroundColor='#000000';if(this.rounded()){$L.style.MozBorderRadius="5px";$L.style.webkitBorderRadius="5px";$L.style.borderRadius="5px";};document.body.appendChild($L);this.shadows.push($L);}};this.removeShadow=function(){if(!this.shadows){return;};for(var i=0;i";var $e=($d.getElementsByTagName("i").length===1);return $e;})();this.$3C.ff=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Firefox")!==-1);this.$3C.opera105=(function(){if(/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){var v=new Number(RegExp.$1);return v>=10.5;};return false;})();this.$3C.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.$3D();this.selectedCells=[];};this.$3D=function(){if(!this.selectedCells){return;};for(var j=0;jthis.businessEndsHour){return 24-this.businessBeginsHour+this.businessEndsHour;}else{return this.businessEndsHour-this.businessBeginsHour;}};this.$4m=function(){if(this.dayBeginsHour>=this.dayEndsHour){return 24-this.dayBeginsHour+this.dayEndsHour;}else{return this.dayEndsHour-this.dayBeginsHour;}};this.$4k=function($O){var $P=0;if(this.heightSpec==='BusinessHoursNoScroll'){$P=this.$4l();}else if(this.hideFreeCells&&!$O){var $Q=(this.maxEnd-1)*this.cellDuration/this.cellHeight;var $R=Math.ceil($Q/60);$P=Math.max(this.dayBeginsHour+$R,this.businessEndsHour)-this.$4n();}else{$P=this.$4m();};return $P*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.$4o();var $X=this.showHours?this.hourWidth:0;var $Y=DayPilot.sw($c.nav.scroll);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($c.messageTimeout){clearTimeout($c.messageTimeout);}};$d.onmouseout=function(){if($c.nav.message.style.display!=='none'){$c.messageTimeout=setTimeout($c.$4p,500);}};var $N=document.createElement("div");$N.onclick=function(){$c.nav.message.style.display='none';};if(!this.cssOnly){$N.style.padding="5px";$N.style.opacity=$W;$N.style.filter="alpha(opacity="+($W*100)+")";}else{$N.className=this.$4i("_message");};$d.appendChild($N);var close=document.createElement("div");close.style.position="absolute";if(!this.cssOnly){close.style.top="5px";close.style.right=(DayPilot.sw($c.nav.scroll)+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.$4i("_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{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(){var $N=$c.nav.message.firstChild;if(!$c.cssOnly){$N.style.padding="5px";$N.style.opacity=$W;$N.style.backgroundColor=$V;$N.style.color=$U;};$N.innerHTML=$S;var end=function(){$c.messageTimeout=setTimeout($c.$4p,$T);};DayPilot.fade($c.nav.message,0.2,end);};clearTimeout($c.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.$4p();};this.$4p=function(){var end=function(){$c.nav.message.style.display='none';};DayPilot.fade($c.nav.message,-0.2,end);};this.$46=function(){if(this.nav.message){this.nav.message.style.top=(this.$4o())+"px";}};this.$4q=function(){return this.$4k()/(60*1000*this.cellDuration);};this.eventClickPostBack=function(e,$h){this.$3E('EventClick',$h,e);};this.eventClickCallBack=function(e,$h){this.$3G('EventClick',e,$h);};this.$4r=function(e){var $d=this;var e=e||window.event;var $01=e.ctrlKey;if(typeof(DayPilot.Bubble)!=='undefined'){DayPilot.Bubble.hideActive();};if($c.eventDoubleClickHandling==='Disabled'){$c.$4s($d,$01);return;};if(!$c.timeouts){$c.timeouts=[];}else{for(var $02 in $c.timeouts){window.clearTimeout($c.timeouts[$02]);};$c.timeouts=[];};var $03=function($d,$01){return function(){$c.$4s($d,$01);};};$c.timeouts.push(window.setTimeout($03(this,$01),$c.doubleClickTimeout));};this.$4s=function($04,$01){var e=$04.event;if(!e.client.clickEnabled()){return;};if($c.$4g()){var $n={};$n.e=e;$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 'JavaScript':$c.onEventClick(e);break;case 'Edit':if(!e.allday()){$c.$4t($04);};break;case 'Select':if(!e.allday()){$c.$4u($04,e,$01);};break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;case 'ContextMenu':var $05=e.client.contextMenu();if($05){$05.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':if(!e.allday()){$c.$4t($04);};break;case 'Select':if(!e.allday()){$c.$4u($04,e,$01);};break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;case 'ContextMenu':var $05=e.client.contextMenu();if($05){$05.show(e);}else{if($c.contextMenu){$c.contextMenu.show(e);}};break;}}};this.eventDoubleClickPostBack=function(e,$h){this.$3E('EventDoubleClick',$h,e);};this.eventDoubleClickCallBack=function(e,$h){this.$3G('EventDoubleClick',e,$h);};this.$4v=function(ev){if(typeof(DayPilotBubble)!=='undefined'){DayPilotBubble.hideActive();};if($c.timeouts){for(var $02 in $c.timeouts){window.clearTimeout($c.timeouts[$02]);};$c.timeouts=null;};var e=this.event;var ev=ev||window.event;if($c.$4g()){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.$4t(this);};break;case 'Select':if(!e.allday()){$c.$4u(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.$4t(this);};break;case 'Select':if(!e.allday()){$c.$4u(this,e,ev.ctrlKey);};break;case 'Bubble':if($c.bubble){$c.bubble.showEvent(e);};break;}}};this.eventRightClickPostBack=function(e,$h){this.$3E('EventRightClick',$h,e);};this.eventRightClickCallBack=function(e,$h){this.$3G('EventRightClick',e,$h);};this.$4w=function(){var e=this.event;if(!e.client.rightClickEnabled()){return false;};if($c.$4g()){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 $05=e.client.contextMenu();if($05){$05.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 $05=e.client.contextMenu();if($05){$05.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.headerClickPostBack=function(c,$h){this.$3E('HeaderClick',$h,c);};this.headerClickCallBack=function(c,$h){this.$3G('HeaderClick',c,$h);};this.$4x=function($F){var $h=this.data;var c=new DayPilotCalendar.Column($h.id,$h.name,$h.start);if($c.$4g()){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.$4y=function(){if(typeof(DayPilotBubble)!=='undefined'&&$c.columnBubble){if($c.viewType==="Resources"){var $06={};$06.calendar=$c;$06.id=this.data.id;$06.toJSON=function(){var $07={};$07.id=this.id;return $07;};$c.columnBubble.showResource($06);}else{var $08=new DayPilot.Date(this.data.start);var end=$08.addDays(1);var $09={};$09.calendar=$c;$09.start=$08;$09.end=end;$09.toJSON=function(){var $07={};$07.start=this.start;$07.end=this.end;return $07;};$c.columnBubble.showTime($09);}};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.$4z=function(ev){if(typeof(DayPilotBubble)!=='undefined'&&$c.columnBubble){$c.columnBubble.hideOnMouseOut();};DayPilot.Areas.hideAreas(this.firstChild,ev);};this.eventDeletePostBack=function(e,$h){this.$3E('EventDelete',$h,e);};this.eventDeleteCallBack=function(e,$h){this.$3G('EventDelete',e,$h);};this.$4A=function($F){var e=$F.parentNode.parentNode.event;if($c.$4g()){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;};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,$0a,$0b,$h){if(!$0a){throw 'newStart is null';};if(!$0b){throw 'newEnd is null';};var $0c={};$0c.e=e;$0c.newStart=$0a;$0c.newEnd=$0b;this.$3E('EventResize',$h,$0c);};this.eventResizeCallBack=function(e,$0a,$0b,$h){if(!$0a)throw 'newStart is null';if(!$0b)throw 'newEnd is null';var $0c={};$0c.e=e;$0c.newStart=$0a;$0c.newEnd=$0b;this.$3G('EventResize',$0c,$h);};this.$4B=function($l,$g,$0c,$h){if($l==='PostBack'){$c.postBack2($g,$0c,$h);}else if($l==='CallBack'){$c.$3G($g,$0c,$h,"CallBack");}else if($l==='Immediate'){$c.$3G($g,$0c,$h,"Notify");}else if($l==='Queue'){$c.queue.add(new DayPilot.Action(this,$g,$0c,$h));}else if($l==='Notify'){if($0d.notifyType()==='Notify'){$c.$3G($g,$0c,$h,"Notify");}else{$c.queue.add(new DayPilot.Action($c,$g,$0c,$h));}}else{throw "Invalid event invocation type";}};this.$4n=function($O){if(this.heightSpec==='BusinessHoursNoScroll'){return this.businessBeginsHour;}else if(this.hideFreeCells&&!$O){var $Q=(this.minStart-1)*this.cellDuration/this.cellHeight;var $R=Math.floor($Q/60);return Math.min(this.dayBeginsHour+$R,this.businessBeginsHour);}else{return this.dayBeginsHour;}};this.$4g=function(){return $c.api===2;};this.$4C=function(e,$0e,$0f,$0g){if(this.eventResizeHandling==='Disabled'){return;};var $J=0;var $0a=new Date();var $0b=new Date();var $08=e.start();var end=e.end();var $0h=$c.cellDuration;if($0g==='top'){var $0i=$08.getDatePart();var $0j=Math.floor(($0f-$J)/$c.cellHeight);var $0k=$0j*$0h;var ts=$0k*60*1000;var $0l=$c.$4n()*60*60*1000;$0a=$0i.addTime(ts+$0l);$0b=e.end();}else if($0g==='bottom'){var $0i=end.getDatePart();var $0j=Math.floor(($0f+$0e-$J)/$c.cellHeight);var $0k=$0j*$0h;var ts=$0k*60*1000;var $0l=$c.$4n()*60*60*1000;$0a=$08;$0b=$0i.addTime(ts+$0l);};if($c.$4g()){var $n={};$n.e=e;$n.newStart=$0a;$n.newEnd=$0b;$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,$0a,$0b);break;case 'CallBack':$c.eventResizeCallBack(e,$0a,$0b);break;case 'Notify':$c.eventResizeNotify(e,$0a,$0b);break;case 'Update':e.start($0a);e.end($0b);$c.events.update(e);break;};if(typeof $c.onEventResized==='function'){$c.onEventResized($n);}}else{switch($c.eventResizeHandling){case 'PostBack':$c.eventResizePostBack(e,$0a,$0b);break;case 'CallBack':$c.eventResizeCallBack(e,$0a,$0b);break;case 'JavaScript':$c.onEventResize(e,$0a,$0b);break;case 'Notify':$c.eventResizeNotify(e,$0a,$0b);break;}}};this.eventResizeNotify=function(e,$0a,$0b,$h){var $0m=new DayPilot.Event(e.copy(),this);e.start($0a);e.end($0b);e.commit();$c.update();this.$4D("Notify",$0m,$0a,$0b,$h);};this.$4D=function($l,e,$0a,$0b,$h){var $0c={};$0c.e=e;$0c.newStart=$0a;$0c.newEnd=$0b;this.$4B($l,"EventResize",$0c,$h);};this.eventMovePostBack=function(e,$0a,$0b,$0n,$h){if(!$0a)throw 'newStart is null';if(!$0b)throw 'newEnd is null';var $0c={};$0c.e=e;$0c.newStart=$0a;$0c.newEnd=$0b;$0c.newResource=$0n;this.$3E('EventMove',$h,$0c);};this.eventMoveCallBack=function(e,$0a,$0b,$0n,$h){if(!$0a)throw 'newStart is null';if(!$0b)throw 'newEnd is null';var $0c={};$0c.e=e;$0c.newStart=$0a;$0c.newEnd=$0b;$0c.newResource=$0n;this.$3G('EventMove',$0c,$h);};this.$4E=function(e,$0o,$0f,ev,$0p){if($c.eventMoveHandling==='Disabled'){return;};var $J=0;var $0j=Math.floor(($0f-$J)/$c.cellHeight);var $0h=$c.cellDuration;var $0q=$0j*$0h*60*1000;var $08=e.start();var end=e.end();var $0i=new Date();if($08.isDayPilotDate){$08=$08.d;};$0i.setTime(Date.UTC($08.getUTCFullYear(),$08.getUTCMonth(),$08.getUTCDate()));var $0r=($c.useEventBoxes!=='Never')?$08.getTime()-($0i.getTime()+$08.getUTCHours()*3600*1000+Math.floor($08.getUTCMinutes()/$0h)*$0h*60*1000):0;var length=end.getTime()-$08.getTime();var $0l=$c.$4n()*3600*1000;var $0s=this.columnsBottom[$0o];var $0t=$0s.start.getTime();var $0u=new Date();$0u.setTime($0t+$0q+$0r+$0l);var $0a=new DayPilot.Date($0u);var $0b=$0a.addTime(length);var external=!!$0p;var $0n=$0s.id;if($c.$4g()){var $n={};$n.e=e;$n.newStart=$0a;$n.newEnd=$0b;$n.newResource=$0n;$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,$0a,$0b,$0n);break;case 'CallBack':$c.eventMoveCallBack(e,$0a,$0b,$0n);break;case 'Notify':$c.eventMoveNotify(e,$0a,$0b,$0n);break;case 'Update':e.start($0a);e.end($0b);e.resource($0n);$c.events.update(e);break;};if(typeof $c.onEventMoved==='function'){$c.onEventMoved($n);}}else{switch($c.eventMoveHandling){case 'PostBack':$c.eventMovePostBack(e,$0a,$0b,$0n);break;case 'CallBack':$c.eventMoveCallBack(e,$0a,$0b,$0n);break;case 'JavaScript':$c.onEventMove(e,$0a,$0b,$0n,external,ev?ev.ctrlKey:false,ev?ev.shiftKey:false);break;case 'Notify':$c.eventMoveNotify(e,$0a,$0b,$0n,null);break;}}};this.eventMoveNotify=function(e,$0a,$0b,$0n,$h){var $0m=new DayPilot.Event(e.copy(),this);e.start($0a);e.end($0b);e.resource($0n);e.commit();$c.update();this.$4F("Notify",$0m,$0a,$0b,$0n,$h);};this.$4F=function($l,e,$0a,$0b,$0n,$h){var $0c={};$0c.e=e;$0c.newStart=$0a;$0c.newEnd=$0b;$0c.newResource=$0n;this.$4B($l,"EventMove",$0c,$h);};this.$4G=function($n,$y){var $x=$c.$4H($y);var $0c={};$0c.args=$n;$0c.guid=$x;$c.$3G("Bubble",$0c);};this.$4H=function($y){var $x=DayPilot.guid();if(!this.bubbles){this.bubbles=[];};this.bubbles[$x]=$y;return $x;};this.eventMenuClickPostBack=function(e,$0v,$h){var $0c={};$0c.e=e;$0c.command=$0v;this.$3E('EventMenuClick',$h,$0c);};this.eventMenuClickCallBack=function(e,$0v,$h){var $0c={};$0c.e=e;$0c.command=$0v;this.$3G('EventMenuClick',$0c,$h);};this.$4I=function($0v,e,$0w){switch($0w){case 'PostBack':$c.eventMenuClickPostBack(e,$0v);break;case 'CallBack':$c.eventMenuClickCallBack(e,$0v);break;}};this.timeRangeMenuClickPostBack=function(e,$0v,$h){var $0c={};$0c.selection=e;$0c.command=$0v;this.$3E("TimeRangeMenuClick",$h,$0c);};this.timeRangeMenuClickCallBack=function(e,$0v,$h){var $0c={};$0c.selection=e;$0c.command=$0v;this.$3G("TimeRangeMenuClick",$0c,$h);};this.$4J=function($0v,e,$0w){switch($0w){case 'PostBack':$c.timeRangeMenuClickPostBack(e,$0v);break;case 'CallBack':$c.timeRangeMenuClickCallBack(e,$0v);break;}};this.timeRangeSelectedPostBack=function($08,end,$0x,$h){var $0y={};$0y.start=$08;$0y.end=end;$0y.resource=$0x;this.$3E('TimeRangeSelected',$h,$0y);};this.timeRangeSelectedCallBack=function($08,end,$0x,$h){var $0y={};$0y.start=$08;$0y.end=end;$0y.resource=$0x;this.$3G('TimeRangeSelected',$0y,$h);};this.$4K=function($08,end,$r){if(!$08.isDayPilotDate){$08=new DayPilot.Date($08);};if(!end.isDayPilotDate){end=new DayPilot.Date(end);};var $0x=$r;if($c.$4g()){var $n={};$n.start=$08;$n.end=end;$n.resource=$0x;$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($08,end,$0x);break;case 'CallBack':$c.timeRangeSelectedCallBack($08,end,$0x);break;};if(typeof $c.onTimeRangeSelected==='function'){$c.onTimeRangeSelected($n);}}else{switch($c.timeRangeSelectedHandling){case 'PostBack':$c.timeRangeSelectedPostBack($08,end,$r);break;case 'CallBack':$c.timeRangeSelectedCallBack($08,end,$r);break;case 'JavaScript':$c.onTimeRangeSelected($08,end,$r);break;}}};this.timeRangeDoubleClickPostBack=function($08,end,$r,$h){var $0y={};$0y.start=$08;$0y.end=end;$0y.resource=$r;this.$3E('TimeRangeDoubleClick',$h,$0y);};this.timeRangeDoubleClickCallBack=function($08,end,$r,$h){var $0y={};$0y.start=$08;$0y.end=end;$0y.resource=$r;this.$3G('TimeRangeDoubleClick',$0y,$h);};this.$4L=function($08,end,$r){if($c.$4g()){var $0x=$r;var $n={};$n.start=$08;$n.end=end;$n.resource=$0x;$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($08,end,$0x);break;case 'CallBack':$c.timeRangeDoubleClickCallBack($08,end,$0x);break;};if(typeof $c.onTimeRangeDoubleClicked==='function'){$c.onTimeRangeDoubleClicked($n);}}else{switch($c.timeRangeDoubleClickHandling){case 'PostBack':$c.timeRangeDoubleClickPostBack($08,end,$r);break;case 'CallBack':$c.timeRangeDoubleClickCallBack($08,end,$r);break;case 'JavaScript':$c.onTimeRangeDoubleClick($08,end,$r);break;}}};this.eventEditPostBack=function(e,$0z,$h){var $0c={};$0c.e=e;$0c.newText=$0z;this.$3E("EventEdit",$h,$0c);};this.eventEditCallBack=function(e,$0z,$h){var $0c={};$0c.e=e;$0c.newText=$0z;this.$3G("EventEdit",$0c,$h);};this.$4M=function(e,$0z){if($c.$4g()){var $n={};$n.e=e;$n.newText=$0z;$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,$0z);break;case 'CallBack':$c.eventEditCallBack(e,$0z);break;case 'Update':e.text($0z);$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,$0z);break;case 'CallBack':$c.eventEditCallBack(e,$0z);break;case 'JavaScript':$c.onEventEdit(e,$0z);break;}}};this.eventSelectPostBack=function(e,$0A,$h){var $0c={};$0c.e=e;$0c.change=$0A;this.$3E('EventSelect',$h,$0c);};this.eventSelectCallBack=function(e,$0A,$h){var $0c={};$0c.e=e;$0c.change=$0A;this.$3G('EventSelect',$0c,$h);};this.$4N=function($d,e,$01){if($c.$4g()){var m=$c.multiselect;m.previous=m.events();var $n={};$n.e=e;$n.selected=m.isSelected(e);$n.ctrl=$01;$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,$0A);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){__theFormPostData="";__theFormPostCollection=[];WebForm_InitCallback();};$c.eventSelectCallBack(e,$0A);break;case 'Update':m.$4O($d,$01);break;};if(typeof $c.onEventSelected==='function'){$n.change=m.isSelected(e)?"selected":"deselected";$n.selected=m.isSelected(e);$c.onEventSelected($n);}}else{var m=$c.multiselect;m.previous=m.events();m.$4O($d,$01);var $0A=m.isSelected(e)?"selected":"deselected";switch($c.eventSelectHandling){case 'PostBack':$c.eventSelectPostBack(e,$0A);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){__theFormPostData="";__theFormPostCollection=[];WebForm_InitCallback();};$c.eventSelectCallBack(e,$0A);break;case 'JavaScript':$c.onEventSelect(e,$0A);break;}}};this.commandCallBack=function($0v,$h){this.$3L();var $0c={};$0c.command=$0v;this.$3G('Command',$0c,$h);};this.$4P=function(ev){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 $0B=(window.event)?window.event.button:ev.which;if($0B!==1&&$0B!==0){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.$4Q=function(){if(!this.selectedCells){return;};var $0C=this.getSelection();if(!$0C){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.$4R=function(ev){if(typeof(DayPilotBubble)!=='undefined'&&$c.cellBubble){$c.cellBubble.hideOnMouseOut();}};this.$4S=function(ev){if(typeof(DayPilotCalendar)==='undefined'){return;};if(typeof(DayPilotBubble)!=='undefined'&&$c.cellBubble){var $r=DayPilotCalendar.getColumn(this);var $06=$c.columnsBottom[$r].id;var $f={};$f.calendar=$c;$f.start=this.start;$f.end=this.end;$f.resource=$06;$f.toJSON=function(){var $07={};$07.start=this.start;$07.end=this.end;$07.resource=this.resource;return $07;};$c.cellBubble.showCell($f);};if(DayPilotCalendar.firstMousePos){var $0D=DayPilotCalendar.firstMousePos;var $0E=DayPilot.mc(ev||window.event);if($0D.x!==$0E.x||$0D.y!==$0E.y){DayPilotCalendar.selecting=true;$c.clearSelection();$c.$4Q();}};if(!DayPilotCalendar.selecting){return;};var $0F=DayPilot.mc(ev||window.event);var $0G=DayPilotCalendar.getColumn(this);if($0G!==DayPilotCalendar.column){return;};$c.clearSelection();if($0F.y=$c.scrollPos+$c.scrollHeight){$0R.style.top=(this.$4o()+this.scrollHeight-8)+"px";$0R.style.display='';}else{$0R.style.display='none';}}}};this.$4W=function($F){var $0U=$F.parentNode;while($0U&&$0U.tagName!=="TD"){$0U=$0U.parentNode;};var $0V=document.createElement('textarea');$0V.style.position='absolute';$0V.style.width=($F.parentNode.offsetWidth-2)+'px';$0V.style.height=($F.offsetHeight-2)+'px';var $0W=DayPilot.gs($F,'fontFamily');if(!$0W)$0W=DayPilot.gs($F,'font-family');$0V.style.fontFamily=$0W;var $0X=DayPilot.gs($F,'fontSize');if(!$0X)$0X=DayPilot.gs($F,'font-size');$0V.style.fontSize=$0X;$0V.style.left='0px';$0V.style.top=$F.offsetTop+'px';$0V.style.border='1px solid black';$0V.style.padding='0px';$0V.style.marginTop='0px';$0V.style.backgroundColor='white';$0V.value=DayPilot.tr($F.event.text());$0V.event=$F.event;$0U.firstChild.appendChild($0V);return $0V;};this.$4u=function($d,e,$01){$c.$4N($d,e,$01);};this.multiselect={};this.multiselect.$3Y=[];this.multiselect.$4X=[];this.multiselect.$4Y=[];this.multiselect.$4Z=[];this.multiselect.$50=function(){var m=$c.multiselect;return DayPilot.JSON.stringify(m.events());};this.multiselect.events=function(){var m=$c.multiselect;var $0Y=[];$0Y.ignoreToJSON=true;for(var i=0;i1){m.add($d.event,true);}}}else{m.clear(true);}}else{if($c.allowMultiSelect){if($0Z){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.$51();};this.multiselect.$52=function(ev){var m=$c.multiselect;return m.$53(ev,m.$3Y);};this.multiselect.$54=function(){var m=$c.multiselect;var $11=[];for(var i=0;ithis.max-1)){return true;};return false;};$1f.putIntoLine=function(ep){var $1h=this;for(var i=0;ie.part.top+e.part.height-1)){return false;}};return true;};$1i.push(ep);this.lines.push($1i);return this.lines.length-1;};$1f.events.push(ep);$1f.min=ep.part.top;$1f.max=ep.part.top+ep.part.height;this.blocks.push($1f);return this.blocks.length-1;};$r.putIntoLine=function(ep){var $1h=this;for(var i=0;ie.part.top+e.part.height-1)){return false;}};return true;};$1i.push(ep);this.lines.push($1i);return this.lines.length-1;};if($r.children){this.$5d($r.children);}};this.$5d=function(cc){for(var i=0;i
");if($1l){if($h.start().getDatePart().getTime()!==$h.start().getTime()){$1n.push(DayPilot.Date.hours($h.start().d,this.$5h.timeFormat()==='Clock12Hours'));}}else{$1n.push("~");};$1n.push("
");};if($1q){$1n.push("
");if($1m){if($h.end().getDatePart().getTime()!==$h.end().getTime()){$1n.push(DayPilot.Date.hours($h.end().d,this.$5h.timeFormat()==='Clock12Hours'));}}else{$1n.push("~");};$1n.push("
");};if($1r==='Left'){var $X=$1p?$1s:0;$1n.push("
");if($h.client.innerHTML()){$1n.push($h.client.innerHTML());}else{$1n.push($h.text());};$1n.push("
");}else if($1r==='Center'){if($1o){$1n.push("
");$1n.push("");if($h.client.innerHTML()){$1n.push($h.client.innerHTML());}else{$1n.push($h.text());};$1n.push("");$1n.push("
");}else{$1n.push("
");if($h.client.innerHTML()){$1n.push($h.client.innerHTML());}else{$1n.push($h.text());};$1n.push("
");}};$N.innerHTML=$1n.join('');$d.appendChild($N);}else{var $N=document.createElement("div");$N.setAttribute("unselectable","on");$N.className=this.$4i("_alldayevent_inner");if(back){$N.style.background=back;};if($c.rtl){if(!$1l){DayPilot.Util.addClass($d,this.$4i("_alldayevent_continueright"));};if(!$1m){DayPilot.Util.addClass($d,this.$4i("_alldayevent_continueleft"));}}else{if(!$1l){DayPilot.Util.addClass($d,this.$4i("_alldayevent_continueleft"));};if(!$1m){DayPilot.Util.addClass($d,this.$4i("_alldayevent_continueright"));}};if($h.client.innerHTML()){$N.innerHTML=$h.client.innerHTML();}else{$N.innerHTML=$h.text();};$d.appendChild($N);};if($c.$4g()){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);}};$1k.style.display='';};this.$3M=function($1t){$c.multiselect.$5a();if(this.elements.events){for(var i=0;i
0");$1n.push(") { DayPilotBubble.hideActive(); event.cancelBubble = true; };\" onmousedown=\"this.parentNode.parentNode.style.cursor='default';\" onclick='");$1n.push(this.clientName);$1n.push(".internal.eventDeleteDispatch(this); event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation();' >
");};if($1x){$1n.push("
");$1n.push("
 
");$1n.push("
");$1n.push("
");$1n.push("
");$1n.push(" 
");$1n.push("
");}else if(!$1w){$1n.push("
 
");};$1n.push("");if(this.durationBarVisible){var $1A=$h.client.barColor()||$c.durationBarColor;$1n.push("
");$1n.push("
");$1n.push("
");};var $1B=$h.client.header()?this.eventHeaderHeight:0;if($h.client.header()){$1n.push("
");$1n.push($h.client.header());$1n.push("
");};if(this.durationBarVisible){$1n.push("
");$1n.push($h.client.innerHTML());$1n.push("
");if($1x){$1n.push("
");$1n.push("
");$1n.push("
");$1n.push("
");$1n.push("
");$1n.push("
");$1n.push("
");$1n.push("
");$1n.push("
");};$d.innerHTML=$1n.join('');}else{if($1y.cssClass){DayPilot.Util.addClass($d,$1y.cssClass);};var $N=document.createElement("div");$N.setAttribute("unselectable","on");$N.className=$c.$4i("_event_inner");$N.innerHTML=$h.client.innerHTML();if($1y.backColor){$N.style.background=$1y.backColor;};if($1y.borderColor){$N.style.borderColor=$1y.borderColor;};if($1y.backgroundImage){$N.style.backgroundImage="url("+$1y.backgroundImage+")";if($1y.backgroundRepeat){$N.style.backgroundRepeat=$1y.backgroundRepeat;}};$d.appendChild($N);if($h.client.barVisible()){var $L=$h.part.height-2;var $1C=100*$h.part.barTop/$L;var $1D=Math.ceil(100*$h.part.barHeight/$L);if(this.durationBarMode==="PercentComplete"){$1E=0;$1F=$1y.complete;};var $1G=document.createElement("div");$1G.setAttribute("unselectable","on");$1G.className=this.$4i("_event_bar");$1G.style.position="absolute";var $1H=document.createElement("div");$1H.setAttribute("unselectable","on");$1H.className=this.$4i("_event_bar_inner");$1H.style.top=$1C+"%";if(0<$1D&&$1D<=1){$1H.style.height="1px";}else{$1H.style.height=$1D+"%";};$1G.appendChild($1H);$d.appendChild($1G);}};if($1y.areas){for(var i=0;i<$1y.areas.length;i++){var $1I=$1y.areas[i];if($1I.v!=='Visible'){continue;};var a=DayPilot.Areas.createArea($d,$h,$1I);$d.appendChild(a);}};if($H.rows[0].cells[$h.part.dayIndex]){var $1J=$H.rows[0].cells[$h.part.dayIndex].firstChild;$1J.appendChild($d);$c.$5n($d);$d.event=$h;if($c.multiselect.$52($h)){$c.multiselect.add($d.event,true);};if($c.$4g()){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.$5n=function(el){var c=(el&&el.childNodes)?el.childNodes.length:0;for(var i=0;i1){throw "Header height can't be adjusted for HeaderLevels > 1 (not implemented yet).";return;};var $O=0;for(var i=0;ithis.headerHeight){this.$3B.headerHeight=$O;this.$42();this.$43();}};this.$5E=function(){if(this.cssOnly){return DayPilot.sw($c.nav.scroll)>0;}else{return DayPilot.sw($c.nav.scroll)>2;}};this.$5s=function(){var $1k=document.createElement("div");if(!this.cssOnly){$1k.style.borderLeft="1px solid "+this.borderColor;$1k.style.borderRight="1px solid "+this.borderColor;};var $0K=this.columnWidthSpec==='Fixed';if(!$0K){$1k.style.overflow="auto";};$1k.style.position="absolute";$1k.style.left="0px";$1k.style.right="0px";var $1R=document.createElement("div");$1R.style.position="relative";$1R.style.zoom="1";var $27=null;var $0K=this.columnWidthSpec==='Fixed';if($0K){var $X=document.createElement("div");$X.style.cssFloat="left";$X.style.styleFloat="left";$X.style.width=(this.hourWidth)+"px";if(this.showHours){var $28=this.$5F();this.nav.corner=$28;$X.appendChild($28);$1R.appendChild($X);this.nav.upperLeft=$X;};var $1V=30;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.$4o()+"px";$1R.appendChild($Y);this.nav.upperRight=$Y;$27=document.createElement("div");$27.style.width=(this.columnsBottom.length*this.columnWidth+$1V)+"px";$Y.appendChild($27);}else{var $1W=document.createElement("table");$1W.cellPadding="0";$1W.cellSpacing="0";$1W.border="0";$1W.style.width="100%";$1W.style.borderCollapse='separate';$1W.style.border="0px none";var r=$1W.insertRow(-1);this.nav.fullHeader=$1W;if(this.showHours){var c=r.insertCell(-1);c.style.padding='0px';c.style.border='0px none';var $28=this.$5F();c.appendChild($28);this.nav.corner=$28;};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';$27=document.createElement("div");$27.style.position="relative";$27.style.height=this.$4o()+"px";$27.style.overflow="hidden";c.appendChild($27);this.nav.mid=$27;$1R.appendChild($1W);};this.nav.headerParent=$27;this.$5G();var $29=this.$5E();var $0K=this.columnWidthSpec==='Fixed';if($29&&!$0K){this.$5H();};$1k.appendChild($1R);return $1k;};this.$5G=function(){this.nav.header=document.createElement("table");this.nav.header.cellPadding="0";this.nav.header.cellSpacing="0";var $0K=this.columnWidthSpec==='Fixed';if(!$0K){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 $29=this.$5E();if(!this.cssOnly){if($29){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 $2a=document.createElement("div");$2a.style.position='absolute';$2a.style.top="0px";$2a.style.height="0px";var $0K=this.columnWidthSpec==='Fixed';if(!$0K){$2a.style.width="100%";}else{$2a.style.width=(this.columnsBottom.length*this.columnWidth)+"px";};this.nav.allday=$2a;this.nav.headerParent.appendChild($2a);}};this.$5H=function(){if(!this.nav.fullHeader){return;};var r=this.nav.fullHeader.rows[0];var c=r.insertCell(-1);if(!this.cssOnly){c.className=this.$4i('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 $1n=document.createElement("div");$1n.setAttribute("unselectable","on");if(this.cssOnly){$1n.className=this.$4i('_cornerright');};$1n.style.overflow="hidden";$1n.style.position="relative";$1n.style.width="16px";$1n.style.height=this.$4o()+"px";var $N=document.createElement("div");if(this.cssOnly){$N.className=this.$4i('_cornerright_inner');}else{$N.style.borderTop="1px solid "+this.borderColor;};$1n.appendChild($N);c.appendChild($1n);this.nav.cornerRight=$1n;};this.$5F=function(){var $1P=document.createElement("div");$1P.style.position='relative';if(!this.cssOnly){$1P.style.backgroundColor=this.cornerBackColor;$1P.style.fontFamily=this.headerFontFamily;$1P.style.fontSize=this.headerFontSize;$1P.style.color=this.headerFontColor;$1P.className=this.$4i("corner");}else{$1P.className=this.$4i("_corner");};$1P.style.width=this.hourWidth+"px";$1P.style.height=this.$4o()+"px";$1P.style.overflow="hidden";$1P.oncontextmenu=function(){return false;};var $28=document.createElement("div");if(this.cssOnly){$28.className=this.$4i("_corner_inner");}else{$28.style.borderTop="1px solid "+this.borderColor;};$28.setAttribute("unselectable","on");var $S=this.cornerHTML||this.cornerHtml;$28.innerHTML=$S?$S:'';$1P.appendChild($28);if(!this.numberFormat)return $1P;var $2b=document.createElement("div");$2b.style.position='absolute';$2b.style.padding='2px';$2b.style.top='0px';$2b.style.left='1px';$2b.style.backgroundColor="#FF6600";$2b.style.color="white";$2b.innerHTML="\u0044\u0045\u004D\u004F";$2b.setAttribute("unselectable","on");$1P.appendChild($2b);return $1P;};this.$3N=function(){var $1W=this.nav.main;$1W.igongo1=null;$1W.onmouseup=null;for(var y=0;y<$1W.rows.length;y++){var r=$1W.rows[y];for(var x=0;x0&&$1Y){if(!this.fasterDispose)DayPilot.pu($1W.rows[0]);$1W.deleteRow(0);};this.tableCreated=true;if(this.scrollLabelsVisible){var $0L=this.columnsBottom;var $0M=(this.showHours?this.hourWidth:0);var $I=(this.nav.scroll.clientWidth-$0M)/$0L.length;for(var i=0;i<$0L.length;i++){var $0O=document.createElement("div");$0O.style.position='absolute';$0O.style.top='0px';$0O.style.left=($0M+2+i*$I+$I/2)+"px";$0O.style.display='none';var $1u=document.createElement("div");$1u.style.height='10px';$1u.style.width='10px';if(this.cssOnly){$1u.className=this.$4i("_scroll_up");}else{$1u.style.backgroundRepeat="no-repeat";if(this.scrollUpUrl){$1u.style.backgroundImage="url('"+this.scrollUpUrl+"')";};$1u.className=this.$4i("scroll_up");};$0O.appendChild($1u);this.nav.scrollLayer.appendChild($0O);this.nav.scrollUp.push($0O);var $0P=document.createElement("div");$0P.style.position='absolute';$0P.style.top='0px';$0P.style.left=($0M+2+i*$I+$I/2)+"px";$0P.style.display='none';var $1u=document.createElement("div");$1u.style.height='10px';$1u.style.width='10px';if(this.cssOnly){$1u.className=this.$4i("_scroll_down");}else{$1u.style.backgroundRepeat="no-repeat";if(this.scrollDownUrl){$1u.style.backgroundImage="url('"+this.scrollDownUrl+"')";};$1u.className=this.$4i("scroll_down");};$0P.appendChild($1u);this.nav.scrollLayer.appendChild($0P);this.nav.scrollDown.push($0P);}};var cl=$0L.length;if(this.cssOnly||this.separateEventsTable){var $0Y=this.nav.events;while($0Y&&$0Y.rows&&$0Y.rows.length>0&&$1Y){if(!this.fasterDispose)DayPilot.pu($0Y.rows[0]);$0Y.deleteRow(0);};var r=($1Y)?$0Y.insertRow(-1):$0Y.rows[0];for(var j=0;j0;if($2g){if($c.hourHalfBorderColor!==''){$d.style.borderBottom='1px solid '+$c.hourHalfBorderColor;};$d.className=$c.$4i("hourhalfcellborder");}else{if($c.hourBorderColor!==''){$d.style.borderBottom='1px solid '+$c.hourBorderColor;};$d.className=$c.$4i("hourcellborder");}}else{var $2f=document.createElement("div");$2f.className=$c.$4i("_cell");$2f.style.position="relative";$2f.style.height=($c.cellHeight)+"px";$2f.style.overflow='hidden';$2f.setAttribute("unselectable","on");var $N=document.createElement("div");$N.className=$c.$4i("_cell_inner");$2f.appendChild($N);c.appendChild($2f);}}else{$2f=c.firstChild;$2f.className=$c.$4i("_cell");};c.onmousedown=this.$4P;c.onmousemove=this.$4S;c.onmouseout=this.$4R;c.ontouchstart=this.$5m.onCellTouchStart;c.ontouchmove=this.$5m.onCellTouchMove;c.ontouchend=this.$5m.onCellTouchEnd;c.onmouseup=function(){return false;};c.onclick=function(){return false;};c.ondblclick=function(){DayPilotCalendar.firstMousePos=null;$c.$4Q();clearTimeout(DayPilotCalendar.selectedTimeout);if($c.timeRangeDoubleClickHandling==='Disabled'){return;};var $0J=$c.getSelection();$c.$4L($0J.start,$0J.end,$0J.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.$4Q();};if($c.contextMenuSelection){$c.contextMenuSelection.show($c.getSelection());};return false;};var $V=$c.$5K(j,i);$2f=c.firstChild;var $0K=this.columnWidthSpec==='Fixed';if($0K){$2f.style.width=this.columnWidth+"px";};if($V){if(this.cssOnly){$2f.firstChild.style.background=$V;}else{$2f.style.background=$V;}};var $2h=$2e?$2e.business:this.$5I(c.start,c.end);if($2h&&this.cssOnly){DayPilot.Util.addClass($2f,$c.$4i("_cell_business"));};var $S=this.cssOnly?$2f.firstChild:$2f;if($S){$S.innerHTML='';};$2f.style.backgroundImage="";$2f.style.backgroundRepeat="";if($2e){if($2e.html){$S.innerHTML=$2e.html;};if($2e.cssClass){if(this.cssOnly){DayPilot.Util.addClass($2f,$2e.cssClass);}else{DayPilot.Util.addClass(c,$c.$4i($2e.cssClass));}};if($2e.backImage){$2f.style.backgroundImage="url('"+$2e.backImage+"')";};if($2e.backRepeat){$2f.style.backgroundRepeat=$2e.backRepeat;}};if(!this.cssOnly){DayPilot.Util.addClass(c,$c.$4i("cellbackground"));}}};$1W.onmouseup=this.$4T;$1W.igongo1=this;$c.nav.scrollable.style.display='';};this.$5I=function($08,end){if(this.businessBeginsHour=this.businessEndsHour||$08.getDayOfWeek()===6||$08.getDayOfWeek()===0);};if($08.getHours()>=this.businessBeginsHour){return true;};if($08.getHours()$O){$2m=$O-DayPilotCalendar.originalTop;};DayPilotCalendar.resizingShadow.style.height=($2m)+'px';}else if(DayPilot.Global.resizing.dpBorder==='top'){var $2n=Math.floor(((DayPilotCalendar.originalTop+$2l-$J)+$2k/ 2)/ $2k)*$2k+$J;if($2n<$J){$2n=$J;};if($2n>DayPilotCalendar.originalTop+DayPilotCalendar.originalHeight-$2k){$2n=DayPilotCalendar.originalTop+DayPilotCalendar.originalHeight-$2k;};var $2m=DayPilotCalendar.originalHeight-($2n-DayPilotCalendar.originalTop);if($2m<$2k){$2m=$2k;}else{DayPilotCalendar.resizingShadow.style.top=$2n+'px';};DayPilotCalendar.resizingShadow.style.height=($2m)+'px';}}else if(DayPilot.Global.moving){if(!DayPilotCalendar.movingShadow){var $2o=3;if(DayPilot.distance($0F,DayPilotCalendar.originalMouse)>$2o){DayPilotCalendar.movingShadow=$c.$4h(DayPilot.Global.moving,!$c.$3C.ie,$c.shadow);DayPilotCalendar.movingShadow.style.width=(DayPilotCalendar.movingShadow.parentNode.offsetWidth+1)+'px';}else{return;}};if(!$c.coords){return;};var $2k=$c.cellHeight;var $J=0;var $0N=DayPilotCalendar.moveOffsetY;if(!$0N){$0N=$2k/2;};if(this.moveBy==="Top"){$0N=0;};var $2n=Math.floor((($c.coords.y-$0N-$J)+$2k/ 2)/ $2k)*$2k+$J;if($2n<$J){$2n=$J;};var $H=$c.nav.main;var $O=$H.clientHeight;var $L=parseInt(DayPilotCalendar.movingShadow.style.height);if($2n+$L>$O){$2n=$O-$L;};DayPilotCalendar.movingShadow.style.top=$2n+'px';var $I=$H.clientWidth/$H.rows[0].cells.length;var $r=Math.floor(($c.coords.x)/$I);if($r<0){$r=0;};if($c.rtl){$r=$c.columnsBottom.length-$r-1;};var $0Y=$c.nav.events;if($r<$0Y.rows[0].cells.length&&$r>=0&&DayPilotCalendar.movingShadow.column!==$r){DayPilotCalendar.movingShadow.column=$r;DayPilotCalendar.moveShadow($0Y.rows[0].cells[$r]);}};if(DayPilotCalendar.drag){if(DayPilotCalendar.gShadow){document.body.removeChild(DayPilotCalendar.gShadow);};DayPilotCalendar.gShadow=null;if(!DayPilotCalendar.movingShadow&&$c.coords){var $M=$c.$4h(DayPilotCalendar.drag,false,DayPilotCalendar.drag.shadowType);if($M){DayPilotCalendar.movingShadow=$M;var $0E=new DayPilot.Date().getDatePart();var ev={'value':DayPilotCalendar.drag.id,'start':$0E,'end':$0E.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.temp={};this.temp.getPosition=function(){var $2p=$c.$5M.getCellCoords();if(!$2p){return null;};var $r=$c.columnsBottom[$2p.x];var $f={};$f.resource=$r.id;$f.start=new DayPilot.Date($r.start).addHours($c.$4n(true)).addMinutes($2p.y*$c.cellDuration);$f.end=$f.start.addMinutes($c.cellDuration);return $f;};this.$5M={};this.$5M.getCellCoords=function(){var $v={};$v.x=0;$v.y=0;if(!$c.coords){return null;};var $H=$c.nav.main;var $2q=$c.coords.x;var i=0;var $1K=this.col($H,i);while($1K&&$2q>$1K.left){i+=1;$1K=this.col($H,i);};$v.x=i-1;var $J=0;var $1Q=Math.floor(($c.coords.y-$J)/$c.cellHeight);$v.y=$1Q;if($v.x<0){return null;};return $v;};this.$5M.col=function($1W,x){var $v={};$v.left=0;$v.width=0;var $f=$1W.rows[0].cells[x];if(!$f){return null;};var t=DayPilot.abs($1W);var c=DayPilot.abs($f);$v.left=c.x-t.x;$v.width=$f.offsetWidth;return $v;};this.$5L=function(){this.$3T();if(!this.elements.crosshair){this.elements.crosshair=[];};var $2r=this.$5M.getCellCoords();if(!$2r){return;};var $r=$2r.x;var y=Math.floor($2r.y/(60/ $c.cellDuration)*(60/$c.timeHeaderCellDuration));if(y<0){return;};if(this.nav.hourTable){if(y>=this.nav.hourTable.rows.length){return;};var $2s=document.createElement("div");$2s.style.position="absolute";$2s.style.left="0px";$2s.style.right="0px";$2s.style.top="0px";$2s.style.bottom="0px";$2s.style.opacity=.5;$2s.style.backgroundColor=this.crosshairColor;$2s.style.opacity=this.crosshairOpacity/100;$2s.style.filter="alpha(opacity="+this.crosshairOpacity+")";this.nav.hourTable.rows[y].cells[0].firstChild.appendChild($2s);this.elements.crosshair.push($2s);};if(this.nav.header){var $2t=document.createElement("div");$2t.style.position="absolute";$2t.style.left="0px";$2t.style.right="0px";$2t.style.top="0px";$2t.style.bottom="0px";$2t.style.opacity=.5;$2t.style.backgroundColor=this.crosshairColor;$2t.style.opacity=this.crosshairOpacity/100;$2t.style.filter="alpha(opacity="+this.crosshairOpacity+")";var $1Q=this.nav.header.rows[this.headerLevels-1];if($1Q.cells[$r]){$1Q.cells[$r].firstChild.appendChild($2t);this.elements.crosshair.push($2t);}};if(this.crosshairType==="Header"){return;};var $2u=this.nav.crosshair;var $J=0;var top=Math.floor((($c.coords.y-$J))/$c.cellHeight)*$c.cellHeight+$J;var $L=$c.cellHeight;var $2v=document.createElement("div");$2v.style.position="absolute";$2v.style.left="0px";$2v.style.right="0px";$2v.style.top=top+"px";$2v.style.height=$L+"px";$2v.style.backgroundColor=this.crosshairColor;$2v.style.opacity=this.crosshairOpacity/100;$2v.style.filter="alpha(opacity="+this.crosshairOpacity+")";$2v.onmousedown=this.$5N;$2u.appendChild($2v);this.elements.crosshair.push($2v);var $1K=this.$5M.col(this.nav.main,$r);$L=this.nav.main.clientHeight;if($1K){var $2w=document.createElement("div");$2w.style.position="absolute";$2w.style.left=$1K.left+"px";$2w.style.width=$1K.width+"px";$2w.style.top="0px";$2w.style.height=$L+"px";$2w.style.backgroundColor=this.crosshairColor;$2w.style.opacity=this.crosshairOpacity/100;$2w.style.filter="alpha(opacity="+this.crosshairOpacity+")";$2w.onmousedown=this.$5N;$2u.appendChild($2w);this.elements.crosshair.push($2w);}};this.$5N=function(ev){$c.$3T();var $2r=$c.$5M.getCellCoords();var $2x=0;var $f=$c.nav.main.rows[$2r.y+$2x].cells[$2r.x];$c.$4P.apply($f,[ev]);};this.$3T=function(){if(!this.elements.crosshair||this.elements.crosshair.length===0){return;};for(var i=0;i0){$1Y=$1k.rows[$1k.rows.length-1].cells.length!==$2A;};if(this.headerCreated&&$c.$3C.ielt9&&$1Y){DayPilot.de(this.nav.header);this.$5G();}while(this.headerCreated&&$1k&&$1k.rows&&$1k.rows.length>0&&$1Y){if(!this.fasterDispose)DayPilot.pu($1k.rows[0]);$1k.deleteRow(0);};this.headerCreated=true;var $S=$c.cornerHTML||$c.cornerHtml;if(!$1Y){var $28=$c.nav.corner;if($28){if(!this.cssOnly){if($c.cornerBackColor){$28.style.backgroundColor=$c.cornerBackColor;}else{$28.style.backgroundColor=$c.hourBackColor;}};if(!this.fasterDispose)DayPilot.pu($28.firstChild);$28.firstChild.innerHTML=$S?$S:'';}};for(var i=0;i<$c.headerLevels;i++){this.$5P(i+1,$1Y);};if(!this.showAllDayEvents){return;};var r=($1Y)?this.nav.header.insertRow(-1):this.nav.header.rows[$c.headerLevels];for(var i=0;i<$2A;i++){var $h=$0L[i];var $f=($1Y)?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=($1Y)?document.createElement("div"):$f.firstChild;if($1Y){$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=$0d.allDayHeaderHeight()+"px";if(!this.cssOnly){$d.className=this.$4i("alldayheader");$d.style.textAlign='center';$d.style.backgroundColor=$h.backColor;$d.style.cursor='default';var $22=document.createElement("div");$22.style.position="absolute";$22.style.left='0px';$22.style.right='0px';$22.style.top="0px";$22.style.bottom="0px";$22.setAttribute("unselectable","on");$22.style.borderTop='1px solid '+this.borderColor;$d.appendChild($22);if($c.rtl){if(i===$2A-1){$22.style.borderLeft="1px solid "+$h.backColor;}else{$22.style.borderLeft="1px solid "+this.borderColor;}}else{if(i!==$2A-1){$22.style.borderRight="1px solid "+this.borderColor;}}}else{$d.className=this.$4i("_alldayheader");var $N=document.createElement("div");$N.className=this.$4i("_alldayheader_inner");$d.appendChild($N);};$f.appendChild($d);};$d.style.height=$0d.allDayHeaderHeight()+"px";}};this.$3H=function(){if(this.loadingLabelVisible){this.nav.loading.innerHTML=this.loadingLabelText;this.nav.loading.style.top=(this.$4o()+5)+"px";this.nav.loading.style.display='';}};this.$3W=function(){if(this.callbackTimeout){window.clearTimeout(this.callbackTimeout);};this.nav.loading.style.display='none';};this.$5R=function(){var $0K=this.columnWidthSpec==='Fixed';var $2G=$0K?this.nav.bottomRight:this.nav.scroll;if(!this.initScrollPos)return;$2G.igongo1=this;$2G.onscroll=this.$4U;if($2G.scrollTop===0){$2G.scrollTop=this.initScrollPos-this.$4V();}else{this.$4U();}};this.onCallbackError=function($v,$w){alert("Error!\r\nResult: "+$v+"\r\nContext:"+$w);};this.scrollbarVisible=this.$5E;this.$4a=function(){var $2H=this.$5E();var $1a=!!this.nav.cornerRight;if($2H!==$1a){if($2H){this.$5H();}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(this.nav.scroll);if(!this.cssOnly){if(w>=3){d.style.width=(w-3)+'px';}}else{if(d){d.style.width=(w)+'px';}};return w;};this.$4f=function($2I){if($2I){this.autoRefreshEnabled=true;};if(!this.autoRefreshEnabled){return;};if(this.autoRefreshCount>=this.autoRefreshMaxCount){return;};this.$3L();var $2J=this.autoRefreshInterval;if(!$2J||$2J<10){throw "The minimum autoRefreshInterval is 10 seconds";};this.autoRefreshTimeout=window.setTimeout(function(){$c.$5S();},this.autoRefreshInterval*1000);};this.$3L=function(){if(this.autoRefreshTimeout){window.clearTimeout(this.autoRefreshTimeout);}};this.$5S=function(){if(!DayPilot.Global.resizing&&!DayPilot.Global.moving&&!DayPilotCalendar.drag&&!DayPilotCalendar.selecting){this.autoRefreshCount++;this.commandCallBack(this.autoRefreshCommand);};if(this.autoRefreshCount$O){$2n=$O-$L;};DayPilotCalendar.movingShadow.style.top=$2n+'px';var $I=$H.clientWidth/$H.rows[0].cells.length;var $r=Math.floor($2p.x/$I);if($r<0){$r=0;};var $0Y=$c.nav.events;if($r<$0Y.rows[0].cells.length&&$r>=0&&DayPilotCalendar.movingShadow.column!==$r){DayPilotCalendar.movingShadow.column=$r;DayPilotCalendar.moveShadow($0Y.rows[0].cells[$r]);}};this.$5m.onEventTouchStart=function(ev){if($2M.active){return;};$2M.preventEventTap=false;var $d=this;var x=ev.touches[0].pageX;var y=ev.touches[0].pageY;var $2p={x:x,y:y,$d:this};var $2N=DayPilot.abs($c.nav.scrollable);$c.coords={x:x-$2N.x,y:y-$2N.y};var $2P=500;$2M.timeout=window.setTimeout(function(){$2M.active=true;$2M.startMoving($d,$2p);},$2P);};this.$5m.onMainTouchMove=function(ev){if($2M.timeout){window.clearTimeout($c.$5m.timeout);};if(DayPilot.Global.moving){ev.preventDefault();var x=ev.touches[0].pageX;var y=ev.touches[0].pageY;var $2N=DayPilot.abs($c.nav.main);var $2p={x:x-$2N.x,y:y-$2N.y};$2M.updateMoving($2p);return;};$2M.preventEventTap=true;};this.$5m.onMainTouchEnd=function(ev){if(DayPilot.Global.moving){$2M.active=false;ev.preventDefault();var top=DayPilotCalendar.movingShadow.offsetTop;DayPilotCalendar.deleteShadow(DayPilotCalendar.movingShadow);var $2Q=DayPilot.Global.moving.event;var $0o=DayPilotCalendar.movingShadow.column;DayPilot.Global.moving=null;DayPilotCalendar.movingShadow=null;$2Q.calendar.$4E($2Q,$0o,top);}};this.$5m.onEventTouchMove=function(ev){$2M.preventEventTap=true;};this.$5m.onEventTouchEnd=function(ev){if(!$2M.active){if($2M.preventEventTap){return;};ev.preventDefault();$c.$4s(this,false);return;};$2M.active=false;if($2M.timeout){window.clearTimeout($c.$5m.timeout);return;}};this.$5j=function(ev){var $2R=5;var $2S=Math.max($c.durationBarWidth,10);var w=5;var $1k=($c.moveBy==='Top');if(typeof(DayPilotCalendar)==='undefined'){return;};var $0N=DayPilot.mo3(this,ev);if(!$0N){return;};var $d=this;if(!$d.active){if($c.cssOnly){DayPilot.Util.addClass($d,$c.$4i("_event_hover"));};DayPilot.Areas.showAreas($d,this.event);};if(DayPilot.Global.resizing||DayPilot.Global.moving){return;};var $2T=this.isFirst;var $2U=this.isLast;if($c.moveBy==="Disabled"||$c.moveBy==="None"){return;};if(!$1k&&$0N.x<=$2S&&this.event.client.moveEnabled()){if($2T){this.style.cursor='move';}else{this.style.cursor='not-allowed';}}else if(!$1k&&$0N.y<=$2R&&this.event.client.resizeEnabled()){if($2T){this.style.cursor="n-resize";this.dpBorder='top';}else{this.style.cursor='not-allowed';}}else if($1k&&$0N.y<=$2S&&this.event.client.moveEnabled()){this.style.cursor="move";}else if(this.offsetHeight-$0N.y<=$2R&&this.event.client.resizeEnabled()){if($2U){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 $2V=this.$5V&&$0N.x===this.$5V.x&&$0N.y===this.$5V.y;if(!$2V){this.$5V=$0N;$c.bubble.showEvent(this.event);}}else{}}};this.$5k=function(ev){if($c.cssOnly){DayPilot.Util.removeClass(this,$c.$4i("_event_hover"));};if($c.bubble){$c.bubble.hideOnMouseOut();};DayPilot.Areas.hideAreas(this,ev);};this.$41=function($0Y){if(!$0Y){$0Y=this.events.list;}else{this.events.list=$0Y;};if(!$0Y){return;};this.allDay={};this.allDay.events=[];this.allDay.lines=[];var length=$0Y.length;var $K=this.$4k(true);this.$3B.pixels={};var $2W=[];this.scrollLabels=[];this.minStart=10000;this.maxEnd=0;this.startDate=new DayPilot.Date(this.startDate);for(var i=0;i=$2Z.getTime());}else{$36=!($35<=$2Y.getTime()||$34>=$2Z.getTime());};if($2X){$36=$36&&(e.resource===$1K.id||$1K.id==="*");};if($36){var ep=new DayPilot.Event(e,this);ep.part.start=$2Y.getTime()<$34?$08:$2Y;ep.part.end=$2Z.getTime()>$35?end:$2Z;ep.part.colStart=DayPilot.Date.daysDiff($2Y.d,ep.part.start.d);ep.part.colWidth=DayPilot.Date.daysSpan(ep.part.start.d,ep.part.end.d)+1;if($2X){ep.part.colStart=i;ep.part.colWidth=1;};this.allDay.events.push(ep);if(typeof this.onBeforeEventRender==='function'){ep.cache=this.$3B.events[j];};$2W[j]=true;if($2X&&(ep.part.start.getTime()!==$34||ep.part.end.getTime()!==$35)){$2W[j]=false;}};continue;};var $36=false;if($2X){$36=($1K.id===e.resource)&&!($35<=$31||$34>=$33);}else{$36=!($35<=$31||$34>=$33)||($35===$34&&$34===$31);};if($36){var ep=new DayPilot.Event(e,$c);ep.part.dayIndex=i;ep.part.start=$31<$34?$08:$30;ep.part.end=$33>$35?end:$32;var $37=this.$5W(ep.part.start,$1K.start);var $38=this.$5W(ep.part.end,$1K.start);var top=$37.top;var $15=$38.top;if(top===$15&&($37.cut||$38.cut)){continue;};ep.part.box=$0d.useBox($35-$34);var $J=0;if(ep.part.box){var $39=$38.boxBottom;ep.part.top=Math.floor(top/this.cellHeight)*this.cellHeight+$J;ep.part.height=Math.max(Math.ceil($39/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($15-top-2,1);}else{ep.part.top=top+$J;ep.part.height=Math.max($15-top,0);ep.part.barTop=0;ep.part.barHeight=Math.max($15-top-2,1);};var $08=ep.part.top;var end=ep.part.top+ep.part.height;if($08>scroll.maxStart){scroll.maxStart=$08;};if(endthis.maxEnd){this.maxEnd=end;};$1K.events.push(ep);if(typeof this.onBeforeEventRender==='function'){ep.cache=this.$3B.events[j];};if(ep.part.start.getTime()===$34&&ep.part.end.getTime()===$35){$2W[j]=true;}}}};for(var i=0;ie.part.colStart+e.part.colWidth-1)){return false;}};return true;};$1i.push(ep);this.lines.push($1i);return this.lines.length-1;};for(var i=0;i0){this.nav.scroll.style.height=sh+"px";this.scrollHeight=$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.$5p()+"px";}};this.setHeight=function($1x){if(this.heightSpec!=="Parent100Pct"){this.heightSpec="Fixed";};if(this.cssOnly){this.height=$1x-(this.$4o());}else{this.height=$1x-(this.$4o()+3);};this.$49();};this.$64=function($3s){var $d=document.createElement("div");$d.style.position="absolute";$d.style.top="-2000px";$d.style.left="-2000px";$d.className=this.$4i($3s);document.body.appendChild($d);var $L=$d.offsetHeight;var $1g=$d.offsetWidth;document.body.removeChild($d);var $v={};$v.height=$L;$v.width=$1g;return $v;};this.$5h={};var $0d=this.$5h;$0d.locale=function(){return DayPilot.Locale.find($c.locale);};$0d.weekStarts=function(){if(typeof $c.weekStarts!=='undefined'){return $c.weekStarts;}else{return $0d.locale().weekStarts;}};$0d.timeFormat=function(){if($c.timeFormat!=='Auto'){return $c.timeFormat;};return this.locale().timeFormat;};$0d.useBox=function($3t){if($c.useEventBoxes==='Always'){return true;};if($c.useEventBoxes==='Never'){return false;};return $3t<$c.cellDuration*60*1000;};$0d.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;};$0d.allDayEventHeight=function(){if($c.$3B.allDayEventHeight){return $c.$3B.allDayEventHeight;};var $L=$c.$64("_alldayevent_height").height;if(!$L){$L=$c.allDayEventHeight;};$c.$3B.allDayEventHeight=$L;return $L;};$0d.allDayHeaderHeight=function(){if($c.$3B.allDayHeaderHeight){return $c.$3B.allDayHeaderHeight;};$L=$c.allDayHeaderHeight;$c.$3B.allDayHeaderHeight=$L;return $L;};$0d.headerHeight=function(){if($c.$3B.headerHeight){return $c.$3B.headerHeight;};var $L=$c.$64("_header_height").height;if(!$L){$L=$c.headerHeight;};$c.$3B.headerHeight=$L;return $L;};this.$65=function(){if(this.backendUrl||typeof WebForm_DoCallback==='function'){return(typeof $c.events.list==='undefined')||(!$c.events.list);}else{return false;}};this.$66=function(){this.$61();this.$3Z();this.$5r();this.$43();this.$44();this.$47();this.$4a();this.$5R();this.$5T();this.$3Q();DayPilotCalendar.register(this);this.$3P();this.$4f();this.$3G('Init');};this.init=function(){this.nav.top=document.getElementById(id);if(!this.nav.top){throw "DayPilot.Calendar.init(): The placeholder element not found: '"+id+"'.";};if(this.nav.top.dp){return;};var $3u=this.$65();if($3u){this.$66();this.initialized=true;return;};this.$61();this.$3Z();this.$40();if(this.events.list){this.$41();};this.$5r();this.$43();this.$44();this.$47();this.$4b();this.$4a();this.$5R();this.$5T();this.$3Q();DayPilotCalendar.register(this);if(this.events.list){this.$42();this.$4c();this.$4d();};this.$3P();if(this.messageHTML){this.message(this.messageHTML);};this.$3X(null,false);this.$4f();this.initialized=true;};this.internal={};this.internal.invokeEvent=this.$4B;this.internal.eventMenuClick=this.$4I;this.internal.timeRangeMenuClick=this.$4J;this.internal.bubbleCallBack=this.$4G;this.internal.findEventDiv=this.$60;this.internal.eventDeleteDispatch=this.$4A;this.Init=this.init;};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$s-$q&&$s!==0){var $t=DayPilotMenu.mouse.clientY-($s-$q)+5;$f.style.top=(y-$t)+'px';}else{$f.style.top=y+'px';};var $u=document.documentElement.clientWidth;if(DayPilotMenu.mouse.clientX>$u-$r&&$u!==0){var $v=DayPilotMenu.mouse.clientX-($u-$r)+5;$f.style.left=(x-$v)+'px';}else{$f.style.left=x+'px';}}else{var $w=DayPilot.abs(this.ref);var $q=this.ref.offsetHeight;$f.style.left=$w.x+"px";$f.style.top=($w.y+$q)+"px";};$f.style.display='';this.addShadow($f);this.div=$f;if(!$d){DayPilot.Menu.active=this;};return;};this.applyCssClass=function($x){var $y=this.theme||this.cssClassPrefix;var $z=(this.cssOnly?"_":"");if($y){return $y+$z+$x;}else{return "";}};this.cloneOptions=function(){var $p={};var $A=['cssOnly','cssClassPrefix','useShadow','zIndex'];for(var i=0;i<$A.length;i++){var p=$A[i];$p[p]=this[p];};return $p;};this.hide=function(){if(this.submenu){this.submenu.menu.hide();};this.removeShadow();if(this.div&&this.div.parentNode===document.body){document.body.removeChild(this.div);}};this.init=function(ev){DayPilotMenu.mouseMove(ev);};this.addShadow=function($B){if(!this.useShadow||this.cssOnly){return;};if(!$B){return;};if(this.shadows&&this.shadows.length>0){this.removeShadow();};this.shadows=[];for(var i=0;i<5;i++){var $C=document.createElement('div');$C.style.position='absolute';$C.style.width=$B.offsetWidth+'px';$C.style.height=$B.offsetHeight+'px';$C.style.top=$B.offsetTop+i+'px';$C.style.left=$B.offsetLeft+i+'px';$C.style.zIndex=this.zIndex;$C.style.filter='alpha(opacity:10)';$C.style.opacity=0.1;$C.style.backgroundColor='#000000';document.body.appendChild($C);this.shadows.push($C);}};this.removeShadow=function(){if(!this.shadows){return;};for(var i=0;i0){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;};var $e=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("MSIE")!==-1);DayPilot.Modal=function(){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;var $f=this;this.id='_'+new Date().getTime()+'n'+(Math.random()*10);this.registered=false;this.start=null;this.coords=null;this.showHtml=function($g){if(DayPilot.ModalStatic.displayed(this)){throw "This modal dialog is already displayed.";};if(!this.div){this.create();};this.update();if(this.useIframe){var $h=function(p,$i){return function(){p.setInnerHTML(p.id+"iframe",$i);};};window.setTimeout($h(this,$g),0);}else{this.div.innerHTML=$g;};this.update();this.register();};this.rounded=function(){return this.corners&&this.corners.toLowerCase()==='rounded';};this.showUrl=function($j){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=$j;this.update();this.register();};this.update=function(){var $k=window;var $l=document;var scrollY=$k.pageYOffset?$k.pageYOffset:(($l.documentElement&&$l.documentElement.scrollTop)?$l.documentElement.scrollTop:$l.body.scrollTop);var $m=function(){return $f.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(){$f.hideDiv.onclick=function(){$f.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(){$f.iframe.contentWindow.modal=$f;if($f.autoStretch){$f.stretch();}};this.stretch=function(){var $m=function(){return $f.windowRect().y;};var $n=this.maxHeight||$m()-2*this.top;for(var h=this.height;h<$n&&this.hasScrollbar();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.hasScrollbar=function(){var document=this.iframe.contentWindow.document;var $o=document.compatMode==='BackCompat'?document.body:document.documentElement;var $p=$o.scrollHeight>$o.clientHeight;var $q=$o.scrollWidth>$o.clientWidth;return $p;};this.windowRect=function(){var $l=document;if($l.compatMode==="CSS1Compat"&&$l.documentElement&&$l.documentElement.clientWidth){var x=$l.documentElement.clientWidth;var y=$l.documentElement.clientHeight;return{x:x,y:y};}else{var x=$l.body.clientWidth;var y=$l.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(!$f.coords){return;};var e=e||window.event;var $r=$f.mc(e);var x=$r.x-$f.coords.x;var y=$r.y-$f.coords.y;$f.div.style.marginLeft='0px';$f.div.style.top=($f.start.y+y)+"px";$f.div.style.left=($f.start.x+x)+"px";};this.drop=function(e){if(!$f.coords){return;};$f.unmaskIframe();$f.coords=null;};this.maskIframe=function(){if(!this.useIframe){return;};var $s=80;var $t=document.createElement("div");$t.style.backgroundColor="#ffffff";$t.style.filter="alpha(opacity="+$s+")";$t.style.opacity="0."+$s;$t.style.width="100%";$t.style.height=this.height+"px";$t.style.position="absolute";$t.style.left='0px';$t.style.top='0px';this.div.appendChild($t);this.mask=$t;};this.unmaskIframe=function(){if(!this.useIframe){return;};this.div.removeChild(this.mask);this.mask=null;};this.resize=function(){if(!$f.hideDiv){return;};if(!$f.div){return;};if($f.hideDiv.style.display==='none'){return;};if($f.div.style.display==='none'){return;};var scrollY=window.pageYOffset?window.pageYOffset:((document.documentElement&&document.documentElement.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop);if(!$f.scrollWithPage){$f.div.style.top=(scrollY+$f.top)+'px';}};this.re=function(el,ev,$u){if(el.addEventListener){el.addEventListener(ev,$u,false);}else if(el.attachEvent){el.attachEvent("on"+ev,$u);}};this.ue=function(el,ev,$u){if(el.removeEventListener){el.removeEventListener(ev,$u,false);}else if(el.detachEvent){el.detachEvent("on"+ev,$u);}};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 $v=document.createElement("div");$v.id=this.id+"hide";$v.style.position='fixed';$v.style.left="0px";$v.style.top="0px";$v.style.right="0px";$v.style.bottom="0px";$v.style.backgroundColor="black";$v.style.opacity=0.50;$v.oncontextmenu=function(){return false;};document.body.appendChild($v);var $w=document.createElement("div");$w.id=this.id+'popup';$w.style.position='fixed';$w.style.left='50%';$w.style.top='0px';$w.style.backgroundColor='white';$w.style.width="50px";$w.style.height="50px";if(this.dragDrop){$w.onmousedown=this.dragStart;};var $x=50;var $y=null;if(this.useIframe){$y=document.createElement("iframe");$y.id=this.id+"iframe";$y.name=this.id+"iframe";$y.frameBorder='0';$y.style.width='100%';$y.style.height=$x+'px';$w.appendChild($y);};document.body.appendChild($w);this.div=$w;this.iframe=$y;this.hideDiv=$v;};this.dragStart=function(e){$f.maskIframe();$f.coords=$f.mc(e||window.event);$f.start={x:$f.div.offsetLeft,y:$f.div.offsetTop};};this.setInnerHTML=function(id,$i){var $z=window.frames[id];var $l=$z.contentWindow||$z.document||$z.contentDocument;if($l.document){$l=$l.document;};$l.body.innerHTML=$i;};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.closed){this.closed();}};};})(); 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;};(function(){if(DayPilot.Global.defaultMonthCss){return;};var $b=DayPilot.sheet();$b.add(".month_default_main","border: 1px solid #aaa;font-family: Tahoma, Arial, sans-serif; font-size: 12px;color: #666;");$b.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;");$b.add(".month_default_cell_business .month_default_cell_inner","background-color: #fff;");$b.add(".month_default_cell_header","text-align: right;padding-right: 2px;");$b.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;');$b.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");');$b.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;');$b.add(".month_default_event_continueright .month_default_event_inner","border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;");$b.add(".month_default_event_continueleft .month_default_event_inner","border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;");$b.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");');$b.add(".month_default_selected .month_default_event_inner, .month_default_event_hover.month_default_selected .month_default_event_inner","background: #ddd;");$b.add(".month_default_shadow_inner","background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;");$b.commit();DayPilot.Global.defaultMonthCss=true;})();var DayPilotMonth={};DayPilot.Month=function($c){this.v='791';this.nav={};this.nav.top=document.getElementById($c);var $d=this;this.id=$c;this.isMonth=true;this.api=2;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=1;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.eventMoveToPosition=false;this.eventTextLayer='Top';this.eventStartTime=true;this.eventEndTime=true;this.eventTextAlignment='Center';this.eventTextLeftIndent=20;this.showWeekend=true;this.cellMode=false;this.shadowType="Fill";this.eventTimeFontColor='gray';this.eventTimeFontFamily='Tahoma';this.eventTimeFontSize='8pt';this.viewType='Month';this.weeks=1;this.eventClickHandling='Enabled';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.$1I={};this.$1I.events={};this.events={};this.autoRefreshCount=0;this.$1J=function($e,$f){var $e=eval("("+$e+")");if($e.BubbleGuid){var $g=$e.BubbleGuid;var $h=this.bubbles[$g];delete this.bubbles[$g];$d.$1K();if(typeof $e.Result.BubbleHTML!=='undefined'){$h.updateView($e.Result.BubbleHTML,$h);};return;};if($e.CallBackRedirect){document.location.href=$e.CallBackRedirect;return;};if(typeof $e.ClientState!=='undefined'){$d.clientState=$e.ClientState;};if($e.UpdateType==="None"){$d.$1L($e.CallBackData,true);if($e.Message){$d.message($e.Message);};return;};if($e.VsUpdate){var $i=document.createElement("input");$i.type='hidden';$i.name=$d.id+"_vsupdate";$i.id=$i.name;$i.value=$e.VsUpdate;$d.vsph.innerHTML='';$d.vsph.appendChild($i);};$d.events.list=$e.Events;if(typeof $e.TagFields!=='undefined'){$d.tagFields=$e.TagFields;};if(typeof $e.SortDirections!=='undefined'){$d.sortDirections=$e.SortDirections;};if($e.UpdateType==="Full"){$d.cellProperties=$e.CellProperties;$d.headerProperties=$e.HeaderProperties;$d.startDate=$e.StartDate;if(typeof $e.ShowWeekend!=='undefined'){$d.showWeekend=$e.ShowWeekend;};$d.headerBackColor=$e.HeaderBackColor?$e.HeaderBackColor:$d.headerBackColor;$d.backColor=$e.BackColor?$e.BackColor:$d.backColor;$d.nonBusinessBackColor=$e.NonBusinessBackColor?$e.NonBusinessBackColor:$d.nonBusinessBackColor;$d.locale=$e.Locale?$e.Locale:$d.locale;$d.timeFormat=$e.TimeFormat?$e.TimeFormat:$d.timeFormat;if(typeof $e.WeekStarts!=='undefined'){$d.weekStarts=$e.WeekStarts;};$d.hashes=$e.Hashes;};$d.multiselect.clear(true);$d.multiselect.initList=$e.SelectedEvents;$d.$1M();$d.$1N();$d.$1O();if($e.UpdateType==="Full"){$d.$1P();$d.$1Q();};$d.$1R();$d.$1S();$d.$1T();$d.$1L($e.CallBackData,true);$d.$1U();if($e.Message){$d.message($e.Message);}};this.$1L=function($j,$k){var $l=function($j,$m){return function(){if($d.$1V()){if(typeof $d.onAfterRender==='function'){var $n={};$n.isCallBack=$m;$n.data=$j;$d.onAfterRender($n);}}else{if($d.afterRender){$d.afterRender($j,$m);}}};};window.setTimeout($l($j,$k),0);};this.$1V=function(){return $d.api===2;};this.$1W=function($o){var $p=this.theme||this.cssClassPrefix;if($p){return $p+$o;}else{return "";}};this.$1O=function(){if(!this.events.list){return;};if(typeof this.onBeforeEventRender==='function'){var length=this.events.list.length;for(var i=0;ie.end.getTime()){continue;};for(var i=0;ie.end.getTime()){continue;};for(var x=0;x=$t.start.getTime()&&e.start.getTime()<$t.end.getTime()){var ep=new DayPilot.Event(e,$d);$t.events.push(ep);if(typeof this.onBeforeEventRender==='function'){ep.cache=this.$1I.events[i];}}}}};for(var x=0;x=7){y--;$G-=7;};if($G>x){var $H=7-this.$21();if($G>(x+$H)){y--;x=x+7-$G;}else{$E=$E-$G+x;x=0;}}else{x-=$G;};if(y<0){y=0;x=0;};var $I=null;if(DayPilotMonth.resizingEvent){$I='w-resize';}else if(DayPilotMonth.movingEvent){$I="move";};this.nav.top.style.cursor=$I;while($E>0&&y");$M.push(DayPilot.Date.hours(ep.start().d,$d.timeFormat==='Clock12Hours'));$M.push("");};if($X){$M.push("
");$M.push(DayPilot.Date.hours(ep.end().d,$d.timeFormat==='Clock12Hours'));$M.push("
");};$M.push("
");if(ep.client.innerHTML()){$M.push(ep.client.innerHTML());}else{$M.push(ep.text());};$M.push("
");}else{if($W){if($Y==='Left'){$M.push("
");if(ep.part.startsHere){$M.push(DayPilot.Date.hours(ep.start().d,$d.timeFormat==='Clock12Hours'));}else{$M.push("~");};$M.push("
");};if($X){$M.push("
");if(ep.part.endsHere){$M.push(DayPilot.Date.hours(ep.end().d,$d.timeFormat==='Clock12Hours'));}else{$M.push("~");};$M.push("
");};if($Y==='Left'){var $S=$W?$Z:0;$M.push("
");if(ep.client.innerHTML()){$M.push(ep.client.innerHTML());}else{$M.push(ep.text());};$M.push("
");}else if($Y==='Center'){if($V){$M.push("
");$M.push("");if(ep.client.innerHTML()){$M.push(ep.client.innerHTML());}else{$M.push(ep.text());};$M.push("");$M.push("
");}else{$M.push("
");if(ep.client.innerHTML()){$M.push(ep.client.innerHTML());}else{$M.push(ep.text());};$M.push("
");}}};$U.innerHTML=$M.join('');e.appendChild($U);}else{if(!ep.part.startsHere){DayPilot.Util.addClass(e,this.$1W("_event_continueleft"));};if(!ep.part.endsHere){DayPilot.Util.addClass(e,this.$1W("_event_continueright"));};var $U=document.createElement("div");$U.setAttribute("unselectable","on");$U.className=this.$1W("_event_inner");if(ep.client.innerHTML()){$U.innerHTML=ep.client.innerHTML();}else{$U.innerHTML=ep.text();};if($P.backColor){$U.style.background=$P.backColor;};e.appendChild($U);};if($P.areas){var $01=$P.areas;for(var i=0;i<$01.length;i++){var $02=$01[i];if($02.v!=='Visible'){continue;};var a=DayPilot.Areas.createArea(e,ep,$02);e.appendChild(a);}};this.elements.events.push(e);if($R){this.cells[$r][$q].body.appendChild(e);}else{this.nav.events.appendChild(e);};if($d.multiselect.$2j(e.event)){$d.multiselect.add(e.event,true);};var $u=e;if($d.$1V()){if(typeof $d.onAfterEventRender==='function'){var $n={};$n.e=$u.event;$n.div=$u;$d.onAfterEventRender($n);}}else{if($d.afterEventRender){$d.afterEventRender($u.event,$u);}}};this.$2d=function(ev){if($T.start){return;};$d.$2k(this,ev);};this.$2e=function(ev){$d.$2l(this,ev);};this.$2h=function(ev){var e=this;var ep=e.event;if(typeof(DayPilotMonth)==='undefined'){return;};if(DayPilotMonth.movingEvent||DayPilotMonth.resizingEvent){return;};var $D=DayPilot.mo3(e,ev);if(!$D){return;};DayPilot.Areas.showAreas(e,e.event);if($d.cssOnly){$d.$2m(e.event).each(function($u){DayPilot.Util.addClass($u,$d.$1W("_event_hover"));});};var $03=6;if(!$d.cellMode&&$D.x<=$03&&ep.client.resizeEnabled()){if(ep.part.startsHere){e.style.cursor="w-resize";e.dpBorder='left';}else{e.style.cursor='not-allowed';}}else if(!$d.cellMode&&e.clientWidth-$D.x<=$03&&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'&&$d.bubble&&$d.eventHoverHandling!=='Disabled'){if(!DayPilotMonth.movingEvent&&!DayPilotMonth.resizingEvent){var $04=this.$2n&&$D.x===this.$2n.x&&$D.y===this.$2n.y;if(!$04){this.$2n=$D;$d.bubble.showEvent(e.event);}}else{DayPilotBubble.hideActive();}}};this.$2i=function(ev){var e=this;if(typeof(DayPilotBubble)!=='undefined'&&$d.bubble){$d.bubble.hideOnMouseOut();};e.style.cursor='';if($d.cssOnly){$d.$2m(e.event).each(function($u){DayPilot.Util.removeClass($u,$d.$1W("_event_hover"));});};DayPilot.Areas.hideAreas(e,ev);};this.$2f=function(){var e=this;$d.$2o(e.event);return false;};this.$2g=function(ev){if($T.start){return;};var e=this;var ep=e.event;var $q=ep.part.row;var $r=ep.part.colStart;var $v=ep.part.line;var $s=ep.part.colWidth;ev=ev||window.event;var $05=ev.which||ev.button;ev.cancelBubble=true;if(ev.stopPropagation){ev.stopPropagation();};if($05===1){if(typeof(DayPilotBubble)!=='undefined'&&$d.bubble){DayPilotBubble.hideActive();};DayPilotMonth.movingEvent=null;if(this.style.cursor==='w-resize'||this.style.cursor==='e-resize'){var $06={};$06.start={};$06.start.x=$r;$06.start.y=$q;$06.event=e.event;$06.width=DayPilot.Date.daysSpan($06.event.start().d,$06.event.end().d)+1;$06.direction=this.style.cursor;DayPilotMonth.resizingEvent=$06;}else if(this.style.cursor==='move'||ep.client.moveEnabled()){$d.$2b();var $07=DayPilot.mo3($d.nav.events,ev);if(!$07){return;};var $t=$d.$2p($07.x,$07.y);if(!$t){return;};var $F=DayPilot.Date.daysDiff(ep.start(),$d.rows[$q].start);var $D=($t.y*7+$t.x)-($q*7+$r);if($F){$D+=$F;};var $08={};$08.start={};$08.start.x=$r;$08.start.y=$q;$08.start.line=$v;$08.offset=$d.eventMoveToPosition?0:$D;$08.colWidth=$s;$08.event=e.event;$08.coords=$07;DayPilotMonth.movingEvent=$08;}}};this.temp={};this.temp.getPosition=function(){if(!$d.coords){return null;};var $t=$d.$2p($d.coords.x,$d.coords.y);if(!$t){return null;};var d=new DayPilot.Date($d.$2c($t.x,$t.y));var $t={};$t.start=d;$t.end=d.addDays(1);return $t;};this.$2q={};var $T=$d.$2q;$T.active=false;$T.start=false;$T.timeouts=[];$T.onEventTouchStart=function(ev){if($T.active||$T.start){return;};$T.clearTimeouts();$T.start=true;$T.active=false;var $u=this;var $09=500;$T.timeouts.push(window.setTimeout(function(){$T.active=true;$T.start=false;var $07=$T.relativeCoords(ev);$T.startMoving($u,$07);ev.preventDefault();},$09));ev.stopPropagation();};$T.onEventTouchMove=function(ev){$T.clearTimeouts();$T.start=false;};$T.onEventTouchEnd=function(ev){$T.clearTimeouts();if($T.start){$d.$2r(this,false);};window.setTimeout(function(){$T.start=false;$T.active=false;},500);};$T.onMainTouchStart=function(ev){if($T.active||$T.start){return;};$T.clearTimeouts();$T.start=true;$T.active=false;var $09=500;$T.timeouts.push(window.setTimeout(function(){$T.active=true;$T.start=false;ev.preventDefault();var $07=$T.relativeCoords(ev);$T.startRange($07);},$09));};$T.onMainTouchMove=function(ev){$T.clearTimeouts();$T.start=false;if($T.active){ev.preventDefault();var $07=$T.relativeCoords(ev);if($T.moving){$T.updateMoving($07);return;};if($T.range){$T.updateRange($07);}}};$T.onMainTouchEnd=function(ev){$T.clearTimeouts();if($T.active){if($T.moving){var $0a=$T.moving;var e=$T.moving.event;var $0b=$d.shadow.start;var $0c=$d.shadow.position;var $D=$T.moving.offset;$d.$2b();$T.moving=null;$d.$2s(e,$0b.x,$0b.y,$D,ev,$0c);};if($T.range){var $0d=$T.range;var $0b=new DayPilot.Date($d.$2c($0d.from.x,$0d.from.y));var end=$0b.addDays($0d.width);$T.range=null;$d.$2t($0b,end);}};window.setTimeout(function(){$T.start=false;$T.active=false;},500);};$T.clearTimeouts=function(){for(var i=0;i<$T.timeouts.length;i++){clearTimeout($T.timeouts[i]);};$T.timeouts=[];};$T.relativeCoords=function(ev){var $N=$d.nav.events;var x=ev.touches[0].pageX;var y=ev.touches[0].pageY;var $07={x:x,y:y};var $0e=DayPilot.abs($N);var $07={x:x-$0e.x,y:y-$0e.y,toString:function(){return "x: "+this.x+", y:"+this.y;}};return $07;};$T.startMoving=function($u,$07){$d.$2b();ep=$u.event;var $t=$d.$2p($07.x,$07.y);if(!$t){return;};var $F=DayPilot.Date.daysDiff(ep.start(),$d.rows[ep.part.row].start);var $D=($t.y*7+$t.x)-(ep.part.row*7+ep.part.colStart);if($F){$D+=$F;};var $08={};$08.start={};$08.start.x=ep.part.colStart;$08.start.y=ep.part.row;$08.start.line=ep.part.line;$08.offset=$d.eventMoveToPosition?0:$D;$08.colWidth=ep.part.colWidth;$08.event=ep;$08.coords=$07;$T.moving=$08;$T.updateMoving($07);};$T.updateMoving=function($07){var $t=$d.$2p($07.x,$07.y);if(!$t){return;};var $0f=$d.$2u($t);$d.$2b();var event=$T.moving.event;var $D=$T.moving.offset;var $C=$d.cellMode?1:DayPilot.Date.daysSpan(event.start().d,event.end().d)+1;if($C<1){$C=1;};$d.$27($t.x,$t.y,$0f,$C,$D,event);};$T.startRange=function($07){var $t=$d.$2p($07.x,$07.y);if(!$t){return;};$d.$2b();var $0g={};$0g.start={};$0g.start.x=$t.x;$0g.start.y=$t.y;$0g.x=$t.x;$0g.y=$t.y;$0g.width=1;$T.range=$0g;$T.updateRange($07);};$T.updateRange=function($07){var $t=$d.$2p($07.x,$07.y);if(!$t){return;};$d.$2b();var $0b=$T.range.start;var $0h=$0b.y*7+$0b.x;var $0i=$t.y*7+$t.x;var $C=Math.abs($0i-$0h)+1;if($C<1){$C=1;};var $0j=$0h<$0i?$0b:$t;$T.range.width=$C;$T.range.from={x:$0j.x,y:$0j.y};$d.$27($0j.x,$0j.y,0,$C,0,null);};this.isWeekend=function($0k){var $0l=0;var $0m=6;if($0k.dayOfWeek()===$0l){return true;};if($0k.dayOfWeek()===$0m){return true;};return false;};this.$2v=function(){var $0n=this.startDate.lastDayOfMonth();if(this.showWeekend){return $0n;}while(this.isWeekend($0n)){$0n=$0n.addDays(-1);};return $0n;};this.$1N=function(){if(typeof this.startDate==='string'){this.startDate=DayPilot.Date.fromStringSortable(this.startDate);};if(this.viewType==='Month'){this.startDate=this.startDate.firstDayOfMonth();}else{this.startDate=this.startDate.getDatePart();};this.firstDate=this.startDate.firstDayOfWeek($O.getWeekStart());if(!this.showWeekend){var $0o=this.startDate.addMonths(-1).getMonth();var $0p=new DayPilot.Date(this.firstDate).addDays(6);while(this.isWeekend($0p)){$0p=$0p.addDays(-1);};if($0p.getMonth()===$0o){this.firstDate=DayPilot.Date.addDays(this.firstDate,7);}};var $0q=this.startDate;var $0r;if(this.viewType==='Month'){var $0s=this.$2v().d;var $0t=DayPilot.Date.daysDiff(this.firstDate,$0s)+1;$0r=Math.ceil($0t/7);}else{$0r=this.weeks;};this.days=$0r*7;this.rows=[];for(var x=0;x<$0r;x++){var r={};r.start=DayPilot.Date.addDays(this.firstDate,x*7);r.end=DayPilot.Date.addDays(r.start,this.$21());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.Date.max(this.start,ep.start());};r.getPartEnd=function(ep){return DayPilot.Date.min(this.end,ep.end());};r.getStartColumn=function(ep){var $0u=this.getPartStart(ep);return DayPilot.Date.daysDiff(this.start,$0u);};r.getWidth=function(ep){return DayPilot.Date.daysSpan(this.getPartStart(ep),this.getPartEnd(ep))+1;};r.putIntoLine=function(ep,$r,$s,$q){var $0v=this;for(var i=0;iep.part.colStart+ep.part.colWidth-1)){$0w=false;}};return $0w;};$v.addEvent=function(ep,$r,$s,$q,$0x){ep.part.colStart=$r;ep.part.colWidth=$s;ep.part.row=$q;ep.part.line=$0x;ep.part.startsHere=$0v.start.getTime()<=ep.start().getTime();ep.part.endsHere=$0v.end.getTime()>=ep.end().getTime();this.push(ep);};$v.addEvent(ep,$r,$s,$q,this.lines.length);this.lines.push($v);return this.lines.length-1;};r.getStart=function(){var $0b=0;for(var i=0;i<$d.rows.length&&i=7){$t.y++;$C-=7;};$t.x=$C;return $t;};this.$2D=function(){var $C=DayPilot.sw(this.nav.scrollable);this.nav.header.style.marginRight=$C+"px";};this.$1Q=function(){var $0A=this.nav.header;var $0C=this.nav.events;this.cells=[];for(var x=0;x6){$0T-=7;};if(!$0S){var $0S={};$0S.html=$O.locale().dayNames[$0T];if(!this.cssOnly){$0S.backColor=this.headerBackColor;}};if(typeof $d.onBeforeHeaderRender==='function'){var $n={};$n.header={};$n.header.dayOfWeek=$0T;DayPilot.Util.copyProps($0S,$n.header,['html','backColor']);$d.onBeforeHeaderRender($n);DayPilot.Util.copyProps($n.header,$0S,['html','backColor']);};var $0U=document.createElement("div");$0U.setAttribute("unselectable","on");$0U.style.position='absolute';$0U.style.left=(this.$2a()*x)+'%';$0U.style.width=(this.$2a())+'%';$0U.style.top='0px';$0U.style.height=($O.headerHeight())+'px';(function(x){$0U.onclick=function(){$d.$2E(x);};})($0T);var $U=document.createElement("div");$U.setAttribute("unselectable","on");$U.className=this.$1W("_header_inner");$U.innerHTML=$0S.html;$0U.appendChild($U);if(!this.cssOnly){$U.style.position="absolute";$U.style.top="0px";$U.style.bottom="0px";$U.style.left="0px";$U.style.right="0px";$U.style.backgroundColor=$0S.backColor;$U.style.fontFamily=this.headerFontFamily;$U.style.fontSize=this.headerFontSize;$U.style.color=this.headerFontColor;$U.style.textAlign='center';$U.style.cursor='default';$U.className=this.$1W("header");if(x!==this.$21()-1){$U.style.borderRight='1px solid '+this.borderColor;}}else{$0U.className=this.$1W("_header");if($0S&&$0S.backColor){$U.style.background=$0S.backColor;}};$0A.appendChild($0U);for(var y=0;y$C-sw){return;}};if($d.timeRangeSelectedHandling!=='Disabled'){$d.$2b();DayPilotMonth.timeRangeSelecting={"igongo1":$d,"x":x,"y":y,"from":{x:x,y:y},"width":1};}};this.$21=function(){if(this.showWeekend){return 7;}else{return 5;}};this.$2a=function(){if(this.showWeekend){return 14.285;}else{return 20;}};this.$2G=function(d){if(d.getUTCDay()===6||d.getUTCDay()===0){return this.nonBusinessBackColor;};return this.backColor;};this.$28=function($0x){var top=0;for(var i=0;i<$0x;i++){top+=this.rows[i].getHeight();};return top;};this.clearSelection=function(){this.$2b();};this.$2O=function($15,$j,$16){var $17={};$17.action=$15;$17.parameters=$16;$17.data=$j;$17.header=this.$2P();var $18="JSON"+DayPilot.JSON.stringify($17);__doPostBack($d.uniqueID,$18);};this.$2Q=function($15,$16,$j,$19){if(typeof $19==='undefined'){$19="CallBack";};var $17={};$17.action=$15;$17.type=$19;$17.parameters=$16;$17.data=$j;$17.header=this.$2P();var $18="JSON"+DayPilot.JSON.stringify($17);if(this.backendUrl){DayPilot.request(this.backendUrl,this.$2R,$18,this.$2S);}else if(typeof WebForm_DoCallback==='function'){WebForm_DoCallback(this.uniqueID,$18,this.$1J,null,this.callbackError,true);}};this.$2S=function($1a){if(typeof $d.onAjaxError==='function'){var $n={};$n.request=$1a;$d.onAjaxError($n);}else if(typeof $d.ajaxError==='function'){$d.ajaxError($1a);}};this.$2R=function($1b){$d.$1J($1b.responseText);};this.$2P=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=$d.cssOnly;h.cssClassPrefix=$d.cssClassPrefix;h.startDate=$d.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=$d.multiselect.events();h.hashes=$d.hashes;return h;};this.$2T=function($19,$15,$1c,$j){if($19==='PostBack'){$d.postBack2($15,$1c,$j);}else if($19==='CallBack'){$d.$2Q($15,$1c,$j,"CallBack");}else if($19==='Immediate'){$d.$2Q($15,$1c,$j,"Notify");}else if($19==='Queue'){$d.queue.add(new DayPilot.Action(this,$15,$1c,$j));}else if($19==='Notify'){if($O.notifyType()==='Notify'){$d.$2Q($15,$1c,$j,"Notify");}else{$d.queue.add(new DayPilot.Action($d,$15,$1c,$j));}}else{throw "Invalid event invocation type";}};this.$2U=function($n,$h){var $g=$d.$2V($h);var $1c={};$1c.args=$n;$1c.guid=$g;$d.$2Q("Bubble",$1c);};this.$2V=function($h){var $g=DayPilot.guid();if(!this.bubbles){this.bubbles=[];};this.bubbles[$g]=$h;return $g;};this.eventClickPostBack=function(e,$j){this.$2O("EventClick",$j,e);};this.eventClickCallBack=function(e,$j){this.$2Q('EventClick',e,$j);};this.$2k=function($u,e){DayPilotMonth.movingEvent=null;DayPilotMonth.resizingEvent=null;var e=e||window.event;var $1d=e.ctrlKey;e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation();};if(typeof(DayPilotBubble)!=='undefined'){DayPilotBubble.hideActive();};if($d.eventDoubleClickHandling==='Disabled'){$d.$2r($u,$1d);return;};if(!$d.timeouts){$d.timeouts=[];}else{for(var $12 in $d.timeouts){window.clearTimeout($d.timeouts[$12]);};$d.timeouts=[];};var $1e=function($u,$1d){return function(){$d.$2r($u,$1d);};};$d.timeouts.push(window.setTimeout($1e($u,$1d),$d.doubleClickTimeout));};this.$2r=function($u,$1d){var e=$u.event;if(!e.client.clickEnabled()){return;};if($d.$1V()){var $n={};$n.e=e;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $d.onEventClick==='function'){$d.onEventClick($n);if($n.preventDefault.value){return;}};switch($d.eventClickHandling){case 'PostBack':$d.eventClickPostBack(e);break;case 'CallBack':$d.eventClickCallBack(e);break;case 'Select':$d.$2W($u,e,$1d);break;case 'ContextMenu':var $1f=e.client.contextMenu();if($1f){$1f.show(e);}else{if($d.contextMenu){$d.contextMenu.show(e);}};break;case 'Bubble':if($d.bubble){$d.bubble.showEvent(e);};break;};if(typeof $d.onEventClicked==='function'){$d.onEventClicked($n);}}else{switch($d.eventClickHandling){case 'PostBack':$d.eventClickPostBack(e);break;case 'CallBack':$d.eventClickCallBack(e);break;case 'JavaScript':$d.onEventClick(e);break;case 'Select':$d.$2W($u,e,$1d);break;case 'ContextMenu':var $1f=e.client.contextMenu();if($1f){$1f.show(e);}else{if($d.contextMenu){$d.contextMenu.show(e);}};break;case 'Bubble':if($d.bubble){$d.bubble.showEvent(e);};break;}}};this.eventDoubleClickPostBack=function(e,$j){this.$2O('EventDoubleClick',$j,e);};this.eventDoubleClickCallBack=function(e,$j){this.$2Q('EventDoubleClick',e,$j);};this.$2l=function($u,ev){if(typeof(DayPilotBubble)!=='undefined'){DayPilotBubble.hideActive();};if($d.timeouts){for(var $12 in $d.timeouts){window.clearTimeout($d.timeouts[$12]);};$d.timeouts=null;};var ev=ev||window.event;var e=$u.event;if($d.$1V()){var $n={};$n.e=e;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $d.onEventDoubleClick==='function'){$d.onEventDoubleClick($n);if($n.preventDefault.value){return;}};switch($d.eventDoubleClickHandling){case 'PostBack':$d.eventDoubleClickPostBack(e);break;case 'CallBack':$d.eventDoubleClickCallBack(e);break;case 'Select':$d.$2W($u,e,ev.ctrlKey);break;case 'Bubble':if($d.bubble){$d.bubble.showEvent(e);};break;};if(typeof $d.onEventDoubleClicked==='function'){$d.onEventDoubleClicked($n);}}else{switch($d.eventDoubleClickHandling){case 'PostBack':$d.eventDoubleClickPostBack(e);break;case 'CallBack':$d.eventDoubleClickCallBack(e);break;case 'JavaScript':$d.onEventDoubleClick(e);break;case 'Select':$d.$2W($u,e,ev.ctrlKey);break;case 'Bubble':if($d.bubble){$d.bubble.showEvent(e);};break;}}};this.$2W=function($u,e,$1d){$d.$2X($u,e,$1d);};this.eventSelectPostBack=function(e,$1g,$j){var $1c={};$1c.e=e;$1c.change=$1g;this.$2O('EventSelect',$j,$1c);};this.eventSelectCallBack=function(e,$1g,$j){var $1c={};$1c.e=e;$1c.change=$1g;this.$2Q('EventSelect',$1c,$j);};this.$2X=function($u,e,$1d){if($d.$1V()){var m=$d.multiselect;m.previous=m.events();var $n={};$n.e=e;$n.selected=m.isSelected(e);$n.ctrl=$1d;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $d.onEventSelect==='function'){$d.onEventSelect($n);if($n.preventDefault.value){return;}};switch($d.eventSelectHandling){case 'PostBack':$d.eventSelectPostBack(e,$1g);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){__theFormPostData="";__theFormPostCollection=[];WebForm_InitCallback();};$d.eventSelectCallBack(e,$1g);break;case 'Update':m.$2Y($u,$1d);break;};if(typeof $d.onEventSelected==='function'){$n.change=m.isSelected(e)?"selected":"deselected";$n.selected=m.isSelected(e);$d.onEventSelected($n);}}else{var m=$d.multiselect;m.previous=m.events();m.$2Y($u,$1d);var $1g=m.isSelected(e)?"selected":"deselected";switch($d.eventSelectHandling){case 'PostBack':$d.eventSelectPostBack(e,$1g);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){__theFormPostData="";__theFormPostCollection=[];WebForm_InitCallback();};$d.eventSelectCallBack(e,$1g);break;case 'JavaScript':$d.onEventSelect(e,$1g);break;}}};this.eventRightClickPostBack=function(e,$j){this.$2O("EventRightClick",$j,e);};this.eventRightClickCallBack=function(e,$j){this.$2Q('EventRightClick',e,$j);};this.$2o=function(e){this.event=e;if(!e.client.rightClickEnabled()){return false;};if($d.$1V()){var $n={};$n.e=e;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $d.onEventRightClick==='function'){$d.onEventRightClick($n);if($n.preventDefault.value){return;}};switch($d.eventRightClickHandling){case 'PostBack':$d.eventRightClickPostBack(e);break;case 'CallBack':$d.eventRightClickCallBack(e);break;case 'ContextMenu':var $1f=e.client.contextMenu();if($1f){$1f.show(e);}else{if($d.contextMenu){$d.contextMenu.show(this.event);}};break;case 'Bubble':if($d.bubble){$d.bubble.showEvent(e);};break;};if(typeof $d.onEventRightClicked==='function'){$d.onEventRightClicked($n);}}else{switch($d.eventRightClickHandling){case 'PostBack':$d.eventRightClickPostBack(e);break;case 'CallBack':$d.eventRightClickCallBack(e);break;case 'JavaScript':$d.onEventRightClick(e);break;case 'ContextMenu':var $1f=e.client.contextMenu();if($1f){$1f.show(e);}else{if($d.contextMenu){$d.contextMenu.show(this.event);}};break;case 'Bubble':if($d.bubble){$d.bubble.showEvent(e);};break;}};return false;};this.eventMenuClickPostBack=function(e,$1h,$j){var $1c={};$1c.e=e;$1c.command=$1h;this.$2O('EventMenuClick',$j,$1c);};this.eventMenuClickCallBack=function(e,$1h,$j){var $1c={};$1c.e=e;$1c.command=$1h;this.$2Q('EventMenuClick',$1c,$j);};this.$2Z=function($1h,e,$1i){switch($1i){case 'PostBack':$d.eventMenuClickPostBack(e,$1h);break;case 'CallBack':$d.eventMenuClickCallBack(e,$1h);break;}};this.eventMovePostBack=function(e,$1j,$1k,$j,$0c){if(!$1j)throw 'newStart is null';if(!$1k)throw 'newEnd is null';var $1c={};$1c.e=e;$1c.newStart=$1j;$1c.newEnd=$1k;$1c.position=$0c;this.$2O('EventMove',$j,$1c);};this.eventMoveCallBack=function(e,$1j,$1k,$j,$0c){if(!$1j)throw 'newStart is null';if(!$1k)throw 'newEnd is null';var $1c={};$1c.e=e;$1c.newStart=$1j;$1c.newEnd=$1k;$1c.position=$0c;this.$2Q('EventMove',$1c,$j);};this.$2s=function(e,x,y,$D,ev,$0c){var $1l=DayPilot.Date.getTime(e.start().d);var $0E=DayPilot.Date.getDate(e.end().d);if($0E.getTime()!==e.end().d.getTime()){$0E=DayPilot.Date.addDays($0E,1);};var $1m=DayPilot.Date.diff(e.end().d,$0E);var $1n=this.$2c(x,y);$1n=DayPilot.Date.addDays($1n,-$D);var $C=DayPilot.Date.daysSpan(e.start().d,e.end().d)+1;var $1o=DayPilot.Date.addDays($1n,$C);var $1j=new DayPilot.Date(DayPilot.Date.addTime($1n,$1l));var $1k=new DayPilot.Date(DayPilot.Date.addTime($1o,$1m));if($d.$1V()){var $n={};$n.e=e;$n.newStart=$1j;$n.newEnd=$1k;$n.position=$0c;$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 $d.onEventMove==='function'){$d.onEventMove($n);if($n.preventDefault.value){return;}};switch($d.eventMoveHandling){case 'PostBack':$d.eventMovePostBack(e,$1j,$1k,null,$0c);break;case 'CallBack':$d.eventMoveCallBack(e,$1j,$1k,null,$0c);break;case 'Notify':$d.eventMoveNotify(e,$1j,$1k,null,$0c);break;case 'Update':e.start($1j);e.end($1k);$d.events.update(e);break;};if(typeof $d.onEventMoved==='function'){$d.onEventMoved($n);}}else{switch($d.eventMoveHandling){case 'PostBack':$d.eventMovePostBack(e,$1j,$1k,null,$0c);break;case 'CallBack':$d.eventMoveCallBack(e,$1j,$1k,null,$0c);break;case 'JavaScript':$d.onEventMove(e,$1j,$1k,ev.ctrlKey,ev.shiftKey,$0c);break;case 'Notify':$d.eventMoveNotify(e,$1j,$1k,null,$0c);break;}}};this.eventMoveNotify=function(e,$1j,$1k,$j,$v){var $1p=new DayPilot.Event(e.copy(),this);e.start($1j);e.end($1k);e.commit();$d.update();this.$30("Notify",$1p,$1j,$1k,$j,$v);};this.$30=function($19,e,$1j,$1k,$j,$v){var $1c={};$1c.e=e;$1c.newStart=$1j;$1c.newEnd=$1k;$1c.position=$v;this.$2T($19,"EventMove",$1c,$j);};this.eventResizePostBack=function(e,$1j,$1k,$j){if(!$1j)throw 'newStart is null';if(!$1k)throw 'newEnd is null';var $1c={};$1c.e=e;$1c.newStart=$1j;$1c.newEnd=$1k;this.$2O('EventResize',$j,$1c);};this.eventResizeCallBack=function(e,$1j,$1k,$j){if(!$1j)throw 'newStart is null';if(!$1k)throw 'newEnd is null';var $1c={};$1c.e=e;$1c.newStart=$1j;$1c.newEnd=$1k;this.$2Q('EventResize',$1c,$j);};this.$31=function(e,$0b,$C){var $1l=DayPilot.Date.getTime(e.start().d);var $0E=DayPilot.Date.getDate(e.end().d);if(!DayPilot.Date.equals($0E,e.end().d)){$0E=DayPilot.Date.addDays($0E,1);};var $1m=DayPilot.Date.diff(e.end().d,$0E);var $1n=this.$2c($0b.x,$0b.y);var $1o=DayPilot.Date.addDays($1n,$C);var $1j=new DayPilot.Date(DayPilot.Date.addTime($1n,$1l));var $1k=new DayPilot.Date(DayPilot.Date.addTime($1o,$1m));if($d.$1V()){var $n={};$n.e=e;$n.newStart=$1j;$n.newEnd=$1k;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $d.onEventResize==='function'){$d.onEventResize($n);if($n.preventDefault.value){return;}};switch($d.eventResizeHandling){case 'PostBack':$d.eventResizePostBack(e,$1j,$1k);break;case 'CallBack':$d.eventResizeCallBack(e,$1j,$1k);break;case 'Notify':$d.eventResizeNotify(e,$1j,$1k);break;case 'Update':e.start($1j);e.end($1k);$d.events.update(e);break;};if(typeof $d.onEventResized==='function'){$d.onEventResized($n);}}else{switch($d.eventResizeHandling){case 'PostBack':$d.eventResizePostBack(e,$1j,$1k);break;case 'CallBack':$d.eventResizeCallBack(e,$1j,$1k);break;case 'JavaScript':$d.onEventResize(e,$1j,$1k);break;case 'Notify':$d.eventResizeNotify(e,$1j,$1k);break;}}};this.eventResizeNotify=function(e,$1j,$1k,$j){var $1p=new DayPilot.Event(e.copy(),this);e.start($1j);e.end($1k);e.commit();$d.update();this.$32("Notify",$1p,$1j,$1k,$j);};this.$32=function($19,e,$1j,$1k,$j){var $1c={};$1c.e=e;$1c.newStart=$1j;$1c.newEnd=$1k;this.$2T($19,"EventResize",$1c,$j);};this.timeRangeSelectedPostBack=function($0b,end,$j){var $0g={};$0g.start=$0b;$0g.end=end;this.$2O('TimeRangeSelected',$j,$0g);};this.timeRangeSelectedCallBack=function($0b,end,$j){var $0g={};$0g.start=$0b;$0g.end=end;this.$2Q('TimeRangeSelected',$0g,$j);};this.$2t=function($0b,end){if($d.$1V()){var $n={};$n.start=$0b;$n.end=end;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $d.onTimeRangeSelect==='function'){$d.onTimeRangeSelect($n);if($n.preventDefault.value){return;}};switch($d.timeRangeSelectedHandling){case 'PostBack':$d.timeRangeSelectedPostBack($0b,end);$d.clearSelection();break;case 'CallBack':$d.timeRangeSelectedCallBack($0b,end);$d.clearSelection();break;};if(typeof $d.onTimeRangeSelected==='function'){$d.onTimeRangeSelected($n);}}else{switch($d.timeRangeSelectedHandling){case 'PostBack':$d.timeRangeSelectedPostBack($0b,end);$d.clearSelection();break;case 'CallBack':$d.timeRangeSelectedCallBack($0b,end);$d.clearSelection();break;case 'JavaScript':$d.onTimeRangeSelected($0b,end);break;}}};this.timeRangeMenuClickPostBack=function(e,$1h,$j){var $1c={};$1c.selection=e;$1c.command=$1h;this.$2O("TimeRangeMenuClick",$j,$1c);};this.timeRangeMenuClickCallBack=function(e,$1h,$j){var $1c={};$1c.selection=e;$1c.command=$1h;this.$2Q("TimeRangeMenuClick",$1c,$j);};this.$33=function($1h,e,$1i){switch($1i){case 'PostBack':$d.timeRangeMenuClickPostBack(e,$1h);break;case 'CallBack':$d.timeRangeMenuClickCallBack(e,$1h);break;}};this.headerClickPostBack=function(c,$j){this.$2O('HeaderClick',$j,c);};this.headerClickCallBack=function(c,$j){this.$2Q('HeaderClick',c,$j);};this.$2E=function(x){var $j=this.data;var c={$0Z:x};if($d.$1V()){var $n={};$n.header={};$n.header.dayOfWeek=x;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $d.onHeaderClick==='function'){$d.onHeaderClick($n);if($n.preventDefault.value){return;}};switch($d.headerClickHandling){case 'PostBack':$d.headerClickPostBack(c);break;case 'CallBack':$d.headerClickCallBack(c);break;};if(typeof $d.onHeaderClicked==='function'){$d.onHeaderClicked($n);}}else{switch($d.headerClickHandling){case 'PostBack':$d.headerClickPostBack(c);break;case 'CallBack':$d.headerClickCallBack(c);break;case 'JavaScript':$d.onHeaderClick(c);break;}}};this.timeRangeDoubleClickPostBack=function($0b,end,$j){var $0g={};$0g.start=$0b;$0g.end=end;this.$2O('TimeRangeDoubleClick',$j,$0g);};this.timeRangeDoubleClickCallBack=function($0b,end,$j){var $0g={};$0g.start=$0b;$0g.end=end;this.$2Q('TimeRangeDoubleClick',$0g,$j);};this.$2N=function($0b,end){if($d.$1V()){var $n={};$n.start=$0b;$n.end=end;$n.preventDefault=function(){this.preventDefault.value=true;};if(typeof $d.onTimeRangeDoubleClick==='function'){$d.onTimeRangeDoubleClick($n);if($n.preventDefault.value){return;}};switch($d.timeRangeDoubleClickHandling){case 'PostBack':$d.timeRangeDoubleClickPostBack($0b,end);break;case 'CallBack':$d.timeRangeDoubleClickCallBack($0b,end);break;};if(typeof $d.onTimeRangeDoubleClicked==='function'){$d.onTimeRangeDoubleClicked($n);}}else{switch($d.timeRangeDoubleClickHandling){case 'PostBack':$d.timeRangeDoubleClickPostBack($0b,end);break;case 'CallBack':$d.timeRangeDoubleClickCallBack($0b,end);break;case 'JavaScript':$d.onTimeRangeDoubleClick($0b,end);break;}}};this.commandCallBack=function($1h,$j){this.$34();var $1c={};$1c.command=$1h;this.$2Q('Command',$1c,$j);};this.$35=function(e){for(var i=0;i<$d.elements.events.length;i++){var $u=$d.elements.events[i];if($u.event===e||$u.event.data===e.data){return $u;}};return null;};this.$2m=function(e){var $e={};$e.list=[];$e.each=function(m){if(!m){return;};for(var i=0;i1){m.add($u.event,true);}}}else{m.clear(true);}}else{if($d.allowMultiSelect){if($1s){m.add($u.event,true);}else{m.clear(true);m.add($u.event,true);}}else{m.clear(true);m.add($u.event,true);}};m.redraw();m.$39();};this.multiselect.$2j=function(ev){var m=$d.multiselect;return m.$3a(ev,m.initList);};this.multiselect.$3b=function(){var m=$d.multiselect;var $1t=[];for(var i=0;i=this.autoRefreshMaxCount){return;};this.$34();var $1A=this.autoRefreshInterval;if(!$1A||$1A<10){throw "The minimum autoRefreshInterval is 10 seconds";};this.autoRefreshTimeout=window.setTimeout(function(){$d.$3g();},this.autoRefreshInterval*1000);};this.$34=function(){if(this.autoRefreshTimeout){window.clearTimeout(this.autoRefreshTimeout);}};this.$3g=function(){if(!DayPilotMonth.eventResizing&&!DayPilotMonth.eventMoving&&!DayPilotMonth.timeRangeSelecting){this.autoRefreshCount++;this.commandCallBack(this.autoRefreshCommand);};if(this.autoRefreshCount<";tl.onclick=this.$0i;};$w.appendChild(tl);this.tl=tl;var ti=document.createElement("div");ti.style.position='absolute';ti.style.left=this.cellWidth+'px';ti.style.top='0px';ti.style.width=(this.cellWidth*5+this.$0c())+'px';ti.style.height=this.titleHeight+'px';ti.style.lineHeight=this.titleHeight+'px';ti.style.textAlign='center';ti.setAttribute("unselectable","on");if(this.cssOnly){ti.className=this.$0b('_title');}else{ti.className=this.$0b('title');};ti.innerHTML=$p.locale().monthNames[$k.getMonth()]+' '+$k.getYear();$w.appendChild(ti);this.ti=ti;var tr=document.createElement("div");tr.style.position='absolute';tr.style.left=(this.cellWidth*6+this.$0c())+'px';tr.style.top='0px';tr.style.width=this.cellWidth+'px';tr.style.height=this.titleHeight+'px';tr.style.lineHeight=this.titleHeight+'px';tr.style.textAlign='right';tr.setAttribute("unselectable","on");if(this.cssOnly){tr.className=this.$0b('_titleright');}else{tr.className=this.$0b('titleright');};if($i.right){tr.style.cursor='pointer';tr.innerHTML=">";tr.onclick=this.$0j;};$w.appendChild(tr);this.tr=tr;var $y=this.$0c();if(this.showWeekNumbers){for(var y=0;y<$s;y++){var $z=$o.addDays(y*7);var $A=null;switch(this.weekNumberAlgorithm){case "Auto":$A=($p.weekStarts()===0)?$z.weekNumber():$z.weekNumberISO();break;case "US":$A=$z.weekNumber();break;case "ISO8601":$A=$z.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+$x)+'px';dh.style.width=this.cellWidth+'px';dh.style.height=this.cellHeight+'px';dh.style.lineHeight=this.cellHeight+'px';dh.style.textAlign='right';dh.setAttribute("unselectable","on");if(this.cssOnly){dh.className=this.$0b('_weeknumber');}else{dh.className=this.$0b('weeknumber');};dh.innerHTML=""+$A+"";$w.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*this.cellWidth+$y)+'px';dh.style.top=this.titleHeight+'px';dh.style.width=this.cellWidth+'px';dh.style.height=this.dayHeaderHeight+'px';dh.style.lineHeight=this.dayHeaderHeight+'px';dh.style.textAlign='right';dh.setAttribute("unselectable","on");if(this.cssOnly){dh.className=this.$0b('_dayheader');}else{dh.className=this.$0b('dayheader');};dh.innerHTML=""+this.$0k(x)+"";$w.appendChild(dh);$j.days.push(dh);for(var y=0;y<$s;y++){var $z=$o.addDays(y*7+x);var $B=this.$0l($z)&&this.selectMode!=='none';var $C=$z.getMonth()===$k.getMonth();var $D=$z.getTime()<$k.getTime();var $E=$z.getTime()>$k.getTime();var $F;var dc=document.createElement("div");dc.day=$z;dc.x=x;dc.y=y;dc.isCurrentMonth=$C;if(this.cssOnly){dc.className=this.$0b(($C?'_day':'_dayother'));}else{dc.className=this.$0b(($C?'day':'dayother'));};if($z.getTime()===$t.getTime()&&$C){this.$0f(dc,'today');};if($z.dayOfWeek()===0||$z.dayOfWeek()===6){this.$0f(dc,'weekend');};dc.style.position='absolute';dc.style.left=(x*this.cellWidth+$y)+'px';dc.style.top=(y*this.cellHeight+$x)+'px';dc.style.width=this.cellWidth+'px';dc.style.height=this.cellHeight+'px';dc.style.lineHeight=this.cellHeight+'px';dc.style.textAlign='right';var $G=document.createElement("div");$G.style.position='absolute';if(this.cssOnly){$G.className=($z.getTime()===$t.getTime()&&$C)?this.$0b('_todaybox'):this.$0b('_daybox');}else{$G.className=($z.getTime()===$t.getTime()&&$C)?this.$0b('todaybox'):this.$0b('daybox');};$G.style.left='0px';$G.style.top='0px';$G.style.width=(this.cellWidth-2)+'px';$G.style.height=(this.cellHeight-2)+'px';dc.appendChild($G);var $H=null;if(this.cells&&this.cells[$z.toStringSortable()]){$H=this.cells[$z.toStringSortable()];if($H.css){this.$0f(dc,$H.css);}};var $I=null;if($C||($l&&$D)||($m&&$E)){$I=document.createElement("span");$I.innerHTML=$z.getDay();dc.style.cursor='pointer';dc.isClickable=true;if($B){this.$0f(dc,'select');};if($H&&$H.html){$I.innerHTML=$H.html;};$I.style.marginRight='2px';dc.appendChild($I);};dc.setAttribute("unselectable","on");dc.onclick=this.$0m;dc.onmousedown=this.$0n;dc.onmousemove=this.$0o;if($B){this.selected.push(dc);};$w.appendChild(dc);$j.cells[x][y]=dc;}};var $J=document.createElement("div");$J.style.position='absolute';$J.style.left='0px';$J.style.top=($x-2)+'px';$J.style.width=(this.cellWidth*7+this.$0c())+'px';$J.style.height='1px';$J.style.fontSize='1px';$J.style.lineHeight='1px';if(this.cssOnly){$J.className=this.$0b("_line");}else{$J.className=this.$0b("line");};$w.appendChild($J);this.months.push($j);};this.$0c=function(){if(this.showWeekNumbers){return this.cellWidth;};return 0;};this.$0p=function(){if(!this.items){return;};for(var j=0;jthis.visibleEnd().getTime()){$P=this.selectionStart.firstDayOfMonth();};if($P.toStringSortable()!==this.startDate.toStringSortable()){$O=true;};this.startDate=$P;};this.$0r();this.$0e();this.$0a();this.$0s();this.$0p();this.$0q();if(!$M.equals(this.selectionStart)||!$N.equals(this.selectionEnd)){this.$0t();};if($O){this.$0u();}};this.update=function(){this.$0e();this.$0a();this.$0s();this.$0v();this.$0p();this.$0q();};this.$0w=function($Q,$R,$S){var $T={};$T.action=$Q;$T.parameters=$S;$T.data=$R;$T.header=this.$0x();var $U="JSON"+DayPilot.JSON.stringify($T);var $V=null;if(this.backendUrl){DayPilot.request(this.backendUrl,this.$0y,$U,this.$0z);}else{WebForm_DoCallback(this.uniqueID,$U,this.$0A,$V,this.callbackError,true);}};this.$0z=function($W){if(typeof $c.onAjaxError==='function'){var $X={};$X.request=$W;$c.onAjaxError($X);}else if(typeof $c.ajaxError==='function'){$c.ajaxError($W);}};this.$0y=function($Y){$c.$0A($Y.responseText);};this.$0B=function($Q,$R,$S){var $T={};$T.action=$Q;$T.parameters=$S;$T.data=$R;$T.header=this.$0x();var $U="JSON"+DayPilot.JSON.stringify($T);__doPostBack($c.uniqueID,$U);};this.$0x=function(){var h={};h.v=this.v;h.startDate=this.startDate;h.selectionStart=this.selectionStart;return h;};this.$0C=function($Q,$R){if($Q==='refresh'){this.$0u();}};this.$0k=function(i){var x=i+$p.weekStarts();if(x>6){x-=7;};return $p.locale().dayNamesShort[x];};this.$0l=function($K){if(this.selectionStart===null||this.selectionEnd===null){return false;};if(this.selectionStart.getTime()<=$K.getTime()&&$K.getTime()<=this.selectionEnd.getTime()){return true;};return false;};this.$0n=function(ev){};this.$0o=function(ev){};this.$0m=function(ev){var $j=this.parentNode.month;var x=this.x;var y=this.y;var $z=$j.cells[x][y].day;if(!$j.cells[x][y].isClickable){return;};$c.clearSelection();$c.selectionDay=$z;var $z=$c.selectionDay;switch($c.selectMode){case 'none':$c.selectionStart=$z;$c.selectionEnd=$z;break;case 'day':var s=$j.cells[x][y];$c.$0f(s,'select');$c.selected.push(s);$c.selectionStart=s.day;$c.selectionEnd=s.day;break;case 'week':for(var j=0;j<7;j++){$c.$0f($j.cells[j][y],'select');$c.selected.push($j.cells[j][y]);};$c.selectionStart=$j.cells[0][y].day;$c.selectionEnd=$j.cells[6][y].day;break;case 'month':var $Z=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()===$z.getYear()&&s.day.getMonth()===$z.getMonth()){$c.$0f(s,'select');$c.selected.push(s);if($Z===null){$Z=s.day;};end=s.day;}}};$c.selectionStart=$Z;$c.selectionEnd=end;break;default:throw 'unknown selectMode';};$c.$0q();$c.$0t();};this.$0t=function(){var $Z=$c.selectionStart;var end=$c.selectionEnd.addDays(1);var $r=DayPilot.Date.daysDiff($Z.d,end.d);var $z=$c.selectionDay;if($c.$0d()){var $X={};$X.start=$Z;$X.end=end;$X.day=$z;$X.days=$r;$X.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onTimeRangeSelect==='function'){$c.onTimeRangeSelect($X);if($X.preventDefault.value){return;}};switch($c.timeRangeSelectedHandling){case 'Bind':var $00=eval($c.bound);if($00){var $01={};$01.start=$Z;$01.end=end;$01.days=$r;$01.day=$z;$00.commandCallBack($c.command,$01);};break;case 'None':break;case 'PostBack':$c.timeRangeSelectedPostBack($Z,end,$z);break;};if(typeof $c.onTimeRangeSelected==='function'){$c.onTimeRangeSelected($X);}}else{switch($c.timeRangeSelectedHandling){case 'Bind':var $00=eval($c.bound);if($00){var $01={};$01.start=$Z;$01.end=end;$01.days=$r;$01.day=$z;$00.commandCallBack($c.command,$01);};break;case 'JavaScript':$c.onTimeRangeSelected($Z,end,$z);break;case 'None':break;case 'PostBack':$c.timeRangeSelectedPostBack($Z,end,$z);break;}}};this.timeRangeSelectedPostBack=function($Z,end,$R,$z){var $02={};$02.start=$Z;$02.end=end;$02.day=$z;this.$0B('TimeRangeSelected',$R,$02);};this.$0j=function(ev){$c.$0D($c.skipMonths);};this.$0i=function(ev){$c.$0D(-$c.skipMonths);};this.$0D=function(i){this.startDate=this.startDate.addMonths(i);this.$0e();this.$0a();this.$0s();this.$0q();this.$0u();this.$0p();};this.visibleStart=function(){return $c.startDate.firstDayOfMonth().firstDayOfWeek($p.weekStarts());};this.visibleEnd=function(){return $c.startDate.firstDayOfMonth().addMonths(this.showMonths-1).firstDayOfWeek($p.weekStarts()).addDays(42);};this.$0u=function(){var $Z=this.visibleStart();var end=this.visibleEnd();if($c.$0d()){var $X={};$X.start=$Z;$X.end=end;$X.preventDefault=function(){this.preventDefault.value=true;};if(typeof $c.onVisibleRangeChange==='function'){$c.onVisibleRangeChange($X);if($X.preventDefault.value){return;}};switch(this.visibleRangeChangedHandling){case "CallBack":this.visibleRangeChangedCallBack(null);break;case "PostBack":this.visibleRangeChangedPostBack(null);break;case "Disabled":break;};if(typeof $c.onVisibleRangeChanged==='function'){$c.onVisibleRangeChanged($X);}}else{switch(this.visibleRangeChangedHandling){case "CallBack":this.visibleRangeChangedCallBack(null);break;case "PostBack":this.visibleRangeChangedPostBack(null);break;case "JavaScript":this.onVisibleRangeChanged($Z,end);break;case "Disabled":break;}}};this.visibleRangeChangedCallBack=function($R){var $S={};this.$0w("Visible",$R,$S);};this.visibleRangeChangedPostBack=function($R){var $S={};this.$0B("Visible",$R,$S);};this.$0A=function($03,$V){var $03=eval("("+$03+")");$c.items=$03.Items;$c.cells=$03.Cells;$c.$0p();};this.$0s=function(){for(var j=0;j$04){$04=$j.height;}};return $04;}else{var $05=0;for(var i=0;i-1&&$b.indexOf('Android ')>-1&&$b.indexOf('AppleWebKit')>-1)&&!($b.indexOf('Chrome')>-1));})();var DayPilotScheduler={};var $c=function(){};(function(){if(DayPilot.Global.defaultSchedulerCss){return;};var $d=DayPilot.sheet();$d.add(".scheduler_default_selected .scheduler_default_event_inner","background: #ddd;");$d.add(".scheduler_default_main","border: 1px solid #aaa;font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 12px;");$d.add(".scheduler_default_timeheader","cursor: default;color: #666;");$d.add(".scheduler_default_message","opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;");$d.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol","color: #666;background: #eee;");$d.add(".scheduler_default_rowheader,.scheduler_default_corner","color: #666;background: #eee;");$d.add(".scheduler_default_rowheader_inner","position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;");$d.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol","text-align: center;");$d.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;");$d.add(".scheduler_default_timeheadercol_inner","position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #aaa;");$d.add(".scheduler_default_divider","background-color: #aaa;");$d.add(".scheduler_default_divider_horizontal","background-color: #aaa;");$d.add(".scheduler_default_matrix_vertical_line","background-color: #eee;");$d.add(".scheduler_default_matrix_vertical_break","background-color: #000;");$d.add(".scheduler_default_matrix_horizontal_line","background-color: #eee;");$d.add(".scheduler_default_resourcedivider","background-color: #aaa;");$d.add(".scheduler_default_shadow_inner","background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;");$d.add(".scheduler_default_event","font-size:12px;color:#666;");$d.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;");$d.add(".scheduler_default_event_bar","top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;");$d.add(".scheduler_default_event_bar_inner","position:absolute;height:4px;background-color:#1066a8;");$d.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");');$d.add(".scheduler_default_event_float_inner","padding:6px 2px 2px 8px;");$d.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;');$d.add(".scheduler_default_columnheader_inner","font-weight: bold;");$d.add(".scheduler_default_columnheader_splitter","background-color: #666;opacity: 0.5;filter: alpha(opacity=50);");$d.add(".scheduler_default_columnheader_cell_inner","padding: 2px;");$d.add(".scheduler_default_cell","background-color: #f9f9f9;");$d.add(".scheduler_default_cell.scheduler_default_cell_business","background-color: #fff;");$d.add(".scheduler_default_tree_image_no_children","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAIAAABv85FHAAAAKXRFWHRDcmVhdGlvbiBUaW1lAHDhIDMwIEkgMjAwOSAwODo0NjozMSArMDEwMClDkt4AAAAHdElNRQfZAR4HLzEyzsCJAAAACXBIWXMAAA7CAAAOwgEVKEqAAAAABGdBTUEAALGPC/xhBQAAADBJREFUeNpjrK6s5uTl/P75OybJ0NLW8h8bAIozgeSxAaA4E1A7VjmgOL31MeLxHwCeXUT0WkFMKAAAAABJRU5ErkJggg==);");$d.add(".scheduler_default_tree_image_expand","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAIAAABv85FHAAAAKXRFWHRDcmVhdGlvbiBUaW1lAHDhIDMwIEkgMjAwOSAwODo0NjozMSArMDEwMClDkt4AAAAHdElNRQfZAR4HLyUoFBT0AAAACXBIWXMAAA7CAAAOwgEVKEqAAAAABGdBTUEAALGPC/xhBQAAAFJJREFUeNpjrK6s5uTl/P75OybJ0NLW8h8bAIozgeRhgJGREc4GijMBtTNgA0BxFog+uA4IA2gmUJwFog/IgUhAGBB9KPYhA3T74Jog+hjx+A8A1KRQ+AN5vcwAAAAASUVORK5CYII=);");$d.add(".scheduler_default_tree_image_collapse","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAIAAABv85FHAAAAKXRFWHRDcmVhdGlvbiBUaW1lAHDhIDMwIEkgMjAwOSAwODo0NjozMSArMDEwMClDkt4AAAAHdElNRQfZAR4HLxB+p9DXAAAACXBIWXMAAA7CAAAOwgEVKEqAAAAABGdBTUEAALGPC/xhBQAAAENJREFUeNpjrK6s5uTl/P75OybJ0NLW8h8bAIozgeSxAaA4E1A7VjmgOAtEHyMjI7IE0EygOAtEH5CDqY9c+xjx+A8ANndK9WaZlP4AAAAASUVORK5CYII=);");$d.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");');$d.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");');$d.commit();DayPilot.Global.defaultSchedulerCss=true;})();DayPilot.Scheduler=function(id){this.v='791';var $e=this;this.id=id;this.isScheduler=true;this.hideUntilInit=true;this.api=2;this.allowMultiSelect=true;this.allowDuplicateResources=false;this.autoRefreshCommand='refresh';this.autoRefreshEnabled=false;this.autoRefreshInterval=60;this.autoRefreshMaxCount=20;this.autoScroll="Drag";this.borderColor="#000000";this.businessBeginsHour=9;this.businessEndsHour=18;this.cellBackColor="#FFFFD5";this.cellBackColorNonBusiness="#FFF4BC";this.cellBorderColor="#EAD098";this.cellDuration=60;this.cellGroupBy='Day';this.cellSelectColor="#316AC5";this.cellWidth=40;this.cellWidthSpec="Fixed";this.clientSide=true;this.crosshairColor='Gray';this.crosshairOpacity=20;this.crosshairType='Header';this.debuggingEnabled=false;this.doubleClickTimeout=300;this.dragOutAllowed=false;this.durationBarColor='blue';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.dynamicLoading=false;this.eventBorderColor="#000000";this.eventBorderVisible=true;this.eventBackColor="#FFFFFF";this.eventFontFamily="Tahoma, Arial";this.eventFontSize='8pt';this.eventFontColor='#000000';this.eventHeight=25;this.eventMoveMargin=5;this.eventMoveToPosition=false;this.eventResizeMargin=5;this.ganttAppendToResources=false;this.headerFontColor="#000000";this.headerFontFamily="Tahoma, Arial";this.headerFontSize='8pt';this.headerHeight=20;this.heightSpec='Auto';this.hourFontFamily="Tahoma, Arial";this.hourFontSize='10pt';this.hourNameBackColor="#ECE9D8";this.hourNameBorderColor="#ACA899";this.layout='Auto';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.moveBy='Full';this.notifyCommit='Immediate';this.numberFormat="0.00";this.timeHeaders=[{"groupBy":"Default"},{"groupBy":"Cell"}];this.treePreventParentUsage=false;this.rowHeaderWidth=80;this.rowHeaderWidthAutoFit=true;this.rowHeaderCols=null;this.rowMarginBottom=0;this.rowMinHeight=0;this.scale="CellDuration";this.scrollX=0;this.scrollY=0;this.shadow="Fill";this.showBaseTimeHeader=true;this.showNonBusiness=true;this.showToolTip=true;this.snapToGrid=true;this.startDate=new DayPilot.Date().getDatePart();this.syncResourceTree=true;this.timeBreakColor='#000000';this.treeEnabled=false;this.treeIndent=20;this.treeImageMarginLeft=2;this.treeImageMarginTop=2;this.timeFormat="Auto";this.useEventBoxes='Always';this.viewType='Resources';this.weekStarts='Auto';this.width=null;this.floatingEvents=true;this.floatingTimeHeaders=true;this.eventCorners='Regular';;this.separators=[];this.afterRender=function(){};this.cornerHtml='';this.crosshairLastY=-1;this.crosshairLastX=-1;this.eventClickHandling='Enabled';this.eventHoverHandling='Bubble';this.eventDoubleClickHandling='Enabled';this.eventEditHandling='Update';this.eventMoveHandling='Update';this.eventResizeHandling='Update';this.eventRightClickHandling='ContextMenu';this.eventSelectHandling='Update';this.resourceHeaderClickHandling='Enabled';this.timeRangeDoubleClickHandling='Enabled';this.timeRangeSelectedHandling='Enabled';this.cssOnly=true;this.cssClassPrefix="scheduler_default";this.backendUrl=null;if($e.api===1){this.onEventMove=function(){};this.onEventResize=function(){};this.onResourceExpand=function(){};this.onResourceCollapse=function(){};};this.debugMessages=[];this.autoRefreshCount=0;this.innerHeightTree=0;this.rows=[];this.itline=[];this.timeline=null;this.status={};this.events={};this.cells={};this.elements={};this.elements.events=[];this.elements.bars=[];this.elements.cells=[];this.elements.linesVertical=[];this.elements.separators=[];this.elements.range=[];this.elements.breaks=[];this.$59={};this.$59.cells=[];this.$59.linesVertical=[];this.$59.linesHorizontal=[];this.$59.timeHeaderGroups=[];this.$59.pixels=[];this.$59.breaks=[];this.$59.events=[];this.clientState={};this.nav={};this.$5a=function($f,$g){var $f=eval("("+$f+")");if($f.BubbleGuid){var $h=$f.BubbleGuid;var $i=this.bubbles[$h];delete this.bubbles[$h];$e.$5b();if(typeof $f.Result.BubbleHTML!=='undefined'){$i.updateView($f.Result.BubbleHTML,$i);};return;};if($f.CallBackRedirect){document.location.href=$f.CallBackRedirect;return;};if(typeof DayPilot.Bubble!=="undefined"){DayPilot.Bubble.hideActive();};if(typeof $f.ClientState!=='undefined'){$e.clientState=$f.ClientState;};if($f.UpdateType==="None"){$e.$5b();if($f.Message){$e.message($f.Message);};$e.$5c($f.CallBackData,true);return;};if($f.VsUpdate){var $j=document.createElement("input");$j.type='hidden';$j.name=$e.id+"_vsupdate";$j.id=$j.name;$j.value=$f.VsUpdate;$e.vsph.innerHTML='';$e.vsph.appendChild($j);};if(typeof $f.TagFields!=='undefined'){$e.tagFields=$f.TagFields;};if(typeof $f.SortDirections!=='undefined'){$e.sortDirections=$f.SortDirections;};if($f.UpdateType==="Full"){$e.resources=$f.Resources;$e.colors=$f.Colors;$e.palette=$f.Palette;$e.dirtyColors=$f.DirtyColors;$e.cellProperties=$f.CellProperties;$e.cellConfig=$f.CellConfig;$e.separators=$f.Separators;$e.timeline=$f.Timeline;$e.timeHeader=$f.TimeHeader;$e.timeHeaders=$f.TimeHeaders;if(typeof $f.RowHeaderColumns!=='undefined')$e.rowHeaderColumns=$f.RowHeaderColumns;$e.startDate=$f.StartDate?new DayPilot.Date($f.StartDate):$e.startDate;$e.days=$f.Days?$f.Days:$e.days;$e.cellDuration=$f.CellDuration?$f.CellDuration:$e.cellDuration;$e.cellGroupBy=$f.CellGroupBy?$f.CellGroupBy:$e.cellGroupBy;$e.cellWidth=$f.CellWidth?$f.CellWidth:$e.cellWidth;$e.viewType=$f.ViewType?$f.ViewType:$e.viewType;$e.hourNameBackColor=$f.HourNameBackColor?$f.HourNameBackColor:$e.hourNameBackColor;$e.showNonBusiness=$f.ShowNonBusiness?$f.ShowNonBusiness:$e.showNonBusiness;$e.businessBeginsHour=$f.BusinessBeginsHour?$f.BusinessBeginsHour:$e.businessBeginsHour;$e.businessEndsHour=$f.BusinessEndsHour?$f.BusinessEndsHour:$e.businessEndsHour;if(typeof $f.DynamicLoading!=='undefined')$e.dynamicLoading=$f.DynamicLoading;if(typeof $f.TreeEnabled!=='undefined')$e.treeEnabled=$f.TreeEnabled;$e.backColor=$f.BackColor?$f.BackColor:$e.backColor;$e.nonBusinessBackColor=$f.NonBusinessBackColor?$f.NonBusinessBackColor:$e.nonBusinessBackColor;$e.locale=$f.Locale?$f.Locale:$e.locale;if(typeof $f.TimeZone!=='undefined')$e.timeZone=$f.TimeZone;$e.timeFormat=$f.TimeFormat?$f.TimeFormat:$e.timeFormat;$e.rowHeaderCols=$f.RowHeaderCols?$f.RowHeaderCols:$e.rowHeaderCols;if(typeof $f.DurationBarMode!=="undefined")$e.durationBarMode=$f.DurationBarMode;if(typeof $f.ShowBaseTimeHeader!=="undefined")$e.showBaseTimeHeader=$f.ShowBaseTimeHeader;$e.cornerBackColor=$f.CornerBackColor?$f.CornerBackColor:$e.cornerBackColor;if(typeof $f.CornerHTML!=='undefined'){$e.cornerHtml=$f.CornerHTML;};$e.hashes=$f.Hashes;$e.$5d();$e.$5e();$e.$5f();$e.$5g();};var $k=[];if($f.Action!=="Scroll"){$k=$e.$5h($f.Events);};if($f.UpdateType==='Full'){$e.$5i();$e.$5j();};$e.$5k();$e.$5l();if($f.Action!=="Scroll"){$e.$5m();$e.$5n();if($e.heightSpec==='Auto'||$e.heightSpec==='Max'){$e.$5o();};$e.$5p();$e.$5q();$e.$5r();$e.multiselect.clear(true);$e.multiselect.initList=$f.SelectedEvents;$e.$5s();$e.$5t();$e.$5u();}else{$e.multiselect.clear(true);$e.multiselect.initList=$f.SelectedEvents;$e.$5s();$e.$5v($f.Events);};if($e.timeRangeSelectedHandling!=="HoldForever"){$e.$5w();};if($f.UpdateType==="Full"){$e.setScroll($f.ScrollX,$f.ScrollY);$e.$5x();};$e.$5y();$e.$5z();$e.$5b();if($f.UpdateType==='Full'&&navigator.appVersion.indexOf("MSIE 7.")!==-1){window.setTimeout(function(){$e.$5i();$e.$5o();},0);};$e.$5A();if($f.Message){if($e.message){$e.message($f.Message);}};$e.$5c($f.CallBackData,true);$e.$5B();};this.$5z=function(){if($e.todo){if($e.todo.del){var $l=$e.todo.del;$l.parentNode.removeChild($l);$e.todo.del=null;}}};this.$5c=function($m,$n){var $o=function($m,$p){return function(){if($e.$5C()){if(typeof $e.onAfterRender==='function'){var $q={};$q.isCallBack=$p;$q.data=$m;$e.onAfterRender($q);}}else{if($e.afterRender){$e.afterRender($m,$p);}}};};window.setTimeout($o($m,$n),0);};this.scrollTo=function($r){var $s=this.getPixels(new DayPilot.Date($r)).left;this.setScrollX($s);};this.scrollToResource=function(id){DayPilot.complete(function(){var $t=$e.$5D(id);if(!$t){return;};setTimeout(function(){var scrollY=$t.Top;$e.nav.scroll.scrollTop=scrollY;},100);});};this.$5E=function(){if(!this.cssOnly){return;};if(!this.floatingTimeHeaders){return;};this.$5F();var $u=this.$5G();var $v=$u.pixels.left;var end=$u.pixels.right;var $w=[];for(var y=0;y$G){scrollX=$G-scroll.clientWidth;};if(scroll.clientHeight+scrollY>$F){scrollY=$F-scroll.clientHeight;};$e.divTimeScroll.scrollLeft=scrollX;$e.divResScroll.scrollTop=scrollY;scroll.scrollLeft=scrollX;scroll.scrollTop=scrollY;};this.message=function($H,$I,$J,$K){if($H===null){return;};var $I=$I||this.messageHideAfter||2000;var $J=$J||"#ffffff";var $K=$K||"#000000";var $L=0.8;var top=this.$5N()+1;var $x=this.$5O()+1;var $y=DayPilot.sw($e.nav.scroll)+1;var $M=DayPilot.sh($e.nav.scroll)+1;var $B;if(!this.nav.message){$B=document.createElement("div");$B.style.position="absolute";$B.style.left=$x+"px";$B.style.right=$y+"px";$B.style.display='none';$B.onmousemove=function(){if($e.messageTimeout){clearTimeout($e.messageTimeout);}};$B.onmouseout=function(){if($e.nav.message.style.display!=='none'){$e.messageTimeout=setTimeout($e.$5P,500);}};var $E=document.createElement("div");$E.onclick=function(){$e.nav.message.style.display='none';};if(!this.cssOnly){$E.style.padding="5px";$E.style.opacity=$L;$E.style.filter="alpha(opacity="+($L*100)+")";}else{$E.className=this.$5L("_message");};$B.appendChild($E);var close=document.createElement("div");close.style.position="absolute";if(!this.cssOnly){close.style.top="5px";close.style.right=(DayPilot.sw($e.nav.scroll)+5)+"px";close.style.color=$J;close.style.lineHeight="100%";close.style.cursor="pointer";close.style.fontWeight="bold";close.innerHTML="X";}else{close.className=this.$5L("_message_close");};close.onclick=function(){$e.nav.message.style.display='none';};$B.appendChild(close);this.nav.top.appendChild($B);this.nav.message=$B;};var $N=function(){var $E=$e.nav.message.firstChild;if(!$e.cssOnly){$E.style.backgroundColor=$K;$E.style.color=$J;};$E.innerHTML=$H;var $y=DayPilot.sw($e.nav.scroll)+1;$e.nav.message.style.right=$y+"px";var $O=$e.messageBarPosition||"Top";if($O==="Bottom"){$e.nav.message.style.bottom=$M+"px";$e.nav.message.style.top="";}else if($O==="Top"){$e.nav.message.style.bottom="";$e.nav.message.style.top=top+"px";};var end=function(){$e.messageTimeout=setTimeout($e.$5P,$I);};DayPilot.fade($e.nav.message,0.2,end);};clearTimeout($e.messageTimeout);if(this.nav.message.style.display!=='none'){DayPilot.fade($e.nav.message,-0.2,$N);}else{$N();}};this.$5P=function(){var end=function(){$e.nav.message.style.display='none';};DayPilot.fade($e.nav.message,-0.2,end);};this.message.show=function($H){$e.message($H);};this.message.hide=function(){$e.$5P();};this.$5o=function(){if(this.nav.scroll){if(this.heightSpec==='Parent100Pct'){this.height=parseInt(this.nav.top.clientHeight,10)-(this.$5N()+2);};var $P=this.$5Q();var $Q=1;var $R=$P+this.$5N()+$Q;if($P>0){this.nav.scroll.style.height=($P)+'px';this.scrollRes.style.height=($P)+'px';};if(this.nav.divider){if(!$R||isNaN($R)||$R<0){$R=0;};this.nav.divider.style.height=($R)+"px";};if(this.heightSpec!=="Parent100Pct"){this.nav.top.style.height=($R)+"px";};for(var i=0;i0&&$V>0){$e.cellWidth=$V/$U;};$e.debug.message("updated cellWidth: "+$e.cellWidth);};$T();if(this.$5T()){if(this.timeline){$e.debug.message("timeline received from server");this.itline=[];var $W=null;var $x=0;for(var i=0;i$v.ticks){if(this.$5X($v,end)){var $y=Math.floor($x+this.cellWidth);var $V=$y-Math.floor($x);var $00={};$00.start=$v;$00.end=end;$00.left=Math.floor($x);$00.width=$V;$00.breakBefore=$Y;this.itline.push($00);$x+=this.cellWidth;$Y=false;}else{$Y=true;};$v=end;end=this.$5W($v);}};this.$5U=function(){$e.debug.message("updateHeaderGroupDimensions");if(!this.timeHeader){return;};for(var y=0;y0){if(typeof this.onBeforeTimeHeaderRender==='function'){var $z={};$z.start=h.start;$z.end=h.end;$z.html=h.innerHTML;$z.toolTip=h.innerHTML;$z.backColor=null;if(!this.cssOnly){$z.backColor=this.hourNameBackColor;};$z.level=this.timeHeader.length;var $q={};$q.header=$z;this.onBeforeTimeHeaderRender($q);h.innerHTML=$z.html;h.backColor=$z.backColor;h.toolTip=$z.toolTip;};$03.push(h);};$v=h.end;};this.timeHeader.push($03);}};this.$5X=function($v,end){if(typeof this.onIncludeTimeCell==='function'){var $z={};$z.start=$v;$z.end=end;$z.visible=true;var $q={};$q.cell=$z;this.onIncludeTimeCell($q);return $z.visible;};if(this.showNonBusiness){return true;};if($v.d.getUTCDay()===0){return false;};if($v.d.getUTCDay()===6){return false;};var $05=(end.getTime()-$v.getTime())/(1000*60);if($05<60*24){var $06=$v.d.getUTCHours();$06+=$v.d.getUTCMinutes()/60.0;$06+=$v.d.getUTCSeconds()/3600.0;$06+=$v.d.getUTCMilliseconds()/3600000.0;if($06=24){return true;};if($06>=this.businessEndsHour){return false;}};return true;};this.getPixels=function($r){var $07=$r.ticks;var $08=this.$59.pixels[$07];if($08){return $08;};var $09=null;var $0a=221876841600000;if(this.itline.length===0||$07$0a){var $f={};$f.cut=true;$f.left=$z.left;$f.boxLeft=$f.left;$f.boxRight=$f.left;$f.i=i;break;};$0a=$0d;};if(!$f){var $0f=this.itline[this.itline.length-1];var $f={};$f.cut=true;$f.left=$0f.left+$0f.width;$f.boxLeft=$f.left;$f.boxRight=$f.left;$f.i=null;};this.$59.pixels[$07]=$f;return $f;};this.getDate=function($x,$0g,$0h){var $O=this.$61($x,$0h);if(!$O){return null;};var x=$O.x;var $0i=this.itline[x];if(!$0i){return null;};var $v=($0h&&!$0g)?$0i.end:$0i.start;if(!$0g){return $v;}else{return $v.addTime(this.$62($O.cell,$O.offset));}};this.$61=function($s,$0h){var $0j=0;var $09=0;for(var i=0;i0?this.itline[i-1]:null;$f.current=null;$f.next=this.itline[i];return $f;}};var $f={};$f.past=true;$f.previous=this.itline[this.itline.length-1];return $f;};this.$60=function($z,$07){var $V=$z.width||this.cellWidth;var $0l=$z.end.ticks-$z.start.ticks;return Math.floor(($V*$07)/($0l));};this.$62=function($z,$s){var $0l=$z.end.ticks-$z.start.ticks;var $V=$z.width||this.cellWidth;return Math.floor($s/$V*$0l);};this.$64=function(ev){if($0m.start){return;};$0n={};$e.$65(this,ev);};this.eventClickPostBack=function(e,$m){this.$66('EventClick',e,$m);};this.eventClickCallBack=function(e,$m){this.$67('EventClick',e,$m);};this.$65=function($B,ev){var e=$B.event;var ev=ev||window.event;if(typeof(DayPilotBubble)!=='undefined'){DayPilotBubble.hideActive();};if(!e.client.doubleClickEnabled()){$e.$68($B,ev.ctrlKey);return;};if(!$e.timeouts.click){$e.timeouts.click=[];};var $0o=function($B,$0p){return function(){$e.$68($B,$0p);};};$e.timeouts.click.push(window.setTimeout($0o($B,ev.ctrlKey),$e.doubleClickTimeout));};this.$68=function($B,$0p){var e=$B.event;if(!e.client.clickEnabled()){return;};if($e.$5C()){var $q={};$q.e=e;$q.div=$B;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onEventClick==='function'){$e.onEventClick($q);if($q.preventDefault.value){return;}};switch($e.eventClickHandling){case 'PostBack':$e.eventClickPostBack(e);break;case 'CallBack':$e.eventClickCallBack(e);break;case 'Edit':$e.$69($B);break;case 'Select':$e.$6a($B,e,$0p);break;case 'ContextMenu':var $0q=e.client.contextMenu();if($0q){$0q.show(e);}else{if($e.contextMenu){$e.contextMenu.show(e);}};break;case 'Bubble':if($e.bubble){$e.bubble.showEvent(e);};break;};if(typeof $e.onEventClicked==='function'){$e.onEventClicked($q);}}else{switch($e.eventClickHandling){case 'PostBack':$e.eventClickPostBack(e);break;case 'CallBack':$e.eventClickCallBack(e);break;case 'JavaScript':$e.onEventClick(e);break;case 'Edit':$e.$69($B);break;case 'Select':$e.$6a($B,e,$0p);break;case 'ContextMenu':var $0q=e.client.contextMenu();if($0q){$0q.show(e);}else{if($e.contextMenu){$e.contextMenu.show(e);}};break;case 'Bubble':if($e.bubble){$e.bubble.showEvent(e);};break;}}};this.setHScrollPosition=function($s){this.nav.scroll.scrollLeft=$s;};this.getScrollX=function(){return this.nav.scroll.scrollLeft;};this.getHScrollPosition=this.getScrollX;this.getScrollY=function(){return this.nav.scroll.scrollTop;};this.$6a=function($B,e,$0p){$e.$6b($B,e,$0p);};this.eventSelectPostBack=function(e,$0r,$m){var $0s={};$0s.e=e;$0s.change=$0r;this.$66('EventSelect',$0s,$m);};this.eventSelectCallBack=function(e,$0r,$m){var $0s={};$0s.e=e;$0s.change=$0r;this.$67('EventSelect',$0s,$m);};this.$6b=function($B,e,$0p){if($e.$5C()){var m=$e.multiselect;m.previous=m.events();var $q={};$q.e=e;$q.selected=m.isSelected(e);$q.ctrl=$0p;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onEventSelect==='function'){$e.onEventSelect($q);if($q.preventDefault.value){return;}};switch($e.eventSelectHandling){case 'PostBack':$e.eventSelectPostBack(e,$0r);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){__theFormPostData="";__theFormPostCollection=[];WebForm_InitCallback();};$e.eventSelectCallBack(e,$0r);break;case 'Update':m.$6c($B,$0p);break;};if(typeof $e.onEventSelected==='function'){$q.change=m.isSelected(e)?"selected":"deselected";$q.selected=m.isSelected(e);$e.onEventSelected($q);}}else{var m=$e.multiselect;m.previous=m.events();m.$6c($B,$0p);var $0r=m.isSelected(e)?"selected":"deselected";switch($e.eventSelectHandling){case 'PostBack':$e.eventSelectPostBack(e,$0r);break;case 'CallBack':if(typeof WebForm_InitCallback!=='undefined'){__theFormPostData="";__theFormPostCollection=[];WebForm_InitCallback();};$e.eventSelectCallBack(e,$0r);break;case 'JavaScript':$e.onEventSelect(e,$0r);break;}}};this.eventRightClickPostBack=function(e,$m){this.$66('EventRightClick',e,$m);};this.eventRightClickCallBack=function(e,$m){this.$67('EventRightClick',e,$m);};this.$6d=function(ev){var e=this.event;ev=ev||window.event;ev.cancelBubble=true;if(!this.event.client.rightClickEnabled()){return false;};if($e.$5C()){var $q={};$q.e=e;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onEventRightClick==='function'){$e.onEventRightClick($q);if($q.preventDefault.value){return;}};switch($e.eventRightClickHandling){case 'PostBack':$e.eventRightClickPostBack(e);break;case 'CallBack':$e.eventRightClickCallBack(e);break;case 'ContextMenu':var $0q=e.client.contextMenu();if($0q){$0q.show(e);}else{if($e.contextMenu){$e.contextMenu.show(this.event);}};break;case 'Bubble':if($e.bubble){$e.bubble.showEvent(e);};break;};if(typeof $e.onEventRightClicked==='function'){$e.onEventRightClicked($q);}}else{switch($e.eventRightClickHandling){case 'PostBack':$e.eventRightClickPostBack(e);break;case 'CallBack':$e.eventRightClickCallBack(e);break;case 'JavaScript':$e.onEventRightClick(e);break;case 'ContextMenu':var $0q=e.client.contextMenu();if($0q){$0q.show(e);}else{if($e.contextMenu){$e.contextMenu.show(this.event);}};break;case 'Bubble':if($e.bubble){$e.bubble.showEvent(e);};break;}};return false;};this.eventDoubleClickPostBack=function(e,$m){this.$66('EventDoubleClick',e,$m);};this.eventDoubleClickCallBack=function(e,$m){this.$67('EventDoubleClick',e,$m);};this.$6e=function(ev){if(typeof(DayPilotBubble)!=='undefined'){DayPilotBubble.hideActive();};if($e.timeouts.click){for(var $0t in $e.timeouts.click){window.clearTimeout($e.timeouts.click[$0t]);};$e.timeouts.click=null;};var ev=ev||window.event;var e=this.event;if($e.$5C()){var $q={};$q.e=e;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onEventDoubleClick==='function'){$e.onEventDoubleClick($q);if($q.preventDefault.value){return;}};switch($e.eventDoubleClickHandling){case 'PostBack':$e.eventDoubleClickPostBack(e);break;case 'CallBack':$e.eventDoubleClickCallBack(e);break;case 'Edit':$e.$69(this);break;case 'Select':$e.$6a($B,e,ev.ctrlKey);break;case 'Bubble':if($e.bubble){$e.bubble.showEvent(e);};break;};if(typeof $e.onEventDoubleClicked==='function'){$e.onEventDoubleClicked($q);}}else{switch($e.eventDoubleClickHandling){case 'PostBack':$e.eventDoubleClickPostBack(e);break;case 'CallBack':$e.eventDoubleClickCallBack(e);break;case 'JavaScript':$e.onEventDoubleClick(e);break;case 'Edit':$e.$69(this);break;case 'Select':$e.$6a($B,e,ev.ctrlKey);break;case 'Bubble':if($e.bubble){$e.bubble.showEvent(e);};break;}}};this.eventResizePostBack=function(e,$0u,$0v,$m){this.$6f("PostBack",e,$0u,$0v,$m);};this.eventResizeCallBack=function(e,$0u,$0v,$m){this.$6f("CallBack",e,$0u,$0v,$m);};this.$6f=function($0w,e,$0u,$0v,$m){var $0s={};$0s.e=e;$0s.newStart=$0u;$0s.newEnd=$0v;this.$6g($0w,"EventResize",$0s,$m);};this.$6h=function(e,$0u,$0v){if(this.eventResizeHandling==='Disabled'){return;};if($e.$5C()){var $q={};$q.e=e;$q.newStart=$0u;$q.newEnd=$0v;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onEventResize==='function'){$e.onEventResize($q);if($q.preventDefault.value){return;}};switch($e.eventResizeHandling){case 'PostBack':$e.eventResizePostBack(e,$0u,$0v);break;case 'CallBack':$e.eventResizeCallBack(e,$0u,$0v);break;case 'Notify':$e.eventResizeNotify(e,$0u,$0v);break;case 'Update':e.start($0u);e.end($0v);$e.events.update(e);break;};if(typeof $e.onEventResized==='function'){$e.onEventResized($q);}}else{switch($e.eventResizeHandling){case 'PostBack':$e.eventResizePostBack(e,$0u,$0v);break;case 'CallBack':$e.eventResizeCallBack(e,$0u,$0v);break;case 'JavaScript':$e.onEventResize(e,$0u,$0v);break;case 'Notify':$e.eventResizeNotify(e,$0u,$0v);break;case 'Update':e.start($0u);e.end($0v);$e.events.update(e);break;}}};this.eventMovePostBack=function(e,$0u,$0v,$0x,$m,$03){this.$6i("PostBack",e,$0u,$0v,$0x,$m,$03);};this.eventMoveCallBack=function(e,$0u,$0v,$0x,$m,$03){this.$6i("CallBack",e,$0u,$0v,$0x,$m,$03);};this.$6i=function($0w,e,$0u,$0v,$0x,$m,$03){var $0s={};$0s.e=e;$0s.newStart=$0u;$0s.newEnd=$0v;$0s.newResource=$0x;$0s.position=$03;this.$6g($0w,"EventMove",$0s,$m);};this.$6g=function($0w,$0y,$0s,$m){if($0w==='PostBack'){$e.$66($0y,$0s,$m);}else if($0w==='CallBack'){$e.$67($0y,$0s,$m,"CallBack");}else if($0w==='Immediate'){$e.$67($0y,$0s,$m,"Notify");}else if($0w==='Queue'){$e.queue.add(new DayPilot.Action(this,$0y,$0s,$m));}else if($0w==='Notify'){if($04.notifyType()==='Notify'){$e.$67($0y,$0s,$m,"Notify");}else{$e.queue.add(new DayPilot.Action($e,$0y,$0s,$m));}}else{throw "Invalid event invocation type";}};this.eventMoveNotify=function(e,$0u,$0v,$0x,$m,$03){var $0z=new DayPilot.Event(e.copy(),this);var $0A=$e.events.$6j(e.data);e.start($0u);e.end($0v);e.resource($0x);e.commit();$0A=$0A.concat($e.events.$6k(e.data));$e.$6l($0A);$e.$6m();$e.$6n($0A);this.$6i("Notify",$0z,$0u,$0v,$0x,$m,$03);};this.eventResizeNotify=function(e,$0u,$0v,$m){var $0z=new DayPilot.Event(e.copy(),this);var $0A=$e.events.$6j(e.data);e.start($0u);e.end($0v);e.commit();$0A=$0A.concat($e.events.$6k(e.data));$e.$6l($0A);$e.$6m();$e.$6n($0A);this.$6f("Notify",$0z,$0u,$0v,$m);};this.multiselect={};this.multiselect.initList=[];this.multiselect.list=[];this.multiselect.divs=[];this.multiselect.previous=[];this.multiselect.$6o=function(){var m=$e.multiselect;return DayPilot.JSON.stringify(m.events());};this.multiselect.events=function(){var m=$e.multiselect;var $0B=[];$0B.ignoreToJSON=true;for(var i=0;i1){m.add($B.event,true);}}}else{m.clear();}}else{if($e.allowMultiSelect){if($0C){m.add($B.event,true);}else{m.clear();m.add($B.event,true);}}else{m.clear();m.add($B.event,true);}};m.$6q($B);m.$6p();};this.multiselect.$6r=function(ev){var m=$e.multiselect;return m.$6s(ev,m.initList);};this.multiselect.$6t=function(){var m=$e.multiselect;var $0D=[];for(var i=0;i=$0A.length){return;};var ri=$0A[i];if(!$0H){$e.$6A(ri);};$e.$6B(ri);if(i+1<$0A.length){setTimeout(function(){$0K(i+1);},10);}else{$e.$5I();if($0I){$0I();}}};$0K(0);}else{for(var i=0;i<$0A.length;i++){var ri=$0A[i];if(!$0H){this.$6A(ri);};this.$6B(ri);}}};$e.$5I();if($0I){$0I();};this.$5B();};this.$6D=function(e,$0u,$0v,$0x,external,ev,$03){if($e.eventMoveHandling==='Disabled'){return;};if($e.$5C()){var $q={};$q.e=e;$q.newStart=$0u;$q.newEnd=$0v;$q.newResource=$0x;$q.external=external;$q.ctrl=false;if(ev){$q.ctrl=ev.ctrlKey;};$q.shift=false;if(ev){$q.shift=ev.shiftKey;};$q.position=$03;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onEventMove==='function'){$e.onEventMove($q);if($q.preventDefault.value){return;}};switch($e.eventMoveHandling){case 'PostBack':$e.eventMovePostBack(e,$0u,$0v,$0x,null,$03);break;case 'CallBack':$e.eventMoveCallBack(e,$0u,$0v,$0x,null,$03);break;case 'Notify':$e.eventMoveNotify(e,$0u,$0v,$0x,null,$03);break;case 'Update':e.start($0u);e.end($0v);e.resource($0x);if(external){e.commit();$e.events.add(e);}else{$e.events.update(e);};$e.$5z();break;};if(typeof $e.onEventMoved==='function'){$e.onEventMoved($q);}}else{switch($e.eventMoveHandling){case 'PostBack':$e.eventMovePostBack(e,$0u,$0v,$0x,null,$03);break;case 'CallBack':$e.eventMoveCallBack(e,$0u,$0v,$0x,null,$03);break;case 'JavaScript':$e.onEventMove(e,$0u,$0v,$0x,external,ev?ev.ctrlKey:false,ev?ev.shiftKey:false,$03);break;case 'Notify':$e.eventMoveNotify(e,$0u,$0v,$0x,null,$03);break;case 'Update':e.start($0u);e.end($0v);e.resource($0x);$e.events.update(e);break;}}};this.$6E=function($q,$i){var $h=$e.$6F($i);var $0s={};$0s.args=$q;$0s.guid=$h;$e.$67("Bubble",$0s);};this.$6F=function($i){var $h=DayPilot.guid();if(!this.bubbles){this.bubbles=[];};this.bubbles[$h]=$i;return $h;};this.eventMenuClickPostBack=function(e,$0L,$m){var $0s={};$0s.e=e;$0s.command=$0L;this.$66('EventMenuClick',$0s,$m);};this.eventMenuClickCallBack=function(e,$0L,$m){var $0s={};$0s.e=e;$0s.command=$0L;this.$67('EventMenuClick',$0s,$m);};this.$6G=function($0L,e,$0M){switch($0M){case 'PostBack':$e.eventMenuClickPostBack(e,$0L);break;case 'CallBack':$e.eventMenuClickCallBack(e,$0L);break;}};this.timeRangeSelectedPostBack=function($v,end,$0N,$m){var $0O={};$0O.start=$v;$0O.end=end;$0O.resource=$0N;this.$66('TimeRangeSelected',$0O,$m);};this.timeRangeSelectedCallBack=function($v,end,$0N,$m){var $0O={};$0O.start=$v;$0O.end=end;$0O.resource=$0N;this.$67('TimeRangeSelected',$0O,$m);};this.$6H=function($v,end,$0N){if($e.timeRangeSelectedHandling==='Disabled'){return;};if($e.$5C()){var $q={};$q.start=$v;$q.end=end;$q.resource=$0N;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onTimeRangeSelect==='function'){$e.onTimeRangeSelect($q);if($q.preventDefault.value){return;}};switch($e.timeRangeSelectedHandling){case 'PostBack':$e.timeRangeSelectedPostBack($v,end,$0N);break;case 'CallBack':$e.timeRangeSelectedCallBack($v,end,$0N);break;};if(typeof $e.onTimeRangeSelected==='function'){$e.onTimeRangeSelected($q);}}else{switch($e.timeRangeSelectedHandling){case 'PostBack':$e.timeRangeSelectedPostBack($v,end,$0N);break;case 'CallBack':$e.timeRangeSelectedCallBack($v,end,$0N);break;case 'JavaScript':$e.onTimeRangeSelected($v,end,$0N);break;case 'Hold':break;}}};this.timeRangeDoubleClickPostBack=function($v,end,$0N,$m){var $0O={};$0O.start=$v;$0O.end=end;$0O.resource=$0N;this.$66('TimeRangeDoubleClick',$0O,$m);};this.timeRangeDoubleClickCallBack=function($v,end,$0N,$m){var $0O={};$0O.start=$v;$0O.end=end;$0O.resource=$0N;this.$67('TimeRangeDoubleClick',$0O,$m);};this.$6I=function($v,end,$0N){if($e.$5C()){var $q={};$q.start=$v;$q.end=end;$q.resource=$0N;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onTimeRangeDoubleClick==='function'){$e.onTimeRangeDoubleClick($q);if($q.preventDefault.value){return;}};switch($e.timeRangeDoubleClickHandling){case 'PostBack':$e.timeRangeDoubleClickPostBack($v,end,$0N);break;case 'CallBack':$e.timeRangeDoubleClickCallBack($v,end,$0N);break;};if(typeof $e.onTimeRangeDoubleClicked==='function'){$e.onTimeRangeDoubleClicked($q);}}else{switch($e.timeRangeDoubleClickHandling){case 'PostBack':$e.timeRangeDoubleClickPostBack($v,end,$0N);break;case 'CallBack':$e.timeRangeDoubleClickCallBack($v,end,$0N);break;case 'JavaScript':$e.onTimeRangeDoubleClick($v,end,$0N);break;}}};this.timeRangeMenuClickPostBack=function(e,$0L,$m){var $0s={};$0s.selection=e;$0s.command=$0L;this.$66("TimeRangeMenuClick",$0s,$m);};this.timeRangeMenuClickCallBack=function(e,$0L,$m){var $0s={};$0s.selection=e;$0s.command=$0L;this.$67("TimeRangeMenuClick",$0s,$m);};this.$6J=function($0L,e,$0M){switch($0M){case 'PostBack':$e.timeRangeMenuClickPostBack(e,$0L);break;case 'CallBack':$e.timeRangeMenuClickCallBack(e,$0L);break;}};this.resourceHeaderMenuClickPostBack=function(e,$0L,$m){var $0s={};$0s.resource=e;$0s.command=$0L;this.$66("ResourceHeaderMenuClick",$0s,$m);};this.resourceHeaderMenuClickCallBack=function(e,$0L,$m){var $0s={};$0s.resource=e;$0s.command=$0L;this.$67("ResourceHeaderMenuClick",$0s,$m);};this.$6K=function($0L,e,$0M){switch($0M){case 'PostBack':$e.resourceHeaderMenuClickPostBack(e,$0L);break;case 'CallBack':$e.resourceHeaderMenuClickCallBack(e,$0L);break;}};this.resourceHeaderClickPostBack=function(e,$m){var $0s={};$0s.resource=e;this.$66("ResourceHeaderClick",$0s,$m);};this.resourceHeaderClickCallBack=function(e,$m){var $0s={};$0s.resource=e;this.$67("ResourceHeaderClick",$0s,$m);};this.$6L=function(e){if($e.$5C()){var $q={};$q.resource=e;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onResourceHeaderClick==='function'){$e.onResourceHeaderClick($q);if($q.preventDefault.value){return;}};switch(this.resourceHeaderClickHandling){case 'PostBack':$e.resourceHeaderClickPostBack(e);break;case 'CallBack':$e.resourceHeaderClickCallBack(e);break;};if(typeof $e.onResourceHeaderClicked==='function'){$e.onResourceHeaderClicked($q);}}else{switch(this.resourceHeaderClickHandling){case 'PostBack':$e.resourceHeaderClickPostBack(e);break;case 'CallBack':$e.resourceHeaderClickCallBack(e);break;case 'JavaScript':$e.onResourceHeaderClick(e);break;}}};this.timeHeaderClickPostBack=function(e,$m){var $0s={};$0s.header=e;this.$66("TimeHeaderClick",$0s,$m);};this.timeHeaderClickCallBack=function(e,$m){var $0s={};$0s.header=e;this.$67("TimeHeaderClick",$0s,$m);};this.$6M=function(e){if($e.$5C()){var $q={};$q.header=e;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onTimeHeaderClick==='function'){$e.onTimeHeaderClick($q);if($q.preventDefault.value){return;}};switch(this.timeHeaderClickHandling){case 'PostBack':$e.timeHeaderClickPostBack(e);break;case 'CallBack':$e.timeHeaderClickCallBack(e);break;};if(typeof $e.onTimeHeaderClicked==='function'){$e.onTimeHeaderClicked($q);}}else{switch(this.timeHeaderClickHandling){case 'PostBack':$e.timeHeaderClickPostBack(e);break;case 'CallBack':$e.timeHeaderClickCallBack(e);break;case 'JavaScript':$e.onTimeHeaderClick(e);break;}}};this.resourceCollapsePostBack=function(e,$m){var $0s={};$0s.resource=e;this.$66("ResourceCollapse",$0s,$m);};this.resourceCollapseCallBack=function(e,$m){var $0s={};$0s.resource=e;this.$67("ResourceCollapse",$0s,$m);};this.$6N=function(e){if($e.$5C()){var $q={};$q.resource=e;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onResourceCollapse==='function'){$e.onResourceCollapse($q);if($q.preventDefault.value){return;}};switch(this.resourceCollapseHandling){case 'PostBack':$e.resourceCollapsePostBack(e);break;case 'CallBack':$e.resourceCollapseCallBack(e);break;}}else{switch(this.resourceCollapseHandling){case 'PostBack':$e.resourceCollapsePostBack(e);break;case 'CallBack':$e.resourceCollapseCallBack(e);break;case 'JavaScript':$e.onResourceCollapse(e);break;}}};this.resourceExpandPostBack=function(e,$m){var $0s={};$0s.resource=e;this.$66("ResourceExpand",$0s,$m);};this.resourceExpandCallBack=function(e,$m){var $0s={};$0s.resource=e;this.$67("ResourceExpand",$0s,$m);};this.$6O=function(e){if($e.$5C()){var $q={};$q.resource=e;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onResourceExpand==='function'){$e.onResourceExpand($q);if($q.preventDefault.value){return;}};switch(this.resourceExpandHandling){case 'PostBack':$e.resourceExpandPostBack(e);break;case 'CallBack':$e.resourceExpandCallBack(e);break;}}else{switch(this.resourceExpandHandling){case 'PostBack':$e.resourceExpandPostBack(e);break;case 'CallBack':$e.resourceExpandCallBack(e);break;case 'JavaScript':$e.onResourceExpand(e);break;}}};this.eventEditPostBack=function(e,$0P,$m){var $0s={};$0s.e=e;$0s.newText=$0P;this.$66("EventEdit",$0s,$m);};this.eventEditCallBack=function(e,$0P,$m){var $0s={};$0s.e=e;$0s.newText=$0P;this.$67("EventEdit",$0s,$m);};this.$6P=function(e,$0P){if($e.$5C()){var $q={};$q.e=e;$q.newText=$0P;$q.preventDefault=function(){this.preventDefault.value=true;};if(typeof $e.onEventEdit==='function'){$e.onEventEdit($q);if($q.preventDefault.value){return;}};switch($e.eventEditHandling){case 'PostBack':$e.eventEditPostBack(e,$0P);break;case 'CallBack':$e.eventEditCallBack(e,$0P);break;case 'Update':e.text($0P);$e.events.update(e);break;};if(typeof $e.onEventEdited==='function'){$e.onEventEdited($q);if($q.preventDefault.value){return;}}}else{switch($e.eventEditHandling){case 'PostBack':$e.eventEditPostBack(e,$0P);break;case 'CallBack':$e.eventEditCallBack(e,$0P);break;case 'JavaScript':$e.onEventEdit(e,$0P);break;}}};this.commandCallBack=function($0L,$m){this.$6Q("CallBack",$0L,$m);};this.commandPostBack=function($0L,$m){this.$6Q("PostBack",$0L,$m);};this.$6Q=function($0w,$0L,$m){var $0s={};$0s.command=$0L;this.$6g($0w,"Command",$0s,$m);};this.$66=function($0y,$0Q,$m){var $0R={};$0R.action=$0y;$0R.type="PostBack";$0R.parameters=$0Q;$0R.data=$m;$0R.header=this.$6R();var $0S="JSON"+DayPilot.JSON.stringify($0R);__doPostBack($e.uniqueID,$0S);};this.$67=function($0y,$0Q,$m,$0w){if(this.callbackTimeout){window.clearTimeout(this.callbackTimeout);};if(typeof $0w==='undefined'){$0w="CallBack";};this.$6S();this.callbackTimeout=window.setTimeout(function(){$e.$6T();},100);var $0R={};$0R.action=$0y;$0R.type=$0w;$0R.parameters=$0Q;$0R.data=$m;$0R.header=this.$6R();var $0T=DayPilot.JSON.stringify($0R);var $0S;if(typeof Iuppiter!=='undefined'&&Iuppiter.compress){$0S="LZJB"+Iuppiter.Base64.encode(Iuppiter.compress($0T));}else{$0S="JSON"+$0T;};var $g=null;if(this.backendUrl){DayPilot.request(this.backendUrl,this.$6U,$0S,this.$6V);}else if(typeof WebForm_DoCallback==='function'){WebForm_DoCallback(this.uniqueID,$0S,this.$5a,$g,this.callbackError,true);}};this.$5T=function(){if(this.backendUrl){return true;};if(typeof WebForm_DoCallback==='function'&&this.uniqueID){return true;};return false;};this.$6V=function($0U){if(typeof $e.onAjaxError==='function'){var $q={};$q.request=$0U;$e.onAjaxError($q);}else if(typeof $e.ajaxError==='function'){$e.ajaxError($0U);}};this.$6U=function($0V){$e.$5a($0V.responseText);};this.$6R=function(){var h={};h.v=this.v;h.control="dps";h.id=this.id;h.startDate=$e.startDate;h.days=$e.days;h.cellDuration=$e.cellDuration;h.cellGroupBy=$e.cellGroupBy;h.cellWidth=$e.cellWidth;h.cellWidthSpec=$e.cellWidthSpec;h.viewType=$e.viewType;h.hourNameBackColor=$e.hourNameBackColor;h.showNonBusiness=$e.showNonBusiness;h.businessBeginsHour=$e.businessBeginsHour;h.businessEndsHour=$e.businessEndsHour;h.weekStarts=$e.weekStarts;h.treeEnabled=$e.treeEnabled;h.backColor=$e.cellBackColor;h.nonBusinessBackColor=$e.cellBackColorNonBusiness;h.locale=$e.locale;h.timeZone=$e.timeZone;h.tagFields=$e.tagFields;h.timeHeaders=$e.timeHeaders;h.cssOnly=$e.cssOnly;h.cssClassPrefix=$e.cssClassPrefix;h.durationBarMode=$e.durationBarMode;h.showBaseTimeHeader=$e.showBaseTimeHeader;h.rowHeaderColumns=$e.rowHeaderColumns;h.scale=$e.scale;h.clientState=$e.clientState;if(this.nav.scroll){h.scrollX=this.nav.scroll.scrollLeft;h.scrollY=this.nav.scroll.scrollTop;};h.selected=$e.multiselect.events();h.hashes=$e.hashes;var $u=$e.$6W(h.scrollX,h.scrollY);var $0O=$e.$6X($u);var $0W=$e.$6Y($u);h.rangeStart=$0O.start;h.rangeEnd=$0O.end;h.resources=$0W;h.dynamicLoading=$e.dynamicLoading;if(this.syncResourceTree){h.tree=this.$6Z();};return h;};this.getViewPort=function(){var scrollX=this.nav.scroll.scrollLeft;var scrollY=this.nav.scroll.scrollTop;var $u=this.$6W(scrollX,scrollY);var $0O=this.$6X($u);var $0X=this.$6Y($u);var $f={};$f.start=$0O.start;$f.end=$0O.end;$f.resources=$0X;return $f;};this.$6W=function(scrollX,scrollY){var $u={};$u.start={};$u.end={};$u.start.x=Math.floor(scrollX/$e.cellWidth);$u.end.x=Math.floor((scrollX+$e.nav.scroll.clientWidth)/$e.cellWidth);$u.start.y=$e.$70(scrollY).i;$u.end.y=$e.$70(scrollY+$e.nav.scroll.clientHeight).i;var $0Y=this.itline.length;if($u.end.x>=$0Y){$u.end.x=$0Y-1;};return $u;};this.$6X=function($u){var $f={};if(this.itline.length<=0){$f.start=this.startDate;$f.end=this.startDate;return $f;};if(!this.itline[$u.start.x]){throw 'Internal error: area.start.x is null.';};$f.start=this.itline[$u.start.x].start;$f.end=this.itline[$u.end.x].end;return $f;};this.$6Y=function($u){if(!$u){var $u=this.$6W(this.nav.scroll.scrollLeft,this.nav.scroll.scrollTop);};var $0W=[];$0W.ignoreToJSON=true;for(var i=$u.start.y;i<=$u.end.y;i++){var r=$e.rows[i];if(r&&!r.Hidden){$0W.push(r.Value);}};return $0W;};this.$6Z=function(){var $0Z=[];$0Z.ignoreToJSON=true;for(var i=0;i0){continue;};var $10=this.$71(i);$0Z.push($10);};return $0Z;};this.$72=function($11){var $12=[];$12.ignoreToJSON=true;for(var i=0;i<$11.length;i++){$12.push(this.$71($11[i]));};return $12;};this.$71=function(i){var $t=this.rows[i];var $10={};$10.Value=$t.Value;$10.BackColor=$t.BackColor;$10.Name=$t.Name;$10.InnerHTML=$t.InnerHTML;$10.ToolTip=$t.ToolTip;$10.Expanded=$t.Expanded;$10.Children=this.$72($t.Children);$10.Loaded=$t.Loaded;$10.IsParent=$t.IsParent;$10.Columns=this.$73($t);if($t.MinHeight!==$e.rowMinHeight){$10.MinHeight=$t.MinHeight;};if($t.MarginBottom!==$e.rowMarginBottom){$10.MarginBottom=$t.MarginBottom;};return $10;};this.$73=function($t){if(!$t.Columns||$t.Columns.length===0){return null;};var $13=[];$13.ignoreToJSON=true;for(var i=0;i<$t.Columns.length;i++){var c={};c.InnerHTML=$t.Columns[i].html;$13.push(c);};return $13;};this.$5L=function($14){var $15=this.theme||this.cssClassPrefix;if($15){return $15+$14;}else{return "";}};this.$74=function(){var $16=document.getElementById(id);$16.dispose=this.dispose;};this.dispose=function(){var c=$e;if(!c.nav.top){return;};c.$6S();c.$5q();c.divBreaks=null;c.divCells=null;c.divCorner=null;c.divCrosshair=null;c.divEvents=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.scrollRes=null;c.vsph=null;c.maind=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.igongo1=null;c.nav.scroll=null;DayPilot.ue(window,'resize',c.$75);DayPilotScheduler.unregister(c);};this.$76=function($17,$0w){var $18=$e.maind;var $19=$e.$77($17);var event=$17.event;var $P=event.part.height||$e.$78.eventHeight();var top=(event.part&&event.part.top)?(event.part.top+$e.rows[event.part.dayIndex].Top):$19.top;var $1a=document.createElement('div');$1a.setAttribute('unselectable','on');$1a.style.position='absolute';$1a.style.width=($19.width)+'px';$1a.style.height=$P+'px';$1a.style.left=$19.left+'px';$1a.style.top=top+'px';$1a.style.zIndex=101;$1a.style.overflow='hidden';var $E=document.createElement("div");$1a.appendChild($E);if(this.cssOnly){$1a.className=this.$5L("_shadow");$E.className=this.$5L("_shadow_inner");};if(!this.cssOnly){if($0w==='Fill'){$E.style.backgroundColor="#aaaaaa";$E.style.opacity=0.5;$E.style.filter="alpha(opacity=50)";$E.style.height="100%";if($17&&$17.event&&$17.style){$E.style.fontSize=$17.style.fontSize;$E.style.fontFamily=$17.style.fontFamily;$E.style.color=$17.style.color;$E.innerHTML=$17.event.client.innerHTML();}}else{$1a.style.paddingTop="2px";$E.style.border='2px dotted #666666';}};$18.appendChild($1a);$1a.calendar=$e;return $1a;};this.$70=function(y){var $f={};var element;var top=0;var $1b=0;var $1c=this.rows.length;for(var i=0;i<$1c;i++){var $t=this.rows[i];if($t.Hidden){continue;};$1b+=$t.Height;if(y<$1b||i===$1c-1){top=$1b-$t.Height;element=$t;break;}};$f.top=top;$f.bottom=$1b;$f.i=i;$f.element=element;return $f;};this.$79=function(i){var top=0;var $M=0;var $1d=0;if(i>this.rows.length-1){throw "Row index too high (DayPilotScheduler._getRowByIndex)";};for(var j=0;j<=i;j++){var $t=this.rows[j];if($t.Hidden){continue;};$M+=$t.Height;$1d++;};top=$M-$t.Height;var $f={};$f.top=top;$f.height=$t.Height;$f.bottom=$M;$f.i=$1d-1;$f.data=$t;return $f;};this.$7a=function(){if(this.backendUrl||typeof WebForm_DoCallback==='function'){return(typeof $e.events.list==='undefined')||(!$e.events.list);}else{return false;}};this.events.find=function(id){if(!$e.events.list||typeof $e.events.list.length==='undefined'){return null;};var $1e=$e.events.list.length;for(var i=0;i<$1e;i++){if($e.events.list[i].id===id){return new DayPilot.Event($e.events.list[i],$e);}};return null;};this.events.findRecurrent=function($1f,$0k){if(!$e.events.list||typeof $e.events.list.length==='undefined'){return null;};var $1e=$e.events.list.length;for(var i=0;i<$1e;i++){if($e.events.list[i].recurrentMasterId===$1f&&$e.events.list[i].start.getTime()===$0k.getTime()){return new DayPilot.Event($e.events.list[i],$e);}};return null;};this.events.$6j=function($m){var $0A=[];for(var i=0;i<$e.rows.length;i++){var $t=$e.rows[i];$e.$7b(i);for(var r=0;r<$t.events.length;r++){if($t.events[r].data===$m){$0A.push(i);$t.events.splice(r,1);break;}}};return $0A;};this.events.$6k=function($m){var $0A=[];for(var i=0;i<$e.rows.length;i++){var $t=$e.rows[i];$e.$7b(i);var ep=$e.$7c($m,$t);if(ep){var $1d=DayPilot.indexOf($e.events.list,ep.data);$e.$7d($1d);if(typeof $e.onBeforeEventRender==='function'){ep.cache=$e.$59.events[$1d];};$0A.push(i);}};return $0A;};this.events.update=function(e,$m){var $0s={};$0s.oldEvent=new DayPilot.Event(e.copy(),$e);$0s.newEvent=new DayPilot.Event(e.temp(),$e);var $0y=new DayPilot.Action($e,"EventUpdate",$0s,$m);var $0A=$e.events.$6j(e.data);e.commit();$0A=$0A.concat($e.events.$6k(e.data));$e.$6l($0A);$e.$6m();$e.$6n($0A);$e.$5o();return $0y;};this.events.remove=function(e,$m){var $0s={};$0s.e=new DayPilot.Event(e.data,$e);var $0y=new DayPilot.Action($e,"EventRemove",$0s,$m);var $1d=DayPilot.indexOf($e.events.list,e.data);$e.events.list.splice($1d,1);var $0A=$e.events.$6j(e.data);$e.$6l($0A);$e.$6m();$e.$6n($0A);return $0y;};this.events.add=function(e,$m){e.calendar=$e;if(!$e.events.list){$e.events.list=[];};$e.events.list.push(e.data);var $0s={};$0s.e=e;var $0y=new DayPilot.Action($e,"EventAdd",$0s,$m);var $0A=$e.events.$6k(e.data);$e.$6l($0A);$e.$6m();$e.$6n($0A);if($e.viewType==="Gantt"&&$e.initialized){$e.update();};return $0y;};this.queue={};this.queue.list=[];this.queue.list.ignoreToJSON=true;this.queue.add=function($0y){if(!$0y){return;};if($0y.isAction){$e.queue.list.push($0y);}else{throw "DayPilot.Action object required for queue.add()";}};this.queue.notify=function($m){var $0s={};$0s.actions=$e.queue.list;$e.$67('Notify',$0s,$m,"Notify");$e.queue.list=[];};this.queue.clear=function(){$e.queue.list=[];};this.queue.pop=function(){return $e.queue.list.pop();};this.cells.find=function($v,$0N){var $s=$e.getPixels(new DayPilot.Date($v));if(!$s){return $1g();};var x=$s.i;var $t=$e.$5D($0N);if(!$t){return $1g();};var top=$t.Top;var y=$e.$70(top).i;return this.findXy(x,y);};this.cells.findByPixels=function(x,y){var $0i=$e.$61(x);if(!$0i){return $1g();};var x=$0i.x;var $t=$e.$70(y);if(!$t){return $1g();};var y=$t.i;return this.findXy(x,y);};this.cells.all=function(){var $0D=[];var $0Y=$e.itline.length;var $1h=$e.rows.length;for(var x=0;x<$0Y;x++){for(var y=0;y<$1h;y++){var $z=$e.cells.findXy(x,y);$0D.push($z[0]);}};return $1g($0D);};this.cells.findXy=function(x,y){if(x===null||y===null){return $1g();};var $0i=$e.itline[x];var $z={};$z.x=x;$z.y=y;$z.i=x+"_"+y;$z.resource=$e.rows[y].Value;$z.start=$0i.start;$z.end=$0i.end;$z.update=function(){if(!$e.rows[$z.y].Hidden){var $u=$e.$5G();if($u.xStart<=$z.x&&$z.x<=$u.xEnd){if($u.yStart<=$z.y&&$z.y<=$u.yEnd){var $0z=$e.$59.cells[$z.i];$e.$7e($0z);$e.$7f($z.x,$z.y);}}}};$z.div=$e.$59.cells[$z.i];if(!$e.cellProperties){$e.cellProperties=[];};if($e.cellProperties){var p=$e.$7g(x,y);if(!p){p={};$e.cellProperties[$z.i]=p;};$z.properties=p;};return $1g($z);};var $1g=function(a){var $0D=[];if(DayPilot.isArray(a)){for(var i=0;i$v.getTime()&&$r.getTime()<$v.addDays(1).getTime()){return $v;}};return null;};this.$7j=function($r){if($r.ticks===this.startDate.ticks){return $r;};var $1m=this.startDate;if($r.ticks$r.ticks){$1m=$1m.addTime(-$1n);};return $1m;};if($e.viewType==='Days'){var $1o=this.$7i($r);var $0e=$1o.getTime()-$e.startDate.getTime();var $z=this.$63($r.addTime(-$0e));if($z.current){return $z.current.start.addTime($0e);};if($z.past){return $z.previous.end.addTime($0e);};throw "getBoxStart(): time not found";}else{var $z=this.$63($r);if($z.current){return $z.current.start;};if($z.past){return $z.previous.end;};if($z.hidden){var $1p=$z.next.start.getTime()-$r.getTime();var $1q=$z.next.end.getTime()-$z.next.start.getTime();var $1r=Math.ceil($1p/$1q)*$1q;var $f=$z.next.start.addTime(-$1r);return $f;};throw "getBoxStart(): time not found";}};this.$77=function($17){var $t=this.$70($e.coords.y);var e=$17.event;if(typeof e.end !=='function'){alert("e.end function is not defined");};if(!e.end()){alert("e.end() returns null");};var $0l=DayPilot.Date.diff(e.end().d,e.start().d);var $1s=$04.useBox($0l);var $1t=e.start().getDatePart();var $1u=0;var x=$e.coords.x;if($e.scale==="Manual"){var $1v=(function(){var end=$e.getDate($e.coords.x,true,true);var $v=end.addTime(-$0l);var $1w=$e.getPixels($v).boxLeft;var $1x=$e.getPixels(end).boxRight;var end=Math.min($1x,$e.coords.x);return end -$1w;})();var $0e=Math.min(DayPilotScheduler.moveOffsetX,$1v);x=$e.coords.x-$0e;};if($1s){var $z=$e.$63(e.start());var $1y=!$z.hidden&&!$z.past;$1u=e.start().getTime()-this.$7j(e.start()).getTime();if($1y){$1u=(function($1z,$0e){var $1A=$e.$7k($e.$63($1z).current);var $1B=$e.$7k($e.$61(x).cell);if($1A>$1B*1.2){var $1C=$0e>0?1:-1;var $0e=Math.abs($0e);while($0e>=$1B){$0e-=$1B;};$0e*=$1C;};return $0e;})(e.start(),$1u);}};var $1D=0;if(DayPilotScheduler.moveDragStart&&$e.scale!=="Manual"){if($1s){$1D=DayPilotScheduler.moveDragStart.getTime()-this.$7j(e.start()).getTime();var $1E=$e.$7l()*60*1000;$1D=Math.floor($1D/$1E)*$1E;}else{$1D=DayPilotScheduler.moveDragStart.getTime()-e.start().getTime();}}else{$1D=0;};if(this.eventMoveToPosition){$1D=0;};var $v=this.getDate(x,true).addTime(-$1D);if(DayPilotScheduler.resizing){$v=e.start();};if(this.snapToGrid){if($e.viewType==="Days"){$v=this.$7j($v);}else{$v=this.$7j($v);}};$v=$v.addTime($1u);var end=$v.addTime($0l);var $1F=$v;var $1G=end;if(this.viewType==='Days'){var $1H=this.rows[e.part.dayIndex].Start.getTime()-this.startDate.getTime();var $1F=$v.addTime(-$1H);var $1G=$1F.addTime($0l);var $1I=$t.element.data.start.getTime()-this.startDate.getTime();$v=$1F.addTime($1I);end=$v.addTime($0l);};var $1J=this.getPixels($1F);var $1K=this.getPixels($1G);var $x=($1s)?$1J.boxLeft:$1J.left;var $V=($1s)?($1K.boxRight-$x):($1K.left-$x);var $19={};$19.top=$t.top;$19.left=$x;$19.row=$t.element;$19.rowIndex=$t.i;$19.width=$V;$19.start=$v;$19.end=end;$19.relativeY=$e.coords.y-$t.top;return $19;};this.$7l=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.$7k=function($0i){return $0i.end.ticks-$0i.start.ticks;};this.$7m=function(y){return this.treePreventParentUsage&&this.$7n(y);};this.$7n=function(y){var $t=this.rows[y];if($t.IsParent){return true;};if(this.treeEnabled){if($t.Children&&$t.Children.length>0){return true;}};return false;};this.$7o={};this.$7p=function(){var $19=this.$77(DayPilotScheduler.moving);var y=$19.rowIndex;var $1L=this.$7n(y);var $1M=this.$7o;if($1M.timeout&&$1M.y!==y){clearTimeout($1M.timeout);$1M.timeout=null;};if($1L){$1M.y=y;if(!$1M.timeout){$1M.timeout=setTimeout(function(){var $1N=!$e.rows[$1M.y].Expanded;if($1N){$e.$7q($1M.y);$e.$7r();};$1M.timeout=null;},500);}}};this.$7r=function(){var scroll=this.nav.scroll;if(!$e.coords){return;};var $1a=DayPilotScheduler.movingShadow;var $19=this.$77(DayPilotScheduler.moving);var ev=DayPilotScheduler.moving.event;var $1O=0;(function(){var y=$19.relativeY;var $t=$19.row;var $1P=$t.lines.length;var top=0;var lh=$e.$78.eventHeight();var $1Q=$t.lines.length;for(var i=0;i<$t.lines.length;i++){var $03=$t.lines[i];if($03.isFree($19.left,$e.cellWidth)){$1Q=i;break;}};var $0j=Math.floor((y-top+lh/ 2)/ lh);var $0j=Math.min($1Q,$0j);var $0j=Math.max(0,$0j);$1O=$0j;})();var $1R=(ev.cache&&typeof ev.cache.moveVDisabled!=='undefined')?!ev.cache.moveVDisabled:!ev.data.moveVDisabled;var $1S=(ev.cache&&typeof ev.cache.moveHDisabled!=='undefined')?!ev.cache.moveHDisabled:!ev.data.moveHDisabled;var $1T=$1O*$e.$78.eventHeight();if($1T>0){$1T-=3;};if($1R){if(!this.$7m($19.rowIndex)){$1a.row=$19.row;$1a.style.height=Math.max($19.row.Height,0)+'px';$1a.style.top=($19.top)+'px';if($e.eventMoveToPosition){$1a.style.top=($19.top+$1T)+"px";$1a.style.height="3px";$1a.line=$1O;}}else{var $1U=$1a.row;var $1V=$19.rowIndex<$1U.Index?1:-1;for(var i=$19.rowIndex;i!==$1U.Index;i+=$1V){var $t=this.rows[i];if(!this.$7m(i)&&!$t.Hidden){$1a.style.top=($t.Top)+'px';$1a.style.height=Math.max($t.Height,0)+'px';$1a.row=$t;if($e.eventMoveToPosition){$1O=$1V>0?0:$t.lines.length-1;$1a.style.top=($19.top+$1T)+"px";$1a.style.height="3px";$1a.line=$1O;};break;}}}}else{var $1U=this.rows[this.$70(parseInt($1a.style.top)).i];var $1Q=$1U.lines.length;for(var i=0;i<$1U.lines.length;i++){var $03=$1U.lines[i];if($03.isFree($19.left,$e.cellWidth)){$1Q=i;break;}};$1a.style.height=Math.max($1U.Height,0)+'px';$1a.style.top=($1U.Top)+'px';$1a.row=$1U;if($e.eventMoveToPosition){if($19.row===$1U){$1a.style.top=($1U.Top+$1T)+"px";$1a.style.height="3px";$1a.line=$1O;}else{var $0j=($19.rowIndex>$1U.Index&&$1Q>0)?$1Q*$e.$78.eventHeight()-3:0;$1a.style.top=($1U.Top+$0j)+"px";$1a.style.height="3px";$1a.line=0;}}};if($1S){$1a.style.left=$19.left+'px';if($e.eventMoveToPosition){$1a.style.width=($e.cellWidth)+'px';}else{$1a.style.width=($19.width)+'px';};$1a.start=$19.start;$1a.end=$19.end;}else{$1a.start=ev.start();$1a.end=ev.end();};if(typeof $e.onEventMoving==='function'){(function(){var $0f=$e.$7s;if($0f&&$0f.start.getTime()===$1a.start.getTime()&&$0f.end.getTime()===$1a.end.getTime()&&$0f.resource===$1a.row.Value){return;};var $q={};$q.start=$1a.start;$q.end=$1a.end;$q.e=ev;$q.resource=$1a.row.Value;$q.position=$1a.line;$q.left={};$q.left.html=$q.start.toString("HH:mm");$q.left.width=90;$q.right={};$q.right.html=$q.end.toString("HH:mm");$q.right.width=90;$e.$7s=$q;$e.onEventMoving($q);$e.$7t($q);})();}};this.$7t=function($q){var $1a=DayPilotScheduler.movingShadow;var $1W=5;this.$7u();var $0j={};$0j.left=parseInt($1a.style.left);$0j.top=parseInt($1a.style.top);$0j.right=$0j.left+parseInt($1a.style.width);var $x=document.createElement("div");$x.style.position="absolute";$x.style.left=($0j.left-$q.left.width-$1W)+"px";$x.style.top=$0j.top+"px";$x.style.height=$e.eventHeight+"px";$x.style.width=$q.left.width+"px";$x.style.overflow="hidden";$x.innerHTML=$q.left.html;$x.className=this.$5L("_event_move_left");if($q.left.visible){$e.divHover.appendChild($x);};var $y=document.createElement("div");$y.style.position="absolute";$y.style.left=($0j.right+$1W)+"px";$y.style.top=$0j.top+"px";$y.style.height=$e.eventHeight+"px";$y.style.width=$q.right.width+"px";$y.style.overflow="hidden";$y.innerHTML=$q.right.html;$y.className=this.$5L("_event_move_right");if($q.right.visible){$e.divHover.appendChild($y);}};this.$7u=function(){$e.divHover.innerHTML='';};this.$7v=function(){if(this.rowHeaderColumns){this.rowHeaderCols=DayPilot.Util.propArray(this.rowHeaderColumns,"width");}};this.$5O=function(){var $1X=0;this.$7v();if(this.rowHeaderCols){for(var i=0;ithis.rowHeaderCols[i]){this.rowHeaderCols[i]=$1Q[i];$22=true;};$21+=this.rowHeaderCols[i];}}}else{if(this.rowHeaderWidth<$1Q[0]){$21=$1Q[0];$22=true;}};if($22){if(this.$7y){this.$7y.widths=this.rowHeaderCols;this.$7y.updateWidths();DayPilot.Util.updatePropsFromArray(this.rowHeaderColumns,"width",this.rowHeaderCols);};this.rowHeaderWidth=$21;this.$7z();this.$7A();}};this.$5i=function(){var parent=this.divResScroll;DayPilot.puc(parent);parent.innerHTML='';this.$7v();var $23=this.rowHeaderCols;var $13=$23?this.rowHeaderCols.length:0;var $1X=this.$5O();var $1Y=document.createElement("table");$1Y.style.borderCollapse="collapse";$1Y.style.KhtmlUserSelect="none";$1Y.style.MozUserSelect="none";$1Y.style.webkitUserSelect="none";$1Y.style.width=$1X+"px";$1Y.style.border="0px none";$1Y.cellSpacing=0;$1Y.cellPadding=0;$1Y.onmousemove=function(){$e.$7B();};if(!this.cssOnly){$1Y.className=this.$5L("resourceheader");};this.divHeader=$1Y;var m=this.rows.length;for(var i=0;i0){if($t.Expanded){if(this.treeImageCollapse&&!this.cssOnly){$1M.style.backgroundImage="url('"+this.treeImageCollapse+"')";};$1M.className=this.cssOnly?this.$5L('_tree_image_collapse'):this.$5L('tree_image_collapse');}else{if(this.treeImageExpand&&!this.cssOnly){$1M.style.backgroundImage="url('"+this.treeImageExpand+"')";};$1M.className=this.cssOnly?this.$5L('_tree_image_expand'):this.$5L('tree_image_expand');};$1M.style.cursor='pointer';$1M.index=i;$1M.onclick=function(ev){$e.$7q(this.index);ev=ev||window.event;ev.cancelBubble=true;};}else{if(this.treeImageNoChildren&&!this.cssOnly){$1M.style.backgroundImage="url('"+this.treeImageNoChildren+"')";};$1M.className=this.cssOnly?this.$5L('_tree_image_no_children'):this.$5L('tree_image_no_children');};$E.appendChild($1M);};var $25=document.createElement("div");if(this.treeEnabled){$25.style.marginLeft=(($t.Level+1)*this.treeIndent)+'px';}else if(!this.cssOnly){$25.style.marginLeft="4px";};$25.innerHTML=$t.InnerHTML;$E.appendChild($25);c.appendChild($B);if($t.areas){for(var j=0;j<$t.areas.length;j++){var $u=$t.areas[j];if($u.v!=='Visible'){continue;};var a=DayPilot.Areas.createArea($B,$t,$u);$B.appendChild(a);}};if(!$t.Columns||$t.Columns.length===0){c.colSpan=$13>0?$13:1;$B.style.width=$1X+"px";}else{for(var j=1;j<$13;j++){var c=r.insertCell(-1);c.row=$t;c.index=i;if(!this.cssOnly){c.style.borderRight="1px solid "+this.borderColor;c.style.backgroundColor=$t.BackColor;c.style.fontFamily=this.headerFontFamily;c.style.fontSize=this.headerFontSize;c.style.color=this.headerFontColor;c.style.cursor='default';c.style.padding='0px';};if($t.ToolTip){c.title=$t.ToolTip;};c.setAttribute("unselectable","on");if(!this.cssOnly){c.className=this.$5L('rowheader');};c.setAttribute('resource',$t.Value);c.onmousemove=$e.$7C;c.onmouseout=$e.$7D;c.oncontextmenu=$e.$7E;c.onclick=$e.$7F;var $B=document.createElement("div");var w=this.cssOnly?$23[j]:$23[j]-1;if($t.BackColor){$B.style.backgroundColor=$t.BackColor;};$B.style.width=w+"px";$B.style.height=($t.Height)+"px";$B.style.overflow='hidden';$B.style.position='relative';$B.setAttribute("unselectable","on");if(this.cssOnly){DayPilot.Util.addClass($B,this.$5L("_rowheader"));DayPilot.Util.addClass($B,this.$5L("_rowheadercol"));DayPilot.Util.addClass($B,this.$5L("_rowheadercol"+j));};if($t.CssClass){DayPilot.Util.addClass($B,$t.CssClass);};var $E=document.createElement("div");$E.setAttribute("unselectable","on");if(this.cssOnly){$E.className=this.$5L("_rowheader_inner");};$B.appendChild($E);var $24=document.createElement("div");$24.style.position="absolute";$24.style.bottom="0px";$24.style.width=($23[j]-1)+"px";$24.style.height="1px";$24.className=this.$5L("_resourcedivider");if(!this.cssOnly){$24.style.backgroundColor=this.borderColor;};$B.appendChild($24);var $25=document.createElement("div");if(!this.cssOnly){$25.style.marginLeft='4px';};var $26=$t.Columns[j-1]?$t.Columns[j-1].html:"";$25.innerHTML=$26;$E.appendChild($25);c.appendChild($B);}}};var r=$1Y.insertRow(-1);var c=r.insertCell(-1);c.colSpan=$13+1;c.style.width=$1X+"px";c.style.height=(parent.clientHeight+20)+"px";if(!this.cssOnly){c.style.backgroundColor=this.hourNameBackColor;c.style.cursor='default';};c.setAttribute("unselectable","on");if(!this.cssOnly){c.className=this.$5L('rowheader');c.style.fontSize="1px";c.innerHTML=" ";};if(this.cssOnly){var $B=document.createElement("div");$B.style.position="relative";$B.style.height="100%";$B.className=this.$5L('_rowheader');c.appendChild($B);};parent.appendChild($1Y);if(this.rowHeaderWidthAutoFit){this.$7w();}};this.$7E=function(){var $t=this.row;var r={};r.type='resource';r.start=$t.Start;r.name=$t.Name;r.value=$t.Value;r.id=$t.Value;r.index=this.index;r.igongo1=$e;r.toJSON=function($27){var $0T={};$0T.start=this.start;$0T.name=this.name;$0T.value=this.value;$0T.index=this.index;return $0T;};if($t.contextMenu){$t.contextMenu.show(r);};return false;};this.$7F=function(ev){var $t=this.row;var r=$e.$7H($t,this.index);$e.$6L(r);};this.$7I=function(ev){var $z={};$z.start=this.cell.start;$z.level=this.cell.level;if(!$z.end){$z.end=new DayPilot.Date($z.start).addMinutes($e.cellDuration);};$e.$6M($z);};this.$7H=function($t,$1d){var r={};r.type='resource';r.start=$t.Start;r.name=$t.Name;r.value=$t.Value;r.id=$t.Value;r.index=$1d;r.igongo1=$e;r.toJSON=function($27){var $0T={};$0T.start=this.start;$0T.name=this.name;$0T.value=this.value;$0T.id=this.id;$0T.index=this.index;return $0T;};return r;};this.$7b=function(i){var $t=this.rows[i];if(!$t.events){$t.events=[];};if($t.data){return;};$t.data={};$t.data.start=new DayPilot.Date($t.Start);$t.data.startTicks=$t.data.start.getTime();$t.data.end=$04.isResourcesView()?this.$7J():$t.data.start.addDays(1);$t.data.endTicks=$t.data.end.getTime();$t.data.offset=$t.Start.getTime()-this.$7K().getTime();$t.data.i=i;};this.$5h=function($0B,$28){var $29=[];var $k=[];var $1l=null;if($0B&&$28){var $2a=$0B;var $1l=[];for(var i=0;i<$2a.length;i++){var e=$2a[i];var $0b=false;for(var j=0;j=$t.data.endTicks)||($2f===$2g&&$2f===$t.data.startTicks);break;case 'Resources':$2h=($t.Value===e.resource||$t.Value==="*"||e.resource==="*")&&(!($2g<=$t.data.startTicks||$2f>=$t.data.endTicks)||($2f===$2g&&$2f===$t.data.startTicks));break;case 'Gantt':$2h=($t.Value===e.id)&&!($2g<=$t.data.startTicks||$2f>=$t.data.endTicks);break;};if(!$2h){return null;};var ep=new DayPilot.Event(e,$e);ep.part.dayIndex=$t.data.i;ep.part.start=$t.data.startTicks<$2f?ep.start():$t.data.start;ep.part.end=$t.data.endTicks>$2g?ep.end():$t.data.end;var $2i=this.getPixels(ep.part.start.addTime(-$t.data.offset));var $2j=this.getPixels(ep.part.end.addTime(-$t.data.offset));var $x=$2i.left;var $y=$2j.left;if($x===$y&&($2i.cut||$2j.cut)){return null;};ep.part.box=$04.useBox($2g-$2f);if(ep.part.box){var $2k=$2i.boxLeft;var $2l=$2j.boxRight;ep.part.left=$2k;ep.part.width=$2l-$2k;ep.part.barLeft=Math.max($x-ep.part.left,0);ep.part.barWidth=Math.max($y-$x,1);}else{ep.part.left=$x;ep.part.width=Math.max($y-$x,0);ep.part.barLeft=0;ep.part.barWidth=Math.max($y-$x-1,1);};$t.events.push(ep);return ep;};this.$7O=function(a,b){if(!a||!b||!a.start||!b.start){return 0;};var $2m=a.start().ticks-b.start().ticks;if($2m!==0){return $2m;};var $2n=b.end().ticks-a.end().ticks;return $2n;};this.$7N=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 $e.$7O(a,b);};var $f=0;var i=0;while($f===0&&a.data.sort[i]&&b.data.sort[i]){if(a.data.sort[i]===b.data.sort[i]){$f=0;}else{$f=$e.$7P(a.data.sort[i],b.data.sort[i],$e.sortDirections[i]);};i++;};return $f;};this.$7P=function(a,b,$2o){var $2p=($2o!=="desc");var $2q=$2p?-1:1;var $2r=-$2q;if(a===null&&b===null){return 0;};if(b===null){return $2r;};if(a===null){return $2q;};var ar=[];ar[0]=a;ar[1]=b;ar.sort();return a===ar[0]?$2q:$2r;};this.$5f=function(){this.rows=[];this.hasChildren=false;var $0X=this.resources;var $2s=this.$5T();if(!$2s){if(this.viewType==="Gantt"){$0X=this.$7Q();}else if(this.viewType==="Days"){$0X=this.$7R();}};var $1d={};$1d.i=0;this.$7S($0X,$1d,0,null,this.treeEnabled,false);};this.$7Q=function(){var $0D=[];if(this.ganttAppendToResources&&this.resources){for(var i=0;i0){return this.itline[0].start;};return this.startDate;};this.$7J=function(){if(this.itline&&this.itline.length>0){return this.itline[this.itline.length-1].end;};return this.startDate.addDays(this.days);};this.$7S=function($0X,$1d,$2u,parent,$2v,$2w){if(!$0X){return;};for(var i=0;i<$0X.length;i++){if(!$0X[i]){continue;};var $2x={};$2x.level=$2u;$2x.hidden=$2w;$2x.index=$1d.i;var $0W=this.$7T($0X[i],$2x);var $t={};$t.BackColor=$0W.backColor;$t.CssClass=$0W.cssClass;$t.Expanded=$0W.expanded;$t.Name=$0W.name;$t.InnerHTML=$0W.html?$0W.html:$t.Name;$t.MinHeight=typeof $0W.minHeight!=='undefined'?$0W.minHeight:$e.rowMinHeight;$t.MarginBottom=typeof $0W.marginBottom!=='undefined'?$0W.marginBottom:$e.rowMarginBottom;$t.Loaded=!$0W.dynamicChildren;$t.Value=$0W.id||$0W.value;$t.ToolTip=$0W.toolTip;$t.Children=[];$t.Columns=[];$t.Start=$0W.start?new DayPilot.Date($0W.start):this.$7K();$t.IsParent=$0W.isParent;$t.contextMenu=$0W.contextMenu?eval($0W.contextMenu):this.contextMenuResource;$t.areas=$0W.areas;$t.Height=this.$78.eventHeight();$t.Hidden=$2w;$t.Level=$2u;$t.Index=$1d.i;$t.Resource=$0X[i];$t.lines=[];$t.isRow=true;$t.height=function(){var $2y=Math.max(1,this.lines.length);var $2z=$e.durationBarDetached?($e.$78.eventHeight()+10):$e.$78.eventHeight();var $P=$2y*$2z+this.MarginBottom;return($P>this.MinHeight)?$P:this.MinHeight;};$t.putIntoLine=function(ep){var $2A=this;for(var i=0;ie.part.left+e.part.width-1)){return false;}};return true;};$03.push(ep);this.lines.push($03);return this.lines.length-1;};this.rows.push($t);if(parent!==null){parent.Children.push($1d.i);};if($0W.columns){for(var j=0;j<$0W.columns.length;j++){$t.Columns.push($0W.columns[j]);}};$1d.i++;if($2v&&$0W.children&&$0W.children.length){this.hasChildren=true;var $2D=$2w||!$t.Expanded;this.$7S($0W.children,$1d,$2u+1,$t,true,$2D);}}};this.$7T=function($0W,$2x){var r={};for(var name in $0W){r[name]=$0W[name];};if(typeof $0W.html==='undefined'){r.html=$0W.name;};for(var name in $2x){r[name]=$2x[name];};if(typeof this.onBeforeResHeaderRender==='function'){var $q={};$q.resource=r;this.onBeforeResHeaderRender($q);};return r;};this.$7U=function(){this.nav.top=document.getElementById(this.id);this.nav.top.dp=this;this.nav.top.innerHTML="";if(!this.cssOnly){this.nav.top.style.border="1px solid "+this.borderColor;}else{DayPilot.Util.addClass(this.nav.top,this.$5L("_main"));};this.nav.top.style.MozUserSelect='none';this.nav.top.style.KhtmlUserSelect='none';this.nav.top.style.webkitUserSelect='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";this.nav.top.onmousemove=function(ev){ev=ev||window.event;ev.insideMainD=true;if(window.event){window.event.srcElement.inside=true;}};this.nav.top.ontouchstart=$0m.onMainTouchStart;this.nav.top.ontouchmove=$0m.onMainTouchMove;this.nav.top.ontouchend=$0m.onMainTouchEnd;if(this.hideUntilInit){this.nav.top.style.visibility='hidden';};var $2E=this.$5O();var $2F=this.$78.layout();if($2F==='DivBased'){var $x=document.createElement("div");$x.style.position="absolute";$x.style.left="0px";$x.style.width=($2E)+"px";$x.appendChild(this.$7V());var $2G=document.createElement("div");$2G.style.height="1px";$2G.className=this.$5L("_divider_horizontal");if(!this.cssOnly){$2G.style.backgroundColor=this.borderColor;};$x.appendChild($2G);this.nav.dh1=$2G;$x.appendChild(this.$7W());this.nav.left=$x;var $2H=document.createElement("div");$2H.style.position="absolute";$2H.style.left=($2E)+"px";$2H.style.width="1px";$2H.style.height=(this.$5N()+this.$5Q())+"px";$2H.className=this.$5L("_divider");if(!this.cssOnly){$2H.style.backgroundColor=this.borderColor;};this.nav.divider=$2H;var $y=document.createElement("div");$y.style.marginLeft=($2E+1)+"px";$y.style.marginRight='1px';$y.style.position='relative';$y.appendChild(this.$7X());this.nav.right=$y;var $2I=document.createElement("div");$2I.style.height="1px";$2I.style.position="absolute";$2I.style.top=this.$5N()+"px";$2I.style.width="100%";$2I.className=this.$5L("_divider_horizontal");if(!this.cssOnly){$2I.style.backgroundColor=this.borderColor;};$y.appendChild($2I);this.nav.dh2=$2I;$y.appendChild(this.$7Y());var $2J=document.createElement("div");$2J.style.clear='left';this.nav.top.appendChild($x);this.nav.top.appendChild($2H);this.nav.top.appendChild($y);this.nav.top.appendChild($2J);}else{var $1Y=document.createElement("table");$1Y.cellPadding=0;$1Y.cellSpacing=0;$1Y.border=0;$1Y.style.position='absolute';if(!this.cssOnly){$1Y.style.backgroundColor=this.hourNameBackColor;};var $2K=$1Y.insertRow(-1);var $2L=$2K.insertCell(-1);$2L.appendChild(this.$7V());var $2M=$2K.insertCell(-1);$2M.appendChild(this.$7X());var $2N=$1Y.insertRow(-1);var $2O=$2N.insertCell(-1);$2O.appendChild(this.$7W());var $2P=$2N.insertCell(-1);$2P.appendChild(this.$7Y());this.nav.top.appendChild($1Y);};this.vsph=document.createElement("div");this.vsph.style.display="none";this.nav.top.appendChild(this.vsph);var $2Q=document.createElement("input");$2Q.type="hidden";$2Q.id=this.id+"_state";$2Q.name=this.id+"_state";this.nav.state=$2Q;this.nav.top.appendChild($2Q);var loading=document.createElement("div");loading.style.position='absolute';loading.style.left=(this.$5O()+5)+"px";loading.style.top=(this.$5N()+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.$5L("_loading"));this.nav.loading=loading;this.nav.top.appendChild(loading);};this.$5n=function(){var $P=this.$5N();this.nav.corner.style.height=($P)+"px";this.divTimeScroll.style.height=$P+"px";this.divNorth.style.height=$P+"px";if(this.nav.dh1&&this.nav.dh2){this.nav.dh1.style.top=$P+"px";this.nav.dh2.style.top=$P+"px";};this.nav.loading.style.top=($P+5)+"px";this.nav.scroll.style.top=($P+1)+"px";};this.$7z=function(){this.$7v();var $V=this.$5O();var $R=$V;this.nav.corner.style.width=$V+"px";this.divCorner.style.width=$V+"px";this.divResScroll.style.width=$V+"px";this.nav.left.style.width=($V)+"px";this.nav.divider.style.left=($V)+"px";this.nav.right.style.marginLeft=($V+1)+"px";if(this.nav.message){this.nav.message.style.paddingLeft=$V+"px";};if(this.nav.loading){this.nav.loading.style.left=($V+5)+"px";};var $2R=function($E,$V){if(!$E||!$E.style){return;};$z.style.width=$V+"px";$E.style.width=$V+"px";var $2H=$E.lastChild;if($2H){$2H.style.width=$V+"px";}};var $1Y=this.divHeader;$1Y.style.width=$V+"px";for(var i=0;i<$1Y.rows.length;i++){var $z=$1Y.rows[i].cells[0];if($z.colSpan>1){var $E=$1Y.rows[i].cells[0].firstChild;$2R($E,$R);}else{if(this.rowHeaderCols){for(var j=0;j<$1Y.rows[i].cells.length;j++){var $V=this.rowHeaderCols[j];var $E=$1Y.rows[i].cells[j].firstChild;$2R($E,$V);}}else{var $V=this.rowHeaderWidth;var $E=$1Y.rows[i].cells[0].firstChild;$2R($E,$V);}}};this.$7Z();};this.$80=function(){var $B=$e.nav.corner;var $2S=this.rowHeaderColumns;var $t=document.createElement("div");$t.style.position="absolute";$t.style.bottom="0px";$t.style.left="0px";$t.style.width="5000px";$t.style.height=$04.headerHeight()+"px";$t.style.overflow="hidden";$t.className=this.$5L("_columnheader");$B.appendChild($t);var $E=document.createElement("div");$E.style.position="absolute";$E.style.top="0px";$E.style.bottom="0px";$E.style.left="0px";$E.style.right="0px";$E.className=this.$5L("_columnheader_inner");$t.appendChild($E);var $2T=new DayPilot.Splitter($E);$2T.widths=DayPilot.Util.propArray($2S,"width");$2T.height=$04.headerHeight();$2T.css.title=this.$5L("_columnheader_cell");$2T.css.titleInner=this.$5L("_columnheader_cell_inner");$2T.css.splitter=this.$5L("_columnheader_splitter");$2T.titles=DayPilot.Util.propArray($2S,"title");$2T.updating=function($q){DayPilot.Util.updatePropsFromArray($e.rowHeaderColumns,"width",this.widths);$e.$7z();};$2T.color='#000000';$2T.opacity=30;$2T.init();this.$7y=$2T;};this.$6z=function(){var $B=this.nav.corner;$B.innerHTML='';$B.className=this.cssOnly?this.$5L('_corner'):this.$5L('corner');if(!this.cssOnly){$B.style.backgroundColor=this.hourNameBackColor;$B.style.fontFamily=this.hourFontFamily;$B.style.fontSize=this.hourFontSize;$B.style.cursor='default';};var $E=document.createElement("div");$E.style.position="absolute";$E.style.top="0px";$E.style.left="0px";$E.style.right="0px";$E.style.bottom="0px";if(this.cssOnly){$E.className=this.$5L('_corner_inner');};this.divCorner=$E;$E.innerHTML=' ';if(this.rowHeaderColumns&&this.rowHeaderColumns.length>0){var $2U=document.createElement("div");$2U.style.position="absolute";$2U.style.top="0px";$2U.style.left="0px";$2U.style.right="0px";$2U.style.bottom=($04.headerHeight()+1)+"px";$B.appendChild($2U);var $2H=document.createElement("div");$2H.style.position="absolute";$2H.style.left="0px";$2H.style.right="0px";$2H.style.height="1px";$2H.style.bottom=($04.headerHeight())+"px";$2H.className=this.$5L("_divider");$B.appendChild($2H);$2U.appendChild($E);this.$80();}else{$B.appendChild($E);};var $2V=document.createElement("div");$2V.style.position='absolute';$2V.style.padding='2px';$2V.style.top='0px';$2V.style.left='1px';$2V.style.backgroundColor="#EFEFEF";$2V.style.color="#EFEFEF";$2V.innerHTML="\u0044\u0045\u004D\u004F";if(this.numberFormat)$B.appendChild($2V);};this.$7V=function(){var $2E=this.$5O();var $B=document.createElement("div");$e.nav.corner=$B;$B.style.width=$2E+"px";$B.style.height=(this.$5N())+"px";$B.style.overflow='hidden';$B.style.position='relative';$B.setAttribute("unselectable","on");$B.onmousemove=function(){$e.$7B();};$B.oncontextmenu=function(){return false;};this.$6z();return $B;};this.$5N=function(){if(this.timeHeader){var $2W=this.timeHeader.length;if(!this.showBaseTimeHeader){$2W-=1;};return $2W*$04.headerHeight();};return 2*$04.headerHeight();};this.$7W=function(){var $B=document.createElement("div");if(!this.cssOnly){$B.style.backgroundColor=this.hourNameBackColor;};$B.style.width=(this.$5O())+"px";$B.style.height=this.$5Q()+"px";$B.style.overflow='hidden';$B.style.position='relative';$B.onmousemove=function(){$e.$7B();};$B.oncontextmenu=function(){return false;};this.divResScroll=$B;this.scrollRes=$B;return $B;};this.$81=function($B){if($04.layout()==='TableBased'){var $V=parseInt(this.width,10);var $2X=(this.width.indexOf("%")!==-1);var $2Y=/MSIE/i.test(navigator.userAgent);var $2E=this.$5O();if($2X){if(this.nav.top&&this.nav.top.offsetWidth>0){$B.style.width=(this.nav.top.offsetWidth-6-$2E)+"px";}}else{$B.style.width=($V-$2E)+"px";}}};this.$75=function(){if($e.$78.layout()==='TableBased'){$e.$81($e.nav.scroll);$e.$81($e.divTimeScroll);};$e.$5o();$e.$7A();};this.$7A=function(){if($e.cellWidthSpec!=='Auto'){return;};$e.debug.message("cell width recalc in _resize");$e.$5d();$e.$5e();$e.$5j();$e.$5p();$e.$5s();$e.$5r();$e.$5t();$e.$5q();$e.$5h();$e.$5u();};this.$5d=function(){return;if(this.cellWidthSpec!=='Auto'){return;};var $R=this.nav.top.clientWidth;var $2Z=this.$5O();var $0G=$R-$2Z;var $z=$0G/this.$5M();this.cellWidth=Math.floor($z);$e.debug.message("AutoCellWidth: "+this.cellWidth);};this.$5S=function(){var $R=this.nav.top.clientWidth;var $2Z=this.$5O();var $30=2;var $P=this.$5Q();var innerHeight=this.$82();var $31=0;if(innerHeight>$P){$31=DayPilot.swa();};var $0G=$R-$2Z-$30-$31;this.debug.message("scrollableWidth: "+$0G);return $0G;};this.$7X=function(){var $B=document.createElement("div");$B.style.overflow='hidden';if(!this.cssOnly){$B.style.backgroundColor=this.hourNameBackColor;};$B.style.position='absolute';$B.style.display='block';$B.style.top="0px";$B.style.width="100%";$B.style.height=this.$5N()+"px";$B.style.overflow="hidden";$B.onmousemove=function(){$e.$7B();if($e.cellBubble){$e.cellBubble.delayedHide();}};this.$81($B);this.divTimeScroll=$B;var $E=document.createElement("div");$E.style.width=(this.$5M()*this.cellWidth+5000)+"px";this.divNorth=$E;$B.appendChild($E);return $B;};this.$5Q=function(){var $P=0;if(this.heightSpec==='Fixed'||this.heightSpec==="Parent100Pct"){return this.height?this.height:0;}else{$P=this.$82();};if(this.heightSpec==='Max'&&$P>this.height){return this.height;};return $P;};this.$82=function(){var $P;if(this.innerHeightTree){var $32=DayPilot.sh($e.nav.scroll);if($32===0){$P=this.innerHeightTree;}else{$P=this.innerHeightTree+$32;}}else{$P=this.rows.length*this.$78.eventHeight();};return $P;};this.$7B=function(){this.$7Z();this.$83();this.$84();};this.$7Y=function(){var $B=document.createElement("div");$B.style.overflow="auto";$B.style.overflowX="auto";$B.style.overflowY="auto";$B.style.position="absolute";$B.style.height=(this.$5Q())+"px";$B.style.top=(this.$5N()+1)+"px";$B.style.width="100%";if(!this.cssOnly){$B.style.backgroundColor=this.emptyBackColor;};$B.className=this.$5L("_scrollable");$B.oncontextmenu=function(){return false;};this.$81($B);this.nav.scroll=$B;this.maind=document.createElement("div");this.maind.style.MozUserSelect="none";this.maind.style.KhtmlUserSelect="none";this.maind.style.webkitUserSelect="none";if($a){this.maind.style.webkitTransform="translateZ(0px)";};this.maind.style.position='absolute';var $33=this.$85();if($33>0&&!isNaN($33)){this.maind.style.width=($33)+"px";};this.maind.setAttribute("unselectable","on");this.maind.onmousedown=this.$86;this.maind.onmousemove=this.$87;this.maind.oncontextmenu=this.$88;this.maind.ondblclick=this.$89;this.maind.className=this.$5L("_matrix");this.divStretch=document.createElement("div");this.divStretch.style.position='absolute';this.divStretch.style.height='1px';this.maind.appendChild(this.divStretch);this.divCells=document.createElement("div");this.divCells.style.position='absolute';this.divCells.oncontextmenu=this.$88;this.maind.appendChild(this.divCells);this.divLines=document.createElement("div");this.divLines.style.position='absolute';this.divLines.oncontextmenu=this.$88;this.maind.appendChild(this.divLines);this.divBreaks=document.createElement("div");this.divBreaks.style.position='absolute';this.divBreaks.oncontextmenu=this.$88;this.maind.appendChild(this.divBreaks);this.divSeparators=document.createElement("div");this.divSeparators.style.position='absolute';this.divSeparators.oncontextmenu=this.$88;this.maind.appendChild(this.divSeparators);this.divCrosshair=document.createElement("div");this.divCrosshair.style.position='absolute';this.divCrosshair.ondblclick=this.$89;this.maind.appendChild(this.divCrosshair);this.divRange=document.createElement("div");this.divRange.style.position='absolute';this.divRange.oncontextmenu=this.$88;this.maind.appendChild(this.divRange);this.divEvents=document.createElement("div");this.divEvents.style.position='absolute';this.maind.appendChild(this.divEvents);this.divSeparatorsAbove=document.createElement("div");this.divSeparatorsAbove.style.position='absolute';this.divSeparatorsAbove.oncontextmenu=this.$88;this.maind.appendChild(this.divSeparatorsAbove);this.divHover=document.createElement("div");this.divHover.style.position='absolute';this.maind.appendChild(this.divHover);$B.appendChild(this.maind);return $B;};this.$6T=function(){if(this.loadingLabelVisible){$e.nav.loading.innerHTML=this.loadingLabelText;$e.nav.loading.style.display='';}};this.$5b=function($1k){$e.status.loadingEvents=false;if(this.callbackTimeout){window.clearTimeout(this.callbackTimeout);};if($1k){this.nav.loading.innerHTML=$1k;window.setTimeout(function(){$e.$5b();},1000);}else{this.nav.loading.style.display='none';}};this.$8a=function(){this.startDate=new DayPilot.Date(this.startDate).getDatePart();};this.$8b=function($34){var $B=document.createElement("div");$B.style.position="absolute";$B.style.top="-2000px";$B.style.left="-2000px";$B.className=this.$5L($34);document.body.appendChild($B);var $P=$B.offsetHeight;var $V=$B.offsetWidth;document.body.removeChild($B);var $f={};$f.height=$P;$f.width=$V;return $f;};this.$5A=function($35){if($35){this.autoRefreshEnabled=true;};if(!this.autoRefreshEnabled){return;};if(this.autoRefreshCount>=this.autoRefreshMaxCount){return;};this.$6S();var $36=this.autoRefreshInterval;if(!$36||$36<10){throw "The minimum autoRefreshInterval is 10 seconds";};this.autoRefreshTimeout=window.setTimeout(function(){$e.$8c();},this.autoRefreshInterval*1000);};this.$6S=function(){if(this.autoRefreshTimeout){window.clearTimeout(this.autoRefreshTimeout);}};this.$8c=function(){if(!DayPilotScheduler.resizing&&!DayPilotScheduler.moving&&!DayPilotScheduler.drag&&!DayPilotScheduler.range){var $37=false;if(typeof this.onAutoRefresh==='function'){var $q={};$q.i=this.autoRefreshCount;$q.preventDefault=function(){this.preventDefault.value=true;};$e.onAutoRefresh($q);if($q.preventDefault.value){$37=true;}};if(!$37){this.commandCallBack(this.autoRefreshCommand);};this.autoRefreshCount++;};if(this.autoRefreshCount=$3e)){continue;};for(var j=0;j<$t.lines.length;j++){var $03=$t.lines[j];for(var k=0;k<$03.length;k++){var e=$03[k];if(!e.part.top){e.part.line=j;e.part.top=j*(this.$78.eventHeight()+$3c)+$3c;e.part.detachedBarTop=e.part.top-$3c;e.part.height=this.$78.eventHeight();e.part.right=e.part.left+e.part.width;e.part.fullTop=this.rows[e.part.dayIndex].Top+e.Top;e.part.fullBottom=e.part.fullTop+e.part.height;};var $3f=this.$8h(e);if($0J&&$3f){$39--;if($39<=0){this.divEvents.style.visibility='';this.divEvents.style.display='';window.setTimeout(function(){$e.$5u($0J);},$e.batch.delay);return;}}}}}}else{var $3g=this.events.list.length;for(var i=0;i<$3g;i++){this.$8h(this.events.list[i]);}};this.divEvents.style.display='';this.$5I();this.$5b();};this.$6B=function($3h){var $t=this.rows[$3h];this.divEvents=document.createElement("div");this.divEvents.style.position='absolute';this.divEvents.style.display='none';this.maind.insertBefore(this.divEvents,this.divSeparatorsAbove);var $3c=this.durationBarDetached?10:0;for(var j=0;j<$t.lines.length;j++){var $03=$t.lines[j];for(var k=0;k<$03.length;k++){var e=$03[k];e.part.line=j;e.part.top=j*(this.$78.eventHeight()+$3c)+$3c;e.part.detachedBarTop=e.part.top-$3c;e.part.height=this.$78.eventHeight();e.part.right=e.part.left+e.part.width;e.part.fullTop=this.rows[e.part.dayIndex].Top+e.Top;e.part.fullBottom=e.part.fullTop+e.part.height;this.$8h(e);}};this.divEvents.style.display='';};this.$5q=function(){if(this.elements.events){var length=this.elements.events.length;for(var i=0;i=0;i--){this.elements.events.splice($3i[i],1);}}};this.$8i=function($B){$B.onclick=null;$B.oncontextmenu=null;$B.onmouseover=null;$B.onmouseout=null;$B.onmousemove=null;$B.onmousedown=null;$B.ondblclick=null;if($B.event){if(!$B.isBar){$B.event.rendered=null;};$B.event=null;};if($B.bar){DayPilot.de($B.bar);};if($B.parentNode){$B.parentNode.removeChild($B);}};this.$8j=function($3j){if(!$3j){$3j=0;};if(this.dynamicEventRendering!=='Progressive'){return;};this.divEvents.style.display='none';var $3k=[];var $3l=0;var length=this.elements.events.length;for(var i=length-1;i>=0;i--){var $B=this.elements.events[i];if(this.$8k($B.event)){if($3j>0){$3j--;$3k.unshift($B);}else{this.$8i($B);$3l++;}}else{$3k.unshift($B);}};this.elements.events=$3k;this.divEvents.style.display='';};this.$8l=function($3j){var $3k=[];var $3l=0;var $u=this.$5G();var length=this.elements.cells.length;for(var i=length-1;i>=0;i--){var $B=this.elements.cells[i];var $3m=($u.xStart<$B.coords.x&&$B.coords.x<=$u.xEnd)&&($u.yStart<$B.coords.y&&$B.coords.y<=$u.yEnd);if(!$3m){if($3j>0){$3j--;$3k.unshift($B);}else{this.$7e($B);$3l++;}}else{$3k.unshift($B);}}};this.$7e=function($B){if(!$B){return;};var x=$B.coords.x;var y=$B.coords.y;var $1d=DayPilot.indexOf($e.elements.cells,$B);$e.elements.cells.splice($1d,1);if($B.parentNode){$B.parentNode.removeChild($B);};$e.$59.cells[x+"_"+y]=null;};this.$5r=function(){if(this.elements.separators){for(var i=0;i=$3e)){continue;};for(var j=0;j<$t.lines.length;j++){var $03=$t.lines[j];for(var k=0;k<$03.length;k++){var e=$03[k];if(this.$8n(e)){return true;}}}};return false;};this.$8n=function($m){if($m.rendered){return false;};var $3b=this.dynamicEventRendering==='Progressive';var $x=this.nav.scroll.scrollLeft;var $y=$x+this.nav.scroll.clientWidth;var $3n=$m.Left;var $3o=$m.Left+$m.Width;if($3b&&($y<=$3n||$x>=$3o)){return false;};return true;};this.$8k=function(ev){if(!ev.rendered){return true;};var top=this.nav.scroll.scrollTop;var $M=top+this.nav.scroll.clientHeight;var $x=this.nav.scroll.scrollLeft;var $y=$x+this.nav.scroll.clientWidth;var $3n=ev.part.left;var $3o=ev.part.right;var $3p=ev.part.fullTop;var $3q=ev.part.fullBottom;if($y<=$3n||$x>=$3o){return true;};if($M<=$3p||top>=$3q){return true;};return false;};this.$8h=function($m){if($m.rendered){return false;};var $3b=this.dynamicEventRendering==='Progressive'&&!this.dynamicLoading;var $u=this.$5G();var $x=$u.pixels.left;var $y=$u.pixels.right;var $3n=$m.part.left;var $3o=$m.part.left+$m.part.width;if($3b&&($y<=$3n||$x>=$3o)){return false;};var $3h=$m.part.dayIndex;var $3r=!this.cssOnly&&this.eventBorderVisible;var $V=$m.part.width;var $P=$m.part.height;if($3r){$V-=2;$P-=2;};var $08=$m.cache||$m.data;$V=Math.max(0,$V);$P=Math.max(0,$P);var $t=this.rows[$3h];if($t.Hidden){return false;};var $3d=$t.Top;var $B=document.createElement("div");var $3s=this.durationBarDetached;if($3s){var $3t=document.createElement("div");$3t.style.position='absolute';$3t.style.left=($m.part.left+$m.part.barLeft)+'px';$3t.style.top=($3d+$m.part.detachedBarTop)+'px';$3t.style.width=$m.part.barWidth+'px';$3t.style.height=5+'px';$3t.style.backgroundColor="red";$B.bar=$3t;this.elements.bars.push($3t);this.divEvents.appendChild($3t);};var top=$3d+$m.part.top;$B.style.position='absolute';$B.style.left=$m.part.left+'px';$B.style.top=($3d+$m.part.top)+'px';$B.style.width=$V+'px';$B.style.height=$P+'px';if(!this.cssOnly){if($e.eventBorderVisible){$B.style.border='1px solid '+($08.borderColor||this.eventBorderColor);};$B.style.backgroundColor=$m.client.backColor();$B.style.fontSize=this.eventFontSize;$B.style.cursor='default';$B.style.fontFamily=this.eventFontFamily;$B.style.color=$08.fontColor||this.eventFontColor;if($08.backImage&&!this.durationBarVisible){$B.style.backgroundImage="url("+$08.backImage+")";if($08.backRepeat){$B.style.backgroundRepeat=$08.backRepeat;}};if(this.$78.rounded()){$B.style.MozBorderRadius="5px";$B.style.webkitBorderRadius="5px";$B.style.borderRadius="5px";}};$B.style.whiteSpace='nowrap';$B.style.overflow='hidden';$B.className=this.cssOnly?this.$5L("_event"):this.$5L("event");if($08.cssClass){DayPilot.Util.addClass($B,$08.cssClass);};var $3u=true;if($3u){DayPilot.Util.addClass($B,this.$5L("_event_line"+$m.part.line));};$B.setAttribute("unselectable","on");if(this.showToolTip&&!this.bubble){$B.title=$m.client.toolTip();};$B.onmousemove=this.$8o;$B.onmouseout=this.$8p;$B.onmousedown=this.$8q;$B.ontouchstart=$0m.onEventTouchStart;$B.ontouchmove=$0m.onEventTouchMove;$B.ontouchend=$0m.onEventTouchEnd;if($m.client.clickEnabled()){$B.onclick=this.$64;};if($m.client.doubleClickEnabled()){$B.ondblclick=this.$6e;};$B.oncontextmenu=this.$6d;var $3v=[];var $3w=0;if(this.cssOnly){var $E=document.createElement("div");$E.setAttribute("unselectable","on");$E.className=$e.$5L("_event_inner");$E.innerHTML=$m.client.innerHTML();if($08.backColor){$E.style.background=$08.backColor;if(DayPilot.browser.ie9||DayPilot.browser.ielt9){$E.style.filter='';}};if($08.fontColor){$E.style.color=$08.fontColor;};if($08.borderColor){$E.style.borderColor=$08.borderColor;};if($08.backImage){$E.style.backgroundImage="url("+$08.backImage+")";if($08.backRepeat){$E.style.backgroundRepeat=$08.backRepeat;}};$B.appendChild($E);var $3x=$m.start().getTime()===$m.part.start.getTime();var $3y=$m.end().getTime()===$m.part.end.getTime();if(!$3x){DayPilot.Util.addClass($B,this.$5L("_event_continueleft"));};if(!$3y){DayPilot.Util.addClass($B,this.$5L("_event_continueright"));};if($m.client.barVisible()&&$V>0){var $3z=100*$m.part.barLeft/($V);var $3A=Math.ceil(100*$m.part.barWidth/($V));if(this.durationBarMode==="PercentComplete"){$3z=0;$3A=$08.complete;};var $3t=document.createElement("div");$3t.setAttribute("unselectable","on");$3t.className=this.$5L("_event_bar");$3t.style.position="absolute";var $3B=document.createElement("div");$3B.setAttribute("unselectable","on");$3B.className=this.$5L("_event_bar_inner");$3B.style.left=$3z+"%";if(0<$3A&&$3A<=1){$3B.style.width="1px";}else{$3B.style.width=$3A+"%";};if($08.barColor){$3B.style.backgroundColor=$08.barColor;};$3t.appendChild($3B);$B.appendChild($3t);}}else{if($m.client.barVisible()){$3w=$e.durationBarHeight;$3v.push("
");$3v.push("
");if(this.durationBarMode==="Duration"){$3v.push("
");$3v.push("
");};$3v.push("
");$3v.push($m.client.innerHTML());$3v.push("
");$B.innerHTML=$3v.join('');};$B.row=$3h;if($08.areas){for(var i=0;i<$08.areas.length;i++){var $u=$08.areas[i];if($u.v!=='Visible'){continue;};var a=DayPilot.Areas.createArea($B,$m,$u);$B.appendChild(a);}};this.elements.events.push($B);this.divEvents.appendChild($B);$m.rendered=true;$B.event=$m;if($e.multiselect.$6r($B.event)){$e.multiselect.add($B.event,true);$e.multiselect.$6q($B);};if($e.$5C()){if(typeof $e.onAfterEventRender==='function'){var $q={};$q.e=$B.event;$q.div=$B;$e.onAfterEventRender($q);}}else{if($e.afterEventRender){$e.afterEventRender($B.event,$B);}};return true;};this.$5C=function(){return $e.api===2;};this.$6C=function(){for(var i=0;i$0O.start.x?$0O.start.x:$0O.end.x;var $3O=($0O.end.x>$0O.start.x?$0O.end.x:$0O.start.x);var $1H=$t.Start.getTime()-this.$7K().getTime();var $v=this.itline[$3N].start.addTime($1H);var end=this.itline[$3O].end.addTime($1H);return new DayPilot.Selection($v,end,$0N,$e);};this.$8z=function($17){var $3P=$17.parentNode;var $3Q=document.createElement('textarea');$3Q.style.position='absolute';$3Q.style.width=(($17.offsetWidth<100)?100:($17.offsetWidth-2))+'px';$3Q.style.height=($17.offsetHeight-2)+'px';$3Q.style.fontFamily=DayPilot.gs($17,'fontFamily')||DayPilot.gs($17,'font-family');$3Q.style.fontSize=DayPilot.gs($17,'fontSize')||DayPilot.gs($17,'font-size');$3Q.style.left=$17.offsetLeft+'px';$3Q.style.top=$17.offsetTop+'px';$3Q.style.border='1px solid black';$3Q.style.padding='0px';$3Q.style.marginTop='0px';$3Q.style.backgroundColor='white';$3Q.value=DayPilot.tr($17.event.text());$3Q.event=$17.event;$3P.appendChild($3Q);return $3Q;};this.$69=function($17){if(DayPilotScheduler.editing){DayPilotScheduler.editing.blur();return;};var $3Q=this.$8z($17);DayPilotScheduler.editing=$3Q;$3Q.onblur=function(){var $3R=$17.event.text();var $0P=$3Q.value;DayPilotScheduler.editing=null;if($3Q.parentNode){$3Q.parentNode.removeChild($3Q);};if($3R===$0P){return;};$17.style.display='none';$e.$6P($17.event,$0P);};$3Q.onkeypress=function(e){var $3S=(window.event)?event.keyCode:e.keyCode;if($3S===13){this.onblur();return false;}else if($3S===27){$3Q.parentNode.removeChild($3Q);DayPilotScheduler.editing=false;};return true;};$3Q.select();$3Q.focus();};this.$7C=function(ev){var td=this;if(typeof(DayPilotBubble)!=='undefined'){if($e.cellBubble){$e.cellBubble.hideOnMouseOut();};if($e.resourceBubble){var $0W={};$0W.calendar=$e;$0W.id=td.getAttribute("resource");$0W.toJSON=function(){var $0T={};$0T.id=this.id;return $0T;};$e.resourceBubble.showResource($0W);}};var $B=td.firstChild;if(!$B.active){DayPilot.Areas.showAreas($B,$e.rows[td.index]);}};this.$7D=function(ev){var td=this;if(typeof(DayPilotBubble)!=='undefined'&&$e.resourceBubble){$e.resourceBubble.hideOnMouseOut();};var $B=td.firstChild;DayPilot.Areas.hideAreas($B,ev);$B.data=null;};this.$5j=function(){this.$8A();return;};this.$8A=function(){if(!this.timeHeader){$e.debug.message("drawTimeHeader: timeHeader not available");return;};this.$59.timeHeader={};var $2Z=document.createElement("div");$2Z.style.position="relative";this.nav.timeHeader=$2Z;for(var y=0;y0){this.divStretch.style.width=(this.$85())+"px";}};this.$5Z=function(h,$3V){var $H=null;var $2t=this.$78.locale();var $3V=$3V||this.cellGroupBy;var $3W=h.start;var to=h.end;var $2t=this.$78.locale();switch($3V){case 'Hour':$H=$3W.toString("H");break;case 'Day':$H=$3W.toString($2t.datePattern);break;case 'Week':$H=$04.weekStarts()===1?$3W.weekNumberISO():$3W.weekNumber();break;case 'Month':$H=$3W.toString("MMMM yyyy",$2t);break;case 'Year':$H=$3W.toString("yyyy");break;case 'None':$H='';break;case 'Cell':if(this.scale==='Manual'||this.scale==='CellDuration'){var $0l=(h.end.ticks-h.start.ticks)/60000;$H=this.$8C($3W,$0l);}else{$H=this.$5Z(h,this.scale);};break;default:throw 'Invalid cellGroupBy value';};return $H;};this.$8C=function($v,$0l){var $2t=this.$78.locale();var $0l=$0l||this.cellDuration;if($0l<60){return $v.toString("mm");}else if($0l<1440){return $e.$78.timeFormat()==='Clock12Hours'?$v.toString("H tt",$2t):$v.toString("H",$2t);}else if($0l<10080){return $v.toString("d");}else if($0l===10080){return $04.weekStarts()===1?$v.weekNumberISO():$v.weekNumber();}else{return $v.toString("MMMM yyyy",$2t);}};this.$5W=function($3W){var $3X=this.scale;switch($3X){case "Cell":throw "Invalid scale: Cell";case "Manual":throw "Internal error (addScaleSize in Manual mode)";case "Minute":return $3W.addMinutes(1);case "CellDuration":return $3W.addMinutes(this.cellDuration);default:return this.$5Y($3W,$3X);}};this.$5Y=function($3W,$3V){var $3Y=this.viewType!=='Days'?this.days:1;var $3Z=this.startDate.addDays($3Y);var $3V=$3V||this.cellGroupBy;var $05=60;switch($3V){case 'Hour':to=$3W.addHours(1);break;case 'Day':to=$3W.addDays(1);break;case 'Week':to=$3W.addDays(1);while(to.dayOfWeek()!==$04.weekStarts()){to=to.addDays(1);};break;case 'Month':to=$3W.addMonths(1);to=to.firstDayOfMonth();var $40=(DayPilot.Date.diff(to.d,$3W.d)/(1000.0*60))%$05===0;while(!$40){to=to.addHours(1);$40=(DayPilot.Date.diff(to.d,$3W.d)/(1000.0*60))%$05===0;};break;case 'Year':to=$3W.addYears(1);to=to.firstDayOfYear();var $40=(DayPilot.Date.diff(to.d,$3W.d)/(1000.0*60))%$05===0;while(!$40){to=to.addHours(1);$40=(DayPilot.Date.diff(to.d,$3W.d)/(1000.0*60))%$05===0;};break;case 'None':to=$3Z;break;case 'Cell':var $z=this.$63($3W);if($z.current){to=$z.current.end;}else{if($z.past){to=$z.previous.end;}else{to=$z.next.start;}};break;default:throw 'Invalid cellGroupBy value';};if(to.getTime()>$3Z.getTime()){to=$3Z;};return to;};this.$8B=function(x,y){var $2Z=this.nav.timeHeader;var p=this.timeHeader[y][x];var $41=y=this.startDate.addDays(this.days).getTime()){return;};var $s=this.getPixels($0k);if($s.cut){return;};if($s.left<0){return;};if($s.left>this.$5M()*this.cellWidth){return;};var $03=document.createElement("div");$03.style.width=$V+'px';$03.style.height=$e.innerHeightTree+'px';$03.style.position='absolute';$03.style.left=($s.left-1)+'px';$03.style.top='0px';$03.style.backgroundColor=$46;$03.style.opacity=$L/100;$03.style.filter="alpha(opacity="+$L+")";if($47){this.divSeparatorsAbove.appendChild($03);}else{this.divSeparators.appendChild($03);};this.elements.separators.push($03);};this.$89=function(ev){if($e.timeRangeDoubleClickHandling==='Disabled'){return false;};if(DayPilotScheduler.timeRangeTimeout){clearTimeout(DayPilotScheduler.timeRangeTimeout);DayPilotScheduler.timeRangeTimeout=null;};var $0O={};if(!$e.coords){var $3F=$e.maind;$e.coords=DayPilot.mo3($3F,ev);};ev=ev||window.event;if($e.$8D($e.coords)){var $3E=$e.$8x(DayPilotScheduler.rangeHold);$e.$6I($3E.start,$3E.end,$3E.resource);}else{DayPilotScheduler.range=$e.$8v();var $3E=$e.$8x(DayPilotScheduler.range);$e.$6I($3E.start,$3E.end,$3E.resource);};DayPilotScheduler.rangeHold=DayPilotScheduler.range;DayPilotScheduler.range=null;};this.$86=function(ev){if($0m.start){return;};if(DayPilotScheduler.timeRangeTimeout&&false){clearTimeout(DayPilotScheduler.timeRangeTimeout);DayPilotScheduler.timeRangeTimeout=null;};$e.$7Z();$e.$83();if(!$e.coords){var $3F=$e.maind;$e.coords=DayPilot.mo3($3F,ev);};ev=ev||window.event;var $3C=ev.which||ev.button;if($3C===2||($3C===3&&$e.$8D($e.coords))){return false;};if($e.timeRangeSelectedHandling==='Disabled'){return false;};DayPilotScheduler.range=$e.$8v();return false;};this.$8v=function(){var $0O={};var cx=this.$61($e.coords.x).x;$0O.start={y:$e.$70($e.coords.y).i,x:cx};$0O.end={x:cx};if(this.$7m($e.$70($e.coords.y).i)){return;};$0O.calendar=$e;$e.$8w($0O);return $0O;};this.$87=function(ev){if($0m.active){return;};DayPilotScheduler.activeCalendar=$e;ev=ev||window.event;var $48=DayPilot.mc(ev);$e.coords=DayPilot.mo3($e.maind,ev);if($0n.start){if($0n.originalMouse.x!==$48.x||$0n.originalMouse.y!==$48.y){DayPilot.Util.copyProps($0n,DayPilotScheduler);document.body.style.cursor='move';$0n={};}};if(DayPilotScheduler.resizing){if(!DayPilotScheduler.resizingShadow){DayPilotScheduler.resizingShadow=$e.$76(DayPilotScheduler.resizing,$e.shadow);};var $49=DayPilotScheduler.resizing.event.calendar.cellWidth;var $4a=DayPilotScheduler.resizing.event.part.width;var $4b=DayPilotScheduler.resizing.event.part.left;var $4c=0;var $4d=($48.x-DayPilotScheduler.originalMouse.x);if(DayPilotScheduler.resizing.dpBorder==='right'){var $4e;if($e.snapToGrid){var $0i=$e.$61($4a+$4b+$4d).cell;var $4f=$0i.left+$0i.width;$4e=$4f-$4b;if($4e<$49){$4e=$49;}}else{$4e=$4a+$4d;};var $1Q=$e.$85();if($4b+$4e>$1Q){$4e=$1Q-$4b;};DayPilotScheduler.resizingShadow.style.width=($4e)+'px';}else if(DayPilotScheduler.resizing.dpBorder==='left'){var $4g;if($e.snapToGrid){$4g=Math.floor((($4b+$4d)+0)/$49)*$49;if($4g<$4c){$4g=$4c;}}else{$4g=$4b+$4d;};var $4e=$4a-($4g-$4b);var $y=$4b+$4a;if($e.snapToGrid){if($4e<$49){$4e=$49;$4g=$y-$4e;}};DayPilotScheduler.resizingShadow.style.left=$4g+'px';DayPilotScheduler.resizingShadow.style.width=($4e)+'px';}}else if(DayPilotScheduler.moving){if(DayPilotScheduler.movingShadow&&DayPilotScheduler.movingShadow.calendar!==$e){DayPilotScheduler.movingShadow.calendar=null;DayPilot.de(DayPilotScheduler.movingShadow);DayPilotScheduler.movingShadow=null;};if(!DayPilotScheduler.movingShadow){var mv=DayPilotScheduler.moving;DayPilotScheduler.movingShadow=$e.$76(mv,$e.shadow);};$e.$7p();DayPilotScheduler.moving.target=$e;$e.$7r();}else if(DayPilotScheduler.range){var $0O=DayPilotScheduler.range;$0O.end={x:$e.$61($e.coords.x).x};$e.$8w($0O);}else if($e.crosshairType!=='Disabled'){$e.$8E();};$e.$8F();var $4h=ev.insideEvent;if(window.event){$4h=window.event.srcElement.insideEvent;};if($e.cellBubble&&$e.coords&&$e.rows&&$e.rows.length>0&&!$4h){var x=Math.floor($e.coords.x/$e.cellWidth);var y=$e.$70($e.coords.y).i;if(y<$e.rows.length){var $z={};$z.calendar=$e;$z.start=$e.itline[x].start;$z.end=$e.itline[x].end;$z.resource=$e.rows[y].Value;$z.toJSON=function(){var $0T={};$0T.start=this.start;$0T.end=this.end;$0T.resource=this.resource;return $0T;};$e.cellBubble.showCell($z);}};if(DayPilotScheduler.drag){$e.$7Z();if(DayPilotScheduler.gShadow){document.body.removeChild(DayPilotScheduler.gShadow);};DayPilotScheduler.gShadow=null;if(!DayPilotScheduler.movingShadow&&$e.coords&&$e.rows.length>0){if(!DayPilotScheduler.moving){DayPilotScheduler.moving={};var event=DayPilotScheduler.drag.event;if(!event){var $4i=$e.itline[0].start;$e.debug.message("external start:"+$4i);var ev={'id':DayPilotScheduler.drag.id,'start':$4i,'end':$4i.addSeconds(DayPilotScheduler.drag.duration),'text':DayPilotScheduler.drag.text};event=new DayPilot.Event(ev);event.calendar=$e;};DayPilotScheduler.moving.event=event;};DayPilotScheduler.movingShadow=$e.$76(DayPilotScheduler.moving,DayPilotScheduler.drag.shadowType);};ev.cancelBubble=true;};if($e.autoScroll==="Always"||($e.autoScroll==="Drag"&&(DayPilotScheduler.moving||DayPilotScheduler.resizing||DayPilotScheduler.range))){var $4j=$e.nav.scroll;var $19={x:$e.coords.x,y:$e.coords.y};$19.x-=$4j.scrollLeft;$19.y-=$4j.scrollTop;var $V=$4j.clientWidth;var $P=$4j.clientHeight;var $24=20;var $x=$19.x<$24;var $y=$V-$19.x<$24;var top=$19.y<$24;var $M=$P-$19.y<$24;var x=0;var y=0;if($x){x=-5;};if($y){x=5;};if(top){y=-5;};if($M){y=5;};if(x||y){$e.$8G(x,y);}else{$e.$83();}}};this.$8F=function(){var x,y;if($e.coords&&$e.rows&&$e.rows.length>0){x=$e.$61($e.coords.x).x;y=$e.$70($e.coords.y).i;if(y>=$e.rows.length){return;}}else{return;};var $t=this.$79(y);var $0i=this.itline[x];var $z={};$z.x=x;$z.y=y;$z.start=$0i.start;$z.end=$0i.end;$z.resource=$t?$t.data.Value:null;if(this.hover.cell){if(this.hover.cell.x===$z.x&&this.hover.cell.y===$z.y){return;};this.$84();};this.hover.cell=$z;if(typeof this.onCellMouseOver==='function'){var $q={};$q.cell=$z;this.onCellMouseOver($q);}};this.$84=function(){if(typeof this.onCellMouseOut==='function'){var $q={};$q.cell=this.hover.cell;this.onCellMouseOut($q);};this.hover.cell=null;};this.hover={};this.$8E=function(){this.$8H();};this.$7Z=function(){this.divCrosshair.innerHTML='';this.crosshairVertical=null;this.crosshairHorizontal=null;if(this.crosshairTop&&this.crosshairTop.parentNode){this.crosshairTop.parentNode.removeChild(this.crosshairTop);this.crosshairTop=null;};if(this.crosshairLeft){for(var i=0;i0){x=$e.$61($e.coords.x).x;y=$e.$70($e.coords.y).i;if(y>=$e.rows.length){return;}}else{return;};var $0w=this.crosshairType;var $t=this.$79(y);if($0w==='Full'){var $0i=this.itline[x];var $x=$0i.left;var $03=this.crosshairVertical;if(!$03){var $03=document.createElement("div");$03.style.height=$e.innerHeightTree+'px';$03.style.position='absolute';$03.style.top='0px';$03.style.backgroundColor=this.crosshairColor;$03.style.opacity=this.crosshairOpacity/100;$03.style.filter="alpha(opacity="+this.crosshairOpacity+")";this.crosshairVertical=$03;this.divCrosshair.appendChild($03);};$03.style.left=$x+'px';$03.style.width=$0i.width+'px';var top=$t.top;var $P=$t.height;var $V=this.$85();var $03=this.crosshairHorizontal;if(!$03){var $03=document.createElement("div");$03.style.width=$V+'px';$03.style.height=$P+'px';$03.style.position='absolute';$03.style.top=top+'px';$03.style.left='0px';$03.style.backgroundColor=this.crosshairColor;$03.style.opacity=this.crosshairOpacity/100;$03.style.filter="alpha(opacity="+this.crosshairOpacity+")";this.crosshairHorizontal=$03;this.divCrosshair.appendChild($03);};$03.style.top=top+'px';$03.style.height=$P+'px';};var $4k=this.$8I(this.coords.x);if($4k&&this.crosshairLastX!==$4k.x){if(this.crosshairTop&&this.crosshairTop.parentNode){this.crosshairTop.parentNode.removeChild(this.crosshairTop);this.crosshairTop=null;};var $03=document.createElement("div");$03.style.width=$4k.cell.width+"px";$03.style.height=$04.headerHeight()+"px";$03.style.left='0px';$03.style.top='0px';$03.style.position='absolute';$03.style.backgroundColor=this.crosshairColor;$03.style.opacity=this.crosshairOpacity/100;$03.style.filter="alpha(opacity="+this.crosshairOpacity+")";this.crosshairTop=$03;var $3T=this.divNorth;var $4l=this.timeHeader?this.timeHeader.length-1:1;if(this.nav.timeHeader){this.$59.timeHeader[$4k.x+"_"+$4l].appendChild($03);}else{if($3T.firstChild.rows[$4l].cells[x]){$3T.firstChild.rows[$4l].cells[x].firstChild.appendChild($03);}}};if(this.crosshairLastY!==y){if(this.crosshairLeft){for(var i=0;i=$z.left&&$s<$z.left+$z.width){var $f={};$f.cell=$z;$f.x=i;return $f;}};return null;};this.$88=function(ev){ev=ev||window.event;if($e.timeRangeSelectedHandling==='Disabled'){return false;};if(!$e.$8D($e.coords)){$e.$8J(ev);};if($e.contextMenuSelection){var $4m=$e.$8x(DayPilotScheduler.rangeHold);$e.contextMenuSelection.show($4m);};ev.cancelBubble=true;if(!$e.allowDefaultContextMenu){return false;}};this.$8D=function($19){var $0O=DayPilotScheduler.rangeHold;if(!$0O||!$0O.start||!$0O.end){return false;};var $t=this.$79($0O.start.y);var $4n=$0O.start.x<$0O.end.x;var $4o=($4n?$0O.start.x:$0O.end.x)*this.cellWidth;var $4p=($4n?$0O.end.x:$0O.start.x)*this.cellWidth+this.cellWidth;var $4q=$t.top;var $4r=$t.bottom;if($19.x>=$4o&&$19.x<=$4p&&$19.y>=$4q&&$19.y<=$4r){return true;};return false;};this.$8w=function($0O){var $0O=$0O||DayPilotScheduler.range;var $3N=$0O.end.x>$0O.start.x?$0O.start.x:$0O.end.x;var $3O=($0O.end.x>$0O.start.x?$0O.end.x:$0O.start.x)+1;this.$5w();for(var x=$3N;x<$3O;x++){this.$8K(x,$0O.start.y);}};this.$8J=function(ev){if($e.timeRangeSelectedHandling==='Disabled'){return false;};ev=ev||window.event;var $3C=ev.which||ev.button;if(DayPilotScheduler.range){return;};if(DayPilotScheduler.rangeHold&&$e.$8D($e.coords)&&($3C===3||$3C===2)){return;};var $0O={};var cx=this.$61($e.coords.x).x;$0O.start={y:$e.$70($e.coords.y).i,x:cx};$0O.end={x:cx};$e.$8w($0O);var $3E=$e.$8x($0O);$e.$6H($3E.start,$3E.end,$3E.resource);DayPilotScheduler.rangeHold=$0O;};this.timeouts={};this.timeouts.drawEvents=null;this.timeouts.drawCells=null;this.timeouts.click=null;this.$8f=function(ev){$e.$5B();if($e.dynamicLoading){$e.$8L();return;};var $4s=$e.nav.scroll;$e.scrollPos=$4s.scrollLeft;$e.scrollTop=$4s.scrollTop;$e.scrollWidth=$4s.clientWidth;$e.divTimeScroll.scrollLeft=$e.scrollPos;$e.divResScroll.scrollTop=$e.scrollTop;if($e.timeouts.drawEvents){clearTimeout($e.timeouts.drawEvents);};$e.timeouts.drawEvents=setTimeout($e.$8M(),200);$e.$5x();$e.$5s();$e.$5y();$e.onScrollCalled=true;};this.$8N=function(){return function(){$e.$5x();$e.$5s();$e.refreshTimeout=window.setTimeout($e.$8M(),200);};};this.$8O=function(){return function(){$e.$5x();$e.$5s();};};this.$8M=function(){var $0J=true;var $4t=$e.dynamicEventRenderingCacheSweeping;var $4u=$e.dynamicEventRenderingCacheSize;return function(){if($e.$8m()){$e.$6T();window.setTimeout(function(){if($4t)$e.$8j($4u);window.setTimeout(function(){$e.$5u($0J);},50);},50);}else{$e.$5I();}};};this.$5B=function(){this.$59.eventHeight=null;this.$59.drawArea=null;};this.show=function(){$e.nav.top.style.display='';this.$75();$e.$8f();};this.hide=function(){$e.nav.top.style.display='none';};this.$8L=function(){var $4s=$e.nav.scroll;$e.scrollPos=$4s.scrollLeft;$e.scrollTop=$4s.scrollTop;$e.scrollWidth=$4s.clientWidth;$e.divTimeScroll.scrollLeft=$e.scrollPos;$e.divResScroll.scrollTop=$e.scrollTop;if($e.refreshTimeout){window.clearTimeout($e.refreshTimeout);};var $I=$e.scrollDelay||500;$e.refreshTimeout=window.setTimeout($e.$8P($4s.scrollLeft,$4s.scrollTop),$I);$e.$5y();};this.$8Q=function(e){for(var j=0;j0){if(this.sweepCells){var $4u=0;this.$8l($4u);};this.$8S();this.$8V();};var $V=this.$85();this.maind.style.height=this.innerHeightTree+"px";this.maind.style.width=$V+"px";this.rowsDirty=false;};this.$8V=function(){var $u=this.$5G();for(var x=$u.xStart;x<$u.xEnd;x++){var $4D=(x0){$4L=$4L.concat($4M);}};return $4L;};this.$8G=function($4N,$4O){this.$83();this.$90($4N,$4O);};this.$91=function($39){if(!$39){return false;};var $R=this.nav.scroll.scrollWidth;var $v=this.nav.scroll.scrollLeft;var $V=this.nav.scroll.clientWidth;var $y=$v+$V;if($39<0&&$v<=0){return false;};if($39>0&&$y>=$R){return false;};this.nav.scroll.scrollLeft+=$39;return true;};this.$92=function($39){if(!$39){return false;};var $R=this.nav.scroll.scrollHeight;var $v=this.nav.scroll.scrollTop;var $P=this.nav.scroll.clientHeight;var $M=$v+$P;if($39<0&&$v<=0){return false;};if($39>0&&$M>=$R){return false;};this.nav.scroll.scrollTop+=$39;return true;};this.$90=function($4N,$4O){var $4P=this.$91($4N)||this.$92($4O);if(!$4P){return;};var $4Q=function($4N,$4O){return function(){$e.$90($4N,$4O);};};this.scrolling=window.setTimeout($4Q($4N,$4O),100);};this.$83=function(){if(this.scrolling){window.clearTimeout(this.scrolling);this.scrolling=null;}};this.$5k=function(){var top=0;for(var i=0;i
';this.elements.range=[];DayPilotScheduler.rangeHold=null;};this.$78={};var $04=this.$78;$04.locale=function(){return DayPilot.Locale.find($e.locale);};$04.timeFormat=function(){if($e.timeFormat!=='Auto'){return $e.timeFormat;};return $04.locale().timeFormat;};$04.weekStarts=function(){if($e.weekStarts==='Auto'){var $2t=$04.locale();if($2t){return $2t.weekStarts;}else{return 0;}}else{return $e.weekStarts;}};$04.rounded=function(){return $e.eventCorners==='Rounded';};$04.layout=function(){var $4U=/MSIE 6/i.test(navigator.userAgent);if($e.layout==='Auto'){if($4U){return 'TableBased';}else{return 'DivBased';}};return $e.layout;};$04.notifyType=function(){var $0w;if($e.notifyCommit==='Immediate'){$0w="Notify";}else if($e.notifyCommit==='Queue'){$0w="Queue";}else{throw "Invalid notifyCommit value: "+$e.notifyCommit;};return $0w;};$04.isResourcesView=function(){return $e.viewType!=='Days';};$04.useBox=function($4V){if($e.useEventBoxes==='Always'){return true;};if($e.useEventBoxes==='Never'){return false;};return $4V<$e.cellDuration*60*1000;};$04.eventHeight=function(){if($e.$59.eventHeight){return $e.$59.eventHeight;};var $P=$e.$8b("_event_height").height;if(!$P){$P=$e.eventHeight;};$e.$59.eventHeight=$P;return $P;};$04.headerHeight=function(){if($e.$59.headerHeight){return $e.$59.headerHeight;};var $P=$e.$8b("_header_height").height;if(!$P){$P=$e.headerHeight;};$e.$59.headerHeight=$P;return $P;};this.$8Y=function(x,y){var $1d=x+'_'+y;if(this.cellProperties&&this.cellProperties[$1d]){return this.cellProperties[$1d].backColor;};return null;};this.$7g=function(x,y){var $1d=x+'_'+y;if(this.cellProperties&&this.cellProperties[$1d]){return this.cellProperties[$1d];};return null;};this.$94=function($4W,x,y){var $1d=x+'_'+y;this.cellProperties[$1d]={};DayPilot.Util.copyProps($4W,this.cellProperties[$1d],['html','cssClass','backColor','backImage','backRepeat','business']);return this.cellProperties[$1d];};this.$95=function(x,y){if(!this.cellConfig){return;};var $4X=this.cellConfig;if($4X.vertical){return this.cellProperties[x+"_0"];};if($4X.horizontal){return this.cellProperties["0_"+y];};if($4X["default"]){return $4X["default"];}};this.$5g=function(){if(!this.cellConfig){return;};var $4X=this.cellConfig;if($4X.vertical){for(var x=0;x<$4X.x;x++){var $4Y=this.cellProperties[x+"_0"];if(!$4Y){continue;};for(var y=1;y<$4X.y;y++){this.$94($4Y,x,y);}}};if($4X.horizontal){for(var y=0;y<$4X.y;y++){var $4Y=this.cellProperties["0_"+y];if(!$4Y){continue;};for(var x=1;x<$4X.x;x++){this.$94($4Y,x,y);}}};if($4X["default"]){var $4Y=$4X["default"];for(var y=0;y<$4X.y;y++){for(var x=0;x<$4X.x;x++){if(!this.cellProperties[x+"_"+y]){this.$94($4Y,x,y);}}}}};this.isBusiness=function($z){if($z.start.dayOfWeek()===0||$z.start.dayOfWeek()===6){return false;};var $v=$z.start;var end=$z.end;var $05=(end.getTime()-$v.getTime())/(1000*60);if($05<720){if($z.start.getHours()=this.businessEndsHour){return false;}else{return true;}};return true;};this.$5l=function(){if(this.nav.top.style.visibility==='hidden'){this.nav.top.style.visibility='visible';}};this.$7x=function(){var el=$e.nav.top;return el.offsetWidth>0&&el.offsetHeight>0;};this.$96=function(){var $3m=$e.$7x;if(!$3m()){$e.debug.message("Not visible during init, starting visibilityInterval");$e.$97=setInterval(function(){if($3m()){$e.debug.message("Made visible, calling .show()");$e.show();$e.$7w();clearInterval($e.$97);}},100);}};this.$98=function($s){if(this.heightSpec!=="Parent100Pct"){this.heightSpec="Fixed";};this.height=$s-(this.$5N()+2);this.$5o();};this.setHeight=this.$98;this.$5D=function(id){for(var i=0;i