function showNewsArchiveYearMonth(year,month)
{
	hideAllNewsArchive();
	toggleNewsArchiveYear(year);
	toggleNewsArchiveMonth(year,month);
}

function hideAllNewsArchive()
{

	$("#news-archive").find("div").each(function(e)
	{
		$(this).find("div").hide();
		$(this).find("ul").each(function(e)
		{
			$(this).hide();
		});
	});

}

function toggleNewsArchiveYear(year)
{

	var dom_id="#news_archive_" + year;

	$(dom_id).find("div").each(function(e)
	{
		$(this).toggle();
		$(this).find("ul").each(function(e)
		{
			$(this).hide();
		});
	});

}

function toggleNewsArchiveMonth(year,month)
{
	var dom_id="#news_archive_" + year + "_" + month;
	$(dom_id).find("ul").each(function(e)
	{
		$(this).toggle();
	});

}

$(function()
{
	hideAllNewsArchive();
});