// **********************************************************
//  Sitemap switcher
//  GhOUL
//  ghoul@stablebeast.com
// **********************************************************

//in case there are no opened groups initially


function openSitemapBranch(id)
{
	s = document.getElementById('i_'+id).src;
	if (document.getElementById('m_'+id).style.display=="none")
	{
		document.getElementById('m_'+id).style.display="block";
		if (s.charAt(s.length-15)=='n' || s.charAt(s.length-15)=='g')
			document.getElementById('i_'+id).src="/Images/DownBranchClosingBlackMinus.gif";	
		else
			document.getElementById('i_'+id).src="/Images/DownBranchBlackMinus.gif";
	}
	else
	{
		document.getElementById('m_'+id).style.display="none";
		if (s.charAt(s.length-15)=='n' || s.charAt(s.length-15)=='g')
			document.getElementById('i_'+id).src="/Images/DownBranchClosingBlackPlus.gif";	
		else
			document.getElementById('i_'+id).src="/Images/DownBranchBlackPlus.gif";	
	}
}

