// JavaScript Document
$(document).ready(function(){
	$(".menuItem").hover(function(){ 	// over
		$(this).addClass("hover");
		var Rel = $(this).attr("rel");
		$("#"+Rel).css("display","block");
	},function(){											// out
		$(this).removeClass("hover");																
		var Rel = $(this).attr("rel");
		$("#"+Rel).css("display","none");
	});
	
	$("div.scrollable").scrollable({ 
		vertical:true,
		prevPage: ".Prev",
		nextPage: ".Next",
		size: 1
	}).circular().autoscroll({autoplay: true, interval: 5000});

	$(".clip").scrollable({
		vertical:false,
		size: 4
	}).circular().autoscroll({autoplay: true, interval: 2000});
	
	$(".image-rotate").innerfade({
		animationtype: "fade",
		runningclass: "image-rotate",
		containerheight: "301",
		speed: "slow",
		timeout: 3000
	});
	
	var Content = $(".stage-1").html();
	
	$(".content-loader").html(Content);
	
	$(".activate").hover(function(){
		var Disp = "."+$(this).attr("rel");
		var Content = $(Disp).html();
		$(".content-loader").html(Content);
	});
	
	$(".pull-up").hide();
	$(".drop-down").click(function(){
		var rel = $(this).attr("rel");
		if($("."+rel).css("display") !== "block"){
			$("."+rel).slideDown();
		} else {
			$("."+rel).slideUp();
		}
		return false;
	});
});