theMenuString = "1	0	home	http://www.cynthiabeijdorff.nl/index.html	#@#1	1	agenda	http://www.cynthiabeijdorff.nl/cgi-bin/retrieve.cgi	#@#1	2	ensembles		#@#2	6	Trio Claudel	http://www.cynthiabeijdorff.nl/ensembles_claudel.html	#@#2	7	Amata Trio	http://www.cynthiabeijdorff.nl/ensembles_amata.html	#@#2	8	Duo Beijdorff/van Delden	http://www.cynthiabeijdorff.nl/ensembles_duo.html	#@#	#@#1	3	e-mail	mailto:cbeijdorff@casema.nl	#@#1	4	voor bedrijven	http://www.cynthiabeijdorff.nl/bedrijven.html	#@#1	5	cv	http://www.cynthiabeijdorff.nl/cv.html	#@#"
theMenu = new TeamWriter_Menu();
theMenu.TeamWriter_AddItemsFromString( theMenuString );

var aIdList = new Array();
var idCount = 0;
var theBreadCrumbList = new Array();

aId = ReadCookie();

// Determine the filename of the current page
theCurrentFilename = CurrentFilename();
if ( (TeamWriter_MenuItemById[aId]!=null) && ((TeamWriter_MenuItemById[aId].url==theCurrentFilename) || (TeamWriter_MenuItemById[aId].url=="") || (TeamWriter_MenuItemById[aId].url.indexOf("#")==0) ) )
	TeamWriter_FindParents(aIdList, aId);
else
{
	// Determine the parents of the (first) menu-item with the filename as URL
	aId = theMenu.TeamWriter_FindUrl( theCurrentFilename );
	TeamWriter_FindParents( aIdList, aId );
}

if ( aId == -1 )
{
	// Reset the ID counter before calling TeamWriter_FindParents
	idCount = 0;

	// Determine the breadcrumb-list
	TeamWriter_FindParents( theBreadCrumbList, ReadCookie() );
	aIdList = theBreadCrumbList;
}
else
	theBreadCrumbList = aIdList;
