
function funzione(quale)
{
	switch (quale)
	{
		case '1':
			// barra dei comandi:
			parent.frames[0].frames[1].frames[1].location.href = 'javascript:show_toolbar()';
		      break;
		case '2':
			// home page:
			// parent.location.href="/newindex.htm"
			parent.location.href="/index.htm"
			break;
		case '3':
			// visita guidata:
			// ...
			// home>servizi>rubriche>voyager>calypso>aziende>lab>harbour>home
			// business tour vs. netsurfer tour
		case '4':
			// barra di navigazione supplementare:
			parent.frames[0].frames[1].frames[1].location.href = 'javascript:show_navbar()';
			break;
	}
}

function zoompage(testo) 
{
	window.open(testo,"zoomwin","history=no,status=0,resizable=1,scrollbars=1,toolbar=1,menubar=0");
}

function nav(quale)
{
	// alert (quale);
	// NB: i comandi tool() e nav() partono dal frame "pannello"

	switch (quale)
	{
		case 1:
			// home page:
			parent.location.href="/index.htm";
			break;
		case 2:
			// english version:
			parent.location.href="/index_eng.html";
			break;
		case 3:
			// libreria virtuale:
			parent.location.href="/libreria/index.htm";
			break;
		case 4:
			// e-commerce:
			//parent.frames[0].location.href="/web3/calypso/ecommerce_start.htm";
                  parent.location.href="/computers/index.htm";
			break;
		case 5:
			// attualitą:
			parent.frames[0].location.href="/web4/rubriche/news_start.htm";
			break;
		case 6:
			// terzapagina:
			parent.location.href="/web4/terza/index.htm";
			break;
		case 7:
			// download area:
			parent.frames[0].frames[1].location.href="/web3/calypso/download.htm";
			// parent.frames[0].frames[1].location.href="about:blank";
			break;
	}

}

function tool(quale)
{
	// alert (quale);
	// NB: i comandi tool() e nav() partono dal frame "pannello"

	switch (quale)
	{
		case 1:
			// ricerca sul web:
			parent.frames[0].frames[1].frames[0].location.href="/web1/ricerca/search.htm";
			break;
		case 2:
			// ricerca sul sito:
			parent.frames[0].frames[1].frames[0].location.href="/guestbook/search_it.html";		
			break;
		case 3:
			// guest book:
			parent.frames[0].frames[1].frames[0].location.href="http://www.labirinto.com/guestbook/guestbook.html";
			break;
		case 4:
			// section root:
			parent.frames[0].frames[1].frames[0].location.href="javascript:radice()";
			break;
		case 5:
			// page zoom:
			// alert (parent.frames[0].frames[1].frames[0].location.href);
			zoompage(parent.frames[0].frames[1].frames[0].location.href);
			break;
		case 6:
			// site map:
			window.open("/web3/sitemap1/mappa1.htm","map","width=240,height=340,history=no,resizable=0,status=0,scrollbars=no,menubar=0");
			break;
		case 7:
			// context informations:
			parent.frames[0].frames[1].frames[0].location.href="javascript:inform()";
			break;
		case 8:
			// about calypso:
			window.open("about.htm","about","width=600,height=300,history=no,status=0,resizable=0,scrollbars=0,menubar=0");
			break;
		case 9:
			// e-mail:
			location.href="mailto:staff@calypso.it";
			break;
		case 10:
			// help:
			window.open("guida.htm","pop_guida","width=450,height=300,history=no,status=0,resizable=1,scrollbars=1,menubar=0");
			//window.open("/web4/guida.htm","pop_guida","width=450,height=300,history=no,status=0,resizable=1,scrollbars=1,menubar=0");
			break;
	}
}



