function $(id)
{
	return document.getElementById(id);	
}

function showPanelContent(target)
{
	// hide 'em both
	$('events-world').style.display = 'none';
	$('events-local').style.display = 'none';
	// reset the selected state tab
	$('tab-world').className = '';
	$('tab-local').className = '';
	
	$('events-' + target).style.display = 'block';
	$('tab-' + target).className = 'selected';
	$('tab-' + target).blur(); // remove that ugly focused outline
}
