
  var max      = 10;
  var nrImages = 10;
  function makeImages() {
    this[0]     = "imageshome/mono1.jpg";
    this[1]     = "imageshome/mono2.jpg";
    this[2]     = "imageshome/mono3.jpg";
    this[3]     = "imageshome/mono4.jpg";
    this[4]     = "imageshome/mono5.jpg";
    this[5]     = "imageshome/mono6.jpg";
	this[6]     = "imageshome/mono7.jpg";
	this[7]     = "imageshome/mono8.jpg";
	this[8]     = "imageshome/mono9.jpg";
	this[9]     = "imageshome/mono10.jpg";
	this.length = nrImages;
  }
  function makeLinks() {
    this[0]     = "http://www.monochrome.com.br/personalweb.html";
    this[1]     = "http://www.monochrome.com.br/personalweb.html";
    this[2]     = "http://www.monochrome.com.br/personalweb.html";
    this[3]     = "http://www.monochrome.com.br/personalweb.html";
    this[4]     = "http://www.monochrome.com.br/personalweb.html";
    this[5]     = "http://www.monochrome.com.br/personalweb.html";
	this[6]     = "http://www.monochrome.com.br/personalweb.html";
	this[7]     = "http://www.monochrome.com.br/personalweb.html";
	this[8]     = "http://www.monochrome.com.br/personalweb.html";
	this[9]     = "http://www.monochrome.com.br/personalweb.html";
    this.length = nrImages;

  }
  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)) {
      document.write("<a href="+vetLinks[cont-1]+" target=_self><img  src="+vetImages[cont-1]+" border=0></a>");
      break;
    }
  }

