jQuery(function($) {

var href = location.href.split('#')[0];
$('a').each(function() {
  if (href == this.href)
    $(this)
     .addClass("self");
});

});


