//SCRIT PARA MOSTRAR A DATA
var now = new Date();
var mName = now.getMonth() + 1;
var hora = now.getHours();
var minuto = now.getMinutes();
var segundo = now.getSeconds();
var dName = now.getDay() + 1;
var dayNr = now.getDate();
var yearNr=now.getYear();
if(dName==1) Day = "Domingo";
if(dName==2) Day = "Segunda-feira";
if(dName==3) Day = "Terç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ábado";
if(hora >= 00 && hora <= 11) message = "Bom dia. ";
if(hora >= 12 && hora <= 17) message = "Boa tarde. ";
if(hora >= 18 && hora <= 23) message = "Boa noite. ";
//switch(

if(yearNr < 2000) Year = 1900 + yearNr;
else Year = yearNr;
var mes = "";
switch(mName){
case 1: mes = "janeiro";
break;
case 2: mes = "fevereiro";
break;
case 3: mes = "março";
break;
case 4: mes = "abril";
break;
case 5: mes = "maio";
break;
case 6: mes = "junho";
break;
case 7: mes = "julho";
break;
case 8: mes = "agosto";
break;
case 9: mes = "setembro";
break;
case 10: mes = "outubro";
break;
case 11: mes = "novembro";
break;
case 12: mes = "dezembro";
break;
}
var todaysDate =("Porto Velho/RO, " + dayNr + "/" + mName + "/" + Year);
//SCRIT PARA MOSTRAR A DATA

//SCRIT PARA GERENCIAMENTO DOS BANNERS
var a = -1;
function rotateBanner(seconds) { 
	//window.setTimeout('executa()', seconds*1000);
}
function executa(){
  //a = a + 1;  
  //if (a==2) a = 0;
  //banner1.innerHTML=ban1[a];
  //banner2.innerHTML=ban2[a];
  //banner3.innerHTML=ban3[a];
  //banner9.innerHTML=ban9[a];
  //banner10.innerHTML=ban10[a];
  //banner11.innerHTML=ban11[a];
  //rotateBanner(30);
}
//SCRIT PARA GERENCIAMENTO DOS BANNERS

//SCRIT PARA ABRIR A NEWSLETTER EM UMA POPUP
function executaNews(){
  var param = document.news;
  var acao = 0;
  if(param.acao[1].checked) acao=2;
  window.open('<%=application.getInitParameter("absolute")%>/processaNews.jsp?DeEmail='+param.DeEmail.value+'&acao='+acao,'newsletter','width=300,height=300');
  //window.open('<%=application.getInitParameter("absolute")%>/enquete/processaEnquete.jsp?NrSeq='+qual,'parciais','width=300,height=170');

}
//SCRIT PARA ABRIR A NEWSLETTER EM UMA POPUP

//SCRIT PARA MUDAR AS ABAS DA MANCHETE
function destacar(qual){
  var pathImg = 'rondo_img/';

  if(qual == 'daEsquerda'){
    document.all.daEsquerda.background=pathImg+"fundo_1dstk_2.gif";
	document.all.doMeio.background=pathImg+"fundo_1dstk_4.gif";
	document.all.daDireita.background=pathImg+"fundo_1dstk_6.gif";
	document.primeira.src=pathImg+"fundo_1dstk_1.gif";
	document.segunda.src=pathImg+"fundo_1dstk_3.gif";
	document.terceira.src=pathImg+"fundo_1dstk_5.gif";
	document.quarta.src=pathImg+"fundo_1dstk_7.gif";
  }
  if(qual == 'doMeio'){
    document.all.doMeio.background=pathImg+"fundo_1dstk_2.gif";
	document.all.daEsquerda.background=pathImg+"fundo_1dstk_4.gif";
	document.all.daDireita.background=pathImg+"fundo_1dstk_6.gif";
	document.primeira.src=pathImg+"fundo_2dstk_1.gif";
	document.segunda.src=pathImg+"fundo_2dstk_3.gif";
	document.terceira.src=pathImg+"fundo_2dstk_5.gif";
	document.quarta.src=pathImg+"fundo_1dstk_7.gif";
  }
  if(qual == 'daDireita'){
    document.all.daDireita.background=pathImg+"fundo_1dstk_2.gif";
	document.all.doMeio.background=pathImg+"fundo_1dstk_4.gif";
	document.all.daEsquerda.background=pathImg+"fundo_1dstk_4.gif";
	document.primeira.src=pathImg+"fundo_2dstk_1.gif";
	document.segunda.src=pathImg+"fundo_3dstk_3.gif";
	document.terceira.src=pathImg+"fundo_3dstk_5.gif";
	document.quarta.src=pathImg+"fundo_3dstk_7.gif";  }
}
//SCRIT PARA MUDAR AS ABAS DA MANCHETE

//FUNÇÃO PARA ABRIR UMA JANELA COM A CARACTERÍSTICA DE RETORNAR O VALOR PARA A PÁGINA DE ORIGEM
function openWin(theURL,winName,features) { 
  var remote = window.open(theURL,winName,features);
  if (remote != null) {
    if (remote.opener == null)
      remote.opener = self;
  }
}

//FUNÇÃO PARA BLOQUEAR O BOTÃO DIREITO DO MOUSE PARA O INTERNET EXPLORER
function qual()
{
if(event.button==2)
{
window.alert("Recurso Desativado");
}
}
if(document.all)
{
document.onmousedown=qual;
}

function requisita(url){
	alert(url);
}