(function ($) {
    $.fn.slidelist = function (options) {
        var
        defaults = {
            speed: 100,
            fixtop: "true",
            ease: "swing"
        },
            settings = $.extend({}, defaults, options);
        this.each(function () {
            var $this = $(this);

            if(settings.fixtop === 'true'){
	            
	            $(this).children("dd:first").addClass("persist").show();
	            
	            $(this).children("dt").each(function(){
		            $(this).click(function(){
							if($(this).next('dd').is(":visible")){
								$(this).parent("dl").children("dd").not(".persist").slideUp();

								}else{
								$(this).parent("dl").children("dd").not(".persist").slideUp();
								$(this).next("dd").slideDown();
							}
					});
	            });

            }
            else{
            $(this).children("dt").each(function(){
	            $(this).click(function(){
					if($(this).next('dd').is(":visible")){
						$(this).parent("dl").children("dd").slideUp();
					}else{
						$(this).parent("dl").children("dd").slideUp();
						$(this).next("dd").slideDown();
					}
				});
				});


            }

		});return this;
		};
   })(jQuery);
