
function mgOvr(src,clrOver)
{ 
  if (!src.contains(event.fromElement))
  { 
    src.style.cursor = 'hand'; 
    src.bgColor = clrOver; 
  }
}

function mgOut(src,clrIn)
{ 
  if (!src.contains(event.toElement))
  { 
    src.style.cursor = 'default'; src.bgColor = clrIn;
  }
}

function mgClick(src,clrIn,gotourl)
{ 
  if (!src.contains(event.toElement))
  { 
    src.style.cursor = 'default'; src.bgColor = clrIn;  window.open(gotourl, target="_top");
  }
}

function bfClick(src,clrIn,gotourl)
{ 
  if (!src.contains(event.toElement))
  { 
    src.style.cursor = 'default'; src.bgColor = clrIn;  window.open(gotourl, target="bodyframe");
  }
}

var menuColor1 = "'#333333'";
var menuColor2 = "'#4b4b4b'";
var menuColor3 = "'#000000'";

function menuHead(header)
{
	document.write("<table width=\"100\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"#FFFFFF\"><tr><td>");
	document.write("<table frame=box width=\"100\" cellspacing=\"0\" cellpadding=\"1\" border=\"0\" bgcolor=\"" + menuColor1 +"\">");
	document.write("<tr><td class=\"heading\" height=\"32\" background=\"/style//title.gif\">"+header+"</td></tr>");
	document.write("<tr><td background=\"/style/back.gif\"><br>");
}

function menuItem(menuName,menuText,menuUrl)
{
	document.write("<a border=0 href=\"" + menuUrl + "\" ");
	document.write("class=\"armenu\" title=\"" + menuText + "\"");
	document.write(">" + menuText + "</a>");
}

function menuItem2(menuName,menuText,menuUrl, menuFrame)
{
	document.write("<a border=0 href=\"" + menuUrl + "\" ");
	document.write("class=\"armenu\" title=\"" + menuText + "\" ");
	document.write("target=\"" + menuFrame + "\">" + menuText + "</a>");
}

function mI2(menuName,menuText,menuUrl, menuTitle)
{
	document.write("<a border=0 href=\"" + menuUrl + "\" ");
	document.write("class=\"armenu\" ");
	document.write("title=\"" + menuTitle + "\">" + menuText + "</a>");
}

function menuItem3(menuName,menuText,menuUrl, menuFrame)
{
	document.write("<a border=0 href=\"" + menuUrl + "\" ");
	document.write("class=\"armenu\" title=\"" + menuText + "\" ");
	document.write("target=\"" + menuFrame + "\">" + menuText + "</a>");
}

/*
function menuItem4(menuName,menuText,menuUrl)
{
	document.write("<td class=\"horizmenu\" bgcolor=" + menuColor1);
	document.write(" onMouseOver=\"mgOvr(this," + menuColor2 + ");\"");
	document.write(" onMouseOut=\"mgOut(this," + menuColor1 + ");\"");
	document.write(" onClick=\"mgClick(this," + menuColor3 + "," + menuName + ");\"");
	document.write("><a name=\"" + menuName + "\" href=\"" + menuUrl + "\">" + menuText + "</a></td>");
}
*/

function menuItem4(menuName,menuText,menuUrl)
{
	document.write("<td class=\"horizmenu\">");
	menuItem(menuName,menuText,menuUrl);
	document.write("</td>");
}
/*
function menuClose()
{
	document.write("</table></td></tr></table>");
}
*/

function menuClose()
{
	document.write("</td></tr></table></td></tr></table>");
}


function menuCel(menuItemHeight,menuItemWidth,menuName,menuText,menuUrl)
{
	document.write("<td align=\"center\" width=\"" + menuItemWidth +"\" height=\"" + menuItemHeight +"\" bgcolor=" + menuColor1);
	document.write(" onMouseOver=\"mgOvr(this," + menuColor2 + ");\"");
	document.write(" onMouseOut=\"mgOut(this," + menuColor1 + ");\"");
	document.write(" onClick=\"mgClick(this," + menuColor3 + "," + menuName + ");\"");
	document.write("><a name=\"" + menuName + "\" href=\"" + menuUrl + "\">" + menuText + "</a></td>");
}

function menuCelBF(menuItemHeight,menuItemWidth,menuName,menuText,menuUrl, menuFrame)
{
	document.write("<td align=\"center\" width=\"" + menuItemWidth +"\" height=\"" + menuItemHeight +"\" bgcolor=" + menuColor1);
	document.write(" onMouseOver=\"mgOvr(this," + menuColor2 + ");\"");
	document.write(" onMouseOut=\"mgOut(this," + menuColor1 + ");\"");
	document.write(" onClick=\"bfClick(this," + menuColor3 + "," + menuName + ");\"");
	document.write("><a name=\"" + menuName + "\" href=\"" + menuUrl + "\" target=\"" + menuFrame + "\">" + menuText + "</a></td>");
}

