// http://www.validome.org/doc/HTML_ge/navigation/anzeige/rechte_maustaste.htm

function click (e) {
  if (!e) e = window.event;
  if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
     if (window.opera)
        window.alert("Download not allowed");
     return false;
  }
return true;
}
// zum Deaktivieren der Rechtsklicksperre die folgenden 4 Zeilen löschen
if (document.layers)
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = click;
document.oncontextmenu = click;

function del_stop() {
      i = 1;
      while (document.getElementById('stop'+i)) {
            document.getElementById('stop'+i).innerHTML = '';
            i++;
      }
}

function playsound(typ) {
   if (flashinstalled == 2) {
      del_stop();
      document.getElementById("ton").innerHTML = '<object data="'+typ+'" type="application/x-shockwave-flash" style="width:0; height:0;" /><param name="movie" value="'+typ+'" /><param name="loop" value="false" /><\/object>';
   } else {
     document.write ("kein Flash");
   }

}

function stop(pl) {
   if (flashinstalled == 2) {
      document.getElementById(pl).innerHTML = '<span style="color:red;">&nbsp;[<span lang="en">now playing</span>]<\/span> <a href="#" onclick="ruhe();return false;" onkeypress="onclick">Stop!<\/a>';
   }
}

function ruhe() {
      document.getElementById("ton").innerHTML = '';
      del_stop();
}
