/*if (navigator.appName == "Netscape"){
document.write('<link rel="stylesheet" href="geral.css" TYPE="text/css">');
}
else{
document.write('<link rel="stylesheet" href="geral.css" TYPE="text/css">');
}*/


var Data = new Date();
var Hora = Data.getHours();
var Minuto = Data.getMinutes();
if (Minuto<10){Minuto="A"+Minuto}
function Data1(){
var diasemana = new Array()
diasemana[0] = "domingo"
diasemana[1] = "segunda-feira"
diasemana[2] = "terça-feira"
diasemana[3] = "quarta-feira"
diasemana[4] = "quinta-feira"
diasemana[5] = "sexta-feira"
diasemana[6] = "sábado"
var data = new Date()
var diasem = data.getDay()
var str = ""+diasemana[diasem];
return str;
}
function Hoje(){
var mesnome = new Array();
mesnome[0] = "janeiro";
mesnome[1] = "fevereiro";
mesnome[2] = "março";
mesnome[3] = "abril";
mesnome[4] = "maio";
mesnome[5] = "junho";
mesnome[6] = "julho";
mesnome[7] = "agosto";
mesnome[8] = "setembro";
mesnome[9] = "outubro";
mesnome[10] = "novembro";
mesnome[11] = "dezembro";
var hoje = new Date()
var ano = hoje.getYear()
if (ano<2000){ ano+=1900; }
var mes = hoje.getMonth()
var dia = hoje.getDate()
var str = ""+dia+" de "+mesnome[mes]+" de "+ano;
return str;
}
var Data = new Date();
var Hora = Data.getHours();
var Minuto = Data.getMinutes();
if (Minuto<10){Minuto="0"+Minuto.toString();}
if (Hora<10){Hora="0"+Hora.toString();}
/*css
var x = '<link rel="stylesheet" href="http://www.uol.com.br/folha/geral_'
if (navigator.appName == "Netscape"){x+='ne'}else{x+='ie'}
document.write(x+'.css" TYPE="text/css">');*/

// Rollover dos menus
function mOvr(src,clrOver) {
 if (!src.contains(event.fromElement)) {
  src.style.cursor = 'hand';
  src.bgColor = clrOver;
  src.color = 'black'
 }
}
function mOut(src,clrIn) {
 if (!src.contains(event.toElement)) {
  src.style.cursor = 'default';
  src.bgColor = clrIn;
 }
}
function mClk(src) {
 if(event.srcElement.tagName=='TD'){
  src.children.tags('A')[0].click();
 }
}

/*mudar home do browser
function setHomePage (url) {
  if (document.all && document.getElementById)
    oHomePage.setHomePage(url);
  else if (document.layers && navigator.javaEnabled()) {
    netscape.security.PrivilegeManager.enablePrivilege('UniversalPreferencesWrite');
    navigator.preference('browser.startup.homepage', url);
  }
}*/

function popeleicoes(){
	window.open('http://www.uol.com.br/folha/mundo/2000_eua_eleicoesfinal.html','euaeleicoesfinal','width=468,height=550,toolbar=no,location=no,directories=no,scrollbars=no,resizable=no');
}

var SaiUp=0;
var SaiDown=0;
var layMove=0;

function SelLayer( newLayer )
{   
    layMove = newLayer;
}

function MoveUp()
{
    if(SaiUp==0)
    {
    layMove.scrollTop = layMove.scrollTop - 3
    setTimeout("MoveUp()", 1);
    }
    else
    {
    SaiUp=0
    }
}

function MoveUp_Out()
{
SaiUp=1;
}

function MoveDown()
{
    if(SaiDown==0)
    {
    layMove.scrollTop = layMove.scrollTop + 3
    setTimeout("MoveDown()", 1);
    }
    else
    {
    SaiDown=0
    }
}

function MoveDown_Out()
{
SaiDown=1;
}

intCont = 0
posAnt  = -1
intPara = 0

function MoveX( tamJan, Pos, Pausa )
{
    intCont++ 

    if (intPara == 2)
      return;

    if (intPara==0)
    {
      if (Pos == "Down")
        DivTexto.scrollTop = DivTexto.scrollTop + 3;
      if (Pos == "Up")
        DivTexto.scrollTop = DivTexto.scrollTop - 3;
      
      if (DivTexto.scrollTop == posAnt )
      {
        if (Pos == "Down")
          Pos = "Up"
        else
          Pos = "Down"
      }
    }

    if (intCont == tamJan || intCont == Pausa)
    { intCont = 0;
      //Espera(3000);    
      if (intPara==0)
        intPara = 1;
      else
        intPara = 0;
    }

    posAnt = DivTexto.scrollTop;

    setTimeout("MoveX(" + tamJan + ",'" + Pos + "', " + Pausa + ")", 1);

}

function IniMoveX()
{
  intPara=0;
}

function ParaMoveX()
{
  intPara=2;
}

function Espera( intMiliSegundos )
{
    var ini, ter

    ini = new Date();
    ter = new Date();

    dif = 0;
    while ( dif < intMiliSegundos)
    { dif = ter.getTime() - ini.getTime();
      ter = new Date();
      //alert(dif);
     }

}
