jQuery(function($) {
  $('#nav ul').hide();
  var path = location.pathname.substring(1); //14
 if (path.length<1) 
{
path = "index.html";
}
 //document.write(path);
  $('#nav a[@href$="' + path + '"]').addClass('active').siblings("ul").slideDown();
  $('#nav a[@href$="' + path + '"]').parents("ul").show();
});

