div toggle script
<p>Sorry, I didnt explain this very well, I've set up what I have in jsfiddle...</p>

<p><a href="http://jsfiddle.net/greggb/Ya2wX/" rel="nofollow">http://jsfiddle.net/greggb/Ya2wX/</a></p>

<p>basically what I'm trying to do is make it so after the first div has been opened, the second tab anchor (two) will close the first div before opening the next div?</p>

<p>Thanks, Gregg.</p>

<pre><code> $(document).ready(function() {
      $('.example2').hide().before('');
      $('a#toggle-example2').click(function() {
           $('.example2').slideToggle(500);
           return false;
      });
 });

 $(document).ready(function() {
      $('.item1').hide().before('');
      $('a#toggle-item1').click(function() {
           $('.item1').slideToggle(500);
           return false;
      });
 });
</code></pre>
