/**
	 * We use the initCallback callback
	 * to assign functionality to the controls
	 */
	function mycarousel_initCallback(carousel) {
	    jQuery('.controller 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();
        });
	};
	
	// Ride the carousel...
	jQuery(document).ready(function() {
	    jQuery("#newscontent").jcarousel({
	        scroll: 1,
	        auto: 5,
	        wrap: 'last',
	        // This tells jCarousel NOT to autobuild prev/next buttons
	        buttonNextHTML: null,
	        buttonPrevHTML: null,
	        initCallback: mycarousel_initCallback
	    });
	});
