	/**************************************************************************************/
	/**************** Copyright © 2000 Kaos Software. All rights reserved. ****************/
	/**************************************************************************************/


	/************************ Inizializzazione del menù *************************/

	var contenuto = "";
	var cartella = "";	
	contenuto += '<HTML><HEAD><STYLE><!--.generale{ position: absolute; left: -999; top: -999; z-index: 999; cursor: default; background-color: menu; color: menuText; width: 180;visibility: hidden; border-style: outset; border-width: 2px; height: 190}.componenti{ font-family: Ms Shell Dlg; font-size: 12px; padding-left: 10px; padding-right: 10px; padding-top: 3px; padding-bottom: 3px }// --></STYLE></HEAD>';
	



contenuto += '<BODY><OBJECT ID="cerca" CLASSID="clsid:B45FF030-4447-11D2-85DE-00C04FA35C89" HEIGHT="0" WIDTH="0"></OBJECT><DIV ID="right_menu" CLASS="generale">';
	contenuto += '<DIV CLASS="componenti" ONCLICK="exe(\'indietro\')" SPECIFICHE="Vai al documento precedente"><IMG SRC="' + cartella + 'dietro.ICO" ALIGN="absmiddle" WIDTH="29" HEIGHT="28">&nbsp;&nbsp;<U>I</U>ndietro</DIV>';
	contenuto += '<DIV CLASS="componenti" ONCLICK="exe(\'avanti\')" SPECIFICHE="Vai al documento successivo"><IMG SRC="' + cartella + 'avanti.ICO" ALIGN="absmiddle" WIDTH="29" HEIGHT="28">&nbsp;&nbsp;A<U>v</U>anti</DIV><HR>';
	contenuto += '<DIV CLASS="componenti" ONCLICK="exe(\'home\')" SPECIFICHE="Imposta la pagina iniziale"><IMG SRC="' + cartella + 'home.ICO" ALIGN="absmiddle" WIDTH="29" HEIGHT="28">&nbsp;&nbsp;Imposta <U>H</U>ome Page</DIV>';
	contenuto += '<DIV CLASS="componenti" ONCLICK="exe(\'preferiti\')" SPECIFICHE="Aggiungi a Preferiti"><IMG SRC="' + cartella + 'preferiti.ICO" ALIGN="absmiddle" WIDTH="29" HEIGHT="28">&nbsp;&nbsp;Aggiungi a <U>P</U>referiti</DIV>';
	
	
	contenuto += '<DIV CLASS="componenti" ONCLICK="exe(\'aggiorna\')" SPECIFICHE="Ricarica il documento"><IMG SRC="' + cartella + 'ag.ICO" ALIGN="absmiddle" WIDTH="29" HEIGHT="28">&nbsp;&nbsp;<U>A</U>ggiorna</DIV>';
	contenuto += '<DIV CLASS="componenti" ONCLICK="exe(\'stampa\')" SPECIFICHE="Stampa il documento"><IMG SRC="' + cartella + 'stampa.ICO" ALIGN="absmiddle" WIDTH="29" HEIGHT="28">&nbsp;&nbsp;S<U>t</U>ampa</DIV>';
	
	contenuto += '</DIV></BODY></HTML>';

	if (document.all && window.print) document.write (contenuto);

	/************************ Script che gestisce il menù *************************/

	// Seleziona la parte del menù
	function light_on (){
		if (event.srcElement.className == "componenti"){
			event.srcElement.style.backgroundColor="highlight";
			event.srcElement.style.color="highlightText";
				if (event.srcElement.SPECIFICHE) {
					window.status = event.srcElement.SPECIFICHE;
				}
		}
	}

	// Deseleziona la parte del menù
	function light_off (){
		if (event.srcElement.className == "componenti"){
			event.srcElement.style.backgroundColor= "menu";
			event.srcElement.style.color="menuText";
			window.status = "";
		}
	}

	// Mostra il menù
	function mostra (){
		if (event.clientY > 0 && event.clientX > 0  &&  event.clientY < document.body.clientHeight && event.clientX < document.body.clientWidth) {
			if (document.body.clientHeight - event.clientY + document.body.scrollTop > document.body.clientHeight / 2){
				right_menu.style.top = event.clientY + document.body.scrollTop;
			} else {
				right_menu.style.top = event.clientY + document.body.scrollTop - 290;
			}

			if (document.body.clientWidth- event.clientX + document.body.scrollLeft > document.body.clientWidth / 2){
				right_menu.style.left = event.clientX + document.body.scrollLeft;
			} else {
				right_menu.style.left = event.clientX + document.body.scrollLeft - 180;
			}
		} else {
			right_menu.style.top = document.body.scrollTop;
			right_menu.style.left = document.body.scrollLeft;
		}

		right_menu.style.visibility = "visible";
		return false;

	}

	// Nascondi il menù
	function nascondi (){
			right_menu.style.visibility = "hidden";
			right_menu.style.left = -999;
			right_menu.style.top = -999;

	}

	// Utility del menù
	function exe (type){
		if (type == "indietro"){ 		// Va al documento precedente
			history.back();

		} else if (type == "avanti"){ 		// Va al documento successivo
			history.forward();

		} else if (type == "home"){		// Imposta la home page
			document.body.style.behavior='url(#default#homepage)';
			document.body.setHomePage('http://www.scarpellino.com');

		} else if (type == "preferiti"){	// Imposta i preferiti
			var imgFav= new Image();
			imgFav.src= location.href + "/preferiti.ico";
			window.external.AddFavorite('http://www.scarpellino.com', 'F.L.S. - S.N.E.D.A.');

		
			

		} else if (type == "aggiorna"){		// Aggoirna la pagina
			self.location.reload();

		} else if (type == "stampa"){		// Stampa la pagina
			self.print();

		

		

		
		}
	}

	// Impedisce il selezionamento dell'area
	function cancella () { 
		window.event.cancelBubble = true;
		window.event.returnValue = false;
	}

	// Eventi
	if (document.all && window.print){
		document.oncontextmenu=mostra;
		document.body.onclick=nascondi;
		right_menu.onmouseover=light_on;
		right_menu.onmouseout=light_off;
		right_menu.ondragstart=cancella;
		right_menu.onselectstart=cancella;
	}

	/**************************************************************************************/
	/**************** Copyright © 2000 Kaos Software. All rights reserved. ****************/
	/**************************************************************************************/