//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);}
}

anuncioMiolo = new anuncios();
anuncioTopoGalerias = new anuncios();

//sources dos anuncios
banner = "http://ad.doubleclick.net/adj/br.terra.exclusivo/galerias;sz=728x90;dcove=d;ord="+Num+"?";


//posição dos anuncios
anuncioMiolo.ordem(banner);
anuncioTopoGalerias.ordem();