function openSubmenu( submenuid ) {
	oSubmenu = document.getElementById(submenuid);
	oSubmenu.style.display = 'block';
}

function closeSubmenu(bgcolor, textcolor) {
	count = 1;
	
	while(eval("document.getElementById('submenu_'+count);")) {
		oSubmenu = eval("document.getElementById('submenu_'+count);");
		oSubmenu.style.display = 'none';
		
		count++;
	}
}

function restoreColors(bgcolor, textcolor) {
	count = 1;

	if(bgcolor!="" && textcolor!="") {
		while(eval("document.getElementById('navitem_'+count);")) {
			obj = eval("document.getElementById('navitem_'+count);");
			obj.style.backgroundColor = bgcolor;
			obj.style.color = textcolor;
		
			count++;
		}
	}
}
