// Função marcar menu 
function menu_over(indexObjectItem, numObjects, classNormal, classDestaque){
	var Object_id = '';
	var Object_id_ref = 'item_'+ indexObjectItem;
	var i = 0;
	for(i=0; i < numObjects; i++){
		Object_id = 'item_' + i;
		if(indexObjectItem != i){
			document.getElementById(Object_id).className=classNormal;
		}
	}
	document.getElementById(Object_id_ref).className=classDestaque;
}
//Função desmarcar menu
function menu_out(indexObjectItem, indexObjectAtual, numObjects, classNormal, classDestaque){
	var Object_id_ref = 'item_'+ indexObjectItem;
	document.getElementById(Object_id_ref).className=classNormal;
	Object_id_ref = 'item_'+ indexObjectAtual;
	document.getElementById(Object_id_ref).className=classDestaque;
}

// calcular data
function data(){
                hoje= new Date();
                dia = hoje.getDate();
                dias= hoje.getDay();
                mes = hoje.getMonth();
                ano = hoje.getYear();
                if (dia < 10)
                    dia = "0" + dia;
                if (ano < 2000)
                    ano = parseInt(1900) + ano;

                function CriaArray (n){
                    this.length = n;
                }
                NomeDia = new CriaArray(7);
                NomeDia[0] = "Domingo";
                NomeDia[1] = "Segunda-feira";
                NomeDia[2] = "Terça-feira";
                NomeDia[3] = "Quarta-feira";
                NomeDia[4] = "Quinta-feira";
                NomeDia[5] = "Sexta-feira";
                NomeDia[6] = "Sábado";

                NomeMes = new CriaArray(12);
                NomeMes[0] = "janeiro";
                NomeMes[1] = "fevereiro";
                NomeMes[2] = "março";
                NomeMes[3] = "abril"
                NomeMes[4] = "maio";
                NomeMes[5] = "junho";
                NomeMes[6] = "julho";
                NomeMes[7] = "agosto";
                NomeMes[8] = "setembro";
                NomeMes[9] = "outubro";
                NomeMes[10] = "novembro";
                NomeMes[11] = "dezembro";
                document.write (NomeDia[dias] + ", " + dia + " de " + NomeMes[mes] + " de " + ano );
}
// Tirar borda arquivos swf
function objectSwftransparencia(swf,width,height) {
  document.write('<object type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" data="' + swf + '">');
  document.write('<param name="bgcolor" value="#ffffff" />');
  document.write('<param name="movie" value="' + swf + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="menu" value="false" />');
  document.write('<param name="wmode" value="transparent" />');
  document.write('<embed src="' + swf + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" wmode="transparent"></embed>');
  document.write('</object>');
  
}

function objectSwf(swf,width,height) {
  document.write('<object type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" data="' + swf + '">');
  document.write('<param name="bgcolor" value="#ffffff" />');
  document.write('<param name="movie" value="' + swf + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="menu" value="false" />');
  document.write('<embed src="' + swf + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
  document.write('</object>');
  
}


