﻿function mycarousel_initCallback(carousel) {
	jQuery('.jcarousel-control a').bind('click', function () {
		carousel.scroll(jQuery.jcarousel.intval(this.title));
		return false;
	});

	carousel.clip.hover(function () {
		carousel.stopAuto();
	}, function () {
		carousel.startAuto();
	});

};

// Ride the carousel...
jQuery(document).ready(function () {
	jQuery("#mycarousel").jcarousel({
		scroll: 1,
		auto: 4,
		wrap: 'circular',
		height: 288,
		width:683,
		initCallback: mycarousel_initCallback,
		// This tells jCarousel NOT to autobuild prev/next buttons
		buttonNextHTML: null,
		buttonPrevHTML: null
	});
}); 

