var dropDown = new Array('dropDown1','dropDown2','dropDown3');
var disappearSet = 0;

function showMenu(i)
{
	hideMenu();
	if(disappearSet == 1)
	{
		clearTimeout(disappear);
	}
	document.getElementById(dropDown[i]).style.display = "block";
}

function hideMenu()
{		
		for (i=0; i<dropDown.length; ++i)
		{
			document.getElementById(dropDown[i]).style.display = 'none';
		}
}

function stay()
{
	clearTimeout(disappear);
}

function leave()
{
	disappear = setTimeout("hideMenu()",1500);
	disappearSet = 1;
}