//Specificaties in popup:

 var myWindow = null;
  function closeMyWindow() {
    if (myWindow && !myWindow.closed) {
      myWindow.close();
      myWindow = null;
    }
  }
  //Parameters url, width, height en scrollbars
  function ow(url,w,h,s) {
    var width=w;
    var height=h;
    if (!window.open) return true;
    closeMyWindow();
    var x = (screen.width -width) >>1,
        y = (screen.height-height)>>1;
    myWindow = window.open(url,'popWin',
      'width='    + width +
      ',height='  + height +
      ',left='    + x +
      ',top='     + y +
      ',screenX=' + x +
      ',screenY=' + y +
      ',scrollbars=' + s);
    myWindow.focus();
    return false;
  }

//Functie om menu uit te klappen:
function toggleDiv(whichLayer){

	//Alle lists sluiten
	var x = document.getElementsByTagName('ul');
	for (var i=0;i<x.length;i++){
		if (x[i].className == 'sub')
			x[i].style.display = 'none';
	}

	if (document.getElementById){
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = "block";
	}else if (document.all){
		// this is the way old msie versions work
	var style2 = document.all[whichLayer].style;
	style2.display = "block";
	}else if (document.layers){
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = "block";}
}

//Truc om de list-items in het hoofdmenu die geen link zijn daar toch op te laten lijken:
function fHov(obj) {
 //obj.style.backgroundColor='transparent';
 obj.style.color='red';
}
function fNorm(obj) {
 //obj.style.backgroundColor='#0C479D';
 obj.style.color='#0C479D';
}