var m_bIsOpen = false;


function details_toggle()
{
	var aDisplayWindow = Array("details_content")
	if (!m_bIsOpen)
	{
		details_displaySwitch(aDisplayWindow, Array());
		
	}
	else
	{
		details_displaySwitch(Array(), aDisplayWindow);
		
	}
	
	m_bIsOpen = !m_bIsOpen;
}


/*************************************************************************************
	details_displaySwitch = receives two arrays--first array of IDs to open, second array of
					IDs to close.

	PARAMETERS:
			r_arrOpen = string array of element IDs that are to be opened
			r_arrClose = string array of element IDs that are to be closed

**************************************************************************************/

function details_displaySwitch(r_arrOpen, r_arrClose)
{
	// Open the elements in the first array passed
	for (var i=0; i<r_arrOpen.length; i++)
		document.getElementById(r_arrOpen[i]).style.display = 'inline';
	
	// Close the elements in second array passed
	for (i=0; i<r_arrClose.length; i++)
		document.getElementById(r_arrClose[i]).style.display = 'none';
}
