myBrowser=navigator.appName
myVersion=navigator.appVersion
var NS4=(myBrowser.indexOf("Netscape")!=-1&&myVersion[0]=="4")
var NS=(myBrowser.indexOf("Netscape")!=-1)
var IE=(myBrowser.indexOf("Explorer")!=-1)
if(IE){var hide="hidden"; var show="visible"}
if(NS){var hide="hide"; var show="show"}

function showList(strName)
{
	if (document.all)
	{
		eval('document.all.'+strName+'.style.visibility="visible"')
	}
	else if (document.layers)
	{
		eval('document.layers["'+strName+'"].visibility="show"')
	}
	else if (document.getElementById)
	{
		eval('document.getElementById("'+strName+'").style.visibility="visible"')
	}
}

function hideList(strName)
{
	if (document.all)
	{
		eval('document.all.'+strName+'.style.visibility="hidden"')
	}
	else if (document.layers)
	{
		eval('document.layers["'+strName+'"].visibility="hide"')
	}
	else if (document.getElementById)
	{
		eval('document.getElementById("'+strName+'").style.visibility="hidden"')
	}
}

function clearAll()
{
	for (i=0; i<arMenu.length; i++)
	{
		if (arMenu[i].showTimeout != null)
			window.clearTimeout(arMenu[i].showTimeout)
		if (arMenu[i].hideTimeout != null)
			window.clearTimeout(arMenu[i].hideTimeout)
	}

}

function hideAll()
{
	clearAll()
	for (i=0; i<arMenu.length; i++)
	{
		arMenu[i].hideList(arMenu[i].name)
	}

}

function enterList()
{
	if (this.hideTimeout != null)
		window.clearTimeout(this.hideTimeout);
}

function exitList()
{
	if (this.showTimeout != null)
		window.clearTimeout(this.showTimeout);
	if (this.hideTimeout != null)
		window.clearTimeout(this.hideTimeout);

	var objList=this
	this.hideTimeout = window.setTimeout("hideList('"+this.name+"')", 1000)
}

function enterLink()
{
	if (this.showTimeout != null)
		window.clearTimeout(this.showTimeout);
	if (this.hideTimeout != null)
		window.clearTimeout(this.hideTimeout);
	hideAll()

	var objList=this
	this.showTimeout = window.setTimeout("showList('"+this.name+"')", 200)
}

function exitLink()
{
	if (this.showTimeout != null)
		window.clearTimeout(this.showTimeout);
	if (this.hideTimeout != null)
		window.clearTimeout(this.hideTimeout);

	var objList=this
	this.hideTimeout = window.setTimeout("hideList('"+this.name+"')", 1000)
}

function menuList(name)
{
	this.name = name
	this.showList = showList
	this.hideList = hideList
	this.enterLink = enterLink
	this.exitLink = exitLink
	this.enterList = enterList
	this.exitList = exitList
	this.showTimeout = null
	this.hideTimeout = null
}
