  var arrMenusById = [];


  function MouseOver(menuId) {
    if(arrMenusById[menuId] == null) arrMenusById[menuId] = 0;
    arrMenusById[menuId]++;
    document.getElementById('menu' + menuId).style.visibility='visible';
  }


  function MouseOut(menuId) {
    arrMenusById[menuId]--;
    if(arrMenusById[menuId] == 0) {
      document.getElementById('menu' + menuId).style.visibility='hidden';
    }
  }

