$(document).ready(function(){  

//Initial effects
	$("#initial").click(function() {
		//fadeout 
		$(this).fadeOut("slow");
		//fadein #main
		$("#main").fadeIn("slow");
		//slide in #header
		$("#header").slideDown("slow");
		//expand #container
		$("#container").animate({height: "770px"}, "slow");
		//fadein #main, #features, #facebook, #lang
		$(".initial").fadeIn("slow");
	});

//Dropdown menu function
	$(".dropdown").hover(function() {
		$(this).parent().find("ul.sub_menu").slideDown("slow");
		$(this).addClass('active');
		$(this).parent().css("padding-bottom", "19px"); 
		$(this).parent().hover(function() {}, function(){
			$(this).parent().find("ul.sub_menu").slideUp("slow");
			$(".dropdown").removeClass('active');
		});
	});

//jCarousel setup
	jQuery(document).ready(function() {
		jQuery("#ourstories-page").jcarousel({
			scroll: 1,
			animation: "slow",
			wrap: "both",
		});
	});

	jQuery(document).ready(function() {
		jQuery("#gallery-page").jcarousel({
			scroll: 1,
			animation: "slow",
			wrap: "both",
		});
	});

	jQuery(document).ready(function() {
		jQuery("#list-page").jcarousel({
			vertical: true,
			scroll:9,
			animation: "slow",
		});
		
	});
	
	jQuery(document).ready(function() {
		jQuery("#list-page2").jcarousel({
			vertical: true,
			scroll:2,
			animation: "slow",
		});
		
	});
	
	jQuery(document).ready(function() {
		jQuery("#list-page3").jcarousel({
			vertical: true,
			scroll:1,
			animation: "slow",
		});
		
	});
	
	jQuery(document).ready(function() {
		jQuery("#list-page4").jcarousel({
			vertical: true,
			scroll:1,
			animation: "slow",
		});
		
	});

});
