	//MUESTRA LA IMAGEN EN GRANDE AL PULSAR SOBRE SU ICONO.
		var actual = 0;
		var imgpulsada = 0;
		var imgDescarga = 0; // imagen actual que se descargara mediante el flash.

		function loadImageSiguiente(){
			if(imgpulsada != 0){
				actual = imgpulsada;
				imgpulsada = 0;
			}
			if(actual < preloadimages.length-1){
				actual++;			
				for (j=0; j < preloadimages.length; j++){
					if(j == actual){
						document.getElementById('img'+actual).style.backgroundColor = '#333333';
					}else{
						document.getElementById('img'+j).style.backgroundColor = '#FFFFFF';
					}
				}
				document.getElementById('mainIMG').src = preloadimages[actual].src+".jpg";
				document.getElementById('mainIMG').title = preloadimages[actual].title;
				imgDescarga = actual;
			}else{
				return;
			}		
		}

		function loadImageAnterior(){			
			if(imgpulsada != 0){
				actual = imgpulsada;
				imgpulsada = 0;
			}			
			if(actual > 0){
				actual--;
				for (k=0; k < preloadimages.length; k++){
					if(k == actual){
						document.getElementById('img'+actual).style.backgroundColor = '#333333';
					}else{
						document.getElementById('img'+k).style.backgroundColor = '#FFFFFF';
					}
				}
				document.getElementById('mainIMG').src = preloadimages[actual].src+".jpg";
				document.getElementById('mainIMG').title = preloadimages[actual].title;
				imgDescarga = actual;
			}else{
				return;
			}		
		}
		function loadImage(indice){			
			imgpulsada = indice;
			actual = 0;
			for (h=0; h < preloadimages.length; h++){
				if(h == imgpulsada){
					document.getElementById('img'+imgpulsada).style.backgroundColor = '#333333';
				}else{
					document.getElementById('img'+h).style.backgroundColor = '#FFFFFF';
				}
			}			
			document.getElementById('mainIMG').src = preloadimages[indice].src+".jpg";
			document.getElementById('mainIMG').title = preloadimages[indice].title;
			imgDescarga = indice;
		}
		
		//PINTA TODAS LAS IMAGENES AL CARGAR LA PAGINA.	
		function cargarImagenInicial(){
			document.getElementById('mainIMG').src = preloadimages[0].src+".jpg";
			document.getElementById('mainIMG').title = preloadimages[0].title;
			for (i=0; i < preloadimages.length; i++){
				document.getElementById('img'+i).src = preloadimages[i].src+"s.jpg";
			}
		}