var theImages = new Array() 

theImages[0] = "images/body/01.jpg"
theImages[1] = "images/body/02.jpg"
theImages[2] = "images/body/03.jpg"
theImages[3] = "images/body/04.jpg"
theImages[4] = "images/body/05.jpg"
theImages[5] = "images/body/06.jpg"
theImages[6] = "images/body/07.jpg"
theImages[7] = "images/body/08.jpg"
/*
theImages[8] = "images/body/09.jpg"
theImages[9] = "images/body/10.jpg"
theImages[10] = "images/body/11.jpg"
theImages[11] = "images/body/12.jpg"
theImages[12] = "images/body/13.jpg"
theImages[13] = "images/body/14.jpg"
theImages[14] = "images/body/15.jpg"
theImages[15] = "images/body/16.jpg"
theImages[16] = "images/body/17.jpg"
theImages[17] = "images/body/18.jpg"
theImages[18] = "images/body/19.jpg"
theImages[19] = "images/body/20.jpg"
theImages[20] = "images/body/21.jpg"
theImages[21] = "images/body/22.jpg"
theImages[21] = "images/body/22.jpg"
*/
var comment = new Array() 

comment[0] = ""
comment[1] = ""
comment[2] = ""
comment[3] = ""
comment[4] = ""
comment[5] = ""
comment[6] = ""
comment[7] = ""
/*
comment[8] = ""
comment[9] = ""
comment[10] = ""
comment[11] = ""
comment[12] = ""
comment[13] = ""
comment[14] = ""
comment[15] = ""
comment[16] = ""
comment[17] = ""
comment[18] = ""
comment[19] = ""
comment[20] = ""
comment[21] = ""
comment[22] = ""
*/

var p = theImages.length;
/*var j = 0
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 title='" + comment[whichImage] + "' href='javascript: window.location.reload()'><IMG src='" + theImages[whichImage] + "' alt='" + comment[whichImage] + "' width=690 vspace=2 border=0 hspace=2 name='bodyimg'>");
	
}
function timer(){
	 x = window.setInterval("window.location.reload()()", 5000);
	
}


  function Email() {
     //var nome = document.modulo.nome.value;
	 //var cognome = document.modulo.cognome.value;
	 //var indirizzo = document.modulo.indirizzo.value;
	 var informazioni = document.modulo.informazioni.value;
	 //var email = document.modulo.email.value;
     //var oggetto = document.modulo.oggetto.value;
     //var messaggio = document.modulo.messaggio.value;
     /*   if ((email.indexOf("@") == (-1)) || (email == "") || (email == "undefined")) {
           alert("Inserire un indirizzo email valido.");
           document.modulo.email.focus();
        }
        
		else if ((oggetto == "") || (oggetto == "undefined")) {
           alert("Inserire un oggetto.");
           document.modulo.oggetto.focus();
        }
        else if ((messaggio == "") || (messaggio == "undefined")) {
           alert("Inserire un messaggio.");
           document.modulo.messaggio.focus();
        }
		*/
        //else {
			
			location.href = "mailto: valentina.z@tiscalinet.it" + "?Subject=Richiesta informazioni&Body=" + informazioni; 
        //}
  }