<!--//

	//-- cambio lingua --//
	function changeLanguage(my_language)
	{
		window.location.href = '\?L=' + my_language;
		return true;
	}


	//-- mostra nasconde gli oggetti --//
	function _swapElement(my_object)
	{
		var obj = document.getElementById(my_object)
		if (obj)
		{ 
			if (obj.style.display=='block') obj.style.display='none'; else obj.style.display='block';
		}
	}

	function _showElement(my_object)
	{
		var obj = document.getElementById(my_object)
		if (obj) { obj.style.display='block';}
	}

	function _hideElement(my_object)
	{
		var obj = document.getElementById(my_object)
		if (obj) { obj.style.display='none';}
	}


  //-- modifica lo stato di visualizzazione del menu' progetti / servizi --//
  function _swapMenu()
  {
    _swapElement('mn_progetti');
    _swapElement('mn_servizi');
    _swapElement('click_prj');
    _swapElement('click_srv');
  }

	//-- apertura popup --//
	function openPopUp(pagina,nomeFinestra,parametriFinestra)
	{
		/* PROMEMORIA PARAMETRI
		width=300				larghezza della finestra
		height=200				altezza della finestra
		resizable=yes or no		finestra ridimensionabile
		scrollbars=yes or no	scrollbar
		toolbar=yes or no		barra di navigazione, pagina avanti, indietro, etc.
		location=yes or no		barra dove digitare l' url (http://address). 
		directories=yes or no	Whether or not the window should show the extra buttons. (what's cool, personal buttons, etc...). 
		status=yes or no		barra di statp 
		menubar=yes or no		menù delle applicazioni per la finestra (File, Edit, etc...). 
		copyhistory=yes or no	Whether or not to copy the old browser window's history list to the new window.
		*/

		var my_pop = null;
		my_pop = window.open(pagina,nomeFinestra,parametriFinestra);
		my_pop.focus();
	}


	//-- ridimensiona e posiziona --//
	function fullScreen()
	{
		if (window.screen)
			self.moveTo(0,0); 
			self.resizeTo(screen.availWidth,screen.availHeight);
	}

  //-- aggiugi ai preferiti --//
  function _addToPrefer()
  {
	  window.external.AddFavorite(location.href,document.title)
  }

//-->

