Add .active class when certain view is executed using hook_menu
You can use the Context module for this. Context is capable of adding active classes to menu items based on conditions, e.g. path, content type, etc.