/* Author ED : */

$(document).ready(function(){	
	
	// gestion des url ancres + style css actif
	var url = $(location).attr("href").split("#");
	
	 $("#primary .js a").each(function(){ 
		 var hrefMenuA = $(this).attr("href").split("#");
		 if (hrefMenuA[1] == url[1] ){
			 $(this).addClass("actif");
			 }
		 });
	$("#primary .js a").click(function(){
		$("#primary .js a").each(function(){
			$(this).removeClass("actif");
			});
		$(this).addClass("actif");
		});


		// overflow
	$('#page-wrap').css('overflow','hidden');
	
		// localScroll
	$("#primary").localScroll({
   target:'#page-wrap',
   axis:'x'
	});
	// redmiensionnement de la page
	$(".home #page-wrap").css("width","700px").animate({ 
    width: "100%"
  	}, 1500 ); 
	
	//scroll des news
    $(function(){
    $("ul#news-list").liScroll({travelocity: 0.08});
    });
	
    // zoombox
	$(".zoombox").zoombox();
	// dailymotion cloud

	


	

});























