var immagini=new Array()
function preload()
{
     for (cont=0;cont<preload.arguments.length;cont++)
     {
          immagini[cont]=new Image()
          immagini[cont].src=preload.arguments[cont]
     }
}
preload("img/basilica.jpg", "img/parrocchia.jpg")


var Img1On = new Image();
Img1On.src = "img/parrocchia_v.jpg";//immagine1.jpg č l'imagine che vedremo quando l'immagine prende il fuoco
var Img1Off = new Image();
Img1Off.src = "img/dettaglio.jpg";//immagine2.jpg č l'immagine che vedremo quando l'immagine perde il fuoco

var Img2On = new Image();
Img2On.src = "img/basilica_v.jpg";//immagine1.jpg č l'imagine che vedremo quando l'immagine prende il fuoco
var Img2Off = new Image();
Img2Off.src = "img/dettaglio.jpg";//immagine2.jpg č l'immagine che vedremo quando l'immagine perde il fuoco

var Img3On = new Image();
Img3On.src = "img/vital_v.jpg";//immagine1.jpg č l'imagine che vedremo quando l'immagine prende il fuoco
var Img3Off = new Image();
Img3Off.src = "img/dettaglio.jpg";//immagine2.jpg č l'immagine che vedremo quando l'immagine perde il fuoco	 

var Img4On = new Image();
Img4On.src = "img/santi_v.jpg";//immagine1.jpg č l'imagine che vedremo quando l'immagine prende il fuoco
var Img4Off = new Image();
Img4Off.src = "img/dettaglio.jpg";//immagine2.jpg č l'immagine che vedremo quando l'immagine perde il fuoco

var Img5On = new Image();
Img5On.src = "img/gallerie_v.jpg";//immagine1.jpg č l'imagine che vedremo quando l'immagine prende il fuoco
var Img5Off = new Image();
Img5Off.src = "img/dettaglio.jpg";//immagine2.jpg č l'immagine che vedremo quando l'immagine perde il fuoco

function MOver(picimage)//funzione che si attiva con OnMouseOver
{
Picture_Over = eval(picimage +"On.src")
document["imgR"].src = Picture_Over
}
function MOut(picimage)//funzione che si attiva con OnMouseOut
{
Picture_Out = eval(picimage +"Off.src")
document["imgR"].src = Picture_Out
}


/*submit once*/
function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}
/*fine*/ 


/*inizio*/	  

var titulopordefecto = "Pontificia Basilica Cattedrale - Brindisi"; //Si no se especifica un título al llamar a la función colocará el que se especifique aquí
var ventana;
var cont=0;

function afoto(cual,titulo)
{
if(cont==1){ventana.close();ventana=null}
if(titulo==null){titulo=titulopordefecto}
ventana=window.open('','ventana','resizable=no,scrollbars=no,left=0,top=0,width=640,height=480,') 
ventana.document.write('<html><head><title>' + titulo + '</title><meta http-equiv="imagetoolbar" content="no"></head><body onclick="window.close()" style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0" ><img src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height)">');
ventana.document.close();
cont++;
}
function redimensionar(ancho, alto)
{
ventana.resizeTo(ancho+10,alto+48); // 10x50 con resizable=yes
// ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2); 
}		

/*fine*/   




