// altijd onderaan de pagina
var ie5 = (document.getElementById && document.all);
var ns6 = (document.getElementById && !document.all);

function stayDown()
{
    if(ie5)
	{
	pageYOffset = document.body.scrollTop;
	innerHeight = document.body.offsetHeight;
	}
	if(ie5 || ns6)
	{
       	reactieBalkLaag = document.getElementById('reactieBalk');
		mainLaag = document.getElementById('main');
				
		reactieBalkLaag.style.top = (innerHeight - reactieBalkLaag.offsetHeight) + pageYOffset-1 ;
		mainLaag.style.height = innerHeight-111-4  + pageYOffset;;
		
		setTimeout ('stayDown()', 10);
	}
}

/////////////////////////////////////////


var aktief = '1';
		

function getString(the_info)
{
		var newString = unescape(location.search.substring(1));
		var separated_values = newString.split('&');
	
		// loop through the list of name:values and load
		// up the associate array	
		var property_value = '';
	
		for (var loop = 0; loop < separated_values.length; loop++)
			{
			property_value = separated_values[loop];
			var broken_info = property_value.split('=');
			var the_property = broken_info[0];
			var the_value = broken_info[1];
			the_info[the_property] = the_value;
			}
}

if (location.search.length > 0)
{
	var string_information = new Array();
	getString(string_information);
	
	aktief = string_information['aktief'];

}



// onMouseOver functie voor hoofdmenu
function turn_on(id)
	{
	if (id != '')
		{
		document.getElementById(id).src = 'images/' + id + '_00.gif';
		}
	}

// onMouseOut functie voor hoofdmenu met controle op huidige hoofdstuk.
// Het plaatje van het aktieve hoofdstuk moet namelijk niet terug naar de beginwaarde.
function turn_off(id)
	{
	 if ((id != '') && (aktief != id))
		{
		document.getElementById(id).src = 'images/' + id + '_01.gif';
		}
	}

function herstelMenu()
{		
	document.getElementById(aktief).src = 'images/' + aktief + '_00.gif';
}

function maakLeeg(dezeBox)
{
	if(dezeBox.value == 'verplicht veld')
	{
	dezeBox.value = '';
	}
}