    var agt=navigator.userAgent.toLowerCase();
    var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_win    = ((agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
    var is_mac    = (agt.indexOf("mac")!=-1);
    var is_opera  = (agt.indexOf("opera") != -1);
    var is_konq   = (agt.indexOf("konquer") != -1);

//SCRIPT OM BROWSERAFHANKELIJK CSS TE BEPALEN
    if (is_ie) {
      var oHEAD=document.getElementsByTagName('HEAD').item(0);
      var nLink=document.createElement('LINK');
      nLink.rel="stylesheet";
      nLink.type="text/css";

      if (is_win) {
       var nCss2Style=document.getElementsByTagName('STYLE').item(1);
       nLink.href="/layout/layout_ie_pc.css";
       oHEAD.replaceChild(nLink,nCss2Style);
      } else if (is_mac) {
       nLink.href="/layout/layout_ie_mac.css";
       document.styleSheets[1].disabled = true;
       document.write('<link rel="'+nLink.rel+'" type="'+nLink.type+'" href="'+nLink.href+'" />');
       window.onresize = setHeight;
      }
    }

//SCRIPT VOOR HET OPENEN VAN NIEUW VENSTER MET EEN NIEUWE HTMLPAGINA
    function wopen(obj, w, h)
    {
      if(!w) { w = 800; }
      if(!h) { h = 600; }
      winoptions="height="+h+",width="+w+",,"+
                 ",menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no";
      win=window.open("","info",winoptions);
      win.location.href=obj.href;
      if (parseInt(navigator.appVersion) >= 4)
                    { win.window.focus(); }
      return false;
    }

//SCRIPT  OM BUTTONS IN DIVERSE NAVIGATIEITEMS TE ACTIVEREN		
function setNav()
   {
      if(document.getElementsByTagName)
      {
		 navsrc = document.getElementsByTagName("body");

		 if( navsrc[0] && document.getElementById( "n" + navsrc[0].getAttribute('id') )  )
		      document.getElementById("n" + navsrc[0].getAttribute('id') ).className = 'activated';
                 
		
		  if (document.getElementById("subnav"))
                  {
			subnavsrc = document.getElementsByTagName("h1");
			if( subnavsrc[0] && document.getElementById("sub-" + subnavsrc[0].getAttribute('id') ) )
			   document.getElementById("sub-" + subnavsrc[0].getAttribute('id')).className = 'activated';
		  }

		  if (document.getElementById("subnav")) 
		  {			
			subsubnavsrc = document.getElementsByTagName("p");
			if( subsubnavsrc[0] && document.getElementById("subsub-" + subsubnavsrc[0].getAttribute('id') ) )
			    document.getElementById("subsub-" + subsubnavsrc[0].getAttribute('id')).className = 'activated';
		  }
      }		
    }
								
 
    function doInit () 
	{
      setNav();

    }
    
    window.onload = doInit;
