$(function() {
  
   var li = $('#menu li:not(.actif)');
  
  function liMouseOver(e) {
	  e.stop();
	  e.animate({
			marginTop : '0'
		}, 250 );
  }
  
  function liMouseOut(e) {
	  e.stop();
	  e.animate({
			marginTop : '54px'
		}, 250 );
  }
  
  li.bind('mouseover', function() { liMouseOver( $(this )) }).bind( 'mouseout', function() { liMouseOut( $(this )) });

});

$(window).load(function () {

	if( $('#contentDiaporama img').length && $('#contentDiaporama img').length > 1 ) {
		$( function () { $('#contentDiaporama').fade({ delay:2000, timeout:5000 }); });
	}else{
		$('#contentDiaporama img:first-child').css('display', 'block');
	}
	
	if( $('#contentDiapoPhilo img').length && $('#contentDiapoPhilo img').length > 1 ) {
		$( function () { $('#contentDiapoPhilo').fade({ delay:2000, timeout:5000 }); });
	}else{
		$('#contentDiapoPhilo img:first-child').css('display', 'block');
	}
	
	
});