function writeDate()
{
	today=new Date(); // Initialize Date in raw form
	day = today.getDay(); // Get the day in number form (0,1,2,3,etc.)
	year = today.getYear();
	
	// Make day number value correspond to actual day name
	var dayName=new Array(7)
	dayName[0]="Domingo";
	dayName[1]="Segunda-feira";
	dayName[2]="Terça-feira";
	dayName[3]="Quarta-feira";
	dayName[4]="Quinta-feira";
	dayName[5]="Sexta-feira";
	dayName[6]="Sábado";
	
	month=today.getMonth()+1; // Get the month
	monthDay = today.getUTCDate();
	
	// Make month number correspond to month name
	if (month==1) monthName=("Janeiro");
	else if (month==2) monthName=("Fevereiro");
	else if (month==3) monthName=("Março");
	else if (month==4) monthName=("Abril");
	else if (month==5) monthName=("Maio");
	else if (month==6) monthName=("Junho");
	else if (month==7) monthName=("Julho");
	else if (month==8) monthName=("Agosto");
	else if (month==9) monthName=("Setembro");
	else if (month==10) monthName=("Outubro");
	else if (month==11) monthName=("Novembro");
	else monthName=("Dezembro");
	
	if (window.navigator.appName == "Microsoft Internet Explorer")
	{
		document.write (dayName[day] + ", " + monthDay + " de " + monthName + " de " + (year) + "."); // Write the day
	}
	else
	{
		document.write (dayName[day] + ", " + monthDay + " de " + monthName + " de " + (year + 1900) + "."); // Write the day
	}
}

function subMenu(param){
if ( param == "show" ){
		showSubMenu();
		}
	if ( param == "hide" ){
		timeout = setTimeout("hideSubMenu()",200)
		}
	if ( param == "showSub" ){
		clearTimeout(timeout)
		}	
	}
	
function showSubMenu(){
 	document.getElementById("submenu1").style.display = "block"
	document.getElementById("submenu1").style.zIndex = 10000;
	}

function hideSubMenu(){
 	document.getElementById("submenu1").style.display = "none";
	document.getElementById("submenu1").style.zIndex = 0;
	}	
