var menuTimer=null;
var menus = new Array();
menus['what'] = '<a href="index.php?page=what&sub=introduction">Introduction</a><br><a href="index.php?page=what&sub=analysis">Needs Analysis</a><br><a href="index.php?page=what&sub=booklets">Forever Learning Booklets</a><br><a href="index.php?page=what&sub=courses">Courses For You and By You</a><br>';
menus['people'] = '<a href="index.php?page=people&sub=what">What They Say</a><br><a href="index.php?page=people&sub=how_many">How Many Say It</a><br>';

function showMenu(name,which)
{
	resetTimer();
	var pos = getAnchorPosition(name);
	document.getElementById("divMenu").style.left=(pos['x']+100)+"px";
	document.getElementById("divMenu").style.top=(pos['y']+2)+"px";
	document.getElementById("divMenu").innerHTML = menus[which];
	document.getElementById("divMenu").style.display="block";
}
function hideMenu()
{
	resetTimer();
	document.getElementById("divMenu").style.display="none";
	document.getElementById("divMenu").innerHTML='';
}
function startTimer(period)
{
	menuTimer = setTimeout("hideMenu()",period);
}
function resetTimer()
{
	clearTimeout(menuTimer);
}

function showDiv(name) { document.getElementById(name).style.display="block"; }
function hideDiv(name) { document.getElementById(name).style.display="none"; }
