<!--

// Precarga de imágenes
if (document.images) {

  var boton1_off = new Image();
  boton1_off.src = "imagenes/home1/Home-02.png";
  var boton1_on = new Image();
  boton1_on.src = "imagenes/home4/OS-02.png";
  var rboton2_off = new Image();
  rboton2_off.src = "imagenes/home1/Home-03.png";
  var rboton2_on = new Image();
  rboton2_on.src = "imagenes/home4/OS-03.png";
  var rboton3_off = new Image();
  rboton3_off.src = "imagenes/home1/Home-04.png";
  var rboton3_on = new Image();
  rboton3_on.src = "imagenes/home4/OS-04.png";  

  var boton2_off = new Image();
  boton2_off.src = "imagenes/home1/Home-03.png";
  var boton2_on = new Image();
  boton2_on.src = "imagenes/home2/Forma-03.png";
  var pfboton1_off = new Image();
  pfboton1_off.src = "imagenes/home1/Home-02.png";
  var pfboton1_on = new Image();
  pfboton1_on.src = "imagenes/home2/Forma-02.png";
  var pfboton3_off = new Image();
  pfboton3_off.src = "imagenes/home1/Home-04.png";
  var pfboton3_on = new Image();
  pfboton3_on.src = "imagenes/home2/Forma-04.png";   

  var boton3_off = new Image();
  boton3_off.src = "imagenes/home1/Home-04.png";
  var boton3_on = new Image();
  boton3_on.src = "imagenes/home3/Mtto-04.png";
  var pmboton1_off = new Image();
  pmboton1_off.src = "imagenes/home1/Home-02.png";
  var pmboton1_on = new Image();
  pmboton1_on.src = "imagenes/home3/Mtto-02.png";  
  var pmboton2_off = new Image();
  pmboton2_off.src = "imagenes/home1/Home-03.png";
  var pmboton2_on = new Image();
  pmboton2_on.src = "imagenes/home3/Mtto-03.png";  
  
//

  var imagen1_off = new Image();
  imagen1_off.src = "imagenes/home1/Home-01.png";
  var imagen1_on = new Image();
  imagen1_on.src = "imagenes/home4/OS.png";

  var imagen2_off = new Image();
  imagen2_off.src = "imagenes/home1/Home-01.png";
  var imagen2_on = new Image();
  imagen2_on.src = "imagenes/home2/Forma-01.png";

  var imagen3_off = new Image();
  imagen3_off.src = "imagenes/home1/Home-01.png";
  var imagen3_on = new Image();
  imagen3_on.src = "imagenes/home3/Mtto-01.png";  
  
}

// Carga de imagen cuando el ratón pasa por encima
function entra1(boton) {
  if (document.images) {
    if (boton == 'boton1') {
      document.images[boton].src = boton1_on.src;
      document.images["boton2"].src = rboton2_on.src;
      document.images["boton3"].src = rboton3_on.src;
	} else if (boton == 'boton2') {
	  document.images[boton].src = boton2_on.src;
      document.images["boton1"].src = pfboton1_on.src;
      document.images["boton3"].src = pfboton3_on.src;	  
	} else {
	  boton == 'boton3';
	  document.images[boton].src = boton3_on.src;
	  document.images["boton1"].src = pmboton1_on.src;	  
      document.images["boton2"].src = pmboton2_on.src;		  
	}
  }
}

// Carga de imagen cuando el ratón abandona el área de la imagen
function sale1(boton) {
  if (document.images) {
    if (boton == 'boton1') {
      document.images[boton].src = boton1_off.src;
	  document.images["boton2"].src = rboton2_off.src;
	  document.images["boton3"].src = rboton3_off.src;	  
    } else if (boton == 'boton2') {
	  document.images[boton].src = boton2_off.src;
	  document.images["boton1"].src = pfboton1_off.src;
	  document.images["boton3"].src = pfboton3_off.src;		  
	} else {
	  boton == 'boton3';
	  document.images[boton].src = boton3_off.src;
	  document.images["boton1"].src = pmboton1_off.src;			  
	  document.images["boton2"].src = pmboton2_off.src;  
	}
  }
}

/////////////////////////////////////////////////////////////////////////////////

function entra_principal1(imagen) {
  if (document.images) {
    if (imagen == 'imagen1') {
      document.images[imagen].src = imagen1_on.src;
	  //document.images[imagen].style.visibility = "visible";
	} else if(imagen == 'imagen2') {
	  imagen = 'imagen1';
	  document.images[imagen].src = imagen2_on.src;
	} else {
	  imagen = 'imagen1';
	  document.images[imagen].src = imagen3_on.src;	
	}
  }
}

//

function sale_principal1(imagen) {
  if (document.images) {
    if (imagen == 'imagen1') {
      document.images[imagen].src = imagen1_off.src;
    } else if(imagen == 'imagen2') {
	  imagen = 'imagen1';
	  document.images[imagen].src = imagen2_off.src;
	} else {
	  imagen = 'imagen1';
	  document.images[imagen].src = imagen3_off.src;
	}
  }
}

//-->
