/*
		INTEGRATIVA - Internet Results	-	http:// www.integrativa.com.br 	: info@integrativa.com.br
		Walter Araśjo dos Santos - was	-	design@integrativa.com.br [designer]
		OABPB
		07.05.04	
*/

/// drop comissoes //

	function gocomissoes(){
		if (document.selectcomissoes.comissoes.options[document.selectcomissoes.comissoes.selectedIndex].value != "none") {
		location = document.selectcomissoes.comissoes.options[document.selectcomissoes.comissoes.selectedIndex].value
		}
	}

/// Funcoes do menu ///
	
	tms=new Array()
	
	//Mostra o submenu no mouseover
	function over(n){
			if(typeof(tms[n])!="undefined")clearTimeout(tms[n])
			document.getElementById("s"+n).style.visibility="visible"
	}
	//Esconde o submenu no mouseout
	function out(n){
			tms[n]=setTimeout('document.getElementById("s'+n+'").style.visibility="hidden"',0)
	}

///

// funcao open window para pagina dos videos //
	function filmes(url) {
		window.open(url,'filmes','top=0,left=0,width=585,height=420,location=0,menubar=0,resizable=0,scrollbars=0, status=0,toolbar=0');
	}
	
	function show_flash_tela_cheia(midia){
  var obj = window.open("/show_flash.php?midia=" + midia,'','fullscreen=1,toolbar=no,scrollbars=no');
  obj.focus();
}
	
	
// funcao open window para pagina compra do livro direito domestico //
	function compra(url) {
		window.open(url,'compra','width=700,height=480,top=0,left=0,location=0,menubar=yes,resizable=0,scrollbars=yes,status=yes,toolbar=0');
	}	

	// funcao open window para pagina diario //
	function diario() {
		window.open('diario.jsp','diario','top=200,left=100,width=349,height=220,location=0,menubar=0,resizable=0,scrollbars=0, status=0,toolbar=0');
		}
	function go1(){	
		if (document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value != "none") {	
			location = document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value 
			}	
		}
		
	// funcao open window para pagina expediente //
	function expediente() {
		window.open('expediente.jsp','expediente','top=200,left=100,width=240,height=260,location=0,menubar=0,resizable=0,scrollbars=0, status=0,toolbar=0');
		}

	// funcao open window para paginas de impressao de noticia e artigo //
	function impressao(url) {
		window.open(url,'impressao','top=0,left=0,width=600,height=450,location=0,menubar=0,resizable=0,scrollbars=yes, status=0,toolbar=0');
		}

	// funcao open window para indicacao de noticias e artigos //
	function indicacao(url) {
		window.open(url,'indicacao','top=0,left=0,width=400,height=370,location=0,menubar=0,resizable=0,scrollbars=0, status=0,toolbar=0');
		}

	// funcao imprimir para paginas de impressao de noticia e artigo //
  function printRel() {
    self.window.print();
    self.window.close();
  }
  
  // funcao open window para ampliar foto flashow //
	function ampliar(url) {
		window.open(url,'ampliar',',top=10,left=10,width=320,height=235,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0');
	}

	// funcao que imprime a data e saudacao no site //
  var now = new Date(); 
  var mName = now.getMonth() + 1;
  var dName = now.getDay() + 1;
  var dayNr = now.getDate();
  var yearNr=now.getYear();
  var nHours = now.getHours();
  if(dName==1) Day = "Domingo";
  if(dName==2) Day = "Segunda-Feira";
  if(dName==3) Day = "Ter&ccedil;a-Feira";
  if(dName==4) Day = "Quarta-Feira";
  if(dName==5) Day = "Quinta-Feira";
  if(dName==6) Day = "Sexta-Feira";
  if(dName==7) Day = "S&aacute;bado";
  if(yearNr < 2000) Year = 1900 + yearNr;
  else Year = yearNr;
  if((nHours < 12) && (nHours >= 5)) {Saudacao = " Bom dia!";}
  if((nHours >= 12) && (nHours < 19)) {Saudacao = " Boa tarde!";}
  if((nHours >= 19) && (nHours < 24)) {Saudacao = " Boa noite!";}
  if((nHours >= 0) && (nHours < 5)) {Saudacao = " Boa madrugada!";}
  var todaysDate =("Joćo Pessoa, " + Day + " " + dayNr + "/" + mName + "/" + Year) ;
  var saudar =(Saudacao);


