isN4 = document.layers;
var t0, t1, t2

// Gruppo0 di immagini
var Speed0 = 3111;
var j0 = 0;
var Fade0 = 50;
var Pic0 = new Array();
Pic0[0] = '/portale/immagini/fotoArotazione/foto1.jpg';
Pic0[1] = '/portale/immagini/fotoArotazione/foto4.jpg';
Pic0[2] = '/portale/immagini/fotoArotazione/foto7.jpg';
var p0 = Pic0.length;
var preLoad0 = new Array();
for (i0 = 0; i0 < p0; i0++){
    preLoad0[i0] = new Image();
    preLoad0[i0].src = Pic0[i0];
}

// Gruppo1 di immagini
var Speed1 = 3333;
var j1 = 0;
var Fade1 = 100;
var Pic1 = new Array();
Pic1[0] = '/portale/immagini/fotoArotazione/foto2.jpg';
Pic1[1] = '/portale/immagini/fotoArotazione/foto5.jpg';
Pic1[2] = '/portale/immagini/fotoArotazione/foto8.jpg';
var p1 = Pic1.length;
var preLoad1 = new Array();
for (i1 = 0; i1 < p1; i1++){
    preLoad1[i1] = new Image();
    preLoad1[i1].src = Pic1[i1];
}

// Gruppo2 di immagini
var Speed2 = 3555;
var j2 = 0;
var Fade2 = 200;
var Pic2 = new Array();
Pic2[0] = '/portale/immagini/fotoArotazione/foto3.jpg';
Pic2[1] = '/portale/immagini/fotoArotazione/foto6.jpg';
Pic2[2] = '/portale/immagini/fotoArotazione/foto9.jpg';
var p2 = Pic2.length;
var preLoad2 = new Array();
for (i2 = 0; i2 < p2; i2++){
    preLoad2[i2] = new Image();
    preLoad2[i2].src = Pic2[i2];
}


function Show0(){
    // Gruppo0 di immagini
    if (document.all){
        document.images.SlideShow0.style.filter="blendTrans(duration=Fade0)";
        document.images.SlideShow0.filters.blendTrans.Apply();
    }
    if (!isN4) document.images.SlideShow0.src = preLoad0[j0].src;
    if (isN4)  document.layers['Layer0'].document.images['SlideShow0'].src = preLoad0[j0].src;
    if (document.all) document.images.SlideShow0.filters.blendTrans.Play();
    j0 = j0 + 1;
    if (j0 > (p0-1)) j0=0;
    
    t0 = setTimeout('Show0()', Speed0);
}
function Show1(){
    // Gruppo1 di immagini
    if (document.all){
        document.images.SlideShow1.style.filter="blendTrans(duration=Fade1)";
        document.images.SlideShow1.filters.blendTrans.Apply();
    }
    if (!isN4) document.images.SlideShow1.src = preLoad1[j1].src;
    if (isN4)  document.layers['Layer1'].document.images['SlideShow1'].src = preLoad1[j1].src;
    if (document.all) document.images.SlideShow1.filters.blendTrans.Play();
    j1 = j1 + 1;
    if (j1 > (p1-1)) j1=0;

    t1 = setTimeout('Show1()', Speed1);
}
function Show2(){
    // Gruppo2 di immagini
    if (document.all){
        document.images.SlideShow2.style.filter="blendTrans(duration=Fade2)";
        document.images.SlideShow2.filters.blendTrans.Apply();
    }
    if (!isN4) document.images.SlideShow2.src = preLoad2[j2].src;
    if (isN4)  document.layers['Layer2'].document.images['SlideShow2'].src = preLoad2[j2].src;
    if (document.all) document.images.SlideShow2.filters.blendTrans.Play();
    j2 = j2 + 1;
    if (j2 > (p2-1)) j2=0;

    t2 = setTimeout('Show2()', Speed2);
}
