$(document).ready(function(){ 
$(".question").click(function(){ 
$other = $(this).parent().find(".answer:visible"); 
$slider = $(this).next(); 
if ($other.length > 0 && $slider.is(":hidden")){ 
$other.slideUp("slow", function(){ 
if ($slider.is(":hidden")){ 
$slider.slideDown("slow"); 
} 
else{ 
$slider.slideUp("slow"); 
}             
}); 
} 
else 
{ 
if ($slider.is(":hidden")){ 
$slider.slideDown("slow"); 
} 
else{ 
$slider.slideUp("slow"); 
} 
} 
}); 
});
