function products_initCallback(carousel) {
  // Disable autoscrolling if the user clicks the prev or next button.
  carousel.buttonNext.bind('click', function() {
    carousel.startAuto();
  });
  carousel.buttonPrev.bind('click', function() {
    carousel.startAuto();
  });
  // 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('#carousel-products').jcarousel({
    vertical: false,
    start: 1,
    offset: 1,
    scroll: 3,
    visible: 6,
    animation: 1000, //possible values: 'slow', 'fast', [milliseconds], or 0
    easing: null,
    //auto: 7, // seconds before autoscrolling
    wrap: 'both', // possible values: 'first', 'last', 'both', 'circular'
    initCallback: products_initCallback
  });
});