	
	//window.onload = externalLinks;
	
	window.onload=function(){
 		externalLinks();
 		startList();
 	}

	
	function startList()
	{
		//alert('test');
		if (document.all&&document.getElementById) 
		{ 
    	navRoot = document.getElementById("top"); 
     	for (i=0; i<navRoot.childNodes.length; i++) 
     	{ 
       // alert('test');
        node = navRoot.childNodes[i]; 
        if (node.nodeName=="LI") 
        { 
           node.onmouseover=function(){ 
              this.className+=" over"; 
           } 
           node.onmouseout=function() { 
              this.className=this.className.replace(" over", ""); 
           } 
     		} 
     	} 	
		}
	}	
	
	function eid(o){return document.getElementById(o)}
	
	
	
	function toonFlash() {
      document.write('\t\t<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="862" height="219" id="visual" align="middle">\n');
      document.write('\t\t\t<param name="allowScriptAccess" value="sameDomain" /><param name="wmode" value="transparent" />\n');
      document.write('\t\t\t<param name="movie" value="/swf/visual.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="/swf/visual.swf" wmode="transparent" quality="high" bgcolor="#ffffff" width="861" height="219" name="visual" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>\n');
      document.write('\t\t</object>\n');

	}

	function gaNaar(i){
		
		if(eid(i).value !=0){
			document.location.href = eid(i).value
		}	
	}
	
	function setAktie(field) {
		
		switch(field.value) {
		
			case "afmelden":
			
				document.getElementById("aanmeld_info").style.display="none";	
							
				document.forms[0].action.value="afmelden";
				break;
											
			default:
			
				document.getElementById("aanmeld_info").style.display="";			
					
				break;
		}
	
	}

	function getPageFromSelect(pag, get_id, oSelect)
	{
		document.location.href='/' + pag + '?' + get_id +'=' + oSelect.options[oSelect.selectedIndex].value;
	}
	
	function getPageFromSelectForum(pag, get_id, oSelect) {
		document.location.href=oSelect.options[oSelect.selectedIndex].value;
	}
	
	function externalLinks() {
		
		
 		if (!document.getElementsByTagName) return; 
 		
 		addOnclick();
 		
 		var anchors = document.getElementsByTagName("a"); 
 		
 		for (var i=0; i<anchors.length; i++) {
   		
   			var anchor = anchors[i]; 
   		
   			if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") 
     			anchor.target = "_blank"; 
 		}
	}
	
	function addOnclick() {
		
		var header = document.getElementById("header"); 
		var h1 = header.getElementsByTagName("H1");
	 	h1[0].onclick = onClickActie;
	  
	}
	
	function onClickActie() {
		document.location.href="/";
	}
	
