function mycarousel_initCallback(carousel) {
	jQuery('.jcarousel-control li').bind('click', function() {
		carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
		return false;
	}); 
};

jQuery(document).ready(function() {
   jQuery("#banner").jcarousel({
       scroll: 1,
	   auto: 5,
       wrap: 'both',
       initCallback: mycarousel_initCallback,
       // This tells jCarousel NOT to autobuild prev/next buttons
       itemVisibleInCallback: {
         onAfterAnimation: function(c, o, i, s) {
           $('.jcarousel-control a').removeClass('selected');
           $('.jcarousel-control a:eq('+i+')').addClass('selected');
         }
       }
   });
});
