/* ---------------------------------
  @ Navigation Manager
----------------------------------- */
function navManager( id ) { this.init(id) }

navManager.prototype = {

	init : function( id )
	{
		if (id != null) {
			
			this.id = id;
		
			$('#nav')
				.find("li[navid='" + this.id + "']")
					.parents('ul')
						.each( function() {
							
							$(this)
								.siblings('a.tree')
									.addClass('bold')
								.end()
								.parents('li.tree')
									.addClass('open')
									.removeClass('closed')
							
						})
					.end()
				.not(':has(ul)')
					.addClass('active')
					.end()
				.end()
				.find("li.tree [navid='" + this.id + "']")
					.addClass('open')
					.removeClass('closed')
					.children('a.tree')
						.addClass('bold')
						
		};
	}
	
};