// This toggles the subnavigation lists on and off
function toggleNode(elID,elImage,navID){
	var elChildList = document.getElementById('n' + elID)

//	alert(elImage.parentNode.parentNode.parentNode.tagName);

	// If the child list is hidden, show it (and change the image)
	if(elChildList.style.display == 'none'){
		elChildList.style.display='block';
		// As long as we're not on the first level
		if(elImage.parentNode.parentNode.parentNode.tagName != 'DIV') {
			elImage.style.background = 'white url(/img/bg-documentation-ul-a-open.png) top left no-repeat';
		}
	}
	// If the child list is shown, hide it (and change the image)
	else{
		elChildList.style.display='none';
		// As long as we're not on the first level
		if(elImage.parentNode.parentNode.parentNode.tagName != 'DIV') {
			elImage.style.background = 'white url(/img/bg-documentation-ul-a.png) top left no-repeat';
		}
	}
}

// This stops the links in the sitemap from triggering other JS issues
function bubbleBurst(elID){
	// This causes an error in FF, but it still works...
	event.cancelBubble = true;
	el = elID.parentNode.parentNode.id;
}

// This hides all the sub-nodes
function hideAll() {
	for (i=1; i <= intSubnode; i++)
	{
		var objAnswer = document.getElementById('n' + i)
		objAnswer.style.display = "none";
	}
}