var Outline=sfont;
var ImgCnt=0;
// cycle through entrys in the menu array
for (var i = 1; i < menu.length; i++) {
	if (menu[i].level==1) {
		if (i>1) {
			Outline += "<IMG SRC=\"images/spc.gif\" WIDTH=1 HEIGHT=5 BORDER=0></br>";
			ImgCnt++;
		}
		Outline += "<IMG SRC=\"images/spc.gif\" WIDTH=32 HEIGHT=1 BORDER=0>";
	}
	else 
		Outline += "<IMG SRC=\"images/spc.gif\" WIDTH=34 HEIGHT=1 BORDER=0>";
	ImgCnt++;
	if (menu[i].level==3) {
		Outline += "<IMG SRC=\"images/spc.gif\" WIDTH=1 HEIGHT=5 BORDER=0></br>";
		Outline += "<IMG SRC=\"images/spc.gif\" WIDTH=33 HEIGHT=1 BORDER=0>";
		Outline += "<IMG SRC=\"images/" + menu[i].ImgNorm + "\" WIDTH=" + menu[i].ImgW + " HEIGHT=" + menu[i].ImgH + " BORDER=0></br>";
		ImgCnt+=3;
	}
	else {
		if (menu[i].text=="") {
			if (menu[i].URLSelf.length + menu[i].URLMain.length>0) {
				Outline += "<A HREF=\"" + menu[i].URLMain +"\" onMouseOver=\"window.parent.status=\'" + menu[i].StatusBarTxt + "\';" 
				if (menu[i].ImgMO.length>0) {
					Outline += "chgImg(" + (ImgCnt+1) + ", \'images/" + menu[i].ImgMO +"\');return true;\" onmouseout=\"chgImg(" + (ImgCnt+1) + ", \'images/" + menu[i].ImgNorm +"\');";
				}
				Outline += "return true;\" onClick=\"loadMenu(\'"+ menu[i].URLSelf +"\')\">";
			}
			ImgCnt++;
			Outline += "<IMG SRC=\"images/" + menu[i].ImgNorm + "\" WIDTH=" + menu[i].ImgW + " HEIGHT=" + menu[i].ImgH + " BORDER=0>";
			if (menu[i].URLSelf.length + menu[i].URLMain.length>0) 
				Outline += "</A>";
			Outline += "</br>";
		}
		else {
			if (menu[i].URLSelf.length + menu[i].URLMain.length>0) {
				Outline += "<A HREF=\"" + menu[i].URLMain +"\" onMouseOver=\"window.parent.status=\'" + menu[i].StatusBarTxt + "\';"
				if (menu[i].level>1) {
					ImgCnt++;
					Outline += "chgImg(" + ImgCnt + ", \'images/arrow_h.gif\');return true;\" onmouseout=\"chgImg(" + ImgCnt + ", \'images/arrow.gif\');";
				}
				Outline += "return true;\" onClick=\"loadMenu(\'"+ menu[i].URLSelf +"\')\">";
			}
			if (menu[i].level==1)
				Outline += "<b>" + menu[i].text +"</b>";
			else {
				Outline += "<IMG SRC=\"images/arrow.gif\" WIDTH=5 HEIGHT=10 BORDER=0>";
				Outline += "<IMG SRC=\"images/spc.gif\" WIDTH=3 HEIGHT=1 BORDER=0>";
				ImgCnt++;
				Outline += menu[i].text;
			}
			if (menu[i].URLSelf.length + menu[i].URLMain.length>0) 
				Outline += "</A>";
			Outline += "</br>";
		}
	}
}
Outline+="</font>";
document.write(Outline);

