Add active class to menu "parent" item if URL has a a /directory/ listing
<p>trying to add a CSS class to a a parent item when the URL contains a directory path.</p>

<p>For instance if my url is</p>

<p><code>example.com/directory/about.html</code></p>

<p>I want to add a CSS class an item in my top navigation if it contains <code>/directory/</code> in it. </p>

<p>so in this case, <code>example.com/directory/overview.html</code> would get a CSS class "<code>active-parent</code>" </p>

<p>which would be <code>.main-nav li a.active-parent</code></p>

<p>(mind you I am already using jquery to check for teh URL and make that page active, but its when its a sub page of a section, the parent is not highlighted)</p>

<p>I thought I could usde the <a href="http://api.jquery.com/contains-selector/" rel="nofollow"><code>:contains() Selector</code></a> but I dont know how to apply it to a URL</p>
