add active class to single page navigation links
<p>I'm trying to make active class works on selected links of a single page navigation - no external pages - but for now its not working; here is the code;</p>

<pre><code>$(function() {
$('#menu1 a').bind('click',function(event){

    var $anchor = $(this);

    $(this).addClass("active");

    $('html, body').stop().animate({
    scrollLeft: $($anchor.attr('href')).offset().left
    }, 1000);

    event.preventDefault();

    $('.slideshow').fadeTo(2000, 1);
    $('.containerimg').fadeTo(2000, 1);
    $('#contacts').hide();
    $('#credits').hide();
    $('#clients').hide();
});
});
</code></pre>

<p>thank you  :)</p>
