for(i=0;i<mainLinks.length;i++){
	
	document.write('<div id="main'+i+'"><table height="16" cellpadding="0" cellspacing="0" border="0"><tr><td><a href="'+mainLinksUrl[i]+'" class="mainNavi"><nobr><img src="../../images/trans.gif" width="17" height="1" border="0">'+mainLinks[i]+'<img src="../../images/trans.gif" width="17" height="1" border="0"></nobr></a></td></tr></table></div>');
	if(i<2){
		document.write('<div id="subs'+i+'">');
		document.write('<table cellpadding="0" cellspacing="0" border="0">');
		document.write('<tr><td bgcolor="#ffffff" colspan="3"><img src="../../images/trans.gif" width="1" height="1"></td></tr>');
		for(j=0;j<subMenu[i].length;j++){
			document.write('<tr><td bgcolor="#ffffff"><img src="../../images/trans.gif" width="1" height="1" border="0"></td>');
			document.write('<td bgcolor="'+mainColors[i]+'" valign="middle">');
			if(loadMain==i&&loadSub==j){
				document.write('<nobr><img src="../../images/nav_aktiv.gif" width="5" height="5" border="0" alt="" hspace="6" id="active'+i+j+'">');
				document.write('<a href="'+subLinks[i][j]+'" class="subNavi">'+subMenu[i][j]+'&nbsp;&nbsp;</nobr></a></td>');
			}
			else{
				document.write('<nobr><img src="../../images/trans.gif" width="5" height="5" border="0" alt="" hspace="6" vspace="1" id="active'+i+j+'">');
				document.write('<a href="'+subLinks[i][j]+'" onmouseover=highlightActive("nr'+i+j+'") onmouseout="highlightPassive()" class="subNavi">'+subMenu[i][j]+'&nbsp;&nbsp;</nobr></a></td>');
			}
			document.write('<td bgcolor="#ffffff"><img src="../../images/trans.gif" width="1" height="1" border="0"></td></tr>');
			document.write('<tr><td bgcolor="#ffffff" colspan="3"><img src="../../images/trans.gif" width="1" height="1"></td></tr>');
		}
		document.write('</table>');
		document.write('</div>');
	}
}