$().ready(function() {
		$j = jQuery.noConflict();
		
		// diapo accueil
		$j('#fullpage').cycle({ 
		fx:      'fade', 
  		timeout: '5000',
		pause: 1,
    	slideExpr: '.slide'
		});
		
		// Jlabel sur input newsletter
		$j('#search').jLabel();
		$j('#subscribeform_email').jLabel();
		$j('#nom').jLabel();
		$j('#mail').jLabel();
		
		// Fade sur les images de la galerie

		$j('div.gallery a img').animate({'opacity' : 0.8}).hover(function() {
				$j(this).stop().animate({'opacity' : 1});
				}, function() {
				$j(this).stop().animate({'opacity' : 0.8});
		});
		
		// Click pour descendre la boxsearch
		$j('a#btnsearch').click(function() {
			$j('#globalsearch').animate({ top: '0' })
		});
		
		// Ouverture des rubriques du book
		$j('.list-clients ul').hide();
		$j('.list-clients h2').click(function() {
			$j(this).next('ul').slideToggle();
		});
		
		$j('.clients').hide();
		$j('h2.open').click(function() {
			$j(this).next('.clients').slideToggle();
		});
		
		
		
		// Scroll
		$j('a[href^=#]').click(function() {
		cible=$j(this).attr('href');
		if($j(cible).length>=1){
		hauteur=$j(cible).offset().top;
		}
		else{
		hauteur=$j("a[name="+cible.substr(1,cible.length-1)+"]").offset().top;
		}
		$j('html,body').animate({scrollTop: hauteur}, 1000);
		return false;
		});
	});
