// Menü Top
//----------------------------


// Grundparameter
//-------------------------------

//var serverURL = "http://linuxserver/Doris.Brenner/";
var serverURL = "http://www.zentral.com/Doris.Brenner/";

var strColor = new Array();
strColor[0] = "#30699b"; // dunkles Blau
strColor[1] = "#e1e4e8"; // 
strColor[2] = "#3399CC"; // helles Blau
strColor[3] = "#FFFFFF"; // Weiß
var top=0;

var menuetop_abstand_oben=0;
var menuetop_breite=751;



//Breite und Höhe des Fensters
if(navigator.appName=="Netscape"){
	var w=innerWidth;
	var h=innerHeight;
} else {
	var w=document.body.offsetWidth;
	var h=document.body.offsetHeight;
}

var mw=w/2;
var mh=h/2;

var menuetop_abstand_left=0;
if (w > (menuetop_breite+80)) {
	// unbedingt runden ...
	menuetop_abstand_left = (mw-(menuetop_breite/2));
}

//alert( menuetop_abstand_left + "\n" + mw);

var menuetop_i = new Array();
var menuetop_l = new Array();

//Menueliste
menuetop_i[0] = "Startseite";
menuetop_i[1] = "Profil";
menuetop_i[2] = "Dienstleistungen";
menuetop_i[3] = "Publikationen";
menuetop_i[4] = "Veranstaltungen";
menuetop_i[5] = "Kontakt";

var menuetop_spaltenbreite = (menuetop_breite - (menuetop_i.length + 1))/menuetop_i.length;

menuetop_l[0] = serverURL+"index.html";
menuetop_l[1] = serverURL+"profil.htm";
menuetop_l[2] = serverURL+"dienstleistungen/index.htm";
menuetop_l[3] = serverURL+"publikationen/index.htm";
menuetop_l[4] = serverURL+"veranstaltungen/index.htm";
menuetop_l[5] = serverURL+"kontakt.htm";

//////////////////////
// Layer für den Menue
//////////////////////

if (document.all || document.getElementById) { // IE, NS6
	document.write('<DIV STYLE="position:absolute; top:'+menuetop_abstand_oben+'px;left:'+menuetop_abstand_left+'px; alignment:left; z-index:10; cursor:hand;">');
	document.write('<TABLE border="0" cellPadding="0" cellSpacing="0" width="'+menuetop_breite+'">');
} else if (document.layers) { // NS
	document.write('<LAYER name="menulayer" left="'+menuetop_abstand_left+'" top="'+menuetop_abstand_oben+'px">');
	document.write('<TABLE border="0" cellPadding="0" cellSpacing="0" width="'+menuetop_breite+'px">');
} 

strColspan= ((2* menuetop_i.length)+1)


	document.write('<TR>');
	document.write('<TD colspan="' + (strColspan) + '" valign="center" align="center" bgcolor="'+strColor[0]+'"><img width="'+menuetop_breite+'>px" border="0" src="' + serverURL + 'images/brenner_banner.gif"></TD>');
	document.write('</TR>');

	document.write('<TR>');
	document.write('<TD colspan="' + (strColspan) + '" width="1px" height="1px" bgcolor="'+strColor[3]+'"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="1px"></TD>');
	document.write('</TR>');

	
	document.write('<TR>');
	document.write('<TD height="8px" bgcolor="'+strColor[3]+'"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="8px"></TD>');
	document.write('<TD colspan="' + (strColspan - 2) + '" height="8px" bgcolor="'+strColor[0]+'"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="8px"></TD>');
	document.write('<TD height="8px" bgcolor="'+strColor[3]+'"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="8px"></TD>');
	document.write('</TR>');
	

	document.write('<TR>');
	document.write('<TD height="1px" bgcolor="'+strColor[3]+'" width="1px"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="1px"></TD>');


for (i=0;i<=menuetop_i.length-1;i++)
	if (menuetop_punkt==i) {
		document.write('<TD height="1px" width="'+menuetop_spaltenbreite+'px" bgcolor="'+strColor[0]+'"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="1px"></TD>');
		document.write('<TD height="1px" bgcolor="'+strColor[3]+'" width="1px"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="1px"></TD>');

	} else {

		document.write('<TD height="1px" bgcolor="'+strColor[3]+'" width="'+menuetop_spaltenbreite+'px"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="1px"></TD>');
		document.write('<TD height="1px"bgcolor="'+strColor[3]+'" width="1px"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="1px"></TD>');
	}


	document.write('</TR>');
	document.write('<TR>');
	document.write('<TD bgcolor="'+strColor[3]+'" width="1px"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="1px"></TD>');


for (i=0;i<=menuetop_i.length-1;i++)
	if (menuetop_punkt==i) {
		if (document.all || document.getElementById) { // IE, NS6
			document.write('<TD height="20px" width="'+menuetop_spaltenbreite+'px" bgcolor="'+strColor[0]+'" nowrap align="center" class="white10bold" ONCLICK="location=\''+menuetop_l[i]+'\'"><font color="'+strColor[3]+'">'+menuetop_i[i]+'</font></TD>');
		} else if (document.layers) { //NS
			document.write('<TD height="20px" width="'+menuetop_spaltenbreite+'px" bgcolor="'+strColor[0]+'" nowrap align="center" class="white10bold"><ILAYER><LAYER><A HREF="'+menuetop_l[i]+'" class="linktext"><center><font color="'+strColor[3]+'">'+menuetop_i[i]+'</font></center></A></LAYER></ILAYER></TD>');
		}

	document.write('<TD bgcolor="'+strColor[3]+'" width="1px"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="1px"></TD>');
	} else {
		if (document.all || document.getElementById) { // IE, NS6
			document.write('<TD width="'+menuetop_spaltenbreite+'px" bgcolor="'+strColor[2]+'" nowrap align="center" class="white10bold" ONCLICK="location=\''+menuetop_l[i]+'\'" onmouseover="className=\'menuh10\'" onMouseout="className=\'white10bold\'">'+menuetop_i[i]+'</TD>');
		} else if (document.layers) { //NS
			document.write('<TD width="'+menuetop_spaltenbreite+'px" bgcolor="'+strColor[2]+'" nowrap align="center" class="white10bold"><ILAYER><LAYER align="center" width="'+menuetop_spaltenbreite+'" onmouseover="bgColor=\''+ strColor[0] + '\'" onmouseout="bgColor=\''+ strColor[2] +'\'"><A HREF="'+menuetop_l[i]+'"><center><font color="'+strColor[3]+'">'+menuetop_i[i]+'</font></center></A></LAYER></ILAYER></TD>');
		}
	document.write('<TD bgcolor="'+strColor[3]+'" width="1px"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="1px"></TD>');
	}


	document.write('</TR>');

	document.write('<TR>');
	document.write('<TD colspan="' + strColspan + '" width="1px" height="1px" bgcolor="'+strColor[3]+'"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="1px"></TD>');
	document.write('</TR>');

	document.write('<TR>');
	document.write('<TD colspan="' + strColspan + '" width="1px" height="30px" bgcolor="'+strColor[3]+'"><img border="0" src="' + serverURL + 'images/_.gif" width="1px" height="30px"></TD>');
	document.write('</TR>');

	document.write('</TABLE>');

if (document.all || document.getElementById ) { // IE, NS6
	document.write('</DIV>');
} else if (document.layers) { // NS
	document.write('</LAYER>');
}
///////////////////////////////////////////////
// Layer für den eigentlichen Inhalt der Seite
///////////////////////////////////////////////
if (document.all || document.getElementById ) { // IE, NS6
	document.write('<div style="position: absolute; top: 110; left: '+menuetop_abstand_left+'; width: '+menuetop_breite+'">');
} else if (document.layers) { // NS
	document.write('<LAYER name="menulayer" width="'+menuetop_breite+'" left="'+menuetop_abstand_left+'" top="110px">');
}

document.write('<table border="0" cellpadding="0" cellspacing="0" height="'+(h-140)+'" width="100%">');
document.write('<tr><td width="631" valign="top" rowspan="2" bgcolor="#FFFFFF">');
document.write('<div align="center"><center>');
