function mycarousel_initCallback(carousel) {
	jQuery('#mycarouselnav a').each(
		function(intIndex) {
			$(this).bind('click', function() {
				carousel.scroll(intIndex + 1);
				$(this).addClass('active');
				if (intIndex == 0) $(this).addClass('first');
				$activeLink.removeClass('active first');
				$activeLink = $(this);
				return false;
			});
		}
	);
};

// Ride the carousel...
jQuery(document).ready(function() {
	
	$activeLink = jQuery('#mycarouselnav :first-child a');
	$activeLink.addClass('active first');
								
	jQuery("#mycarousel").jcarousel({
		initCallback: mycarousel_initCallback,
		scroll: 1,
		vertical: true,
		// This tells jCarousel NOT to autobuild prev/next buttons
		buttonNextHTML: null,
		buttonPrevHTML: null
	});
});