window.location.href.match Not Working
<p>Here is the code:</p>

<pre><code>$(function() {

    var pathname = (window.location.href.match(/[^\/]+$/)[0]);

    $('#menu dl dd a#toparrow').each(function() {
        if ($(this).attr('href') == pathname) {
            $(this).addClass('currenttop');
        }
    });
});
</code></pre>

<p>Here is a link to my website:  <a href="http://bluraymoviestore.com" rel="nofollow">http://bluraymoviestore.com</a></p>

<p>The purpose of the script is to make the arrow image stay on the current page, like it does when you first click to the categories.</p>

<p>The script works when I'm clicked on the parent page, but when I click to the next page under the same category, the script no longer works (example: works with <code>/bluraynewreleases</code> but not <code>/bluraynewreleases-2625374011-rc-2-new_releases.html</code>).  What do I need to add to the code to make it work? </p>
