// JavaScript Document
var max = 10;
var nrImages = 1;
function makeImages() {
this[0] = "http://www.glam0ur.com.br/anuncios/faniporno728x90.jpg";
//this[1] = "http://www.riqueza.com.br/ads/sa/skyfinoesteroide.jpg";
//this[2] = "http://www.leisdaseducao.com.br/banners/img/1banner120x600.gif";
//this[3] = "http://www.leisdaseducao.com.br/banners/img/2banner120x600.gif";
//this[4] = "http://www.leisdaseducao.com.br/banners/img/3banner120x600.gif";
//this[5] = "http://www.leisdaseducao.com.br/banners/img/4banner120x600.gif";
//this[6] = "http://www.leisdaseducao.com.br/banners/img/5banner120x600.gif";


this.length = nrImages;
}
function makeLinks() {
this[0] = "http://www.glam0ur.com.br/anunciante.php?id=1";
//this[1] = "http://www.riqueza.com.br/riqueza.asp?Afiliado_ID=4986&Anuncio_ID=1083&Acao=Clique";
//this[2] = "http://www.riqueza.com.br/riqueza.asp?Afiliado_ID=4986&Anuncio_ID=11033&Acao=Clique";
//this[3] = "http://www.riqueza.com.br/riqueza.asp?Afiliado_ID=4986&Anuncio_ID=11032&Acao=Clique";
//this[4] = "http://www.riqueza.com.br/riqueza.asp?Afiliado_ID=4986&Anuncio_ID=11034&Acao=Clique";
//this[5] = "http://www.riqueza.com.br/riqueza.asp?Afiliado_ID=4986&Anuncio_ID=11036&Acao=Clique";
//this[6] = "http://www.riqueza.com.br/riqueza.asp?Afiliado_ID=4986&Anuncio_ID=11038&Acao=Clique";






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;
}
}
