//====================================================================
// Function : display
// Comments : This function creates the div for the level 1 nodes.
// Author   : Gregory Reddin (greddin@gmail.com)
//====================================================================
function display(path, node, strFragRoot, bDisplayRoot)
{
	document.write("\n<!-- DMA Top Nav (Start) -->\n");
	document.write("<div id=\"dma_top_nav\">\n");
	document.write("<ul>\n");

	if (bDisplayRoot)
	{
		// reserved
	}
	else
	{

		for (var i = 0 ; i < node.m_subNodes.length ; i++) {

			if (getCustomSectionProperty(node.m_subNodes[i].cp_ShowInGlobalTopNav).toLowerCase() == "true") {
				//alert(node.m_subNodes[i].m_label);
				document.write("<li><a href=\"" + node.m_subNodes[i].m_href + "\">"
					+ node.m_subNodes[i].m_label + "</a></li>\n");

			}

		}

	}

	document.write("</ul>\n");
	document.write("</div>\n");
	document.write("<!-- DMA Top Nav (End) -->\n");
}
