// ALTURA DE DIV MENU DINAMICA SEGUN TAMAŅO DE VENTANA//
function HeightDiv()
    {
           document.getElementById("Cont").style.height        = document.body.clientHeight - 225;
    }
	window.onresize=HeightDiv;
// Script para efecto onMouseOver.
/* Version 7.0 by ALD 03/04/2005 */

  var BROWSER_VALIDO = false;
  if ( (navigator.appName == "Netscape") || (navigator.appName == "Microsoft Internet Explorer") ) {
  	if ( (parseInt(navigator.appVersion) >= 5) || (navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6') > 0) ) {
	    BROWSER_VALIDO = true;
	  };
  };

  var verok = 1; //version adecuada del navigator.
  browserName = navigator.appName;
  browserVer = parseInt(navigator.appVersion);
  if ((browserName == "Netscape" && browserVer >= 3)
     || (browserName == "Microsoft Internet Explorer" && browserVer >= 4) ) {
    verok = 1;
  } else {
    verok = 0;
  };

  var imagidx = 'none'; // Imagen inicialmente seleccionada.
  var nomoff = '';  // Nombre del boton que hay que apagar despues.

  function findEle(nom) {
    var i;
    if (document[nom]) {
      return document[nom];
    };
    if (document.layers) {
      for(i=0; i < document.layers.length; i++) {
        // alert('entro find ' + eval('document.bodyNode.document.' + nom.substring(1, nom.length) + '.document.' + nom + '.src') + ' ' + nom);
        if (document.layers[i].document[nom]) {
          return document.layers[i].document[nom];
        }else if (eval('document.bodyNode.document.' + nom.substring(1, nom.length) + '.document.' + nom)) {
          return eval('document.bodyNode.document.' + nom.substring(1, nom.length) + '.document.' + nom);
        };
      };
    }else{
      if (document.all) {if (document.all[nom]) { return document.all[nom]; }; };
      if (document.getElementById(nom)) { return document.getElementById(nom); };
    };
  }; // findEle


  function bot_on(nom) {
    var x;
    if ((verok == 1) && (nom != 'none') && (nom != imagidx)) {
      x = findEle(nom);
      if (x) {
        x.className = 'botmenutaga botmenuon';
        x = findEle(nom + 'imgon');
        if (x) { x.style.visibility = 'visible'; };
        x = findEle(nom + 'imgoff');
        if (x) { x.style.visibility = 'hidden'; };
        return true;
      };
    };
  };

  function bot_of(nom) {
    var x;
    if ((verok == 1) && (nom != imagidx) && (nom != 'none')) {
      x = findEle(nom);
      if (x) {
        x.className = 'botmenutaga botmenuoff';
        x = findEle(nom + 'imgoff');
        if (x) { x.style.visibility = 'visible'; };
        x = findEle(nom + 'imgon');
        if (x) { x.style.visibility = 'hidden'; };
        return true;
      };
    };
  }; // bot_of

  function bot_ac(nom) {
    var x;
    var xoff;
    if ((verok == 1) && (nom != 'none')) {
      x = findEle(nom);
      
      if (x) {
        // Apago boton anterior.
        if (nomoff != '') {
          xoff = findEle(nomoff);
          if (xoff) {
            xoff.className = 'botmenutaga botmenuoff';
            xoff = findEle(nomoff + 'imgoff');
            if (xoff) { xoff.style.visibility = 'visible'; };
            xoff = findEle(nomoff + 'imgon');
            if (xoff) { xoff.style.visibility = 'hidden'; };
          };
        };
        // Registro nuevo boton para apagar.
        nomoff = nom;
        // Enciendo el nuevo boton.
        x.className = 'botmenutaga txtbuttonon';
        x = findEle(nom + 'imgon');
        if (x) { x.style.visibility = 'visible'; };
        x = findEle(nom + 'imgoff');
        if (x) { x.style.visibility = 'hidden'; };
        imagidx = nom;
        return true;
      };
    };
  }; // bot_ac
