var Url = window.location.hostname;
document.writeln('<BASE HREF="http://' + Url + '">');

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;
		}}
		var aktief = '01';
		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)
	{	document.getElementById(id).src = 'images/menu_' + id + '_01.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)
		{
		document.getElementById(id).src = 'images/menu_' + id + '_00.gif';
		}
	}
	
	function herstelMenu()
	{
		if (aktief != '')
			{
			document.getElementById(aktief).src = 'images/menu_' + aktief + '_01.gif';
			}
	}

