$(function (){
    var pathname = window.location.pathname;
    $('ul#secondaryNav li a').each(function (){
        var href = $(this).attr('href');
        if(href==pathname) {
            $(this).parent().addClass('current');
            $(this).parent().parents('li').addClass('current');
        }
    })
});
