Cufon.replace('h1, h2, h3, h4, h5, h6, #menu > ul > li > a, #submenu > ul > li > a');

$(document).ready(function() {
	myAccordion = $("#splash").zAccordion({
		timeout: 4500,
		width: 960,
		speed: 500,
		open: function() {
			$("#splash").find("li.slide-open div").fadeIn();
		},
		close: function() {
			$("#splash").find("li.slide-closed div").fadeOut();
		},
		click: function() {
			$("#splash").children().find("div").fadeOut();
		},
		slideWidth: 660,
		height: 500,
		startingSlide: 0
	});
	
	$("#splash").find("li.slide-closed div").css("display", "none");
	
	// Toggle Start
	$("#homecontent").hide(); 
		
	$("h2.trigger").click(function(){
		$(this).toggleClass("active").next().slideToggle("slow");
		return false; //Prevent the browser jump to the link anchor
	});
	// Toggle End

	
	// Carousel Start
	$(".carousel").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev",
		auto: 4000,
		speed: 600,
		visible: 4
	});
	
	$(".carousel ul li").bind("mouseenter",function() {
		$('.desc', this).animate({bottom:'0px'}, 200);
		}).bind("mouseleave",function(){
			$('.desc', this).animate({bottom:'-82px'}, 200);
		});
	// Carousel End
	
    // Initialize Galleria
    $('#galleria').galleria({
		preload: 3,
		transition: 'fade',
		imageCrop: true,
		autoplay: 5000,
		carousel: false,
		showCounter:false,
		transitionSpeed: 1500
	});


});
