$(function() 
{
	$("#menu li a").hover(
		function()	
		{ 
			$(this).parent()
				.not(".actief")
				.stop()
				.css({ opacity: 0 })
				.addClass("hover")
				.animate({ opacity: 1 }, 240, function()
				{	
					// voor ie7 filter verwijderen
					$(this).css("filter", "");	
				})
			; 
		},
		function()	
		{ 
			$(this).parent()
				.not(".actief")
				.stop()
				.animate({ opacity: 0 }, 240, function()
				{
					// voor ie7 filter verwijderen
					$(this).css("filter", "").removeClass("hover");
				})
			;	
		}
	);
});


/* functie om hele blokken klikbaar te maken, en hover toevoegen */
$.fn.hoverClick = function()
{
	this.each(function()
	{
		$(this).hover(
			function() { $(this).addClass("hover").css("cursor", "pointer"); },
			function() { $(this).removeClass("hover").css("cursor", "pointer"); }
		);
		
		$(this).click(function(){
			window.location = $("a:first", this).attr("href");
		});
	});
	
	return this;
};