		if (document.images){
  			var pic1= new Image(); 
  			pic1.src="images/menu/green.jpg"; 
  			
  			var pic2= new Image(); 
  			pic2.src="images/menu/blue.jpg"; 
  			
  			var pic3= new Image(); 
  			pic3.src="images/menu/orange.jpg"; 
		}

		
		function createHTTPHandler(){
    		var httphandler = false;
		    /*@cc_on @*/
		    /*@if (@_jscript_version >= 5)
		    // JScript gives us Conditional compilation, we can cope with old IE versions.
		    // and security blocked creation of the objects.
		    try {
		      httphandler = new ActiveXObject("Msxml2.XMLHTTP");
		    } catch (e) {
		      try {
		       httphandler = new ActiveXObject("Microsoft.XMLHTTP");
		      } catch (E) {
		          httphandler = false;
		      }
   		 	}
   	 		@end @*/
    		if (!httphandler && typeof XMLHttpRequest!='undefined') {
      	 	 	httphandler = new XMLHttpRequest();
    		}
    		return httphandler;
		}
			
		function on_mouse_over(id){
			document.images[id].src='images/menu/black.jpg';
		}	
			
		function on_mouse_out(id){
		 	if(document.images[id].title != 'huidige pagina'){
		 		var col = ['green','blue','orange'];
				document.images[id].src='images/menu/'+col[id%3]+'.jpg';
			}
		}	
		
		function swap_menu(id,name){
		 	for(var i = 0; i < document.getElementById('par').getElementsByTagName('a').length; i++){
		 		var col = ['green','blue','orange'];
		 	 	if(id != i){
					document.images[i].title = document.images[i].alt;
					document.images[i].src='images/menu/'+col[i%3]+'.jpg';		
				}
			}
			document.images[id].title = 'huidige pagina';
			document.images[id].src='images/menu/black.jpg';
			var XMLHTTPObject = createHTTPHandler();
			XMLHTTPObject.onreadystatechange = function(){
				if(XMLHTTPObject.readyState == 4){
					document.getElementById('content').innerHTML = XMLHTTPObject.responseText;
					document.body.style.cursor = 'default';
				}
			}
			XMLHTTPObject.open('GET', name+'.htm?time='+new Date().getTime(), true);	
   			XMLHTTPObject.setRequestHeader("Cache-Control", "no-cache");
			XMLHTTPObject.send(null);
			document.body.style.cursor = 'progress';
		}
		
function afbGroot(src){
	var pop = window.open('about:blank','_blank','width=600,height=600,scrollbars=yes');
	with(pop){
	 	document.innerHTML = '';
		document.writeln('<html>');
		document.writeln('	<head>');
		document.writeln('		<title>Bezig met laden...</title>');
		document.writeln('		<style type="text/css">');
		document.writeln('			body{');
		document.writeln('				margin: 0;');
		document.writeln('				background-color: white;');
		document.writeln('				overflow: auto;');
		document.writeln('			}');
		document.writeln('		</style>');
		document.writeln('		<script type="text/javascript">');
		document.writeln('			function venster(ob,br,ho){');
		document.writeln('				window.resizeTo(br+50,ho+200);');
		document.writeln('				ob.style.position = \'absolute\';');
		document.writeln('				ob.style.marginLeft = \'-\'+Math.round(br/2)+\'px\';');
		document.writeln('				ob.style.top = \'40px\';');
		document.writeln('				ob.style.marginBottom = \'40px\';');
		document.writeln('				ob.style.left = \'50%\';');
		document.writeln('				document.title = \'Afbeelding op oorspronkelijk grootte\'');
		document.writeln('				document.status = \'Klaar met laden\'');
		document.writeln('			}');
		document.writeln('		</script>');
		document.writeln('	</head>');
		document.writeln('	<body style="text-align:center">');
		document.writeln('		<img src="'+src+'" alt="Afbeelding" onload="venster(this,this.width,this.height)" />');
		document.writeln('	</body>');
		document.writeln('</html>');
		focus();
	}
}

function show_hide(num){
 	var hui = document.getElementsByTagName('p')[num].style.display;
	for(i = 2; i < document.getElementsByTagName('p').length; i = i + 1){
		 document.getElementsByTagName('p')[i].style.display = 'none';
	}
	if(hui=='none'){
		document.getElementsByTagName('p')[num].style.display='block';
	}
	else{
		document.getElementsByTagName('p')[num].style.display='none';
	}
}

