jQuery(document).ready(function() {
    jQuery('#recados-home').jcarousel({
		scroll: 1,
		wrap: 'last',
		animation:'slow',
		auto: 5
	      
    });
	jQuery('#videos-recados-home').jcarousel({
		scroll: 3,
		wrap: 'last',
		animation:'slow',
		auto: 8
	      
    });	
});

function mycarousel_initCallback(carousel) {
   
    jQuery('#next-video').bind('click', function() {
        carousel.next();
        return false;
    });

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

// Ride the carousel...
jQuery(document).ready(function() {
    jQuery("#box-videos-home-ul").jcarousel({
        scroll: 1,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null,
		wrap: 'last',
		animation:'slow'
    });
});

function mycarousel_initCallback2(carousel) {   
    jQuery('.next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('.prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};
// Ride the carousel...
jQuery(document).ready(function() {
    jQuery("#lista-novidades-home").jcarousel({
        scroll: 1,
        initCallback: mycarousel_initCallback2,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null,
		wrap: 'last',
		animation:'slow',
		auto: 9
    });
});
