aSounds = [
// very small, very simple mario theme. Sequenced by Mike Martel.
"data:audio/mid;base64,TVRoZAAAAAYAAQAEA.....",
"data:,",
// game over. Sequenced by John N. Engelmann.
"data:audio/mid;base64,TVRoZAAAAAYAA......"
],
playMusic = function(iSoundID, bLoop) {
if (!bMusic) return;
var oEmbed = dc("embed");
oEmbed.src = aSounds[iSoundID];
oEmbed.id = "sound_" + iSoundID;
if (bLoop) oEmbed.setAttribute("loop", "true");
oEmbed.setAttribute("autostart", "true");
oEmbed.style.position = "absolute";
oEmbed.style.left = -1000;
appChild(document.body, oEmbed);
}