 hoje = new Date()
 numero_b = 6 
 segundos = hoje.getSeconds()
 numero = segundos % numero_b

if (numero == 0){
        banner    =  "02.swf"
        link      =  "#"
        alvo      =  "_parent"
        descricao =  " "
        tipo =  "flash"
}
if (numero == 01){
        banner    =  "02.swf"
        link      =  "#"
        alvo      =  "_parent"
        descricao =  " "
        tipo =  "flash"
}
if (numero == 02){
        banner    =  "03.swf"
        link      =  "www.xaxado.com.br/publicacoes/lendas.html"
        alvo      =  "_parent"
        descricao =  " "
        tipo =  "flash"
}
if (numero == 03){
        banner    =  "04.swf"
        link      =  "http://www.ilhadelivros.com.br"
        alvo      =  "_blank"
        descricao =  " "
        tipo =  "flash"
}
if (numero == 04){
        banner    =  "05.swf"
        link      =  "www.xaxado.com.br/publicacoes/publicacoes.html"
        alvo      =  "_parent"
        descricao =  " "
        tipo =  "flash"
}
if (numero == 05){
        banner    =  "06.swf"
        link      =  "www.xaxado.com.br/publicacoes/cidade.html"
        alvo      =  "_parent"
        descricao =  " "
        tipo =  "flash"
}

if (tipo == "imagem"){
 document.write('<center><a href="' + link + '" target="' + alvo + '" ><img src="' + banner + '" alt="' + descricao + '" border=0></a></center>')                     // Para gerar o codigo em html do arquivo gif no navegador
}

if (tipo == "flash"){
 document.write('<center><a href="' + link + '" target="' + alvo + '" ><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="468" height="60"><param name=movie value="' + banner + '"><param name=quality value=high><param name="wmode" value="transparent"><embed src="' + banner + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60" wmode="transparent"></embed></object></a></center>')         // Para gerar o codigo em html do arquivo flash no navegador
}


// banner = nome da figura
// link = link
// alvo = target
// descricao = alt
// nome_link = texto acessorio
// tipo = flash ou imagem (para que o programa escreva o formato correto)
