<!--
function primaryitem(name,location,primaryslotnumber)
{
var t;

if(typeof(activePrimaryItemID)!="undefined")
{
	if(arrPrimaryItems[primaryslotnumber-1]==activePrimaryItemID)
		t = "<td width='4' style='background-color:#C85654'></td>";
	else
		t = "<td width='4' style='background-color:#CDDBE8'></td>";        
}
else
	t = "<td width='4' style='background-color:#CDDBE8'></td>";

document.writeln("<table bgcolor=\"FFFFFF\" width=\"200\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("<tr>" + t +"<td width=\"183\" align=\"left\" valign=\"middle\"><font class=\"primarynav\"><a class=\"normallink\" onmouseover=\"if (loaded) {clearTimeout(TimeOutNum);hideAll();visibility('primarymenuchoice",primaryslotnumber,"',1);}\" onmouseout=\"if (loaded) {settimer();}\" href=\"",location,"\">",name,"</a></font></td><td width=\"13\"><img src=\"/images/menu/transpixel.gif\" width=\"10\" height=\"33\" border=\"0\"></td></tr>");
document.writeln("<tr>" + t +"<td><img src=\"/images/menuborderPD.gif\" width=\"180\" height=\"1\" border=\"0\"></td><td></td></tr></table>");
}

function lightblueprimaryitem(name,location,primaryslotnumber)
{
document.writeln("<table width=\"170\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("<tr><td width=\"150\" align=\"right\" valign=\"middle\"><font class=\"ltblueprimarynav\"><a class=\"menu\" onmouseover=\"if (loaded) {clearTimeout(TimeOutNum);hideAll();visibility('primarymenuchoice",primaryslotnumber,"',1);}\" onmouseout=\"if (loaded) {settimer();}\" href=\"",location,"\">",name,"</a></font></td><td width=\"13\"><img src=\"/images/menu/transpixel.gif\" width=\"13\" height=\"33\" border=\"0\"></td></tr>");
document.writeln("<tr><td><img src=\"/images/menu/99CCFF.gif\" width=\"150\" height=\"1\" border=\"0\"></td><td></td></tr></table>");
}

function separator(sectionname, url)
{
document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"130\">");
document.writeln("<tr><td><img src=\"/images/menu/transpixel.gif\" width=\"22\" height=\"30\" border=\"0\"></td><td><img src=\"/images/menu/transpixel.gif\" width=\"112\" height=\"30\" border=\"0\"></td><td><img src=\"/images/menu/transpixel.gif\" width=\"5\" height=\"30\" border=\"0\"></td><td><img src=\"/images/menu/transpixel.gif\" width=\"1\" height=\"35\" border=\"0\"></td></tr>");
document.writeln("<tr><td colspan=\"4\"><img src=\"/images/menu/top.gif\" width=\"140\" height=\"9\" border=\"0\"></td></tr>");
document.writeln("<tr><td width=\"22\" align=\"right\"><img src=\"/images/menu/downarrow.gif\" width=\"22\" height=\"13\" border=\"0\" align=\"center\"></td><td width=\"102\" align=\"right\"><font class=\"primarynavsubtitle\"><a class=\"normallink\"href=\"",url,"\">",sectionname,"</a></font></td><td width=\"5\" align=\"right\"><img src=\"/images/menu/transpixel.gif\" width=\"3\" height=\"46\" border=\"0\"></td><td width=\"1\" align=\"right\" valign=\"top\"><img src=\"/images/menu/vertical.gif\" width=\"1\" height=\"44\" border=\"0\"></td></tr>");
document.writeln("</table>");
}

function menubegin(primaryslotnumber)
{
document.writeln("<div id=\"primarymenuchoice",primaryslotnumber,"\">");
document.writeln("<div id=\"patch\"><img src=\"/images/menu/menutopleft.gif\" width=\"12\" height=\"35\" alt=\"\" border=\"0\"></div>");
document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"188\">");
document.writeln("<tr>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"/images/menu/1.gif\" width=\"1\" height=\"6\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"/images/menu/2.gif\" width=\"11\" height=\"6\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"/images/menu/3.gif\" width=\"10\" height=\"6\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"/images/menu/4.gif\" width=\"134\" height=\"6\" border=\"0\"></td>");
document.writeln("	<td colspan=\"2\"><img src=\"/images/menu/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/menu/menubottomleft.gif\" width=\"12\" height=\"12\" border=\"0\"></td>");
document.writeln("	<td valign=\"bottom\" colspan=\"2\"><img src=\"/images/menu/menubottomrow.gif\" width=\"164\" height=\"12\" border=\"0\"></td>");
document.writeln("	<td colspan=\"2\"><img src=\"/images/menu/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=\"EBEBEB\"><img src=\"/images/menu/transpixel.gif\" width=\"1\" height=\"16\" border=\"0\"></td>"); 
document.writeln("	<td bgcolor=\"FFFFFF\"><img src=\"/images/menu/whitepixel.gif\" width=\"11\" height=\"10\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\"><img src=\"/images/menu/whitepixel.gif\" width=\"1\" height=\"3\" border=\"0\"><br><img src=\"/images/menu/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/menu/whitepixel.gif\" width=\"1\" height=\"4\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\"><img src=\"/images/menu/whitepixel.gif\" width=\"8\" height=\"10\" border=\"0\"></td>");
document.writeln("	<td background=\"/images/menu/menuright40.gif\"><img src=\"/images/menu/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=\"EBEBEB\"><img src=\"/images/menu/transpixel.gif\" width=\"1\" height=\"20\" border=\"0\"></td>"); 
document.writeln("	<td bgcolor=\"FFFFFF\"><img src=\"/images/menu/whitepixel.gif\" width=\"11\" height=\"10\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\" valign=\"top\" height=\"15\"><img src=\"/images/menu/whitepixel.gif\" width=\"1\" height=\"3\" border=\"0\"><br><img src=\"/images/menu/reddot.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);\" onmouseout=\"settimer();\">",actualname,"</a></font><br><img src=\"/images/menu/whitepixel.gif\" width=\"1\" height=\"4\" border=\"0\"></td>");
document.writeln("	<td bgcolor=\"FFFFFF\"><img src=\"/images/menu/whitepixel.gif\" width=\"8\" height=\"10\" border=\"0\"></td>");
document.writeln("	<td background=\"/images/menu/menuright40.gif\"><img src=\"/images/menu/transpixel.gif\" width=\"4\" height=\"10\" border=\"0\"></td>"); 
document.writeln("</tr>");
}
//-->
