jQuery(document).ready(function() {  

	try{
		jQuery("#menu_first_page").css('marginRight','-250px');
  jQuery('#show_menu').click(function() {
  	var MenuToShow = jQuery("#menu_first_page");
  	if (parseInt(MenuToShow.css('marginRight')) == 0){
  		MenuToShow.animate({
  			'marginRight': '-250px'
  		},1000);
  		jQuery('#show_menu').html("AFFICHER LE MENU");
  	}else{
  		MenuToShow.animate({
  			'marginRight': '0px'
  		},500);
  		jQuery('#show_menu').html("FERMER LE MENU");
  	}
  });
    }
    catch(err){
    
    }
    
    try{
		jQuery('#dnews').dnews({showdetail: false, controlsalwaysvisible: true,controls:true});
    }
    catch(err){
    
    }
    
    try{
		jQuery('#d2news').dnews({showdetail: false, controlsalwaysvisible: true,controls:true});
    }
    catch(err){
    
    }
    
    try{
		jQuery('#main').tinyscrollbar();
    }
    catch(err){
    
    }
  
    try{
		jQuery('#slider').bxSlider({
    		auto: true,
    		autoControls: true,
    		pause: 8000,
    		autoDelay: 5000,
    		autoStart: true
  		});
    }
    catch(err){
    
    }

  
});
