jQuery.fn.exists = function(){return this.length>0;}

$(document).ready(function() {

    if($("#mycarousel").exists()) {
		$("#mycarousel").jcarousel({
            wrap: 'circular'
        });
	}
   
    $("a.fancybox").attr('rel', 'gallery').fancybox({cyclic: true, titleShow: false});
	$("#mycarousel li a").fancybox();
	
	$(".menu_lettera a").hover(function() {
		$(this).next('.menu_titolo').show();
	}, function() {
		$(this).next('.menu_titolo').hide();
	});

});
