$(function() {  
  
  $(document).ready(function() {

// carousel partenaires
      $("#carousel").addClass("carouselActif");
      $("#holder_images").addClass("carouselActif");
			$("#carousel").html($("#holder_images").html()).carousel3d({
        control: 'button',	  																	// 'button', 'mouse', or  'continuous' control
        speed: 5,																					// speed of mouse or button.  use scale of 1-5
        radiusX: 400,																			// x radius of the carousel
        radiusY: 80,																				// y radius of the carousel
        centerX: $('#carousel').offset().left + $('#carousel').width()/2.4,																				// x position on the screen
        centerY: 750,																			// y position on the screen
        perspective: 45,																		// perspective of the image as it travels around the carousel
      	padding: 28, 																			// the number of padded items in between each icon.  
        																								// the more padding, the more precise the incremental movement,
        																								// however this also create a lot more calculations
        																								// to keep icons evenly spaced, the num of icons should be a multiple of the padding
        fadeEffect: 0,																			// fade icons as cycle to the back of the carousel
        textBox: 0	
      }); 


 
//slider programmes
    $('#s3').cycle({ 
      fx:       'scrollHorz', 
      timeout:  8000,  
      speed:  '1000', 
      next:   '#next3', 
      prev:   '#prev3' 
    });  
//FIN slider accueil
//slider accueil
    $('#s4').cycle({ 
      fx:       'fade', 
      timeout:  8000,  
      next:   '#next4', 
      prev:   '#prev4' 
      
    });   
//FIN

//slider programmes
    $('#s5').cycle({ 
      fx:       'scrollHorz', 
      timeout:  8000,  
      speed:  '1000', 
      next:   '#next5', 
      prev:   '#prev5' 
    });  
//FIN 
//slider programmes
    $('#s6').cycle({ 
      fx:       'scrollHorz', 
      timeout:  8000,  
      speed:  '1000', 
      next:   '#next6', 
      prev:   '#prev6' 
    });  
//FIN 
//slider programmes
    $('#s7').cycle({ 
      fx:       'scrollHorz', 
      timeout:  8000,  
      speed:  '1000', 
      next:   '#next7', 
      prev:   '#prev7' 
    });  
//FIN 

//slider activites
$("div#slider1").codaSlider();
//fin slider

//expand box page activites
    //hide the all of the element with class msg_body
    $(".msg_body").hide();
    //toggle the componenet with class msg_body
    $(".msg_head").click(function() {
      $(this).next(".msg_body").slideToggle(600);
    });
//FIN expand box page internet

  });       
});


