var max = 27;

var nrImages = 27;

function makeImages() {
this[0] = "http://www.mercadolivre.com.br/org-img/MLB/pms/2007/25_04/mar2007_npl_venda.gif";

this[1] = "http://www.mercadolivre.com.br/org-img/MLB/pms/2007/25_04/mar2007_npl_casou.gif";
this[2] = "http://www.mercadolivre.com.br/org-img/MLB/house/2007/08_03/mar2007_motors_carro.jpg";

this[3] = "http://www.mercadolivre.com.br/org-img/MLB/house/2007/16_03/mar2007_imoveis.gif";
this[4] = "http://www.mercadolivre.com.br/org-img/MLB/house/2007/08_03/mar2007_motors_moto.jpg";

this[5] = "http://www.mercadolivre.com.br/org-img/MLB/house/2007/16_03/mar2007_motors_vermelho2.gif";
this[6] = "http://www.mercadolivre.com.br/org-img/MLB/house/2007/08_03/mar2007_ipod.jpg";

this[7] = "http://www.mercadolibre.com/org-img/housebanners/728x90/MLB/MLB_HB_1MILLON.gif";
this[8] = "http://www.mercadolivre.com.br/org-img/housebanners/728x90/HB_MOTORS_MLB_1.gif";

this[9] = "http://megashopping.dgracaemaisgostoso.com/images/anunciar.jpg";
this[10] = "http://megashopping.dgracaemaisgostoso.com/images/aumentar.gif";

this[11] = "http://megashopping.dgracaemaisgostoso.com/images/venda.gif";
this[12] = "http://megashopping.dgracaemaisgostoso.com/images/venda2.gif";

this[13] = "http://megashopping.dgracaemaisgostoso.com/images/venda3.gif";
this[14] = "http://megashopping.dgracaemaisgostoso.com/images/maisvendidos.jpg";

this[15] = "http://www.mercadolivre.com/org-img/MLB/MOTORS/2009/08_10/MLB_MOTORS_HB_1009_GOL.jpg";
this[16] = "http://www.mercadolivre.com.br/org-img/MLB/pms/2009/23_01/MLB_INM_HB_05.jpg";

this[17] = "http://www.mercadolivre.com/org-img/MLB/MOTORS/2009/08_10/MLB_MOTORS_HB_1009_COR.jpg";
this[18] = "http://www.mercadolivre.com.br/org-img/MLB/pms/2009/23_01/MLB_INM_HB_01.jpg";

this[19] = "http://www.mercadolivre.com.br/org-img/MLB/house/2007/10_10/out2007_motors_trocarcar.gif";
this[20] = "http://www.mercadolivre.com.br/org-img/MLB/pms/2009/23_01/MLB_INM_HB_03.jpg";

this[21] = "http://www.mercadolivre.com.br/org-img/MLB/house/2007/10_10/out2007_motors_moto.gif";
this[22] = "http://www.mercadolibre.com/org-img/homepics/hb/MLB/MLB_HB_MOTORSANIONUEVO.jpg";

this[23] = "http://www.mercadolivre.com.br/org-img/MLB/house/2007/10_10/out2007_motors_comprarcar.gif";
this[24] = "http://www.mercadolivre.com.br/org-img/MLB/pms/2009/23_01/MLB_INM_HB_02.jpg";

this[25] = "http://www.mercadolivre.com.br/org-img/MLB/pms/2008/10-12/HB_MOTORS_01_D.jpg";
this[26] = "http://www.mercadolivre.com.br/org-img/MLB/pms/2009/31_07/728x90.gif";



this.length = nrImages;

}



function makeLinks() {
this[0] = "http://www.mercadolivre.com.br/ajuda_venda.html";

this[1] = "http://www.mercadolivre.com.br/ajuda_venda.html";
this[2] = "http://carros.mercadolivre.com.br/";

this[3] = "http://www.mercadolivre.com.br/ANUNCIAR-IMOVEIS.html";
this[4] = "http://veiculos.mercadolivre.com.br/motos_DisplayType_G";

this[5] = "http://www.mercadolivre.com.br/vender-veiculos.html";
this[6] = "http://ipod.mercadolivre.com.br/ipod-reprodutores/_OrderId_BIDS_AuctTypeID_AFP_DisplayType_G_PriceMin_200_Qshow_45_OtherFilterID_MPAGO";

this[7] = "http://www.mercadolivre.com.br/";
this[8] = "http://veiculos.mercadolivre.com.br/";

this[9] = "http://www.mercadolivre.com.br/jm/syi4";
this[10] = "http://www.mercadolivre.com.br/centraldevendedores";

this[11] = "http://www.mercadolivre.com.br/ajuda_venda.html";
this[12] = "http://www.mercadolivre.com.br/ajuda_venda.html";

this[13] = "http://www.mercadolivre.com.br/ajuda_venda.html";
this[14] = "http://lista.mercadolivre.com.br/_DisplayType_G_FilterId_MAS*VND_PriceMin_50";

this[15] = "http://carros.mercadolivre.com.br/volkswagen/gol/_DisplayType_G_PriceMin_13000_PriceMax_35000";
this[16] = "http://imoveis.mercadolivre.com.br/_Qshow_48";

this[17] = "http://carros.mercadolivre.com.br/chevrolet/corsa/_DisplayType_G_PriceMin_17000_PriceMax_30900";
this[18] = "http://www.mercadolivre.com.br/ANUNCIAR-IMOVEIS.html";

this[19] = "http://veiculos.mercadolivre.com.br/";
this[20] = "http://imoveis.mercadolivre.com.br/_Qshow_48";

this[21] = "http://veiculos.mercadolivre.com.br/";
this[22] = "http://www.mercadolivre.com.br/carro-novo08";

this[23] = "http://veiculos.mercadolivre.com.br/";
this[24] = "http://imoveis.mercadolivre.com.br/_Qshow_48";

this[25] = "http://veiculos.mercadolivre.com.br";
this[26] = "http://veiculos.mercadolivre.com.br";

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;

}

}