if (parent.Top.document.images) 
{
	var home1 = new Image(); home1.src = "../images/home1.jpg"
	var home2 = new Image(); home2.src = "../images/home2.jpg"
	var profile1 = new Image(); profile1.src = "../images/profile1.jpg"
	var profile2 = new Image(); profile2.src = "../images/profile2.jpg"
	var projects1 = new Image(); projects1.src = "../images/projects1.jpg"
	var projects2 = new Image(); projects2.src = "../images/projects2.jpg"
	var map1 = new Image(); map1.src = "../images/map1.jpg"
	var map2 = new Image(); map2.src = "../images/map2.jpg"
	var links1 = new Image(); links1.src = "../images/links1.jpg"
	var links2 = new Image(); links2.src = "../images/links2.jpg"
	var contact1 = new Image(); contact1.src = "../images/contact1.jpg"
	var contact2 = new Image(); contact2.src = "../images/contact2.jpg"
	var curMenu;
	curMenu = GetCurMenu();
}

/* Alle Menüs ausschalten */
function offAllMenu() 
{
	offMenu('home'); 
	offMenu('profile');
	offMenu('projects');
	offMenu('map');
	offMenu('links');
	offMenu('contact');
}
	
function offMenu(imgName) 
{ 
	if (curMenu != imgName && parent.Top.document.images)
		parent.Top.document[imgName].src = eval(imgName + '1.src'); 
}
	
function onMenu(imgName) 
{
	if (parent.Top.document.images)
		parent.Top.document[imgName].src = eval(imgName + '2.src');
}

/* Zeigt die angegebenen Seiten für den angegebenen Hauptmenüpunkt */
function ShowMenuFrames(l, h, menu)
{
	if (curMenu)
	{
		curMenu = "";
		offAllMenu();
	}
	curMenu = menu;
	parent.Hauptframe.location.href = '../' + menu + '/' + h + '.htm';
	onMenu(menu);
	parent.Left.location.href = '../' + menu + '/' + l + '.htm';
}

/* Bestimmt den aktuellen Hauptmenüpunkt der angezeigten Seite im Hauptframe */
function GetCurMenu()
{
	var p = parent.Hauptframe.location.href;
	var i = p.lastIndexOf('/');
	if (i > 0)
	{
		var m = p.substring(0, i);
		var j = m.lastIndexOf('/');
		if (j >= 0)
			return m.substring(j + 1);
	}
	return "";
}

/* Hinweis-Fenster ohne jegliche Funktionalität anzeigen */
function HintWindow(s, w, h)
{
	window.open(s, "", "width=" + w + ",      height=" + h + ",resizable=no,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no,location=no")
}

/* Impressum anzeigen */
function ShowImpressum()
{
	HintWindow('../impress/impress.htm', 600, 400)
}


