//retardo entre imagenes en la reproduccion automatica (milisegundos)
var retardo_rotacion = 3000;

//indice imagen inicial
actual = 0  ;

//array imagenes a mostrar
var imagen= new Array();
imagen[0]="img/prod/170402.jpg";
imagen[1]="img/prod/030101.jpg";
imagen[2]="img/prod/p22_AIC25.jpg";
imagen[3]="img/prod/130101.jpg";

imagen[4]="img/prod/c03_sierra_ECT.jpg";
imagen[5]="img/prod/c02_Comp_muestras.jpg";
imagen[6]="img/prod/c01_SC500.jpg";
imagen[7]="img/prod/c05_portamuestras.jpg";

imagen[8]="img/prod/c06_acanalador.jpg";
imagen[9]="img/prod/c08_PT_48.jpg";
imagen[10]="img/prod/010112.jpg";
imagen[11]="img/prod/ag05_C1.jpg";

imagen[12]="img/prod/ag01_ABR_ENS_sutherland.jpg";
imagen[13]="img/prod/020103.jpg";
imagen[14]="img/prod/170206.jpg";
imagen[15]="img/prod/020101.jpg";

imagen[16]="img/prod/p16_rigidimetro.jpg";
imagen[17]="img/prod/090401.jpg";
imagen[18]="img/prod/220103.jpg";
imagen[19]="img/prod/p21_Global_Estandar_gst2.jpg";

imagen[20]="img/prod/p27_Ink_Scanner.jpg";
imagen[21]="img/prod/pm06_prensa_corta_manual.jpg";
imagen[22]="img/prod/070101.jpg";
imagen[23]="img/prod/0708xx.jpg";

imagen[24]="img/prod/pt21_valley.jpg";

//realiza reproduccion automatica
function reproducir() {
//	actual = (actual == imagen.length-1) ? 0 : actual+1 ;
 	actual = aleatorio(0,imagen.length);
	document.images.visor.src = imagen[actual]  ;
	window.setTimeout("reproducir()", retardo_rotacion);
}

//aleatorio
function aleatorio(inferior,superior){
    numPosibilidades = superior - inferior
    aleat = Math.random() * numPosibilidades
    aleat = Math.round(aleat)
    return parseInt(inferior) + aleat
}
