title: jQuery Accordion and active link
body: <p>i use the followig accordion menu:</p>
  
  <pre><code>function initMenu() {
    $('#submenu ul').hide();
    //$('#submenu ul:first').show();
    $('#submenu li a').click(
      function() {
        var checkElement = $(this).next();
        if((checkElement.is('ul')) &amp;&amp; (checkElement.is(':visible'))) {
          return false;
          }
        if((checkElement.is('ul')) &amp;&amp; (!checkElement.is(':visible'))) {
          $('#submenu ul:visible').slideUp('normal');
          checkElement.slideDown('normal');
          return false;
          }
        }
      );
    }
  $(document).ready(function() { initMenu(); });
  </code></pre>
  
  <p>now, when a link in the #submenu list gets active, the accordion closes and i have to open it up again when chooseing another link from the #submenu. my question: how can i tell this script, that when a li in the #submenu list has the class .active_link, the accordion opens automatically that current ul #submenu list?</p>
  
  <p>the .active_link class is only set, when the link is active!</p>
  
  <p>you understand my question? :)</p>
  
  <p>thanks and regards!</p>