// JavaScript Documentvar nrImages = 6;

var max = 10;
var nrImages = 05;
function makeImages() {
this[0] = "figuras/publicidade/01.jpg";
this[1] = "figuras/publicidade/02.jpg";
this[2] = "figuras/publicidade/03.jpg";
this[3] = "figuras/publicidade/04.jpg";
this[4] = "figuras/publicidade/05.jpg";

this.length = nrImages;
}
function makeLinks() {
this[0] = "http://www.pagueimico.blogspot.com";
this[1] = "http://minhocaveia.blogspot.com/";
this[2] = "http://www.pedecogumelo.com";
this[3] = "http://www.pagueimico.blogspot.com"
this[4] = "http://wanderson81.blogspot.com/"

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=_blank><img src="+vetImages[cont-1]+" border=1 class=border width=480 height=60></a>");
break;
}
}