// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 6000;

// Duration of crossfade (seconds)
var crossFadeDuration1 = 3;
var crossFadeDuration2 = 3;

// Specify the image files
var Pic1 = new Array();
var Url1 = new Array();

Pic1[0] = 'img/sld/firma.jpg'
Pic1[1] = 'img/sld/scansione.jpg'
Pic1[2] = 'img/sld/workflow.jpg'
Pic1[3] = 'img/sld/wireless.jpg'

Url1[0] = '_NRmain.asp?q0=1&q1=16'
Url1[1] = '_NRmain.asp?q0=1&q1=66'
Url1[2] = '_NRmain.asp?q0=1&q1=12'
Url1[3] = '_NRmain.asp?q0=1&q1=21'

var Pic2 = new Array();
var Url2 = new Array();

Pic2[0] = 'img/sld2/T_plane.jpg'
Pic2[1] = 'img/sld2/B_sand.jpg'

Url2[0] = '_NRmain.asp?q0=1&q1=17'
Url2[1] = '_NRmain.asp?q0=1&q1=17'

var Pic3 = new Array();
var Url3 = new Array();

Pic3[0] = 'img/sld3/cage.jpg'
Pic3[1] = 'img/sld3/heart.jpg'
Pic3[2] = 'img/sld3/fortunecoockie.jpg'

Url3[0] = '_NRmain.asp?q0=1&q1=17'
Url3[1] = '_NRmain.asp?q0=1&q1=17'
Url3[2] = '_NRmain.asp?q0=1&q1=17'

var Pic4 = new Array();
var Url4 = new Array();

Pic4[0] = 'img/sld4/signature.jpg'
Pic4[1] = 'img/sld4/sand.jpg'
Pic4[2] = 'img/sld4/door.jpg'
Pic4[3] = 'img/sld4/walk.jpg'
Pic4[4] = 'img/sld4/tree.jpg'


Url4[0] = '_NRmain.asp?q0=1&q1=17'
Url4[1] = '_NRmain.asp?q0=1&q1=17'
Url4[2] = '_NRmain.asp?q0=1&q1=17'
Url4[3] = '_NRmain.asp?q0=1&q1=17'
Url4[4] = '_NRmain.asp?q0=1&q1=17'
// do not edit 307anything below this line
var j1 = 0;
var j2 = 0;
var j3 = 0;
var j4 = 0;

var p1 = Pic1.length;
var p2 = Pic2.length;
var p3 = Pic3.length;
var p4 = Pic4.length;

var preLoad1 = new Array();
var preLoad2 = new Array();
var preLoad3 = new Array();
var preLoad4 = new Array();

for (i1 = 0; i1 < p1; i1++) {
    preLoad1[i1] = new Image();
    preLoad1[i1].src = Pic1[i1];
}
for (i2 = 0; i2 < p2; i2++) {
    preLoad2[i2] = new Image();
    preLoad2[i2].src = Pic2[i2];
}
for (i3 = 0; i3 < p3; i3++) {
    preLoad3[i3] = new Image();
    preLoad3[i3].src = Pic3[i3];
}
for (i4 = 0; i4 < p4; i4++) {
    preLoad4[i4] = new Image();
    preLoad4[i4].src = Pic4[i4];
}

function runSlideShow() {
    if (document.all) {
        document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration1)";
        document.images.SlideShow1.filters.blendTrans.Apply();
    }
    document.images.SlideShow1.src = preLoad1[j1].src;
    document.getElementById('SlideUrl1').href = Url1[j1];
    if (document.all) {
        document.images.SlideShow1.filters.blendTrans.Play();
    }
    j1 = j1 + 1;
    if (j1 > (p1 - 1)) j1 = 0;
    //replicabile 1
    if (document.all) {
        if (document.images.SlideShow2) {
            document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration2)";
            document.images.SlideShow2.filters.blendTrans.Apply();
        }
    }
    if (document.images.SlideShow2) {
        document.images.SlideShow2.src = preLoad2[j2].src;
        document.getElementById('SlideUrl2').href = Url2[j2];
    }
    if (document.all) {
        if (document.images.SlideShow2) {
            document.images.SlideShow2.filters.blendTrans.Play();
        }
    }
    j2 = j2 + 1;
    if (j2 > (p2 - 1)) j2 = 0;
    //fine replicabile 1
        //replicabile 2
    if (document.all) {
        if (document.images.SlideShow3) {
            document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration2)";
            document.images.SlideShow3.filters.blendTrans.Apply();
        }
    }
    if (document.images.SlideShow3) {
        document.images.SlideShow3.src = preLoad3[j3].src;
        document.getElementById('SlideUrl3').href = Url3[j3];
    }
    if (document.all) {
        if (document.images.SlideShow3) {
            document.images.SlideShow3.filters.blendTrans.Play();
        }
    }
    j3 = j3 + 1;
    if (j3 > (p3 - 1)) j3 = 0;
    //fine replicabile 2
    //replicabile 3
    if (document.all) {
        if (document.images.SlideShow4) {
            document.images.SlideShow4.style.filter="blendTrans(duration=crossFadeDuration2)";
            document.images.SlideShow4.filters.blendTrans.Apply();
        }
    }
    if (document.images.SlideShow4) {
        document.images.SlideShow4.src = preLoad4[j4].src;
        document.getElementById('SlideUrl4').href = Url4[j4];
    }
    if (document.all) {
        if (document.images.SlideShow4) {
            document.images.SlideShow4.filters.blendTrans.Play();
        }
    }
    j4 = j4 + 1;
    if (j4 > (p4 - 1)) j4 = 0;
    //fine replicabile 3
    t = setTimeout('runSlideShow()', slideShowSpeed);
}

function go() {
    runSlideShow();
}

