	var popUpWin=0;
	function popUpWindow(URLStr, left, top, width, height)
	{
		if (popUpWin) {
			if (!popUpWin.closed) popUpWin.close();
		}
		popUpWin = open (URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	}

	function popupPic (arg, width, height) 
	{
		var myImgUrl = String (arg.src);
		var posLastDot = myImgUrl.lastIndexOf (".");
		var imgUrlS = myImgUrl.slice (0, posLastDot);
		var imgExt = myImgUrl.slice (posLastDot);
		var imgUrlB = imgUrlS + "_g" + imgExt;
		width = width == undefined ? 300 : width;
		height = height == undefined ? 300 : height;
		popUpWindow("popup.html?" + imgUrlB, 25, 25, width, height);
	}

	function myOver(arg, className)
	{
        var arg = arg.id;
		if (document.getElementById(arg)) {
			document.getElementById(arg).className = className;
		}
	}

	function myOut(arg, className)
	{
        var arg = arg.id;
		if (document.getElementById(arg) && arg != act) {
			document.getElementById(arg).className = className;
		}
	}

	function navClick (url)
	{
		window.location.href = url;
	}
	function handleError() 
	{
			// Testumgebung
		if (-1 == window.location.href.indexOf(".test")) {
			return true;
		}
	}
	window.onerror = handleError;