
$(document).ready(function() {
		 // hides the slickbox as soon as the DOM is ready
		  $('.newsletter-rollover').hide();
		 // shows the slickbox on clicking the noted link  
		  $('.news').hover(function() {
		  $('.newsletter-rollover').show('slow');
			return false;
		  });
		 // hides the slickbox on clicking the noted link  
		  $('.fermer').click(function() {
		  $('.newsletter-rollover').hide('slow');
			return false;
  });


        //impros
	    $('.photo-list li').hover(function() {
			  $(this).find('.survol').stop(true, true).fadeIn('slow');
			  },function() {
			  $(this).find('.survol').stop(true, true).fadeOut('slow');
  });
	  
	  //projets : images (onglet)
	   $('.img-list li').hover(function() {
			  $(this).find('.roll').stop(true, true).fadeIn('slow');
			  },function() {
			  $(this).find('.roll').stop(true, true).fadeOut('slow');
  });
	   
	  //espace presse
	  $('.dossier li').hover(function() {
			  $(this).find('.telecharger').stop(true, true).fadeIn('fast');
			  },function() {
			  $(this).find('.telecharger').stop(true, true).fadeOut('fast');
  });
	  
	  //plus video
	  $('.plus-video-inner li').hover(function() {
			  $(this).find('.rollreserve').stop(true, true).fadeIn('slow');
			  },function() {
			  $(this).find('.rollreserve').stop(true, true).fadeOut('slow');
  });
	  
	  //croquis
	  $('.croquis-img li').hover(function() {
			  $(this).find('.rollCroqui').stop(true, true).fadeIn('fast');
			  },function() {
			  $(this).find('.rollCroqui').stop(true, true).fadeOut('fast');
  });
	  
	  $(".open-panel").live('click', function(){
				$("#panel, .croquis" )
				.animate({
					width: "263px"
				}, "fast");
				
				$(this).addClass('close-panel');
				$(this).removeClass('open-panel');
				//$(".panel_button").toggle();
  });	
	
	   $(".close-panel, .close").live('click', function(){
				$("#panel, .croquis").animate({
					width: 0
				}, "fast");
				$('.panel_button').addClass('open-panel');
				$('.panel_button').removeClass('close-panel');
  });
		//roll liste
		$(".liste tr").not('.table-header').hover
				  (function(){$(this).addClass('rollListe');
				  },
				 function(){$(this).removeClass('rollListe');
  });
 		  
});
