natDays = [];

function nationalDays(date) {
		for (i = 0; i < natDays.length; i++) {
				if (date.getMonth() == natDays[i][0] - 1
				&& date.getDate() == natDays[i][1]) {
						return [false, natDays[i][2] + '_day'];
				}
		}
		return [true, ''];
}



$(function(){
	
	$('#arragement-calendar-in #datepicker').datepicker({
		dayNamesMin:['S', 'M', 'T', 'W', 'T', 'F', 'S'],
		hideIfNoPrevNext:true,
		minDate:'0',
		maxDate:'+13d',
		dateFormat: 'ymmdd',
		onSelect:function(date,inst){
			window.location.href="/html/en/eventcalendar/todh"+date+".html";
		},
		beforeShowDay:nationalDays
	});
});

$(function(){
	$('#arragement-calendar #datepicker').datepicker({
		dayNamesMin:['S', 'M', 'T', 'W', 'T', 'F', 'S'],
		hideIfNoPrevNext:true,
		minDate:'0',
		maxDate:'+13d',
		dateFormat: 'ymmdd',
		onSelect:function(date,inst){
			window.location.href="/html/en/eventcalendar/todh"+date+".html";
		}
	});
});
