var theChosenOne;
var plusgif;
var minusgif;

/****************************************************************/
/* This function reveals/hides hidden/open levels in the list and 
/* marks the last selection.
/****************************************************************/
function markAndShow(markedObjectId,currentObject)
{
	var plusMinusId="m"+markedObjectId;	//Holds the ID for the + or - sign that represents if
										//there are leafs to that category
	var plusMinus=document.getElementById(plusMinusId);
	var markedObject=document.getElementById(markedObjectId); //Holds the span below clicked <a>

	//MARK LAST CLICKED OBJECT
	theChosenOne.className="notChosen";
	currentObject.className="chosen";
	theChosenOne=currentObject;
	//If we come from the navbar again
	/*if(document.getElementById('marked'))
		document.getElementById('marked').className="";*/

	//FOLD/UNFOLD subcategories (+-)
	if(markedObject.style.display=="inline")
	{
		plusMinus.src=plusgif;
		markedObject.style.display="none";
	}
	else
	{
		plusMinus.src=minusgif;
		markedObject.style.display="inline";
	}
}
