	/*************************************************
** Parallax
**************************************************/

$(function() {
    
$('div.img1').scrollingParallax({
    staticSpeed : 0.7,
	staticScrollLimit : false
});

$('div.img2').scrollingParallax({
    staticSpeed : 2,
	staticScrollLimit : false
});

$('div.img3').scrollingParallax({
    staticSpeed : 1.8,
	staticScrollLimit : false
});

$('div.img4').scrollingParallax({
    staticSpeed : 1.2,
	staticScrollLimit : false
});

$('div.img5').scrollingParallax({
    staticSpeed : 0.6,
	staticScrollLimit : false
});
/*************************************************
** Tooltip
**************************************************/

					      $('#share img').tipsy({gravity: 's'});
					      $('#moodboard img, #modeles img, #modeles_deux img, #modeles_trois img').tipsy({gravity: $.fn.tipsy.autoNS});
					      $('.addthis_toolbox a').tipsy({gravity: 'n'});
});
	
/*************************************************
** Fade & scroll to top
**************************************************/	
	$(document).ready(function(){
						   $(".footer img").fadeTo("slow", 0.6); 
						   $(".footer img").hover(function(){
						   $(this).fadeTo("slow", 1.0); 
						   },function(){
						   $(this).fadeTo("slow", 0.6); 
							   	});

	
						  $("a[href='#top']").click(function() {
                          $("html, body").animate({ scrollTop: 0 }, "slow");
                          return false;
                          });
						   						   
/*************************************************
** Fancy Box
**************************************************/
							   


			$("a[rel=diaporama], a[rel=diaporama2], a[rel=diaporama3]").fancybox({
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'padding'		: '0',
				'titlePosition' 	: 'outside',
				'overlayColor' 	: '#fff',
				'overlayOpacity':  '0.9',
				'centerOnScroll' 	: 'true',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (currentIndex + 1) + '/' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

/*************************************************
** Lazy load
**************************************************/
         
          $(".content img").lazyload({
             placeholder : "grey.gif",
             effect      : "fadeIn",
			 failurelimit : 10
          });
 
 
 
 /* fin document ready */ });
 

/*************************************************
** Analytics
**************************************************/			 
			 
 var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-21542999-6']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
  

