//+----------------------------------------------------------------------------
//
//  Function:       displayNugget
//
//  Description:    Alternately displays and hides the content of the nugget.
//
//  Arguments:      none
//
//  Returns:        nothing
//
//-----------------------------------------------------------------------------

function displayNugget(oNug)
{
	var e = oNug.all("disp");
	var f = oNug.all("content");
	
	var Hide_ToolTip = "Minimize";
	var Show_ToolTip = "Maximize";

	//  If contents are hidden, show them
	if (f.style.display == "none") 
	{
		e.title = Hide_ToolTip;
		e.children(0).src = "close.gif";
		f.style.display = "block";
		display = "0";
		// if the page is not runin the correct security context then
		try { window.external.SetPref(ContentRegKey,"display");}
		catch (exception) {}
	
	}	
	//  If contents are showing, hide them
	else
	{
		e.title = Show_ToolTip;
		e.children(0).src = "open.gif";
		f.style.display = "none";
		display = "1";
		try { window.external.SetPref(ContentRegKey,"hide");}
		catch (exception) {}
	}

}
