function buildMenuList(options, depth) {
	var html = '';
	
	if (depth == 0) {
		html += '<ul class="menu" id="tabs_menu">';
	} else {
		html += '<ul>';
	}
	
	var option_count = 0;
	for (var option_name in options) {
		var has_child_options = (options[option_name].options ? true : false);
		
		var url = (options[option_name].url || options[option_name].href || '');
		
		var id = (options[option_name].id || '');
		if (id != '') {
			id = ' id="' + id + '"';
		}

		var li_class = '';
		if (current_nav[0] == option_name) {
				li_class += 'current';
			}

		var a_class = '';
		if (depth == 0) {
			a_class += 'menulink';
			if (current_nav[0] == option_name) {
				a_class += ' current';
			}
		} else if (has_child_options) {
			a_class += 'sub';
		}
		
		//Erik and Heidi added this new syntax to hide the About us TAB in the leftnav.js file//
		html += '<li' + id + ' class="' + li_class + 
			(depth > 1 && option_count == 0 ? 'topline' : '') +
			'"><a href="' + url + '" class="' + a_class + '">' + option_name + '</a>';
		
		
		if (has_child_options) {
			html += buildMenuList(options[option_name].options, depth + 1);
		}
		
		
		html += '</li>';
		
		option_count += 1;
	}
	
	html += '</ul>';
	
	return html;
}

var tabs_menu;
function showAltTabs() {
	tabs_menu = new menu.dd("tabs_menu");
	
	var tabs_div = document.getElementById('alt_tabs');
	
	var html = buildMenuList(arrNAV, 0);
	
	tabs_div.innerHTML = html;
	
	tabs_menu.init("tabs_menu","menuhover");
}

