$(document).ready(function() { 
		
	$('.cycle').cycle({
		fx: 'fade',
		speed: 1000,
		speedIn: 1000
	});

	$('input.reservation_date').datepicker({
		beforeShowDay: closedDays,
		minDate: 0,
		dateFormat: 'dd/mm/yy',
		changeMonth: true,
		changeYear: true,
		showOn: 'button',
		buttonImage: 'http://cdn.pageworks.co.uk/share/graphics/icons/famfamfam/silk/calendar.png',
		buttonImageOnly: true,
		showOn: 'both'
	});

function closedDays(date) {
  if (date.getDay() == 0){ 
  return [false,"","Venue Closed"]; 
  } else { return [true, ""];
}
}
	$('input.dob').datepicker({
		dateFormat: 'dd/mm/yy',
		changeMonth: true,
		changeYear: true,
		showOn: 'button',
		buttonImage: 'http://cdn.pageworks.co.uk/share/graphics/icons/famfamfam/silk/calendar.png',
		buttonImageOnly: true,
		showOn: 'both'
	});



	$("a[rel=example_group]").fancybox({
		'transitionIn'	:	'elastic',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
		}
	});

}); 


