function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder').src = whichpic.href;
  if (whichpic.parentNode.id) {
   var x = document.getElementById(whichpic.parentNode.parentNode.id).getElementsByTagName("div");
   for (var i=0; i<x.length; i++) if (x.item(i).className != 'grafico') x.item(i).className = 'boton'; 
   document.getElementById(whichpic.parentNode.id).className = 'boton_off';
  }
  return false;
 } else {
  return true;
 }
}

function showPicDesc (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('texto_desc').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('texto_desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
 }
 if (whichpic.parentNode.id) {
  var x = document.getElementById(whichpic.parentNode.parentNode.id).getElementsByTagName("div");
  for (var i=0; i<x.length; i++) if (x.item(i).className != 'grafico') x.item(i).className = 'boton'; 
  document.getElementById(whichpic.parentNode.id).className = 'boton_off';
 }
  return false;
 } else {
  return true;
 }
}

function showPicDescTwo (whichpic, whichdesc) {
 if (document.getElementById) {
  document.getElementById('placeholder').src = whichpic.href;
  if (whichdesc) {
   document.getElementById('texto_desc_1').childNodes[0].nodeValue = whichpic.title;
   document.getElementById('texto_desc_2').childNodes[0].nodeValue = ' ';
  } else {
   document.getElementById('texto_desc_2').childNodes[0].nodeValue = whichpic.title;
   document.getElementById('texto_desc_1').childNodes[0].nodeValue = ' ';
  }
  if (whichpic.parentNode.id) {
	var addClass = '';
	if ( whichpic.parentNode.parentNode.id == 'botonera_min') addClass = '_min';
	var x = document.getElementById(whichpic.parentNode.parentNode.id).getElementsByTagName("div");
	for (var i=0; i<x.length; i++) if (x.item(i).className != 'grafico') x.item(i).className = 'boton'+addClass; 
	document.getElementById(whichpic.parentNode.id).className = 'boton_off'+addClass;
  }
  return false;
 } else {
  return true;
 }
}

function showPicDescStyle (whichpic, whichstyle) {
 if (document.getElementById) {
  document.getElementById('placeholder').src = whichpic.href;
  document.getElementById('texto_desc_1').childNodes[0].nodeValue = whichpic.title;

  if (whichpic.id == 'noborder') document.getElementById('placeholder').style.border = '0';
  else document.getElementById('placeholder').style.border = '1px dashed black';

  if (whichstyle) {
   document.getElementById('botonera_ver').style.display = 'block';
   document.getElementById('botonera_hor').style.display = 'none';
   var x = document.getElementById('botonera_ver').getElementsByTagName("div");
   for (var i=0; i<x.length; i++) x.item(i).className = 'boton'; 
  } else {
   document.getElementById('botonera_ver').style.display = 'none';
   document.getElementById('botonera_hor').style.display = 'block';
   var x = document.getElementById('botonera_hor').getElementsByTagName("div");
   for (var i=0; i<x.length; i++) x.item(i).className = 'boton'; 
  }
  document.getElementById(whichpic.parentNode.id).className = 'boton_off';
  return false;
 } else {
  return true;
 }
}