$(document).ready(function(){

  $("div.slideBody").each(function(){
    $(this).css("height", $(this).height() + "px").hide();
    });



  //hook the mouseup events to each header
  $("div.slidePanel").children(
    "div.slideHeader").mouseup(function(){
 

    //find the body whose header was clicked
    var body = $(this).parent().children("div.slideBody");

    //slide the panel
    if(body.is(":hidden"))
      body.slideDown();
    else
      body.slideUp();
  });
}); 
   
