/**
 * We use the initCallback callback
 * to assign functionality to the controls
 */
function carousel01_initCallback(carousel) {
    jQuery('.jcarousel-control a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
		carousel.startAuto(0);
		carousel.stopAuto();
        return false;
    });

};

// Ride the carousel...
jQuery(document).ready(function() {
    jQuery("#carousel01,").jcarousel({
		scroll: 1,
		auto: 7,
		wrap: 'last',
        initCallback: carousel01_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
});

