    var preLoad = new Array();
    var Picture = new Array();

    Picture[1] = '/img/photos/foto_botti.jpg'; 
    Picture[2] = '/img/photos/foto_castello.jpg';
    Picture[3] = '/img/photos/foto_lab.jpg';
    Picture[4] = '/img/photos/foto_uva.jpg';
    Picture[5] = '/img/photos/foto_uva2.jpg';
    Picture[6] = '/img/photos/foto_vigneto.jpg';

    var SlideShowSpeed = 5000;
    var CrossFadeDuration = 2000;

    var preloadCounter;
    var diashowCounter = 1;
    var PictureArrayLength = Picture.length-1;

    for (preloadCounter = 1; preloadCounter < PictureArrayLength+1;  preloadCounter++){
        preLoad[preloadCounter] = new Image();
        preLoad[preloadCounter].src = Picture[preloadCounter];
    }

	preLoadover = new Image();
	preLoadover.src = '/img/photos/fascia_a.png';

    window.addEvent('load', function(){
            var hideOpacity = new Fx.Tween($('imgover'), {
                                'duration': CrossFadeDuration,
                                'link': 'ignore',
                                'onComplete': function(){
                                        diashowCounter = diashowCounter + 1;
                                        if (diashowCounter > (PictureArrayLength)) diashowCounter=1;
                                        $('imgover').setProperty('src', preLoad[diashowCounter].src);
                                        showOpacity.start.delay(SlideShowSpeed, showOpacity, ['opacity', 0 , 1]);
                                    }
                                });

            var showOpacity = new Fx.Tween($('imgover') , {
                                'duration': CrossFadeDuration,
                                'link': 'ignore',
                                'onComplete': function(){
                                        diashowCounter = diashowCounter + 1;
                                        if (diashowCounter > (PictureArrayLength)) diashowCounter=1;
                                        $('imgunder').setProperty('src', preLoad[diashowCounter].src);
                                        hideOpacity.start.delay(SlideShowSpeed, hideOpacity, ['opacity', 1 , 0]);
                                    }
                                });
            function runSlideShow(){
                $('imgover').setProperty('src',preLoad[diashowCounter].src);
                diashowCounter = diashowCounter + 1;
                if(diashowCounter > (PictureArrayLength))
                    diashowCounter = 1;
                $('imgunder').setProperty('src',preLoad[diashowCounter].src);
                hideOpacity.start('opacity',1,0);
                currOpacity = 0;
            }

            runSlideShow();




    });
