// JavaScript Document
function initBody(){
	;
}

function abrirJanela(url,nome,w,h,conf) {  //abre uma janela  conf = toolbar,location,status,menubar,scrollbars,resizable
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	novajanela=window.open(url,nome,'width='+w+',height='+h+',left='+winl+',top='+wint+','+conf);
	novajanela.resizeTo(w+10,h+80);
	novajanela.moveTo(winl,wint);
	novajanela.window.focus();
}//fim function abrirJanela(url,nome,w,h,conf)


function exibeFlash(swf, width, height){
		monta_swf = "";
		monta_swf += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\""+ width +"\" height=\""+ height +"\" title=\"\">";
		monta_swf += "<param name=\"movie\" value=\""+ swf +"\" />";
		monta_swf += "<param name=\"quality\" value=\"high\" />";
		monta_swf += "<param name=\"menu\" value=\"0\" />";
		monta_swf += "<param name=\"wmode\" value=\"transparent\" />";
		monta_swf += "<embed src=\""+ swf +"\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\""+ width +"\" height=\""+ height +"\"></embed>";
		monta_swf += "</object>";	
		document.write(monta_swf);
}


// Mostra Data e Hora
function ObjDataHora()
{
	var agora = new Date();
	this.dia = agora.getDate();
	this.mes = agora.getMonth();
	this.ano = agora.getFullYear();
	this.hor = agora.getHours();
	this.min = agora.getMinutes();
	this.sem = agora.getDay();
	this.pad = function(s, n) {
		s = '0000' + s;
		return (s.substring(s.length - n, s.length));
	
	}
	this.NomeSem = function() {
		var aDia = new Array( 'Domingo', 'Segunda-feira', 'Ter&ccedil;a-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'S&aacute;bado' );
		return aDia[this.sem];
	}
	this.NomeMes = function() {
		var aMes = new Array( 'janeiro', 'fevereiro', 'mar&ccedil;o', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro' );
		return aMes[this.mes];
	}
	this.MostraData = function() {
		document.write(this.NomeSem() + ',  ' + this.dia + ' de ' + this.NomeMes() + ' de ' + this.pad(this.ano, 4));
	}
	//this.MostraHorario = function() {
	//	document.write(this.pad(this.hor, 2) + ':' + this.pad(this.min, 2));
	//}
	return this;
}
var oDataHora = new ObjDataHora;

//end Mostra Data e Hora