$(document).ready(function(){
	//Give every dropdown menu an unique ID
	$('.dropdown').next('div').each(function(index){
		$(this).attr('id','dropdown' + (index + 1))
	});
	//Make the shadows
	$('#intro .text').each(function(index){
		$(this).parents("div:first").find("div.shadow").html($(this).html());
	});
	/**
	//submenu's
	$('#header .menu .dropdown').hover(function(){
		$('#header .menu .submenu').hide();
		$(this).next('ul').slideToggle('fast');
		$(this).addClass('hover');
	}, function() {
		$(this).next('ul').hide();
		$(this).removeClass('hover');
	});
	//sub-submenu's
	$('#header .menu .dropdown').next('ul').hover(function(){
		$(this).show();
		$(this).prev().addClass('hover');
	}, function() {
		$(this).hide();
		$(this).prev().removeClass('hover');
	});
	**/
	//intro-page hovers
	$('#intro a').hover(function(){
		var divId = $(this).parent('div:first').attr('class');
		$("#" + divId + " .text").addClass('hover');
	}, function() {
		var divId = $(this).parent('div:first').attr('class');
		$("#" + divId + " .text").removeClass('hover');
	});	
});
