function mycarousel_initCallback(carousel) {

    jQuery('#button-next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#button-prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};


jQuery.easing['EaseInOutCubic'] = function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},


// Ride the carousel...
jQuery(document).ready(function() {
    jQuery("#carousel-content").jcarousel({
        scroll: 1,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
		easing: 'EaseInOutCubic',
		wrap: 'both',
		animation: 1700,
		auto: 4,
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
});

