//<![CDATA[

var myListener = new Object();
 
myListener.onInit = function() {
    this.position = 0;
};

myListener.onUpdate = function() {
};
 
function getFlashObject() {
    return document.getElementById("flash_player");
}

function setPosition() {
    var position = document.getElementById("inputPosition").value;
    getFlashObject().SetVariable("method:setPosition", position);
}

function setVolume() {
    var volume = document.getElementById("inputVolume").value;
    getFlashObject().SetVariable("method:setVolume", volume);
}

function play(f) {
    if (myListener.Url != f) {
        getFlashObject().SetVariable("method:setUrl", f);
    }
    getFlashObject().SetVariable("method:play", "");
    getFlashObject().SetVariable("enabled", "true");
}

function pause() {
    getFlashObject().SetVariable("method:pause", "");
}

function stop() {
    getFlashObject().SetVariable("method:stop", "");
}

var start_pos = 0;
var stop_pos  = 0;

//]]>

