// JavaScript Document



function someDiv(){



    document.getElementById("divOpaco").style.display  = "none";



    document.getElementById("divCenter").style.display = "none";



}







function apareceDiv(){



	document.getElementById("divOpaco").style.height = screen.height;



    document.getElementById("divOpaco").style.display  = "";



    document.getElementById("divCenter").style.display = "";

	

	document.body.scrollTop = 0;



}  



function abrePopup(tela) {
	
	
		apareceDiv();	
	
		window.open(tela,'iFramePopup');
	

}



function defineAltura() {

	

	document.getElementById("DivConteudo").style.minHeight=(screen.height - 320)+"px";

	document.getElementById("tableMenu").style.minHeight=(screen.height - 320)+"px";

	

	/*document.getElementById("DivMenu").style.minHeight=

	document.getElementById("DivApresent").style.minHeight=(screen.height - 300)+"px";

    document.getElementById("iFrameDestaques").style.minHeight=(screen.height - 300)+"px";*/

	



}



function musica(obj){ 



	window.open('audio/audio.php?musica=' + obj.id, 'IJB','width=270,height=40,top=150,left=250,resizable=0,scrollbars=0'); 



} 



function exibeData() {

	

		d = new Date() 

		hour = d.getHours();

		if(hour < 5)

		{

		   document.write("Bom dia, ");

		}

		else

		if(hour < 8)

		{

		   document.write("Bom dia, ");

		}

		else

		if(hour < 12)

		{

		   document.write("Bom dia, ");

		}

		else

		if(hour < 18)

		{

		   document.write("Boa tarde, ");

		}

		else

		{

		   document.write("Boa noite, ");

		}

				

		corrente = new Date() 

		Dia = corrente.getDate() 

		mes = corrente.getMonth()+1

		ano = corrente.getYear()

		if (mes == 1) {

		  mes="janeiro"

		}else

		if (mes == 2) {

		  mes="fevereiro"

		}else

		if (mes == 3) {

		  mes="março"

		}else

		if (mes == 4) {

		  mes="abril"

		}else

		if (mes == 5) {

		  mes="maio"

		}else

		if (mes == 6) {

		  mes="junho"

		}else

		if (mes == 7) {

		  mes="julho"

		}else

		if (mes == 8) {

		  mes="agosto"

		}else

		if (mes == 9) {

		  mes="setembro"

		}else

		if (mes == 10) {

		  mes="outubro"

		}else

		if (mes == 11) {

		  mes="novembro"

		}else {

		  mes="dezembro"

		}

		document.write(Dia+" de "+mes+" de "+ano)

			

}


function CarregaPopup(tela){

	var wAjuda = window.open(tela,'IJB','width=400, height=150,top=10,left=300,resizable=0,scrollbars=0,status=0');

	wAjuda.focus();

}

