/* functie om hele blokken klikbaar te maken, en hover toevoegen */
$.fn.hoverClick = function( is_lightbox )
{
	this.each(function()
	{
		$(this).hover(
			function() { $(this).addClass("hover").css("cursor", "pointer"); },
			function() { $(this).removeClass("hover").css("cursor", "pointer"); }
		);
		
		$(this).attr("title", $("a:first", this).attr("title"));
		
		if(is_lightbox)
		{
			$(this).attr("href", $("a:first", this).attr("href"));
		}
		else
		{
			$(this).click(function(){
				window.location = $("a:first", this).attr("href");
			});
		}
	});
	
	return this;
};

$(function() {

	$("#nieuwsoverzicht li").hoverClick(false);

	$("#menu li, #fotoboek li img, #fotooverzicht li").hover(function()
	{
		$(this).addClass("hover");
	},
	function()
	{
		$(this).removeClass("hover");
	});
	
	
	///////////////////////////////
	// Formulier focus op velden //
	///////////////////////////////
	$("#content input, #content textarea").focus(function() {
		$(this).addClass("veldfocus");
	});
	$("#content input, #content textarea").blur(function() {
		$(this).removeClass("veldfocus");
	});
	
});


function maak_sifr()
{
	sIFR.replaceElement(named({ sSelector:"h1", sFlashSrc: submap+"fla/unsteady.swf", sColor:"#000000", sBgColor:"#A29161", sWmode:"transparent" }));	
}
