<!--

// Code written by Erik Fournier
// Date: 05/06/1998
// Email: webmaster@weberik.com
// URL: www.weberik.com


// Test if the browser support this code

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

if ((browserName == "Netscape" && browserVer >= 3) || (browserName == "Microsoft Internet Explorer" && browserVer >= 3))
	support = "yes";
else
	support = "no";


// Function returning the name of the current day

function NameOfDay(Day)
{
	if (support == "yes")
	{
		var NameOfDay;

		if (Day == 0) NameOfDay = "Domingo,";
		if (Day == 1) NameOfDay = "Segunda-Feira,";
		if (Day == 2) NameOfDay = "Terça-Feira,";
		if (Day == 3) NameOfDay = "Quarta-Feira,";
		if (Day == 4) NameOfDay = "Quinta-Feira,";
		if (Day == 5) NameOfDay = "Sexta-Feira,";
		if (Day == 6) NameOfDay = "Sábado,";

		return NameOfDay;
	}
}


// Function returning the name of the currnet month

function NameOfMonth(Month)
{	
	if (support == "yes")
	{
		var NameOfMonth;
		
		if (Month == 0) NameOfMonth = "de Janeiro de";
		if (Month == 1) NameOfMonth = "de Fevereiro de";
		if (Month == 2) NameOfMonth = "de Março de";
		if (Month == 3) NameOfMonth = "de Abril de";
		if (Month == 4) NameOfMonth = "de Maio de";
		if (Month == 5) NameOfMonth = "de Junho de";
		if (Month == 6) NameOfMonth = "de Julho de";
		if (Month == 7) NameOfMonth = "de Agosto de";
		if (Month == 8) NameOfMonth = "de Setembro de";
		if (Month == 9) NameOfMonth = "de Outubro de";
		if (Month == 10) NameOfMonth = "de Novembro de";
		if (Month == 11) NameOfMonth = "de Dezembro de";

		return NameOfMonth;
	}
}



// Function displaying the current date in a long format

function DisplayLongDate()
{
	if (support == "yes")
	{
		var lTime;

		lNow = new Date();
		lDate = lNow.getDate();
		lYear = lNow.getYear();
		lMonth = lNow.getMonth();
		lDay = lNow.getDay();

		if (browserName == "Netscape")
			lTime = NameOfDay(lDay) + " " + NameOfMonth(lMonth) + " " + lDate + " " + (1900 + lYear);
		else
			lTime = NameOfDay(lDay) + " " + lDate + " " + NameOfMonth(lMonth) + " " + lYear;
			
		
		document.write("<font color='#003300' size='1' face='arial,helvetica,sans-serif'>");
		document.write(lTime);
	}
}



// Function displaying the current date in a short format

function DisplayShortDate()
{
	if (support == "yes")
	{
		var sTime;

		sNow = new Date();
		sDate = sNow.getDate();
		sYear = sNow.getYear();
		sMonth = sNow.getMonth();
		sDay = sNow.getDay();

		if (browserName == "Netscape")
			sTime = NameOfMonth(sMonth) + " " + sDate + ", " + (1900 + sYear);
		else
			sTime = NameOfMonth(sMonth) + " " + sDate + ", " + sYear;
		document.write("<font color='#003300' size='1' face='arial,helvetica,sans-serif'>");
		document.write(sTime);
		
		return 1;
	}
}


// -->