newimg_1 = new Image; newimg_1.src = "imgrot/foto1.jpg"
newimg_2 = new Image; newimg_2.src = "imgrot/foto2.jpg"
newimg_3 = new Image; newimg_3.src = "imgrot/foto3.jpg"
newimg_4 = new Image; newimg_4.src = "imgrot/foto4.jpg"
newimg_5 = new Image; newimg_5.src = "imgrot/foto5.jpg"
newimg_6 = new Image; newimg_6.src = "imgrot/foto6.jpg"
var i_strngth=110;

function showimage(i) { 
	if (i_strngth <= 110) {
		document.all.dFondo.style.backgroundImage = "url('imgrot/foto"+i+".jpg')"; 
		document.all.dFondo.style.filter="alpha(opacity="+i_strngth+")'";
		document.all.dFondo.style.opacity=i_strngth/100;
		i_strngth=i_strngth+10;
	}
return i_strngth;
}

function hideimage(i) {
	if (i_strngth >= 10) {
		document.all.dFondo.style.backgroundImage = "url('imgrot/foto"+i+".jpg')"; 
		document.all.dFondo.style.filter="alpha(opacity="+i_strngth+")'"; //IE6
		document.all.dFondo.style.opacity=i_strngth/100;
		i_strngth=i_strngth-10;
	}
return i_strngth;
}

var indice=1;
var retardador=0;
var ocultar = true;
var mostrar = false;

function Evento(){
		retardador++;
		if (retardador<45){
			return;	
		}
		if (ocultar){
			if (hideimage(indice)<10){
				mostrar = true;
				ocultar=false;
				indice++;
				
			}
		}
		if (mostrar){
			if (indice==7){indice=1}
			if (showimage(indice)>110) {
				mostrar = false;
				ocultar=true;
				retardador=0;
			}
		}
}

function Empezar(){
setInterval('Evento()', 120);
}