    window.onunload = function() {
	// stops audio when browser moves to a new page or closes. Helps stop a crash in Safari.
        $("#fmp256")[0].playpause(0);
    }
    function setconfig(_url) {
	// sends Flash a new config file URL.
	$("#fmp256")[0].setconfig(_url);
    }
    function toggle() {
	// changes between play and pause. To force audio to stop use '0' in the function.
	$("#fmp256")[0].playpause(1);
    }

	// the following two functions should be removed for a public production website.
    function xtrace(_st) {
	// sends text from Flash to the on-screen debugging display (if used)
  	$("#xtracef")[0].t.value += _st + '\n';
    }
    function clearTrace() {
	// removes all text from the debugging display (if used)
	$("#xtracef")[0].t.value = "";
    }


function radioChange(t,id) {
  var ra = t.options[t.selectedIndex].value;
//  gBoxok[ gBoxIDs[id].o ][ gBoxIDs[id].s ]["ra"] = ra;
//alert("/ajax/radioxml?id="+id+"&ra="+ra);
  setconfig("/ajax/radioxml?id="+id+"&ra="+ra);
//  gBoxUpdate();
  // gBoxFormSetting(id,0);
}
