//funções para escrever as tags
Num=Math.floor (Math.random()*1000000);
//var cm8catbr_esportes_everest10anos";

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();
anuncioCentroDireitaPequeno = new anuncios();
anuncioBarra = new anuncios();

//espaçador
espacador = "http://www.terra.com.br/ads/espaco.js";

//sources dos anuncios
banner = "http://ad.doubleclick.net/adj/br.terra.esportes/everest10anos;sz=728x90;dcopt=ist;ord="+ Num +"?";
subset1 = "http://www.terra.com.br/ads/esportes/everest10anos/subset1.js";
subset2 = "http://www.terra.com.br/ads/esportes/everest10anos/subset2.js";

popup = "http://ad.doubleclick.net/adj/br.terra.esportes/everest10anos;sz=1x1;ord="+Num+"?";
patrocinio = "http://ad.doubleclick.net/adj/br.terra.esportes/everest10anos;kw=patrocinioeverest10anos;sz=2x2;ord="+Num+"?";
ppiPublicidade = "http://ad.doubleclick.net/adj/br.terra.esportes/everest10anos;sz=138x90;ord="+Num+"?";
//checkm8 = "http://adserver.terra.com.br/checkm8scripts/checkm8_init_1.js";

//posição dos anuncios
anuncioDireita.ordem(subset1,espacador,subset2);
anuncioMiolo.ordem(banner);
anuncioEsquerda.ordem();
anuncioBarra.ordem();
anuncioRodape.ordem();


