
	function show(par)
    {
        if (document.getElementById(par)!=null)
            document.getElementById(par).style.display="block";
    }
    
	function hide(par)
	{
		if (document.getElementById(par)!=null)
			document.getElementById(par).style.display="none";
	}
	
	function mostra(par)
	{
		for (ct=1;ct<8;ct++)
		{
			li="sottomenuOriz"+ct;
			if (ct==par) 
			{
				show(li);
			}
			else
			{
				hide(li);
			}	
		}
	}
	
	function nascondi()
	{
		for (ct=1;ct<8;ct++)
		{
			li="sottomenuOriz"+ct;
			{
				hide(li);
			}	
		}
	}
	
	var isOnMouseOver = '0';
	
	function callOnMouseOver(par)
	{
		clearInterval();
		isOnMouseOver = '1';
		if (par!=''){
			mostra(par);
		} else {
			nascondi();
		}

	}	
	function callOnMouseOverLiv2()
	{
		clearInterval();
		isOnMouseOver = '1';
	}	
	
	function callOnMouseOut() 
	{
		isOnMouseOver = '0';
		window.setTimeout("callOnSetInterval()", 5000);
	}
	
	function callOnSetInterval()
	{
		if (isOnMouseOver == '0') {
			clearInterval();
			nascondi();
			resetmenu();
		}
	}
	
	
	function setAttivo(par)
	{	
		li="sottomenuOriz"+par;
		if (document.getElementById(li)!=null)
		{
			document.getElementById(li).style.background='#194A65';
			document.getElementById(li).style.color='#fff';
		}
	}
	function setAttivo_down(par)
	{	
		if (par!=''){
			li_down="menuDown"+par;
			if (document.getElementById(li_down)!=null)
			{
				document.getElementById(li_down).style.background='#194A65';
				document.getElementById(li_down).style.color='#fff';
			}
		}
	}
	
	function setAttivo_Header(par)
	{	
		if (par!=''){
			li_down="menuHeader"+par;
			if (document.getElementById(li_down)!=null)
			{
				document.getElementById(li_down).style.background='#194A65';
				document.getElementById(li_down).style.color='#fff';
			}
		}
	}	