var DropDown = new Object();

DropDown.init = function(subItems)
{
	DropDown.subNav = subItems;
}

DropDown.display = function(subItem, activeItem)
{
	for(var i=0; i<DropDown.subNav.length; i++)
	{
		var subItems = document.getElementById(DropDown.subNav[i]);
		if(subItems == document.getElementById(subItem))
		{
			subItems.style.display = '';
		}
		else
		{
			subItems.style.display = 'none';
		}
	}
}

DropDown.collapse = function(subItem)
{
	if(DropDown._interval)
	{
		clearInterval(DropDown._interval);
	}
	DropDown._interval = setInterval('DropDown.Close("'+ subItem +'");', 4000);
}

DropDown.Close = function(subItem)
{
	document.getElementById(subItem).style.display = 'none';
	clearInterval(DropDown._interval);
}