jQuery.fn.not_exists=function(){return jQuery(this).length==0};jQuery.fn.jqcollapse=function(n){var n=jQuery.extend({slide:!0,speed:300,easing:""},n);$(this).each(function(){var n=$(this).attr("id");$("#collapser li > ul").each(function(){var n=$(this).parent("li"),t=$(this).remove();n.find("div.expandbutton").addClass("jqcNode").css("cursor","pointer").click(function(){t.toggle();n.hasClass("open")?(n.removeClass("open"),n.addClass("closed")):(n.removeClass("closed"),n.addClass("open"))});n.append(t)});$("#"+n+" ul.closed").hide()})}