//redirects page to surrounding frameset if viewed without basic frameset 

if (top.frames['haupt'])
{
	if(!top.frames['haupt'].frames['topnav'] && location.protocol != "file:")
	{
		location.href= location.protocol + "//" + location.hostname + "/index_goto.php3?goto=" + location.pathname.replace(/\/[-a-zA-Z0-9_.]*$/, '\/');	
	}
}
else
{
	if(!top.frames['topnav'] && location.protocol != "file:")
	{
		location.href= location.protocol + "//" + location.hostname + "/index_goto.php3?goto=" + location.pathname.replace(/\/[-a-zA-Z0-9_.]*$/, '\/');	
	}

}





//sets navigation-highlights, if user navigates to the page via back-button, sitemap etc. 

function init()
{
	if (top.frames['haupt'])
	{
		if (top.frames['haupt'].frames['topnav'] && top.frames['haupt'].frames['topnav'].setTopHigh)
		{
			top.frames['haupt'].frames['topnav'].setTopHigh(topItemNr, hasSubItem);
		}
		if (top.frames['haupt'].frames['topnav'] && top.frames['haupt'].frames['topnav'].setSubHigh && hasSubItem && subItemNr)
		{
			top.frames['haupt'].frames['topnav'].setSubHigh(subItemNr);
		}
	}
	else
	{
		if (top.frames['topnav'] && top.frames['topnav'].setTopHigh)
		{
			top.frames['topnav'].setTopHigh(topItemNr, hasSubItem);
		}
		if (top.frames['topnav'] && top.frames['topnav'].setSubHigh && hasSubItem && subItemNr)
		{
			top.frames['topnav'].setSubHigh(subItemNr);
		}
	}

}