﻿function mycarousel_initCallback(carousel) {
    jQuery('#next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};

jQuery(document).ready(function() {
    jQuery("#Carrocel").jcarousel({
        visible: 1,
        scroll: 1,
        animation: 500,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null,
        wrap: 'both'
    });

    jQuery(function($) {
        $.mask.definitions['~'] = '[ 0-9]';
        $(".Cnpj").mask("99.999.999/9999-99");
        $(".Telefone").mask("(99) 9999-999~", { placeholder: " " });
        $(".Cpf").mask("999.999.999-99");
        $(".Cep").mask("99999-999");
        $(".Data").mask("99/99/9999");
        $(".Num").mask("9~~~~", { placeholder: " " });
    });
     jQuery('#popup').fadeIn('slow');
      
});
