var max = 10;
var nrImages = 6;
function makeImages() {
this[0] = "http://i221.photobucket.com/albums/dd1/slip635/Zazzoo_BR_Trisom_468x60.jpg";
this[1] = "http://i221.photobucket.com/albums/dd1/slip635/Zazzoo_BR_Girls_468x60.jpg";
this[2] = "http://i221.photobucket.com/albums/dd1/slip635/Zazzoo_BR_Party_468x60.jpg";
this[3] = "http://i221.photobucket.com/albums/dd1/slip635/Zazzoo_BR_ShinyHeels_468x60.jpg";
this[4] = "http://i221.photobucket.com/albums/dd1/slip635/Zazzoo_BR_SpecialContacts_468x60.jpg";
this[5] = "http://i221.photobucket.com/albums/dd1/slip635/Zazzoo_BR_Trisom_468x60.jpg";
this.length = nrImages;
}
function makeLinks() {
this[0] = "http://ads.glispa.com/sw/11848/CD3452/";
this[1] = "http://ads.glispa.com/sw/11846/CD3452/";
this[2] = "http://ads.glispa.com/sw/11845/CD3452/";
this[3] = "http://ads.glispa.com/sw/11850/CD3452/";
this[4] = "http://ads.glispa.com/sw/11847/CD3452/";
this[5] = "http://ads.glispa.com/sw/11848/CD3452/";
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=0></a>");
break;
}
}