<!--
function menubegin(primaryslotnumber)
{
document.writeln("<div id=\"primarymenuchoice",primaryslotnumber,"\">");
document.writeln("<div id=\"patch\"><img src=\"images/menutopleft.gif\" width=\"12\" height=\"45\" alt=\"\" border=\"0\"></div>");
document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"168\">");
document.writeln("<tr>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"images/1.gif\" width=\"1\" height=\"6\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"images/2.gif\" width=\"11\" height=\"6\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"images/3.gif\" width=\"10\" height=\"6\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"images/4.gif\" width=\"134\" height=\"6\" border=\"0\"></td>");
document.writeln("	<td colspan=\"2\"><img src=\"images/5.gif\" width=\"12\" height=\"11\" border=\"0\"></td>");
document.writeln("</tr>");
}
function menuend()
{
document.writeln("<tr>");
document.writeln("	<td colspan=\"2\"><img src=\"images/menubottomleft.gif\" width=\"12\" height=\"12\" border=\"0\"></td>");
document.writeln("	<td valign=\"bottom\" colspan=\"2\"><img src=\"images/menubottomrow.gif\" width=\"144\" height=\"12\" border=\"0\"></td>");
document.writeln("	<td colspan=\"2\"><img src=\"images/menubottomright.gif\" width=\"12\" height=\"12\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("</div>");
}

function secondaryspacer()
{
document.writeln("<tr>");
document.writeln("	<td bgcolor=\"99CCFF\"><img src=\"images/transpixel.gif\" width=\"1\" height=\"16\" border=\"0\"></td>"); 
document.writeln("	<td bgcolor=\"FFFFFF\"><img src=\"images/whitepixel.gif\" width=\"11\" height=\"10\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"images/whitepixel.gif\" width=\"1\" height=\"3\" border=\"0\"><br><img src=\"images/whitepixel.gif\" width=\"5\" height=\"5\" border=\"0\" name=\"none\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><FONT class=\"secondarynav\">&nbsp;</font><br><img src=\"images/whitepixel.gif\" width=\"1\" height=\"4\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\"><img src=\"images/whitepixel.gif\" width=\"8\" height=\"10\" border=\"0\"></td>");
document.writeln("	<td background=\"images/menuright40.gif\"><img src=\"images/transpixel.gif\" width=\"4\" height=\"10\" border=\"0\"></td>"); 
document.writeln("</tr>");
}



function emptymenu(emptymenuprimaryslotnumber)
{
document.writeln("<div id=\"primarymenuchoice",emptymenuprimaryslotnumber,"\"> <!-- empty divtag --> </div>");
}

// writeitem passes 4 different vars
// 1. current menu name (string no spaces, for generating image name for rollovers) (if you need one <br> its a 2 line item, as for two <br>'s its a 3 line item)
// 2. line height (coder must use 1, 2, or 3 -- as menu items can be 1, 2, or 3 lines high)
// 3. actual url (url of link)
// 4. menu item label (the name that shows up in the menu)
// 5. menu item name (no spaces, for generating image name for rollovers)


function  writeitem(shortcurrentmenuname,linelength,url,actualname,shortname)
{
document.writeln("<tr>");
document.writeln("	<td bgcolor=\"99CCFF\"><img src=\"images/transpixel.gif\" width=\"1\" height=\"16\" border=\"0\"></td>"); 
document.writeln("	<td bgcolor=\"FFFFFF\"><img src=\"images/whitepixel.gif\" width=\"11\" height=\"10\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"images/whitepixel.gif\" width=\"1\" height=\"3\" border=\"0\"><br><img src=\"images/whitepixel.gif\" width=\"5\" height=\"5\" border=\"0\" name=\"",shortcurrentmenuname,shortname,"\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><FONT class=\"secondarynav\"><a class=\"normallink\" href=\"",url,"\" onmouseover=\"clearTimeout(TimeOutNum);document.",shortcurrentmenuname,shortname,".src=reddot.src\" onmouseout=\"settimer();document.",shortcurrentmenuname,shortname,".src=whitepixel.src\">",actualname,"</a></font><br><img src=\"images/whitepixel.gif\" width=\"1\" height=\"4\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\"><img src=\"images/whitepixel.gif\" width=\"8\" height=\"10\" border=\"0\"></td>");
document.writeln("	<td background=\"images/menuright40.gif\"><img src=\"images/transpixel.gif\" width=\"4\" height=\"10\" border=\"0\"></td>"); 
document.writeln("</tr>");
}

//This functionality has been disabled
//
//function  writeitem(shortcurrentmenuname,linelength,url,actualname,shortname)
//{
//document.writeln("<tr>");
//if (linelength == 1) { document.writeln("	<td><img src=\"images/99CCFF.gif\" width=\"1\" height=\"16\" border=\"0\"></td>"); document.writeln("	<td><img src=\"images/whitepixel.gif\" width=\"11\" height=\"16\" border=\"0\"></td>"); }
//if (linelength == 2) { document.writeln("	<td><img src=\"images/99CCFF.gif\" width=\"1\" height=\"28\" border=\"0\"></td>"); document.writeln("	<td><img src=\"images/whitepixel.gif\" width=\"11\" height=\"28\" border=\"0\"></td>"); }
//if (linelength == 3) { document.writeln("	<td><img src=\"images/99CCFF.gif\" width=\"1\" height=\"40\" border=\"0\"></td>"); document.writeln("	<td><img src=\"images/whitepixel.gif\" width=\"11\" height=\"40\" border=\"0\"></td>"); }
//document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"images/whitepixel.gif\" width=\"1\" height=\"3\" border=\"0\"><br><img src=\"images/whitepixel.gif\" width=\"5\" height=\"5\" border=\"0\" name=\"",shortcurrentmenuname,shortname,"\"></td>");
//document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><FONT class=\"secondarynav\"><a class=\"normallink\" href=\"",url,"\" onmouseover=\"clearTimeout(TimeOutNum);document.",shortcurrentmenuname,shortname,".src=reddot.src\" onmouseout=\"settimer();document.",shortcurrentmenuname,shortname,".src=whitepixel.src\">",actualname,"</a></font></td>");
//document.writeln("	<td bgcolor=\"FFFFFF\"><img src=\"images/whitepixel.gif\" width=\"8\"></td>");
//if (linelength == 1) { document.writeln("	<td align=\"right\"><img src=\"images/menuright16.gif\" width=\"4\" height=\"16\" border=\"0\"></td>"); }
//if (linelength == 2) { document.writeln("	<td align=\"right\"><img src=\"images/menuright28.gif\" width=\"4\" height=\"28\" border=\"0\"></td>"); }
//if (linelength == 3) { document.writeln("	<td align=\"right\"><img src=\"images/menuright40.gif\" width=\"4\" height=\"40\" border=\"0\"></td>"); }
//document.writeln("</tr>");
//}
//-->
