// JavaScript Document

//fonction de parcours des services dans la home page
/*jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
      scroll: 4
      });
});*/


jQuery(document).ready(function() {
    jQuery('#mycarouselreal').jcarousel();
});

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto: 8,
        wrap: 'last',
        scroll: 4,
        initCallback: mycarousel_initCallback
    });
});


jQuery(document).ready(function() {

 $('#sp_content').hide();

 $("a.ZoneCl").toggle(function(){

        $(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

    //Slide up and down on click
     // toggles the slickbox on clicking the noted link
  $('a.ZoneCl').click(function() {
 $('#sp_content').slideToggle(400);
 return false;
  });

});


