<!--
var agt=navigator.userAgent.toLowerCase();
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_nav6up = (is_nav && (is_major >= 5));
var is_ie4up  = (is_ie && (is_major >= 4));
var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie4up  = (is_ie && (is_major >= 4));

var current_open_submenu = null;
var current_open_link = null;

// Object type
function isObject(o) {
  return (typeof(o)=="object");
}
function isArray(o) {
  return (isObject(o) && (o.length) &&(!isString(o)));
}
function isFunction(o) {
  return (typeof(o)=="function");
}
function isString(o) {
  return (typeof(o)=="string");
}

/*
 * function get_browser_height()
 * Deze functie geeft de hoogte van het browservenster terug in pixels
 */

function get_browser_height(){
  
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else {
		if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} else {
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
			}
		}
	}

	return(myHeight);
} // function get_browser_height


/*
 * function stretch_body(){
 * Na het inladen van de pagina wordt de body gestretched naar de hoogte van de browser
 * met een stretch plaatje die een bepaalde hoogte wordt gegeven
 */
function stretch_body(){

	if(document.getElementById('stretcher')){
		document.getElementById('stretcher').style.height = get_browser_height()-197 + "px";
	}

}


function reset_input(element){
	if((element.value=="zoekterm")||(element.value=="username")){
		element.value="";
	}
}

function reset_pass(element){
	element.style.backgroundImage='none';
}

/*
 * function checkImgOver(this_image){
 * Voor de mouseover van een plaatje via een regexpression wordt _1.gif vervangen door _2.gif voor this_image
 */
function checkImgOver(this_image){
	re=new RegExp('_01.','gi');
	this_image.src = this_image.src.replace(re,"_02.");
} // function checkImgOver

/*
 * function checkImgOut(this_image){
 * Voor de mouseout van een plaatje : _1.gif wordt teruggezet voor this_image
 */
function checkImgOut(this_image){
	re=new RegExp('_02.','gi');
	this_image.src = this_image.src.replace(re,"_01.");
} // function checkImgOut


function toonHeading(title){
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
	document.writeln('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
	document.writeln('id="knrb_title_597" width="597" height="40">');
	document.writeln('<param name=movie value="flash/knrb_title_597.swf" />');
	document.writeln('<param name="bgcolor" value="#004994" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="menu" value="false" />');
	document.writeln('<param name="allowscriptaccess" value="samedomain">');
	document.writeln('<param name="flashvars" value="title=' + title + '">'); 	
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) {
    	document.writeln(' <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="597" height="40" name="knrb_title_597" src="flash/knrb_title_597.swf" flashvars="title=' + title + '" bgcolor="#004994" quality="high" swLiveConnect="true" allowScriptAccess="samedomain"></embed>');
	} else {
      document.writeln('<h1>' + title.toLowerCase() + '</h1>');		
 	}
	document.writeln('</object>'); 
	document.writeln('<br />'); 
}

function checkUncheckAll(element_id, checkboxes_array) {

	for (i=0; i < checkboxes_array.length; i++) {
		checkboxes_array[i].checked = element_id.checked;
	} // for
	
} // function checkUncheckAll

function openxmlhttp(){

	var xmlhttp=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 {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
		try {
		 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
		 xmlhttp = false;
		}
	 }
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}

	return xmlhttp;

}

function select_fill_options(options_array, select_element){

	var old_value = select_element.value;
	var selectedIndexValue = 0;

	select_element.options.length = 0;
	option_teller = 0;
	
	for(i=0;i<options_array.length-1;i+=2){

		if(old_value == options_array[i]){ 
			selectedIndexValue = option_teller;
		}
		select_element.options[select_element.options.length] = new Option(unescape(options_array[i+1]),options_array[i]);
		option_teller++;
	} // for
	
	if(selectedIndexValue!=0){
		select_element.selectedIndex = selectedIndexValue;
	}
	
	select_element.options[0].className="empty";
	
} // function select_fill_options

function get_radio_value (radio_array){
	var i;
	for (i = 0; i < radio_array . length; ++ i)
		if (radio_array [i] . checked)
			return radio_array [i] . value;
	return null;
}




function toggle_div(div_id){

		if(document.getElementById("faq_" + div_id)){
			
			if(document.getElementById("faq_" + div_id).style.display=='block'){
				document.getElementById("faq_" + div_id).style.display='none';
//				document.getElementById("faq_a_" + div_id).innerText = "+" + document.getElementById("faq_a_" + div_id).innerText.substr(1);
			} else {
				document.getElementById("faq_" + div_id).style.display='block';
//				document.getElementById("faq_a_" + div_id).innerText = "-" + document.getElementById("faq_a_" + div_id).innerText.substr(1);
			}
			
		} // if

} // function toggle_div

function popup_url(url){

	body_width = 600;
	body_height = 400;

	newwin = window.open(url,"popperdiepop","width=" + body_width + ",height=" + body_height + ",toolbar=0,location=0,directories=0,resizable=1,scrollbars=1,status=0");			
	newwin.moveTo((screen.width/2)-(body_width/2),(screen.height/2)-(body_height/2));
	newwin.focus();

}

function nl2br_js(myString) {
	var regX = /\n/gi ;
	s = new String(myString);
	s = s.replace(regX, "<br /> \n");
	return s;
}

function show_tab(tab_id){
	if(document.getElementById('tabbar')){
		document.getElementById('tabbar').style.backgroundImage = 'url(images/tabs/' + tab_id + '.gif)';
	} // if
} //function show_tab

function show_default_tab(){
	
	if(currentTab != undefined){
		document.getElementById('tabbar').style.backgroundImage = 'url(images/tabs/' + currentTab + '.gif)';
	}
	
}

function submitFormNieuwsbrief(){
	if (document.nieuwsbrief.nieuwsbrief_email.value.indexOf ('@',0) == -1 || document.nieuwsbrief.nieuwsbrief_email.value.indexOf ('.',0) == -1) {
			alert("Vul a.u.b. een geldig e-mailadres in.");			
			document.nieuwsbrief.nieuwsbrief_email.focus();
			return false;
	}
} // function submitForms

function submitFormPollReactie(){
	if (document.forms[0].title.value.length < 3){
			alert("Vul a.u.b. een titel in.");
			document.forms[0].title.focus();
			return false;
	}
	if (document.forms[0].text.value.length < 3){
			alert("Vul a.u.b. een reactie in.");
			document.forms[0].text.focus();
			return false;
	}
	if (document.forms[0].email.value.length <3){
		if (document.forms[0].email.value.indexOf ('@',0) == -1 || document.forms[0].email.value.indexOf ('.',0) == -1) {
				alert("Vul a.u.b. een geldig e-mailadres in.");			
				document.forms[0].email.focus();
				return false;
		}
	}
	if (document.forms[0].name.value.length < 3){
			alert("Vul a.u.b. uw (voor)naam in.");
			document.forms[0].name.focus();
			return false;
	}
	
}

function show_active_link(link_id){
	if(document.getElementById(link_id)){
		document.getElementById(link_id).style.backgroundImage = 'url(images/menu/' + link_id + '.gif)';
		document.getElementById(link_id).style.color = '#ffffff';
		document.getElementById('kleur_rechts').style.backgroundImage = 'url(images/kleur_overloop/' + link_id + '.gif)';
		document.getElementById('kop').style.backgroundImage = 'url(images/koppen/kop_' + link_id + '.gif)';
		document.getElementById('blokje_kleur').style.backgroundImage = 'url(images/menu_blokje/' + link_id + '.gif)';
	} // if

} //function show_tab

function change_form_border_color(color){
	if(document.getElementById('form_border')){
		document.getElementById('form_border').style.color = color;
	} // if

} //function change_form_border_color

function show_active_menu(menu){
	if(document.getElementById(menu)){
		document.getElementById(menu).style.color = '#F49921';
	} // if

} //function change_form_border_color

function show_active_submenu(submenu){
	if(document.getElementById(submenu)){
		document.getElementById(submenu).style.backgroundColor = '#F49921';
		document.getElementById(submenu).style.color = '#ffffff';
	} // if

} //function change_form_border_color

function toggle_form_div(thiselement,div_to_show,trigger_value){

	if((thiselement.value == trigger_value) && (thiselement.checked!=false))
	{
		if(document.getElementById(div_to_show))
		{
			document.getElementById(div_to_show).style.display = 'block';
		}
		else
		{
			alert("fout: " + div_to_show + " niet beschikbaar");
		}

	}
	else
	{
		if(document.getElementById(div_to_show))
		{
			document.getElementById(div_to_show).style.display = 'none';
		} 
		else
		{
			alert("fout: " + div_to_show + " niet beschikbaar");
		}
	}
} // function toggle_form_div

function toggle_form(div_to_show){
	if(document.getElementById(div_to_show)){
		if(document.getElementById(div_to_show).style.display=='block'){
			document.getElementById(div_to_show).style.display = 'none';
		}else{
			document.getElementById(div_to_show).style.display = 'block';
		}
	}
} // function toggle_form

function openPopup(url){
	var winpops = window.open(url,"Florein","width=770,height=480,toolbar,status,scrollbars,menubar,resizable,left=20, top=20");
	//winpops.moveTo(20,20);

}

// edit in place javascript functions
function openWin(url_name){
	myWin = window.open(url_name,"Popup","toolbar=no,status=no,width=300,height=400");
	myWin.moveTo(0,0);
}

function popUpWin(url) {
	window.open(url, 'popupwin', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=800,height=600');
}

function toonActieBlok(title,url){
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
	document.writeln('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
	document.writeln('id="action" width="170" height="170">');
	document.writeln('<param name=movie value="flash/actiebutton.swf" />');
	document.writeln('<param name="bgcolor" value="#ffffff" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="menu" value="false" />');
	document.writeln('<param name="allowscriptaccess" value="samedomain">');
	document.writeln('<param name="flashvars" value="title=' + title + '&url='+url+'">'); 	
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) {
    	document.writeln(' <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="170" height="170" name="action" src="flash/actiebutton.swf" flashvars="title=' + title + '" bgcolor="#ffffff" quality="high" swLiveConnect="true" allowScriptAccess="samedomain"></embed>');
	} else {
      document.writeln('<h1>' + title.toLowerCase() + '</h1>');		
 	}
	document.writeln('</object>'); 
	document.writeln('<br />'); 
}

//-->