Check if it's an active menu

I wanted to have different top nav so I duplicated categories_text_links.tpl, and applied a new set of UI wrapper classes without changing smarty code. Renamed it to categories_text_links_top_nav.tpl. However, the “cm-active” class never get applied on the menu where it's active. I wonder if there is a different way to check active menu rather than

{if $category|fn_check_is_active_menu_item:$block.type} class=cm-active{/if} ?



Thanks!



Tony