 //implementação das funções
Num=Math.floor (Math.random()*1000000);
//var cm8catbr_moda";

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";

var _patr = new Array();
_patr = ["schering"];
idx_patr = Math.floor(Math.random()*1000000) % _patr.length;

//sources dos anuncios
superbanner = "http://ad.doubleclick.net/adj/br.terra.moda/spfw2007verao;sz=728x90;kw=spfw2007_"+_patr[idx_patr]+"_home;dcopt=ist;ord="+Num+"?";
subset = "http://ad.doubleclick.net/adj/br.terra.moda/spfw2007verao;sz=120x240;kw=spfw2007_"+_patr[idx_patr]+"_home;ord="+Num+"?";
pop = "http://ad.doubleclick.net/adj/br.terra.moda/spfw2007verao;sz=1x1;ord="+Num+"?";

//posição dos anuncios
anuncioDireita.ordem(subset);
anuncioMiolo.ordem(superbanner);
anuncioEsquerda.ordem();
anuncioRodape.ordem(pop);