
var gTimeout;
var gCurrentMenu = 0

function ShowNavigation(theMenuNr)
{
	window.clearTimeout(gTimeout);
	if(gCurrentMenu != theMenuNr && gCurrentMenu != 0) doHideNavigation(gCurrentMenu);
	gCurrentMenu = theMenuNr;
	eval("document.all.subnavigationTable" + theMenuNr + ".style.visibility = 'visible';");
	eval("document.all.subnavigationTable" + theMenuNr + ".style.opacity = '95';");
	eval("document.all.subnavigationTable" + theMenuNr + ".style.filter = 'alpha(opacity=95)';");
	//GlowNavigation(theMenuNr);
}

function GlowNavigation(theMenuNr)
{
	
	eval("aObject = document.all.subnavigationTable" + theMenuNr);
	aCurrentOpacity = Number(aObject.style.opacity);
	
	if(aCurrentOpacity < 1)
	{
		aObject.style.opacity = aCurrentOpacity + 0.1;
		aObject.style.filter = "alpha(opacity=" + (100*(aCurrentOpacity + 0.3)) + ")";
		gTimeout = window.setTimeout("GlowNavigation(" + theMenuNr + ")", 50);
	}
	else
	{
		//alert(aCurrentOpacity);
	}
}

function HideNavigation(theMenuNr)
{
	gTimeout = window.setTimeout("doHideNavigation(" + theMenuNr + ")", 750);
}

function doHideNavigation(theMenuNr)
{
//	window.clearTimeout(gTimeout);
	eval("document.all.subnavigationTable" + theMenuNr + ".style.opacity = '0';");
//	eval("document.all.subnavigationTable" + theMenuNr + ".style.filter = 'alpha(opacity=0)';");
	eval("document.all.subnavigationTable" + theMenuNr + ".style.visibility = 'hidden';");

}
