jQuery toggle issue

jQuery toggle issue

Greeting all,

I have a bit of an issue that I cant seem top figure out. I wrote a toggle script and it works great when it is the only instance on the page but if i add another the first instance stops functioning and the other just opens and closes on click. You can view a screencast here  http://screencast.com/t/FyKBYhD0z

Thanks for any help you can provide.

  1. $(document).ready(function($) {  
  2. $('#accordion').find('.accordion-toggle').click(function(){
  3.     
  4.      $(this).next().slideToggle('slow');
  5.      $(".accordion-content").not($(this).next()).slideUp('slow');
  6.    });
  7.    });