// Funciones para manejo de las tabs y fotos del FID.

var isGecko = navigator.userAgent.indexOf('Gecko') != -1;
// -----------------------------------------
function initDiv(thediv) {
  if (isGecko) {

//     if (thediv == 'body1') {
//        document.getElementById(thediv).style.position = 'auto';
//     }
//     else {
//       document.getElementById(thediv).style.position = 'absolute';
//       // document.getElementById(thediv).style.top = 'auto';
//     };
    document.getElementById(thediv).style.position = 'auto';
    document.getElementById(thediv).style.visibility = 'hidden';
  }
  else {
    document.getElementById(thediv).style.display = 'none';
  };

};

// -----------------------------------------
function show_body(thediv) {


  var midiv;
  var i;


  var nrodivs=document.body.getElementsByTagName("DIV").length;
  for (i=1;i<nrodivs;i++) {
    midiv = "body" + i;
    if (document.getElementById(midiv)) {
      var mibody = document.getElementById(midiv);

      if (midiv == thediv) {


        if (isGecko) {
          mibody.style.visibility = "visible";

          // mibody.focus();
        }
        else {
          mibody.style.display = "inline";
        };

        // alert('activando:' + midiv)

      }
      else {
        if (isGecko) {
          mibody.style.visibility = "hidden";
          mibody.style.left = '-600px';
        }
        else {
          mibody.style.display = "none";
        };
      };

    };
  };

};

