// toggle whether to show or hide the months under the specified year
// params: int year, bool show
function toggleArchiveVisibility(year, show)
{
	var monthsBlock = document.getElementById("archives-group" + year);
	var showMonthsLink = document.getElementById("archives-show-months" + year)
	var hideMonthsLink = document.getElementById("archives-hide-months" + year)	
	
	if (monthsBlock && showMonthsLink && hideMonthsLink)
	{
		if (show)
		{
			monthsBlock.style.display = "block";
			showMonthsLink.style.display = "none";
			hideMonthsLink.style.display = "inline";
		}
		else
		{
			monthsBlock.style.display = "none";
			showMonthsLink.style.display = "inline";
			hideMonthsLink.style.display = "none";
		}
	}  
	else
		alert("didn't find at least one element"); 
}
