//	There are many sets of display data.
//	Choose the proper one to display.
//
function chooseContent()
{
	strUrl	= (IsNetscape()) ? document.URL : document.location.href;

	//	Get the 'location' to display
	//
	var strContentTitle	= GetQueryStringArg( "location", null, strUrl );
	//var strContentTitle	= getBookmark( );

	//	load the content into the sidebar
	//
	loadSidebar(	GetSideBar(),
			strContentTitle );

	//	Show the relevant content
	//
	showContent( strContentTitle );
}


//	Loads the sidebar
//
function loadSidebar(  oDivSidebar, strContentTitle )
{
	if (IsPreviewMode(strContentTitle))
	{
		//	No need for the sidebar in 'preview' mode.
		//
		//hideObject( oDivSidebar );


		//	Once we lose a panel, we have to
		//	compensate in the table
		//	to get a proper display.
		//	This is how we do it.
		//
		//GetMainPanelTd().colSpan++;
		//GetNavBarTd().colSpan++;
	}


	//	Only do this if we're in 'full mode'
	//
	else
	{
		convertPreviewToSidebar( oDivSidebar );
		//hideObject( oDivSidebar );
	}
}


//	Choose which content to show, and show it.
//
function showContent( strContentTitle )
{
	//	No need for the sidebar in 'preview' mode.
	//
	if (IsPreviewMode(strContentTitle))
		ShowPreviewContent();

	//	Show the proper content for 'full mode'
	//
	else
	{
		//	Update the title to reflect
		//	the specific information being shown.
		//
		document.title	+= ": " + strContentTitle;


		//	This is a call into the 
		//	'media content' interface
		//
		ShowFullContent( strContentTitle );

	}
}


//
//
function IsPreviewMode(strTitle)	{ return null == strTitle; }
