// JavaScript Document
$(document).ready(function() {
	$(".whats-on").hover(
	  function () {
		$('#events').animate({
		height: 'toggle'
	  }, 50, function() {
		// Animation complete.
	  });
	  }, 
	  function () {
		$('#events').animate({
		height: 'toggle'
	  }, 50, function() {
		// Animation complete.
	  });
	  }
	);
	
	//Reservations page photo rotator
	$('.rotate').cycle({
		fx: 'fade',
		pause: 1
	});
	
	//Menu page photo rotator
	$('.slideshow').cycle({
		fx: 'fade',
		pause: 1
	});
	
	//Homepage banner rotator
	$('#home .banner-rotator').cycle({
		fx: 'fade',
		pause: 1
	});
	
	//BOOK NOW Button action
	$('.book-now').click(function() {
		document.location.href='reservations.html';
    });
	
	//Copy fade in
	$(".bar-content .copy").css("display", "none");
	$('.bar-content .copy').delay(600).fadeIn(1200, function() {
        // Animation complete
      });
	  
	//Set the default value of checkboxes to checked  
	//$('.webform .checked').attr('checked');
	$('.webform .checked').replaceWith('<input name="CampaignList_35221" type="checkbox" class="chechbox" checked />');

	//Functions slider
	$('.slider').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed: 1000,
		speedIn: 1000,
		speedOut: 1000
	}); 
	
	//Full Caption Sliding (Hidden to Visible)
		$('.boxgrid').hover(function(){
			$(".cover", this).stop().animate({top:'220px'},{queue:false,duration:160});
		}, function() {
			$(".cover", this).stop().animate({top:'100px'},{queue:false,duration:160});
		});


});
