/*

 FullCalendar v1.5.1
 http://arshaw.com/fullcalendar/

 Use fullcalendar.css for basic styling.
 For event drag & drop, requires jQuery UI draggable.
 For event resizing, requires jQuery UI resizable.

 Copyright (c) 2011 Adam Shaw
 Dual licensed under the MIT and GPL licenses, located in
 MIT-LICENSE.txt and GPL-LICENSE.txt respectively.

 Date: Sat Apr 9 14:09:51 2011 -0700

*/
(function(a){a.extend(a.fn,{validate:function(c){if(this.length){var d=a.data(this[0],"validator");if(d)return d;d=new a.validator(c,this[0]);a.data(this[0],"validator",d);if(d.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){d.cancelSubmit=true});d.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){d.submitButton=this});this.submit(function(e){function m(){if(d.settings.submitHandler){if(d.submitButton)var j=a("<input type='hidden'/>").attr("name",
d.submitButton.name).val(d.submitButton.value).appendTo(d.currentForm);d.settings.submitHandler.call(d,d.currentForm);d.submitButton&&j.remove();return false}return true}d.settings.debug&&e.preventDefault();if(d.cancelSubmit){d.cancelSubmit=false;return m()}if(d.form()){if(d.pendingRequest){d.formSubmitted=true;return false}return m()}else{d.focusInvalid();return false}})}return d}else c&&c.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(a(this[0]).is("form"))return this.validate().form();
else{var c=true,d=a(this[0].form).validate();this.each(function(){c&=d.element(this)});return c}},removeAttrs:function(c){var d={},e=this;a.each(c.split(/\s/),function(m,j){d[j]=e.attr(j);e.removeAttr(j)});return d},rules:function(c,d){var e=this[0];if(c){var m=a.data(e.form,"validator").settings,j=m.rules,i=a.validator.staticRules(e);switch(c){case "add":a.extend(i,a.validator.normalizeRule(d));j[e.name]=i;if(d.messages)m.messages[e.name]=a.extend(m.messages[e.name],d.messages);break;case "remove":if(!d){delete j[e.name];
return i}var g={};a.each(d.split(/\s/),function(s,B){g[B]=i[B];delete i[B]});return g}}e=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(e),a.validator.classRules(e),a.validator.attributeRules(e),a.validator.staticRules(e)),e);if(e.required){m=e.required;delete e.required;e=a.extend({required:m},e)}return e}});a.extend(a.expr[":"],{blank:function(c){return!a.trim(""+c.value)},filled:function(c){return!!a.trim(""+c.value)},unchecked:function(c){return!c.checked}});a.validator=function(c,
d){this.settings=a.extend(true,{},a.validator.defaults,c);this.currentForm=d;this.init()};a.validator.format=function(c,d){if(arguments.length==1)return function(){var e=a.makeArray(arguments);e.unshift(c);return a.validator.format.apply(this,e)};if(arguments.length>2&&d.constructor!=Array)d=a.makeArray(arguments).slice(1);if(d.constructor!=Array)d=[d];a.each(d,function(e,m){c=c.replace(RegExp("\\{"+e+"\\}","g"),m)});return c};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",
validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(c){this.lastActive=c;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,c,this.settings.errorClass,this.settings.validClass);this.errorsFor(c).hide()}},onfocusout:function(c){if(!this.checkable(c)&&(c.name in this.submitted||!this.optional(c)))this.element(c)},onkeyup:function(c){if(c.name in
this.submitted||c==this.lastElement)this.element(c)},onclick:function(c){if(c.name in this.submitted)this.element(c);else c.parentNode.name in this.submitted&&this.element(c.parentNode)},highlight:function(c,d,e){a(c).addClass(d).removeClass(e)},unhighlight:function(c,d,e){a(c).removeClass(d).addClass(e)}},setDefaults:function(c){a.extend(a.validator.defaults,c)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",
date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),
range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function c(m){var j=a.data(this[0].form,"validator");m="on"+m.type.replace(/^validate/,"");j.settings[m]&&j.settings[m].call(j,this[0])}this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&
this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var d=this.groups={};a.each(this.settings.groups,function(m,j){a.each(j.split(/\s/),function(i,g){d[g]=m})});var e=this.settings.rules;a.each(e,function(m,j){e[m]=a.validator.normalizeRule(j)});a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea",
"focusin focusout keyup",c).validateDelegate(":radio, :checkbox, select, option","click",c);this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var c=0,d=this.currentElements=this.elements();d[c];c++)this.check(d[c]);
return this.valid()},element:function(c){this.lastElement=c=this.clean(c);this.prepareElement(c);this.currentElements=a(c);var d=this.check(c);if(d)delete this.invalid[c.name];else this.invalid[c.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return d},showErrors:function(c){if(c){a.extend(this.errorMap,c);this.errorList=[];for(var d in c)this.errorList.push({message:c[d],element:this.findByName(d)[0]});this.successList=a.grep(this.successList,
function(e){return!(e.name in c)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(c){var d=0,e;for(e in c)d++;return d},hideErrors:function(){this.addWrapper(this.toHide).hide()},
valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(c){}},findLastActive:function(){var c=this.lastActive;return c&&a.grep(this.errorList,function(d){return d.element.name==c.name}).length==1&&c},elements:function(){var c=this,d={};return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&
c.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in d||!c.objectLength(a(this).rules()))return false;return d[this.name]=true})},clean:function(c){return a(c)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},
prepareElement:function(c){this.reset();this.toHide=this.errorsFor(c)},check:function(c){c=this.clean(c);if(this.checkable(c))c=this.findByName(c.name)[0];var d=a(c).rules(),e=false;for(method in d){var m={method:method,parameters:d[method]};try{var j=a.validator.methods[method].call(this,c.value.replace(/\r/g,""),c,m.parameters);if(j=="dependency-mismatch")e=true;else{e=false;if(j=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));return}if(!j){this.formatAndAdd(c,m);return false}}}catch(i){this.settings.debug&&
window.console&&console.log("exception occured when checking element "+c.id+", check the '"+m.method+"' method",i);throw i;}}if(!e){this.objectLength(d)&&this.successList.push(c);return true}},customMetaMessage:function(c,d){if(a.metadata){var e=this.settings.meta?a(c).metadata()[this.settings.meta]:a(c).metadata();return e&&e.messages&&e.messages[d]}},customMessage:function(c,d){var e=this.settings.messages[c];return e&&(e.constructor==String?e:e[d])},findDefined:function(){for(var c=0;c<arguments.length;c++)if(arguments[c]!==
undefined)return arguments[c]},defaultMessage:function(c,d){return this.findDefined(this.customMessage(c.name,d),this.customMetaMessage(c,d),!this.settings.ignoreTitle&&c.title||undefined,a.validator.messages[d],"<strong>Warning: No message defined for "+c.name+"</strong>")},formatAndAdd:function(c,d){var e=this.defaultMessage(c,d.method),m=/\$?\{(\d+)\}/g;if(typeof e=="function")e=e.call(this,d.parameters,c);else if(m.test(e))e=jQuery.format(e.replace(m,"{$1}"),d.parameters);this.errorList.push({message:e,
element:c});this.errorMap[c.name]=e;this.submitted[c.name]=e},addWrapper:function(c){if(this.settings.wrapper)c=c.add(c.parent(this.settings.wrapper));return c},defaultShowErrors:function(){for(var c=0;this.errorList[c];c++){var d=this.errorList[c];this.settings.highlight&&this.settings.highlight.call(this,d.element,this.settings.errorClass,this.settings.validClass);this.showLabel(d.element,d.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(c=
0;this.successList[c];c++)this.showLabel(this.successList[c]);if(this.settings.unhighlight){c=0;for(d=this.validElements();d[c];c++)this.settings.unhighlight.call(this,d[c],this.settings.errorClass,this.settings.validClass)}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(c,
d){var e=this.errorsFor(c);if(e.length){e.removeClass().addClass(this.settings.errorClass);e.attr("generated")&&e.html(d)}else{e=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(c),generated:true}).addClass(this.settings.errorClass).html(d||"");if(this.settings.wrapper)e=e.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(e).length||(this.settings.errorPlacement?this.settings.errorPlacement(e,a(c)):e.insertAfter(c))}if(!d&&this.settings.success){e.text("");
typeof this.settings.success=="string"?e.addClass(this.settings.success):this.settings.success(e)}this.toShow=this.toShow.add(e)},errorsFor:function(c){var d=this.idOrName(c);return this.errors().filter(function(){return a(this).attr("for")==d})},idOrName:function(c){return this.groups[c.name]||(this.checkable(c)?c.name:c.id||c.name)},checkable:function(c){return/radio|checkbox/i.test(c.type)},findByName:function(c){var d=this.currentForm;return a(document.getElementsByName(c)).map(function(e,m){return m.form==
d&&m.name==c&&m||null})},getLength:function(c,d){switch(d.nodeName.toLowerCase()){case "select":return a("option:selected",d).length;case "input":if(this.checkable(d))return this.findByName(d.name).filter(":checked").length}return c.length},depend:function(c,d){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,d):true},dependTypes:{"boolean":function(c){return c},string:function(c,d){return!!a(c,d.form).length},"function":function(c,d){return c(d)}},optional:function(c){return!a.validator.methods.required.call(this,
a.trim(c.value),c)&&"dependency-mismatch"},startRequest:function(c){if(!this.pending[c.name]){this.pendingRequest++;this.pending[c.name]=true}},stopRequest:function(c,d){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[c.name];if(d&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit();this.formSubmitted=false}else if(!d&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=
false}},previousValue:function(c){return a.data(c,"previousValue")||a.data(c,"previousValue",{old:null,valid:true,message:this.defaultMessage(c,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(c,d){c.constructor==String?this.classRuleSettings[c]=d:a.extend(this.classRuleSettings,
c)},classRules:function(c){var d={};(c=a(c).attr("class"))&&a.each(c.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(d,a.validator.classRuleSettings[this])});return d},attributeRules:function(c){var d={};c=a(c);for(method in a.validator.methods){var e=c.attr(method);if(e)d[method]=e}d.maxlength&&/-1|2147483647|524288/.test(d.maxlength)&&delete d.maxlength;return d},metadataRules:function(c){if(!a.metadata)return{};var d=a.data(c.form,"validator").settings.meta;return d?a(c).metadata()[d]:
a(c).metadata()},staticRules:function(c){var d={},e=a.data(c.form,"validator");if(e.settings.rules)d=a.validator.normalizeRule(e.settings.rules[c.name])||{};return d},normalizeRules:function(c,d){a.each(c,function(e,m){if(m===false)delete c[e];else if(m.param||m.depends){var j=true;switch(typeof m.depends){case "string":j=!!a(m.depends,d.form).length;break;case "function":j=m.depends.call(d,d)}if(j)c[e]=m.param!==undefined?m.param:true;else delete c[e]}});a.each(c,function(e,m){c[e]=a.isFunction(m)?
m(d):m});a.each(["minlength","maxlength","min","max"],function(){if(c[this])c[this]=Number(c[this])});a.each(["rangelength","range"],function(){if(c[this])c[this]=[Number(c[this][0]),Number(c[this][1])]});if(a.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];delete c.min;delete c.max}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];delete c.minlength;delete c.maxlength}}c.messages&&delete c.messages;return c},normalizeRule:function(c){if(typeof c=="string"){var d=
{};a.each(c.split(/\s/),function(){d[this]=true});c=d}return c},addMethod:function(c,d,e){a.validator.methods[c]=d;a.validator.messages[c]=e!=undefined?e:a.validator.messages[c];d.length<3&&a.validator.addClassRules(c,a.validator.normalizeRule(c))},methods:{required:function(c,d,e){if(!this.depend(e,d))return"dependency-mismatch";switch(d.nodeName.toLowerCase()){case "select":return(c=a(d).val())&&c.length>0;case "input":if(this.checkable(d))return this.getLength(c,d)>0;default:return a.trim(c).length>
0}},remote:function(c,d,e){if(this.optional(d))return"dependency-mismatch";var m=this.previousValue(d);this.settings.messages[d.name]||(this.settings.messages[d.name]={});m.originalMessage=this.settings.messages[d.name].remote;this.settings.messages[d.name].remote=m.message;e=typeof e=="string"&&{url:e}||e;if(m.old!==c){m.old=c;var j=this;this.startRequest(d);var i={};i[d.name]=c;a.ajax(a.extend(true,{url:e,mode:"abort",port:"validate"+d.name,dataType:"json",data:i,success:function(g){j.settings.messages[d.name].remote=
m.originalMessage;var s=g===true;if(s){var B=j.formSubmitted;j.prepareElement(d);j.formSubmitted=B;j.successList.push(d);j.showErrors()}else{B={};g=m.message=g||j.defaultMessage(d,"remote");B[d.name]=a.isFunction(g)?g(c):g;j.showErrors(B)}m.valid=s;j.stopRequest(d,s)}},e));return"pending"}else if(this.pending[d.name])return"pending";return m.valid},minlength:function(c,d,e){return this.optional(d)||this.getLength(a.trim(c),d)>=e},maxlength:function(c,d,e){return this.optional(d)||this.getLength(a.trim(c),
d)<=e},rangelength:function(c,d,e){c=this.getLength(a.trim(c),d);return this.optional(d)||c>=e[0]&&c<=e[1]},min:function(c,d,e){return this.optional(d)||c>=e},max:function(c,d,e){return this.optional(d)||c<=e},range:function(c,d,e){return this.optional(d)||c>=e[0]&&c<=e[1]},email:function(c,d){return this.optional(d)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(c)},
url:function(c,d){return this.optional(d)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},
date:function(c,d){return this.optional(d)||!/Invalid|NaN/.test(new Date(c))},dateISO:function(c,d){return this.optional(d)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(c)},number:function(c,d){return this.optional(d)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(c)},digits:function(c,d){return this.optional(d)||/^\d+$/.test(c)},creditcard:function(c,d){if(this.optional(d))return"dependency-mismatch";if(/[^0-9-]+/.test(c))return false;var e=0,m=0,j=false;c=c.replace(/\D/g,"");for(var i=c.length-1;i>=
0;i--){m=c.charAt(i);m=parseInt(m,10);if(j)if((m*=2)>9)m-=9;e+=m;j=!j}return e%10==0},accept:function(c,d,e){e=typeof e=="string"?e.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(d)||c.match(RegExp(".("+e+")$","i"))},equalTo:function(c,d,e){e=a(e).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(d).valid()});return c==e.val()}}});a.format=a.validator.format})(jQuery);
(function(a){var c=a.ajax,d={};a.ajax=function(e){e=a.extend(e,a.extend({},a.ajaxSettings,e));var m=e.port;if(e.mode=="abort"){d[m]&&d[m].abort();return d[m]=c.apply(this,arguments)}return c.apply(this,arguments)}})(jQuery);
(function(a){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&a.each({focus:"focusin",blur:"focusout"},function(c,d){function e(m){m=a.event.fix(m);m.type=d;return a.event.handle.call(this,m)}a.event.special[d]={setup:function(){this.addEventListener(c,e,true)},teardown:function(){this.removeEventListener(c,e,true)},handler:function(m){arguments[0]=a.event.fix(m);arguments[0].type=d;return a.event.handle.apply(this,arguments)}}});a.extend(a.fn,{validateDelegate:function(c,
d,e){return this.bind(d,function(m){var j=a(m.target);if(j.is(c))return e.apply(j,arguments)})}})})(jQuery);
(function(a,c){function d(V,ya){V=V?' id="'+Z+V+'"':"";ya=ya?' style="'+ya+'"':"";return a("<div"+V+ya+"/>")}function e(V,ya){ya=ya==="x"?$a.width():$a.height();return typeof V==="string"?Math.round(/%/.test(V)?ya/100*parseInt(V,10):parseInt(V,10)):V}function m(V){return x.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(V)}function j(V){for(var ya in V)if(a.isFunction(V[ya])&&ya.substring(0,2)!=="on")V[ya]=V[ya].call(ab);V.rel=V.rel||ab.rel||"nofollow";V.href=V.href||a(ab).attr("href");
V.title=V.title||ab.title;return V}function i(V,ya){ya&&ya.call(ab);a.event.trigger(V)}function g(){var V,ya=Z+"Slideshow_",ta="click."+Z,Xa,db;if(x.slideshow&&wa[1]){Xa=function(){jb.text(x.slideshowStop).unbind(ta).bind(Ga,function(){if(Qa<wa.length-1||x.loop)V=setTimeout(Ka.next,x.slideshowSpeed)}).bind(Oa,function(){clearTimeout(V)}).one(ta+" "+h,db);Da.removeClass(ya+"off").addClass(ya+"on");V=setTimeout(Ka.next,x.slideshowSpeed)};db=function(){clearTimeout(V);jb.text(x.slideshowStart).unbind([Ga,
Oa,h,ta].join(" ")).one(ta,Xa);Da.removeClass(ya+"on").addClass(ya+"off")};x.slideshowAuto?Xa():db()}}function s(V){if(!Eb){ab=V;x=j(a.extend({},a.data(ab,O)));wa=a(ab);Qa=0;if(x.rel!=="nofollow"){wa=a("."+yb).filter(function(){return(a.data(this,O).rel||this.rel)===x.rel});Qa=wa.index(ab);if(Qa===-1){wa=wa.add(ab);Qa=wa.length-1}}if(!pb){pb=wb=true;Da.show();if(x.returnFocus)try{ab.blur();a(ab).one(l,function(){try{this.focus()}catch(ta){}})}catch(ya){}ca.css({opacity:+x.opacity,cursor:x.overlayClose?
"pointer":"auto"}).show();x.w=e(x.initialWidth,"x");x.h=e(x.initialHeight,"y");Ka.position(0);n&&$a.bind("resize."+ja+" scroll."+ja,function(){ca.css({width:$a.width(),height:$a.height(),top:$a.scrollTop(),left:$a.scrollLeft()})}).trigger("scroll."+ja);i(C,x.onOpen);Fb.add(kb).add(xb).add(jb).add(Gb).hide();Hb.html(x.close).show()}Ka.load(true)}}var B={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,
scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,returnFocus:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},
O="colorbox",Z="cbox",C=Z+"_open",Oa=Z+"_load",Ga=Z+"_complete",h=Z+"_cleanup",l=Z+"_closed",v=Z+"_purge",R=Z+"_loaded",K=a.browser.msie&&!a.support.opacity,n=K&&a.browser.version<7,ja=Z+"_IE6",ca,Da,Ya,Ua,fb,hb,qb,ub,wa,$a,Va,zb,vb,Gb,Fb,jb,xb,kb,Hb,rb,lb,mb,sb,ab,Qa,x,pb,wb,Eb=false,Ka,yb=Z+"Element";Ka=a.fn[O]=a[O]=function(V,ya){var ta=this,Xa;if(!ta[0]&&ta.selector)return ta;V=V||{};if(ya)V.onComplete=ya;if(!ta[0]||ta.selector===undefined){ta=a("<a/>");V.open=true}ta.each(function(){a.data(this,
O,a.extend({},a.data(this,O)||B,V));a(this).addClass(yb)});Xa=V.open;if(a.isFunction(Xa))Xa=Xa.call(ta);Xa&&s(ta[0]);return ta};Ka.init=function(){$a=a(c);Da=d().attr({id:O,"class":K?Z+"IE":""});ca=d("Overlay",n?"position:absolute":"").hide();Ya=d("Wrapper");Ua=d("Content").append(Va=d("LoadedContent","width:0; height:0; overflow:hidden"),vb=d("LoadingOverlay").add(d("LoadingGraphic")),Gb=d("Title"),Fb=d("Current"),xb=d("Next"),kb=d("Previous"),jb=d("Slideshow").bind(C,g),Hb=d("Close"));Ya.append(d().append(d("TopLeft"),
fb=d("TopCenter"),d("TopRight")),d(false,"clear:left").append(hb=d("MiddleLeft"),Ua,qb=d("MiddleRight")),d(false,"clear:left").append(d("BottomLeft"),ub=d("BottomCenter"),d("BottomRight"))).children().children().css({"float":"left"});zb=d(false,"position:absolute; width:9999px; visibility:hidden; display:none");a("body").prepend(ca,Da.append(Ya,zb));Ua.children().hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).addClass("hover");rb=fb.height()+ub.height()+Ua.outerHeight(true)-
Ua.height();lb=hb.width()+qb.width()+Ua.outerWidth(true)-Ua.width();mb=Va.outerHeight(true);sb=Va.outerWidth(true);Da.css({"padding-bottom":rb,"padding-right":lb}).hide();xb.click(Ka.next);kb.click(Ka.prev);Hb.click(Ka.close);Ua.children().removeClass("hover");a("."+yb).live("click",function(V){if(!(V.button!==0&&typeof V.button!=="undefined"||V.ctrlKey||V.shiftKey||V.altKey)){V.preventDefault();s(this)}});ca.click(function(){x.overlayClose&&Ka.close()});a(document).bind("keydown",function(V){if(pb&&
x.escKey&&V.keyCode===27){V.preventDefault();Ka.close()}if(pb&&x.arrowKey&&!wb&&wa[1])if(V.keyCode===37&&(Qa||x.loop)){V.preventDefault();kb.click()}else if(V.keyCode===39&&(Qa<wa.length-1||x.loop)){V.preventDefault();xb.click()}})};Ka.remove=function(){Da.add(ca).remove();a("."+yb).die("click").removeData(O).removeClass(yb)};Ka.position=function(V,ya){function ta(ib){fb[0].style.width=ub[0].style.width=Ua[0].style.width=ib.style.width;vb[0].style.height=vb[1].style.height=Ua[0].style.height=hb[0].style.height=
qb[0].style.height=ib.style.height}var Xa,db=Math.max(document.documentElement.clientHeight-x.h-mb-rb,0)/2+$a.scrollTop(),Wa=Math.max($a.width()-x.w-sb-lb,0)/2+$a.scrollLeft();Xa=Da.width()===x.w+sb&&Da.height()===x.h+mb?0:V;Ya[0].style.width=Ya[0].style.height="9999px";Da.dequeue().animate({width:x.w+sb,height:x.h+mb,top:db,left:Wa},{duration:Xa,complete:function(){ta(this);wb=false;Ya[0].style.width=x.w+sb+lb+"px";Ya[0].style.height=x.h+mb+rb+"px";ya&&ya()},step:function(){ta(this)}})};Ka.resize=
function(V){if(pb){V=V||{};if(V.width)x.w=e(V.width,"x")-sb-lb;if(V.innerWidth)x.w=e(V.innerWidth,"x");Va.css({width:x.w});if(V.height)x.h=e(V.height,"y")-mb-rb;if(V.innerHeight)x.h=e(V.innerHeight,"y");if(!V.innerHeight&&!V.height){V=Va.wrapInner("<div style='overflow:auto'></div>").children();x.h=V.height();V.replaceWith(V.children())}Va.css({height:x.h});Ka.position(x.transition==="none"?0:x.speed)}};Ka.prep=function(V){function ya(db){var Wa,ib,bb,gb,Cb=wa.length,Ib=x.loop;Ka.position(db,function(){function Jb(){K&&
Da[0].style.removeAttribute("filter")}if(pb){K&&ta&&Va.fadeIn(100);Va.show();i(R);Gb.show().html(x.title);if(Cb>1){typeof x.current==="string"&&Fb.html(x.current.replace(/\{current\}/,Qa+1).replace(/\{total\}/,Cb)).show();xb[Ib||Qa<Cb-1?"show":"hide"]().html(x.next);kb[Ib||Qa?"show":"hide"]().html(x.previous);Wa=Qa?wa[Qa-1]:wa[Cb-1];bb=Qa<Cb-1?wa[Qa+1]:wa[0];x.slideshow&&jb.show();if(x.preloading){gb=a.data(bb,O).href||bb.href;ib=a.data(Wa,O).href||Wa.href;gb=a.isFunction(gb)?gb.call(bb):gb;ib=a.isFunction(ib)?
ib.call(Wa):ib;if(m(gb))a("<img/>")[0].src=gb;if(m(ib))a("<img/>")[0].src=ib}}vb.hide();x.transition==="fade"?Da.fadeTo(Xa,1,function(){Jb()}):Jb();$a.bind("resize."+Z,function(){Ka.position(0)});i(Ga,x.onComplete)}})}if(pb){var ta,Xa=x.transition==="none"?0:x.speed;$a.unbind("resize."+Z);Va.remove();Va=d("LoadedContent").html(V);Va.hide().appendTo(zb.show()).css({width:function(){x.w=x.w||Va.width();x.w=x.mw&&x.mw<x.w?x.mw:x.w;return x.w}(),overflow:x.scrolling?"auto":"hidden"}).css({height:function(){x.h=
x.h||Va.height();x.h=x.mh&&x.mh<x.h?x.mh:x.h;return x.h}()}).prependTo(Ua);zb.hide();a("#"+Z+"Photo").css({cssFloat:"none",marginLeft:"auto",marginRight:"auto"});n&&a("select").not(Da.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(h,function(){this.style.visibility="inherit"});x.transition==="fade"?Da.fadeTo(Xa,0,function(){ya(0)}):ya(Xa)}};Ka.load=function(V){var ya,ta,Xa,db=Ka.prep;wb=true;ab=wa[Qa];V||(x=j(a.extend({},a.data(ab,O))));
i(v);i(Oa,x.onLoad);x.h=x.height?e(x.height,"y")-mb-rb:x.innerHeight&&e(x.innerHeight,"y");x.w=x.width?e(x.width,"x")-sb-lb:x.innerWidth&&e(x.innerWidth,"x");x.mw=x.w;x.mh=x.h;if(x.maxWidth){x.mw=e(x.maxWidth,"x")-sb-lb;x.mw=x.w&&x.w<x.mw?x.w:x.mw}if(x.maxHeight){x.mh=e(x.maxHeight,"y")-mb-rb;x.mh=x.h&&x.h<x.mh?x.h:x.mh}ya=x.href;vb.show();if(x.inline){d().hide().insertBefore(a(ya)[0]).one(v,function(){a(this).replaceWith(Va.children())});db(a(ya))}else if(x.iframe){Da.one(R,function(){var Wa=a("<iframe frameborder='0' style='width:100%; height:100%; border:0; display:block'/>")[0];
Wa.name=Z+ +new Date;Wa.src=x.href;if(!x.scrolling)Wa.scrolling="no";if(K)Wa.allowtransparency="true";a(Wa).appendTo(Va).one(v,function(){Wa.src="//about:blank"})});db(" ")}else if(x.html)db(x.html);else if(m(ya)){ta=new Image;ta.onload=function(){var Wa;ta.onload=null;ta.id=Z+"Photo";a(ta).css({border:"none",display:"block",cssFloat:"left"});if(x.scalePhotos){Xa=function(){ta.height-=ta.height*Wa;ta.width-=ta.width*Wa};if(x.mw&&ta.width>x.mw){Wa=(ta.width-x.mw)/ta.width;Xa()}if(x.mh&&ta.height>x.mh){Wa=
(ta.height-x.mh)/ta.height;Xa()}}if(x.h)ta.style.marginTop=Math.max(x.h-ta.height,0)/2+"px";if(wa[1]&&(Qa<wa.length-1||x.loop))a(ta).css({cursor:"pointer"}).click(Ka.next);if(K)ta.style.msInterpolationMode="bicubic";setTimeout(function(){db(ta)},1)};setTimeout(function(){ta.src=ya},1)}else ya&&zb.load(ya,function(Wa,ib,bb){db(ib==="error"?"Request unsuccessful: "+bb.statusText:a(this).children())})};Ka.next=function(){if(!wb){Qa=Qa<wa.length-1?Qa+1:0;Ka.load()}};Ka.prev=function(){if(!wb){Qa=Qa?Qa-
1:wa.length-1;Ka.load()}};Ka.close=function(){if(pb&&!Eb){Eb=true;pb=false;i(h,x.onCleanup);$a.unbind("."+Z+" ."+ja);ca.fadeTo("fast",0);Da.stop().fadeTo("fast",0,function(){i(v);Va.remove();Da.add(ca).css({opacity:1,cursor:"auto"}).hide();setTimeout(function(){Eb=false;i(l,x.onClosed)},1)})}};Ka.element=function(){return a(ab)};Ka.settings=B;a(Ka.init)})(jQuery,this);
(function(a){function c(i,g){a.each(g,function(s,B){if(i==B.id){var O='<div style="display:none"><div id="event-pop-up"><h2>'+B.title+"</h2>";O+=B.description;O+=B.location?"<p><strong>Location:</strong> "+B.location+"</p></div></div>":"</div></div>";a("#pop-up").html(O);a.colorbox({inline:true,href:"#event-pop-up",width:400,onClosed:function(){a("#event-pop-up").remove()}});return false}})}function d(i,g){if(i.date<g.date)return-1;if(i.date>g.date)return 1;return 0}function e(i){return Date.parse(i.substr(0,
10))}var m={sources:"",count:5,event_wrapper:"article",title_heading:"h3",date_format:"yyyy-MM-dd",message:"Please check back in the coming days and weeks as we add new events to our schedule."},j=[];a.fn.nmcCalendarList=function(i){a(this).append('<div id="loading">loading...</div>');return this.each(function(){var g=a(this);i&&a.extend(m,i);if(m.sources){var s=0;a.each(m.sources,function(B){b=m.sources[B].replace(/\/basic$/,"/full");a.getJSON(b+"?alt=json-in-script&futureevents=true&max-results="+
m.count+"&singleevents=true&sortorder=ascending&orderby=starttime&callback=?",function(O){if(O.feed.entry)if(O.feed.entry.length<m.count)m.count=O.feed.entry.length;O.feed.openSearch$totalResults.$t>0&&a.each(O.feed.entry,function(Oa,Ga){j.push({id:"",start:e(Ga.gd$when[0].startTime),end:e(Ga.gd$when[0].endTime),date:e(Ga.gd$when[0].startTime),title:Ga.title.$t,location:Ga.gd$where[0].valueString,description:Ga.content.$t})});s++;if(s==m.sources.length&&j.length>0){O="";j.sort(d);for(var Z=0;Z<m.count;Z++){j[Z].id=
"event"+Z;var C="";if(Z%2===0)C=" odd";O+="<"+m.event_wrapper+' id="'+j[Z].id+'" class="event'+C+'"><time class="event-time" pubdate>';O+=j[Z].date.toString("M/d/yy");O+="</time><"+m.title_heading+' class="event-title"><a rel="colorbox" href="#'+j[Z].id+'-details" class="event-link">'+j[Z].title+"</a></"+m.title_heading+"></"+m.event_wrapper+">"}a("#loading").remove();g.html(O);a(".event a").click(function(){c(a(this).parent(m.title_heading).parent(m.event_wrapper).attr("id"),j);return false})}else{a("#loading").remove();
g.html("<p>"+m.message+"</p>")}})})}else{b=m.source.replace(/\/basic$/,"/full");a.ajax({url:b,data:{alt:"json-in-script",orderby:"starttime",sortorder:"ascending",futureevents:"true",singleevents:"true","max-results":""+m.count+""},dataType:"jsonp",success:function(B){a.each(B.feed.entry,function(Z,C){j.push({id:"event"+Z,start:e(C.gd$when[0].startTime),end:e(C.gd$when[0].endTime),date:Date.parse(C.gd$when[0].startTime),title:C.title.$t,location:C.gd$where[0].valueString,description:C.content.$t})});
var O="";a.each(j,function(Z,C){O+="<"+m.event_wrapper+' id="'+C.id+'" class="event"><time class="event-time" pubdate>';O+=C.start?C.start.toString(m.date_format):C.date.toString(m.date_format);O+="</time><"+m.title_heading+' class="event-title"><a rel="colorbox" href="#'+C.id+'-details" class="event-link">'+C.title+"</a></"+m.title_heading+"></"+m.event_wrapper+">"});if(j.length>0){a("#loading").remove();g.html(O)}else{a("#loading").remove();g.html("<p>"+m.message+"</p>")}a(".event a").click(function(){c(a(this).parent(m.title_heading).parent(m.event_wrapper).attr("id"),
j);return false})},error:function(){g.html("There is an error. Please check back later.")}})}})}})(jQuery);
Date.CultureInfo={name:"en-US",englishName:"English (United States)",nativeName:"English (United States)",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],firstLetterDayNames:["S","M","T","W","T","F","S"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviatedMonthNames:["Jan",
"Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:0,twoDigitYearMax:2029,dateElementOrder:"mdy",formatPatterns:{shortDate:"M/d/yyyy",longDate:"dddd, MMMM dd, yyyy",shortTime:"h:mm tt",longTime:"h:mm:ss tt",fullDateTime:"dddd, MMMM dd, yyyy h:mm:ss tt",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"MMMM dd",yearMonth:"MMMM, yyyy"},regexPatterns:{jan:/^jan(uary)?/i,
feb:/^feb(ruary)?/i,mar:/^mar(ch)?/i,apr:/^apr(il)?/i,may:/^may/i,jun:/^jun(e)?/i,jul:/^jul(y)?/i,aug:/^aug(ust)?/i,sep:/^sep(t(ember)?)?/i,oct:/^oct(ober)?/i,nov:/^nov(ember)?/i,dec:/^dec(ember)?/i,sun:/^su(n(day)?)?/i,mon:/^mo(n(day)?)?/i,tue:/^tu(e(s(day)?)?)?/i,wed:/^we(d(nesday)?)?/i,thu:/^th(u(r(s(day)?)?)?)?/i,fri:/^fr(i(day)?)?/i,sat:/^sa(t(urday)?)?/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|after|from)/i,subtract:/^(\-|before|ago)/i,yesterday:/^yesterday/i,today:/^t(oday)?/i,
tomorrow:/^tomorrow/i,now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^min(ute)?s?/i,hour:/^h(ou)?rs?/i,week:/^w(ee)?k/i,month:/^m(o(nth)?s?)?/i,day:/^d(ays?)?/i,year:/^y((ea)?rs?)?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a|p)/i},abbreviatedTimeZoneStandard:{GMT:"-000",EST:"-0400",CST:"-0500",MST:"-0600",
PST:"-0700"},abbreviatedTimeZoneDST:{GMT:"-000",EDT:"-0500",CDT:"-0600",MDT:"-0700",PDT:"-0800"}};Date.getMonthNumberFromName=function(a){var c=Date.CultureInfo.monthNames,d=Date.CultureInfo.abbreviatedMonthNames;a=a.toLowerCase();for(var e=0;e<c.length;e++)if(c[e].toLowerCase()==a||d[e].toLowerCase()==a)return e;return-1};
Date.getDayNumberFromName=function(a){var c=Date.CultureInfo.dayNames,d=Date.CultureInfo.abbreviatedDayNames;a=a.toLowerCase();for(var e=0;e<c.length;e++)if(c[e].toLowerCase()==a||d[e].toLowerCase()==a)return e;return-1};Date.isLeapYear=function(a){return a%4===0&&a%100!==0||a%400===0};Date.getDaysInMonth=function(a,c){return[31,Date.isLeapYear(a)?29:28,31,30,31,30,31,31,30,31,30,31][c]};Date.getTimezoneOffset=function(a,c){return c?Date.CultureInfo.abbreviatedTimeZoneDST[a.toUpperCase()]:Date.CultureInfo.abbreviatedTimeZoneStandard[a.toUpperCase()]};
Date.getTimezoneAbbreviation=function(a,c){var d=c?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard,e;for(e in d)if(d[e]===a)return e;return null};Date.prototype.clone=function(){return new Date(this.getTime())};Date.prototype.compareTo=function(a){if(isNaN(this))throw Error(this);if(a instanceof Date&&!isNaN(a))return this>a?1:this<a?-1:0;else throw new TypeError(a);};Date.prototype.equals=function(a){return this.compareTo(a)===0};
Date.prototype.between=function(a,c){var d=this.getTime();return d>=a.getTime()&&d<=c.getTime()};Date.prototype.addMilliseconds=function(a){this.setMilliseconds(this.getMilliseconds()+a);return this};Date.prototype.addSeconds=function(a){return this.addMilliseconds(a*1E3)};Date.prototype.addMinutes=function(a){return this.addMilliseconds(a*6E4)};Date.prototype.addHours=function(a){return this.addMilliseconds(a*36E5)};Date.prototype.addDays=function(a){return this.addMilliseconds(a*864E5)};
Date.prototype.addWeeks=function(a){return this.addMilliseconds(a*6048E5)};Date.prototype.addMonths=function(a){var c=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+a);this.setDate(Math.min(c,this.getDaysInMonth()));return this};Date.prototype.addYears=function(a){return this.addMonths(a*12)};
Date.prototype.add=function(a){if(typeof a=="number"){this._orient=a;return this}if(a.millisecond||a.milliseconds)this.addMilliseconds(a.millisecond||a.milliseconds);if(a.second||a.seconds)this.addSeconds(a.second||a.seconds);if(a.minute||a.minutes)this.addMinutes(a.minute||a.minutes);if(a.hour||a.hours)this.addHours(a.hour||a.hours);if(a.month||a.months)this.addMonths(a.month||a.months);if(a.year||a.years)this.addYears(a.year||a.years);if(a.day||a.days)this.addDays(a.day||a.days);return this};
Date._validate=function(a,c,d,e){if(typeof a!="number")throw new TypeError(a+" is not a Number.");else if(a<c||a>d)throw new RangeError(a+" is not a valid value for "+e+".");return true};Date.validateMillisecond=function(a){return Date._validate(a,0,999,"milliseconds")};Date.validateSecond=function(a){return Date._validate(a,0,59,"seconds")};Date.validateMinute=function(a){return Date._validate(a,0,59,"minutes")};Date.validateHour=function(a){return Date._validate(a,0,23,"hours")};
Date.validateDay=function(a,c,d){return Date._validate(a,1,Date.getDaysInMonth(c,d),"days")};Date.validateMonth=function(a){return Date._validate(a,0,11,"months")};Date.validateYear=function(a){return Date._validate(a,1,9999,"seconds")};
Date.prototype.set=function(a){if(!a.millisecond&&a.millisecond!==0)a.millisecond=-1;if(!a.second&&a.second!==0)a.second=-1;if(!a.minute&&a.minute!==0)a.minute=-1;if(!a.hour&&a.hour!==0)a.hour=-1;if(!a.day&&a.day!==0)a.day=-1;if(!a.month&&a.month!==0)a.month=-1;if(!a.year&&a.year!==0)a.year=-1;a.millisecond!=-1&&Date.validateMillisecond(a.millisecond)&&this.addMilliseconds(a.millisecond-this.getMilliseconds());a.second!=-1&&Date.validateSecond(a.second)&&this.addSeconds(a.second-this.getSeconds());
a.minute!=-1&&Date.validateMinute(a.minute)&&this.addMinutes(a.minute-this.getMinutes());a.hour!=-1&&Date.validateHour(a.hour)&&this.addHours(a.hour-this.getHours());a.month!==-1&&Date.validateMonth(a.month)&&this.addMonths(a.month-this.getMonth());a.year!=-1&&Date.validateYear(a.year)&&this.addYears(a.year-this.getFullYear());a.day!=-1&&Date.validateDay(a.day,this.getFullYear(),this.getMonth())&&this.addDays(a.day-this.getDate());a.timezone&&this.setTimezone(a.timezone);a.timezoneOffset&&this.setTimezoneOffset(a.timezoneOffset);
return this};Date.prototype.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this};Date.prototype.isLeapYear=function(){var a=this.getFullYear();return a%4===0&&a%100!==0||a%400===0};Date.prototype.isWeekday=function(){return!(this.is().sat()||this.is().sun())};Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth())};Date.prototype.moveToFirstDayOfMonth=function(){return this.set({day:1})};
Date.prototype.moveToLastDayOfMonth=function(){return this.set({day:this.getDaysInMonth()})};Date.prototype.moveToDayOfWeek=function(a,c){var d=(a-this.getDay()+7*(c||+1))%7;return this.addDays(d===0?d+=7*(c||+1):d)};Date.prototype.moveToMonth=function(a,c){var d=(a-this.getMonth()+12*(c||+1))%12;return this.addMonths(d===0?d+=12*(c||+1):d)};Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/864E5)};
Date.prototype.getWeekOfYear=function(a){var c=this.getFullYear(),d=this.getMonth(),e=this.getDate();a=a||Date.CultureInfo.firstDayOfWeek;var m=8-(new Date(c,0,1)).getDay();if(m==8)m=1;d=(Date.UTC(c,d,e,0,0,0)-Date.UTC(c,0,1,0,0,0))/864E5+1;d=Math.floor((d-m+7)/7);if(d===a){c--;c=8-(new Date(c,0,1)).getDay();d=c==2||c==8?53:52}return d};Date.prototype.isDST=function(){console.log("isDST");return this.toString().match(/(E|C|M|P)(S|D)T/)[2]=="D"};
Date.prototype.getTimezone=function(){return Date.getTimezoneAbbreviation(this.getUTCOffset,this.isDST())};Date.prototype.setTimezoneOffset=function(a){var c=this.getTimezoneOffset();this.addMinutes(Number(a)*-6/10-c);return this};Date.prototype.setTimezone=function(a){return this.setTimezoneOffset(Date.getTimezoneOffset(a))};Date.prototype.getUTCOffset=function(){var a=this.getTimezoneOffset()*-10/6;if(a<0){a=(a-1E4).toString();return a[0]+a.substr(2)}else{a=(a+1E4).toString();return"+"+a.substr(1)}};
Date.prototype.getDayName=function(a){return a?Date.CultureInfo.abbreviatedDayNames[this.getDay()]:Date.CultureInfo.dayNames[this.getDay()]};Date.prototype.getMonthName=function(a){return a?Date.CultureInfo.abbreviatedMonthNames[this.getMonth()]:Date.CultureInfo.monthNames[this.getMonth()]};Date.prototype._toString=Date.prototype.toString;
Date.prototype.toString=function(a){var c=this,d=function(e){return e.toString().length==1?"0"+e:e};return a?a.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(e){switch(e){case "hh":return d(c.getHours()<13?c.getHours():c.getHours()-12);case "h":return c.getHours()<13?c.getHours():c.getHours()-12;case "HH":return d(c.getHours());case "H":return c.getHours();case "mm":return d(c.getMinutes());case "m":return c.getMinutes();case "ss":return d(c.getSeconds());case "s":return c.getSeconds();
case "yyyy":return c.getFullYear();case "yy":return c.getFullYear().toString().substring(2,4);case "dddd":return c.getDayName();case "ddd":return c.getDayName(true);case "dd":return d(c.getDate());case "d":return c.getDate().toString();case "MMMM":return c.getMonthName();case "MMM":return c.getMonthName(true);case "MM":return d(c.getMonth()+1);case "M":return c.getMonth()+1;case "t":return c.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case "tt":return c.getHours()<
12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case "zzz":case "zz":case "z":return""}}):this._toString()};Date.now=function(){return new Date};Date.today=function(){return Date.now().clearTime()};Date.prototype._orient=+1;Date.prototype.next=function(){this._orient=+1;return this};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;return this};Date.prototype._is=false;Date.prototype.is=function(){this._is=true;return this};
Number.prototype._dateElement="day";Number.prototype.fromNow=function(){var a={};a[this._dateElement]=this;return Date.now().add(a)};Number.prototype.ago=function(){var a={};a[this._dateElement]=this*-1;return Date.now().add(a)};
(function(){for(var a=Date.prototype,c=Number.prototype,d="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),e="january february march april may june july august september october november december".split(/\s/),m="Millisecond Second Minute Hour Day Week Month Year".split(/\s/),j=function(g){return function(){if(this._is){this._is=false;return this.getDay()==g}return this.moveToDayOfWeek(g,this._orient)}},i=0;i<d.length;i++)a[d[i]]=a[d[i].substring(0,3)]=j(i);d=function(g){return function(){if(this._is){this._is=
false;return this.getMonth()===g}return this.moveToMonth(g,this._orient)}};for(j=0;j<e.length;j++)a[e[j]]=a[e[j].substring(0,3)]=d(j);d=function(g){return function(){if(g.substring(g.length-1)!="s")g+="s";return this["add"+g](this._orient)}};j=function(g){return function(){this._dateElement=g;return this}};for(i=0;i<m.length;i++){e=m[i].toLowerCase();a[e]=a[e+"s"]=d(m[i]);c[e]=c[e+"s"]=j(e)}})();Date.prototype.toJSONString=function(){return this.toString("yyyy-MM-ddThh:mm:ssZ")};
Date.prototype.toShortDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortDatePattern)};Date.prototype.toLongDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.longDatePattern)};Date.prototype.toShortTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortTimePattern)};Date.prototype.toLongTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.longTimePattern)};
Date.prototype.getOrdinal=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}};
(function(){Date.Parsing={Exception:function(j){this.message="Parse error at '"+j.substring(0,10)+" ...'"}};for(var a=Date.Parsing,c=a.Operators={rtoken:function(j){return function(i){var g=i.match(j);if(g)return[g[0],i.substring(g[0].length)];else throw new a.Exception(i);}},token:function(){return function(j){return c.rtoken(RegExp("^s*"+j+"s*"))(j)}},stoken:function(j){return c.rtoken(RegExp("^"+j))},until:function(j){return function(i){for(var g=[],s=null;i.length;){try{s=j.call(this,i)}catch(B){g.push(s[0]);
i=s[1];continue}break}return[g,i]}},many:function(j){return function(i){for(var g=[],s=null;i.length;){try{s=j.call(this,i)}catch(B){break}g.push(s[0]);i=s[1]}return[g,i]}},optional:function(j){return function(i){var g=null;try{g=j.call(this,i)}catch(s){return[null,i]}return[g[0],g[1]]}},not:function(j){return function(i){try{j.call(this,i)}catch(g){return[null,i]}throw new a.Exception(i);}},ignore:function(j){return j?function(i){var g=null;g=j.call(this,i);return[null,g[1]]}:null},product:function(){for(var j=
arguments[0],i=Array.prototype.slice.call(arguments,1),g=[],s=0;s<j.length;s++)g.push(c.each(j[s],i));return g},cache:function(j){var i={},g=null;return function(s){try{g=i[s]=i[s]||j.call(this,s)}catch(B){g=i[s]=B}if(g instanceof a.Exception)throw g;else return g}},any:function(){var j=arguments;return function(i){for(var g=null,s=0;s<j.length;s++)if(j[s]!=null){try{g=j[s].call(this,i)}catch(B){g=null}if(g)return g}throw new a.Exception(i);}},each:function(){var j=arguments;return function(i){for(var g=
[],s=null,B=0;B<j.length;B++)if(j[B]!=null){try{s=j[B].call(this,i)}catch(O){throw new a.Exception(i);}g.push(s[0]);i=s[1]}return[g,i]}},all:function(){var j=j;return j.each(j.optional(arguments))},sequence:function(j,i,g){i=i||c.rtoken(/^\s*/);g=g||null;if(j.length==1)return j[0];return function(s){for(var B=null,O=null,Z=[],C=0;C<j.length;C++){try{B=j[C].call(this,s)}catch(Oa){break}Z.push(B[0]);try{O=i.call(this,B[1])}catch(Ga){O=null;break}s=O[1]}if(!B)throw new a.Exception(s);if(O)throw new a.Exception(O[1]);
if(g)try{B=g.call(this,B[1])}catch(h){throw new a.Exception(B[1]);}return[Z,B?B[1]:s]}},between:function(j,i,g){g=g||j;var s=c.each(c.ignore(j),i,c.ignore(g));return function(B){B=s.call(this,B);return[[B[0][0],r[0][2]],B[1]]}},list:function(j,i,g){i=i||c.rtoken(/^\s*/);g=g||null;return j instanceof Array?c.each(c.product(j.slice(0,-1),c.ignore(i)),j.slice(-1),c.ignore(g)):c.each(c.many(c.each(j,c.ignore(i))),px,c.ignore(g))},set:function(j,i,g){i=i||c.rtoken(/^\s*/);g=g||null;return function(s){var B=
null;for(var O=B=null,Z=null,C=[[],s],Oa=false,Ga=0;Ga<j.length;Ga++){B=O=null;Oa=j.length==1;try{B=j[Ga].call(this,s)}catch(h){continue}Z=[[B[0]],B[1]];if(B[1].length>0&&!Oa)try{O=i.call(this,B[1])}catch(l){Oa=true}else Oa=true;if(!Oa&&O[1].length===0)Oa=true;if(!Oa){B=[];for(Oa=0;Oa<j.length;Oa++)Ga!=Oa&&B.push(j[Oa]);B=c.set(B,i).call(this,O[1]);if(B[0].length>0){Z[0]=Z[0].concat(B[0]);Z[1]=B[1]}}if(Z[1].length<C[1].length)C=Z;if(C[1].length===0)break}if(C[0].length===0)return C;if(g){try{O=g.call(this,
C[1])}catch(v){throw new a.Exception(C[1]);}C[1]=O[1]}return C}},forward:function(j,i){return function(g){return j[i].call(this,g)}},replace:function(j,i){return function(g){g=j.call(this,g);return[i,g[1]]}},process:function(j,i){return function(g){g=j.call(this,g);return[i.call(this,g[0]),g[1]]}},min:function(j,i){return function(g){var s=i.call(this,g);if(s[0].length<j)throw new a.Exception(g);return s}}},d=function(j){return function(){var i=null,g=[];if(arguments.length>1)i=Array.prototype.slice.call(arguments);
else if(arguments[0]instanceof Array)i=arguments[0];if(i)for(var s=i.shift();0<s.length;){i.unshift(s[0]);g.push(j.apply(null,i));i.shift();return g}else return j.apply(null,arguments)}},e="optional not ignore cache".split(/\s/),m=0;m<e.length;m++)c[e[m]]=d(c[e[m]]);d=function(j){return function(){return arguments[0]instanceof Array?j.apply(null,arguments[0]):j.apply(null,arguments)}};e="each any all".split(/\s/);for(m=0;m<e.length;m++)c[e[m]]=d(c[e[m]])})();
(function(){var a=function(g){for(var s=[],B=0;B<g.length;B++)if(g[B]instanceof Array)s=s.concat(a(g[B]));else g[B]&&s.push(g[B]);return s};Date.Grammar={};Date.Translator={hour:function(g){return function(){this.hour=Number(g)}},minute:function(g){return function(){this.minute=Number(g)}},second:function(g){return function(){this.second=Number(g)}},meridian:function(g){return function(){this.meridian=g.slice(0,1).toLowerCase()}},timezone:function(g){return function(){var s=g.replace(/[^\d\+\-]/g,
"");if(s.length)this.timezoneOffset=Number(s);else this.timezone=g.toLowerCase()}},day:function(g){var s=g[0];return function(){this.day=Number(s.match(/\d+/)[0])}},month:function(g){return function(){this.month=g.length==3?Date.getMonthNumberFromName(g):Number(g)-1}},year:function(g){return function(){var s=Number(g);this.year=g.length>2?s:s+(s+2E3<Date.CultureInfo.twoDigitYearMax?2E3:1900)}},rday:function(g){return function(){switch(g){case "yesterday":this.days=-1;break;case "tomorrow":this.days=
1;break;case "today":this.days=0;break;case "now":this.days=0;this.now=true}}},finishExact:function(g){g=g instanceof Array?g:[g];var s=new Date;this.year=s.getFullYear();this.month=s.getMonth();this.day=1;for(s=this.second=this.minute=this.hour=0;s<g.length;s++)g[s]&&g[s].call(this);this.hour=this.meridian=="p"&&this.hour<13?this.hour+12:this.hour;if(this.day>Date.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");g=new Date(this.year,this.month,
this.day,this.hour,this.minute,this.second);if(this.timezone)g.set({timezone:this.timezone});else this.timezoneOffset&&g.set({timezoneOffset:this.timezoneOffset});return g},finish:function(g){g=g instanceof Array?a(g):[g];if(g.length===0)return null;for(var s=0;s<g.length;s++)typeof g[s]=="function"&&g[s].call(this);if(this.now)return new Date;g=Date.today();if(this.days!=null||this.orient||this.operator){var B,O;O=this.orient=="past"||this.operator=="subtract"?-1:1;if(this.weekday){this.unit="day";
s=Date.getDayNumberFromName(this.weekday)-g.getDay();B=7;this.days=s?(s+O*B)%B:O*B}if(this.month){this.unit="month";s=this.month-g.getMonth();B=12;this.months=s?(s+O*B)%B:O*B;this.month=null}if(!this.unit)this.unit="day";if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value)this.value=1;if(this.unit=="week"){this.unit="day";this.value*=7}this[this.unit+"s"]=this.value*O}return g.add(this)}else{if(this.meridian&&this.hour)this.hour=this.hour<13&&this.meridian=="p"?this.hour+12:this.hour;
if(this.weekday&&!this.day)this.day=g.addDays(Date.getDayNumberFromName(this.weekday)-g.getDay()).getDate();if(this.month&&!this.day)this.day=1;return g.set(this)}}};var c=Date.Parsing.Operators,d=Date.Grammar,e=Date.Translator,m;d.datePartDelimiter=c.rtoken(/^([\s\-\.\,\/\x27]+)/);d.timePartDelimiter=c.stoken(":");d.whiteSpace=c.rtoken(/^\s*/);d.generalDelimiter=c.rtoken(/^(([\s\,]|at|on)+)/);var j={};d.ctoken=function(g){var s=j[g];if(!s){s=Date.CultureInfo.regexPatterns;for(var B=g.split(/\s+/),
O=[],Z=0;Z<B.length;Z++)O.push(c.replace(c.rtoken(s[B[Z]]),B[Z]));s=j[g]=c.any.apply(null,O)}return s};d.ctoken2=function(g){return c.rtoken(Date.CultureInfo.regexPatterns[g])};d.h=c.cache(c.process(c.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),e.hour));d.hh=c.cache(c.process(c.rtoken(/^(0[0-9]|1[0-2])/),e.hour));d.H=c.cache(c.process(c.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),e.hour));d.HH=c.cache(c.process(c.rtoken(/^([0-1][0-9]|2[0-3])/),e.hour));d.m=c.cache(c.process(c.rtoken(/^([0-5][0-9]|[0-9])/),e.minute));
d.mm=c.cache(c.process(c.rtoken(/^[0-5][0-9]/),e.minute));d.s=c.cache(c.process(c.rtoken(/^([0-5][0-9]|[0-9])/),e.second));d.ss=c.cache(c.process(c.rtoken(/^[0-5][0-9]/),e.second));d.hms=c.cache(c.sequence([d.H,d.mm,d.ss],d.timePartDelimiter));d.t=c.cache(c.process(d.ctoken2("shortMeridian"),e.meridian));d.tt=c.cache(c.process(d.ctoken2("longMeridian"),e.meridian));d.z=c.cache(c.process(c.rtoken(/^(\+|\-)?\s*\d\d\d\d?/),e.timezone));d.zz=c.cache(c.process(c.rtoken(/^(\+|\-)\s*\d\d\d\d/),e.timezone));
d.zzz=c.cache(c.process(d.ctoken2("timezone"),e.timezone));d.timeSuffix=c.each(c.ignore(d.whiteSpace),c.set([d.tt,d.zzz]));d.time=c.each(c.optional(c.ignore(c.stoken("T"))),d.hms,d.timeSuffix);d.d=c.cache(c.process(c.each(c.rtoken(/^([0-2]\d|3[0-1]|\d)/),c.optional(d.ctoken2("ordinalSuffix"))),e.day));d.dd=c.cache(c.process(c.each(c.rtoken(/^([0-2]\d|3[0-1])/),c.optional(d.ctoken2("ordinalSuffix"))),e.day));d.ddd=d.dddd=c.cache(c.process(d.ctoken("sun mon tue wed thu fri sat"),function(g){return function(){this.weekday=
g}}));d.M=c.cache(c.process(c.rtoken(/^(1[0-2]|0\d|\d)/),e.month));d.MM=c.cache(c.process(c.rtoken(/^(1[0-2]|0\d)/),e.month));d.MMM=d.MMMM=c.cache(c.process(d.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),e.month));d.y=c.cache(c.process(c.rtoken(/^(\d\d?)/),e.year));d.yy=c.cache(c.process(c.rtoken(/^(\d\d)/),e.year));d.yyy=c.cache(c.process(c.rtoken(/^(\d\d?\d?\d?)/),e.year));d.yyyy=c.cache(c.process(c.rtoken(/^(\d\d\d\d)/),e.year));m=function(){return c.each(c.any.apply(null,arguments),
c.not(d.ctoken2("timeContext")))};d.day=m(d.d,d.dd);d.month=m(d.M,d.MMM);d.year=m(d.yyyy,d.yy);d.orientation=c.process(d.ctoken("past future"),function(g){return function(){this.orient=g}});d.operator=c.process(d.ctoken("add subtract"),function(g){return function(){this.operator=g}});d.rday=c.process(d.ctoken("yesterday tomorrow today now"),e.rday);d.unit=c.process(d.ctoken("minute hour day week month year"),function(g){return function(){this.unit=g}});d.value=c.process(c.rtoken(/^\d\d?(st|nd|rd|th)?/),
function(g){return function(){this.value=g.replace(/\D/g,"")}});d.expression=c.set([d.rday,d.operator,d.value,d.unit,d.orientation,d.ddd,d.MMM]);m=function(){return c.set(arguments,d.datePartDelimiter)};d.mdy=m(d.ddd,d.month,d.day,d.year);d.ymd=m(d.ddd,d.year,d.month,d.day);d.dmy=m(d.ddd,d.day,d.month,d.year);d.date=function(g){return(d[Date.CultureInfo.dateElementOrder]||d.mdy).call(this,g)};d.format=c.process(c.many(c.any(c.process(c.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),
function(g){if(d[g])return d[g];else throw Date.Parsing.Exception(g);}),c.process(c.rtoken(/^[^dMyhHmstz]+/),function(g){return c.ignore(c.stoken(g))}))),function(g){return c.process(c.each.apply(null,g),e.finishExact)});var i={};d.formats=function(g){if(g instanceof Array){for(var s=[],B=0;B<g.length;B++)s.push(i[g[B]]=i[g[B]]||d.format(g[B])[0]);return c.any.apply(null,s)}else return i[g]=i[g]||d.format(g)[0]};d._formats=d.formats(["yyyy-MM-ddTHH:mm:ss","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz",
"d"]);d._start=c.process(c.set([d.date,d.time,d.expression],d.generalDelimiter,d.whiteSpace),e.finish);d.start=function(g){try{var s=d._formats.call({},g);if(s[1].length===0)return s}catch(B){}return d._start.call({},g)}})();Date._parse=Date.parse;Date.parse=function(a){var c=null;if(!a)return null;try{c=Date.Grammar.start.call({},a)}catch(d){return null}return c[1].length===0?c[0]:null};
Date.getParseFunction=function(a){var c=Date.Grammar.formats(a);return function(d){var e=null;try{e=c.call({},d)}catch(m){return null}return e[1].length===0?e[0]:null}};Date.parseExact=function(a,c){return Date.getParseFunction(c)(a)};
(function(a,c){function d(f){a.extend(true,Wa,f)}function e(f,o,k){function u(){setTimeout(function(){!w.start&&a("body")[0].offsetWidth!==0&&E()},0)}function t(Y){if(!w||Y!=w.name){Ha++;ma();var M=w,ga;if(M){(M.beforeHide||Gb)();vb(q,q.height());M.element.hide()}else vb(q,1);q.css("overflow","hidden");if(w=W[Y])w.element.show();else w=W[Y]=new gb[Y](ga=La=a("<div class='fc-view fc-view-"+Y+"' style='position:absolute'/>").appendTo(q),ka);M&&U.deactivateButton(M.name);U.activateButton(Y);E();q.css("overflow",
"");M&&vb(q,1);ga||(w.afterShow||Gb)();Ha--}}function E(Y){if(N.offsetWidth!==0){Ha++;ma();Ba===c&&y();var M=false;if(!w.start||Y||xa<w.start||xa>=w.end){w.render(xa,Y||0);L(true);M=true}else if(w.sizeDirty){w.clearEvents();L();M=true}else if(w.eventsDirty){w.clearEvents();M=true}w.sizeDirty=false;w.eventsDirty=false;Y=M;if(!o.lazyFetching||Sa(w.visStart,w.visEnd))J();else Y&&na();aa=f.outerWidth();U.updateTitle(w.title);Y=new Date;Y>=w.start&&Y<w.end?U.disableButton("today"):U.enableButton("today");
Ha--;w.trigger("viewDisplay",N)}}function G(){z();if(N.offsetWidth!==0){y();L();ma();w.clearEvents();w.renderEvents(Fa);w.sizeDirty=false}}function z(){a.each(W,function(Y,M){M.sizeDirty=true})}function y(){Ba=o.contentHeight?o.contentHeight:o.height?o.height-(pa?pa.height():0)-Va(q):Math.round(q.width()/Math.max(o.aspectRatio,0.5))}function L(Y){Ha++;w.setHeight(Ba,Y);if(La){La.css("position","relative");La=null}w.setWidth(q.width(),Y);Ha--}function T(){if(!Ha)if(w.start){var Y=++Ra;setTimeout(function(){if(Y==
Ra&&!Ha&&N.offsetWidth!==0)if(aa!=(aa=f.outerWidth())){Ha++;G();w.trigger("windowResize",N);Ha--}},200)}else u()}function J(){da(w.visStart,w.visEnd)}function na(Y){za();if(N.offsetWidth!==0){w.clearEvents();w.renderEvents(Fa,Y);w.eventsDirty=false}}function za(){a.each(W,function(Y,M){M.eventsDirty=true})}function ma(){w&&w.unselect()}var ka=this;ka.options=o;ka.render=function(Y){if(q){y();z();za();E(Y)}else{f.addClass("fc");o.isRTL&&f.addClass("fc-rtl");o.theme&&f.addClass("ui-widget");q=a("<div class='fc-content' style='position:relative'/>").prependTo(f);
U=new m(ka,o);(pa=U.render())&&f.prepend(pa);t(o.defaultView);a(window).resize(T);a("body")[0].offsetWidth!==0||u()}};ka.destroy=function(){a(window).unbind("resize",T);U.destroy();q.remove();f.removeClass("fc fc-rtl ui-widget")};ka.refetchEvents=J;ka.reportEvents=function(Y){Fa=Y;na()};ka.reportEventChange=function(Y){na(Y)};ka.rerenderEvents=na;ka.changeView=t;ka.select=function(Y,M,ga){w.select(Y,M,ga===c?true:ga)};ka.unselect=ma;ka.prev=function(){E(-1)};ka.next=function(){E(1)};ka.prevYear=function(){i(xa,
-1);E()};ka.nextYear=function(){i(xa,1);E()};ka.today=function(){xa=new Date;E()};ka.gotoDate=function(Y,M,ga){if(Y instanceof Date)xa=C(Y);else l(xa,Y,M,ga);E()};ka.incrementDate=function(Y,M,ga){Y!==c&&i(xa,Y);M!==c&&g(xa,M);ga!==c&&s(xa,ga);E()};ka.formatDate=function(Y,M){return n(Y,M,o)};ka.formatDates=function(Y,M,ga){return ja(Y,M,ga,o)};ka.getDate=function(){return C(xa)};ka.getView=function(){return w};ka.option=function(Y,M){if(M===c)return o[Y];if(Y=="height"||Y=="contentHeight"||Y=="aspectRatio"){o[Y]=
M;G()}};ka.trigger=function(Y,M){if(o[Y])return o[Y].apply(M||N,Array.prototype.slice.call(arguments,2))};j.call(ka,o,k);var Sa=ka.isFetchNeeded,da=ka.fetchEvents,N=f[0],U,pa,q,w,W={},aa,Ba,La,Ra=0,Ha=0,xa=new Date,Fa=[],Ia;l(xa,o.year,o.month,o.date);o.droppable&&a(document).bind("dragstart",function(Y,M){var ga=Y.target,qa=a(ga);if(!qa.parents(".fc").length){var la=o.dropAccept;if(a.isFunction(la)?la.call(ga,qa):qa.is(la)){Ia=ga;w.dragStart(Ia,Y,M)}}}).bind("dragstop",function(Y,M){if(Ia){w.dragStop(Ia,
Y,M);Ia=null}})}function m(f,o){function k(E){var G=a("<td class='fc-header-"+E+"'/>");(E=o.header[E])&&a.each(E.split(" "),function(z){z>0&&G.append("<span class='fc-header-space'/>");var y;a.each(this.split(","),function(L,T){if(T=="title"){G.append("<span class='fc-header-title'><h2>&nbsp;</h2></span>");y&&y.addClass(t+"-corner-right");y=null}else{var J;if(f[T])J=f[T];else if(gb[T])J=function(){ma.removeClass(t+"-state-hover");f.changeView(T)};if(J){var na=o.theme?xb(o.buttonIcons,T):null,za=xb(o.buttonText,
T),ma=a("<span class='fc-button fc-button-"+T+" "+t+"-state-default'><span class='fc-button-inner'><span class='fc-button-content'>"+(na?"<span class='fc-icon-wrap'><span class='ui-icon ui-icon-"+na+"'/></span>":za)+"</span><span class='fc-button-effect'><span></span></span></span></span>");if(ma){ma.click(function(){ma.hasClass(t+"-state-disabled")||J()}).mousedown(function(){ma.not("."+t+"-state-active").not("."+t+"-state-disabled").addClass(t+"-state-down")}).mouseup(function(){ma.removeClass(t+
"-state-down")}).hover(function(){ma.not("."+t+"-state-active").not("."+t+"-state-disabled").addClass(t+"-state-hover")},function(){ma.removeClass(t+"-state-hover").removeClass(t+"-state-down")}).appendTo(G);y||ma.addClass(t+"-corner-left");y=ma}}}});y&&y.addClass(t+"-corner-right")});return G}this.render=function(){t=o.theme?"ui":"fc";if(o.header)return u=a("<table class='fc-header' style='width:100%'/>").append(a("<tr/>").append(k("left")).append(k("center")).append(k("right")))};this.destroy=function(){u.remove()};
this.updateTitle=function(E){u.find("h2").html(E)};this.activateButton=function(E){u.find("span.fc-button-"+E).addClass(t+"-state-active")};this.deactivateButton=function(E){u.find("span.fc-button-"+E).removeClass(t+"-state-active")};this.disableButton=function(E){u.find("span.fc-button-"+E).addClass(t+"-state-disabled")};this.enableButton=function(E){u.find("span.fc-button-"+E).removeClass(t+"-state-disabled")};var u=a([]),t}function j(f,o){function k(q,w){u(q,function(W){if(w==Sa){if(W){for(var aa=
0;aa<W.length;aa++){W[aa].source=q;z(W[aa])}U=U.concat(W)}da--;da||J(U)}})}function u(q,w){var W,aa=bb.sourceFetchers,Ba;for(W=0;W<aa.length;W++){Ba=aa[W](q,ma,ka,w);if(Ba===true)return;else if(typeof Ba=="object"){u(Ba,w);return}}if(W=q.events)if(a.isFunction(W)){E();W(C(ma),C(ka),function(xa){w(xa);G()})}else a.isArray(W)?w(W):w();else if(q.url){var La=q.success,Ra=q.error,Ha=q.complete;W=a.extend({},q.data||{});aa=Qa(q.startParam,f.startParam);Ba=Qa(q.endParam,f.endParam);if(aa)W[aa]=Math.round(+ma/
1E3);if(Ba)W[Ba]=Math.round(+ka/1E3);E();a.ajax(a.extend({},Cb,q,{data:W,success:function(xa){xa=xa||[];var Fa=ab(La,this,arguments);if(a.isArray(Fa))xa=Fa;w(xa)},error:function(){ab(Ra,this,arguments);w()},complete:function(){ab(Ha,this,arguments);G()}}))}else w()}function t(q){if(a.isFunction(q)||a.isArray(q))q={events:q};else if(typeof q=="string")q={url:q};if(typeof q=="object"){var w=q;if(w.className){if(typeof w.className=="string")w.className=w.className.split(/\s+/)}else w.className=[];for(var W=
bb.sourceNormalizers,aa=0;aa<W.length;aa++)W[aa](w);za.push(q);return q}}function E(){N++||L("loading",null,true)}function G(){--N||L("loading",null,false)}function z(q){var w=q.source||{},W=Qa(w.ignoreTimezone,f.ignoreTimezone);q._id=q._id||(q.id===c?"_fc"+Ib++:q.id+"");if(q.date){if(!q.start)q.start=q.date;delete q.date}q._start=C(q.start=v(q.start,W));q.end=v(q.end,W);if(q.end&&q.end<=q.start)q.end=null;q._end=q.end?C(q.end):null;if(q.allDay===c)q.allDay=Qa(w.allDayDefault,f.allDayDefault);if(q.className){if(typeof q.className==
"string")q.className=q.className.split(/\s+/)}else q.className=[]}function y(q){return(typeof q=="object"?q.events||q.url:"")||q}this.isFetchNeeded=function(q,w){return!ma||q<ma||w>ka};this.fetchEvents=function(q,w){ma=q;ka=w;U=[];var W=++Sa,aa=za.length;da=aa;for(var Ba=0;Ba<aa;Ba++)k(za[Ba],W)};this.addEventSource=function(q){if(q=t(q)){da++;k(q,Sa)}};this.removeEventSource=function(q){za=a.grep(za,function(w){return!(w&&q&&y(w)==y(q))});U=a.grep(U,function(w){return!(w.source&&q&&y(w.source)==
y(q))});J(U)};this.updateEvent=function(q){var w,W=U.length,aa,Ba=T().defaultEventEnd,La=q.start-q._start,Ra=q.end?q.end-(q._end||Ba(q)):0;for(w=0;w<W;w++){aa=U[w];if(aa._id==q._id&&aa!=q){aa.start=new Date(+aa.start+La);aa.end=q.end?aa.end?new Date(+aa.end+Ra):new Date(+Ba(aa)+Ra):null;aa.title=q.title;aa.url=q.url;aa.allDay=q.allDay;aa.className=q.className;aa.editable=q.editable;aa.color=q.color;aa.backgroudColor=q.backgroudColor;aa.borderColor=q.borderColor;aa.textColor=q.textColor;z(aa)}}z(q);
J(U)};this.renderEvent=function(q,w){z(q);if(!q.source){if(w){na.events.push(q);q.source=na}U.push(q)}J(U)};this.removeEvents=function(q){if(q){if(!a.isFunction(q)){var w=q+"";q=function(aa){return aa._id==w}}U=a.grep(U,q,true);for(W=0;W<za.length;W++)if(a.isArray(za[W].events))za[W].events=a.grep(za[W].events,q,true)}else{U=[];for(var W=0;W<za.length;W++)if(a.isArray(za[W].events))za[W].events=[]}J(U)};this.clientEvents=function(q){if(a.isFunction(q))return a.grep(U,q);else if(q){q+="";return a.grep(U,
function(w){return w._id==q})}return U};this.normalizeEvent=z;for(var L=this.trigger,T=this.getView,J=this.reportEvents,na={events:[]},za=[na],ma,ka,Sa=0,da=0,N=0,U=[],pa=0;pa<o.length;pa++)t(o[pa])}function i(f,o,k){f.setFullYear(f.getFullYear()+o);k||Z(f);return f}function g(f,o,k){if(+f){o=f.getMonth()+o;var u=C(f);u.setDate(1);u.setMonth(o);f.setMonth(o);for(k||Z(f);f.getMonth()!=u.getMonth();)f.setDate(f.getDate()+(f<u?1:-1))}return f}function s(f,o,k){if(+f){o=f.getDate()+o;var u=C(f);u.setHours(9);
u.setDate(o);f.setDate(o);k||Z(f);B(f,u)}return f}function B(f,o){if(+f)for(;f.getDate()!=o.getDate();)f.setTime(+f+(f<o?1:-1)*Sb)}function O(f,o){f.setMinutes(f.getMinutes()+o);return f}function Z(f){f.setHours(0);f.setMinutes(0);f.setSeconds(0);f.setMilliseconds(0);return f}function C(f,o){if(o)return Z(new Date(+f));return new Date(+f)}function Oa(){var f=0,o;do o=new Date(1970,f++,1);while(o.getHours());return o}function Ga(f,o,k){for(o=o||1;!f.getDay()||k&&f.getDay()==1||!k&&f.getDay()==6;)s(f,
o);return f}function h(f,o){return Math.round((C(f,true)-C(o,true))/Mb)}function l(f,o,k,u){if(o!==c&&o!=f.getFullYear()){f.setDate(1);f.setMonth(0);f.setFullYear(o)}if(k!==c&&k!=f.getMonth()){f.setDate(1);f.setMonth(k)}u!==c&&f.setDate(u)}function v(f,o){if(typeof f=="object")return f;if(typeof f=="number")return new Date(f*1E3);if(typeof f=="string"){if(f.match(/^\d+(\.\d+)?$/))return new Date(parseFloat(f)*1E3);if(o===c)o=true;return R(f,o)||(f?new Date(f):null)}return null}function R(f,o){var k=
f.match(/^([0-9]{4})(-([0-9]{2})(-([0-9]{2})([T ]([0-9]{2}):([0-9]{2})(:([0-9]{2})(\.([0-9]+))?)?(Z|(([-+])([0-9]{2})(:?([0-9]{2}))?))?)?)?)?$/);if(!k)return null;var u=new Date(k[1],0,1);if(o||!k[14]){var t=new Date(k[1],0,1,9,0);if(k[3]){u.setMonth(k[3]-1);t.setMonth(k[3]-1)}if(k[5]){u.setDate(k[5]);t.setDate(k[5])}B(u,t);k[7]&&u.setHours(k[7]);k[8]&&u.setMinutes(k[8]);k[10]&&u.setSeconds(k[10]);k[12]&&u.setMilliseconds(Number("0."+k[12])*1E3);B(u,t)}else{u.setUTCFullYear(k[1],k[3]?k[3]-1:0,k[5]||
1);u.setUTCHours(k[7]||0,k[8]||0,k[10]||0,k[12]?Number("0."+k[12])*1E3:0);t=Number(k[16])*60+(k[18]?Number(k[18]):0);t*=k[15]=="-"?1:-1;u=new Date(+u+t*60*1E3)}return u}function K(f){if(typeof f=="number")return f*60;if(typeof f=="object")return f.getHours()*60+f.getMinutes();if(f=f.match(/(\d+)(?::(\d+))?\s*(\w+)?/)){var o=parseInt(f[1],10);if(f[3]){o%=12;if(f[3].toLowerCase().charAt(0)=="p")o+=12}return o*60+(f[2]?parseInt(f[2],10):0)}}function n(f,o,k){return ja(f,null,o,k)}function ja(f,o,k,u){u=
u||Wa;var t=f,E=o,G,z=k.length,y,L,T,J="";for(G=0;G<z;G++){y=k.charAt(G);if(y=="'")for(L=G+1;L<z;L++){if(k.charAt(L)=="'"){if(t){J+=L==G+1?"'":k.substring(G+1,L);G=L}break}}else if(y=="(")for(L=G+1;L<z;L++){if(k.charAt(L)==")"){G=n(t,k.substring(G+1,L),u);if(parseInt(G.replace(/\D/,""),10))J+=G;G=L;break}}else if(y=="[")for(L=G+1;L<z;L++){if(k.charAt(L)=="]"){y=k.substring(G+1,L);G=n(t,y,u);if(G!=n(E,y,u))J+=G;G=L;break}}else if(y=="{"){t=o;E=f}else if(y=="}"){t=f;E=o}else{for(L=z;L>G;L--)if(T=Tb[k.substring(G,
L)]){if(t)J+=T(t,u);G=L-1;break}if(L==G)if(t)J+=y}}return J}function ca(f){var o;if(f.end){o=f.end;f=f.allDay;o=C(o);o=f||o.getHours()||o.getMinutes()?s(o,1):Z(o)}else o=s(C(f.start),1);return o}function Da(f,o){return(o.msLength-f.msLength)*100+(f.event.start-o.event.start)}function Ya(f,o,k,u){var t=[],E,G=f.length,z,y,L,T,J;for(E=0;E<G;E++){z=f[E];y=z.start;L=o[E];if(L>k&&y<u){if(y<k){y=C(k);T=false}else{y=y;T=true}if(L>u){L=C(u);J=false}else{L=L;J=true}t.push({event:z,start:y,end:L,isStart:T,
isEnd:J,msLength:L-y})}}return t.sort(Da)}function Ua(f){var o=[],k,u=f.length,t,E,G,z;for(k=0;k<u;k++){t=f[k];for(E=0;;){G=false;if(o[E])for(z=0;z<o[E].length;z++)if(o[E][z].end>t.start&&o[E][z].start<t.end){G=true;break}if(G)E++;else break}if(o[E])o[E].push(t);else o[E]=[t]}return o}function fb(f,o,k){f.unbind("mouseover").mouseover(function(u){for(var t=u.target,E;t!=this;){E=t;t=t.parentNode}if((t=E._fci)!==c){E._fci=c;E=o[t];k(E.event,E.element,E);a(u.target).trigger(u)}u.stopPropagation()})}
function hb(f,o,k){for(var u=0,t;u<f.length;u++){t=a(f[u]);t.width(Math.max(0,o-(ub(t)+$a(t)+(k?wa(t):0))))}}function qb(f,o,k){for(var u=0,t;u<f.length;u++){t=a(f[u]);t.height(Math.max(0,o-Va(t,k)))}}function ub(f){return(parseFloat(a.curCSS(f[0],"paddingLeft",true))||0)+(parseFloat(a.curCSS(f[0],"paddingRight",true))||0)}function wa(f){return(parseFloat(a.curCSS(f[0],"marginLeft",true))||0)+(parseFloat(a.curCSS(f[0],"marginRight",true))||0)}function $a(f){return(parseFloat(a.curCSS(f[0],"borderLeftWidth",
true))||0)+(parseFloat(a.curCSS(f[0],"borderRightWidth",true))||0)}function Va(f,o){return(parseFloat(a.curCSS(f[0],"paddingTop",true))||0)+(parseFloat(a.curCSS(f[0],"paddingBottom",true))||0)+((parseFloat(a.curCSS(f[0],"borderTopWidth",true))||0)+(parseFloat(a.curCSS(f[0],"borderBottomWidth",true))||0))+(o?zb(f):0)}function zb(f){return(parseFloat(a.curCSS(f[0],"marginTop",true))||0)+(parseFloat(a.curCSS(f[0],"marginBottom",true))||0)}function vb(f,o){o=typeof o=="number"?o+"px":o;f.each(function(k,
u){u.style.cssText+=";min-height:"+o+";_height:"+o})}function Gb(){}function Fb(f,o){return f-o}function jb(f){return(f<10?"0":"")+f}function xb(f,o){if(f[o]!==c)return f[o];for(var k=o.split(/(?=[A-Z])/),u=k.length-1,t;u>=0;u--){t=f[k[u].toLowerCase()];if(t!==c)return t}return f[""]}function kb(f){return f.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function Hb(f){return f.id+"/"+f.className+"/"+f.style.cssText.replace(/(^|;)\s*(top|left|width|height)\s*:[^;]*/ig,
"")}function rb(f){f.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})}function lb(f){f.children().removeClass("fc-first fc-last").filter(":first-child").addClass("fc-first").end().filter(":last-child").addClass("fc-last")}function mb(f,o){f.each(function(k,u){u.className=u.className.replace(/^fc-\w*/,"fc-"+Jb[o.getDay()])})}function sb(f,o){var k=f.source||{},u=f.color,t=k.color,E=o("eventColor"),G=f.backgroundColor||u||k.backgroundColor||t||o("eventBackgroundColor")||
E;u=f.borderColor||u||k.borderColor||t||o("eventBorderColor")||E;k=f.textColor||k.textColor||o("eventTextColor");t=[];G&&t.push("background-color:"+G);u&&t.push("border-color:"+u);k&&t.push("color:"+k);return t.join(";")}function ab(f,o,k){if(a.isFunction(f))f=[f];if(f){var u,t;for(u=0;u<f.length;u++)t=f[u].apply(o,k)||t;return t}}function Qa(){for(var f=0;f<arguments.length;f++)if(arguments[f]!==c)return arguments[f]}function x(f,o,k){function u(A){var Q=A||Fa==1,D=J.start.getMonth(),H=Z(new Date),
X,P,fa;Q&&pa.each(function(sa,Aa){X=a(Aa);P=L(sa);X.html(N(P,F));mb(X,P)});W.each(function(sa,Aa){X=a(Aa);P=L(sa);P.getMonth()==D?X.removeClass("fc-other-month"):X.addClass("fc-other-month");+P==+H?X.addClass(ia+"-state-highlight fc-today"):X.removeClass(ia+"-state-highlight fc-today");X.find("div.fc-day-number").text(P.getDate());Q&&mb(X,P)});w.each(function(sa,Aa){fa=a(Aa);if(sa<Fa){fa.show();sa==Fa-1?fa.addClass("fc-last"):fa.removeClass("fc-last")}else fa.hide()})}function t(A){if(!na("selectable")){var Q=
parseInt(this.className.match(/fc\-day(\d+)/)[1]);Q=L(Q);za("dayClick",this,Q,true,A)}}function E(A,Q,D){D&&Y.build();D=C(J.visStart);for(var H=s(C(D),Ia),X=0;X<Fa;X++){var P=new Date(Math.max(D,A)),fa=new Date(Math.min(H,Q));if(P<fa){var sa;if(qa){sa=h(fa,D)*la+ea+1;P=h(P,D)*la+ea+1}else{sa=h(P,D);P=h(fa,D)}G(X,sa,X,P-1).click(t).mousedown(da)}s(D,7);s(H,7)}}function G(A,Q,D,H){A=Y.rect(A,Q,D,H,f);return ka(A,f)}function z(A){return{row:Math.floor(h(A,J.visStart)/7),col:T(A.getDay())}}function y(A){return s(C(J.visStart),
A.row*7+A.col*la+ea)}function L(A){return s(C(J.visStart),Math.floor(A/Ia)*7+A%Ia*la+ea)}function T(A){return(A-Math.max(oa,ra)+Ia)%Ia*la+ea}var J=this;J.renderBasic=function(A,Q,D,H){Fa=Q;Ia=D;if(qa=na("isRTL")){la=-1;ea=Ia-1}else{la=1;ea=0}oa=na("firstDay");ra=na("weekends")?0:1;ia=na("theme")?"ui":"fc";F=na("columnFormat");if(Q=!q){var X=ia+"-widget-header",P=ia+"-widget-content",fa;D="<table class='fc-border-separate' style='width:100%' cellspacing='0'><thead><tr>";for(fa=0;fa<Ia;fa++)D+="<th class='fc- "+
X+"'/>";D+="</tr></thead><tbody>";for(fa=0;fa<A;fa++){D+="<tr class='fc-week"+fa+"'>";for(X=0;X<Ia;X++)D+="<td class='fc- "+P+" fc-day"+(fa*Ia+X)+"'><div>"+(H?"<div class='fc-day-number'/>":"")+"<div class='fc-day-content'><div style='position:relative'>&nbsp;</div></div></div></td>";D+="</tr>"}D+="</tbody></table>";A=a(D).appendTo(f);U=A.find("thead");pa=U.find("th");q=A.find("tbody");w=q.find("tr");W=q.find("td");aa=W.filter(":first-child");Ba=w.eq(0).find("div.fc-day-content div");lb(U.add(U.find("tr")));
lb(w);w.eq(0).addClass("fc-first");W.click(t).mousedown(da);La=a("<div style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(f)}else ma();u(Q)};J.setHeight=function(A){Ha=A;A=Ha-U.height();var Q,D,H;if(na("weekMode")=="variable")Q=D=Math.floor(A/(Fa==1?2:6));else{Q=Math.floor(A/Fa);D=A-Q*(Fa-1)}aa.each(function(X,P){if(X<Fa){H=a(P);vb(H.find("> div"),(X==Fa-1?D:Q)-Va(H))}})};J.setWidth=function(A){Ra=A;ga.clear();xa=Math.floor(Ra/Ia);hb(pa.slice(0,-1),xa)};J.renderDayOverlay=E;J.defaultSelectionEnd=
function(A){return C(A)};J.renderSelection=function(A,Q){E(A,s(C(Q),1),true)};J.clearSelection=function(){Sa()};J.reportDayClick=function(A,Q,D){var H=z(A);za("dayClick",W[H.row*Ia+H.col],A,Q,D)};J.dragStart=function(A,Q){M.start(function(D){Sa();D&&G(D.row,D.col,D.row,D.col)},Q)};J.dragStop=function(A,Q,D){var H=M.stop();Sa();if(H){H=y(H);za("drop",A,H,true,Q,D)}};J.defaultEventEnd=function(A){return C(A.start)};J.getHoverListener=function(){return M};J.colContentLeft=function(A){return ga.left(A)};
J.colContentRight=function(A){return ga.right(A)};J.dayOfWeekCol=T;J.dateCell=z;J.cellDate=y;J.cellIsAllDay=function(){return true};J.allDayRow=function(A){return w.eq(A)};J.allDayBounds=function(){return{left:0,right:Ra}};J.getRowCnt=function(){return Fa};J.getColCnt=function(){return Ia};J.getColWidth=function(){return xa};J.getDaySegmentContainer=function(){return La};Ka.call(J,f,o,k);ya.call(J);V.call(J);pb.call(J);var na=J.opt,za=J.trigger,ma=J.clearEvents,ka=J.renderOverlay,Sa=J.clearOverlays,
da=J.daySelectionMousedown,N=o.formatDate,U,pa,q,w,W,aa,Ba,La,Ra,Ha,xa,Fa,Ia,Y,M,ga,qa,la,ea,oa,ra,ia,F;rb(f.addClass("fc-grid"));Y=new ta(function(A,Q){var D,H,X;pa.each(function(P,fa){D=a(fa);H=D.offset().left;if(P)X[1]=H;X=[H];Q[P]=X});X[1]=H+D.outerWidth();w.each(function(P,fa){if(P<Fa){D=a(fa);H=D.offset().top;if(P)X[1]=H;X=[H];A[P]=X}});X[1]=H+D.outerHeight()});M=new Xa(Y);ga=new db(function(A){return Ba.eq(A)})}function pb(){function f(q){var w=da(),W=N(),aa=C(k.visStart);W=s(C(aa),W);var Ba=
a.map(q,ca),La,Ra,Ha,xa,Fa,Ia,Y=[];for(La=0;La<w;La++){Ra=Ua(Ya(q,Ba,aa,W));for(Ha=0;Ha<Ra.length;Ha++){xa=Ra[Ha];for(Fa=0;Fa<xa.length;Fa++){Ia=xa[Fa];Ia.row=La;Ia.level=Ha;Y.push(Ia)}}s(aa,7);s(W,7)}return Y}function o(q,w){var W=ma(),aa;w.draggable({zIndex:9,delay:50,opacity:u("dragOpacity"),revertDuration:u("dragRevertDuration"),start:function(Ba,La){t("eventDragStart",w,q,Ba,La);J(q,w);W.start(function(Ra,Ha,xa,Fa){w.draggable("option","revert",!Ra||!xa&&!Fa);Sa();if(Ra){aa=xa*7+Fa*(u("isRTL")?
-1:1);ka(s(C(q.start),aa),s(ca(q),aa))}else aa=0},Ba,"drag")},stop:function(Ba,La){W.stop();Sa();t("eventDragStop",w,q,Ba,La);if(aa)na(this,q,aa,0,q.allDay,Ba,La);else{w.css("filter","");T(q,w)}}})}var k=this;k.renderEvents=function(q,w){z(q);U(f(q),w)};k.compileDaySegs=f;k.clearEvents=function(){y();za().empty()};k.bindDaySeg=function(q,w,W){E(q)&&o(q,w);W.isEnd&&G(q)&&pa(q,w,W);L(q,w)};yb.call(k);var u=k.opt,t=k.trigger,E=k.isEventDraggable,G=k.isEventResizable,z=k.reportEvents,y=k.reportEventClear,
L=k.eventElementHandlers,T=k.showEvents,J=k.hideEvents,na=k.eventDrop,za=k.getDaySegmentContainer,ma=k.getHoverListener,ka=k.renderDayOverlay,Sa=k.clearOverlays,da=k.getRowCnt,N=k.getColCnt,U=k.renderDaySegs,pa=k.resizableDayEvent}function wb(f,o,k){function u(){function I(){ia.scrollTop(ba)}var ha=Oa(),S=C(ha);S.setHours(N("firstHour"));var ba=na(ha,S)+1;I();setTimeout(I,0)}function t(I){if(!N("selectable")){var ha=Math.min(va-1,Math.floor((I.pageX-Ha.offset().left-Aa)/ua)),S=L(ha),ba=this.parentNode.className.match(/fc-slot(\d+)/);
if(ba){ba=parseInt(ba[1])*N("slotMinutes");S.setHours(Math.floor(ba/60));S.setMinutes(ba%60+Db);U("dayClick",Y[ha],S,false,I)}else U("dayClick",Y[ha],S,true,I)}}function E(I,ha,S){S&&Ca.build();var ba=C(da.visStart);if(Nb){S=h(ha,ba)*Ab+Bb+1;I=h(I,ba)*Ab+Bb+1}else{S=h(I,ba);I=h(ha,ba)}S=Math.max(0,S);I=Math.min(va,I);S<I&&G(0,S,0,I-1).click(t).mousedown(Ba)}function G(I,ha,S,ba){I=Ca.rect(I,ha,S,ba,la);return q(I,la)}function z(I,ha){for(var S=C(da.visStart),ba=s(C(S),1),Ma=0;Ma<va;Ma++){var Za=new Date(Math.max(S,
I)),nb=new Date(Math.min(ba,ha));if(Za<nb){var tb=Ma*Ab+Bb;tb=Ca.rect(0,tb,0,tb,F);Za=na(S,Za);nb=na(S,nb);tb.top=Za;tb.height=nb-Za;q(tb,F).click(t).mousedown(ka)}s(S,1);s(ba,1)}}function y(I){var ha=L(I.col);I=I.row;N("allDaySlot")&&I--;I>=0&&O(ha,Db+I*N("slotMinutes"));return ha}function L(I){return s(C(da.visStart),I*Ab+Bb)}function T(I){return N("allDaySlot")&&!I.row}function J(I){return(I-Math.max(Ob,Pb)+va)%va*Ab+Bb}function na(I,ha){I=C(I,true);if(ha<O(C(I),Db))return 0;if(ha>=O(C(I),Kb))return Q.height();
var S=N("slotMinutes"),ba=ha.getHours()*60+ha.getMinutes()-Db,Ma=Math.floor(ba/S),Za=ob[Ma];if(Za===c)Za=ob[Ma]=Q.find("tr:eq("+Ma+") td div")[0].offsetTop;return Math.max(0,Math.round(Za-1+Ea*(ba%S/S)))}function za(I,ha){var S=N("selectHelper");Ca.build();if(S){var ba=h(I,da.visStart)*Ab+Bb;if(ba>=0&&ba<va){ba=Ca.rect(0,ba,0,ba,F);var Ma=na(I,I),Za=na(I,ha);if(Za>Ma){ba.top=Ma;ba.height=Za-Ma;ba.left+=2;ba.width-=5;if(a.isFunction(S)){if(S=S(I,ha)){ba.position="absolute";ba.zIndex=8;P=a(S).css(ba).appendTo(F)}}else{ba.isStart=
true;ba.isEnd=true;P=a(La({title:"",start:I,end:ha,className:["fc-select-helper"],editable:false},ba));P.css("opacity",N("dragOpacity"))}if(P){P.click(t).mousedown(ka);F.append(P);hb(P,ba.width,true);qb(P,ba.height,true)}}}}else z(I,ha)}function ma(){w();if(P){P.remove();P=null}}function ka(I){if(I.which==1&&N("selectable")){aa(I);var ha;Ja.start(function(S,ba){ma();if(S&&S.col==ba.col&&!T(S)){var Ma=y(ba),Za=y(S);ha=[Ma,O(C(Ma),N("slotMinutes")),Za,O(C(Za),N("slotMinutes"))].sort(Fb);za(ha[0],ha[3])}else ha=
null},I);a(document).one("mouseup",function(S){Ja.stop();if(ha){+ha[0]==+ha[1]&&Sa(ha[0],false,S);W(ha[0],ha[3],false,S)}})}}function Sa(I,ha,S){U("dayClick",Y[J(I.getDay())],I,ha,S)}var da=this;da.renderAgenda=function(I){va=I;cb=N("theme")?"ui":"fc";Pb=N("weekends")?0:1;Ob=N("firstDay");if(Nb=N("isRTL")){Ab=-1;Bb=va-1}else{Ab=1;Bb=0}Db=K(N("minTime"));Kb=K(N("maxTime"));Qb=N("columnFormat");if(Ha)pa();else{I=cb+"-widget-header";var ha=cb+"-widget-content",S,ba,Ma,Za,nb,tb=N("slotMinutes")%15==0;
S="<table style='width:100%' class='fc-agenda-days fc-border-separate' cellspacing='0'><thead><tr><th class='fc-agenda-axis "+I+"'>&nbsp;</th>";for(ba=0;ba<va;ba++)S+="<th class='fc- fc-col"+ba+" "+I+"'/>";S+="<th class='fc-agenda-gutter "+I+"'>&nbsp;</th></tr></thead><tbody><tr><th class='fc-agenda-axis "+I+"'>&nbsp;</th>";for(ba=0;ba<va;ba++)S+="<td class='fc- fc-col"+ba+" "+ha+"'><div><div class='fc-day-content'><div style='position:relative'>&nbsp;</div></div></div></td>";S+="<td class='fc-agenda-gutter "+
ha+"'>&nbsp;</td></tr></tbody></table>";Ha=a(S).appendTo(f);xa=Ha.find("thead");Fa=xa.find("th").slice(1,-1);Ia=Ha.find("tbody");Y=Ia.find("td").slice(0,-1);M=Y.find("div.fc-day-content div");ga=Y.eq(0);qa=ga.find("> div");lb(xa.add(xa.find("tr")));lb(Ia.add(Ia.find("tr")));H=xa.find("th:first");X=Ha.find(".fc-agenda-gutter");la=a("<div style='position:absolute;z-index:2;left:0;width:100%'/>").appendTo(f);if(N("allDaySlot")){ea=a("<div style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(la);
S="<table style='width:100%' class='fc-agenda-allday' cellspacing='0'><tr><th class='"+I+" fc-agenda-axis'>"+N("allDayText")+"</th><td><div class='fc-day-content'><div style='position:relative'/></div></td><th class='"+I+" fc-agenda-gutter'>&nbsp;</th></tr></table>";oa=a(S).appendTo(la);ra=oa.find("tr");ra.find("td").click(t).mousedown(Ba);H=H.add(oa.find("th:first"));X=X.add(oa.find("th.fc-agenda-gutter"));la.append("<div class='fc-agenda-divider "+I+"'><div class='fc-agenda-divider-inner'/></div>")}else ea=
a([]);ia=a("<div style='position:absolute;width:100%;overflow-x:hidden;overflow-y:auto'/>").appendTo(la);F=a("<div style='position:relative;width:100%;overflow:hidden'/>").appendTo(ia);A=a("<div style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(F);S="<table class='fc-agenda-slots' style='width:100%' cellspacing='0'><tbody>";Ma=Oa();Za=O(C(Ma),Kb);O(Ma,Db);for(ba=Pa=0;Ma<Za;ba++){nb=Ma.getMinutes();S+="<tr class='fc-slot"+ba+" "+(!nb?"":"fc-minor")+"'><th class='fc-agenda-axis "+I+"'>"+
(!tb||!nb?Ra(Ma,N("axisFormat")):"&nbsp;")+"</th><td class='"+ha+"'><div style='position:relative'>&nbsp;</div></td></tr>";O(Ma,N("slotMinutes"));Pa++}S+="</tbody></table>";Q=a(S).appendTo(F);D=Q.find("div:first");Q.find("td").click(t).mousedown(ka);H=H.add(Q.find("th:first"))}Ma=Z(new Date);for(I=0;I<va;I++){ba=L(I);ha=Fa.eq(I);ha.html(Ra(ba,Qb));S=Y.eq(I);+ba==+Ma?S.addClass(cb+"-state-highlight fc-today"):S.removeClass(cb+"-state-highlight fc-today");mb(ha.add(S),ba)}};da.setWidth=function(I){fa=
I;eb.clear();Aa=0;hb(H.width("").each(function(ha,S){Aa=Math.max(Aa,a(S).outerWidth())}),Aa);I=ia[0].clientWidth;if(Ta=ia.width()-I){hb(X,Ta);X.show().prev().removeClass("fc-last")}else X.hide().prev().addClass("fc-last");ua=Math.floor((I-Aa)/va);hb(Fa.slice(0,-1),ua)};da.setHeight=function(I,ha){if(I===c)I=sa;sa=I;ob={};var S=Ia.position().top,ba=ia.position().top,Ma=Math.min(I-S,Q.height()+ba+1);qa.height(Ma-Va(ga));la.css("top",S);ia.height(Ma-ba-1);Ea=D.height()+1;ha&&u()};da.beforeHide=function(){Na=
ia.scrollTop()};da.afterShow=function(){ia.scrollTop(Na)};da.defaultEventEnd=function(I){var ha=C(I.start);if(I.allDay)return ha;return O(ha,N("defaultEventMinutes"))};da.timePosition=na;da.dayOfWeekCol=J;da.dateCell=function(I){return{row:Math.floor(h(I,da.visStart)/7),col:J(I.getDay())}};da.cellDate=y;da.cellIsAllDay=T;da.allDayRow=function(){return ra};da.allDayBounds=function(){return{left:Aa,right:fa-Ta}};da.getHoverListener=function(){return Ja};da.colContentLeft=function(I){return eb.left(I)};
da.colContentRight=function(I){return eb.right(I)};da.getDaySegmentContainer=function(){return ea};da.getSlotSegmentContainer=function(){return A};da.getMinMinute=function(){return Db};da.getMaxMinute=function(){return Kb};da.getBodyContent=function(){return F};da.getRowCnt=function(){return 1};da.getColCnt=function(){return va};da.getColWidth=function(){return ua};da.getSlotHeight=function(){return Ea};da.defaultSelectionEnd=function(I,ha){if(ha)return C(I);return O(C(I),N("slotMinutes"))};da.renderDayOverlay=
E;da.renderSelection=function(I,ha,S){if(S)N("allDaySlot")&&E(I,s(C(ha),1),true);else za(I,ha)};da.clearSelection=ma;da.reportDayClick=Sa;da.dragStart=function(I,ha){Ja.start(function(S){w();if(S)if(T(S))G(S.row,S.col,S.row,S.col);else{S=y(S);var ba=O(C(S),N("defaultEventMinutes"));z(S,ba)}},ha)};da.dragStop=function(I,ha,S){var ba=Ja.stop();w();ba&&U("drop",I,y(ba),T(ba),ha,S)};Ka.call(da,f,o,k);ya.call(da);V.call(da);Eb.call(da);var N=da.opt,U=da.trigger,pa=da.clearEvents,q=da.renderOverlay,w=da.clearOverlays,
W=da.reportSelection,aa=da.unselect,Ba=da.daySelectionMousedown,La=da.slotSegHtml,Ra=o.formatDate,Ha,xa,Fa,Ia,Y,M,ga,qa,la,ea,oa,ra,ia,F,A,Q,D,H,X,P,fa,sa,Aa,ua,Ta,Ea,Na,va,Pa,Ca,Ja,eb,ob={},cb,Ob,Pb,Nb,Ab,Bb,Db,Kb,Qb;rb(f.addClass("fc-agenda"));Ca=new ta(function(I,ha){var S,ba,Ma;Fa.each(function(Rb,Ub){S=a(Ub);ba=S.offset().left;if(Rb)Ma[1]=ba;Ma=[ba];ha[Rb]=Ma});Ma[1]=ba+S.outerWidth();if(N("allDaySlot")){S=ra;ba=S.offset().top;I[0]=[ba,ba+S.outerHeight()]}for(var Za=F.offset().top,nb=ia.offset().top,
tb=nb+ia.outerHeight(),Lb=0;Lb<Pa;Lb++)I.push([Math.max(nb,Math.min(tb,Za+Ea*Lb)),Math.max(nb,Math.min(tb,Za+Ea*(Lb+1)))])});Ja=new Xa(Ca);eb=new db(function(I){return M.eq(I)})}function Eb(){function f(F){F=Ua(Ya(F,a.map(F,ca),z.visStart,z.visEnd));var A,Q=F.length,D,H,X,P=[];for(A=0;A<Q;A++){D=F[A];for(H=0;H<D.length;H++){X=D[H];X.row=0;X.level=A;P.push(X)}}return P}function o(F){return F.end?C(F.end):O(C(F.start),y("defaultEventMinutes"))}function k(F,A){var Q="<",D=F.url,H=sb(F,y),X=H?" style='"+
H+"'":"",P=["fc-event","fc-event-skin","fc-event-vert"];T(F)&&P.push("fc-event-draggable");A.isStart&&P.push("fc-corner-top");A.isEnd&&P.push("fc-corner-bottom");P=P.concat(F.className);if(F.source)P=P.concat(F.source.className||[]);Q+=D?"a href='"+kb(F.url)+"'":"div";Q+=" class='"+P.join(" ")+"' style='position:absolute;z-index:8;top:"+A.top+"px;left:"+A.left+"px;"+H+"'><div class='fc-event-inner fc-event-skin'"+X+"><div class='fc-event-head fc-event-skin'"+X+"><div class='fc-event-time'>"+kb(ia(F.start,
F.end,y("timeFormat")))+"</div></div><div class='fc-event-content'><div class='fc-event-title'>"+kb(F.title)+"</div></div><div class='fc-event-bg'></div></div>";if(A.isEnd&&J(F))Q+="<div class='ui-resizable-handle ui-resizable-s'>=</div>";Q+="</"+(D?"a":"div")+">";return Q}function u(F,A,Q){var D=A.find("div.fc-event-time");T(F)&&E(F,A,D);Q.isEnd&&J(F)&&G(F,A,D);ka(F,A)}function t(F,A,Q){function D(){if(!P){A.width(H).height("").draggable("option","grid",null);P=true}}var H,X,P=true,fa,sa=y("isRTL")?
-1:1,Aa=U(),ua=Ha(),Ta=xa(),Ea=q();A.draggable({zIndex:9,opacity:y("dragOpacity","month"),revertDuration:y("dragRevertDuration"),start:function(Na,va){L("eventDragStart",A,F,Na,va);M(F,A);H=A.width();Aa.start(function(Pa,Ca,Ja,eb){ea();if(Pa){X=false;fa=eb*sa;if(Pa.row)if(Q){if(P){A.width(ua-10);qb(A,Ta*Math.round((F.end?(F.end-F.start)/Vb:y("defaultEventMinutes"))/y("slotMinutes")));A.draggable("option","grid",[ua,1]);P=false}}else X=true;else{la(s(C(F.start),fa),s(ca(F),fa));D()}X=X||P&&!fa}else{D();
X=true}A.draggable("option","revert",X)},Na,"drag")},stop:function(Na,va){Aa.stop();ea();L("eventDragStop",A,F,Na,va);if(X){D();A.css("filter","");Y(F,A)}else{var Pa=0;P||(Pa=Math.round((A.offset().top-Fa().offset().top)/Ta)*y("slotMinutes")+Ea-(F.start.getHours()*60+F.start.getMinutes()));ga(this,F,fa,Pa,P,Na,va)}}})}function E(F,A,Q){function D(Pa){var Ca=O(C(F.start),Pa),Ja;if(F.end)Ja=O(C(F.end),Pa);Q.text(ia(Ca,Ja,y("timeFormat")))}function H(){if(P){Q.css("display","");A.draggable("option",
"grid",[Na,va]);P=false}}var X,P=false,fa,sa,Aa,ua=y("isRTL")?-1:1,Ta=U(),Ea=Ra(),Na=Ha(),va=xa();A.draggable({zIndex:9,scroll:false,grid:[Na,va],axis:Ea==1?"y":false,opacity:y("dragOpacity"),revertDuration:y("dragRevertDuration"),start:function(Pa,Ca){L("eventDragStart",A,F,Pa,Ca);M(F,A);X=A.position();sa=Aa=0;Ta.start(function(Ja,eb,ob,cb){A.draggable("option","revert",!Ja);ea();if(Ja){fa=cb*ua;if(y("allDaySlot")&&!Ja.row){if(!P){P=true;Q.hide();A.draggable("option","grid",null)}la(s(C(F.start),
fa),s(ca(F),fa))}else H()}},Pa,"drag")},drag:function(Pa,Ca){sa=Math.round((Ca.position.top-X.top)/va)*y("slotMinutes");if(sa!=Aa){P||D(sa);Aa=sa}},stop:function(Pa,Ca){var Ja=Ta.stop();ea();L("eventDragStop",A,F,Pa,Ca);if(Ja&&(fa||sa||P))ga(this,F,fa,P?0:sa,P,Pa,Ca);else{H();A.css("filter","");A.css(X);D(0);Y(F,A)}}})}function G(F,A,Q){var D,H,X=xa();A.resizable({handles:{s:"div.ui-resizable-s"},grid:X,start:function(P,fa){D=H=0;M(F,A);A.css("z-index",9);L("eventResizeStart",this,F,P,fa)},resize:function(P,
fa){D=Math.round((Math.max(X,A.height())-fa.originalSize.height)/X);if(D!=H){Q.text(ia(F.start,!D&&!F.end?null:O(na(F),y("slotMinutes")*D),y("timeFormat")));H=D}},stop:function(P,fa){L("eventResizeStop",this,F,P,fa);if(D)qa(this,F,0,y("slotMinutes")*D,P,fa);else{A.css("z-index",8);Y(F,A)}}})}var z=this;z.renderEvents=function(F,A){za(F);var Q,D=F.length,H=[],X=[];for(Q=0;Q<D;Q++)F[Q].allDay?H.push(F[Q]):X.push(F[Q]);if(y("allDaySlot")){Ba(f(H),A);Sa()}D=Ra();H=q();var P=pa(),fa=O(C(z.visStart),H),
sa=a.map(X,o),Aa,ua,Ta,Ea,Na,va;Q=[];for(Aa=0;Aa<D;Aa++){Ta=ua=Ua(Ya(X,sa,fa,O(C(fa),P-H)));Ea=void 0;Na=void 0;va=void 0;var Pa=void 0,Ca=void 0,Ja=void 0;for(Ea=Ta.length-1;Ea>0;Ea--){Pa=Ta[Ea];for(Na=0;Na<Pa.length;Na++){Ca=Pa[Na];for(va=0;va<Ta[Ea-1].length;va++){Ja=Ta[Ea-1][va];if(Ca.end>Ja.start&&Ca.start<Ja.end)Ja.forward=Math.max(Ja.forward||0,(Ca.forward||0)+1)}}}for(Ta=0;Ta<ua.length;Ta++){Ea=ua[Ta];for(Na=0;Na<Ea.length;Na++){va=Ea[Na];va.col=Aa;va.level=Ta;Q.push(va)}}s(fa,1,true)}X=Q.length;
var eb,ob,cb;ua="";P={};fa={};Aa=N();D=Ra();if(Ta=y("isRTL")){Ea=-1;Pa=D-1}else{Ea=1;Pa=0}for(D=0;D<X;D++){H=Q[D];sa=H.event;Na=w(H.start,H.start);va=w(H.start,H.end);eb=H.col;Ca=H.level;Ja=H.forward||0;ob=W(eb*Ea+Pa);cb=aa(eb*Ea+Pa)-ob;cb=Math.min(cb-6,cb*0.95);eb=Ca?cb/(Ca+Ja+1):Ja?(cb/(Ja+1)-6)*2:cb;Ca=ob+cb/(Ca+Ja+1)*Ca*Ea+(Ta?cb-eb:0);H.top=Na;H.left=Ca;H.outerWidth=eb;H.outerHeight=va-Na;ua+=k(sa,H)}Aa[0].innerHTML=ua;Ta=Aa.children();for(D=0;D<X;D++){H=Q[D];sa=H.event;ua=a(Ta[D]);Ea=L("eventRender",
sa,sa,ua);if(Ea===false)ua.remove();else{if(Ea&&Ea!==true){ua.remove();ua=a(Ea).css({position:"absolute",top:H.top,left:H.left}).appendTo(Aa)}H.element=ua;if(sa._id===A)u(sa,ua,H);else ua[0]._fci=D;Ia(sa,ua)}}fb(Aa,Q,u);for(D=0;D<X;D++){H=Q[D];if(ua=H.element){Aa=P[sa=H.key=Hb(ua[0])];H.vsides=Aa===c?P[sa]=Va(ua,true):Aa;Aa=fa[sa];H.hsides=Aa===c?fa[sa]=ub(ua)+$a(ua)+wa(ua):Aa;sa=ua.find("div.fc-event-content");if(sa.length)H.contentTop=sa[0].offsetTop}}for(D=0;D<X;D++){H=Q[D];if(ua=H.element){ua[0].style.width=
Math.max(0,H.outerWidth-H.hsides)+"px";P=Math.max(0,H.outerHeight-H.vsides);ua[0].style.height=P+"px";sa=H.event;if(H.contentTop!==c&&P-H.contentTop<10){ua.find("div.fc-event-time").text(ra(sa.start,y("timeFormat"))+" - "+sa.title);ua.find("div.fc-event-title").remove()}L("eventAfterRender",sa,sa,ua)}}};z.compileDaySegs=f;z.clearEvents=function(){ma();da().empty();N().empty()};z.slotSegHtml=k;z.bindDaySeg=function(F,A,Q){T(F)&&t(F,A,Q.isStart);Q.isEnd&&J(F)&&La(F,A,Q);ka(F,A)};yb.call(z);var y=z.opt,
L=z.trigger,T=z.isEventDraggable,J=z.isEventResizable,na=z.eventEnd,za=z.reportEvents,ma=z.reportEventClear,ka=z.eventElementHandlers,Sa=z.setHeight,da=z.getDaySegmentContainer,N=z.getSlotSegmentContainer,U=z.getHoverListener,pa=z.getMaxMinute,q=z.getMinMinute,w=z.timePosition,W=z.colContentLeft,aa=z.colContentRight,Ba=z.renderDaySegs,La=z.resizableDayEvent,Ra=z.getColCnt,Ha=z.getColWidth,xa=z.getSlotHeight,Fa=z.getBodyContent,Ia=z.reportEventElement,Y=z.showEvents,M=z.hideEvents,ga=z.eventDrop,qa=
z.eventResize,la=z.renderDayOverlay,ea=z.clearOverlays,oa=z.calendar,ra=oa.formatDate,ia=oa.formatDates}function Ka(f,o,k){function u(N,U){var pa=da[N];if(typeof pa=="object")return xb(pa,U||k);return pa}function t(N,U){return o.trigger.apply(o,[N,U||T].concat(Array.prototype.slice.call(arguments,2),[T]))}function E(N){return Qa(N.editable,(N.source||{}).editable,u("editable"))}function G(N){return N.end?C(N.end):J(N)}function z(N,U,pa){N=Sa[N._id];var q,w=N.length;for(q=0;q<w;q++)if(!U||N[q][0]!=
U[0])N[q][pa]()}function y(N,U,pa,q){pa=pa||0;for(var w,W=N.length,aa=0;aa<W;aa++){w=N[aa];if(q!==c)w.allDay=q;O(s(w.start,U,true),pa);if(w.end)w.end=O(s(w.end,U,true),pa);na(w,da)}}function L(N,U,pa){pa=pa||0;for(var q,w=N.length,W=0;W<w;W++){q=N[W];q.end=O(s(G(q),U,true),pa);na(q,da)}}var T=this;T.element=f;T.calendar=o;T.name=k;T.opt=u;T.trigger=t;T.isEventDraggable=function(N){return E(N)&&!u("disableDragging")};T.isEventResizable=function(N){return E(N)&&!u("disableResizing")};T.reportEvents=
function(N){ma={};var U,pa=N.length,q;for(U=0;U<pa;U++){q=N[U];if(ma[q._id])ma[q._id].push(q);else ma[q._id]=[q]}};T.eventEnd=G;T.reportEventElement=function(N,U){ka.push(U);if(Sa[N._id])Sa[N._id].push(U);else Sa[N._id]=[U]};T.reportEventClear=function(){ka=[];Sa={}};T.eventElementHandlers=function(N,U){U.click(function(pa){if(!U.hasClass("ui-draggable-dragging")&&!U.hasClass("ui-resizable-resizing"))return t("eventClick",this,N,pa)}).hover(function(pa){t("eventMouseover",this,N,pa)},function(pa){t("eventMouseout",
this,N,pa)})};T.showEvents=function(N,U){z(N,U,"show")};T.hideEvents=function(N,U){z(N,U,"hide")};T.eventDrop=function(N,U,pa,q,w,W,aa){var Ba=U.allDay,La=U._id;y(ma[La],pa,q,w);t("eventDrop",N,U,pa,q,w,function(){y(ma[La],-pa,-q,Ba);za(La)},W,aa);za(La)};T.eventResize=function(N,U,pa,q,w,W){var aa=U._id;L(ma[aa],pa,q);t("eventResize",N,U,pa,q,function(){L(ma[aa],-pa,-q);za(aa)},w,W);za(aa)};var J=T.defaultEventEnd,na=o.normalizeEvent,za=o.reportEventChange,ma={},ka=[],Sa={},da=o.options}function yb(){function f(M){var ga=
L("isRTL"),qa,la=M.length,ea,oa,ra,ia;qa=q();var F=qa.left,A=qa.right,Q,D,H,X,P,fa="";for(qa=0;qa<la;qa++){ea=M[qa];oa=ea.event;ia=["fc-event","fc-event-skin","fc-event-hori"];J(oa)&&ia.push("fc-event-draggable");if(ga){ea.isStart&&ia.push("fc-corner-right");ea.isEnd&&ia.push("fc-corner-left");Q=aa(ea.end.getDay()-1);D=aa(ea.start.getDay());H=ea.isEnd?w(Q):F;X=ea.isStart?W(D):A}else{ea.isStart&&ia.push("fc-corner-left");ea.isEnd&&ia.push("fc-corner-right");Q=aa(ea.start.getDay());D=aa(ea.end.getDay()-
1);H=ea.isStart?w(Q):F;X=ea.isEnd?W(D):A}ia=ia.concat(oa.className);if(oa.source)ia=ia.concat(oa.source.className||[]);ra=oa.url;P=sb(oa,L);fa+=ra?"<a href='"+kb(ra)+"'":"<div";fa+=" class='"+ia.join(" ")+"' style='position:absolute;z-index:8;left:"+H+"px;"+P+"'><div class='fc-event-inner fc-event-skin'"+(P?" style='"+P+"'":"")+">";if(!oa.allDay&&ea.isStart)fa+="<span class='fc-event-time'>"+kb(xa(oa.start,oa.end,L("timeFormat")))+"</span>";fa+="<span class='fc-event-title'>"+kb(oa.title)+"</span></div>";
if(ea.isEnd&&na(oa))fa+="<div class='ui-resizable-handle ui-resizable-"+(ga?"w":"e")+"'>&nbsp;&nbsp;&nbsp;</div>";fa+="</"+(ra?"a":"div")+">";ea.left=H;ea.outerWidth=X-H;ea.startCol=Q;ea.endCol=D+1}return fa}function o(M,ga){var qa,la=M.length,ea,oa,ra;for(qa=0;qa<la;qa++){ea=M[qa];oa=ea.event;ra=a(ga[qa]);oa=T("eventRender",oa,oa,ra);if(oa===false)ra.remove();else{if(oa&&oa!==true){oa=a(oa).css({position:"absolute",left:ea.left});ra.replaceWith(oa);ra=oa}ea.element=ra}}}function k(M){var ga,qa=M.length,
la,ea,oa,ra,ia={};for(ga=0;ga<qa;ga++){la=M[ga];if(ea=la.element){oa=la.key=Hb(ea[0]);ra=ia[oa];if(ra===c)ra=ia[oa]=ub(ea)+$a(ea)+wa(ea);la.hsides=ra}}}function u(M){var ga,qa=M.length,la,ea;for(ga=0;ga<qa;ga++){la=M[ga];if(ea=la.element)ea[0].style.width=Math.max(0,la.outerWidth-la.hsides)+"px"}}function t(M){var ga,qa=M.length,la,ea,oa,ra,ia={};for(ga=0;ga<qa;ga++){la=M[ga];if(ea=la.element){oa=la.key;ra=ia[oa];if(ra===c)ra=ia[oa]=zb(ea);la.outerHeight=ea[0].offsetHeight+ra}}}function E(){var M,
ga=N(),qa=[];for(M=0;M<ga;M++)qa[M]=pa(M).find("td:first div.fc-day-content > div");return qa}function G(M){var ga,qa=M.length,la=[];for(ga=0;ga<qa;ga++)la[ga]=M[ga][0].offsetTop;return la}function z(M,ga){var qa,la=M.length,ea,oa;for(qa=0;qa<la;qa++){ea=M[qa];if(oa=ea.element){oa[0].style.top=ga[ea.row]+(ea.top||0)+"px";ea=ea.event;T("eventAfterRender",ea,ea,oa)}}}var y=this;y.renderDaySegs=function(M,ga){var qa=Ra(),la=N(),ea=U(),oa=0,ra,ia,F,A=M.length,Q,D;qa[0].innerHTML=f(M);o(M,qa.children());
ia=M.length;for(ra=0;ra<ia;ra++){F=M[ra];(D=F.element)&&ma(F.event,D)}ia=M.length;var H;for(ra=0;ra<ia;ra++){F=M[ra];if(D=F.element){H=F.event;if(H._id===ga)Ha(H,D,F);else D[0]._fci=ra}}fb(qa,M,Ha);k(M);u(M);t(M);qa=E();for(ra=0;ra<la;ra++){ia=[];for(F=0;F<ea;F++)ia[F]=0;for(;oa<A&&(Q=M[oa]).row==ra;){F=ia.slice(Q.startCol,Q.endCol);F=Math.max.apply(Math,F);Q.top=F;F+=Q.outerHeight;for(D=Q.startCol;D<Q.endCol;D++)ia[D]=F;oa++}qa[ra].height(Math.max.apply(Math,ia))}z(M,G(qa))};y.resizableDayEvent=
function(M,ga,qa){var la=L("isRTL"),ea=la?"w":"e",oa=ga.find("div.ui-resizable-"+ea),ra=false;rb(ga);ga.mousedown(function(ia){ia.preventDefault()}).click(function(ia){if(ra){ia.preventDefault();ia.stopImmediatePropagation()}});oa.mousedown(function(ia){if(ia.which==1){ra=true;var F=y.getHoverListener(),A=N(),Q=U(),D=la?-1:1,H=la?Q-1:0,X=ga.css("top"),P,fa,sa=a.extend({},M),Aa=Ba(M.start);Y();a("body").css("cursor",ea+"-resize").one("mouseup",function(ua){T("eventResizeStop",this,M,ua);a("body").css("cursor",
"");F.stop();Ia();P&&da(this,M,P,0,ua);setTimeout(function(){ra=false},0)});T("eventResizeStart",this,M,ia);F.start(function(ua,Ta){if(ua){var Ea=Math.max(Aa.row,ua.row),Na=ua.col;if(A==1)Ea=0;if(Ea==Aa.row)Na=la?Math.min(Aa.col,Na):Math.max(Aa.col,Na);P=Ea*7+Na*D+H-(Ta.row*7+Ta.col*D+H);Ea=s(za(M),P,true);if(P){sa.end=Ea;Na=fa;var va=La([sa]),Pa=qa.row,Ca=a("<div/>"),Ja=Ra(),eb=va.length,ob;Ca[0].innerHTML=f(va);Ca=Ca.children();Ja.append(Ca);o(va,Ca);k(va);u(va);t(va);z(va,G(E()));Ca=[];for(Ja=
0;Ja<eb;Ja++)if(ob=va[Ja].element){va[Ja].row===Pa&&ob.css("top",X);Ca.push(ob[0])}fa=a(Ca);fa.find("*").css("cursor",ea+"-resize");Na&&Na.remove();Sa(M)}else if(fa){ka(M);fa.remove();fa=null}Ia();Fa(M.start,s(C(Ea),1))}},ia)}})};var L=y.opt,T=y.trigger,J=y.isEventDraggable,na=y.isEventResizable,za=y.eventEnd,ma=y.reportEventElement,ka=y.showEvents,Sa=y.hideEvents,da=y.eventResize,N=y.getRowCnt,U=y.getColCnt,pa=y.allDayRow,q=y.allDayBounds,w=y.colContentLeft,W=y.colContentRight,aa=y.dayOfWeekCol,
Ba=y.dateCell,La=y.compileDaySegs,Ra=y.getDaySegmentContainer,Ha=y.bindDaySeg,xa=y.calendar.formatDates,Fa=y.renderDayOverlay,Ia=y.clearOverlays,Y=y.clearSelection}function V(){function f(L){if(y){y=false;z();t("unselect",null,L)}}function o(L,T,J,na){y=true;t("select",null,L,T,J,na)}var k=this;k.select=function(L,T,J){f();T||(T=E(L,J));G(L,T,J);o(L,T,J)};k.unselect=f;k.reportSelection=o;k.daySelectionMousedown=function(L){var T=k.cellDate,J=k.cellIsAllDay,na=k.getHoverListener(),za=k.reportDayClick;
if(L.which==1&&u("selectable")){f(L);var ma;na.start(function(ka,Sa){z();if(ka&&J(ka)){ma=[T(Sa),T(ka)].sort(Fb);G(ma[0],ma[1],true)}else ma=null},L);a(document).one("mouseup",function(ka){na.stop();if(ma){+ma[0]==+ma[1]&&za(ma[0],true,ka);o(ma[0],ma[1],true,ka)}})}};var u=k.opt,t=k.trigger,E=k.defaultSelectionEnd,G=k.renderSelection,z=k.clearSelection,y=false;u("selectable")&&u("unselectAuto")&&a(document).mousedown(function(L){var T=u("unselectCancel");if(T)if(a(L.target).parents(T).length)return;
f(L)})}function ya(){this.renderOverlay=function(k,u){var t=o.shift();t||(t=a("<div class='fc-cell-overlay' style='position:absolute;z-index:3'/>"));t[0].parentNode!=u[0]&&t.appendTo(u);f.push(t.css(k).show());return t};this.clearOverlays=function(){for(var k;k=f.shift();)o.push(k.hide().unbind())};var f=[],o=[]}function ta(f){var o,k;this.build=function(){o=[];k=[];f(o,k)};this.cell=function(u,t){var E=o.length,G=k.length,z,y=-1,L=-1;for(z=0;z<E;z++)if(t>=o[z][0]&&t<o[z][1]){y=z;break}for(z=0;z<
G;z++)if(u>=k[z][0]&&u<k[z][1]){L=z;break}return y>=0&&L>=0?{row:y,col:L}:null};this.rect=function(u,t,E,G,z){z=z.offset();return{top:o[u][0]-z.top,left:k[t][0]-z.left,width:k[G][1]-k[t][0],height:o[E][1]-o[u][0]}}}function Xa(f){function o(G){G=f.cell(G.pageX,G.pageY);if(!G!=!E||G&&(G.row!=E.row||G.col!=E.col)){if(G){t||(t=G);u(G,t,G.row-t.row,G.col-t.col)}else u(G,t);E=G}}var k,u,t,E;this.start=function(G,z,y){u=G;t=E=null;f.build();o(z);k=y||"mousemove";a(document).bind(k,o)};this.stop=function(){a(document).unbind(k,
o);return E}}function db(f){var o=this,k={},u={},t={};o.left=function(E){return u[E]=u[E]===c?(k[E]=k[E]||f(E)).position().left:u[E]};o.right=function(E){return t[E]=t[E]===c?o.left(E)+(k[E]=k[E]||f(E)).width():t[E]};o.clear=function(){k={};u={};t={}}}var Wa={defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:true,allDayDefault:true,ignoreTimezone:true,lazyFetching:true,startParam:"start",endParam:"end",titleFormat:{month:"MMMM yyyy",week:"MMM d[ yyyy]{ '&#8212;'[ MMM] d yyyy}",
day:"dddd, MMM d, yyyy"},columnFormat:{month:"ddd",week:"ddd M/d",day:"dddd M/d"},timeFormat:{"":"h(:mm)t"},isRTL:false,firstDay:0,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"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],buttonText:{prev:"&nbsp;&#9668;&nbsp;",
next:"&nbsp;&#9658;&nbsp;",prevYear:"&nbsp;&lt;&lt;&nbsp;",nextYear:"&nbsp;&gt;&gt;&nbsp;",today:"today",month:"month",week:"week",day:"day"},theme:false,buttonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e"},unselectAuto:true,dropAccept:"*"},ib={header:{left:"next,prev today",center:"",right:"title"},buttonText:{prev:"&nbsp;&#9658;&nbsp;",next:"&nbsp;&#9668;&nbsp;",prevYear:"&nbsp;&gt;&gt;&nbsp;",nextYear:"&nbsp;&lt;&lt;&nbsp;"},buttonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w"}},
bb=a.fullCalendar={version:"1.5.1"},gb=bb.views={};a.fn.fullCalendar=function(f){if(typeof f=="string"){var o=Array.prototype.slice.call(arguments,1),k;this.each(function(){var t=a.data(this,"fullCalendar");if(t&&a.isFunction(t[f])){t=t[f].apply(t,o);if(k===c)k=t;f=="destroy"&&a.removeData(this,"fullCalendar")}});if(k!==c)return k;return this}var u=f.eventSources||[];delete f.eventSources;if(f.events){u.push(f.events);delete f.events}f=a.extend(true,{},Wa,f.isRTL||f.isRTL===c&&Wa.isRTL?ib:{},f);this.each(function(t,
E){var G=a(E),z=new e(G,f,u);G.data("fullCalendar",z);z.render()});return this};bb.sourceNormalizers=[];bb.sourceFetchers=[];var Cb={dataType:"json",cache:false},Ib=1;bb.addDays=s;bb.cloneDate=C;bb.parseDate=v;bb.parseISO8601=R;bb.parseTime=K;bb.formatDate=n;bb.formatDates=ja;var Jb=["sun","mon","tue","wed","thu","fri","sat"],Mb=864E5,Sb=36E5,Vb=6E4,Tb={s:function(f){return f.getSeconds()},ss:function(f){return jb(f.getSeconds())},m:function(f){return f.getMinutes()},mm:function(f){return jb(f.getMinutes())},
h:function(f){return f.getHours()%12||12},hh:function(f){return jb(f.getHours()%12||12)},H:function(f){return f.getHours()},HH:function(f){return jb(f.getHours())},d:function(f){return f.getDate()},dd:function(f){return jb(f.getDate())},ddd:function(f,o){return o.dayNamesShort[f.getDay()]},dddd:function(f,o){return o.dayNames[f.getDay()]},M:function(f){return f.getMonth()+1},MM:function(f){return jb(f.getMonth()+1)},MMM:function(f,o){return o.monthNamesShort[f.getMonth()]},MMMM:function(f,o){return o.monthNames[f.getMonth()]},
yy:function(f){return(f.getFullYear()+"").substring(2)},yyyy:function(f){return f.getFullYear()},t:function(f){return f.getHours()<12?"a":"p"},tt:function(f){return f.getHours()<12?"am":"pm"},T:function(f){return f.getHours()<12?"A":"P"},TT:function(f){return f.getHours()<12?"AM":"PM"},u:function(f){return n(f,"yyyy-MM-dd'T'HH:mm:ss'Z'")},S:function(f){f=f.getDate();if(f>10&&f<20)return"th";return["st","nd","rd"][f%10-1]||"th"}};bb.applyAll=ab;gb.month=function(f,o){var k=this;k.render=function(G,
z){if(z){g(G,z);G.setDate(1)}var y=C(G,true);y.setDate(1);var L=g(C(y),1),T=C(y),J=C(L),na=u("firstDay"),za=u("weekends")?0:1;if(za){Ga(T);Ga(J,-1,true)}s(T,-((T.getDay()-Math.max(na,za)+7)%7));s(J,(7-J.getDay()+Math.max(na,za))%7);na=Math.round((J-T)/(Mb*7));if(u("weekMode")=="fixed"){s(J,(6-na)*7);na=6}k.title=E(y,u("titleFormat"));k.start=y;k.end=L;k.visStart=T;k.visEnd=J;t(6,na,za?5:7,true)};x.call(k,f,o,"month");var u=k.opt,t=k.renderBasic,E=o.formatDate};gb.basicWeek=function(f,o){var k=this;
k.render=function(G,z){z&&s(G,z*7);var y=s(C(G),-((G.getDay()-u("firstDay")+7)%7)),L=s(C(y),7),T=C(y),J=C(L),na=u("weekends");if(!na){Ga(T);Ga(J,-1,true)}k.title=E(T,s(C(J),-1),u("titleFormat"));k.start=y;k.end=L;k.visStart=T;k.visEnd=J;t(1,1,na?7:5,false)};x.call(k,f,o,"basicWeek");var u=k.opt,t=k.renderBasic,E=o.formatDates};gb.basicDay=function(f,o){var k=this;k.render=function(G,z){if(z){s(G,z);u("weekends")||Ga(G,z<0?-1:1)}k.title=E(G,u("titleFormat"));k.start=k.visStart=C(G,true);k.end=k.visEnd=
s(C(k.start),1);t(1,1,1,false)};x.call(k,f,o,"basicDay");var u=k.opt,t=k.renderBasic,E=o.formatDate};d({weekMode:"fixed"});gb.agendaWeek=function(f,o){var k=this;k.render=function(G,z){z&&s(G,z*7);var y=s(C(G),-((G.getDay()-u("firstDay")+7)%7)),L=s(C(y),7),T=C(y),J=C(L),na=u("weekends");if(!na){Ga(T);Ga(J,-1,true)}k.title=E(T,s(C(J),-1),u("titleFormat"));k.start=y;k.end=L;k.visStart=T;k.visEnd=J;t(na?7:5)};wb.call(k,f,o,"agendaWeek");var u=k.opt,t=k.renderAgenda,E=o.formatDates};gb.agendaDay=function(f,
o){var k=this;k.render=function(G,z){if(z){s(G,z);u("weekends")||Ga(G,z<0?-1:1)}var y=C(G,true),L=s(C(y),1);k.title=E(G,u("titleFormat"));k.start=k.visStart=y;k.end=k.visEnd=L;t(1)};wb.call(k,f,o,"agendaDay");var u=k.opt,t=k.renderAgenda,E=o.formatDate};d({allDaySlot:true,allDayText:"all-day",firstHour:6,slotMinutes:30,defaultEventMinutes:120,axisFormat:"h(:mm)tt",timeFormat:{agenda:"h:mm{ - h:mm}"},dragOpacity:{agenda:0.5},minTime:0,maxTime:24})})(jQuery);
(function(a){function c(g,s,B){var O=g.success;s=a.extend({},g.data||{},{"start-min":e(s,"u"),"start-max":e(B,"u"),singleevents:true,"max-results":9999});var Z=g.currentTimezone;if(Z)s.ctz=Z=Z.replace(" ","_");return a.extend({},g,{url:g.url.replace(/\/basic$/,"/full")+"?alt=json-in-script&callback=?",dataType:"jsonp",data:s,startParam:false,endParam:false,success:function(C){var Oa=[];C.feed.entry&&a.each(C.feed.entry,function(h,l){var v=l.gd$when[0].startTime,R=m(v,true),K=m(l.gd$when[0].endTime,
true);v=v.indexOf("T")==-1;var n;a.each(l.link,function(ja,ca){if(ca.type=="text/html"){n=ca.href;if(Z)n+=(n.indexOf("?")==-1?"?":"&")+"ctz="+Z}});v&&j(K,-1);Oa.push({id:l.gCal$uid.value,title:l.title.$t,url:n,start:R,end:K,allDay:v,location:l.gd$where[0].valueString,description:l.content.$t})});var Ga=[Oa].concat(Array.prototype.slice.call(arguments,1));Ga=i(O,this,Ga);if(a.isArray(Ga))return Ga;return Oa}})}var d=a.fullCalendar,e=d.formatDate,m=d.parseISO8601,j=d.addDays,i=d.applyAll;d.sourceNormalizers.push(function(g){if(g.dataType==
"gcal"||g.dataType===undefined&&(g.url||"").match(/^(http|https):\/\/www.google.com\/calendar\/feeds\//)){g.dataType="gcal";if(g.editable===undefined)g.editable=false}});d.sourceFetchers.push(function(g,s,B){if(g.dataType=="gcal")return c(g,s,B)});d.gcalFeed=function(g,s){return a.extend({},s,{url:g,dataType:"gcal"})}})(jQuery);
(function(a){function c(g,s){if(s=="OK"&&g.length>0){e.fitBounds(g[0].geometry.viewport);new google.maps.Marker({position:e.getCenter(),map:e})}else alert("Geocode was not successful for the following reason: "+s)}var d={address:""},e,m,j,i;a.fn.googleMaps=function(g){return this.each(function(){i=a(this);g&&a.extend(d,g);j=d.address;var s={zoom:1,center:new google.maps.LatLng(37,-96.5),panControl:false,zoomControl:true,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL},scaleControl:false,
mapTypeControl:false,streetViewControl:false,mapTypeId:google.maps.MapTypeId.ROADMAP};e=new google.maps.Map(document.getElementById(i.attr("id")),s);m=new google.maps.Geocoder;m.geocode({address:j,partialmatch:true},c)})}})(jQuery);
(function(a){function c(h){a.fn.cycle.debug&&d(h)}function d(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function e(h,l,v){function R(n,ja,ca){if(!n&&ja===true){n=a(ca).data("cycle.opts");if(!n){d("options not found, can not resume");return false}if(ca.cycleTimeout){clearTimeout(ca.cycleTimeout);ca.cycleTimeout=0}O(n.elements,n,1,!n.backwards)}}if(h.cycleStop==undefined)h.cycleStop=0;if(l===undefined||l===null)l={};if(l.constructor==String){switch(l){case "destroy":case "stop":v=
a(h).data("cycle.opts");if(!v)return false;h.cycleStop++;h.cycleTimeout&&clearTimeout(h.cycleTimeout);h.cycleTimeout=0;a(h).removeData("cycle.opts");l=="destroy"&&j(v);return false;case "toggle":h.cyclePause=h.cyclePause===1?0:1;R(h.cyclePause,v,h);return false;case "pause":h.cyclePause=1;return false;case "resume":h.cyclePause=0;R(false,v,h);return false;case "prev":case "next":v=a(h).data("cycle.opts");if(!v){d('options not found, "prev/next" ignored');return false}a.fn.cycle[l](v);return false;
default:l={fx:l}}return l}else if(l.constructor==Number){var K=l;l=a(h).data("cycle.opts");if(!l){d("options not found, can not advance slide");return false}if(K<0||K>=l.elements.length){d("invalid slide index: "+K);return false}l.nextSlide=K;if(h.cycleTimeout){clearTimeout(h.cycleTimeout);h.cycleTimeout=0}if(typeof v=="string")l.oneTimeFx=v;O(l.elements,l,1,K>=l.currSlide);return false}return l}function m(h,l){if(!a.support.opacity&&l.cleartype&&h.style.filter)try{h.style.removeAttribute("filter")}catch(v){}}
function j(h){h.next&&a(h.next).unbind(h.prevNextEvent);h.prev&&a(h.prev).unbind(h.prevNextEvent);if(h.pager||h.pagerAnchorBuilder)a.each(h.pagerAnchors||[],function(){this.unbind().remove()});h.pagerAnchors=null;h.destroy&&h.destroy(h)}function i(h,l,v,R,K){var n=a.extend({},a.fn.cycle.defaults,R||{},a.metadata?h.metadata():a.meta?h.data():{});if(n.autostop)n.countdown=n.autostopCount||v.length;var ja=h[0];h.data("cycle.opts",n);n.$cont=h;n.stopCount=ja.cycleStop;n.elements=v;n.before=n.before?[n.before]:
[];n.after=n.after?[n.after]:[];!a.support.opacity&&n.cleartype&&n.after.push(function(){m(this,n)});n.continuous&&n.after.push(function(){O(v,n,0,!n.backwards)});g(n);!a.support.opacity&&n.cleartype&&!n.cleartypeNoBg&&Ga(l);h.css("position")=="static"&&h.css("position","relative");n.width&&h.width(n.width);n.height&&n.height!="auto"&&h.height(n.height);if(n.startingSlide)n.startingSlide=parseInt(n.startingSlide);else if(n.backwards)n.startingSlide=v.length-1;if(n.random){n.randomMap=[];for(ja=0;ja<
v.length;ja++)n.randomMap.push(ja);n.randomMap.sort(function(){return Math.random()-0.5});n.randomIndex=1;n.startingSlide=n.randomMap[1]}else if(n.startingSlide>=v.length)n.startingSlide=0;n.currSlide=n.startingSlide||0;var ca=n.startingSlide;l.css({position:"absolute",top:0,left:0}).hide().each(function(wa){wa=n.backwards?ca?wa<=ca?v.length+(wa-ca):ca-wa:v.length-wa:ca?wa>=ca?v.length-(wa-ca):ca-wa:v.length-wa;a(this).css("z-index",wa)});a(v[ca]).css("opacity",1).show();m(v[ca],n);n.fit&&n.width&&
l.width(n.width);n.fit&&n.height&&n.height!="auto"&&l.height(n.height);if(n.containerResize&&!h.innerHeight()){for(var Da=ja=0,Ya=0;Ya<v.length;Ya++){var Ua=a(v[Ya]),fb=Ua[0],hb=Ua.outerWidth(),qb=Ua.outerHeight();hb||(hb=fb.offsetWidth||fb.width||Ua.attr("width"));qb||(qb=fb.offsetHeight||fb.height||Ua.attr("height"));ja=hb>ja?hb:ja;Da=qb>Da?qb:Da}ja>0&&Da>0&&h.css({width:ja+"px",height:Da+"px"})}n.pause&&h.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(s(n)===false)return false;
var ub=false;R.requeueAttempts=R.requeueAttempts||0;l.each(function(){var wa=a(this);this.cycleH=n.fit&&n.height?n.height:wa.height()||this.offsetHeight||this.height||wa.attr("height")||0;this.cycleW=n.fit&&n.width?n.width:wa.width()||this.offsetWidth||this.width||wa.attr("width")||0;if(wa.is("img")){wa=a.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var $a=a.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,Va=this.cycleH==0&&
this.cycleW==0&&!this.complete;if(a.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete||wa||$a||Va)if(K.s&&n.requeueOnImageNotLoaded&&++R.requeueAttempts<100){d(R.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){a(K.s,K.c).cycle(R)},n.requeueTimeout);ub=true;return false}else d("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(ub)return false;n.cssBefore=n.cssBefore||{};n.cssAfter=
n.cssAfter||{};n.cssFirst=n.cssFirst||{};n.animIn=n.animIn||{};n.animOut=n.animOut||{};l.not(":eq("+ca+")").css(n.cssBefore);a(l[ca]).css(n.cssFirst);if(n.timeout){n.timeout=parseInt(n.timeout);if(n.speed.constructor==String)n.speed=a.fx.speeds[n.speed]||parseInt(n.speed);n.sync||(n.speed/=2);for(ja=n.fx=="none"?0:n.fx=="shuffle"?500:250;n.timeout-n.speed<ja;)n.timeout+=n.speed}if(n.easing)n.easeIn=n.easeOut=n.easing;if(!n.speedIn)n.speedIn=n.speed;if(!n.speedOut)n.speedOut=n.speed;n.slideCount=v.length;
n.currSlide=n.lastSlide=ca;if(n.random){if(++n.randomIndex==v.length)n.randomIndex=0;n.nextSlide=n.randomMap[n.randomIndex]}else n.nextSlide=n.backwards?n.startingSlide==0?v.length-1:n.startingSlide-1:n.startingSlide>=v.length-1?0:n.startingSlide+1;if(!n.multiFx){ja=a.fn.cycle.transitions[n.fx];if(a.isFunction(ja))ja(h,l,n);else if(n.fx!="custom"&&!n.multiFx){d("unknown transition: "+n.fx,"; slideshow terminating");return false}}h=l[ca];n.before.length&&n.before[0].apply(h,[h,h,n,true]);n.after.length&&
n.after[0].apply(h,[h,h,n,true]);n.next&&a(n.next).bind(n.prevNextEvent,function(){return C(n,1)});n.prev&&a(n.prev).bind(n.prevNextEvent,function(){return C(n,0)});if(n.pager||n.pagerAnchorBuilder)Oa(v,n);B(n,v);return n}function g(h){h.original={before:[],after:[]};h.original.cssBefore=a.extend({},h.cssBefore);h.original.cssAfter=a.extend({},h.cssAfter);h.original.animIn=a.extend({},h.animIn);h.original.animOut=a.extend({},h.animOut);a.each(h.before,function(){h.original.before.push(this)});a.each(h.after,
function(){h.original.after.push(this)})}function s(h){var l,v,R=a.fn.cycle.transitions;if(h.fx.indexOf(",")>0){h.multiFx=true;h.fxs=h.fx.replace(/\s*/g,"").split(",");for(l=0;l<h.fxs.length;l++){var K=h.fxs[l];v=R[K];if(!v||!R.hasOwnProperty(K)||!a.isFunction(v)){d("discarding unknown transition: ",K);h.fxs.splice(l,1);l--}}if(!h.fxs.length){d("No valid transitions named; slideshow terminating.");return false}}else if(h.fx=="all"){h.multiFx=true;h.fxs=[];for(p in R){v=R[p];R.hasOwnProperty(p)&&a.isFunction(v)&&
h.fxs.push(p)}}if(h.multiFx&&h.randomizeEffects){v=Math.floor(Math.random()*20)+30;for(l=0;l<v;l++)h.fxs.push(h.fxs.splice(Math.floor(Math.random()*h.fxs.length),1)[0]);c("randomized fx sequence: ",h.fxs)}return true}function B(h,l){h.addSlide=function(v,R){var K=a(v),n=K[0];h.autostopCount||h.countdown++;l[R?"unshift":"push"](n);if(h.els)h.els[R?"unshift":"push"](n);h.slideCount=l.length;K.css("position","absolute");K[R?"prependTo":"appendTo"](h.$cont);if(R){h.currSlide++;h.nextSlide++}!a.support.opacity&&
h.cleartype&&!h.cleartypeNoBg&&Ga(K);h.fit&&h.width&&K.width(h.width);h.fit&&h.height&&h.height!="auto"&&K.height(h.height);n.cycleH=h.fit&&h.height?h.height:K.height();n.cycleW=h.fit&&h.width?h.width:K.width();K.css(h.cssBefore);if(h.pager||h.pagerAnchorBuilder)a.fn.cycle.createPagerAnchor(l.length-1,n,a(h.pager),l,h);a.isFunction(h.onAddSlide)?h.onAddSlide(K):K.hide()}}function O(h,l,v,R){if(v&&l.busy&&l.manualTrump){c("manualTrump in go(), stopping active transition");a(h).stop(true,true);l.busy=
0}if(l.busy)c("transition active, ignoring new tx request");else{var K=l.$cont[0],n=h[l.currSlide],ja=h[l.nextSlide];if(!(K.cycleStop!=l.stopCount||K.cycleTimeout===0&&!v))if(!v&&!K.cyclePause&&!l.bounce&&(l.autostop&&--l.countdown<=0||l.nowrap&&!l.random&&l.nextSlide<l.currSlide))l.end&&l.end(l);else{var ca=false;if((v||!K.cyclePause)&&l.nextSlide!=l.currSlide){ca=true;var Da=l.fx;n.cycleH=n.cycleH||a(n).height();n.cycleW=n.cycleW||a(n).width();ja.cycleH=ja.cycleH||a(ja).height();ja.cycleW=ja.cycleW||
a(ja).width();if(l.multiFx){if(l.lastFx==undefined||++l.lastFx>=l.fxs.length)l.lastFx=0;Da=l.fxs[l.lastFx];l.currFx=Da}if(l.oneTimeFx){Da=l.oneTimeFx;l.oneTimeFx=null}a.fn.cycle.resetState(l,Da);l.before.length&&a.each(l.before,function(Ua,fb){K.cycleStop==l.stopCount&&fb.apply(ja,[n,ja,l,R])});var Ya=function(){l.busy=0;a.each(l.after,function(Ua,fb){K.cycleStop==l.stopCount&&fb.apply(ja,[n,ja,l,R])})};c("tx firing("+Da+"); currSlide: "+l.currSlide+"; nextSlide: "+l.nextSlide);l.busy=1;if(l.fxFn)l.fxFn(n,
ja,l,Ya,R,v&&l.fastOnEvent);else a.isFunction(a.fn.cycle[l.fx])?a.fn.cycle[l.fx](n,ja,l,Ya,R,v&&l.fastOnEvent):a.fn.cycle.custom(n,ja,l,Ya,R,v&&l.fastOnEvent)}if(ca||l.nextSlide==l.currSlide){l.lastSlide=l.currSlide;if(l.random){l.currSlide=l.nextSlide;if(++l.randomIndex==h.length)l.randomIndex=0;l.nextSlide=l.randomMap[l.randomIndex];if(l.nextSlide==l.currSlide)l.nextSlide=l.currSlide==l.slideCount-1?0:l.currSlide+1}else if(l.backwards)if((v=l.nextSlide-1<0)&&l.bounce){l.backwards=!l.backwards;l.nextSlide=
1;l.currSlide=0}else{l.nextSlide=v?h.length-1:l.nextSlide-1;l.currSlide=v?0:l.nextSlide+1}else if((v=l.nextSlide+1==h.length)&&l.bounce){l.backwards=!l.backwards;l.nextSlide=h.length-2;l.currSlide=h.length-1}else{l.nextSlide=v?0:l.nextSlide+1;l.currSlide=v?h.length-1:l.nextSlide-1}}ca&&l.pager&&l.updateActivePagerLink(l.pager,l.currSlide,l.activePagerClass);ca=0;if(l.timeout&&!l.continuous)ca=Z(h[l.currSlide],h[l.nextSlide],l,R);else if(l.continuous&&K.cyclePause)ca=10;if(ca>0)K.cycleTimeout=setTimeout(function(){O(h,
l,0,!l.backwards)},ca)}}}function Z(h,l,v,R){if(v.timeoutFn){for(h=v.timeoutFn.call(h,h,l,v,R);v.fx!="none"&&h-v.speed<250;)h+=v.speed;c("calculated timeout: "+h+"; speed: "+v.speed);if(h!==false)return h}return v.timeout}function C(h,l){var v=l?1:-1,R=h.elements,K=h.$cont[0],n=K.cycleTimeout;if(n){clearTimeout(n);K.cycleTimeout=0}if(h.random&&v<0){h.randomIndex--;if(--h.randomIndex==-2)h.randomIndex=R.length-2;else if(h.randomIndex==-1)h.randomIndex=R.length-1;h.nextSlide=h.randomMap[h.randomIndex]}else if(h.random)h.nextSlide=
h.randomMap[h.randomIndex];else{h.nextSlide=h.currSlide+v;if(h.nextSlide<0){if(h.nowrap)return false;h.nextSlide=R.length-1}else if(h.nextSlide>=R.length){if(h.nowrap)return false;h.nextSlide=0}}K=h.onPrevNextEvent||h.prevNextClick;a.isFunction(K)&&K(v>0,h.nextSlide,R[h.nextSlide]);O(R,h,1,l);return false}function Oa(h,l){var v=a(l.pager);a.each(h,function(R,K){a.fn.cycle.createPagerAnchor(R,K,v,h,l)});l.updateActivePagerLink(l.pager,l.startingSlide,l.activePagerClass)}function Ga(h){function l(R){R=
parseInt(R).toString(16);return R.length<2?"0"+R:R}function v(R){for(;R&&R.nodeName.toLowerCase()!="html";R=R.parentNode){var K=a.css(R,"background-color");if(K&&K.indexOf("rgb")>=0){R=K.match(/\d+/g);return"#"+l(R[0])+l(R[1])+l(R[2])}if(K&&K!="transparent")return K}return"#ffffff"}c("applying clearType background-color hack");h.each(function(){a(this).css("background-color",v(this))})}if(a.support==undefined)a.support={opacity:!a.browser.msie};a.expr[":"].paused=function(h){return h.cyclePause};
a.fn.cycle=function(h,l){var v={s:this.selector,c:this.context};if(this.length===0&&h!="stop"){if(!a.isReady&&v.s){d("DOM not ready, queuing slideshow");a(function(){a(v.s,v.c).cycle(h,l)});return this}d("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var R=e(this,h,l);if(R!==false){R.updateActivePagerLink=R.updateActivePagerLink||a.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=
this.cyclePause=0;var K=a(this),n=R.slideExpr?a(R.slideExpr,this):K.children(),ja=n.get();if(ja.length<2)d("terminating; too few slides: "+ja.length);else{var ca=i(K,n,ja,R,v);if(ca!==false)if(K=ca.continuous?10:Z(ja[ca.currSlide],ja[ca.nextSlide],ca,!ca.backwards)){K+=ca.delay||0;if(K<10)K=10;c("first timeout: "+K);this.cycleTimeout=setTimeout(function(){O(ja,ca,0,!R.backwards)},K)}}}})};a.fn.cycle.resetState=function(h,l){l=l||h.fx;h.before=[];h.after=[];h.cssBefore=a.extend({},h.original.cssBefore);
h.cssAfter=a.extend({},h.original.cssAfter);h.animIn=a.extend({},h.original.animIn);h.animOut=a.extend({},h.original.animOut);h.fxFn=null;a.each(h.original.before,function(){h.before.push(this)});a.each(h.original.after,function(){h.after.push(this)});var v=a.fn.cycle.transitions[l];a.isFunction(v)&&v(h.$cont,a(h.elements),h)};a.fn.cycle.updateActivePagerLink=function(h,l,v){a(h).each(function(){a(this).children().removeClass(v).eq(l).addClass(v)})};a.fn.cycle.next=function(h){C(h,1)};a.fn.cycle.prev=
function(h){C(h,0)};a.fn.cycle.createPagerAnchor=function(h,l,v,R,K){if(a.isFunction(K.pagerAnchorBuilder)){l=K.pagerAnchorBuilder(h,l);c("pagerAnchorBuilder("+h+", el) returned: "+l)}else l='<a href="#">'+(h+1)+"</a>";if(l){var n=a(l);if(n.parents("body").length===0){var ja=[];if(v.length>1){v.each(function(){var ca=n.clone(true);a(this).append(ca);ja.push(ca[0])});n=a(ja)}else n.appendTo(v)}K.pagerAnchors=K.pagerAnchors||[];K.pagerAnchors.push(n);n.bind(K.pagerEvent,function(ca){ca.preventDefault();
K.nextSlide=h;ca=K.$cont[0];var Da=ca.cycleTimeout;if(Da){clearTimeout(Da);ca.cycleTimeout=0}ca=K.onPagerEvent||K.pagerClick;a.isFunction(ca)&&ca(K.nextSlide,R[K.nextSlide]);O(R,K,1,K.currSlide<h)});!/^click/.test(K.pagerEvent)&&!K.allowPagerClickBubble&&n.bind("click.cycle",function(){return false});K.pauseOnPagerHover&&n.hover(function(){K.$cont[0].cyclePause++},function(){K.$cont[0].cyclePause--})}};a.fn.cycle.hopsFromLast=function(h,l){var v=h.lastSlide,R=h.currSlide;return l?R>v?R-v:h.slideCount-
v:R<v?v-R:v+h.slideCount-R};a.fn.cycle.commonReset=function(h,l,v,R,K,n){a(v.elements).not(h).hide();if(typeof v.cssBefore.opacity=="undefined")v.cssBefore.opacity=1;v.cssBefore.display="block";if(v.slideResize&&R!==false&&l.cycleW>0)v.cssBefore.width=l.cycleW;if(v.slideResize&&K!==false&&l.cycleH>0)v.cssBefore.height=l.cycleH;v.cssAfter=v.cssAfter||{};v.cssAfter.display="none";a(h).css("zIndex",v.slideCount+(n===true?1:0));a(l).css("zIndex",v.slideCount+(n===true?0:1))};a.fn.cycle.custom=function(h,
l,v,R,K,n){var ja=a(h),ca=a(l),Da=v.speedIn;h=v.speedOut;var Ya=v.easeIn;l=v.easeOut;ca.css(v.cssBefore);if(n){Da=typeof n=="number"?h=n:h=1;Ya=l=null}var Ua=function(){ca.animate(v.animIn,Da,Ya,function(){R()})};ja.animate(v.animOut,h,l,function(){ja.css(v.cssAfter);v.sync||Ua()});v.sync&&Ua()};a.fn.cycle.transitions={fade:function(h,l,v){l.not(":eq("+v.currSlide+")").css("opacity",0);v.before.push(function(R,K,n){a.fn.cycle.commonReset(R,K,n);n.cssBefore.opacity=0});v.animIn={opacity:1};v.animOut=
{opacity:0};v.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return"2.99"};a.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animOut:null,autostop:0,autostopCount:0,backwards:false,before:null,cleartype:!a.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,next:null,nowrap:0,
onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,slideExpr:null,slideResize:1,speed:1E3,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4E3,timeoutFn:null,updateActivePagerLink:null}})(jQuery);
(function(a){a.fn.cycle.transitions.none=function(c,d,e){e.fxFn=function(m,j,i,g){a(j).show();a(m).hide();g()}};a.fn.cycle.transitions.fadeout=function(c,d,e){d.not(":eq("+e.currSlide+")").css({display:"block",opacity:1});e.before.push(function(m,j,i,g,s,B){a(m).css("zIndex",i.slideCount+(!B===true?1:0));a(j).css("zIndex",i.slideCount+(!B===true?0:1))});e.animIn.opacity=1;e.animOut.opacity=0;e.cssBefore.opacity=1;e.cssBefore.display="block";e.cssAfter.zIndex=0};a.fn.cycle.transitions.scrollUp=function(c,
d,e){c.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);c=c.height();e.cssBefore.top=c;e.cssBefore.left=0;e.cssFirst.top=0;e.animIn.top=0;e.animOut.top=-c};a.fn.cycle.transitions.scrollDown=function(c,d,e){c.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);c=c.height();e.cssFirst.top=0;e.cssBefore.top=-c;e.cssBefore.left=0;e.animIn.top=0;e.animOut.top=c};a.fn.cycle.transitions.scrollLeft=function(c,d,e){c.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);c=
c.width();e.cssFirst.left=0;e.cssBefore.left=c;e.cssBefore.top=0;e.animIn.left=0;e.animOut.left=0-c};a.fn.cycle.transitions.scrollRight=function(c,d,e){c.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);c=c.width();e.cssFirst.left=0;e.cssBefore.left=-c;e.cssBefore.top=0;e.animIn.left=0;e.animOut.left=c};a.fn.cycle.transitions.scrollHorz=function(c,d,e){c.css("overflow","hidden").width();e.before.push(function(m,j,i,g){if(i.rev)g=!g;a.fn.cycle.commonReset(m,j,i);i.cssBefore.left=g?j.cycleW-
1:1-j.cycleW;i.animOut.left=g?-m.cycleW:m.cycleW});e.cssFirst.left=0;e.cssBefore.top=0;e.animIn.left=0;e.animOut.top=0};a.fn.cycle.transitions.scrollVert=function(c,d,e){c.css("overflow","hidden");e.before.push(function(m,j,i,g){if(i.rev)g=!g;a.fn.cycle.commonReset(m,j,i);i.cssBefore.top=g?1-j.cycleH:j.cycleH-1;i.animOut.top=g?m.cycleH:-m.cycleH});e.cssFirst.top=0;e.cssBefore.left=0;e.animIn.top=0;e.animOut.left=0};a.fn.cycle.transitions.slideX=function(c,d,e){e.before.push(function(m,j,i){a(i.elements).not(m).hide();
a.fn.cycle.commonReset(m,j,i,false,true);i.animIn.width=j.cycleW});e.cssBefore.left=0;e.cssBefore.top=0;e.cssBefore.width=0;e.animIn.width="show";e.animOut.width=0};a.fn.cycle.transitions.slideY=function(c,d,e){e.before.push(function(m,j,i){a(i.elements).not(m).hide();a.fn.cycle.commonReset(m,j,i,true,false);i.animIn.height=j.cycleH});e.cssBefore.left=0;e.cssBefore.top=0;e.cssBefore.height=0;e.animIn.height="show";e.animOut.height=0};a.fn.cycle.transitions.shuffle=function(c,d,e){c=c.css("overflow",
"visible").width();d.css({left:0,top:0});e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i,true,true,true)});if(!e.speedAdjusted){e.speed/=2;e.speedAdjusted=true}e.random=0;e.shuffle=e.shuffle||{left:-c,top:15};e.els=[];for(c=0;c<d.length;c++)e.els.push(d[c]);for(c=0;c<e.currSlide;c++)e.els.push(e.els.shift());e.fxFn=function(m,j,i,g,s){if(i.rev)s=!s;var B=s?a(m):a(j);a(j).css(i.cssBefore);var O=i.slideCount;B.animate(i.shuffle,i.speedIn,i.easeIn,function(){for(var Z=a.fn.cycle.hopsFromLast(i,
s),C=0;C<Z;C++)s?i.els.push(i.els.shift()):i.els.unshift(i.els.pop());if(s){Z=0;for(C=i.els.length;Z<C;Z++)a(i.els[Z]).css("z-index",C-Z+O)}else{Z=a(m).css("z-index");B.css("z-index",parseInt(Z)+1+O)}B.animate({left:0,top:0},i.speedOut,i.easeOut,function(){a(s?this:m).hide();g&&g()})})};a.extend(e.cssBefore,{display:"block",opacity:1,top:0,left:0})};a.fn.cycle.transitions.turnUp=function(c,d,e){e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i,true,false);i.cssBefore.top=j.cycleH;i.animIn.height=
j.cycleH;i.animOut.width=j.cycleW});e.cssFirst.top=0;e.cssBefore.left=0;e.cssBefore.height=0;e.animIn.top=0;e.animOut.height=0};a.fn.cycle.transitions.turnDown=function(c,d,e){e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i,true,false);i.animIn.height=j.cycleH;i.animOut.top=m.cycleH});e.cssFirst.top=0;e.cssBefore.left=0;e.cssBefore.top=0;e.cssBefore.height=0;e.animOut.height=0};a.fn.cycle.transitions.turnLeft=function(c,d,e){e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i,false,
true);i.cssBefore.left=j.cycleW;i.animIn.width=j.cycleW});e.cssBefore.top=0;e.cssBefore.width=0;e.animIn.left=0;e.animOut.width=0};a.fn.cycle.transitions.turnRight=function(c,d,e){e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i,false,true);i.animIn.width=j.cycleW;i.animOut.left=m.cycleW});a.extend(e.cssBefore,{top:0,left:0,width:0});e.animIn.left=0;e.animOut.width=0};a.fn.cycle.transitions.zoom=function(c,d,e){e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i,false,false,true);
i.cssBefore.top=j.cycleH/2;i.cssBefore.left=j.cycleW/2;a.extend(i.animIn,{top:0,left:0,width:j.cycleW,height:j.cycleH});a.extend(i.animOut,{width:0,height:0,top:m.cycleH/2,left:m.cycleW/2})});e.cssFirst.top=0;e.cssFirst.left=0;e.cssBefore.width=0;e.cssBefore.height=0};a.fn.cycle.transitions.fadeZoom=function(c,d,e){e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i,false,false);i.cssBefore.left=j.cycleW/2;i.cssBefore.top=j.cycleH/2;a.extend(i.animIn,{top:0,left:0,width:j.cycleW,height:j.cycleH})});
e.cssBefore.width=0;e.cssBefore.height=0;e.animOut.opacity=0};a.fn.cycle.transitions.blindX=function(c,d,e){c=c.css("overflow","hidden").width();e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i);i.animIn.width=j.cycleW;i.animOut.left=m.cycleW});e.cssBefore.left=c;e.cssBefore.top=0;e.animIn.left=0;e.animOut.left=c};a.fn.cycle.transitions.blindY=function(c,d,e){c=c.css("overflow","hidden").height();e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i);i.animIn.height=j.cycleH;i.animOut.top=
m.cycleH});e.cssBefore.top=c;e.cssBefore.left=0;e.animIn.top=0;e.animOut.top=c};a.fn.cycle.transitions.blindZ=function(c,d,e){d=c.css("overflow","hidden").height();c=c.width();e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i);i.animIn.height=j.cycleH;i.animOut.top=m.cycleH});e.cssBefore.top=d;e.cssBefore.left=c;e.animIn.top=0;e.animIn.left=0;e.animOut.top=d;e.animOut.left=c};a.fn.cycle.transitions.growX=function(c,d,e){e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i,false,true);
i.cssBefore.left=this.cycleW/2;i.animIn.left=0;i.animIn.width=this.cycleW;i.animOut.left=0});e.cssBefore.top=0;e.cssBefore.width=0};a.fn.cycle.transitions.growY=function(c,d,e){e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i,true,false);i.cssBefore.top=this.cycleH/2;i.animIn.top=0;i.animIn.height=this.cycleH;i.animOut.top=0});e.cssBefore.height=0;e.cssBefore.left=0};a.fn.cycle.transitions.curtainX=function(c,d,e){e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i,false,true,true);
i.cssBefore.left=j.cycleW/2;i.animIn.left=0;i.animIn.width=this.cycleW;i.animOut.left=m.cycleW/2;i.animOut.width=0});e.cssBefore.top=0;e.cssBefore.width=0};a.fn.cycle.transitions.curtainY=function(c,d,e){e.before.push(function(m,j,i){a.fn.cycle.commonReset(m,j,i,true,false,true);i.cssBefore.top=j.cycleH/2;i.animIn.top=0;i.animIn.height=j.cycleH;i.animOut.top=m.cycleH/2;i.animOut.height=0});e.cssBefore.height=0;e.cssBefore.left=0};a.fn.cycle.transitions.cover=function(c,d,e){var m=e.direction||"left",
j=c.css("overflow","hidden").width(),i=c.height();e.before.push(function(g,s,B){a.fn.cycle.commonReset(g,s,B);if(m=="right")B.cssBefore.left=-j;else if(m=="up")B.cssBefore.top=i;else if(m=="down")B.cssBefore.top=-i;else B.cssBefore.left=j});e.animIn.left=0;e.animIn.top=0;e.cssBefore.top=0;e.cssBefore.left=0};a.fn.cycle.transitions.uncover=function(c,d,e){var m=e.direction||"left",j=c.css("overflow","hidden").width(),i=c.height();e.before.push(function(g,s,B){a.fn.cycle.commonReset(g,s,B,true,true,
true);if(m=="right")B.animOut.left=j;else if(m=="up")B.animOut.top=-i;else if(m=="down")B.animOut.top=i;else B.animOut.left=-j});e.animIn.left=0;e.animIn.top=0;e.cssBefore.top=0;e.cssBefore.left=0};a.fn.cycle.transitions.toss=function(c,d,e){var m=c.css("overflow","visible").width(),j=c.height();e.before.push(function(i,g,s){a.fn.cycle.commonReset(i,g,s,true,true,true);if(!s.animOut.left&&!s.animOut.top)a.extend(s.animOut,{left:m*2,top:-j/2,opacity:0});else s.animOut.opacity=0});e.cssBefore.left=
0;e.cssBefore.top=0;e.animIn.left=0};a.fn.cycle.transitions.wipe=function(c,d,e){var m=c.css("overflow","hidden").width(),j=c.height();e.cssBefore=e.cssBefore||{};var i;if(e.clip)if(/l2r/.test(e.clip))i="rect(0px 0px "+j+"px 0px)";else if(/r2l/.test(e.clip))i="rect(0px "+m+"px "+j+"px "+m+"px)";else if(/t2b/.test(e.clip))i="rect(0px "+m+"px 0px 0px)";else if(/b2t/.test(e.clip))i="rect("+j+"px "+m+"px "+j+"px 0px)";else if(/zoom/.test(e.clip)){c=parseInt(j/2);d=parseInt(m/2);i="rect("+c+"px "+d+"px "+
c+"px "+d+"px)"}e.cssBefore.clip=e.cssBefore.clip||i||"rect(0px 0px 0px 0px)";c=e.cssBefore.clip.match(/(\d+)/g);var g=parseInt(c[0]),s=parseInt(c[1]),B=parseInt(c[2]),O=parseInt(c[3]);e.before.push(function(Z,C,Oa){if(Z!=C){var Ga=a(Z),h=a(C);a.fn.cycle.commonReset(Z,C,Oa,true,true,false);Oa.cssAfter.display="block";var l=1,v=parseInt(Oa.speedIn/13)-1;(function R(){var K=g?g-parseInt(l*(g/v)):0,n=O?O-parseInt(l*(O/v)):0,ja=B<j?B+parseInt(l*((j-B)/v||1)):j,ca=s<m?s+parseInt(l*((m-s)/v||1)):m;h.css({clip:"rect("+
K+"px "+ca+"px "+ja+"px "+n+"px)"});l++<=v?setTimeout(R,13):Ga.css("display","none")})()}});a.extend(e.cssBefore,{display:"block",opacity:1,top:0,left:0});e.animIn={left:0};e.animOut={left:0}}})(jQuery);
$(function(){$("a[rel=colorbox]").colorbox();$("#nav li").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});var a=$("#nav>ul>li"),c=a.length;a.eq(c-1).addClass("end");a.eq(c-2).addClass("end");$(".generated-form, #comment-form").validate();$("#inner .right").each(function(){var d=$(this),e=$("#contentheader").height();e+=90;d.css("margin-top",e+"px")});$("#slideshow div").cycle({timeout:7E3,pager:"#pager",prev:"#slideshow .prev",next:"#slideshow .next"})});

