/**
 * @author T. Keur <tom@phyxsius.nl>
 * @copyright Phyxsius Media Totaal Buro <www.phyxsius.nl>
 */

function menu()
{
	// First hiding all subitems.
	$('#nav-one ul').hide();
	// All the items with the class selected we need to show!
	$.each($('#nav-one li a.selected'), function(){
		$(this).parent().find("ul").show();
	});
	$.each($('#nav-one ul li a.selected'), function(){
		$(this).parent().parent().parent().find("ul").show();
	});
}

$(document).ready(function()
{
	menu();
});
