	var ns = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4") // True se NS4.x
	var nummenu = 3; // Numero di menu presenti
	var moveid = new Array();
	var i;
	
	for (i=1; i<=nummenu; i++) // Inizializza i timeout, necessario per NS6
	{
	moveid[i] = setTimeout('null',1);
	}
	
	function VisDiv( n ) 
	{
		pullupall(n);
		pulldown(n);
	}
	
	function pulldown(num)
	{
		n=num;
		if( ns ) // NS4.x 
		{
			clearTimeout(moveid[n]);
			if (document.layers["lay"+num].clip.bottom<22)
			{
			document.layers["lay"+num].clip.bottom+=2;
			moveid[n]=setTimeout("pulldown(n)",30);
			}
		}
		else  // IE,NS6
		{
			clearTimeout(moveid[n]);
			if (parseInt(document.getElementById("div"+num).style.top)<70) 
			{
			document.getElementById("div"+num).style.top=parseInt(document.getElementById("div"+num).style.top)+2;
			moveid[n]=setTimeout("pulldown(n)",30);
			}
		}
	}
	
	function pullupall(idkeep) // Chiude tutti i menu tranne 'idkeep', se 'idkeep' è uguale a 0, tutti i menu vengono chiusi
	{
		n=idkeep;
		for (i=1; i<=nummenu; i++)
		{
			if(( ns ) && (idkeep!=i)) // NS4.x
			{
				clearTimeout(moveid[i]);
				if (document.layers["lay"+i].clip.bottom>0)
				{
				document.layers["lay"+i].clip.bottom-=2;
				moveid[i]=setTimeout("pullupall(n)",30);
				}
			}
			else if (idkeep!=i) // IE,NS6
			{
				clearTimeout(moveid[i]);
				if (parseInt(document.getElementById("div"+i).style.top)>50)
				{				document.getElementById("div"+i).style.top=parseInt(document.getElementById("div"+i).style.top)-2;
				moveid[i]=setTimeout("pullupall(n)",30);
				}
			}
		}
	}
	
	function ShowNews()
	{
	document.news.src='images/b2on.gif';
	}
	
	function HideNews()
	{
	document.news.src='images/b2.gif';
	}	
