Cufon.replace('#address p, #events-home h2', {
  textShadow: '1px 1px rgba(0,0,0,0.4)',
  color: '-linear-gradient(#ddd4bd,#a69a82)'
});

Cufon.replace('nav > ul > li > a', {
  textShadow: '1px 1px rgba(0,0,0,0.4)',
  hover: true
});

Cufon.replace('#featured h2, #featured h3', {
  textShadow: '1px 1px rgba(0,0,0,0.4)',
  color: '-linear-gradient(#fff,#c1c1c1)'
});

Cufon.replace('#welcome h1', {
  textShadow: '1px 1px rgba(255,255,255,0.4)',
});

//Cufon.replace('#carousel p', {
//  textShadow: '1px 1px rgba(255,255,255,0.4)',
//  color: '-linear-gradient(#444,#000)'
//});

$(document).ready(function() {
						   
	$("li:last-child").addClass("last");
	
	$('#banner').innerfade({
		speed: 1000,
		timeout: 8000,
		type: 'sequence',
		containerheight: '450px'
	});
	
	$("#info").click(function () {
      $("#welcome").slideToggle("slow");
    });
	
	$('.scroll').jScrollPane({
		showArrows:true
	});
	
	$('#welcome').css('display', 'none');
	
	// Carousel Start
	$("#carousel .carousel").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev",
		auto: 4000,
		speed: 2000,
		visible: 5
	});
	// Carousel End
	
	// Carousel Start
	$("#events-home .carousel").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev",
		auto: 6000,
		speed: 1000,
		visible: 2
	});
	// Carousel End
  
	// 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

	$('#weather').weatherfeed(['EIXX0037']);
	
});
