function toggle(id)
{
	if (id)
	{
		var buttonID = id+"_button";
		
		if (getID(id).style.display == "none") { display(id, buttonID, 1); }
		else { display(id, buttonID, 0); }
	}
}

function display(id, buttonID, mode)
{
	var display, display_alt, display2, display2_alt;
	var altID = "_collapsed";
	
	if (mode)
	{
		display = "table-cell";
		display_alt = "block";
		
		display2 = "none";
		display2_alt = "none";
		
		if (ie(navigator.userAgent)) { display = "block"; }
	}
	else
	{
		display = "none";
		display_alt = "none";
		
		display2 = "table-cell";
		display2_alt = "block";
		
		if (ie(navigator.userAgent)) { display2 = "block"; }
	}
	
	getID(id).style.display = display;
	getID(buttonID).style.display = display_alt;
	
	getID(id+altID).style.display = display2;
	getID(buttonID+altID).style.display = display2_alt;
}

// easier element request; getID(id).checked instead of document.getElementById(id).checked
function getID(id) { if (id) { return document.getElementById(id); } }

function ie(ua)
{
	if (ua.indexOf('MSIE')+1) { return true; }
}