//implementação das funções
Num=Math.floor (Math.random()*1000000);d=document;

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();
anuncioMiolo = new anuncios();
anuncioRodape = new anuncios();
anuncioEsquerda = new anuncios();

//segmentacao por departamento
fs=top.d.location.href.indexOf("colgate/");
fe=top.d.location.href.indexOf(".htm");
zn=top.d.location.href.substring(fs+8,fe);
zone = (zn!="portada")?zn.split("/"):zn;

if(typeof(zone)=="undefined" || fe==-1){kw="";}else{};

//sources dos anuncios
banner = "http://ad.doubleclick.net/adj/ar.terra.salud.colgate/home;dcopt=ist;sz=468x60;ord="+Num+"?";
skyscraper = "http://ad.doubleclick.net/adj/ar.terra.salud.colgate/home;kw="+zone+";dcopt=ist;sz=120x600;ord="+Num+"?";

//Cambiar aqui la url del hosting del archivo auspicio_colgate.js
auspicio = "http://www.ar.terra.com/include/colgate/auspicio_colgate.js";

//posição dos anuncios
anuncioDireita.ordem(skyscraper);
anuncioMiolo.ordem(banner);
anuncioRodape.ordem(auspicio);
anuncioEsquerda.ordem();