(function($) {
	$(document).ready(function() {
		$('.folder').each(function(i) {
			var h=$(this).height();
			var c=true;
			if(i!==0) $(this).css({ height:'10px' }); else c=false;
			$(this).css({ overflow:'hidden', cursor:'pointer' }).click(function() { 
				if(c) { $(this).children().end().animate({ height:h }); c=false; } else { $(this).animate({ height:'10px' }, 500, function() { $(this).children(); }); c=true; }
			});
		});
	});
})(jQuery);
