//implementação das funções
Num=Math.floor (Math.random()*1000000);
Site="ve.terra.bienestarfemenino/home";

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);}
}

anuncioEsquerda = new anuncios();
anuncioDireita = new anuncios();
anuncioMiolo = new anuncios();
anuncioRodape = new anuncios();
anuncioCentroDireitaPequeno = new anuncios();

//espaçador
espacador = "http://www.terra.com.br/ads/espaco.js";

//sources dos anuncios
superbanner = "http://ad.doubleclick.net/adj/" + Site + ";sz=728x90;ord=" + Num + "?";
arrobaBanner = "http://ad.doubleclick.net/adj/" + Site + ";sz=214x140;ord=" + Num + "?";
botao = "http://ad.doubleclick.net/adj/" + Site + ";sz=138x60;ord=" + Num + "?";

//posição dos anuncios
anuncioDireita.ordem();
anuncioMiolo.ordem(superbanner);
anuncioRodape.ordem();
anuncioEsquerda.ordem(botao);
anuncioCentroDireitaPequeno.ordem(arrobaBanner);
