function activeCurrentPage() {
        var path = window.location.pathname;
        path = path.replace(/\/$/, "");
        path = decodeURIComponent(path);
        $(".cl-vnavigation a ").each(function () {
            var href = $(this).attr('href');
            if (path === href) {
                $(this).closest('li').addClass('active');
            }
        });
    }
//active the menu item relative to current page.
active the menu item relative to current page.
active the menu item relative to current page .
function activeCurrentPage() {
        var path = window.location.pathname;
        path = path.replace(/\/$/, "");
        path = decodeURIComponent(path);
        $(".cl-vnavigation a ").each(function () {
            var href = $(this).attr('href');
            if (path === href) {
                $(this).closest('li').addClass('active');
            }
        });
    }
function activeCurrentPage ( ) { var path = window . location . pathname ; path = path . replace ( / \/$ / , "" ) ; path = decodeURIComponent ( path ) ; $ ( ".cl-vnavigation a " ) . each ( function ( ) { var href = $ ( this ) . attr ( 'href' ) ; if ( path === href ) { $ ( this ) . closest ( 'li' ) . addClass ( 'active' ) ; } } ) ; }
active the menu item relative to current page.
active the menu item relative to current page .