jQuery(document).ready(function() { //jQuery("#conditions-chooser h3").eq(2).addClass("active"); //jQuery("#conditions-chooser p").eq(2).show(); jQuery("#conditions-chooser h3").click(function(){ jQuery(this).next("p").slideToggle("fast", function() { jQuery(this).siblings("p:visible").slideUp("slow"); } ); /*.siblings("p:visible").slideUp("slow");*/ jQuery(this).toggleClass("active"); jQuery(this).siblings("h3").removeClass("active"); }); jQuery(".cat-cervical").hover(function () { jQuery(".cervical").show(); }, function() { jQuery(".cervical").hide(); }); jQuery(".cat-thoracic").hover(function () { jQuery(".thoracic").show(); }, function() { jQuery(".thoracic").hide(); }); jQuery(".cat-lumbar").hover(function () { jQuery(".lumbar").show(); }, function() { jQuery(".lumbar").hide(); }); jQuery(".spine-cervical, img.cervical").hover(function() { jQuery("h3.cat-cervical").addClass('hover'); jQuery(".cervical").show(); }, function() { jQuery("h3.cat-cervical").removeClass('hover'); jQuery(".cervical").hide(); }); jQuery(".spine-thoracic, img.thoracic").hover(function() { jQuery("h3.cat-thoracic").addClass('hover'); jQuery(".thoracic").show(); }, function() { jQuery("h3.cat-thoracic").removeClass('hover'); jQuery(".thoracic").hide(); }); jQuery(".spine-lumbar, img.lumbar").hover(function() { jQuery("h3.cat-lumbar").addClass('hover'); jQuery(".lumbar").show(); }, function() { jQuery("h3.cat-lumbar").removeClass('hover'); jQuery(".lumbar").hide(); }); });