function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
	jQuery('.numbering').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
		carousel.startAuto(0);
        return false;
    });
	
	jQuery('.next_button').bind('click', function() {
        carousel.next();
		carousel.startAuto(0);
        return false;
    });

    jQuery('.prev_button').bind('click', function() {
        carousel.prev();
		carousel.startAuto(0);
        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('#featured_area').jcarousel({
        auto: 2,
		scroll: 1,
        wrap: 'last',
		initCallback: mycarousel_initCallback
    });
});
