Change the color categories menu

I want to change some thing on the categories menu. If someone clicks on the category (I use the categories_dynamic.tpl) the color of the category in which you are in has to change. I believe you need to change the categories_tree.tpl.(see code below) Can anybody help how to do this?