<!--
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 current_open_submenu = null;
var current_open_link = null;
	
window.onload = function(e) {
	var cookie = readCookie("style");
	var title = cookie ? cookie : getPreferredStyleSheet();
	setActiveStyleSheet(title);
}

window.onunload = function(e) {
	var title = getActiveStyleSheet();
	createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);

// 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 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('_1.','gi');
	this_image.src = this_image.src.replace(re,"_2.");
} // 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('_2.','gi');
	this_image.src = this_image.src.replace(re,"_1.");
} // function checkImgOut

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_default_tab(){
	
	if(currentTab != undefined){
		document.getElementById('tabbar').style.backgroundImage = 'url(images/tabs/' + currentTab + '.gif)';
	}	
}

function setActiveLink(link_id){
	if(document.getElementById(link_id)){
		document.getElementById(link_id).style.color = '#E97335';
	}
}

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 getActiveStyleSheet() {
	var i, a;
	for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
		if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
	}
	return null;
}

function getPreferredStyleSheet() {
	var i, a;
	for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
		if(a.getAttribute("rel").indexOf("style") != -1
			 && a.getAttribute("rel").indexOf("alt") == -1
			 && a.getAttribute("title")
			 ) return a.getAttribute("title");
	}
	return null;
}

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function reset_search_box(element_id){
	if(element_id.value=="type uw zoekterm"){
		element_id.value=""
	}
}

//-->
