//función para mostrar/ocultar una capa
function showHideVis(pID, pBol)   {
  var obj = document.getElementById(pID);
  var vis  = (pBol) ? "visible" : "hidden";
  obj.style.visibility = vis;
}

function showHide(pID, pBol, pMarco)   {
  if(pMarco != null)
    var obj = top.frames[pMarco].document.getElementById(pID);
  else
    var obj = document.getElementById(pID);
  var vis  = (pBol) ? "block" : "none";
  obj.style.display = vis;
}

function texto()  {document.getElementById("iMarco").src = "bufalosTxt.html"}
function apadrina()  {document.getElementById("iMarco").src = "apadrina.html"}

//oculta la imagen inicial de cada item de menú y da medidas y visibilidad a un marco en el que carga la galería cuya url viene por parámetro.
function getGaleria(pUrl)  {
  document.getElementById("iMarcoGaleria").height = parent.document.getElementById("iMarco").height - 50;
  document.getElementById("iMarcoGaleria").width = parent.document.getElementById("iMarco").width -50 ;
  document.getElementById("imgInicio").style.display = "none";
  document.getElementById("iMarcoGaleria").style.display = "block";
  document.getElementById("iMarcoGaleria").src = pUrl;
}
//para poner una still con su video
function playDc(pBot, pStill, pAnim) {
  if(document.getElementById(pBot).innerHTML == "play!") {
    document.getElementById(pStill).style.display = "none";
    document.getElementById(pAnim).style.display = "block";
    document.getElementById(pBot).innerHTML = "stop!"
  } else if(document.getElementById(pBot).innerHTML == "stop!") {
    document.getElementById(pStill).style.display = "block";
    document.getElementById(pAnim).style.display = "none";
    document.getElementById(pBot).innerHTML = "play!"
  }
}
function changeImg(pId, pImg)	{
    document.getElementById(pId).src = pImg;
}