Automaticaly toggle an "active" class on navigation elements
$('ul').activeNavToggler();
You can specify the child element selector and the class to be applied.
$(".parent").activeNavToggler({
childSelector: '.child',
activeClass: 'foobar'
});