title: jquery toggle close other opened divs
body: <p>I have an issue with using toggle where i need to close other divs that are already opened, so only the div you click on is open at one time, but still toggles.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(function () {
          $(".flyout").hide();
          $(".flyout").siblings("span").click(function () {
              $(this).siblings(".flyout").toggle(500);
          });
      });
  &lt;/script&gt;  
  
  &lt;ul&gt;
  &lt;li &gt;&lt;span id="europe"&gt;&lt;/span&gt;Europe
  &lt;div class="flyout"&gt;
  &lt;ul&gt;
  &lt;li&gt;item 1&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  &lt;/li&gt;
  
  &lt;li &gt;&lt;span id="europe"&gt;&lt;/span&gt;Asia
  &lt;div class="flyout"&gt;
  &lt;ul&gt;
  &lt;li&gt;item 1&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Any ideas on what I can add in to get the click function to close every other div class="flyout" except the one its on?</p>
  
  <p>have a look at <a href="http://www.footballadvisor.net/map/" rel="nofollow">http://www.footballadvisor.net/map/</a> to see the issue</p>
  
  <p>thanks</p>