$(document).ready(function() {

	$('.slideshow').css('overflow', 'hidden');
	
    $('.slideshow').cycle({
		fx: 'fade',
	pause: 1,
	prev: '#prev',
	next: '#next'

	});
	
});

$(document).ready(function() {
	
	$('.announcement1').css('overflow', 'hidden');
	
    $('.announcement1').cycle({
		fx: 'fade',
	pause: 3
	});
	
	$('.announcement2').css('overflow', 'hidden');
	
    $('.announcement2').cycle({
		fx: 'fade',
	pause: 3
	});
	
	$('.announcement3').css('overflow', 'hidden');
	
    $('.announcement3').cycle({
		fx: 'fade',
	pause: 3
	});
});

//E.V. - Functions for changing the date that gets passed to the reservation form
function ChangedDate()
{
	var index;
	
	//Get the day
	index = document.resForm.arrivalDay.selectedIndex;
	var day = document.resForm.arrivalDay[index].value;
	
	//Get the month
	index = document.resForm.arrivalMonth.selectedIndex;
	var month = document.resForm.arrivalMonth[index].value;
	
	//Get the year
	index = document.resForm.arrivalYear.selectedIndex;
	var year = document.resForm.arrivalYear[index].value;
	
	document.resForm.arrive.value = month+"/"+day+"/"+year;
}

