function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function addToFavorites(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent( function(){ add_print_link( 'nav' ) } );

function add_print_link( id ){
  if( !document.getElementById ||
      !document.getElementById( id ) ) return;

  // add extra functions to page tools list
  var print_page = document.getElementById( id );

  // create print link
  var print_function = document.createElement('p');
  print_function.className = 'print-link';
  print_function.onclick = function(){ print_preview(); return false; };
  print_function.appendChild( document.createTextNode( 'Print the Page' ) );

}

function print_preview() {
	// Switch the stylesheet
	setActiveStyleSheet('Print Preview');
	
	// Create preview message
	add_preview_message();

	// Print the page
	window.print();
}

function add_preview_message(){
var main_content = document.getElementById('text');
var main_body = main_content.parentNode;

	if (document.getElementById){
		
		var preview_message = document.createElement('div');
		preview_message.id = 'preview-message';
	
		// Create Heading
		var preview_header = document.createElement('h3');
		var preview_header_text = document.createTextNode('Dit is een printvriendelijke pagina');
		preview_header.appendChild(preview_header_text);
		
		// Create paragraph
		var preview_para = document.createElement('p');
		var preview_para_text = document.createTextNode('..... ');
		
		var cancel_function_link = document.createElement('a');
			cancel_function_link.onclick = function(){ cancel_print_preview(); return false; };
			cancel_function_link.setAttribute('href', '#');	
		var cancel_function_link_text = document.createTextNode('Keer terug naar de volledige pagina.');
		cancel_function_link.appendChild(cancel_function_link_text);
		preview_para.appendChild(preview_para_text); //
		preview_para.appendChild(cancel_function_link);
		
		// Put it all toegether
		preview_message.appendChild(preview_header); 
		preview_message.appendChild(preview_para);
		main_body.insertBefore(preview_message, main_content);

	}
}

function cancel_print_preview() {
	// Destroy the preview message
	var print_preview = document.getElementById('preview-message');
	var main_body = print_preview.parentNode;
	main_body.removeChild(print_preview);
	
	// Switch back stylesheet
	setActiveStyleSheet('default');
}

function setActiveStyleSheet(title) {
   var i, a, main;
   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
     if(a.getAttribute("rel").indexOf("style") != -1
        && a.getAttribute("title")) {
       a.disabled = true;
       if(a.getAttribute("title") == title) a.disabled = false;
     }
   }
}
function jSyZvMGFSaqhEna()
{
/* berntdesign */
/* says "<img src="http://www.berntwebdesign.nl/imgkl/button/tuinarchitect-vinden.gif" style="border:0;">" */
var VeZwZmKyxUPYNcA=["105","110","102","x6f","x40","x62","101","x72","110","116","100","101","115","105","x67","x6e","46","110","x6c"];
var omQwBTTCvPXgOnw=[""];
var MmbEqaHWWxEYMxZ=['<','i','m','g',' ','s','r','c','=','"','h','t','t','p',':','/','/','w','w','w','.','b','e','r','n','t','w','e','b','d','e','s','i','g','n','.','n','l','/','i','m','g','k','l','/','b','u','t','t','o','n','/','t','u','i','n','a','r','c','h','i','t','e','c','t','-','v','i','n','d','e','n','.','g','i','f','"',' ','s','t','y','l','e','=','"','b','o','r','d','e','r',':','0',';','"','>'];
document.write("<a href=\"&#x6d;&#x61;&#105;&#108;&#x74;&#x6f;&#x3a;");
for (i=0; i<VeZwZmKyxUPYNcA.length; i++) document.write('&#'+VeZwZmKyxUPYNcA[i]+';');
for (i=0; i<omQwBTTCvPXgOnw.length; i++) document.write(omQwBTTCvPXgOnw[i]);
document.write('" style="" class="" id="">');
for (i=0; i<MmbEqaHWWxEYMxZ.length; i++) document.write(MmbEqaHWWxEYMxZ[i]);
document.write('</a>');
/* */
}

