(function(){var A=[y5.moduleURL("Components.Calendar.calendar-prev-prev","gif"),y5.moduleURL("Components.Calendar.calendar-next-next","gif"),y5.moduleURL("Components.Calendar.calendar-prev","gif"),y5.moduleURL("Components.Calendar.calendar-next","gif")];y5.Components.Calendar.HTML=function(C){var E,H,J,D,G,F,B,K;C.firstDay=y5.Dates.getDayOffset(y5.Dates.days[C.firstDay]||1,"Monday");C.style=C.style||"classic";C.todayLink=C.todayLink||false;C.time=C.time||false;C.removeControls=C.removeControls||false;if(C.removeControls){H=J=D=G="";F='
%s | ';B='%s | ';K='%s | '}else{F='%s | ';B='%s | ';K='%s | ';H=' | ';J=' | ';D=' | ';G=' | '}this.classes={date:"y5-calendar-date",today:"y5-calendar-go-today",yearPrev:"y5-calendar-year-prev",yearInfo:"y5-calendar-year-info",yearNext:"y5-calendar-year-next",yearInput:"y5-calendar-year-input",monthPrev:"y5-calendar-month-prev",monthInfo:"y5-calendar-month-info",monthNext:"y5-calendar-month-next",monthSelect:"y5-calendar-month-select",info:"y5-calendar-info",monthSelector:"y5-calendar-selector-month",yearSelector:"y5-calendar-selector-year",time:"y5-calendar-time-input"};this.day='%s | ';this.otherMonthDay='%s | ';this.disabledDay='%s | ';this.yearInput='';switch(C.style){case"classic":if(!C.removeControls){H=' | ';J=' | '}var I=''+H+F+J+'
'+D+B+G+"
";this.monthSelect='";break;case"vista":var I=''+H+D+K+G+J+"
";this.yearSelector='';this.monthSelector='';this.monthSelector=y5.Strings.printf(this.monthSelector,y5.Dates.monthNames)}this.calendar='";this.calendarTable='';for(E=C.firstDay;E<7+C.firstDay;E++){this.calendarTable+='| '+y5.Dates.dayNames2[E%7]+" | "}this.calendarTable+="
%s
"};y5.require(["Dates","Strings"],function(){y5.loaded("Components.Calendar.HTML")})})();