p01 = new Image();
p01.src = "images/navbardotbottom.jpg";

  


function OpenWin(w) {
var ww
if (w.search(".htm") > -1) {ww=w}
else {ww= w + ".html"}
openedw=window.open(ww,'obenedw', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=650,height=500');
}


function PopPic(w) {
if (w.search("images/") < 0) {ww="images/" + w}
window.open( "picpopup.html?"+ww, "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=200,height=200");
}


function switchPage(fullPath) {
document.location.replace('frame_' + fullPath.substring(fullPath.lastIndexOf('/')+1,fullPath.length));
} 


function SwitchMenu(xsrc) {
if (document.getElementById) {
  var x = document.getElementById("menuimg");
  x.src = "images/" + xsrc + "_on.png";
  if (xsrc == "m2") {PlaySound('images/wilhelm.mp3');};
  
};
}

function PlaySound(x) {
  y = document.getElementById("soundspan").innerHTML;
  if (y.indexOf(x) < 0) {
    document.getElementById("soundspan").innerHTML= '<embed src="' + x + '" height="0" width="0" type="application/x-mplayer2" autostart="1" loop="0" volume="-300"></embed>';
  };
}


