var ie = (navigator.appName.indexOf("Microsoft") > -1 ? 1 : 0);
function tell_time() {
	dt = new Date();
	dia = dt.getDate();
	mes = dt.getMonth()+1;
	dia = (dia >= 10 ? dia : '0' + dia);
	mes = (mes >= 10 ? mes : '0' + mes);
	document.write(dia + ':' + mes + ':' + dt.getYear());
};
function rotate_words() {
	clearTimeout(ts);
	tm = 150;
	obj = document.getElementById('palavras');
	word_p = word_p + 1;
	if(word_p > palavras[word_c].length) {
		word_c = word_c + 1;
		if(word_c > palavras.length-1) word_c = 0;
		word_p = 1;
	}
	txt = palavras[word_c].substring(0, word_p);
	if(word_p >= palavras[word_c].length) tm = 1200;
	if(ie == 1) {
		obj.innerHTML = txt;
	} else {
		obj.document.write(txt);
	}
	ts = setTimeout(rotate_words, tm);
};
function bottom_bar() {
	cx0 = document.getElementById('miolo');
	cx1 = document.getElementById('boletim');
	cx2 = document.getElementById('arquivo');
	obj = document.getElementById('uolbarra_baixo');
	h = cx0.offsetTop + cx0.scrollHeight + 120;
	obj.style.top = h;
	obj.style.visibility = "visible";
	cx1.style.height = h - (cx1.offsetTop+cx1.scrollHeight+20);
	rotate_words();
};
var word_c = 0;
var word_p = 0;
var ts = new Object();
onload = bottom_bar;