for (i=0;i<vSize;i++)
{
	document.write ("<span class=menuitem><a href='&nbsp;' onclick='");
	if (aMenuStat[i] == 0) document.write ("openMenu");
	else document.write ("closeMenu");
	document.write ("(" + i + ");return false'>");
	document.write ("<img src=images/")
	if (aMenuStat[i] == 0) document.write ("ballclosed.gif")
	else document.write ("ballopened.gif")
	document.write (" border=0 valign=absmiddle>");
	document.write (aMenuDesc[i] + "</a></span><br>\n");
	if (aMenuStat[i] == 1)
	{
		eval("aSub = aSub" + i + ";");
		eval("aLink = aLink" + i + ";");
		for (j=0;j<aSub.length;j++)
		{
			// here's where we write the sub-menus
			document.write ("&nbsp;&nbsp;<span class=subitem><a href='");
			document.write (aLink[j] + "' ");
			document.write ("target='gnhoa_base'><img src=images/ball.gif border=0 valign=absmiddle>");
			document.write (aSub[j] + "</a></span><br>");
		}
	}
}

