document.write('<bgsound id="MMIEContainer">')
IE = (navigator.appVersion.indexOf("MSIE")!=-1 && document.all)? 1:0;
NS = (navigator.appName=="Netscape" && navigator.plugins["LiveAudio"])? 1:0;
ver4 = IE||NS? 1:0;
onload=MMPreload;

function MMPreload() {
if (!ver4) return;
if (NS) MMEmb = new Layer(0,window);
else {
Str = "<div id='MMEmb' style='position:absolute;'></div>";
document.body.insertAdjacentHTML("BeforeEnd",Str);
}
var Str = '';
for (i=0;i<MMSound.length;i++)
Str += "<embed src='"+MMSound[i]+"' autostart='false' hidden='true'>"
if (IE) MMEmb.innerHTML = Str;
else {
MMEmb.document.open();
MMEmb.document.write(Str);
MMEmb.document.close();
}
MMCon = IE? document.all.MMIEContainer:MMEmb;
MMCon.control = MMCtrl;
}
function MMCtrl(snd,play) {
if (IE) this.src = play? MMSound[snd]:'';
else eval("this.document.embeds[snd]." + (play? "play()":"stop()"))
}
function playSound(snd) { if (window.MMCon) MMCon.control(snd,true); }
function stopSound(snd) { if (window.MMCon) MMCon.control(snd,false); }

var MMSound = new Array();
MMSound[0] = "/images/ptak.wav";
