$(document).ready(function()
{
	/* open the currently selected menu-item */
	$('div#menu li.current').parent().show();

	/* add clickfunction to dom objects */
	$('div#menu a').click(function()
	{
		$child = $(this).parent().find('ul');

		if ($child.length > 0)
		{
			$child.slideToggle();
		
			return false;
		}
	})
});