// JavaScript Document
var arrMonth = ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'];
var arrDay = ['Domingo','Segunda-Feira','Terça-Feira','Quarta-Feira','Quinta-Feira','Sexta-Feira','Sábado'];

function resizeImg(size) {
	/*
	gWidth = document.getElementById("headline").width;
	gHeight = document.getElementById("headline").height;
	if (gWidth > size) {
		document.getElementById("headline").width = size;
		document.getElementById("headline").height = gHeight * size / gWidth;
	}
	*/
}

function jumpAnchor(tag) {
	location.href("#"+tag);
}

function current() {
	var d = new Date();

	now = "" + arrDay[d.getDay()] + ", dia " + d.getDate() + " de " + arrMonth[d.getMonth()]
	now += " " + d.getHours();
	if (d.getMinutes() <= 9) 
		now += ":0" + "" + d.getMinutes();
	else
		now += ":" + (d.getMinutes() + 1);				
	document.write("<span style=\"font: 7pt Arial\">"+now+"</span>");
}

function changeTextSize(mode) {
	var oneRule;
	if (document.styleSheets) {
    	if (document.styleSheets[0].cssRules) {
        	oneRule = document.styleSheets[0].cssRules[0];
	    } else if (document.styleSheets[0].rules) {
    	    oneRule = document.styleSheets[0].rules[0];
	    }	
	}
	if (oneRule) {
		if (mode==0) {
			oneRule.style.font = "9pt Arial";
		} else {
			oneRule.style.font = "11pt Arial";					
		}
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);
changeTextSize(0);
