/*Script jQuery Ulisse di inizializzazione*/


function fadeImage()  {
	
		var active;
		var next;
		
		$active = $('#Template_Slideshow img.active');
    	$next = $active.next();
		
		if($active.is('#Template_Slideshow img:last-child')){
	 		$next = $('#Template_Slideshow img:first');
	     }
	
		$next.addClass('next');
		
		$('#Template_Slideshow img').css({opacity: 1.0});
		$active.animate({opacity: 0.0}, 1000, function() {
     	$active.removeClass('active');
		$next.removeClass('next');
		$next.addClass('active');
		
       	});0
}


$(document).ready(function() {

	setInterval( 'fadeImage()', 5000 );
	
});


/*

$(document).ready(
				    			  
	function() {
		
		$("a.GalleryGroup").fancybox({'overlayShow': true, 'overlayOpacity': 0.7 });
		
		$("a#inline").fancybox ({'hideOnContentClick': true, 'overlayShow': true, 'overlayOpacity': 0.7, 'frameWidth': 300, 'frameHeight': 300 });

		$('#Menu_Main li').append('<div class="Menu_Main_Over"><\/div>');
		$('#Menu_Main li').hover(
			function() {
				$(this).children('div').fadeIn('1000');	
			}, 
			function() {
				$(this).children('div').fadeOut('1000');	
			}
		).click (
			function () {
				$(this).addClass('Menu_Main_Click');
			}
		);
		
	}
);

*/

