title: How to close jQuery accordion before opening next one?
body: <p>After opening an accordion item and then clicking on a new accordion item, I want it to first close the open one and then open the new one.</p>
  
  <p>Here's my current code:</p>
  
  <pre><code>jQuery('.acclink').click(function () {
      jQuery("#accordion").accordion("activate", -1); // this closes anything open
      jQuery(jQuery(this).attr('href')).click(); // this is supposed to open the new one but doesn't. It WILL work when the above function is commented out.
      return false;
  });
  </code></pre>
  
  <p>Here's my page: <a href="http://www.savedeth.com/objectivescenes/" rel="nofollow">http://www.savedeth.com/objectivescenes/</a>
  What am I missing?</p>