function playSound(zdroj) { //funguje i se zapnutymi ochanami FlashPlayeru
var player = new Audio(zdroj);
player.play()
console.log("sound/" + zdroj)
/*
flash = document.getElementById("prehravac");

flash.innerHTML ="<object type=\"application/x-shockwave-flash\" data=\"sounder2.swf?klip=" + zdroj + "\" width=\"0\" height=\"0\" >"+
"<param name=\"movie\" value=\"sounder2.swf\?klip=" + zdroj + "\" />"+
"<param name=\"quality\" value=\"high\" />"
"<img src=\"get_flash.gif\" alt=\"Nemáte naistalovaný Flash Player\" />"+
"</object>"
*/
}

function replaceIPA() {
browName = navigator.appName;
//alert(browName)
if (browName=="Microsoft Internet Explorer") {
  var counter = 0;
  var vstup = document.getElementById("body");
  var obsah = vstup.innerHTML;
  var vystup ="";
  for (i=0; i< obsah.length; i++) {
    if (obsah.charCodeAt(i) == 712  || obsah.charCodeAt(i) == 720) {
      vystup += "<img class=\"IPA\" src=\"images/IPA/" + obsah.charCodeAt(i) + ".gif\" alt=\"IPA znak\" />";
      counter++;
      }
    else {vystup += obsah.charAt(i);}
    }
  vstup.innerHTML = vystup;
  //alert("nahrazeno znaku: " + counter)
  }

}