 function create() {
 
         this.width = ''
         this.height = ''
         this.src = ''
         this.href = ''
         this.border = ''
         this.mouseover = ''
         this.sponsor = ''
 
 }

 function aleatorio(inferior,superior){ 
    numPosibilidades = superior - inferior 
    aleat = Math.random() * numPosibilidades 
    aleat = Math.floor(aleat) 
    return parseInt(inferior) + aleat 
 } 


ads = new Array()
 
 for(var i=1; i<=5; i++) { ads[i] = new create() }
 
 ads[1].width = "386"
 ads[1].height = "39"
 ads[1].src = "cnm.gif"
 ads[1].href = "cnm/index.html"
 ads[1].border = "0"
 ads[1].mouseover = "Guía del Museo casa de la Moneda y acuñación de monedas"
 ads[1].sponsor = "Museo Casa de Moneda, Potosí - Bolivia"
 
 ads[2].width = "386"
 ads[2].height = "39"
 ads[2].src = "banner-polonesa.gif"
 ads[2].href = "http://www.polonesa.com/index.html"
 ads[2].border = "0"
 ads[2].mouseover = "Industria de confección de prendas de tejido de punto"
 ads[2].sponsor = "Industria de confección de prendas de tejido de punto"


 ads[3].width = "386" 
 ads[3].height = "39" 
 ads[3].src = "banner-chasqui.gif" 
 ads[3].href = "http://www.chasquidelsol.com" 
 ads[3].border = "0" 
 ads[3].mouseover = "Hotel Chasqui del Sol"
 ads[3].sponsor = "Hotel Chasqui del Sol" 
 
 ads[4].width = "386"
 ads[4].height = "39"
 ads[4].src = "banner-mna.gif"
 ads[4].href = "http://www.mna.org.bo"
 ads[4].border = "0"
 ads[4].mouseover = "Museo Nacional de Arte"
 ads[4].sponsor = "Museo Nacional de Arte"
      
 
 ads[5].width = "386"
 ads[5].height = "39"
 ads[5].src = "banner-labodeguita.gif"
 ads[5].href = "http://www.labodeguitacubana.com"
 ads[5].border = "0"
 ads[5].mouseover = "La Bodeguita Cubana en Bolivia"
 ads[5].sponsor = "La Bodeguita Cubana en Bolivia"
 

 var m = aleatorio(1,5)


 m += ""
 

var image = ads[m]

var general = ""

general += '<a href="' + image.href + '" \n'
general += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
general += 'onMouseOut="self.status=\'\'"> \n'
general += '<img src="' + image.src + '" width=' + image.width
general += '\n height=' + image.height + ' border=' + image.border
general += '\n><br>Visite: ' + image.sponsor + '</a>'
