var boxId = "readBox";
function toggleFold(boxContentId, noJump) {

	boxElement = document.getElementById(boxId);		

	// we didn't became a contentId -> close it
	if (boxContentId == "")
	{
		boxElement.style.display = "none";
		return false;
	}
	else
	{
		boxElement.style.display = "block";
	}

	// close all divs 
	for (var i = 0; i < boxElement.childNodes.length; i++)
	{
		if (boxElement.childNodes[i].nodeName == "DIV")
		{
			boxElement.childNodes[i].style.display = "none";
		}
	}
	// show the div we should open
	document.getElementById(boxContentId).style.display = "block";

	// no need to jump
	if (noJump)
	{
		return false;
	}

	var location = "";
	if (window.location.href.indexOf("#") > 0)
	{
		location = window.location.href.substr(0, window.location.href.indexOf("#"));
	}
	else
	{
		location = window.location.href;
	}	
	window.location.href = location + "#readBoxAnchor";
		
	return false;
}

