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));

function in_array(stringToSearch, arrayToSearch) {
	for (s = 0; s < arrayToSearch.length; s++) {
		thisEntry = arrayToSearch[s].toString();
		if (thisEntry == stringToSearch) {
			return true;
		}
	}
	return false;
} // function in_array

function reset_value(this_element){

	aZoektermen = new Array('Type zoekterm','username');

	if(in_array(this_element.value,aZoektermen)){
		this_element.value="";
	}

} // function reset_value(this_element)

/*
sfHover = function() {
  var sfEls = document.getElementById("nav").getElementsByTagName("LI");
  for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
      this.className+=" sfhover";
    }
    sfEls[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
  }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
*/

/***************************************
Flash heading om boven teksten te plaatsen

title: de tekst die op de heading staat
width: de breedte van de heading
	   mogelijkheden: 410 of 550
***************************************/
function toonHeading(title,width){
	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="title_' + width + '" width="' + width + '" height="24">');
	document.writeln('<param name=movie value="flash/title_' + width + '.swf" />');
	document.writeln('<param name="bgcolor" value="#90b4ba" />');
	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="' + width + '" height="24" name="title_' + width + '" src="flash/title_' + width + '.swf" flashvars="title=' + title + '" bgcolor="#90b4ba" quality="high" swLiveConnect="true" allowScriptAccess="samedomain"></embed>');
	} else {
        document.writeln('<h1>' + title.toLowerCase() + '</h1>');
  	}
	document.writeln('</object>');
	document.writeln('<br />');
}

/******************************************
een div verbergen of laten zien als de functie wordt aangeroepen
geef het id van de div mee aan de functie
******************************************/
function swap_div(div){
	if(document.getElementById(div).style.display=='block'){
		document.getElementById(div).style.display='none';
	} else {
		document.getElementById(div).style.display='block';
	}
}