$(document).ready(function(){

	$(".button-slide01,button-slide02").click(function(){
		$(".formboard,.formboard02").slideToggle("fast");
		$(this).toggleClass("active"); return false;
	});
	
	 
});
$(document).ready(function(){

  //Fixes an animation glitch caused by the
  //div's dynamic height.  Need to set the
  //height style so the slide functions work
  //correctly.
 // $(".slideBody").each(function(){
 //   $(this).css("height", $(this).height() + "px");
  //  });

  //hook the mouseup events to each header
  $(".formboard").children(
    ".button-slide").mouseup(function(){
 
    //find the body whose header was clicked
    var body = $(this).parent().children(".slideBody");

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