var curCategoryId;
function showCategory(link, id){
	var el = $('hidden-category-'+id);
	var a = $(link);
	if (el){
		if (el.getStyle('display')=='block'){
			el.setStyle('display', 'none');
			a.innerHTML = 'Show all articles for this category';
			a.removeClass('expanded');
			curCategoryId = false;
		} else {
			el.setStyle('display', 'block');
			a.innerHTML = 'Show less';
			a.addClass('expanded');
			// collapse any other open one....
			if (curCategoryId){
				showCategory($('show-all-link-'+curCategoryId), curCategoryId);
			}
			curCategoryId = id;
		}
	}
	return false;
}
