/*	Copyright (c) 2001-2002, Dirk Fahland
	licensed to Turberg - http://www.turberg.de
*/

// contains shared functions for other windows as well

// -------------------- sidebar-page-handling --------------------

var content_currentContent = "";

/** setCurrentContent

 saves the filename of the current page in currentContent
 notifies the sidebar of the page-change
*/
function content_setCurrentContent ( page )
{
	content_currentContent = page;	// save new page
	content_setMarker ();			// set marker
}

/** content_setMarker

 sets the marker on the sidebar by the value in content_currentContent
*/
function content_setMarker ()
{
		// page is there, set marker
	if ( window.links && window.links.loaded) {
		window.links.opensubmenu( content_currentContent );
	}
		// page not there, check again in 0.25 secs
	else {
		window.setTimeout ("content_setMarker ()", 250);
	}
}
