/* functie om hele blokken klikbaar te maken, en hover toevoegen */
$.fn.hoverClick = function()
{
	this.each(function()
	{
		if($("a:first", this).length)
		{
			$(this).hover(
				function() { $(this).addClass("hover").css("cursor", "pointer"); },
				function() { $(this).removeClass("hover").css("cursor", "pointer"); }
			);
			
			$(this).attr("title", $("a:first", this).attr("title"));
			
			$(this).click(function(){
				window.location = $("a:first", this).attr("href");
			});
		}
	});
	
	return this;
};


$(function()
{	
	// Formulier focus op velden
	$(":input").not("input[type=button], input[type=submit]").focus(function() { $(this).addClass("veldfocus"); });
	$(":input").not("input[type=button], input[type=submit]").blur(function() { $(this).removeClass("veldfocus"); });
	
	$("#menu li").hover(
		function() { 
			$(this).addClass("hover");
			//$("a:first", this).not(".actief").css("opacity", 0.2); 
			//$("a:first", this).not(".actief").animate({opacity: "1"}, 500); 
		},
		function() { 
			//$("a:first", this).css("opacity", 1);
			$(this).removeClass("hover"); 
			
		}
	);	

});



function maakSifr()
{
	sIFR.replaceElement(named({ sSelector:"#content h1", sFlashSrc: submap + "fla/myriad.swf", sColor:"#151c64", sBgColor:"#fbab18", sWmode:"transparent" }));	
}
