var timer;

function show_sub(id) {
	clearTimeout(timer);
	hideAllSubs();
	var sub = document.getElementById(id);
	sub.style.display = "block";
}

function hide_sub(id) {
	var sub = document.getElementById(id);
	sub.style.display = "none";
}

function hideAllSubs() {
	document.getElementById('sub_reguide').style.display = "none";
	document.getElementById('sub_communities').style.display = "none";
	document.getElementById('sub_areainfo').style.display = "none";
}

function start_timer(id) {
	timer = setTimeout("hide_sub('" + id + "')", 1000);	
}