// jquery carousel includes starts

jQuery(document).ready(function() {
	jQuery('#mycarousel').jcarousel({
		auto: 2,
        wrap: 'last',
		initCallback: mycarousel_initCallback,
		buttonNextHTML:null,
		buttonPrevHTML:null,
		scroll:1
	});

});

function mycarousel_initCallback(carousel) {

	jQuery('#mycarousel-next').bind('click', function() {
		carousel.startAuto(0);
		carousel.next();
		return false;
	});

	jQuery('#mycarousel-prev').bind('click', function() {
	    carousel.startAuto(0);
		carousel.prev();
		return false;
	});

	  // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
    
};


