jQuery(document).ready(function() {
//Effetto scroll top
	jQuery('a#backtotop').click(function(e) {
		e.preventDefault();
		var target = jQuery(this).attr('href');
		jQuery('html, body').animate({
			scrollTop: jQuery(target).offset().top
		}, 400);
	});
	
//Effetto Credits
	jQuery('#credits').hover(function(){
		jQuery(this).stop().animate({ height: '70px' }, 150);
		jQuery("#credits span").stop().animate({opacity: 1}, "slow");  
	}, function(){
		jQuery(this).stop().animate({ height: '51px' }, 350);
		jQuery("#credits span").stop().animate({opacity: 0}, "slow");  
	});
});

//Effetto Logo 
    jQuery(function() {  
    jQuery("#logo").css("opacity","1.0");  
    jQuery("#logo").hover(function () {  
    jQuery(this).stop().animate({opacity: 0.7, width: '339px' }, "slow");  
    },  
    function () {   
    jQuery(this).stop().animate({opacity: 1, width: '329px' }, "slow");  
    });  
    });
	
//Effetto fade applicato al menu 
    jQuery(function() {
    jQuery(".top-menu li a").not(".top-menu li li a").hover(function () {
    jQuery(".top-menu li ul").css("opacity","0");		
    jQuery(".top-menu li:hover ul").stop().animate({opacity: 1}, "slow");  
    },  
    function () {   
    });  
    });



	


