jQuery.easing['BounceEaseOut'] = function(p, t, b, c, d) {
	if ((t/=d) < (1/2.75)) {
		return c*(7.5625*t*t) + b;
	} else if (t < (2/2.75)) {
		return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
	} else if (t < (2.5/2.75)) {
		return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
	} else {
		return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
	}
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        easing: 'BounceEaseOut',
        animation: 1000,
        scroll: 1
    });
    if (jQuery('.withTabs').size() > 0) {
      jQuery('.withTabs .goto').tabs();
    }
});


/*jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        easing: 'BounceEaseOut',
        animation: 2000,
        scroll: 1,
        auto: 10,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
    if (jQuery('.withTabs').size() > 0) {
      jQuery('.withTabs .goto').tabs();
    }
});

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();
    });
};*/


function clignotement2(){
  var zoom2Element = document.getElementById("zoom2");
  if (zoom2Element !=null)
  { 
   if (zoom2Element.style.display=="block") 
        zoom2Element.style.display="none"; 
  else 
       zoom2Element.style.display="block"; 
  }
}
// mise en place de l appel régulier de la fonction toutes les 0.5 secondes 
setInterval("clignotement2()", 500);


