// Funzioni per lo Slide Show delle immagini

var slideShowSpeed = 4500;
var crossFadeDuration = 3;
var Pic = new Array();

var imgLink = 'img/camere';
var imgLink2 = 'img/servizi';
var idImg = 1;
var popLink = imgLink + idImg + 'big.jpg';

var t;
var j = 0;
var p = 0;

var preLoad = new Array();
		

function runSlideShow()  {
    if (document.all)  {
        document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
        document.images.SlideShow.filters.blendTrans.Apply();
    }
    document.images.SlideShow.src = preLoad[j].src;
    if (document.all) {
        document.images.SlideShow.filters.blendTrans.Play();
    }
    j = j + 1;
    if (j > (p - 1)) 
        j = 0;
		
    popLink = imgLink + idImg + 'big.jpg';
    idImg++;
    if (idImg > 3) {
      idImg = 1;
    }
		
    t = setTimeout('runSlideShow()', slideShowSpeed);
}

function runSlideShow2()  {
    if (document.all)  {
        document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
        document.images.SlideShow.filters.blendTrans.Apply();
    }
    document.images.SlideShow.src = preLoad[j].src;
    if (document.all) {
        document.images.SlideShow.filters.blendTrans.Play();
    }
    j = j + 1;
    if (j > (p - 1)) 
        j = 0;
		
    popLink = imgLink2 + idImg + 'big.jpg';
    idImg++;
    if (idImg > 3) {
      idImg = 1;
    }
		
    t = setTimeout('runSlideShow2()', slideShowSpeed);
}