// This toggles the subnavigation lists on and off
function toggleNode(elID,elImage,navID){
	var elChildList = document.getElementById('n' + elID)
	// If the child list is hidden, show it (and change the image)
	if(elChildList.style.display == 'none'){
		elChildList.style.display='block';
		elImage.src='/tpl/img/icon-hide.png';
	}
	// If the child list is shown, hide it (and change the image)
	else{
		elChildList.style.display='none';
		elImage.src= '/tpl/img/icon-show.png';
	}
}

// This stops the links in the sitemap from triggering other JS issues
function bubbleBurst(elID,navID){
	event.cancelBubble = true;
	el = elID.parentNode.parentNode.id;
}

// This hides all the sub-nodes
function hideAll() {
	for (i=1; i <= intSubnode; i++)
	{
	if(document.getElementById('n' + i)){
		var objAnswer = document.getElementById('n' + i)
		objAnswer.style.display = "none";
		}
	}
}