var isNav4, isNav6, isIE;var coll = "";var styleObj = "";var poppedMenu = "";var poppedStripMenu = "";var layFlag = 0;var currentLayer = "";// browser detectionif (parseInt(navigator.appVersion) >= 4) {	if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) == 4) {		isNav4 = true;	} else {		if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) > 4) {			isNav6 = true;			styleObj = ".style";		} else { 			isIE = true;			coll = "all.";			styleObj = ".style";		}	}	}// bugfix for Netscape 4if (isNav4) {	window.captureEvents(Event.RESIZE);}window.onresize = handleResize;function handleResize() {	if (isNav4) {		location.reload();		return false;	}}// Opens main site window, while checking for MSIE 4.01 MacPPC and MSIE 4.5 MacPPCfunction openWin(fileurl) {	if (screen.width < 800) {		alert('La risoluzione del Suo schermo e\' insufficiente; per una corretta visualizzazione di questo sito cambi la risoluzione ad almeno 800 x 600 pixel e riprovi.');	} else {		if (screen.width == 800) {			if (navigator.appVersion == '4.0 (compatible; MSIE 4.01; Macintosh; U; PPC)' || navigator.appVersion == '4.0 (compatible; MSIE 4.5; Macintosh; U; PPC)') {				win=window.open(fileurl,"ACI","toolbar=0,status=1,directories=0,scrollbars=0,location=0,resizable=0,menubar=0,width=790,height=517,left=" + screen.availLeft + ",top=" + screen.availTop);			} else {				win=window.open(fileurl,"ACI","toolbar=0,status=1,directories=0,scrollbars=0,location=0,resizable=0,menubar=0,width=790,height=500,left=" + screen.availLeft + ",top=" + screen.availTop);			}		} else {			if (screen.width > 800) {				location.href = fileurl;			}		}	}}function blankWin(fileurl) {	extWindow = window.open(fileurl,"Iscrizioni","toolbar=1,status=1,directories=1,scrollbars=1,location=1,resizable=1,menubar=1,width=400,height=200");}// returns valid object referencefunction getObject(obj) {	var theObj;	if (isNav4) {		theObj = eval("document." + obj);	} else {		if (isNav6) {			theObj = eval("document.getElementById(" + "\"" + obj + "\"" + ")" + styleObj);		} else {			theObj = eval("document." + coll + obj + styleObj);		}	}	return theObj;}// Various image swaps and layer management functionsfunction swap(num,imgname) {	imgname.src = im[num].src;	window.status = '';}function flip(obj,obj2) {	var theObj = getObject(obj);	var theObj2 = getObject(obj2);	theObj.visibility = "visible";	theObj2.visibility = "hidden";}function layerOn(obj) {	var theObj = getObject(obj);	theObj.visibility = "visible";	window.status = '';}function layerOff(obj) {	var theObj = getObject(obj);	theObj.visibility = "hidden";	window.status = '';}function popLayer(theLayer) {	layerList = new Array ("acitext", "certext") ;	if ((layFlag == 1) && (currentLayer == theLayer)) {		layerOff(theLayer);		layFlag = 0;		currentLayer = "";	} else {		for (var i = 0; i < layerList.length; i++) {			if (layerList[i] == theLayer) {				layerOn(layerList[i]);			} else {				layerOff(layerList[i]);			}		}		layFlag = 1;		currentLayer = theLayer;	}}//Sets page up to watch for mouse and scrolling activity. Also has error-handling facilityfunction initHomePopUp() {	if (isNav4) {		document.captureEvents(Event.MOUSEMOVE | Event.MOUSEOVER | Event.SCROLL | Event.ERROR)	}	document.onmousemove = checkHomePos	document.onmouseover = hideStatus	document.onscroll = shutMenu	document.onerror = stopErrors}// Errors are handled herefunction stopErrors() {   return true}// Hides all messages from the status barfunction hideStatus() {	window.status = '';	return true;}// Checks mouse position when the menlay layer is visiblefunction checkHomePos(evt) {	if (isNav4) {		if (evt.pageX < 10 || evt.pageX > 260 || evt.pageY < 10 || evt.pageY > 442) {			shutMenu();		}	} else {		if (isNav6) {			if (evt.pageX < 10 || evt.pageX > 260 || evt.pageY < 10 || evt.pageY > 442) {				shutMenu();			}		} else {			if (window.event.clientX < 10 || window.event.clientX > 260 || window.event.clientY < 10 || window.event.clientY > 442) {				shutMenu();			}		}	}}// Opens menu panel and stripfunction openMenu(menuToPop) {	goTop();	if (isNav4) {		if (top.length == 2) {			top.riviste.document.menlay.visibility = "visible";		} else {			document.menlay.visibility = "visible";		}	} else {		if (isNav6) {			if (top.length == 2) {				top.riviste.document.getElementById("menlay").style.visibility = "visible";			} else {				document.getElementById("menlay").style.visibility = "visible";			}		}  else {			if (top.length == 2) {				top.riviste.document.all.menlay.style.visibility = "visible";			} else {				document.all.menlay.style.visibility = "visible";			}		}	}}//Closes menu panel and stripfunction closeMenu(theNewPage) {	if (isNav4) {		if (top.length == 2) {			top.riviste.document.menlay.visibility = "hidden";		} else {			document.menlay.visibility = "hidden";		}	} else {		if (isNav6) {			if (top.length == 2) {				top.riviste.document.getElementById("menlay").style.visibility = "hidden";			} else {				document.getElementById("menlay").style.visibility = "hidden";			}		} else {			if (top.length == 2) {				top.riviste.document.all.menlay.style.visibility = "hidden";			} else {				document.all.menlay.style.visibility = "hidden";			}		}	}	if (theNewPage != null) {		top.location.href = theNewPage;	}}function shutMenu() {	if (isNav4) {		if (top.length == 2) {			top.riviste.document.menlay.visibility = "hidden";		} else {			document.menlay.visibility = "hidden";		}	} else {		if (isNav6) {			if (top.length == 2) {				top.riviste.document.getElementById("menlay").style.visibility = "hidden";			} else {				document.getElementById("menlay").style.visibility = "hidden";			}		} else {			if (top.length == 2) {				top.riviste.document.all.menlay.style.visibility = "hidden";			} else {				document.all.menlay.style.visibility = "hidden";			}		}	}}function credOn() {	win=window.open("pages/cred_01.htm","main","toolbar=0,status=0,directories=0,scrollbars=0,location=0,resizable=0 menubar=0,width=300,height=150");}function goTop() {	if (navigator.appName == "Netscape") {		top.scrollTo(0,0)	} else {		top.document.body.scrollTop = 0	}}function nudgePage(direction, limit) {	var lname  = location.pathname;	lastSlash = lname.lastIndexOf("/", lname.length);	var daPrefix = lname.substring(lastSlash+1, lastSlash+18);	var daCounter  = lname.substring(lastSlash+18, lname.length-4);	var bolox = new String(parseInt(daCounter) + direction);	if (bolox > limit) {		bolox = '1';	} else {		if (bolox == '0') {			bolox = limit;		}	}	var daLink = daPrefix + bolox + '.htm';	self.location.href = daLink;}