//Detecting the browser type
var isNetscape = (navigator.appName == "Netscape");
var isMacIE = ( (navigator.userAgent.indexOf("IE 4")  > -1) && (navigator.userAgent.indexOf("Mac")  > -1) );
var layerRef = (isNetscape) ? "document" : "document.getElementById";
var styleRef = (isNetscape) ? "" : ".style";
var DHTML_Enabled = ( document.getElementById && !isMacIE );

// To hide from old browsers generate the menu
// dynamically, invisible at the beginning
function MenuCall(Content, Width, BackgrColor, MenuNumber)
  {
      MenuID=MenuNumber;
      WidthMenu=Width;
      Color="transparent";
      if (DHTML_Enabled)
         {
          document.write("<DIV id="+MenuID+" STYLE=\"position:absolute; z-index:2; display:none; background:"+Color+"\"  onMouseover=\"MenuActivate('"+MenuID+"')\" onMouseOut=\"MenuKill('"+MenuID+"')\">"+Content+"</DIV>");
          document.getElementById(MenuID).style.width =WidthMenu;
        }
  }

// To activate a menu just change the visibility parameter
function MenuActivate(MenuNumber)
  {
         MenuID=MenuNumber;
         if (DHTML_Enabled)
            {
            document.getElementById(MenuID).style.display = "";
           }
   }
// To de-activate a menu just change the visibility parameter
function MenuKill(MenuNumber)
   {
      MenuID=MenuNumber;
     if(document.getElementById(MenuNumber)!=null)
        document.getElementById(MenuNumber).style.display="none";
   }
// that's all