$(document).ready(function() {
	
		// Slider central
		$("#diapo").easySlider({
			auto: 		true,
			continuous: true,
			speed: 		500,
			pause:		5000,
			numeric: 	true
		});
		
	// Dropdown menu
		$(document).ready(function(){

	$("#mrj-menu-global").removeClass("js-off");
	$("#mrj-menu-global").addClass("js-on");

	$("#mrj-menu-contenu").hide();

	$("#kl-corps").prepend($("#mrj-menu-global"));

	$("#mrj-bt-ouvrir").toggle(
	
		function(){ 
			$("#mrj-bt-ouvrir").toggleClass( "actif" );
			$("#mrj-menu-contenu").slideDown("fast"); 
		},
		function(){ 
			$("#mrj-menu-contenu").slideUp("fast",function(){$("#mrj-bt-ouvrir").toggleClass( "actif" )})
		}
	
	);

});
	
	// Boxes bas de page qui slident
	$('.boxgrid.caption').hover(function(){

		$(".cover", this).stop().animate({top:'29px'},{queue:false,duration:200});
		$(this).css('backgroundPosition', '0 -106px');
		
	}, function() {
		$(this).css('backgroundPosition', '0 0');
		$(".cover", this).stop().animate({top:'210px'},{queue:false,duration:200});

	});

	   $('#url-mrj').change( function() {
	      location.href = $(this).val();
	   });
	 
	});

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1820497-21']);
  _gaq.push(['_setDomainName', 'none']);
  _gaq.push(['_setAllowLinker', true]);
  _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);
  })();
