/**
 * TC jCarousel Module Auto-scroll
 *
 * Default style for the jCarousel plugin.  Slightly modified by TemplateCodes, otherwise
 * default with the distribution of jCarousel.
 *
 * Software for 68 Classifieds - Adept Marketing S.A.R.L.
 *
 * @copyright Copyright (c) 2009, TemplateCodes.com (Adept Marketing S.A.R.L.) All Rights Reserved.
 * @link http://www.templatecodes.com
 * @package TC jCarousel Module
 * @category Scripts
 * @version 1.02
 * @internal For use with 68C v4.1.1 - 4.1.x
 * @internal PHP5 or greater
 */
function carousel_initCallback(carousel)
{
	// Disable autoscrolling if the user clicks the prev or next button.
	carousel.buttonNext.bind('click', function() {
		carousel.startAuto(0);
	});
	carousel.buttonPrev.bind('click', function() {
		carousel.startAuto(0);
	});
	// Pause autoscrolling if the user moves with the cursor over the clip.
	carousel.clip.hover(function() {
		carousel.stopAuto();
	}, function() {
		carousel.startAuto();
	});

};
