//Frame Breakout
if (top.location != location) 
{
	top.location.href = document.location.href ;
}
function navigation()
{
	// Variablen setzen
	content=0;
	opensubnav=0;
	// Seitennummer lesen
	aktuell=document.location.href;
	max=aktuell.length;
	check=aktuell.substr(max-9,3);
	if(!isNaN(check))
	{
		content=1;
	}
	check=check+".shtml";
	// Ausgabeschleife starten
	for (i=0;i<=ebene.length-1;i++)
	{
		// Start - Auslesen der Navi-Infos
		lastpos=0;
		tmp=ebene[i];
		nextpos=tmp.indexOf("*");
		bezeichner=tmp.slice(0,nextpos);
		lastpos=nextpos+1;
		nextpos=tmp.indexOf("*",lastpos);
		vlink=tmp.slice(lastpos,nextpos);
		vlink=vlink+".shtml";
		level=tmp.slice(nextpos+1,tmp.length);
		// Bei gleicher Seitennummer Subnavi ermöglichen
		if (vlink==check && level==1)
		{
			opensubnav=1;
		}
		else
		{
			if (level==1)
			{
				opensubnav=0;
			}
			else
			{
				// Ab hier ein Blick in die Zukunft
				index=0;
				x=i;
				do
				{
					xlastpos=0;
					xtmp=ebene[x];
					xnextpos=xtmp.indexOf("*");
					xlastpos=xnextpos+1;
					xnextpos=xtmp.indexOf("*",xlastpos);
					xlink=xtmp.slice(xlastpos,xnextpos);
					xlink=xlink+".shtml";
					xlevel=xtmp.slice(xnextpos+1,xtmp.length);
					if (xlevel==1)
					{
						index=1;
					}
					else if (xlink==check && (xlevel==2 || xlevel==3))
					{
						opensubnav=1;
						index=1;
					}
					x=x+1;
				}
				while (index!=1 && x<=ebene.length-1)
			}
		}
		// Start - Ausgabe der Navigationstabelle
		if (level==1)
		{
			if (content==1)
			{
				document.write("<tr>");
				document.write("<td><img src='../img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("<td colspan='3' class='fett'><a href="+vlink+">"+bezeichner+"</a></td>");
				document.write("<td><img src='../img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("</tr>");
			}
			else
			{
				document.write("<tr>");
				document.write("<td><img src='img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("<td colspan='3' class='fett'><a href=\pages/"+vlink+">"+bezeichner+"</a></td>");
				document.write("<td><img src='img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("</tr>");
			}
		}
		if (level==2 && opensubnav==1)
		{
			if (content==1)
			{
				document.write("<tr>");
				document.write("<td><img src='../img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("<td><img src='../img/img_dot.gif' width='2' height='2' border='0' vspace='2' hspace='4'></td>");
				document.write("<td colspan='2'><a href="+vlink+">"+bezeichner+"</a></td>");
				document.write("<td><img src='../img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("</tr>");
			}
			else
			{
				document.write("<tr>");
				document.write("<td><img src='img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("<td><img src='img/img_dot.gif' width='2' height='2' border='0' vspace='2' hspace='4'></td>");
				document.write("<td colspan='2'><a href=\pages/"+vlink+">"+bezeichner+"</a></td>");
				document.write("<td><img src='img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("</tr>");
			}
		}
		else if (level==3 && opensubnav==1)
		{
			if (content==1)
			{
				document.write("<tr>");
				document.write("<td><img src='../img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("<td><img src='../img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("<td><img src='../img/img_dot.gif' width='2' height='2' border='0' vspace='2' hspace='4'></td>");
				document.write("<td><a href="+vlink+">"+bezeichner+"</a></td>");
				document.write("<td><img src='../img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("</tr>");
			}
			else
			{
				document.write("<tr>");
				document.write("<td><img src='img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("<td><img src='img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("<td><img src='img/img_dot.gif' width='2' height='2' border='0' vspace='2' hspace='4'></td>");
				document.write("<td><a href=\pages/"+vlink+">"+bezeichner+"</a></td>");
				document.write("<td><img src='img/img_pix.gif' width='1' height='1' border='0'></td>");
				document.write("</tr>");
			}
		}
		// Ende - Ausgabe der Navigationstabelle
	}
	document.write("<tr>");
	document.write("<td><img src='../img/img_pix.gif' width='1' height='1' border='0'></td>");
	document.write("<td colspan='3' class='fett'><a href='http://www.kendo-mainz.de/mitglieder'>Mitglieder</a></td>");
	document.write("<td><img src='../img/img_pix.gif' width='1' height='1' border='0'></td>");
	document.write("</tr>");
}
var remote = null;
function PopUp(wohin,w,h) 
{
	remote = eval("window.open(wohin,\'TheRemote\',\'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=no,width="+w+",height="+h+"\')")
	if (navigator.appVersion.indexOf("(X11") != -1) window.open(wohin,'TheRemote')
	if ((remote != null) && (remote.opener == null)) {remote.opener = self;}
	remote.opener.name = "opener"
}






















