function buttons(adr,titel) {
this.adr = adr;
this.titel = titel;
}

function aender(wen, was) {
if (document.layers)document.layers[wen].bgColor=was;
if (document.all) document.all[wen].style.backgroundColor=was;
}

function nsfehler() {
if ((window.innerHeight!=nsy)||(window.innerWidth!=nsx))
location.reload();
setTimeout("nsfehler()",2000);
}

function createNav() {
if (document.layers) {
nsy=window.innerHeight;
nsx=window.innerWidth;
nsfehler();
document.write('<table width="160" height="500" align="left"><tr><td>');
document.write('</td></tr></table>');
for (i=0;i<daten.length;i++) {
iid="'nav"+i+"'";
t=50+50*i;
document.write('<layer class="buttons" background="mhbutton.gif" top='+t+' left="10" ');
document.write(' width="140" height="40" bgcolor='+buttonDefCol+' name="nav'+i+'">');
document.write('<a href="'+daten[i].adr+ ' "onMouseout="aender('+iid+',buttonDefCol)"');
document.write(' onMouseover="aender('+iid+',buttonOverCol)">' );
document.write('<img src="leer.gif" height="4" width="130" border="0" ><br>'); document.write(daten[i].titel+'</a>');
document.write('</layer>');
}
}

else {
document.write('<table cellpadding="3" cellspacing="10" width="160px" align="left">');
for (i=0;i<daten.length;i++) {
iid="'nav"+i+"'";
document.write('<tr><td class="buttons" ');
document.write('style="background-image:url(mhbutton.gif);" ');
document.write('height="41px" align="center" bgcolor='+buttonDefCol+' id='+iid+'>');
document.write('<a href="'+daten[i].adr+'" onMouseout="aender('+iid+',buttonDefCol)"');
document.write(' onMouseover="aender('+iid+',buttonOverCol)">'+daten[i].titel);
document.write('</a></td></tr>\n');
}
document.write('<tr><td><img src="leer.gif" width="100px" ');
document.write('height="4"></td></tr></table>');
}
}