(function($){
	var initLayout = function() {
		var hash = window.location.hash.replace('#', '');

		$('#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);
			}
		});
$('#inputDate2').DatePicker({
			format:'m/d/Y',
			date: $('#inputDate2').val(),
			current: $('#inputDate2').val(),
			starts: 1,
			position: 'right',
			onBeforeShow: function(){
				$('#inputDate2').DatePickerSetDate($('#inputDate2').val(), true);
			},
			onChange: function(formated, dates){
				$('#inputDate2').val(formated);
			}
		});

	};
	
	EYE.register(initLayout, 'init');
})(jQuery)

