 //implementação das funções
Num=Math.floor (Math.random()*1000000);

function ordem(){
  for(i = 0; i < ordem.arguments.length; i++){
    this.tagsPublicidade += "<scr"+"ipt src=\""+ ordem.arguments[i] + "\"></scr"+"ipt>";
  }
}

function anuncios(){
  this.tagsPublicidade="";
  this.ordem = ordem;
  this.mostra = function (){document.write(this.tagsPublicidade);}
}

anuncioDireita = new anuncios();
anuncioEsquerda = new anuncios();
anuncioMiolo = new anuncios();
anuncioRodape = new anuncios();

//espaçador
espacador = "http://www.terra.com.br/ads/espaco.js";

//sources dos anuncios
superbanner = "http://ad.doubleclick.net/adj/br.terra.esportes/dakar2006;dcopt=ist;sz=728x90;ord=" + Num + "?";
vertical = "http://ad.doubleclick.net/adj/br.terra.esportes/dakar2006;sz=120x240;ord=" + Num + "?";
popup = "http://ad.doubleclick.net/adj/br.terra.esportes/dakar2006;sz=1x1;ord=" + Num + "?";
//checkm8 = "http://adserver.terra.com.br/checkm8scripts/checkm8_init_1.js";

//posição dos anuncios
anuncioDireita.ordem(vertical);
anuncioMiolo.ordem(superbanner);
anuncioEsquerda.ordem();
anuncioRodape.ordem();