function magazine_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();
  });
};
function std_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 store_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-magazine').jcarousel({
    vertical: false,
    start: 1,
    offset: 1,
    scroll: 1,
    visible: 1,
    animation: 200, //possible values: 'slow', 'fast', [milliseconds], or 0
    easing: null,
    auto: 10, // seconds before autoscrolling
    wrap: 'last', // possible values: 'first', 'last', 'both', 'circular'
    initCallback: magazine_initCallback
  });*/
  jQuery('#carousel-goodandevil').jcarousel({
    vertical: false,
    start: 1,
    offset: 1,
    scroll: 3,
    visible: 3,
    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: std_initCallback
  });
  jQuery('#carousel-children').jcarousel({
    vertical: false,
    start: 1,
    offset: 1,
    scroll: 3,
    visible: 3,
    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: std_initCallback
  });
  jQuery('#carousel-marriage').jcarousel({
    vertical: false,
    start: 1,
    offset: 1,
    scroll: 3,
    visible: 3,
    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: std_initCallback
  });
  jQuery('#carousel-media').jcarousel({
    vertical: false,
    start: 1,
    offset: 1,
    scroll: 3,
    visible: 3,
    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: std_initCallback
  });
  jQuery('#carousel-answers').jcarousel({
    vertical: false,
    start: 1,
    offset: 1,
    scroll: 3,
    visible: 3,
    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: std_initCallback
  });
  jQuery('#carousel-bible').jcarousel({
    vertical: false,
    start: 1,
    offset: 1,
    scroll: 3,
    visible: 3,
    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: std_initCallback
  });
  jQuery('#carousel-store-new').jcarousel({
    vertical: true,
    start: 1,
    offset: 1,
    scroll: 1,
    visible: 5,
    animation: 500, //possible values: 'slow', 'fast', [milliseconds], or 0
    easing: null,
    //auto: 10, // seconds before autoscrolling
    wrap: 'last', // possible values: 'first', 'last', 'both', 'circular'
    initCallback: store_initCallback
  });
  jQuery('#carousel-store-specials').jcarousel({
    vertical: true,
    start: 1,
    offset: 1,
    scroll: 1,
    visible: 5,
    animation: 500, //possible values: 'slow', 'fast', [milliseconds], or 0
    easing: null,
    //auto: 7, // seconds before autoscrolling
    wrap: 'last', // possible values: 'first', 'last', 'both', 'circular'
    initCallback: store_initCallback
  });
  jQuery('#carousel-store-top').jcarousel({
    vertical: true,
    start: 1,
    offset: 1,
    scroll: 1,
    visible: 5,
    animation: 500, //possible values: 'slow', 'fast', [milliseconds], or 0
    easing: null,
    //auto: 15, // seconds before autoscrolling
    wrap: 'last', // possible values: 'first', 'last', 'both', 'circular'
    initCallback: store_initCallback
  });
});