(function ($) {
  $(window).ready(function() {
    var path=$(location).attr('pathname');
    if (path.indexOf( '/faculty' ) >= 0) {
      $( '.dropdown-menu>.first.leaf>a' ).addClass( 'active-trail' );
    }
    else if (path.indexOf( '/adjunct-faculty' ) >= 0) {
      $( '.dropdown-menu>li:nth-child(2)>a' ).addClass( 'active-trail' );
    }
    else {
      $( '.dropdown-menu>.last.leaf>a' ).addClass( 'active-trail' );
    }
  });
})(jQuery);