
function playSound(sound) {
    try{
        document.body.removeChild(soundEmbed);
    }catch(Exception){}

    soundEmbed = document.createElement("embed");
    soundEmbed.setAttribute("src", sound);
    soundEmbed.setAttribute("hidden", true);
    soundEmbed.setAttribute("autostart", true);
    document.body.appendChild(soundEmbed);
}
