//Note We Use js1.4 - so we should not even need to worry about older browsers
var ddmc=null;
var ddmt=null;
var ddmd = 4000; //timeout delay

function ddmi(o)
{	
	//most of the work here is to get around moz mouseout not working all the time
	try
	{
		//always hide old if moving between links
		if(ddmc!=null && ddmc!=o)
		{
			ddmc.getElementsByTagName('ul')[0].style.display='none';	
			clearTimeout(ddmt);
		}

		//always hide eventually, but reset timeout if we are the same thats running
		if(ddmc!=null && ddmc==o)
		{
			if(ddmt!=null)
			{
				clearTimeout(ddmt);
			}
			ddmt = setTimeout(ddmh,5000);		
		}


		ddmc=o;
		ddmc.getElementsByTagName('ul')[0].style.display='block';	
		
	}
	catch (e)
	{
	}
}
function ddmo(o)
{
	try
	{
		//dont hide straight away - there maybe a gap in the list items so out gets fired so give us a chance to catch it
		if(ddmc!=null && ddmc==o)
		{
			if(ddmt!=null)
			{
				clearTimeout(ddmt);
			}			
			ddmt = window.setTimeout(ddmh,500);		
		}
	}
	catch (e)
	{
	}
}
function ddmh()
{
	try
	{
		//this is the real hide function - ie parameters dont seem to send so hide current
		ddmc.getElementsByTagName('ul')[0].style.display='none';
	}
	catch (e)
	{
	}
}
