////////////////////////////////////////////////////////////////////////////////
// Menu de Entrada:
////////////////////////////////////////////////////////////////////////////////
function fullScreen(theURL) {
                 window.open(theURL, '', 'width=1004, height=675, fullscreen=no, scrollbars=no, top=0, left=0, titlebar=no, status=1');
}
////////////////////////////////////////////////////////////////////////////////
// Menu de Temas:
////////////////////////////////////////////////////////////////////////////////
function Vetea(strDest) {
  document.location = 'temas/'+strDest+'/index.html';
}
function Navega(strDest,docDest) {
  document.location = 'temas/tema'+strDest+'/navigation.html?dest='+docDest;
}
function Salir() {
  window.close();
}
////////////////////////////////////////////////////////////////////////////////
// Menu desplegable:
////////////////////////////////////////////////////////////////////////////////
function OpenMenu(intMenu) {
  var strMen = "menu"+intMenu;
  var strCs = "cs"+intMenu;
  var strImg = "imagenes/foto"+intMenu+"on.jpg";
  var obj = document.getElementById(strMen);
  var obj2 = document.getElementById('activemenu');
  if (obj2.value == 0) {
      if (obj.style.visibility == 'hidden') {
          obj.style.visibility = 'visible';
      } 
      if (document.getElementById(strCs).src != strImg) {
          document.getElementById(strCs).src = strImg;
      }
      obj2.value = intMenu;
  }
}
function CloseMenu() {
  var obj = document.getElementById('activemenu');
  intMenu = obj.value;
  if (intMenu > 0) {
  var strMen = "menu"+intMenu;
  var strCs = "cs"+intMenu;
  var strImg = "imagenes/foto"+intMenu+".jpg";
  var obj = document.getElementById('checkmenu');
  if (obj.value == 0) {
    document.getElementById(strCs).src = strImg;
    var obj = document.getElementById(strMen);
    obj.style.visibility = 'hidden';
    var obj = document.getElementById('activemenu');
    obj.value = 0;
  }
  }
}
function OverMenu(intValue) {
  var obj = document.getElementById('checkmenu');
  var obj2 = document.getElementById('activemenu');
  if (String(intValue) != String(obj2.value)) {
  if (intValue != 0) {
    CloseMenu();
  }
  }
  obj.value = intValue;
}
function OutMenu() {
  var obj = document.getElementById('checkmenu');
  obj.value = 0;
}
