var agt = navigator.userAgent.toLowerCase();
var app = navigator.appName.toLowerCase();
var ver = navigator.appVersion.toLowerCase();
var timerID;

function accessNav(id) {
for (i=start;i<=arrayLength;i++) {
		if ('drop'+i == id) {

	if (agt.indexOf("mac")>=0){
		if (app.indexOf("microsoft")>=0) {
			if (ver.indexOf("5")>=0) {
				document.getElementById('drop'+i).style.top = "124px";
			}
		}
	}
document.getElementById('drop'+i).style.visibility = "visible";
document.getElementById('drop'+i).focus();
} else {
document.getElementById('drop'+i).style.visibility = "hidden";
}
}
}

function ShowNavMenu(id,timer) {
if (agt.indexOf("mac")>=0)
	{
	if (app.indexOf("microsoft")>=0)
	{
		if (ver.indexOf("5")>=0)
		{
		document.getElementById(id).style.top = "124px";
		}
	}
	}
document.getElementById(id).style.visibility = "visible";
clearTimeout(timerID)
timerID = setTimeout ("hideNavMenu('"+id+"')",timer)
}

function hideNavMenu(id) {
document.getElementById(id).style.visibility = "hidden";
}

function clearTimer() {
clearTimeout(timerID)
}

function setTimer(id) {
timerID = setTimeout ("hideNavMenu('"+id+"')",3000)
}

function focusNav(id) {
document.getElementById(id).focus();
}