
  var max      = 10;
  var nrImages = 9;
  function makeImages() {
    this[0]     = "randomicosol/imagens/bolsa01.gif";
    this[1]     = "randomicosol/imagens/cabanha03.gif";
    this[2]     = "randomicosol/imagens/gonvarri01.gif";
    this[3]     = "randomicosol/imagens/novozymes.gif";
    this[4]     = "randomicosol/imagens/filtrosul01.gif"; 
    this[5]     = "randomicosol/imagens/speed-sports.gif";
    this[6]     = "randomicosol/imagens/gonvarri-catalogo.gif";
    this[7]     = "randomicosol/imagens/rodobras.gif";
    this[8]     = "randomicosol/imagens/novo-batel.gif";
   

    this.length = nrImages;
  }
  function makeLinks() {
    this[0]     = "htmls/solucoes/solucoes/bolsa.htm";
    this[1]     = "htmls/solucoes/solucoes/cabanha02.htm";
    this[2]     = "htmls/solucoes/solucoes/gonvarri.htm";
    this[3]     = "htmls/solucoes/solucoes/novosymes.htm";
    this[4]     = "htmls/solucoes/solucoes/filtrosul.htm";
    this[5]     = "htmls/solucoes/solucoes/speed-pasta.htm";
    this[6]     = "htmls/solucoes/solucoes/gonvarri02.htm";
    this[7]     = "htmls/solucoes/solucoes/rodobras.htm";
    this[8]     = "htmls/solucoes/solucoes/novo-batel-festival-ferias.htm";
    
    this.length = nrImages;

  }
  var vetImages = new makeImages();
  var vetLinks  = new makeLinks();
  var escolhido = Math.round(Math.random()*max);
  var espaco    = max / nrImages;
  for(var cont = 1;cont*espaco <= max;cont++) {
    if (escolhido <= (cont*espaco)) {
      document.write("<a href="+vetLinks[cont-1]+" target=_self><img  src="+vetImages[cont-1]+" border=0></a>");
      break;
    }
  }
