// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.
var theWidth = new Array()
var theHeight = new Array()

//theImages[0] = 'http://www.labrasserieristomusic.it/img/popup_110303.jpg'
//theWidth[0] ='300'
//theHeight[0] ='428'

/*theImages[1] = 'http://www.labrasserieristomusic.it/img/popup_120100.jpg'
theWidth[1] ='300'
theHeight[1] ='428'*/
theImages[0] = 'http://www.labrasserieristomusic.it/img/popup_infestati.jpg'
theWidth[0] ='300'
theHeight[0] ='429'
theImages[1] = 'http://www.labrasserieristomusic.it/img/popup_120200.jpg'
theWidth[1] ='300'
theHeight[1] ='429'


// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img style="width:300px; height:430px;" onclick="chiudi();" onLoad="setTimeout(\'chiudi()\',15000);" src="'+theImages[whichImage]+'">');
}
function showImage2(){
document.write('<div style="border:10px solid #f8f8ff;width:'+theWidth[whichImage]+'px;height:'+theHeight[whichImage]+'px;position:absolute;left:50%;top:50%; margin-left:-'+(parseInt(theWidth[whichImage])/2).toFixed(0)+'px;margin-top:-'+(parseInt(theHeight[whichImage])/2).toFixed(0)+'px;"id="div_pop"><img style="width:'+theWidth[whichImage]+'px; height:'+theHeight[whichImage]+'px;" onclick="chiudi();" onLoad="setTimeout(\'chiudi()\',15000);" src="'+theImages[whichImage]+'"></div>'
);
}

