function hideSubs() {
	for (i=1; i<10; i++)
		if (document.getElementById('sub' + i))
			document.getElementById('sub' + i).style.display = 'none';	
}

function showSub(n) {
	hideSubs();
	document.getElementById('sub' + n).style.display = 'block';
}
