

// 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. Rememeber
// to increment the theImages[x] index!

theImages[0] = '../img/dest_producto_rand_01.jpg'
theImages[1] = '../img/dest_producto_rand_02.jpg'
theImages[2] = '../img/dest_producto_rand_03.jpg'
theImages[3] = '../img/dest_producto_rand_04.jpg'
theImages[4] = '../img/dest_producto_rand_05.jpg'
theImages[5] = '../img/dest_producto_rand_06.jpg'
theImages[6] = '../img/dest_producto_rand_07.jpg'

var theSrc = new Array()
theSrc[0] = 'productos/lp1_01.html'
theSrc[1] = 'productos/lp2_05.html'
theSrc[2] = 'productos/lp3_01.html'
theSrc[3] = 'lp_pates.html'
theSrc[4] = 'productos/lp6_04.html'
theSrc[5] = 'productos/lp7_01.html'
theSrc[6] = 'productos/lp8_02.html'

// ======================================
// do not change anything below this line
// ======================================


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('<a href="../html/'+theSrc[whichImage]+'"><img src="'+theImages[whichImage]+'"></a>');
}
/*FUNCION BANNER-----------------------------
----------------------------------------------------*/
// Set up the image files to be used.
var theBnr = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theBnr[0] = '../img/bnr_campana_01.jpg'
theBnr[1] = '../img/bnr_campana_02.jpg'
theBnr[2] = '../img/bnr_campana_03.jpg'


// ======================================
// do not change anything below this line
// ======================================

var b = theBnr.length;

var preBuffer2 = new Array()
for (i = 0; i < b; i++){
   preBuffer2[i] = new Image()
   preBuffer2[i].src = theBnr[i]
}

var whichBnr = Math.round(Math.random()*(b-1));
function showBnr(){
document.write('<a href="#"><img src="'+theBnr[whichBnr]+'"></a>');
}

