function contribuidor(cod) {
    if (cod == 1) {
        $('.descricao_colaborador').html("<strong>Fabio Souza (RJ)</strong><br />Criador e Mantenedor do Projeto JBoleto &nbsp;&nbsp;").hide().fadeIn("slow");
    }
    else if (cod == 2) {
        $('.descricao_colaborador').html("<strong>Marcio Morais (RJ)</strong><br />Análise de Projeto &nbsp;&nbsp;").hide().fadeIn("slow");
    }
    else if (cod == 3) {
        $('.descricao_colaborador').html("<strong>Norberto Alcântara (RJ)</strong><br />Programação &nbsp;&nbsp;").hide().fadeIn("slow");
    }
    else if (cod == 4) {
        $('.descricao_colaborador').html("<strong>Yuri Motta (RJ)</strong><br />Designer &nbsp;&nbsp;").hide().fadeIn("slow");
    }
    else if (cod == 5) {
        $('.descricao_colaborador').html("<strong>Victor Pontes (RJ)</strong><br />Suporte e comercial &nbsp;&nbsp;").hide().fadeIn("slow");
    }
    else if (cod == 6) {
        $('.descricao_colaborador').html("<strong>Gladyston Pereira Batista (MG)</strong><br />Programação &nbsp;&nbsp;").hide().fadeIn("slow");
    }
}


$(document).ready(function() {

    contribuidor(1);

    $("#suporte_envia").click(function() {
        var nome = $("#nome_suporte").val();
        var email = $("#email_suporte").val();
        var assunto = $("#assunto_suporte").val();
        var mensagem = $("#mensagem_suporte").val();

        if (nome == "" || (nome.length) < 2) {
            alert("Complete com seu nome.");
        }
        else if (email == ""  || (email.length) < 6) {
            alert("Complete com seu E-mail.");
        }



        else if (assunto == "" || (assunto.length) < 3) {
            alert("Complete com um Assunto.");
        }
        else if (mensagem == "" || (mensagem.length) < 3) {
            alert("Complete com uma Mensagem.");
        }
        else {
            $("form#cadSuporte").submit();
        }
    });

    $("#participe_envia").click(function() {
        var nome = $("#nome_participante").val();
        var sobrenome = $("#sobrenome_participante").val();
        var login = $("#login_assembla_participante").val();
        if (nome == "" || (nome.length) < 2) {
            alert("Complete com seu nome.");
        }
        else if (sobrenome == ""  || (sobrenome.length) < 2) {
            alert("Complete com seu Sobrenome.");
        }
        else if (login == "" || (login.length) < 3) {
            alert("Complete com seu Login no Assembla.");
        }
        else {
            $("form#cadParticipar").submit();
        }
    });

});
 