var x=document.getElementsByName("moui_comments_classcount");


function showTheContainer(ContId)
{
	var thecont=document.getElementById(ContId) 

	if (thecont.style.display=="none")
		{
		collapseAll();
		thecont.style.display="block";
		}
	else
		{
		thecont.style.display="none";
		}
}

function collapseAll()
{
	var i;
	for (i=1; i<=(x.length); i++)
	 {
		if (document.getElementById("moui_comments_count"+i).style.display=="block")
			{
	  showTheContainer("moui_comments_count"+i);
			}	
	 } 
}