


function openlink(url)
{
	location.href=url;
}

function activate(objekt)
{
	objekt.className="linko";
}
function deactivate(objekt)
{
	objekt.className="linkn";
}

function openlinksub(nummer)
{
	location.href=links[nummer];
}

function menu1(felder,ziele)
{

	var anzahlelem;
	var index;
	var position;
	var tdstr;
	
	anzahlelem=felder.length;
	
	document.write("<table width='170' border='0' cellspacing='0' cellpadding='0' class='links' >");
	index=0;
	 for(index=0;index<anzahlelem;index++)
	  {	
		tdstr="<td class='linkn' onMouseOver='activate(this);menu_on(0,0,1,this);' onMouseOut='deactivate(this);menu_off(1);' ";
		tdstr=tdstr + "onClick='openlinksub("  + index+ ");'>";
		document.write("<tr>");
		document.write(tdstr);

			document.write("<a href='");
		 	document.write(ziele[index]);
			document.write("'>");
			document.write(felder[index]);
			document.write("</a>");
		document.write("</td>");	
		document.write("</tr>");
	  };
	  
	document.write("</table>");

}

function menu_on(x,y,divname,objekt)
{
	var inner;
	inner=0;
	if(divname==1)
	 {
	 	divname="menuflotte"
		inner=1;
	 }

	document.getElementById(divname).style.visibility="visible";
	document.getElementById(divname).style.top=objekt.parentNode.parentNode.offsetTop - (3*objekt.offsetHeight);
	if (inner==1)
	 {
		document.getElementById(divname).style.left=objekt.offsetLeft + objekt.offsetWidth+2;
	 }
	else
	 {
		document.getElementById(divname).style.left=objekt.offsetLeft + objekt.offsetWidth;
	 } 	
}

function menu_off(divname)
{
	if(divname==1)
	 {
	 	divname="menuflotte"
	 }
	document.getElementById(divname).style.visibility="hidden";
}
