// JavaScript Document
<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// 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] = "Abbadia San Salvatore"
theImages[1] = "Acquapendente"
theImages[2] = "Alseno"
theImages[3] = "Altopascio"
theImages[4] = "Aosta"
theImages[5] = "Aulla"
theImages[6] = "Berceto"
theImages[7] = "Buonconvento"
theImages[8] = "Calendasco"
theImages[9] = "Camaiore"
theImages[10] = "Capranica"
theImages[11] = "Castelnuovo Magra"
theImages[12] = "Chignolo Po"
theImages[13] = "Fidenza"
theImages[14] = "Filattiera"
theImages[15] = "Fornovo di Taro"
theImages[16] = "Fosdinovo"
theImages[17] = "Ivrea"
theImages[18] = "Licciana Nardi"
theImages[19] = "Lucca"
theImages[20] = "Montalcino"
theImages[21] = "Montefiascone"
theImages[22] = "Nepi"
theImages[23] = "Noceto"
theImages[24] = "Olcenengo"
theImages[25] = "Orio Litta"
theImages[26] = "Ortonovo"
theImages[27] = "Piacenza"
theImages[28] = "Pontremoli"
theImages[29] = "Radicofani"
theImages[30] = "Roma"
theImages[31] = "Ronciglione"
theImages[32] = "Roppolo"
theImages[33] = "Santo Stefano di Magra"
theImages[34] = "Sarzana"
theImages[35] = "Senna Lodigiana"
theImages[36] = "Siena"
theImages[37] = "Sutri"
theImages[38] = "Terenzo"
theImages[39] = "Vercelli"
theImages[40] = "Vetralla"
theImages[41] = "Villafranca Lunigiana"
theImages[42] = "Viterbo"
theImages[43] = "Viverone"
theImages[44] = "Fiorenzuola d'Arda"
theImages[45] = "Castiglione d'Orcia"
theImages[46] = "Cavaglià"
theImages[47] = "San Quirico d'Orcia"
theImages[48] = "Bolsena"
theImages[49] = "Monteriggioni"

// ======================================
// do not change 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 src="images/testate/'+theImages[whichImage]+'.jpg" alt="'+theImages[whichImage]+'">');
}
// codice per Analytics
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
var pageTracker = _gat._getTracker("UA-11675958-5");
pageTracker._trackPageview();
} catch(err) {}
// Fine codice per Analytics
//-->