

/*
var currSelected = false;
var currentHasDropdown = false;
var current_selected;
var current_dropdown_selected;

function setCurrentActive(hasDropdown,dropdown_id) {
	currSelected = true;
	if (hasDropdown) {
		currentHasDropdown = true;
		current_dropdown_selected = document.getElementById(dropdown_id);
	}
	current_selected = document.getElementById('current_selected');
}

function show_current() {
	current_dropdown_selected.style.display = "block";
}

function hide_current() {
	current_dropdown_selected.style.display = "none";
}

function show_menu(dropdown_id) {
	var parent = document.getElementById(dropdown_id+'_parent');
	var dropdown = document.getElementById(dropdown_id);
	
	if (currSelected) {
		// if there is a default menu item selected then hide it
		current_selected.className = 'menu-element';
	}
	
	dropdown.style.display = "block";
	parent.className = 'menu-element-selected';
}

function hide_menu(dropdown_id) {
	var parent = document.getElementById(dropdown_id+'_parent');
	var dropdown = document.getElementById(dropdown_id);
	
	if (currSelected) {
		// if there is a default menu item selected then show it
		current_selected.className = 'menu-element-selected';
	}
	
	dropdown.style.display = "none";
	parent.className = 'menu-element';
}

function highlightOn(dropdown_id) {
	var parent = document.getElementById(dropdown_id+'_parent');
	
	if (currSelected) {
		// if there is a default menu item selected then hide it
		current_selected.className = 'menu-element';
	}
	
	parent.className = 'menu-element-selected';
}

function highlightOff(dropdown_id) {
	var parent = document.getElementById(dropdown_id+'_parent');
	
	if (currSelected) {
		// if there is a default menu item selected then show it
		current_selected.className = 'menu-element-selected';
	}
	
	parent.className = 'menu-element';
}
*/