if (Drupal.jsEnabled) {
  $(document).ready(function() {
	/* If category_menu appears, then there are secondary nav elements, so if showing first secondary nav elem., unset the "active" state for the primary-level nav. item */
	if ($(".view-category-menu a.active").length)
	  $(".links li > a.active").removeClass("active");
	
	/* Hide all "Menu settings" in node creation/edit pages, to avoid confusion */
	$("fieldset.collapsible legend:contains('Menu settings')").parent().hide();
  });
}