/* JavaScript Salumificio Angeloni - edit: ToniDiGrigio.it - 2010 */

//TYPO CONTROLLO
Cufon.replace('#MenuWrapper_ita, #MenuWrapper_eng', { hover: true });

// MAIN CONTROLLO
$(document).ready(function() {
    
	// CYCLE BANNER
	$('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	
	//FANCY
	$("a#open_fc").fancybox({
		'titleShow'		: false
	});
	
	$("#privacy").fancybox({
		//'width'				: '75%',
		//'height'			: '75%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
	$("a[rel=group]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
		}
	});


	
	//FADE
	$(".lente").fadeTo("slow", 0.5); // This sets the opacity of the thumbs to fade down to 30% when the page loads
		$(".box_prd").hover(function(){
		$(".lente").fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
		},function(){
		$(".lente").fadeTo("slow", 0.5); // This should set the opacity back to 30% on mouseout
	});


	
});
