function showControl(controlID, showIt)
{
	var control = document.getElementById(controlID);
	if (!control) { return false; }
	
	var curr = control.style.display;
	var next = showIt ? "inline" : "none";
	if (curr != next) {
		control.style.display = next;
	}
	return true;
}

function initControls()
{
    var p = window.navigator.platform;
    var isMac = false;
    if (p.indexOf("mac") >= 0) { isMac = true; }
    if (p.indexOf("Mac") >= 0) { isMac = true; }
    showControl("cWin", !isMac);
    showControl("cMac", isMac);
}

function toggleControls()
{
    var winHidden = document.getElementById("cWin").style.display == "none";
    showControl("cWin", winHidden);
    showControl("cMac", !winHidden);
}


