/*global SISAL window showGameDetail showWFLGameDetail $*/

/**
 * La variabile rappresenta il namespace utilizzato per tutto il codice
 * javascript di giochi numerici.
 */
SISAL.GNTN.WFLG = (function WFLG() {
	
	function getElement(id) {
		var element;
		if (document.all)
		{
			element = document.all[id];
		} else if (document.layers)
		{
			element = document.layers[id];
		}
		else
		{
			element = document.getElementById(id);
		}
		return element;
	}
	
	function elementIsNotNull(elementName)
	{
		var element = document.getElementById(elementName);
		if (element !== 'undefined' && element !== null && element !== 'null')
		{
			return true;
		}
	
		return false;
	}
	
	function eraseAllCookie() {
		SISAL.unsetCookie('_sezionewfl');
		SISAL.unsetCookie('_menutopwfl');
		SISAL.unsetCookie('_BoxInformativowfl');
		SISAL.unsetCookie('_BoxPromowfl');
		SISAL.unsetCookie('_BoxInfoSmallwfl');
		SISAL.unsetCookie('_assvirtwfl');
		SISAL.unsetCookie('visibleAssVirtwfl');
	}
	
	function callVincite(pag) {

		var cod,
			conc,
			mess;

		cod = document.getElementById("codice").value;
		conc = document.getElementById("concorso").value;

		if (SISAL.isNullOrEmpty(cod) || cod === 'Codice della giocata')
		{
			mess = "Il codice schedina è nullo o contiente caratteri non validi";
			SISAL.FX.showOnElement_TemplatePopup('body', 'gntn.alert.buttonok.html', {"{title}" : "Attenzione",	"{content}" : mess,	"{buttonclick}" : '<hideThis>',	width : '350px'});
			return;
		}
		if (SISAL.isNullOrEmpty(conc) || conc === 'Nr. concorso')
		{
			mess = "Il codice concorso è nullo o contiente caratteri non validi";
			SISAL.FX.showOnElement_TemplatePopup('body', 'gntn.alert.buttonok.html', {"{title}" : "Attenzione",	"{content}" : mess,	"{buttonclick}" : '<hideThis>',	width : '350px'});
			return;			
		}
		
		if (cod.length < 27)
		{
			mess = "Il codice schedina deve essere di 27 caratteri";
			SISAL.FX.showOnElement_TemplatePopup('body', 'gntn.alert.buttonok.html', {"{title}" : "Attenzione",	"{content}" : mess,	"{buttonclick}" : '<hideThis>',	width : '350px'});
		} else {
			if (isNaN(conc))
			{
				mess = "Inserire il concorso corretto";
				SISAL.FX.showOnElement_TemplatePopup('body', 'gntn.alert.buttonok.html', {"{title}" : "Attenzione",	"{content}" : mess,	"{buttonclick}" : '<hideThis>',	width : '350px'});
			} else
			{
				if (pag === 'hp')
				{
					location.href = "/winforlife/vincite?codice=" + cod + "&concorso=" + conc; //prod test
					//location.href = "/winforlife/concorsi_vincite?codice=" + cod + "&concorso=" + conc; // stage
				} else
				{
					SISAL.ajax('/WinForLifeGames/pubblico/servlet/verificavincite?codice=' + cod + '&concorso=' + conc,{async: true, target:'id_VerificaVincite'});					
				}
			}
		}
	}
	
	function selectGame(game)
	{
		if (game === 1)
		{
			document.getElementById("td1_1").className = "td_sel_left";
			document.getElementById("id_Game1").className = "tab_sel";
			document.getElementById("td1_3").className = "td_sel_right";
			document.getElementById("td2_1").className = "td_nosel_left";
			document.getElementById("id_Game2").className = "tab_nosel";
			document.getElementById("td2_3").className = "td_nosel_right";
		} else if (game === 2)
		{
			document.getElementById("td2_1").className = "td_sel_left";
			document.getElementById("id_Game2").className = "tab_sel";
			document.getElementById("td2_3").className = "td_sel_right";
			document.getElementById("td1_1").className = "td_nosel_left";
			document.getElementById("id_Game1").className = "tab_nosel";
			document.getElementById("td1_3").className = "td_nosel_right";
		}
	}
	
	function mostraAssistenteVirtuale() {
		SISAL.setCookie('visibleAssVirtwfl', {value : 'show', days : 5});
		document.getElementById("DYN_ASSISTENTEVIRTUALE_-").style.display = "none";
		document.getElementById("DYN_ASSISTENTEVIRTUALE_+").style.display = "block";
	}
	
	function nascondiAssistenteVirtuale() {
		SISAL.setCookie('visibleAssVirtwfl', {value : 'hide', days : 5});
		document.getElementById("DYN_ASSISTENTEVIRTUALE_-").style.display = "block";
		document.getElementById("DYN_ASSISTENTEVIRTUALE_+").style.display = "none";
	}
	
	function eliminaAssistenteVirtuale() {
		document.getElementById("DYN_ASSISTENTEVIRTUALE_-").style.display = "none";
		document.getElementById("DYN_ASSISTENTEVIRTUALE_+").style.display = "none";
	}
	
	var MenuLiv3_explose = '';
	function nascondiMenuLiv3() {
		var selectedObject,
			i,
			Stringa,
			LI_element,
			LIV3_element;
		if (!SISAL.isNullOrEmpty(SISAL.getCookie('_sezionewfl')))
		{
			selectedObject = SISAL.getCookie('_sezionewfl').replace('PAGE_', 'DIV_') + '_href';
		}

		LI_element = getElement('v_mnu_01').getElementsByTagName('a');
		for (i = 0; i < LI_element.length; i += 1) {
			//apre il menu di secondo livello se e' stata selezionata una voce di terzo livello
			Stringa = getElement(LI_element[i].id).parentNode.parentNode.parentNode.id;
			if (Stringa.search('DIV_') === -1) // selezionata voce di terzo livello
			{
				if (selectedObject === LI_element[i].id)
				{
					getElement(LI_element[i].id).style.backgroundImage = "url(/wfl/Immagini/Top/menu_liv2_right.png)"; // freccia grigia destra
				}
			}
		}

		LI_element = getElement('v_mnu_01').getElementsByTagName('div');
		MenuLiv3_explose = '';
		
		if (!SISAL.isNullOrEmpty(SISAL.getCookie('_sezionewfl'))) 
		{
			selectedObject = SISAL.getCookie('_sezionewfl').replace('PAGE_', 'DIV_');
		}
						
		for (i = 0; i < LI_element.length; i += 1) // VEDI CICLO
		{
			// nascondo il div del menu di terzo livello
			getElement(LI_element[i].id).style.display = "none";

			// cambio la grafica del menu di secondo livello mettendo la freccia
			// a destra
			getElement(LI_element[i].id + '_href').style.backgroundImage = "url(/wfl/Immagini/Top/menu_liv2_right.png)"; // freccia

			// cambio la grafica dei menu di terzo livello relativi al menu
			// selezionato
			LIV3_element = LI_element[i].getElementsByTagName('a');
		}
	}
	function mostraMenuLiv3(nome) {

		var DIVnome;
		if (nome.search('DIV_') !== -1)
		{
			DIVnome = nome;
		} else
		{
			DIVnome = 'DIV_' + nome;
		}

		if (getElement(DIVnome) !== undefined && MenuLiv3_explose !== DIVnome)
		{
			// nascondere il MENU
			// nascondiMenuLiv3();
			MenuLiv3_explose = DIVnome;
			if (!SISAL.isNullOrEmpty(getElement(DIVnome)))
			{
				getElement(DIVnome).style.display = "block";
			}
		}
	}

	function setImageMenuLiv2(object, nome)
	{
		/*
		 * var PAGEnome = 'PAGE_'+nome; var DIVnome = 'DIV_'+nome; var
		 * DIVHREFnome = 'DIV_'+nome+'_href';
		 * 
		 * if (getElement(DIVnome) != undefined) { LI_element =
		 * getElement(DIVnome).getElementsByTagName('li');
		 * 
		 * if (LI_element.length > 0) { // per Internet Explorer ->> illumina le
		 * voci selezionate del menu di secondo e terzo livello
		 * //object.style.color = "#d91117"; } } else { // per Internet Explorer
		 * ->> illumina le voci selezionate del menu di secondo e terzo livello
		 * //getElement(DIVHREFnome).style.color = "#d91117"; }
		 */
	}
	function resetImageMenuLiv2(object, nome) {
		var PAGEnome,
			DIVnome,
			DIVHREFnome;
		
		PAGEnome = 'PAGE_' + nome;
		DIVnome = 'DIV_' + nome;
		DIVHREFnome = 'DIV_' + nome + '_href';
	}

	
	function selectMenuLiv3FromName(menuname) {
		// Seleziona il link scelto dall'utente del menu di livello 1 TOP
		var Stringa,
			DIVnome,
			DIVHREFnome,
			LI_element,
			IdSelected_forMenu;

		IdSelected_forMenu = "";
		Stringa = "";

		// nasconde tutti i menu di liv3
		nascondiMenuLiv3();
		if (getElement(menuname) !== null && getElement(menuname) !== 'null' && getElement(menuname) !== '')
		{
			if (IdSelected_forMenu.id !== "undefined") {
				IdSelected_forMenu.className = "v_mnu_01";
			}
			// apre il menu di secondo livello se è stata selezionata una voce
			// di terzo livello
			if (!SISAL.isNullOrEmpty(getElement(menuname)))
			{
				Stringa = getElement(menuname).parentNode.parentNode.parentNode.parentNode.id;
			}
			//Stringa = getElement(menuname).parentNode.parentNode.id;
			if (Stringa !== '')
			{
				// illumino la voce di secondo livello se selezionata una voce
				// di terzo livello
				if (Stringa !== 'v_mnu_01')
				{
					// freccia rossa basso
					getElement(Stringa + '_href').style.backgroundImage = "url(/wfl/Immagini/Top/menu_liv2_downC.png)";
				}
				mostraMenuLiv3(Stringa);
			}

			// apre il menu di secondo livello se è stata visualizzata una voce
			// di secondo livello che contiene anche terzi livelli
			DIVnome = 'DIV_' + menuname.substr(5, menuname.length);
			if (!SISAL.isNullOrEmpty(getElement(DIVnome)))
			{
				
				LI_element = getElement(DIVnome).getElementsByTagName('li');

				if (LI_element.length > 0)
				{
					mostraMenuLiv3(DIVnome);
				}
			}

			IdSelected_forMenu = getElement(menuname);
			// se il parente è un "LI" significa che sto guardando un menu di
			// terzo livello
			if (!SISAL.isNullOrEmpty(getElement(menuname)))
			{
				if (getElement(menuname).parentNode.parentNode.nodeName === "LI")
				{
					getElement(menuname).className = "v_mnu_02_sel";
					// illumina la freccia di arancione per il menu di terzo
					// livello..
					DIVHREFnome = 'DIV_' + menuname.replace('PAGE_', '') + '_href';
					// getElement(DIVHREFnome).style.backgroundImage =
					// "url(/wfl/Immagini/Top/menu_liv3_rightC.png)"; // freccia
					// aranzione destra
				} else
				{
					getElement(menuname).className = "v_mnu_01_sel";
					// illumina la freccia di rosso per il menu di secondo livello..
					DIVHREFnome = 'DIV_' + menuname.replace('PAGE_', '') + '_href';
					//freccia rossa destra
					getElement(DIVHREFnome).style.backgroundImage = "url(/wfl/Immagini/Top/menu_liv2_rightC.png)"; 
				}
			}
		}
	}

	function refreshPage(obj, PageName, idName, menutop, assvirt,
			BoxInformativo, BoxPromo, BoxInfoSmall, menu1liv, menu2liv,
			numeroconto, anno, concorso, giorno, profilato, cap) {
		
		var pagepath_pagename,
			PagePath_text,
			visibleAssVirt,
			PAGEnome,
			DIVnome,
			DIVHREFnome,
			LI_element,
			Stringa;
		// seleziona la voce sul menu
		if (menu1liv.substr(0, 1) !== '1')
		{
			selectMenuLiv3FromName('PAGE_' + idName);
		} else
		{
			nascondiMenuLiv3();
		}

		// setto il contenuto che voglio visualizzare
		SISAL.setCookie('_sezionewfl', {value : 'PAGE_' + idName, days : 5});
		// setto il contenuto che voglio visualizzare
		SISAL.setCookie('_BoxInformativowfl', {value : BoxInformativo,	days : 5});
		// setto il contenuto dell'assistente virtuale che voglio visualizzare
		SISAL.setCookie('_assvirtwfl', {value : assvirt, days : 5});
		// setto il contenuto che voglio visualizzare
		SISAL.setCookie('_BoxPromowfl', {value : BoxPromo,	days : 5});
		// setto il contenuto che voglio visualizzare
		SISAL.setCookie('_BoxInfoSmallwfl', {value : BoxInfoSmall,	days : 5});

		pagepath_pagename = document.getElementById('pagepath_pagename');

		if (menu2liv !== '') {
			if (menu1liv.substr(0, 1) !== '1') // per capire se clicco sulla voce
											// di primo livello del menu di
											// secondo livello
			{
				if (menu1liv !== null && menu1liv !== '' && menu1liv !== 'null' && menu1liv !== 'undefined')
				{
					PagePath_text = '<span id="pagepath_pagename_padre" class="menu_pagepath_nolink_green">' + menu1liv + '<span class="menu_pagepath_nolink">&nbsp;/&nbsp;</span>' + menu2liv + '</span><span class="menu_pagepath_nolink">&nbsp;/&nbsp;' + PageName + '</span></span>';
				} else
				{
					PagePath_text = '<span id="pagepath_pagename_padre" class="menu_pagepath_nolink_green">' + menu2liv + '</span><span class="menu_pagepath_nolink">&nbsp;/&nbsp;' + PageName + '</span></span>';
				}
			} else
			{
				PagePath_text = '<span id="pagepath_pagename_padre" class="menu_pagepath_nolink">' + menu1liv.substr(1);
			}

		} else {
			if (menu1liv.substr(0, 1) !== '1') 
			{
				if (menu1liv !== null && menu1liv !== '' && menu1liv !== 'null'	&& menu1liv !== 'undefined')
				{
					PagePath_text = '<span id="pagepath_pagename_padre" class="menu_pagepath_nolink_green">' + menu1liv + '<span class="menu_pagepath_nolink">&nbsp;/&nbsp;' + PageName + '</span></span>';
				} else
				{
					PagePath_text = '<span id="pagepath_pagename_padre" class="menu_pagepath_nolink">' + PageName + '</span>';
				}
			} else
			{
				PagePath_text = '<span id="pagepath_pagename_padre" class="menu_pagepath_nolink">' + menu1liv.substr(1);
			}
		}
		// cambio il nome della pagina all'interno del pagepath
		// if (elementIsNotNull('pagepath_pagename'))
		if (!SISAL.isNull('pagepath_pagename'))
		{
			pagepath_pagename.innerHTML = PagePath_text;
		}

		// refresh del contenuto centrale (Box Informativo) della paginas
		if (BoxInformativo !== '' && !SISAL.isNull("portalDiv_BoxInformativo"))
		{
			if (cap !== ''){
				SISAL.ajax("/portal/page/portal/wfldoclib/contenuti/boxinformativo/" + BoxInformativo + "?page_cap=" + cap, {target : "portalDiv_BoxInformativo"});				
			} else {
				if (BoxInformativo === 'Concorsi')
				{
					SISAL.ajax("/WinForLifeGames/pubblico/gestioneDettaglioConcorso.jsp?numeroconto=" + numeroconto + "&anno=" + anno + "&concorso=" + concorso + "&giorno=" + giorno, {target : "portalDiv_BoxInformativo"});
				} else
				{
					if (profilato === '1' && numeroconto !== '')
					{
						SISAL.ajax("/portal/page/portal/wfldoclib/contenuti/boxinformativo/" + BoxInformativo + "p?numeroconto=" + numeroconto, {target : "portalDiv_BoxInformativo"});
					} else
					{
						SISAL.ajax("/portal/page/portal/wfldoclib/contenuti/boxinformativo/" + BoxInformativo + "?numeroconto=" + numeroconto, {target : "portalDiv_BoxInformativo"});
					}
				}
			}
		}

		// refresh del contenuto centrale (Box Promo) della pagina
		if (elementIsNotNull("portalDiv_BoxPromo"))
		{
			if (!SISAL.isNull(BoxPromo))
			{	
				document.getElementById('portalDiv_BoxPromo').style.display = 'block';
				SISAL.ajax("/portal/page/portal/wfldoclib/contenuti/boxpromo/" + BoxPromo + "?numeroconto=" + numeroconto, {target: "portalDiv_BoxPromo"});
			} else
			{
				document.getElementById('portalDiv_BoxPromo').style.display = 'none';
			}
		}

		// refresh del contenuto centrale (Box Info Small) della pagina
		if (elementIsNotNull("portalDiv_BoxInfoSmall"))
		{
			if (!SISAL.isNull(BoxInfoSmall))
			{	
				document.getElementById('portalDiv_BoxInfoSmall').style.display = 'block';
				SISAL.ajax("/portal/page/portal/wfldoclib/contenuti/boxinfosmall/" + BoxInfoSmall + "?numeroconto=" + numeroconto, {target: "portalDiv_BoxInfoSmall"});
			} else
			{
				document.getElementById('portalDiv_BoxInfoSmall').style.display = 'none';
			}
		}

		visibleAssVirt = SISAL.getCookie("visibleAssVirtwfl");

		// gestione del refresh del portletLogin
		SISAL.GNTN.LOGIN.controlloSessioneScaduta();

		// refresh del contenuto dell'assistente virtuale
		if (elementIsNotNull("id_assvirt"))
		{
			if (!SISAL.isNullOrEmpty(assvirt))
			{	
				document.getElementById('id_assvirt').style.display = 'block';
				SISAL.ajax("/portal/page/portal/wfldoclib/contenuti/AssistenteVirtuale?assirvt=" + assvirt + "&numeroconto=" + numeroconto, {target: "id_assvirt"});		
			} else
			{
				document.getElementById('id_assvirt').style.display = 'none';
			}
		}

		// gestione dell'illuminazione della freccia per il menu di secondo
		// livello
		if (menu1liv.substr(0, 1) !== '1')
		{
			PAGEnome = 'PAGE_' + idName;
			DIVnome = 'DIV_' + idName;
			DIVHREFnome = 'DIV_' + idName + '_href';
		}

		// apre il menu di secondo livello se è stata selezionata una voce di
		// terzo livello

		if (menu1liv.substr(0, 1) !== '1') {
			Stringa = getElement(PAGEnome).parentNode.parentNode.parentNode.parentNode.id;
			if (Stringa.search('DIV_') === -1) // selezionata voce di terzo
												// livello
			{
				// freccia rossa destra
				getElement(DIVHREFnome).style.backgroundImage = "url(/wfl/Immagini/Top/menu_liv2_rightC.png)"; 
				if (elementIsNotNull(DIVnome))
				{
					LI_element = getElement(DIVnome).getElementsByTagName('li');

					if (LI_element.length > 0)
					{
						// freccia rossa basso
						getElement(DIVHREFnome).style.backgroundImage = "url(/wfl/Immagini/Top/menu_liv2_downC.png)"; 
					}
				}
			}

		}
	}
	
	function tunrOnMenu(id, numore) {

		var i, strid, elemento;

		i = 0;
		strid = 'PAGE_Concorso';
		elemento = document.getElementById(id);
		
		if (!SISAL.isNullOrEmpty(elemento))
		{
			elemento.className = 'menu3acceso';
		}

		for (i = 1; i <= numore; i += 1) {

			if (strid + i !== id) {
				if(!SISAL.isNullOrEmpty(document.getElementById(strid + i)))
				{
					document.getElementById(strid + i).className = 'menu3spento';
				}
			}
		}
	}
	
	function controlloCookieMenuLiv1(menu, href, sezione, content, assvirt) {
		
		var urlReturn;
		
		urlReturn = 'javascript: void 0;';
		
		if (document.getElementById(menu).className !== 'current') {
			SISAL.setCookie('_sezionewfl', {value : sezione, days : 5});
			SISAL.setCookie('_assvirtwfl', {value : assvirt, days : 5});
			SISAL.setCookie('_menutopwfl', {value : menu, days : 5});

			SISAL.unsetCookie('_BoxInformativowfl');
			SISAL.unsetCookie('_BoxPromowfl');
			SISAL.unsetCookie('_BoxInfoSmallwfl');

			return href; // + "&_visibleAssVirt=" + SISAL.getCookie('visibleAssVirt');
		}

		return urlReturn;
	}
	
	function selectMenuLiv1(menuparam) {
		
		if (!SISAL.isNullOrEmpty(getElement(menuparam)))
		{
			getElement(menuparam).className = getElement(menuparam).className + " current";
		}
	}
	
	/* Gestione faq */
	function faqShowHideCategoria(CATEGid) {
		var elemento = document.getElementById('FAQ_categ' + CATEGid);

		if (elemento !== 'null' && elemento !== null && elemento !== 'undefined')
		{
			switch (elemento.style.display)
			{
				case 'block':
				{
					// nascondi la risposta dell'elemento selezionato
					elemento.style.display = "none";
					document.getElementById('FAQ_freccia' + CATEGid).src = '/wfl/Immagini/Comune/frecciaDown.png';
					break;
				}
				default:
				{
					// mostra la risposta dell'elemento selezionato
					elemento.style.display = "block";
					document.getElementById('FAQ_freccia' + CATEGid).src = '/wfl/Immagini/Comune/frecciaUp.png';
					break;
				}
			}
		}
	}
	function faqShowHideDomanda(FAQid) {
		var elemento = document.getElementById('FAQ_ris' + FAQid);

		if (elemento !== 'null' && elemento !== null && elemento !== 'undefined')
		{
			switch (elemento.style.display)
			{
				case 'block':
				{
					// nascondi la risposta dell'elemento selezionato
					elemento.style.display = "none";
					break;
				}
				default:
				{
					// mostra la risposta dell'elemento selezionato
					document.getElementById("portalIFrame_FAQ_COUNTER").src = "/portal/page/portal/wfldoclib/ADMIN_page/FAQ_COUNTER?FAQid="
							+ FAQid;
					elemento.style.display = "block";
					break;
				}
			}
		}
	}
	
	function intiLoad() {
			
		if (!SISAL.isNullOrEmpty(SISAL.getParameter('mppartner') != ''))
		{
			SISAL.setCookie('mppartner',{ value: SISAL.getParameter('mppartner'), days: 5});
		}	
	}
	
	function goMap(cap, lati, longi, indirizzo, citta, prov){
		
		var mess;
				
		if (lati !== '' && lati !== 'undefined' && longi !== '' && longi !== 'undefined')
		{
			SISAL.ajax("/portal/page/portal/wfldoclib/contenuti/boxinformativo/Comeriscuotereris?page_cap=" + cap + "&lat=" + lati + "&lng=" + longi + "&indirizzo=" + indirizzo + "&citta=" + citta + "&provincia=" + prov, {target : "portalDiv_BoxInformativo"});
		}else
		{
			if (cap !== '')
			{
				if (isNaN(cap))
				{
					mess = "Inserire il CAP corretto";
					SISAL.FX.showOnElement_TemplatePopup('body', 'gntn.alert.buttonok.html', {"{title}" : "Attenzione",	"{content}" : mess,	"{buttonclick}" : '<hideThis>',	width : '350px'});	
				} else
				{
					wflg.refreshPage(this,'Come riscuotere', 'Comeriscuotere', 'MENU_VINCITE', 'Comeriscuotere', 'Comeriscuotereris', 'Comeriscuotere', 'Comeriscuotere', 'Concorsi e Vincite','','','','','','0',cap);
				}
			} else
			{
				mess = "Inserire il CAP";
				SISAL.FX.showOnElement_TemplatePopup('body', 'gntn.alert.buttonok.html', {"{title}" : "Attenzione",	"{content}" : mess,	"{buttonclick}" : '<hideThis>',	width : '350px'});
			}
		}
	}
	
	return {
		eraseAllCookie : eraseAllCookie,
		callVincite : callVincite,
		selectGame : selectGame,
		mostraAssistenteVirtuale: mostraAssistenteVirtuale,
		nascondiAssistenteVirtuale: nascondiAssistenteVirtuale,
		eliminaAssistenteVirtuale : eliminaAssistenteVirtuale,
		refreshPage : refreshPage,
		tunrOnMenu : tunrOnMenu,
		selectMenuLiv3FromName : selectMenuLiv3FromName,
		setImageMenuLiv2 : setImageMenuLiv2,
		resetImageMenuLiv2 : resetImageMenuLiv2,
		selectMenuLiv1 : selectMenuLiv1,
		controlloCookieMenuLiv1 : controlloCookieMenuLiv1,
		faqShowHideCategoria : faqShowHideCategoria,
		faqShowHideDomanda : faqShowHideDomanda,
		intiLoad : intiLoad,
		goMap : goMap
	};
}());

if (SISAL.logger.isInfoEnabled()) {
	SISAL.logger.info("SISAL.GNTN.WFLG - namespace creato");
}
