$(document).ready(function(){
 $(".accordion").each(function(){
  $("li > a.pop", this).each(function(index){
   if(index > 0) $(this).next().hide();
   $(this).click(function(){
    var params = {height:"toggle"};
    $(this).next().animate(params).parent().siblings()
         .children("ul:visible").animate(params);
    return false;
    });
  });
 });
});


