//*****************************************************************************************
//
// IL PRESENTE CODICE E' DI PROPRIETA' ESCLUSIVA DI CABER Informatica srl,
// E' COPERTO DA COPYRIGHT E TUTTI I DIRITTI SONO RISERVATI.
// IN BASE ALLE LEGGI SUL COPYRIGHT NE E' VIETATA LA COPIA, LA RIPRODUZIONE
// O DISTRIBUZIONE SU QUALSIASI SUPPORTO E FORMA, LA MODIFICA O ALTERAZIONE
// IN QUALUNQUE SUA PARTE SENZA ESPLICITO CONSENSO SCRITTO DI CABER Informatica srl.
//
//*****************************************************************************************
//Nome File:             GestLang.js 
//
//Descrizione:           Gestione della lingua da utilizzare nella 
//                       visualizzazione delle pagine WEB.
//
//Autore:                Righi Alessandro
//
//-----------------------------------------------------------------------------------------
//vERSIONE    AUTORE     DATA/DESCRIZIONE
//-----------------------------------------------------------------------------------------
//2004.00.01  AR         16/03/2004
//                       Prima Programmazione
//*****************************************************************************************

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
		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.htm?" + sLang + sTmpSkip)
	}
//-----------------------------------------------------------------------------------