var arrSiteElements = Array;
function popup(nummer)
{
	breedte = 750;
	links = screen.width - breedte
	links = links / 2;
	hoogte = 500;
	boven = screen.height - hoogte;
	boven = boven / 2;
	window.open("onderhoud/popup/show_txt.php?src=" + nummer,"", ", , location=no, title=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=" + breedte + ", height=" + hoogte + ", top=" + boven + ", left=" + links);
}
function mainmenu()
{
	var browser=navigator.appName;
	if(browser.indexOf("Microsoft") >= 0)
	{
		document.getElementById("mainmenu").style.width='300px';
		//document.getElementById("mainmenu").style.height='300px';
	}else{
		document.getElementById("mainmenu").style.width='149px';
		//document.getElementById("mainmenu").style.height='289px';
	}
}
function mainmenuindex()
{
	var browser=navigator.appName;
	if(browser.indexOf("Microsoft") >= 0)
	{
		// IE
		document.getElementById("mainmenu").style.width='146px';
		document.getElementById("menuheight").style.height='1px';
	}else{
		
		document.getElementById("mainmenu").style.width='300px';
		document.getElementById("menuheight").style.height='27px';
	}
}
function changesitemap(arr)
{
	var total = arr.length;
	var splitter = Array;
	var html = "";
	for(i=0;i<arr.length;i++)
	{
		splitter = arr[i].split("@");
		if(i != total - 1)
		{
			html += "<span style=\"text-decoration: underline; cursor: pointer\" onClick='location.href=\"" + splitter[1] + "\"'>" + splitter[0] + "</span>" + " > ";
		}else{
			html += "<B>" + splitter[0] + "</B>";
		}
	}
	html = "<B>U bevindt zich hier: </B>" + html;
	document.getElementById('sitemap').innerHTML = html;
}