function oggetto(nome, url, titolo, sizex, sizey) {
	this.nome = nome;
	this.url = url;
	this.titolo = titolo;
	this.sizex = sizex;
	this.sizey = sizey;
}

function zoom(nomeimage) {
	var i, indice, miaFin

	foto = new Array()
	foto[1] = new oggetto('gorro1', '../img/gorro1.jpg', 'Gorro', 640, 480);
	foto[2] = new oggetto('gorro2', '../img/gorro2.jpg', 'Gorro', 640, 480);
	foto[3] = new oggetto('gorro3', '../img/gorro3.jpg', 'Gorro', 640, 480);
	foto[4] = new oggetto('gorro4', '../img/gorro4.jpg', 'Gorro', 640, 480);
	foto[5] = new oggetto('cavi1', '../img/cavi1.jpg', 'Caviglione', 640, 480);
	foto[6] = new oggetto('cavi2', '../img/cavi2.jpg', 'Caviglione', 640, 480);
	foto[7] = new oggetto('cavi3', '../img/cavi3.jpg', 'Caviglione', 640, 480);
	foto[8] = new oggetto('cavi4', '../img/cavi4.jpg', 'Caviglione', 640, 480);
	foto[9] = new oggetto('tofo1', '../img/tofo1.jpg', 'Tofo', 640, 480);
	foto[10] = new oggetto('tofo2', '../img/tofo2.jpg', 'Tofo', 640, 480);
	foto[11] = new oggetto('tofo3', '../img/tofo3.jpg', 'Tofo', 640, 480);
	foto[12] = new oggetto('tofo4', '../img/tofo4.jpg', 'Tofo', 640, 480);
	foto[13] = new oggetto('roccio1', '../img/roccio1.jpg', 'Roccio', 640, 480);
	foto[14] = new oggetto('roccio2', '../img/roccio2.jpg', 'Roccio', 640, 480);
	foto[15] = new oggetto('pait1', '../img/pait1.jpg', 'Paitella', 640, 480);
	foto[16] = new oggetto('pait2', '../img/pait2.jpg', 'Paitella', 640, 480);
	foto[17] = new oggetto('pait3', '../img/pait3.jpg', 'Paitella', 640, 480);
	foto[18] = new oggetto('nassa1', '../img/nassa1.jpg', 'Nassa', 640, 480);
	foto[19] = new oggetto('nassa2', '../img/nassa2.jpg', 'Nassa', 640, 480);
	foto[20] = new oggetto('nassa3', '../img/nassa3.jpg', 'Nassa', 640, 480);
	foto[21] = new oggetto('nassa4', '../img/nassa4.jpg', 'Nassa', 640, 480);
	indice = 0;
	quantefoto = foto.length - 1
	for (i=1; i<=quantefoto; i++) {
		if (foto[i].nome == nomeimage) {
			indice = i;
			break
		}
	}

	x = foto[indice].sizex;
	y = foto[indice].sizey;
	posx = (screen.availWidth - x) / 2;
	posy = (screen.availHeight - y) / 2;
	miaFin = open("", "popDialog", "width=" + x + ",height=" + y + ",left=" + posx + ",top=" + posy + ",directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
	miaFin.close();

	miaFin = open("", "popDialog", "width=" + x + ",height=" + y + ",left=" + posx + ",top=" + posy + ",directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
	miaFin.document.open();
	miaFin.document.write("<html><head><title>" + foto[indice].titolo + "</title></head>")
	miaFin.document.write("<body marginwidth='0' marginheight='0' leftmargin='0' topmargin='0'>")
	miaFin.document.write("<img src=" + foto[indice].url + " width='" + x + "' height='" + y + "' alt='' border='0'>")
	miaFin.document.write("</body></html>")
	miaFin.document.close()
	miaFin.focus()
}


