

  var max      = 10;

  var nrImages = 8;

  function makeImages() {

    this[0]     = "clientes/actiradentes.jpg";

    this[1]     = "clientes/buffet.jpg";

    this[2]     = "clientes/clovis.jpg";

    this[3]     = "clientes/experienciasnet.jpg";

    this[4]     = "clientes/ghoem.jpg";

    this[5]     = "clientes/pedro.jpg";

    this[6]     = "clientes/terceiraregiao.jpg";
	
	this[7]     = "clientes/jpinf.jpg";

    this.length = nrImages;

  }

  function makeLinks() {

    this[0]     = "http://www.sginfo.com.br/clientes_actiradentes.php";

    this[1]     = "http://www.sginfo.com.br/clientes_buffet.php";

    this[2]     = "http://www.sginfo.com.br/clientes_clovis.php";

    this[3]     = "http://www.sginfo.com.br/clientes_experienciasnet.php";

	this[4]     = "http://www.sginfo.com.br/clientes_ghoem.php";

	this[5]     = "http://www.sginfo.com.br/clientes_pedro.php";
	
	this[6]     = "http://www.sginfo.com.br/clientes_terceiraregiao.php";
	
	this[7]     = "http://www.sginfo.com.br/clientes_jpinf.php";

    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;

    }

  }
