	var lastB;
	
	function ShowSection(s)
	{
		
		var b = document.getElementById ("b" + s);
		
		if (lastB != undefined)
		{
			setTimeout('HideSection(' + lastB.id  + '); lastB = undefined;',2);
			if (lastB.id == s.id) {return;}
		}
		
		var contentHeight = b.scrollHeight;
		
		if (parseInt(b.style.height) < (contentHeight))
		{
			b.style.height = parseInt(b.style.height) + 5;
			setTimeout('ShowSection(' + s + ');',1);
		}
		else
		{
			b.style.height =  contentHeight + 15;
			lastB = b;
		}
	
	}
	
	function HideSection(hide)
	{	
		if (parseInt(hide.style.height) > 7)
		{
			hide.style.height = parseInt(hide.style.height) - 6;
			setTimeout('HideSection(' + hide.id + ');',1);
		}
		else
		{
			hide.style.height = 1;
		}
		
	}
	
	function HideAll()
	{
		var i = 1;
		var bh = document.getElementById ("b" + i);
		
		while (bh != undefined)
		{
			bh.style.height = 1;
			i = i + 1;
			bh = document.getElementById ("b" + i);
		}
		
		var url = window.location.href;
		if (url.indexOf('#') != -1)
		{
			var bm = 1;
			
			bm = url.substr(url.indexOf('#') + 2, url.length);
			ShowSection(bm);	
		}

	}
	
	//setTimeout('HideAll()',100);
