/**
 * We use the initCallback callback
 * to assign functionality to the controls
 */
function feature_initCallback(carousel) {
	jQuery('#feature_next_button').bind('click', function() {
		console.log('next');
		carousel.next();
		jQuery(this).blur();
		return false;
	});

	jQuery('#feature_previous_button').bind('click', function() {
		console.log('prev');
		carousel.prev();
		jQuery(this).blur();
		return false;
	});
};

// Ride the carousel...
jQuery(document).ready(function() {
	jQuery("#feature").jcarousel({
		scroll: 4,
		initCallback: feature_initCallback,
		// This tells jCarousel NOT to autobuild prev/next buttons
		buttonNextHTML: null,
		buttonPrevHTML: null
	});
});