   function menuItem()
   {
      var itemArray = new Array();
      var args = menuItem.arguments;
      this.text = args[0];
      this.link = args[1];
      this.descriptor = args[2];
      this.linkNewWin = args[3];
      this.itemPos = 0;
      this.subMenuExists = false;
      if(args.length == 5)
      {
         this.subMenuExists = true;
         this.subMenu = args[4];
      }
   }
   function menu()
   {
      var itemArray = new Array();
      var args = menu.arguments;
      this.name = args[0];
      this.top = args[1];
      this.left = args[2];
      this.width = args[3];
      this.zIndex = args[4];
      this.parentMenu = args[5];
      for(i=6; i<args.length; i++)
      {
         itemArray[i-6] = args[i];
         itemArray[i-6].itemPos = i - 6;
      }
      this.menuItems = itemArray;
      this.write = writeMenu;
      this.write();
   }
   function writeMenu()
   {
      var menuText = '<div id="';
      menuText += this.name;
      if(this.parentMenu != '')
      {
         menuText += '" class="subMenu"';
      }
      else
      {
         menuText += '" class="menu"';
      }
      menuText += ' style="top: ' + this.top;
      menuText += 'px; left: ';
      menuText += this.left;
      menuText += 'px; z-index: ' + this.zIndex + ';" '
      menuText += 'onMouseOver="window.parent.title.document.formOverMenu.overMenu.value=1;showMenu(\'' + this.name + '\');';
      if(this.parentMenu != '')
      {
         menuText += 'showMenu(\'' + this.parentMenu + '\');';
      }
      menuText += 'return true;" ';
      menuText += 'onMouseOut="window.parent.title.document.formOverMenu.overMenu.value=0;hideMenu(\'' + this.name + '\');';
      if(this.parentMenu != '')
      {
         menuText += 'hideMenu(\'' + this.parentMenu + '\');';
      }
      menuText += 'return true;">';
      menuText += '<table border="0" cellspacing="0" style="width: ' + this.width + 'px;">';
      for(i=0; i<this.menuItems.length; i++)
      {
         menuText += '<tr onMouseOver="this.style.backgroundColor=\'rgb(15,103,117)\';window.parent.status=\'' + this.menuItems[i].descriptor + '\';';
         if(this.menuItems[i].subMenuExists)
         {
            menuText += 'document.getElementById(\'' + this.menuItems[i].subMenu.name + '\').style.top=document.getElementById(\'' + this.name + '\').offsetTop+' + this.menuItems[i].itemPos + '*document.getElementById(\'' + this.name + '\').offsetHeight/' + this.menuItems.length + '+\'px\';document.getElementById(\'' + this.menuItems[i].subMenu.name + '\').style.left=document.getElementById(\'' + this.name + '\').offsetLeft+this.offsetWidth+(document.getElementById(\'' + this.name + '\').offsetWidth-this.offsetWidth)/2+\'px\';showMenu(\'' + this.menuItems[i].subMenu.name + '\');';
         }
         menuText += 'return true;" onMouseOut="this.style.backgroundColor=\'\';window.parent.status=\'\';';
         if(this.menuItems[i].subMenuExists)
         {
            menuText += 'hideMenu(\'' + this.menuItems[i].subMenu.name + '\');';
         }
	 menuText += 'return true;"><td><a ';
         if(this.menuItems[i].linkNewWin)
            menuText += 'target="_blank" ';
         menuText += 'href="' + this.menuItems[i].link + '" onMouseOver="top.status=\'' + this.menuItems[i].descriptor + '\';return true;" onClick="window.parent.title.document.formOverMenu.overMenu.value=0;';
         if(this.menuItems[i].subMenuExists)
         {
            menuText += 'window.parent.status=\'' + this.menuItems[i].descriptor + '\';';
         }
         else
         {
            menuText += 'window.parent.status=\'\';';
         }
         menuText += 'return true;">';
         menuText += this.menuItems[i].text + '</a></td>';
         if(this.menuItems[i].subMenuExists)
         {
            menuText += '<td align="right"><img src="images/arrow.gif"></td>';
         }
         else
         {
            menuText += '<td>&nbsp;</td>';
         }
         menuText += '</tr>';
      }
      menuText += '</table></div>';
      document.open();
      document.write(menuText);
      //alert(menuText);
      document.close();
   }
   var mnuSelected = '';
   function showMenu(menu)
   {
      document.getElementById(menu).style.visibility = 'visible';
      mnuSelected = menu;
   }
   function hideMenu(menu)
   {
      if(mnuSelected!='')
         document.getElementById(menu).style.visibility = 'hidden';
   }