﻿var texto = "Faça o Vestibular da Faculdade Alfredo Nasser 2010/1. Não perca!!!";
var tempo = 200;
var cont = 0;
function showstatus() {
    var letra = texto.substring(0, cont);
    var maiuscula = texto.substring(cont, cont + 1).toUpperCase();
    var palavras = texto.substring(cont + 1, texto.length);
    window.status = letra + maiuscula + palavras;
    if (cont == texto.length) {
        cont = 0;
    }
    else {
        cont++
    }
    setTimeout("showstatus()", tempo); 
}
function refresh() {
    var alturaconteudos = document.getElementById("divconteudos").offsetHeight;    
    try {
        document.getElementById("divnavegacao").style.height = ((alturaconteudos < 600) ? "600" : alturaconteudos) + "px";
    } catch (ex) {alert(ex); }
    try { document.getElementById("divrodape").style.top = alturaconteudos + "px"; } catch (ex) { }
    try { document.getElementById("divprocessando").style.height = document.body.offsetHeight - 130 + "px"; } catch (ex) { }
    showstatus();
}