(function($){
	var initLayout = function() {
		
		//Edit the dates below this line. the boxes corresponds to the layout
		
		$('#date1').DatePicker({
			date: ['2010-01-31', '2010-01-12', '2010-01-08'],
			mode: 'multiple',
			current: '2010-01-01'
		});
		
		$('#date2').DatePicker({
			date: ['2010-02-28', '2010-02-12', '2010-02-08'],
			mode: 'multiple',
			current: '2010-02-01'
		});
		
		$('#date3').DatePicker({
			date: ['2010-03-25', '2010-03-12', '2010-03-08'],
			mode: 'multiple',
			current: '2010-03-01'
		});
		
		
		
		//Do not edit below this line
		
		$(".datepickerViewDays a").click(function(){
			return false;
		})
		
		$('#inputDate').DatePicker({
			format:'m/d/Y',
			date: $('#inputDate').val(),
			current: $('#inputDate').val(),
			starts: 1,
			position: 'right',
			onBeforeShow: function(){
				$('#inputDate').DatePickerSetDate($('#inputDate').val(), true);
			},
			onChange: function(formated, dates){
				$('#inputDate').val(formated);
				if ($('#closeOnSelect input').attr('checked')) {
					$('#inputDate').DatePickerHide();
				}
			}
		});
		
	};

	EYE.register(initLayout, 'init');
})(jQuery)
