$(document).ready(function() { $("h3//.nest_17_22").prepend(""); $("h3//.nest_17_22").prepend(""); $("h3//.nest_17_22/.nest_closed").hide(); $("h3//.nest_17_22").toggle(function(){ $("h3//.nest_17_22/.nest_open").hide(); $("h3//.nest_17_22/.nest_closed").show(); $("ul.nest_17_22").slideUp("slow"); }, function(){ $("h3//.nest_17_22/.nest_open").show(); $("h3//.nest_17_22/.nest_closed").hide(); $("ul.nest_17_22").slideDown("slow"); }); });