

  var max      = 15;

  var nrImages = 6;

  function makeImages() {

    this[0]     = "images/livro_eletronicop.jpg";

    this[1]     = "images/livro_Vicentep.jpg";

    this[2]     = "images/livro_Vicente_e_Ivetep.jpg";

    this[3]     = "images/Revista_Pesquisa_Qualitativap.jpg";
	
    this[4]     = "images/livro_vicente_labp.jpg";
	
	this[5]     = "images/livros_eletronico_exerciciopesquisap.jpg";

    this.length = nrImages;

  }

  function makeLinks() {

    this[0]     = "http://www.ghoem.com/livros_eletronico.php";

    this[1]     = "http://www.ghoem.com/livros_Vicente.php";

    this[2]     = "http://www.ghoem.com/livros_Vicente_e_Ivete.php";

    this[3]     = "http://www.ghoem.com/livros_Revista_Pesquisa_Qualitativa.php";

    this[4]     = "http://www.ghoem.com/livros_Vicente_lab.php";
	
    this[5]     = "http://www.ghoem.com/livros_eletronico_exerciciopesquisa.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;

    }

  }