var curMenu = '';
function showMenu(a) {
	var toShow = document.getElementById(a);
	if(toShow) {
		toShow.style.display = 'block';
		if(curMenu && curMenu.length) {
			var toHide = document.getElementById(curMenu);
			if(toHide)
				toHide.style.display = 'none';
		}
		curMenu = a;
	}
	return false;
}

function menuLoaded() {
	for(i=1; i<=15; i++) {
		var toHide = document.getElementById('menusection' + i);
		if(toHide) {
			toHide.style.display = 'none';
		}
	}
}