function activateTabs() {
	if (document.getElementById('navTabs')) {
		entries = document.getElementById('navTabs').getElementsByTagName('a');
		for (i=0; i<entries.length; i++) {
			if (entries[i].parentNode.id != '' ) {
				entries[i].layer = document.getElementById('waytodo_' + entries[i].parentNode.id);
				entries[i].onmouseover = function () {this.parentNode.style.backgroundColor = '#FFE1BD'} //lichtgroen
				entries[i].onmouseout = function () {if (this.parentNode.className != 'highlite') this.parentNode.style.backgroundColor = '#0072bc'} //donkergroen
				entries[i].onclick = function () {
					selectTab(this.parentNode);
					rest = document.getElementsByTagName('div');
					for (var a=0; a < rest.length; a++) {
						if (rest[a].className == 'bak' ) {
							rest[a].style.display = 'none';
						}
					}
					this.layer.style.display = "block"; 
				};
			}
		}
	}
}

function selectTab(obj) {
	classToSet = 'tabLeft';
	entries = document.getElementById('navTabs').getElementsByTagName('li');
	for (i=1; i<entries.length; i++) {
		entries[i].className = classToSet;
		entries[i].style.backgroundColor = '#0072bc';
		if (entries[i] == obj) classToSet = 'tabRight';
	}
	obj.className = 'highlite';
	obj.style.backgroundColor = '#FFE1BD';
}

function selectTabIndex(tabName) {
	var j;
	classToSet = 'tabLeft';
	entries = document.getElementById('navTabs').getElementsByTagName('li');
	for (i=1; i<entries.length; i++) {
		entries[i].className = classToSet;
		entries[i].style.backgroundColor = '#FFE1BD'; // selected kleur
		if (entries[i].id == tabName) {
			classToSet = 'tabRight';
			j = i;
		}
	}
	entries[j].className = 'highlite';
	entries[j].style.backgroundColor = '#FFE1BD';
}



/*******
** vp ** 15.03.2005 v1.2
******/

	function init_layerSwap (ID) {
		if (document.getElementById(ID)) {
			var entries = document.getElementById(ID).getElementsByTagName('a');
			for (var i=0; i < entries.length; i++) {
				if (entries[i].id != '' ) {
					entries[i].layer = document.getElementById('fish_' + entries[i].id);
					entries[i].onmouseover = function () {
						rest = document.getElementsByTagName('div');
						for (var a=0; a < rest.length; a++) {
							if (rest[a].className == 'v' ) {
								rest[a].style.display = 'none';
							}
						}
						this.layer.style.display = "block"; 
					};
					entries[i].onmouseout = function () {
						this.layer.style.display = "none"; 
					};
				}
			}	
		}
	}
	

/*******
** vp ** 1.02 15 Augustus 2005	
*******/


var preloaded = new Array();
function setMOhandler() {
	var aEls = ['img','input']
	for(var j=0; j < aEls.length; j++){
		var entries = document.getElementsByTagName(aEls[j]);
		for (var i=0; i < entries.length; i++) {
			if (entries[i].className == 'MO') {
				var onImageSrc = entries[i].src.replace('_n.', '_o.');
				preloaded[preloaded.length] = new Image();
				preloaded[preloaded.length-1].src = onImageSrc;
				entries[i].onmouseover = function () {this.src = this.src.replace('_n.', '_o.')}
				entries[i].onmouseout = function () {this.src = this.src.replace('_o.', '_n.')}
			}
		}
	}
}

