function puls_umberto(file1, file2)
   {
   parent.sx_sopra.location=file1;
   parent.sx_sotto.location=file2;
   }
function puls_calendario(file1, file2, file3)
   {
   parent.sx_sopra.location=file1;
   parent.sx_sotto.location=file2;
   parent.centrale.location=file3;
   }
var base= "immagini/"
var nrm = new Array();
var omo = new Array();
var ocl = new Array();
var stuff = new Array('home','news','movimento','download','eventi','staff','statuto','congregazioni','scritti','samz','link');
var select = -1;
var name2 = "";
var temp = 0;

// Pre-load part.

if (document.images)
{
	for (i=0;i<stuff.length;i++)
	{
		nrm[i] = new Image;
		nrm[i].src = base + stuff[i] + ".jpg"
		omo[i] = new Image;
		omo[i].src = base + stuff[i] + ".blu.jpg";
		ocl[i] = new Image;
		ocl[i].src = base + stuff[i] + ".blu.jpg";
	}
}

// The functions: first mouseover, then mouseout

function over(no)
{
	if (document.images && select != no)
	{
		document.images[stuff[no]].src = omo[no].src
	}
}

function out(no)
{
	if (document.images && select != no)
	{
		document.images[stuff[no]].src = nrm[no].src
	}
}

function clic(no)
{
	if (document.images)
	{
		document.images[stuff[no]].src = ocl[no].src
		temp = select;
		select = no;
		if (temp != -1) {out(temp)}
	}
}
