$(document).ready(function () {	
	
	/** BANNERS **/
	$('.header.front-page ul.headerimgs').innerfade({
		speed: 'slow',
		timeout: 4000,
		type: 'sequence',
		containerheight: '522px'
	});
	
	$('.header.internal ul.headerimgs').innerfade({
		speed: 'slow',
		timeout: 4000,
		type: 'sequence',
		containerheight: '300px'
	});
	
	/** NAVIGATION **/
	$('#nav li').hover(
		function () {
			//show its submenu
			$('ul', this).slideDown(100);

		}, 
		function () {
			//hide its submenu
			$('ul', this).slideUp(100);			
		}
	);
	
	/** SIDEBAR CTAs **/
	// .cta.one (new)
	$(".cta.how-to-book").hover(function () {
		$(this).css("background-color","#5D002A");
	},function () {
		$(this).css("background-color","#660033");
	});
	
	// .cta.two (new)
	$(".cta.mustique-island").hover(function () {
		$(this).css("background-color","#898923");
	},function () {
		$(this).css("background-color","#999933");
	});
	
	// .cta.three (new)
	$(".cta.request-a-brochure").hover(function () {
		$(this).css("background-color","#865320");
	},function () {
		$(this).css("background-color","#996633");
	});
	
	// .cta.four (new)
	$(".cta.discover-shogun").hover(function () {
		$(this).css("background-color","#B98600");
	},function () {
		$(this).css("background-color","#CC9900");
	});	
	
	
	/*** GALLERY STUFF ***/
	// Load the twelve theme
    Galleria.loadTheme('/wp-content/themes/shogun/javascript/galleria/themes/twelve/galleria.twelve.min.js');

    // Initialize Galleria
    $('#galleria').galleria();
	
});

	/*** AO: OLD CTAs ROLLOVER
	$(".cta.one").mouseover(function () {
		$(this).css("background-color","#5D002A");
	});
	$(".cta.one").mouseout(function () {
		$(this).css("background-color","#660033");
	});
	$(".cta.two").mouseover(function () {
		$(this).css("background-color","#898923");
	});
	$(".cta.two").mouseout(function () {
		$(this).css("background-color","#999933");
	});
	$(".cta.three").mouseover(function () {
		$(this).css("background-color","#865320");
	});
	$(".cta.three").mouseout(function () {
		$(this).css("background-color","#996633");
	});
	$(".cta.four").mouseover(function () {
		$(this).css("background-color","#B98600");
	});
	$(".cta.four").mouseout(function () {
		$(this).css("background-color","#CC9900");
	});
	***/
