var navTimer;
var subTimer;

function showInfoCenterSubmenu() {
	window.clearTimeout(subTimer);
	hi(document.getElementById('ic'));
	document.getElementById('infoCenterSubmenu').style.display = 'block';
}
function hideInfoCenterSubmenu() {
	subTimer = window.setTimeout('_hideInfoCenterSubmenu()',100);
}
function _hideInfoCenterSubmenu() {
	lo(document.getElementById('ic'));
	document.getElementById('infoCenterSubmenu').style.display = 'none';
}

function showSubmitContentSubmenu() {
	window.clearTimeout(subTimer);
	hi(document.getElementById('sc'));
	document.getElementById('submitSubmenu').style.display = 'block';
}
function hideSubmitContentSubmenu() {
	subTimer = window.setTimeout('_hideSubmitContentSubmenu()',100);
}
function _hideSubmitContentSubmenu() {
	lo(document.getElementById('sc'));
	document.getElementById('submitSubmenu').style.display = 'none';
}

function showDropdown() {
	window.clearTimeout(navTimer);
	document.getElementById('dropdown').style.display = 'block';
}
function hideDropdown() {
	navTimer = window.setTimeout('_hideDropdown()',100);
}
function _hideDropdown() {
	document.getElementById('dropdown').style.display = 'none';
}

// Trying to generify this:

var timers = new Array();

function show(id) {
	window.clearTimeout(timers[id]);
	document.getElementById(id).style.display = 'block';
}
function hide(id) {
	timers[id] = window.setTimeout('_hide(\''+id+'\')',100);
}
function _hide(id) {
	document.getElementById(id).style.display = 'none';
}