function itemClassName(className)	{
	eerste_class = className.split(" ")[0];
	
	if(className.match(/ actief/))	{
		return eerste_class +" "+ eerste_class +"_actief actief";		
	}
	else	{
		return eerste_class;	
	}
}

function menu()	{
	$("#menu>li").hover(function()	{
		this.className = itemClassName(this.className) +" "+  itemClassName(this.className) +"_hover hover";
		
		if($(this).next().hasClass("actief"))	{
			this.className += " hover_voor_actief";	
		}
	},
	function()	{
		this.className = itemClassName(this.className);
	});
}

$(function()
{
	// tabel hover 
	$("#overzicht tr:not('.bovenkant')").hover(
		function()	{ $(this).addClass("hover"); },
		function()	{ $(this).removeClass("hover"); }
	);	
/*
	$("#overzicht table td").click(function()	{
		window.location = ( $(this).attr("href") ); 
	});
*/	
});

function maak_sifr()
{
	// sifr doen
	if(typeof sIFR == "function"){
		sIFR.replaceElement(named({
		sSelector:"h1",
		sFlashSrc:submap + "/fla/calibri.swf",
		sColor:"#586063",
		sBgColor:"#FFFFFF",
		nPaddingBottom:0,sWmode:"transparent"}));
		
		sIFR.replaceElement(named({
		sSelector:"h2",
		sFlashSrc:submap + "/fla/calibri.swf",
		sColor:"#ffffff",
		sBgColor:"#ffffff",
		nPaddingBottom:0,sWmode:"transparent"}));		
	};	
}
