<!--
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 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 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 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");
		}
	}
}

// Als er voor een gratis advertentie is gekozen hoeft het foto upload vakje niet getoond te worden
function flipFotoDiv(){

	if (document.getElementById('form_ad_adtype_8').checked) {
		// checked. Do this.
		document.getElementById('fotodiv').style.display = 'none';
	} else {
		// not checked. Do that.
		document.getElementById('fotodiv').style.display = 'block';
	}

}

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 show_active_link(link_id){
	if(document.getElementById(link_id)){
		document.getElementById(link_id).style.color = '#666666';
	} // if
} //function show_active_link

function show_active_li(li_id){
	if(document.getElementById(li_id)){
		document.getElementById(li_id).style.color = '#666666';
		document.getElementById(li_id).style.listStyle = 'url(images/li_style_over.gif)';
	} // if
} //function show_active_li

function show_active_section(section_id){
	/*if(document.getElementById(section_id)){
		document.getElementById(section_id).style.backgroundImage = 'url(images/knoppen/' + section_id + '_over.gif)';
	} // if*/
} //function show_active_section

function show_active_page(page_id){
	if(document.getElementById(page_id)){
		document.getElementById(page_id).style.backgroundColor = '#D9FF08';
		document.getElementById(page_id).style.color = '#666666';
	} // if
} //function show_active_page

function show_active_faq_item(faq_id){
	if(document.getElementById(faq_id)){
		document.getElementById(faq_id).style.color = '#A2C505';
	} // if
} //function show_active_section

function set_header(header){
	if(document.getElementById('mainContainer')){
		if(header != ""){
			document.getElementById('mainContainer').style.backgroundImage = 'url(images/banner/' + header + ')';
		}
	} // if
} //function show_active_section
/*
function menu_image_over(menu_item){
	if(document.getElementById(menu_item)){
		if(document.getElementById(menu_item)){
			document.getElementById(menu_item).style.backgroundImage = 'url(images/knoppen/' + menu_item + '_over.gif)';
		}
	}
}

function menu_image_out(menu_item){
	if(document.getElementById(menu_item)){
		if(document.getElementById(menu_item)){
			document.getElementById(menu_item).style.backgroundImage = 'url(images/knoppen/' + menu_item + '.gif)';
		}
	}
}
*/

//-->