$(document).ready(function() {
	$("#sidebar ul li:visible").click(function() {
	$(this).children('ul').slideToggle();
	});
});

