function rollover(p_imagenfinal, p_evento, lang){
    // Ruta de la imagen
    var ruta;
	
    // Declaramos todas las fotos
	var foto=new Array();
	foto[1]=new Image();
	foto[1].src="../img/"+lang+"/botones/boton1 gris-"+lang+".jpg";
	foto[2]=new Image();
	foto[2].src="../img/"+lang+"/botones/boton2 gris-"+lang+".jpg";
	foto[3]=new Image();
	foto[3].src="../img/"+lang+"/botones/boton3 gris-"+lang+".jpg";
	foto[4]=new Image();
	foto[4].src="../img/"+lang+"/botones/boton4 gris-"+lang+".jpg";
	foto[5]=new Image();
	foto[5].src="../img/"+lang+"/botones/boton5 gris.jpg";



	foto[6]=new Image();
	foto[6].src="../img/"+lang+"/botones/boton6 gris.jpg";
	foto[7]=new Image();
	foto[7].src="../img/"+lang+"/botones/boton7 gris-"+lang+".jpg";
	foto[8]=new Image();
	foto[8].src="../img/"+lang+"/botones/boton8 gris-"+lang+".jpg";
	foto[9]=new Image();
	foto[9].src="../img/"+lang+"/botones/boton9 gris.jpg";
	foto[10]=new Image();
	foto[10].src="../img/"+lang+"/botones/boton10 gris.jpg";
	foto[11]=new Image();
	foto[11].src="../img/"+lang+"/botones/boton11_gris-"+lang+".jpg";
	

	foto[12]=new Image();
	foto[12].src="../img/"+lang+"/botones/boton1 azul-"+lang+".jpg";
	foto[13]=new Image();
	foto[13].src="../img/"+lang+"/botones/boton2 azul-"+lang+".jpg";
	foto[14]=new Image();
	foto[14].src="../img/"+lang+"/botones/boton3 azul-"+lang+".jpg";
	foto[15]=new Image();
	foto[15].src="../img/"+lang+"/botones/boton4 verde-"+lang+".jpg";
	foto[16]=new Image();
	foto[16].src="../img/"+lang+"/botones/boton5 verde.jpg";
	foto[17]=new Image();
	foto[17].src="../img/"+lang+"/botones/boton6 verde.jpg";
	foto[18]=new Image();
	foto[18].src="../img/"+lang+"/botones/boton7 verde-"+lang+".jpg";
	foto[19]=new Image();
	foto[19].src="../img/"+lang+"/botones/boton8 verde-"+lang+".jpg";
	foto[20]=new Image();
	foto[20].src="../img/"+lang+"/botones/boton9 verde.jpg";
	foto[21]=new Image();
	foto[21].src="../img/"+lang+"/botones/boton10 verde.jpg";
	foto[22]=new Image();
	foto[22].src="../img/"+lang+"/botones/boton11_verde-"+lang+".jpg";

    // Hacemos el rollover
	if (p_evento == "dentro")
	{
		//alert(p_imagenfinal);
		document.getElementById(p_imagenfinal).src = foto[p_imagenfinal].src;
		//alert(foto[p_imagenfinal].src);
		cambiaColorFila(p_imagenfinal, p_evento);
	}
	else // OnMouseOut
	    {
			/************************************************************************************
			   Si p_imagenfinal es diferente de 0 quiere decir que se ha entrado en la función
			   en el onLoad de la página, y en ese caso, sin este if, peta.
			*************************************************************************************/         
			if (p_imagenfinal != 0)
			{
				/*alert("pimagenfinal ==> " + p_imagenfinal);
				alert("SUMA: " + (p_imagenfinal + 10));*/
				//alert("p_imagenfinal:" + p_imagenfinal + foto[p_imagenfinal].src);
				document.getElementById(p_imagenfinal + 11).src = foto[p_imagenfinal].src;
				//alert("pimagenfinal ==> " + (p_imagenfinal + 10) + " <==> " + document.getElementById(p_imagenfinal + 10).src);
				cambiaColorFila(p_imagenfinal, p_evento);
			}
		}
	
}


/*
 * Cambia el color de la fila que contiene las diferentes gamas de colores
 */
function cambiaColorFila(p_idcelda, p_evento)
{	
	if (p_evento == "dentro")
	{
		// Pintamos la celda activa de la línea de colores. Siempre se le 
		// suma 14 para que corresponda con el id de celda adecuado
		//alert(p_idcelda);
		
		if (p_idcelda != 22) 
		{ 
		  //alert(p_idcelda);
		  if (p_idcelda == 17 || p_idcelda == 18 || p_idcelda == 19 || p_idcelda == 20 || p_idcelda == 21)
		  { 
 		    document.getElementById(p_idcelda + 14).bgColor = "#6ABD1F";   
 		  }
 		  else
 		  { 
 		    document.getElementById(p_idcelda + 13).bgColor = "#6ABD1F";
		  }
		}
		else // Si estamos dentro de virtualización
		{ 
		  document.getElementById(30).bgColor = "#6ABD1F";  	
		}
		
		
	}
	else
	{	
		// Pintamos la celda del color inicial. Le sumamos 24 para que
		// corresponda con el id de celda adecuado. El valor que recibe por onMouseOut
		// es 10 veces menos que el que recibe por onMouseOver
		if (p_idcelda != 11) // Si estamos dentro de virtualización
		{
		  if (p_idcelda == 6 || p_idcelda == 7 || p_idcelda == 8 || p_idcelda == 9 || p_idcelda == 10)
		  {
 		    document.getElementById(p_idcelda + 25).bgColor = "#90E147";
 		  }
 		 else
 		 {
 		    document.getElementById(p_idcelda + 24).bgColor = "#90E147";
 		 }
 			
		}
		else
		{
		  document.getElementById(30).bgColor = "#90E147";
		}
	}
    
}
