function updateTime(x){
	var fulltext = '';
	switch(x){
		case 'today':
			fulltext = 'today';
			break;
		case 'thisweek':
			fulltext = 'this week';
			break;
		case 'thismonth':
			fulltext = 'this month';
			break;
		case 'thisyear':
			fulltext = 'this year';
			break;
		case 'alltime':
			fulltext = 'all time';
			break;
		case 'last24hrs':
		default:
			x = 'last24hrs';
			fulltext = 'in the last 24 hours';
	}
	document.getElementById('populartime').innerHTML = fulltext;
	document.getElementById('popularBoxFeed').innerHTML = '<a href="/feed/popular/'+x+'" title="Subscribe to the RSS Feed for most popular blog entries ' + fulltext + '"><img src="/img/icons/feed.gif" /></a>';
	return true;
}

function showLoading(){
	document.getElementById('loading').innerHTML = '<img src="/img/loading-hori.gif" alt="loading" />';
	return true;
}

