
function onLoadMain()
{
	search = location.search.split("=");
	command = search[0]
	param = search[1]
	switch (command)
	{
		case "?goto":
			setInSubFrame(param);
			break;

		case "?projects":
			setInSubFrame("02_prj/02_01.htm");
			break;

		case "?impressum":
			setInSubFrame("04_imp/04_01.htm");
			break;
	}
}

function onLoadSub()
{
	if (top == self)
	{
		myurl = location.pathname;
		top.navigate("/?goto=" + myurl);
	}
}

function onLoadPrj()
{
	if (top == self)
	{
		top.navigate("/?goto=/02_prj/02_01.htm")
	}
}

function setInSubFrame(name)
{
	window.document.frames("oppen1").document.location = name;
}

function showFrames() {
	for (i = 0; i < window.document.frames.length; i++)
	{
		alert("The title of frame #" + i + " is: " + window.document.frames(i).document.title);
		alert("The url is" + window.document.frames(i).url);
	}
	alert(window.document.frames("oppen1").document.location);
}

