--- context_condition_menu.inc	2010-02-08 23:38:01.000000000 -0500
+++ context_condition_menu-new.inc	2010-05-06 14:37:32.000000000 -0400
@@ -31,6 +31,23 @@ class context_condition_menu extends con
     return $form;
   }
 
+/*
+ * The following bit of code checks whether or not the menu tree is set to navigation, and then rechecks.
+ *  This is to fix the active menu path in Drupal which sometimes does not display properly.
+ *  This snippet was taken form ctools.
+*/
+function context_condition_menu_init() {
+	if (menu_get_active_menu_name() == 'navigation') {
+		$item = menu_get_item();
+		$mlink = db_fetch_object(db_query("SELECT * FROM {menu_links} WHERE link_path = '%s'", $item['href']));
+		if ($mlink && isset($mlink->menu_name)) {
+			menu_set_active_menu_name($mlink->menu_name);
+		}
+	}
+	$request = request_uri();
+	$full_path = explode ( '/', drupal_get_path_alias($request));
+}
+
   function execute() {
     // Menu trail condition integration. Note that because of the way
     // menu_get_active_trail() is written this will often not work for active
