addEvent(window,'load',prepareMenu);
addEvent(window,'load',prepareMenu2);

/* hovereffect navigatie*/
function prepareMenu() {
	
	// check of javascript voldoende wordt ondersteund
	if(!document.getElementById) return;
	
	// check of hovereffect mogelijk is
	if (!document.getElementById('filmnavigatie')) {
		return;
	}
	
	// haal linkjes op uit de DOM
	var navlinks = document.getElementById('filmnavigatie').getElementsByTagName('a');
	
	// maak hoverfunctie
	for(var i=0;i<navlinks.length;i++) {
	
		// mouse-over
		navlinks[i].onmouseover = function() {
			colorFade(this.id,'background','f2f2f2','C4E6F5');
		}	
		
		// mouse-out
		navlinks[i].onmouseout = function() {
			colorFade(this.id,'background','C4E6F5','f2f2f2',25,50);	
		}	
	}
}

/* hovereffect navigatie*/
function prepareMenu2() {
	
	// check of javascript voldoende wordt ondersteund
	if(!document.getElementById) return;
	
	// check of hovereffect mogelijk is
	if (!document.getElementById('tabnavigatie')) {
		return;
	}
	
	// haal linkjes op uit de DOM
	var tablinks = document.getElementById('tabnavigatie').getElementsByTagName('a');
	
	// maak hoverfunctie
	for(var i=0;i<tablinks.length;i++) {
	
		// mouse-over
		tablinks[i].onmouseover = function() {
			colorFade(this.id,'color','000000','139CD9');	
		}	
		
		// mouse-out
		tablinks[i].onmouseout = function() {
			colorFade(this.id,'color','139CD9','000000',25,50);	
		}	
	}
}
