function toggleVisible(e, displayType)
{
	theNode = document.getElementById(e);

	if( !displayType )
		displayType = 'block';

	if (theNode.style.display == 'none')
		try 
		{
			theNode.style.display = displayType;
		} catch(e)
		{
			theNode.style.display = 'block';
		}
	else
		theNode.style.display = 'none';
}

function toggleMinorBrowserStats(e)
{
	var elem = document.getElementById(e);

	// Backup the DOM to find the parent <tr>
	while( elem.nodeName.toLowerCase() != 'tr' )
		elem = elem.parentNode;

	if( elem )
	{
		// Use the toggle <td>'s class to hold the toggle mode
		if( elem.className == 'toggleOff' )
		{
			elem.className = toggleDir = 'toggleOn';
		}
		else
		{
			elem.className = toggleDir = 'toggleOff';
		}

		// Loop through the rest of the <tr> tags in this group
		while( elem.nextSibling )
		{
			elem = elem.nextSibling;
			// Only turn on/off <tr> tags
			if( elem.nodeName.toLowerCase() == 'tr' )
			{
				// Hide everything
				if( toggleDir == "toggleOff" )
					elem.style.display = 'none';
				// Show everything (except the browser breakdown <tr> tags
				else if( toggleDir == "toggleOn" && 
							( elem.className.search(/\boddRow\b/) != -1 || elem.className.search(/\bevenRow\b/) != -1 ) 
						) 
				{
					try
					{
						elem.style.display = 'table-row';
					} catch(e) 
					{
						elem.style.display = 'block';
					}
				}
			}
		}
	}
}
