$(document).ready(function() 
		{
		
		$imgh = $(".texte_client img").attr("height");
		//alert ($imgh);
		if ($imgh > 440){
		$(".titres").css("margin-top",$imgh+5);
		/*alert ("margin-top",$imgh+5);*/
		
		
		}
			
$(".menu_haut .mm").mouseover( function() {
$(this).css("background","#000");
$(this).css("height",29);

$(this).find('.cont').css("display","block");
 

});

$(".menu_haut .mm").mouseout( function() {
$(this).css("background","#fff");
$(this).css("height",27);
$(this).find('.cont').css("display","none");
 
 
 });
 
 
 
 		});
 
jQuery(document).ready(function($)	{
//Menus
jQuery(".sous").mouseover( function() {
//$('.contenu_menu').hide();
$(this).css("background","#000");
$(this).find('.contenu_menu_contact').css("display","block");

});

								  
jQuery(".sous").mouseout( function() {

$(this).css("background","none");

$('.contenu_menu_contact').css("display","none");

 });
 
 
 jQuery(".lien_menu").mouseout( function() {
/*$('#gallery').hide();	*/
$('.photo_contact').css("display","none");
$('.photo_plan').css("display","none");
 });
 jQuery(".lien_menu").mouseover( function() {
/*$('#gallery').hide();	*/
$('.photo_contact').css("display","none");
$('.photo_plan').css("display","none");
 });
 
 
 //Contact
 
jQuery(".megamenu li").mouseover( function() {
$('.contenu_menu_contact').css("display","none");
jQuery(this).find('.contenu_menu_contact').css("display","block");


});

jQuery(".megamenu li").mouseout( function() {
 $('.contenu_menu_contact').css("display","none");


 });
 

 
 
 
 
 
 
 
 

jQuery(".megamenu li").mouseover( function() {
jQuery(this).css('background','black');
});

jQuery(".megamenu li").mouseout( function() {
jQuery(this).css('background','');
});


 /*Menu Contact et Plan*/
   jQuery('.photo_contact').css('display','none');
    jQuery('.photo_plan').css('display','none');
   
 
 jQuery(".adresse_contact").mouseover( function() {
jQuery('.photo_contact').css('display','none');
jQuery(this).prev().css('display','block');
jQuery(this).css({
'margin-top':'0px',
'padding-top':'28px'
});
jQuery(this).find('.titre_contact').css('color','#FFFFFF');
jQuery(this).find('.contenu_adresse_contact').css('color','#FFFFFF');
});
 

  jQuery(".adresse_contact").mouseout( function() {
jQuery('.photo_contact').css('display','none');
jQuery(this).find('.titre_contact').css('color','#B1B1B1');
jQuery(this).find('.contenu_adresse_contact').css('color','#979797');
});
  
  
  jQuery(".adresse_plan").mouseover( function() {
  jQuery(this).css({
 'margin-top': '0px',
 'padding-top': '28px'  
  });
jQuery('.photo_plan').css('display','none');
jQuery(this).prev().css('display','none');
 jQuery(this).find('.titre_plan').css('color','#FFFFFF');
jQuery(this).find('.contenu_adresse_plan').css('color','#FFFFFF');
});
  jQuery(".adresse_plan").mouseout( function() {
  
   jQuery('.photo_plan').css('display','none');
 jQuery(this).find('.titre_plan').css('color','#B1B1B1');
jQuery(this).find('.contenu_adresse_plan').css('color','#979797');
});
 
jQuery('.photo_contact').css('display', 'none');
 /*jQuery(".adresse_contact").mouseover(function(){
 
 jQuery(this).prev().css('display', 'block');

 

});

 jQuery(".adresse_contact").mouseout(function(){

});
*/

  jQuery(".adresse_plan").mouseover( function() {
  

	jQuery(this).prev().css('display','block');
 	
 
 
});




//trait
jQuery('.cat_realisations').find('.sous_titre_realisations:last .trait').css("display","none");


 jQuery.localScroll.hash({
		//target: '#container', // Could be a selector or a $ object too.
		queue:true,
		axis:'x',
		duration:1500
	});

$('#container').localScroll({
		//target: '#container ', // could be a selector or a jQuery object too.
		queue:true,
		 axis:'x',
		duration:1000,
		hash:true
		
	});
	$('.droite').localScroll({
		//target: '#container ', // could be a selector or a jQuery object too.
		queue:true,
		 axis:'x',
		duration:1000,
		hash:true
		
	});

	 

$('.liste_droite').localScroll({
		//target: '#container ', // could be a selector or a jQuery object too.
		queue:true,
		 axis:'x',
		duration:1000,
		hash:true
		
	});
	
	$('.liste_sous_client').localScroll({
		//target: '#container ', // could be a selector or a jQuery object too.
		queue:true,
		 axis:'x',
		duration:1000,
		hash:true
		
	});
	$('.liste_sous_client a').localScroll({
		//target: '#container ', // could be a selector or a jQuery object too.
		queue:true,
		 axis:'x',
		duration:1000,
		hash:true
		
	});
	
	
	
	$('#contenu').localScroll({
		//target: '#container ', // could be a selector or a jQuery object too.
		queue:true,
		 axis:'x',
		duration:1000,
		hash:true
		
	});
	$('.grand_titre_sommaire').localScroll({
		//target: '#container ', // could be a selector or a jQuery object too.
		queue:true,
		 axis:'x',
		duration:1000,
		hash:true
		
	});
	
	$('#top').localScroll({
		//target: '#container ', // could be a selector or a jQuery object too.
		queue:true,
		 axis:'x',
		duration:1000,
		hash:true
		
	});
	
	
  
$("body,html,document").animate({scrollTop:0}, 'slow');
 
 
 
 /*legende photo galerie*/
jQuery('.thumbs li').mouseover(function() {
jQuery(this).next().css("display","block");		
	  });
jQuery('.thumbs li').mouseout(function() {
  
jQuery(this).next().css("display","none");
	  });



//fleches

jQuery(".prev").click(function() { 
$('.lien_liste_droite').removeClass('select');
});
jQuery(".next").click(function() { 
$('.lien_liste_droite').removeClass('select');
});


jQuery(".prev1").hover(function() { 
	 jQuery(this).attr("src","img/phover.png");
	

	  },
      function() { 
 jQuery(this).attr("src","img/prev.png");

	  }
 );

jQuery(".next1").hover(function() { 
	jQuery(this).attr("src","img/nhover.png");
	

	  },
      function() { 
 jQuery(this).attr("src","img/next.png");

	  }
 );



 
 
 
	//galleire atelier
	
	 jQuery('div.navigation').css({'width' : '300px', 'float' : 'left'});
    jQuery('div.content').css('display', 'block');
				
			 
       var gallery = jQuery('#thumbs').galleriffic({
        delay:                     3000, // in milliseconds
        numThumbs:                 18, // The number of thumbnails to show page
        preloadAhead:              -1, // Set to -1 to preload all images
        enableTopPager:            false,
        enableBottomPager:         true,
        maxPagesToShow:            7,  // The maximum number of pages to display in either the top or bottom pager
		imageContainerSel:         '#slideshow',
		controlsContainerSel:      '#controls',
		captionContainerSel:       '#caption',
		loadingContainerSel:       '#loading',
        renderSSControls:          false, // Specifies whether the slideshow's Play and Pause links should be rendered
        renderNavControls:         false, // Specifies whether the slideshow's Next and Previous links should be rendered
        playLinkText:              'Play',
        pauseLinkText:             'Pause',
        prevLinkText:              'Previous',
        nextLinkText:              'Next',
        nextPageLinkText:          '>',
        prevPageLinkText:          '<',
        enableHistory:             false, // Specifies whether the url's hash and the browser's history cache should update when the current slideshow image changes
        enableKeyboardNavigation:  true, // Specifies whether keyboard navigation is enabled
        autoStart:                 false, // Specifies whether the slideshow should be playing or paused when the page first loads
        syncTransitions:           false, // Specifies whether the out and in transitions occur simultaneously or distinctly
        defaultTransitionDuration: 1000, // If using the default transitions, specifies the duration of the transitions
        onSlideChange:             undefined, // accepts a delegate like such: function(prevIndex, nextIndex) { ... }
        onTransitionOut:           undefined, // accepts a delegate like such: function(slide, caption, isSync, callback) { ... }
        onTransitionIn:            undefined, // accepts a delegate like such: function(slide, caption, isSync) { ... }
        onPageTransitionOut:       undefined, // accepts a delegate like such: function(callback) { ... }
        onPageTransitionIn:        undefined, // accepts a delegate like such: function() { ... }
        onImageAdded:              undefined, // accepts a delegate like such: function(imageData, jqueryli) { ... }
        onImageRemoved:            undefined  // accepts a delegate like such: function(imageData, jqueryli) { ... }
    });
	
			});
	 


