/* author: il michele */
/* Creation date: 02/11/2006 */
var theImages = new Array() // giu le mani da questa riga
// per aggiungere immagini alla rotazione continuare con
// la sequenza qui sotto
theImages[0] = '../img/hp_1.jpg'
theImages[1] = '../img/hp_2.jpg'
theImages[2] = '../img/hp_3.jpg'
theImages[3] = '../img/hp_4.jpg'
theImages[4] = '../img/hp_5.jpg'
theImages[5] = '../img/hp_6.jpg'
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 src="'+theImages[whichImage]+'">');
}

var timeDelay = 3; // qui ci va il tempo di rotazione
var Pix = new Array
("../img/offerta_1.jpg"
,"../img/offerta_2.jpg"
,"../img/offerta_3.jpg" 
,"../img/offerta_4.jpg"
,"../img/offerta_5.jpg"
,"../img/offerta_6.jpg"
,"../img/offerta_7.jpg" 
,"../img/offerta_8.jpg"
,"../img/offerta_9.jpg"
,"../img/offerta_10.jpg"
);

var howMany = Pix.length;
timeDelay *= 1000;
var PicCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];
function startPix() {
setInterval("slideshow()", timeDelay);
}
function slideshow() {
PicCurrentNum++;
if (PicCurrentNum == howMany) {
PicCurrentNum = 0;
}
PicCurrent.src = Pix[PicCurrentNum];
document["ChangingPix"].src = PicCurrent.src;
}
//  fine -->
