// JavaScript Document


//Aquí cambia los nombres de las imágenes por las tuyas. 
var imagenes=new Array() 

imagenes[0]=new Image (380,288); 
imagenes[0].src="fotos/portada_produ_gratu_1.jpg" 
imagenes[1]=new Image (399,291); 
imagenes[1].src="fotos/portada_produ_gratu_2.jpg" 
imagenes[2]=new Image (248,289); 
imagenes[2].src="fotos/portada_produ_gratu_3.jpg" 
imagenes[3]=new Image (215,366); 
imagenes[3].src="fotos/portada_produ_gratu_4.jpg" 




cont=0 

var imagenes1=new Array() 

imagenes1[0]=new Image (380,288); 
imagenes1[0].src="fotos/portada_produ_minim_1.jpg" 
imagenes1[1]=new Image (399,291); 
imagenes1[1].src="fotos/portada_produ_minim_2.jpg" 
imagenes1[2]=new Image (248,289); 
imagenes1[2].src="fotos/portada_produ_minim_3.jpg" 
imagenes1[3]=new Image (215,366); 
imagenes1[3].src="fotos/portada_produ_minim_4.jpg" 

cont1=0 






function presImagen() 
{ 
if (document.all){ 
document.getElementById('foto').filters.blendTrans.apply() 
document.getElementById('foto').src=imagenes[cont].src 
document.getElementById('foto').filters.blendTrans.play() 
} 
else 
    { 
    document.images.foto.src = imagenes[cont].src 
    } 
if (cont < imagenes.length-1) 
{cont ++} 
else 
{cont=0} 
tiempo=window.setTimeout('presImagen()',5000) 
 //cada 5000 milisegundos (5 seg.) cambia la imagen. 
//cambia la cantidad por el tiempo que quieras que transcurra entre imagen e imagen 


} 


function presImagen1() 
{ 
if (document.all){ 
document.getElementById('foto1').filters.blendTrans.apply() 
document.getElementById('foto1').src=imagenes1[cont1].src 
document.getElementById('foto1').filters.blendTrans.play() 
} 
else 
    { 
    document.images.foto1.src = imagenes1[cont1].src 
    } 
if (cont1 < imagenes1.length-1) 
{cont1 ++} 
else 
{cont1=0} 
tiempo=window.setTimeout('presImagen1()',5000) 
 //cada 5000 milisegundos (5 seg.) cambia la imagen. 
//cambia la cantidad por el tiempo que quieras que transcurra entre imagen e imagen 
} 







