document.observe("dom:loaded", function() {
    //questa nel caso ci vogliano i puntini sotto per passaggio varie foto
	var objCar = new Carousel('carousel-wrapper',$$('#carousel-content .slide'),$$('a.carousel-control'),'carousel-control',{
		duration: 0.5,
	        transition: 'sinoidal',
            effect : 'scroll',
	        auto: false,
	        frequency: 7,
	        wheel: false,
	        circular: false,
	        resumeAutoAfterClick: 2,
visibleSlides: 3

		      //,questa nel caso ci vogliano i puntini sotto per passaggio varie foto
               /* afterMove:function() {
                    if(objCar.current){
                            currentIndex = objCar.current._index;
                    }else{
                            currentIndex = 1;
                    }       	
                    $$("#carouselMenu .carousel-jumper").each(function(e){
                            e.removeClassName('carousel-selected');
                    });

                    if ($$("#carouselMenu .carousel-jumper")[currentIndex])
                            $$("#carouselMenu .carousel-jumper")[currentIndex].addClassName('carousel-selected');	
                    else
                        $$("#carouselMenu .carousel-jumper")[0].addClassName('carousel-selected');	
                }*/
	});	
});




var Img2On = new Image();
Img2On.src = "/uploads/73/31/73316f8404584f1f41755e177764ab55/fxdx_roll.png";//immagine1.jpg è l'imagine che vedremo quando l'immagine prende il fuoco
var Img2Off = new Image();
Img2Off.src = "/uploads/f8/d7/f8d72fe4ffd0d123d7de8eb189721870/fxdx.png";//immagine2.jpg è l'immagine che vedremo quando l'immagine perde il fuoco

var Img3On = new Image();
Img3On.src = "/uploads/44/28/44280ad5a07b701473eec2a4745af339/fxsn_roll.png";
var Img3Off = new Image();
Img3Off.src = "/uploads/29/69/29697aaab0b8d0336f2bc21045ce79e5/fxsn.png";


function MOver(picimage)//funzione che si attiva con OnMouseOver
{
	Picture_Over = eval(picimage +"On.src")
	document[picimage].src = Picture_Over
}
function MOut(picimage)//funzione che si attiva con OnMouseOut
{
	Picture_Out = eval(picimage +"Off.src")
	document[picimage].src = Picture_Out
}


