<!-- Begin


/**
 * Funzioni
 */

function overLayer(theName) {
	var theImage= getImage(theName);
	if (theImage!=null) {
		if (preload && preload.ok) theImage.src= eval("img" + theName + "Down.src");
		else {
			theImage.src= overImageURL(theImage.src);
/*
			var src= theImage.src;
			var newSrc= src.substring(0,src.indexOf("_1"));
			if (newSrc!="") newSrc= newSrc + "_2.gif";
			else newSrc= src;
			theImage.src= newSrc;
*/
		}
	}
}

function outLayer(theName) {
	var theImage= getImage(theName);
	if (theImage!=null) {
		if (preload && preload.ok) theImage.src= eval("img" + theName + "Up.src");
		else {
			theImage.src= outImageURL(theImage.src);
/*
			var src= theImage.src;
			var newSrc= src.substring(0,src.indexOf("_2"));
			if (newSrc!="") newSrc= newSrc + "_1.gif";
			else newSrc= src;
			theImage.src= newSrc;
*/
		}
	}
}

function getImage(theName) {
	var theImage= null;
	if (bw.bw) {
		if (bw.dom) theImage= document.getElementById("img" + theName);
		else if (bw.ns4) theImage= getLayerById_NS4("div" + theName).document.images["img" + theName];
		else theImage= document.all["div" + theName].document.links[0].document.images["img" + theName];
	}
	return theImage;
}


function getLayerById_NS4(theId) {

	function getLayerByIdFromArray_NS4(layersArray,theId) {
		var theLayer= null;
		if (bw.ns4 && layersArray!=null && theId!=null) {
			var index= 0;
			while (theLayer==null && layersArray.length!=null && index<layersArray.length) {
				var found= (layersArray[index].id==theId);
				if (found) theLayer= layersArray[index];
				else theLayer= getLayerByIdFromArray_NS4(layersArray[index].document.layers,theId);
				index++;
			}
		}
		return theLayer;
	}

	var theLayer= null;
	if (bw.ns4 && theId!=null) {
		theLayer= getLayerByIdFromArray_NS4(document.layers,theId);
	}
	return theLayer;
}

function overImageURL(currentURL) {
	var newURL= currentURL.substring(0,currentURL.indexOf("_1"));
	if (newURL!="") newURL= newURL + "_2.gif";
	else newURL= currentURL;
	return newURL;
}

function outImageURL(currentURL) {
	var newURL= currentURL.substring(0,currentURL.indexOf("_2"));
	if (newURL!="") newURL= newURL + "_1.gif";
	else newURL= currentURL;
	return newURL;
}

function openPolicyPrivacyWindow() {
	openWindow('../../informativa.htm','policyPrivacyWindow','left=50,top=30,width=400,height=500,scrollbars=yes');
}

function openCopyrightWindow() {
	openWindow('../../copyright.htm','copyrightWindow','left=50,top=30,width=400,height=380,scrollbars=yes');
}

function openDisclaimerWindow() {
	openWindow('../../disclaimer.htm','disclaimerWindow','left=50,top=30,width=400,height=450');
}

// End -->