<!--
//extra css info for the menu items
var MenuBorderColor = "#555555";
var MenuItemBgColor = "#999999";
var MenuItemBgColorHot = "#BBBBBB";

document.writeln("<style>");
document.writeln(".Menu             {font-family:Arial,Sans Serif;font-size:13pt;font-weight:bold;color:black !important;background-color:" + MenuItemBgColor + ";margin-bottom:3px;}");
document.writeln(".MenuLink         {font-family:Arial,Sans Serif;font-size:10pt;color:white !important;text-decoration:none;}");
document.writeln(".MenuItem         {font-family:Arial,Sans Serif;font-size:10pt;color:black !important;background-color:" + MenuItemBgColor + ";margin-bottom:3px;}");
document.writeln(".MenuItemHot      {font-family:Arial,Sans Serif;font-size:10pt;color:black !important;background-color:" + MenuItemBgColorHot + ";}");
document.writeln(".MenuItemLink     {font-family:Arial,Sans Serif;font-size:10pt;font-weight:normal;color:white !important;text-decoration:none;}");
document.writeln(".MenuBorderColor  {background-color:" + MenuBorderColor + ";}");
document.writeln("</style>\n");

//code for displaying the menu items
var NS4 = (document.layers) ? true : false;
var IE4 = (document.all) ? true : false;
var NS4MAC = NS4 && (navigator.appVersion.indexOf("Macintosh") > -1);
var NS6 = (document.getElementById) ? true : false;

// Create border around layer l
// by increasing size of underlying layer by 1
function make_border(l)
{
  if(l.clip.width - l.above.clip.width < 2)
  {
    l.resizeBy(2,2);
    l.above.resizeBy(1,1);
  }
}

// Get X coordinate of the object Obj in pixels
function getLeft(Obj)
{
  xPos= Obj.offsetLeft;
  prnt = Obj.offsetParent;
  while (prnt!= null) 
  {
    xPos+= prnt.offsetLeft;
    prnt= prnt.offsetParent;
  }
  return xPos;
}

// Get Y coordinate of the object Obj in pixels
function getTop(Obj) 
{
  yPos= Obj.offsetTop;
  prnt = Obj.offsetParent;
  while (prnt!= null) 
  {
    yPos+= prnt.offsetTop;
    prnt= prnt.offsetParent;
  }
  yPos = yPos -2;
  return yPos;
}

// Position menu layer/division under the title link dlink
// and make it visible
// if dlink object is not given, 
// just make the menu visible
function overDesc(dtitle,dlink)
{
  if (NS4) 
  {
    if(document.layers[dtitle])
    {
      if(dlink)
      {
        document.layers[dtitle].top = dlink.y + 15;
        document.layers[dtitle].left = dlink.x + 0;
      }
      document.layers[dtitle].visibility = "show";
    }
  }
  if (IE4) 
  {
    if(document.all.item(dtitle))
    {
      if(dlink)
      {
        document.all.item(dtitle).style.top = getTop(dlink) + 20; // + dlink.offsetHeight;
        document.all.item(dtitle).style.left = getLeft(dlink) + 37;
      }
      document.all.item(dtitle).style.visibility = "hidden";
    }
  }
  if (NS6) 
  {
    if(dlink)
    {
      document.getElementById(dtitle).style.top = getTop(dlink) + dlink.offsetHeight;
      document.getElementById(dtitle).style.left = getLeft(dlink) +0;
    }
    document.getElementById(dtitle).style.visibility = "visible";
  }
}


// Make layer/division menu hidden
function outDesc(dtitle)
{
  if (NS4 && document.layers[dtitle]) 
  {
    document.layers[dtitle].visibility = "hide";
  }
  if (IE4 && document.all.item(dtitle)) 
  {
    document.all.item(dtitle).style.visibility = "hidden";
  }
  if (NS6) 
  {
    document.getElementById(dtitle).style.visibility = "hidden";
  }
}

//-->
