$(document).ready( function () { 	

	$('.voceChef, .vocePlanners, .voceDealers, .banner_progetto_mese').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 0);
	  $(this).hover(function () {
	  	$(this) . css("cursor" , "pointer");
	    $span.stop().fadeTo(500, 1);
	  }, function () {
	  	$(this) . css("cursor" , "default");
	    $span.stop().fadeTo(500, 0);
	  });
	});
	
	// Gestione slide Service
	$('.contenitore_effetto2').hover(function(){
		  var distanza = $(this).outerWidth();
		  $(this).find('.immagine2').animate({ left : '-'+distanza },{queue:false,duration:500});
	  }, function(){
		  $(this).find('.immagine2').animate({ left : '0px' },{queue:false,duration:500});
	  });      
	  
	  $('.contenitore_effetto3').hover(function(){
		  var distanza = $(this).outerHeight();
		  $(this).find('.immagine3').animate({ top : distanza },{queue:false,duration:500});
	  }, function(){
		  $(this).find('.immagine3').animate({ top : '0px' },{queue:false,duration:500});
	  });      
	  
	  $('.contenitore_effetto4').hover(function(){
		 	// var distanza = $(this).outerWidth(); // originale
			var distanza = $(this).outerWidth() + 35; // bug solo per questo layout
		  $(this).find('.immagine4').animate({ top : '-' + distanza },{queue:false,duration:500}
			);
	  }, function(){
		  $(this).find('.immagine4').animate({ top : '0px' },{queue:false,duration:500});
	  });	 
	
}); 
