function playSound(zdroj) { //funguje i se zapnutymi ochanami FlashPlayeru
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)
  }

}
 function preklik(uzel) {
    toggleMax(uzel);
   // toggleMax(uzel.parentNode);
          
}
 
function toggleMax(uzel) {
 var trida = uzel.attributes["class"].nodeValue
//alert(trida)
    var pozice = trida.lastIndexOf("_")
    if (pozice > 2) {
      uzel.attributes["class"].nodeValue = trida.substring(0,pozice)
      }
    else uzel.attributes["class"].nodeValue = trida + "_max"
}    