function detail_list()
{
	this.m_ShowHome   = false;	
	this.m_StartLevel = 4;
	this.m_NumLevels  = 1;
	this.m_EndLevel   = 4;	
	this.m_NavPath    = g_navNode_Path;		
	detail_list.prototype.Display = detail_list_Display;
	detail_list.prototype.DisplayNode = detail_list_DisplayNode;
	this.m_EndLevel = this.m_StartLevel + this.m_NumLevels - 1 ;
}

function detail_list_Display (node)
{
	this.DisplayNode(node);	
}

function detail_list_DisplayNode(node)
{
	var bSelected = false;
	var nodeColor = this.m_TextColor;
	var nodeClass = this.m_ClassName

	var nodeLevel = node.m_level;
	
	if (nodeLevel > 6)
		nodeLevel = 6;
	
	if (this.m_NavPath.length > 0 && node.m_level < this.m_NavPath.length)
	{
		if (this.m_NavPath[node.m_level] == node.m_id)
		{
			if (node.m_level > 0 || (node.m_level == 0 && this.m_NavPath.length == 1))
			{
				bSelected = true;
				nodeColor = this.m_FocusColor;
				nodeClass += '-focus';
			}
		}
	}

	if (nodeLevel > 0)
		nodeClass += '-' + nodeLevel;
		
	if ( (node.m_level == 0 && this.m_ShowHome) || 
     	 (node.m_level >= this.m_StartLevel && node.m_level <= this.m_EndLevel)
	   )
	{
		var ds = new Array();
		var di = 0;
		ds[di++] = '<tr bgcolor="#ffffff">';
		ds[di++] = '<td class="padded" align="left" valign="center">';
		ds[di++] = '<a href="' + node.m_href + '"';
		ds[di++] = ' class="detail_list"';		 
		ds[di++] = '>'
		ds[di++] = node.m_label;
		ds[di++] = '</a>';
		ds[di++] = '</td>';
		ds[di++] = '</tr>';
		document.write(ds.join(''));

	}

	if (bSelected || node.m_level == 0)
	{	// expand sub-levels (if any)
		for (var i = 0; i < node.m_subNodes.length; i++)
		{
			this.DisplayNode(node.m_subNodes[i]);
		}
	}
}

