//implementação das funções
Num=Math.floor (Math.random()*1000000);

//Sorteio para Banner OVS
OVS=Math.floor(Math.random()*9);

function ordem(){
  for(i = 0; i < ordem.arguments.length; i++){
    this.tagsPublicidade += "<scr"+"ipt src=\""+ ordem.arguments[i] + "\"></scr"+"ipt>";
  }
}
_maC=navigator.userAgent.toLowerCase().indexOf("mac")>=0;
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();

//espaçador
espacador = "http://www.terra.com.br/ads/espaco.js";

banner = "http://ad.doubleclick.net/adj/br.terra.itelefonica/webmail;dcopt=ist;sz=468x60;tile=1;ord="+Num+"?";
ppi1024 = (window.screen.width>=1024&&!(_maC))?"http://www.terra.com.br/ads/itelefonica/webmail/sky.js?ord="+Num+"?":"";


//sources dos anuncios


//posição dos anuncios
anuncioDireita.ordem();
anuncioMiolo.ordem(banner);
anuncioEsquerda.ordem();
anuncioRodape.ordem(ppi1024);