/////////////////////////////////////////////////////////////////////////////
// Function : standard_leftnav_for_ocio
/////////////////////////////////////////////////////////////////////////////

function standard_leftnav_for_ocio() {
	this.m_NavPath = g_navNode_Path;
	standard_leftnav_for_ocio.prototype.Display = standard_leftnav_for_ocio_Display;
 standard_leftnav_for_ocio.prototype.DisplayNode = standard_leftnav_for_ocio_DisplayNode;
}

function standard_leftnav_for_ocio_Display( node ) {
 if ( node.m_level > 0 ) document.write( '<ul>' );
 this.DisplayNode( node );
 if ( node.m_level > 0 ) document.write( '</ul>' );
}

function standard_leftnav_for_ocio_DisplayNode( node ) {
	var bCurrent = (    this.m_NavPath.length > 0
           	      && node.m_level < this.m_NavPath.length
           		     && this.m_NavPath[node.m_level] == node.m_id
           			    && (    node.m_level > 0
           			         || (    node.m_level == 0
           			              && this.m_NavPath.length == 1 ) ) );
 var bDeepest = ( node.m_id == g_ssSourceNodeId );
 if ( node.m_level > 0 )	document.write(   '<li'
                        	                + (   bCurrent
                        	                    ? (   ' class="current'
                        	                        + (   bDeepest
                        	                            ? ' deepest'
                        	                            : '' )
                        	                        + '"' )
                        	                    : '' )
                        	                +  ' title="'
                        	                + node.m_label
                       	                 + '">'
                       	                 + '<a href="' + node.m_href + '">' + node.m_label + '</a>' );
 if ( bCurrent || node.m_level == 0 ) for ( var i = 0; i < node.m_subNodes.length; i++ )	this.Display( node.m_subNodes[i] );
 if ( node.m_level > 0 ) document.write( '</li>' );
}
