﻿function atribuiEvento() {
    $("#btnNews").click(
            function() {
                if ($("#tbCadastro").css('left') =="227px" ) {
                    $("#tbCadastro").animate({
                        left: "0px"
                    });
                } else {
                    $("#tbCadastro").animate({
                        left: "227px"
                    });
                }
            }
    );
}

function abrirCadastro() {
    if ($("#tbCadastro").css('left') == "227px") {
        $("#tbCadastro").animate({
            left: "0px"
        });
        $("#ctl00_nome").focus();
    } else {
        $("#tbCadastro").animate({
            left: "227px"
        });
    }
}

function fecharCadastro() {
    $("#tbCadastro").animate({
        left: "227px"
    });
}

function setDestaque(num) {
    if(num!=0){
        $("#"+num+"> a").css("background-image", "url(menu_card/img_menu/on.jpg)");
    }
}
