function mycarousel_ingredients_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);
    });

	jQuery('.carusel-ingredients .btn_next').bind('click', function() {
        carousel.next();
        return false;
    });
	jQuery('.carusel-ingredients .btn_prev').bind('click', function() {
        carousel.prev();
        return false;
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

function mycarousel_buying_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);
    });

	jQuery('.carusel-buying .btn_next').bind('click', function() {
        carousel.next();
        return false;
    });
	jQuery('.carusel-buying .btn_prev').bind('click', function() {
        carousel.prev();
        return false;
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

function mycarousel_customerfave_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);
    });

	jQuery('.carusel-customerfave .btn_next').bind('click', function() {
        carousel.next();
        return false;
    });
	jQuery('.carusel-customerfave .btn_prev').bind('click', function() {
        carousel.prev();
        return false;
    });

    // 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-leftcolumn-buyingsection').jcarousel({
        //auto:3,
		scroll: 1,
        wrap: 'circular',
		buttonNextHTML: null,
        buttonPrevHTML: null,
        initCallback: mycarousel_buying_initCallback
    });

	jQuery('#mycarousel-leftcolumn-ingredients').jcarousel({
        //auto:3,
		scroll: 1,
        wrap: 'circular',
		buttonNextHTML: null,
        buttonPrevHTML: null,
        initCallback: mycarousel_ingredients_initCallback
    });

	jQuery('#mycarousel-leftcolumn-customerfave').jcarousel({
        //auto:3,
		scroll: 1,
        wrap: 'circular',
		buttonNextHTML: null,
        buttonPrevHTML: null,
        initCallback: mycarousel_customerfave_initCallback
    });


});

