$(document).ready
(
	function()
	{
		$('div#inhoud').addClass('effect');
		$('div.projectfotos').addClass('effect');
		$('div#mededelingsbalk').addClass('effect');
		$('div#mededelingsbalk').delay(1600).show('slide', '', 'slow');
		$('div#inhoud').delay(200).fadeIn(1200);
		HighlightHuidigeURL();
	}
);

function HighlightHuidigeURL()
{
	var a = document.getElementsByTagName("A");
	for(var i=0;i<a.length;i++)
	{
		if(a[i].href.split("#")[0] == window.location.href.split("#")[0])
		{
			(a[i]).style.fontWeight = 'bold';
		}
	}
}

function nieuweimg(img)
{
	$('img#hoofdfoto').stop(true, true);
	if ($('img#hoofdfoto').attr('src') != ('foto.php?foto=' + img))
	{
		$('img#hoofdfoto').fadeOut(0).attr('src', 'foto.php?foto=' + img).delay(20).fadeIn(300);
	}
}

