diff --git a/nice_menus.module b/nice_menus.module
index 4944830..8b9ca2a 100644
--- a/nice_menus.module
+++ b/nice_menus.module
@@ -453,7 +453,16 @@ function theme_nice_menus_build($variables) {
           '#attributes' => array(),
         );
         $variables['element'] = $element;
-        
+
+        // Check for context reactions menu
+        if (module_exists('context')) {
+          context_preprocess_menu_link($variables);
+
+          if (in_array('active',  $variables['element']['#localized_options']['attributes']['class']) && stripos($class, 'active-trail') === FALSE) {
+            $class .= ' active-trail';
+          }
+        }
+
         $output .= '<li class="menu-' . $mlid . ' ' . $parent_class . $class . $first_class . $oddeven_class . $last_class . '">'. theme('nice_menus_menu_item_link', $variables);
         // Check our depth parameters.
         if ($menu_item['link']['depth'] <= $depth || $depth == -1) {
@@ -476,6 +485,16 @@ function theme_nice_menus_build($variables) {
           '#attributes' => array(),
         );
         $variables['element'] = $element;
+
+        // Check for context reactions menu
+        if (module_exists('context')) {
+          context_preprocess_menu_link($variables);
+
+          if (in_array('active',  $variables['element']['#localized_options']['attributes']['class']) && stripos($class, 'active-trail') === FALSE) {
+            $class .= ' active-trail';
+          }
+        }
+
         $output .= '<li class="menu-' . $mlid . ' ' . $class . $first_class . $oddeven_class . $last_class . '">' . theme('nice_menus_menu_item_link', $variables) . "</li>\n";
       }
     }
