   function getObject(_x) {
	// used to locate the Flash asset in the DOM. Works reliably on FF, IE and Safari.
	return document.getElementById(_x);
    }
    window.onunload = function() {
	// stops audio when browser moves to a new page or closes. Helps stop a crash in Safari.
	xtrace("Closing...");
        getObject("fmp256").playpause(0);
    }
    function xtrace(_st) {
	// sends text from Flash to the on-screen debugging display (if used)
  	getObject("xtracef").t.value += _st + '\n';
    }
    function fmp256resize(_w,_h) {
	// resizes the Flash object within the page and tells Flash the new width (as a check)
        getObject("fmp256").width = _w;
	getObject("fmp256").height = _h;
        return getObject("fmp256").width;
    }
    function setconfig(_url,_ignorevolume) {
	// sends Flash a new config file URL. Set _ignorevolume to 1 if you want to maintain the current value, 
        // setting it to 0 resets volume to the value in the new config file. Default is 0.
	getObject("fmp256").setconfig(_url,_ignorevolume);
    }
    function toggle() {
	// changes between play and pause. To force audio to stop use '0' in the function.
	getObject("fmp256").playpause(1);
    }
    function clearTrace() {
	// removes all text from the debugging display (if used)
	getObject("xtracef").t.value = "";
    }