function expandingMenu(num) {
	var speed = 0;
	
	var item_title = $("#menu ul").eq(num).children(":first");
	var items = $("#menu ul").eq(num).children().filter(function (index) { return index > 0; });
	


	/* hide items if not active */
	if (items.is(".active") == false) {
		items.hide();
	}
	
	/* add click functions + pointer to title */
	item_title.css({cursor:"pointer"}).toggle(
		function () {
			items.show(speed);
		}, function () {
			items.hide(speed);
		}
	)
}

$(document).ready(function()
{
/* hide all exhibitis */
$("#menu ul li.section-title").nextAll().hide();
/* show active exhibit */
$("#menu ul").each(function()
{
$(this).find("li.active").prevAll().nextAll().show();
});
/* toggle function */
$("#menu ul li.section-title").click(function()
{
$("#menu ul li.section-title").nextAll().hide(500).animate({easing:"linear"});
$(this).nextAll().show(500);
});
});
