			function XShowHide (theLayer, isVisible)
			{
				if ((theLayer) && (theLayer.style))
				{
					if ((theLayer.style.visibility != 'visible') && (isVisible))
					{
						theLayer.style.visibility = 'visible';
						theLayer.style.display = 'block';
					}
					else if ((theLayer.style.visibility == 'visible') && (!isVisible))
					{
						theLayer.style.visibility = 'hidden';
						theLayer.style.display = 'none';
					}
				}
			}

			theShowIndex = -1;
			theShowOver = 0;
			
			var	isToHide = 0;
			
			function XShowMenu(theIndex, theOver)
			{
				if (((isToHide == 1) || (theIndex != 0)) && ((theShowIndex != theIndex) || (theShowOver != theOver)))
				{
					XShowHide (document.getElementById('TopMenu' + theShowIndex), 	0);
					XShowHide (document.getElementById('TopMenu' + theIndex), 		1);
	
					XShowHide (document.getElementById('SubMenu' + theShowIndex + theShowOver), 	0);
					XShowHide (document.getElementById('SubMenu' + theIndex + theOver), 			1);
			
					theShowIndex 	= theIndex;
					theShowOver 	= theOver;
				}
				isToHide = 0;
			}
			function XHideMenu()
			{
				isToHide = 1;
				setTimeout ("XShowMenu(0, 0)", 50);
			}
	
	
			var cur_immersione;
			
			function immersioni_show(id)
			{
				if (cur_immersione)
				{
					Effect.Fade (cur_immersione, {duration: 0.0});
				//	$('logo').style.top = '0px';
				//	$('crossdiv').style.top = '0px';
				}
				cur_immersione = id;
				if (cur_immersione)
				{
				
				//	$('logo').style.top = '-400px';
				//	$('crossdiv').style.top = '-400px';
					Effect.Appear (cur_immersione, {duration: 0.0});
				}
					
			}
			
			
			function user_delete (id)
			{
				if (confirm ('Sicuro?'))
				{
					location = 'admin_user_delete.xhtml?delete_user_id=' + id;
				}
			}
			
			
			
		
	function set_cookie ( name, value )
	{
		document.cookie = name + "=" + escape ( value ) + "; expires=" + (new Date ( 2020, 01, 01 )).toGMTString() + ';path=/';
	}

	function lan_switch ( new_lan, new_url)
	{
		set_cookie ( 'fav_lan', new_lan);
	}
		
		
			
			
			
			
			
			
			
			
			
			
			
			
			


