// JavaScript Document
Hoje = new Date() 
  
Data = Hoje.getDate() 
  
Dia = Hoje.getDay() 
  
Mes = Hoje.getMonth() 
  
Ano = Hoje.getYear() 

  
if (Data<10) { 
  
Data = "0" + Data} 
  
if (Ano < 2000) { 
  
Ano = "19" + Ano} 
  
NomeDia = new Array(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 Array(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" 
  
 
  
  
 function MostrarData() { 
  
document.write (NomeDia[Dia] + ", " + Data + " de " + NomeMes[Mes] + " - ") 
  
 } 
  
function mclk(src) {
  if(event.srcElement.tagName=='TD') {
    src.children.tags('A')[0].click();
  }
}

function mOut(src,cor) {
        if (!src.contains(event.toElement)) {
         src.style.cursor = 'default';
         src.bgColor = cor;
        }
}

function mOvr(src,cor) {
 if (!src.contains(event.fromElement)) {
         src.style.cursor = 'hand';
         src.bgColor = cor;
	     }
}


/// 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"',50)
		}


Mensagem = "       NEK - INOVANDO PARA VOCÊ          TELEVENDAS 0800-11-0005                                ";
Espacos = "   ";
Posicao = 0;

function RolaMensagem()
{
    window.status = Mensagem.substring(Posicao, Mensagem.length)
+ Espacos + Mensagem.substring(0, Posicao);     Posicao ++;

   if (Posicao > Mensagem.length) Posicao = 0; 

    window.setTimeout("RolaMensagem()", 200);
}

RolaMensagem();

var timerID = null;
var timerRunning = false;
function stopclock()
{
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false;
}

function startclock()
{
    stopclock();
    showtime();
}

function showtime()
{
    var now = new Date();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    var timeValue = "" + ((hours > 12) ? hours : hours);
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes;
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds;
   // timeValue  += (hours >= 12) ? " P.M." : " A.M.";
    document.clock.face.value = timeValue;
    timerID = setTimeout("showtime()",1000);
    timerRunning = true;
}
