Categories to be shown in the box for product details page

Which code do I need to change so that a category or subcategory in the categories box is shown in bold (dynamic menu) when a particular product’s details are being displayed? At this time when you click on a product the category tree in the cat box collapses once the product details page opens up.

It could be easily done with v1.3… but I am so confused with v2.