Cufon.replace('nav > ul > li > a, .scroll h1, #booking, .tabs li a, .carousel .price span', {hover:true});

Cufon.replace('#featured h2, #featured h3', {
  textShadow: '1px 1px rgba(0,0,0,0.4)'
});

$(document).ready(function() {
						   
	$("li:last-child").addClass("last");
	
	$('#banner').innerfade({
		speed: 1000,
		timeout: 8000,
		type: 'sequence',
		containerheight: '700px'
	});
  
	// HOME PAGE FLOATING PROMOTION ROTATOR
	
	var promotions_qty = $('#featured li').size();
	var next_promotion = 0;
	
	var rotate_promotions = function() {
		if (next_promotion == promotions_qty) { next_promotion = 0 }
		
		$('#featured li').hide();
		$('#featured li').eq(next_promotion).fadeIn(1000);
		
		next_promotion++;
	}   
	
	rotate_promotions();
	
	setInterval(rotate_promotions, 8000);
	
	// HOME PAGE FLOATING PROMOTION ROTATOR END
	
	$("#info").click(function () {
      $("#welcome").slideToggle("slow");
    });

	$("#booking").click(function () {
      $("#searchbox-home").slideToggle("slow");
    });

	$('.scroll').jScrollPane({
		showArrows:true
	});

	$('#welcome').css('display', 'none');	

	$( "#tabs" ).tabs({
			collapsible: true,
			selected: -1,
			fx: { opacity: 'toggle' }
		});

	// Carousel Start
	
	$('#tabs-specials').show();
	$("#tabs-specials .carousel").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev",
		auto: 4000,
		speed: 1000,
		visible: 1
	});
	$('#tabs-specials').hide();


  if ($('#tabs-events div.carousel > ul > li').size() > 0) {
  	$('#tabs-events div.carousel > ul').html($('#tabs-events div.carousel > ul > li'));
  
  	$('#tabs-events').show();
  	$("#tabs-events .carousel").jCarouselLite({
  		btnNext: ".next",
  		btnPrev: ".prev",
  		auto: 4000,
  		speed: 1000,
  		visible: 1
  	});
  	$('#tabs-events').hide();
	}
 	
 	
 	if ($('#tabs-reviews div.carousel > ul > li').size() > 0) {
 	  $('#tabs-reviews').show();
  	$('#tabs-reviews div.carousel > ul').html($('#tabs-reviews div.carousel > ul > li'));
   	
  	$("#tabs-reviews .carousel").jCarouselLite({
  		btnNext: ".next",
  		btnPrev: ".prev",
  		auto: 4000,
  		speed: 1000,
  		visible: 2
  	});
  	
  	$('#tabs-reviews').hide();
	}
	// Carousel End

});
