/*
#  scripts.js
#
#  v1.0 - 20/sep/2004 - Bob Kersten - Initial version
#
#  (C) Copyright 2004 Medusa, Media Usage Advice B.V.
#  All rights reserved.
*/

function show (id) {
	if (document.getElementById)
		document.getElementById(id).style.visibility = "visible";
	else if (document.all)
		document.all[id].style.visibility ="visible";
	else if (document.layers)
		document.layers[id].visibility = "show";
}

function hide (id) {
	if (document.getElementById)
		document.getElementById(id).style.visibility = "hidden";
	else if (document.all)
		document.all[id].style.visibility ="hidden";
	else if (document.layers)
		document.layers[id].visibility = "hide";
}
function showAndHide (which) {
	// deze functie zet eerst alle div's op hidden en dan een specifieke
	// div op visible.
	for (i = 0; i <= aantal; i++) {
		if (i == which) show ('menu' + i);
		else hide ('menu' + i);
	}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function showTab (id) {
	if(id == 1){
		show ('tab1');
		show ('tab2');
		show ('tab3');
		hide ('tab1_1');
		hide ('tab1_2');
		hide ('tab1_3');
	}
	if(id == 2){
		hide ('tab1');
		show ('tab2');
		show ('tab3');
		show ('tab1_1');
		hide ('tab1_2');
		hide ('tab1_3');
	}
	if(id == 3){
		show ('tab1');
		hide ('tab2');
		show ('tab3');
		hide ('tab1_1');
		show ('tab1_2');
		hide ('tab1_3');
	}
	if(id == 4){
		show ('tab1');
		show ('tab2');
		hide ('tab3');
		hide ('tab1_1');
		hide ('tab1_2');
		show ('tab1_3');
	}	
}

if (document.images) {            
  imgName = new Image();   imgName.src = "folder/imgName.gif"; 
}

// onMouseOver and onMouseOut function
function Swap(imgName,imgSrc) {
  if (document.images) {
    document.images[imgName].src = imgSrc;       
  }
}
