<!--
function checkToClear(obj, instruction) {
	if( obj.value ==  instruction ) {
		obj.value = "";
	}
}
function checkToRestore(obj, instruction) {
	if( obj.value ==  "" ) {
		obj.value = instruction;
	}
}

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(){

	if(document.getElementById('stretcher')){
		var min_hoogte = 108;
		var hoogte = get_browser_height()-108;
		document.getElementById('stretcher').style.height = hoogte + "px";
		
	}

}


/*
 * 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 nl2br_js(myString) {
	var regX = /\n/gi ;
	s = new String(myString);
	s = s.replace(regX, "<br /> \n");
	return s;
}

function set_active_menu(link_id){
	if(document.getElementById(link_id)){
		document.getElementById(link_id).style.backgroundImage = 'url(images/btn_active.jpg)';
	} // if

} //function show_tab

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

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

function popup_full_picture(image_url,image_title){
	
	var popup_url = 'content/popup_slideshow_picture.php?image_url=' + image_url + '&image_title=' + image_title;
	myWin = open(popup_url,"popup","width=751,height=560,toolbar=0,location=0,directories=0,resizable=0,scrollbars=0,status=0,screenX=0,screenY=0");
	
}

function toggle_this(element){
	if(element.childNodes[1].style.display == 'block'){
		element.childNodes[1].style.display = 'none';
	}else{
		var spans = document.getElementsByTagName("span");
		//alert(spans.length);
		for(var n = 0; n < spans.length; n++){
			spans[n].style.display = 'none';	
		}
		element.childNodes[1].style.display = 'block';
	}
}

function toggle_markt(ul){
	if(document.getElementById(ul)){
		if(document.getElementById(ul).style.display == "block"){
			document.getElementById(ul).style.display = "none";
		}else{
			var uls = document.getElementsByTagName("ul");
			//alert(spans.length);
			for(var n = 2; n < uls.length; n++){
				uls[n].style.display = 'none';
			}
			document.getElementById(ul).style.display = "block";
		}
	}
}

//-->
