//***********************************************************************************
//Nome File:			GestLang.js 
//Descrizione:			Gestione della lingua da utilizzare nella visualizzazione  
//						delle pagine WEB.
//Autore:				Righi Alessandro
//Data Ultima Modifica:	16/03/2004
//Versione:				2004.00.01
//***********************************************************************************

var sLang=""
var bSkipAnimation=false

//-----------------------------------------------------------------------------------
// Funzione per l'elaborazione delle opzioni passate sull'url (dopo il carattere ?)
//-----------------------------------------------------------------------------------
function CheckOption()
	{
	sTmp = window.location.search.substring(1,4)
	sTmp=sTmp.toUpperCase()
	
	switch (sTmp)
		{
		case "ITA":
			sLang=sTmp
			break
		case "ENG":
			sLang=sTmp
			break
		case "DEU":
			sLang=sTmp
			break
		case "POL":
			sLang=sTmp
			break
		case "ESP":
			sLang=sTmp
			break
		default:
			sLang="ITA"
		}
		
	sTmp = window.location.search.substring(4,7)
	sTmp=sTmp.toUpperCase()
	
	switch (sTmp)
		{
		case "SKP":
			bSkipAnimation=true
			break
		default:
			bSkipAnimation=false
		}
		
	}
	
function GoHomePage(sSuffix, bSkip)
	{
	
	if (bSkip == null)
		{
		bSkip=true
		}
		
	if (bSkip)
		{
		sTmpSkip="SKP"
		}
	else
		{
		sTmpSkip=""
		}
		
	window.navigate(sSuffix + "Index.asp?" + sLang + sTmpSkip)
	}
//-----------------------------------------------------------------------------------
