function AbreDiv(altura) {
    //alert(altura+'px');
    document.getElementById("menu").style.height = altura + 'px';
}
function openFeedback(mensagem, url) {
    document.getElementById('msgFeedback').innerHTML = mensagem;
    var urlDestino = url
    if (urlDestino == '') {
        document.getElementById('fecharPop').href = 'javascript:closeFeedback();';
    }
    else {
        document.getElementById('fecharPop').href = urlDestino;
    }
    $('#FeedbackDiv').jqmShow({ toTop: true });
}
function closeFeedback() {
    $('#FeedbackDiv').jqmHide({ toTop: true });
}

function destaquesHome() {
    var current = 0;
    var filhos = $('.lista-destaques li');
    var total = filhos.size();

    filhos.hide();

    var proximo = function() {
        filhos.eq(current).animate({left:-1000});
        current++;
        if (current == total) current = 0;
        //alert(current + " | " + filhos.eq(current));
        //filhos.fadeOut(500);
        //filhos.eq(current).fadeIn(500);

        filhos.eq(current).show().css({left:1000}).animate({ left:0 });
    }

    window.setInterval(proximo, 5000);
    proximo();
}
