setting a class to a menu depending of the url link
<p>Here is my scenario, my sub pages are not recognizing the parent, probably cause I set the structure bad, however going to back to fix that is not an option for now, problem the menu parent is getting the parent class in the wrong places....</p>

<p>So what I need to achieve...</p>

<p>if I have this url structure: domain.com/products/....  assign "current" class to menu X...</p>

<p>If I have this other: domain.com/sales/..... assign "current" class to Y....</p>

<p>I know I can do it via javascript, however I lack of knowledge of it, I'm just looking for a solid starting point.</p>

<p>I would appreciate any help.</p>

<p>Thanks in advanced.</p>
