var linkoffset="http://members.tripod.co.uk/fysik/"

var menu=new Array()
menu[0]="Indhold"
menu[1]="Formelsamling"
menu[2]="Links"
menu[3]="Kontakt"
menu[4]="Elektricitet"

var menuindhold=new Array()

// indhold
menuindhold[0]="0*i*Hoved*index.html"
menuindhold[1]="0*i*Software*anbef/software/index.html"
menuindhold[2]="0*i*Komponenter*anbef/komponenter/index.html"

// formelsamling
menuindhold[3]="1*i*Formelsamling*formelsamling/index.html"
menuindhold[4]="1*i*Rettelser*formelsamling/rettelser.html"
menuindhold[5]="1*i*Baggrund*formelsamling/baggrund.html"
menuindhold[6]="1*i*Akustik*formelsamling/akustik/index.html"
menuindhold[7]="1*i*Optik*formelsamling/optik/index.html"
menuindhold[8]="1*i*Kvantemekanik*formelsamling/kvant/index.html"
menuindhold[9]="1*i*Elektricitet*formelsamling/elektricitet/index.html"
menuindhold[10]="1*i*Magnetisme*formelsamling/magnetisme/index.html"
menuindhold[11]="1*i*Mekanik*formelsamling/mekanik/index.html"
menuindhold[12]="1*i*Partikelfysik*formelsamling/partikelfysik/index.html"
menuindhold[13]="1*i*Elektronik*formelsamling/elektronik/index.html"

// links
menuindhold[14]="2*i*Ressourcer*fysik/ressourcer.html"
menuindhold[15]="2*i*organisation*fysik/organisation.html"
menuindhold[16]="2*i*uddannelser*fysik/uddannelser.html"
menuindhold[17]="2*e*DFS*http://www.nbi.dk/dfs/"
menuindhold[18]="2*e*IOT*http://www.iot.dk"

// kontakt
menuindhold[19]="3*i*E-mail*kontakt/email.html"
menuindhold[20]="3*i*CV*kontakt/cv.html"
menuindhold[21]="3*i*Nyhed*andet/nyhed.html"
menuindhold[22]="3*i*Leder*andet/leder.html"

// elektricitet
menuindhold[23]="4*i*Ladninger*formelsamling/elektricitet/ladninger/"
menuindhold[24]="4*i*Elektrisk dipol*formelsamling/elektricitet/dipol/"
menuindhold[25]="4*i*Elektrisk flux*formelsamling/elektricitet/flux/"
menuindhold[26]="4*i*Elektrisk felt*formelsamling/elektricitet/efelt/"
menuindhold[27]="4*i*Spændinger*formelsamling/elektricitet/spaending/"


function noget(A) {

document.getElementById(menu[A]).style.visibility="visible"
}
function gem(A) {
document.getElementById(menu[A]).style.visibility="hidden"
}


document.write("<table class='menu2' cellpadding='0'  border='0'><tr>")

	for (m in menu) {
		document.write("<td  onmouseover=noget("+m+") onmouseout=gem("+m+") class='menutd'>")
		document.write(menu[m]+"<br />")

		document.write("<div id="+menu[m]+" class='menudiv'><table class='menu' cellspacing='0' border='0'>")
		for(n in menuindhold) {
			menunummer=parseInt(menuindhold[n])
			var opdel=menuindhold[n].split("*")
				if(menunummer==m) {
				
					document.write("<tr><td>")
					if(opdel[1]=="i") {					
					document.write("<a href="+linkoffset+opdel[3]+" class='menulinks'>"+opdel[2]+"</a>")
					}
					else {
					document.write("<a href="+opdel[3]+" class='menulinks'>"+opdel[2]+"</a>")
					}
					document.write("</td></tr>")
				}
			}
		document.write("</table></div>")
		document.write("</td>")
	}
document.write("</tr></table>")