$(document).ready(function() {
  $("#navL1 .selected").next().css("background-image", "none");
  $("table.no_url").each(function() {
    var link = $(this).find("a:first");
    var id = $(this).attr("id");
    if(!$(this).hasClass("L1")) {
      link.click(function(e) {
        e.preventDefault();
      });
    } else {
      link.click(function(e) {
        e.preventDefault();
        $("table.no_url").each(function() {
          if($(this).attr("id") != id) {
            var ido = $(this).attr("id");
            $("table." + ido).each(function() {
              $(this).hide();
              if(!$(this).hasClass("no_url")) {
                var id = $(this).attr("id");
                $("table." + id).hide();
              }
            });
          }
        });
        $("table." + id).each(function() {
          $(this).toggle();
          if(!$(this).hasClass("no_url")) {
            var id = $(this).attr("id");
            $("table." + id).toggle();
          }
        });
      });
    }
  });
});
