document.write ("<table width='138' id='fullmenubar' height='100%' cellpadding=0 cellspacing=0>");
document.write ("<tr><td  valign='middle' class='menutext'>");

var f;
var k;
var l;
for (f = 0; f < (recordcount + 1); f++) {
	document.write ("<div class='menutext' id='item" + f + "'");
	document.write (" style='position:relative;background:" + pcol + ";z-index:2;'");
	document.write (" onmouseover=\"MM_showHideLayers('item3" + f + "','','show');");
	document.write ("document.getElementById('item" + f + "').style.backgroundColor='" + scol + "';");
	document.write ("document.getElementById('span1" + f + "').style.color='" + smtcol + "';\"");
	document.write (" onmouseout=\"MM_showHideLayers('item3" + f + "','','hidden');");
	document.write ("document.getElementById('item" + f + "').style.backgroundColor='" + pcol + "';");
	document.write ("document.getElementById('span1" + f + "').style.color='"+ pmtcol +"';\">");
	document.write ("<div class='menulev2' id='item3" + f + "'");
	document.write (" style='position:absolute;z-index:5;visibility:hidden'>");
		
		for (k = 0; k < sl[f].length; k++) {
		
			if (sl[f][k] !== 'NONE') {
				document.write ("<div class='menutext' id='inset" + f + "0" + k + "'");
				document.write (" style='background:" + pcol + "'");
				document.write (" onmouseover=\"MM_showHideLayers('item5" + f + "" + k + "','','show');");
				document.write ("document.getElementById('inset" + f + "0" + k + "').style.backgroundColor='" + scol + "';");
				document.write ("document.getElementById('span2" + f + "0" + k + "').style.color='" + smtcol + "';\"");
				document.write (" onmouseout=\"MM_showHideLayers('item5" + f + "" + k + "','','hidden');");
				document.write ("document.getElementById('inset" + f + "0" + k + "').style.backgroundColor='" + pcol + "';");
				document.write ("document.getElementById('span2" + f + "0" + k + "').style.color='" + pmtcol + "';\">");

				if (f > 8) {
					position = (100/(sl[f].length)) * ((sl[f].length) - (k+1));
				} else {
					position = '';
				}
				
				document.write ("<div class='menulev3' id='item5" + f + "" + k + "'");
				document.write (" style='position:absolute;bottom:" + position + "%;z-index:6;visibility:hidden'>");

				for (l = 0; l < tl[f][k].length; l++) {
				
					if (tl[f][k][l] !== 'NONE') {
						document.write ("<div class='menutext' id='manu" + f + "" + k + "" + l + "'");
						document.write (" style='background:" + pcol + "'");
						document.write (" onmouseover=\"document.getElementById('manu" + f + "" + k + "" + l);
						document.write ("').style.backgroundColor='" + scol + "';");
						document.write ("document.getElementById('span3" + f + "" + k + "" + l);
						document.write ("').style.color='" + smtcol + "';\"");
						document.write (" onmouseout=\"document.getElementById('manu" + f + "" + k + "" + l);
						document.write ("').style.backgroundColor='" + pcol + "';");
						document.write ("document.getElementById('span3" + f + "" + k + "" + l);
						document.write ("').style.color='" + pmtcol + "';\">");							
						document.write ("<a class='menutext' style='color:" + pmtcol + "'");
						document.write (" href='results2.asp?group1=" + fl[f] + "&group2=" + sl[f][k]);
						document.write ("&manufacturer=" + tl[f][k][l] + "'");
						document.write (" id='span3" + f + "" + k + "" + l + "'>" + tl[f][k][l] + "</a>");
						document.write ("</div>");
					}
				}

				document.write ("</div>");
				document.write ("<a class='menutext' style='color:" + pmtcol + "'");
				document.write (" href='results2.asp?group1=" + fl[f] + "&group2=" + sl[f][k] + "'");
				document.write (" id='span2" + f + "0" + k + "'>" + sl[f][k] + "</a>");
				document.write ("</div>");
			}
		}
	document.write ("</div>");
	document.write ("<a class='menutext' style='color:" + pmtcol + "'");
	document.write (" href='results2.asp?group1=" + fl[f] + "'");
	document.write (" id='span1" + f + "'>" + fl[f] + "</a>");
	document.write ("</div>");
}
