function mycarousel_initCallback(carousel)
{
    jQuery('.jcarousel_control a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

$(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto:7,
        scroll:1,
				wrap:'last',
        initCallback: mycarousel_initCallback,
				 // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
});
