Adding an active menu trail to the main ul, in the html.tpl.php?
Use menu_tree_page_data to get an array of the menu items. Set the trail accordingly there.

Example: http://brightplumbox.com/30Drupal7API/#/7/4