
  var max      = 10;
  var nrImages = 8;
    
  function makeImages()
  {
    this[0]     = "http://www.busqueaqui.net/banner/BannerRDCompressores.gif";
    this[1]     = "http://www.busqueaqui.net/banner/BannerColunistas.jpg";
    this[2]     = "http://www.busqueaqui.net/banner/BannerGeraRecibo.jpg";
    this[3]     = "http://www.busqueaqui.net/banner/BannerSiteGratis.jpg";
    this[4]     = "http://www.busqueaqui.net/banner/BannerEstoqueExpress.jpg";
    this[5]     = "http://www.busqueaqui.net/banner/BannerSite.jpg";
    this[6]     = "http://www.busqueaqui.net/banner/BannerPropaganda2.gif";
    this[7]     = "http://www.busqueaqui.net/banner/BannerAraAnne.gif";
    this.length = nrImages;
  }
  
  function makeLinks()
  {
    this[0]     = "http://www.rdcompressores.com";
    this[1]     = "http://www.busqueaqui.net/Colunistas.html";
    this[2]     = "http://www.dablyu.com.br/GeraReciboProfessional.html";
    this[3]     = "http://www.busqueaqui.net/SiteGratis.html";
    this[4]     = "http://www.dablyu.com.br/EstoqueExpress.html";
    this[5]     = "http://www.dablyu.com.br/Websites.html";
    this[6]     = "http://www.busqueaqui.net/Patrocinador.html";
    this[7]     = "http://www.araeanne.com.br";
    this.length = nrImages;
  }  
  
function inicio()
{
	setInterval(troca,9000);	
	setInterval(trocalateral,5000);
}

function troca()
{
  var vetImages = new makeImages();
  var vetLinks  = new makeLinks();
  var x = Math.round(Math.random()*max);
  var y    = max / nrImages;
  for(var cont = 1;cont*y <= max;cont++)
  {
    if (x <= (cont*y)) 
	{
      za = "<a href="+vetLinks[cont-1]+" target=_blank><img  src="+vetImages[cont-1]+" border=0></a>";
	  document.getElementById("banner").innerHTML = za;
      break;
    }
  }
}

 var max2     = 10;
 var nrImages2 = 6;
  
function makeImages2() {
    this[0]     = "http://www.busqueaqui.net/banner/Vertical1.gif";
    this[1]     = "http://www.busqueaqui.net/banner/Vertical2.gif";
    this[2]     = "http://www.busqueaqui.net/banner/Vertical3.gif";
    this[3]     = "http://www.busqueaqui.net/banner/Vertical4.gif";
    this[4]     = "http://www.busqueaqui.net/banner/Vertical5.gif";
    this[5]     = "http://www.busqueaqui.net/banner/Vertical6.gif";
    this.length = nrImages2;
  }
  
  function makeLinks2() {
    this[0]     = "http://www.busqueaqui.net";
    this[1]     = "http://www.busqueaqui.net";
    this[2]     = "http://www.busqueaqui.net";
    this[3]     = "http://www.busqueaqui.net";
    this[4]     = "http://www.busqueaqui.net";
    this[5]     = "http://www.busqueaqui.net";
    this.length = nrImages2;
  }
  
  function iniciolateral()
{
	setInterval(trocalateral,5000);
}

function trocalateral()
{
  var vetImages2 = new makeImages2();
  var vetLinks2  = new makeLinks2();
  var x2 = Math.round(Math.random()*max2);
  var y2    = max2 / nrImages2;
  for(var cont2 = 1;cont2*y2 <= max2;cont2++)
  {
    if (x2 <= (cont2*y2)) 
	{
      za2 = "<a href="+vetLinks2[cont2-1]+" target=_blank><img  src="+vetImages2[cont2-1]+" border=0></a>";
	  document.getElementById("lateral").innerHTML = za2;
      break;
    }
  }
}
