
function showMilitaryTime() {
if (document.form.showMilitary[0].checked) {
return true;
}
return false;
}
function showTheHours(theHour) {
if (showMilitaryTime() || (theHour > 0 && theHour < 13)) {
	if (theHour == "0") theHour = 12;
	return (theHour);
}
if (theHour == 0) {
	return (12);
}
return (theHour-12);
}
function showZeroFilled(inValue) {
if (inValue > 9) {
return "" + inValue;
}
return "0" + inValue;
}
function showAmPm() {
if (showMilitaryTime()) {
return ("");
}
if (now.getHours() < 12) {
return (" am");
}
return (" pm");
}
function showTheTime() {
now = new Date
document.getElementById("time").innerHTML=showZeroFilled(now.getHours()) + ":" + showZeroFilled(now.getMinutes())
setTimeout("showTheTime()",30000)
}
function showTheDate(){
	var dayName = new Array ("Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado")
	var monName = new Array ("Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro")
	var now = new Date
	document.write("  " + dayName[now.getDay()] + ", " +now.getDate() + " de "+ monName[now.getMonth()] +" de ")
	year=now.getYear();
	if (year<1900) year+=1900;
	document.write(year);
}
function doSearch() {
	document.location.href="/pt/search/?q="+document.getElementById("q").value;
}
function iFontSize(){
	$$('div.article p').tween('font-size', 15);
}
function dFontSize(){
	$$('div.article p').tween('font-size', 12);
}
