// JavaScript Document


function cs_initCallback(cs)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    cs.buttonNext.bind('click', function() {
        cs.startAuto(0);
    });

    cs.buttonPrev.bind('click', function() {
        cs.startAuto(0);
    });

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

jQuery(document).ready(function() {
    jQuery('#mycs').cs({
       auto: 9,
       wrap: 'circular',
        initCallback: cs_initCallback
		//loop: true
    });
});


