// Tagebuch FS Commands
  
var g_Browser = navigator.appName;
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function movie_DoFSCommand(command, args) {
  var movieObj = InternetExplorer ? document.getElementById("movie") : document.movie;

  {if (command == "Launch"){
    window.document.movie.SetVariable("Snoop", "PageLoad");	
    }
  }
    {if (command == "Show0"){
    popup("../popup/timetbl.html", 472, 388, true);
    }
  }
  {if (command == "Show1"){
    popup("../popup/homeby.html", 472, 600, true);
    }
  }
  {if (command == "Show2"){
    popup("../popup/salmacis.html", 472, 600, true);
    }
  }
  {if (command == "Show3"){
    popup("../popup/domino.html", 472, 600, true);
    }
  }
  {if (command == "Show4"){
    popup("../popup/thevine.html", 472, 600, true);
    }
  }
  {if (command == "Show5"){
    popup("../popup/sarahjane.html", 472, 600, true);
    }
  }
  {if (command == "Show6"){
    popup("../popup/oneman.html", 472, 600, true);
    }
  }
  {if (command == "Show7"){
    popup("../popup/evidence.html", 472, 600, true);
    }
  }
  
  {if (command == "Load"){
    document.Player.URL ="midifiles/seven_stones.mid";
    }
  }
  {if (command == "Open1"){
    document.Player.URL ="midifiles/homebydc.mid";
    }
  }
  {if (command == "Open2"){
    document.Player.URL ="midifiles/homebydc.mid";
    }
  }
  {if (command == "Open3"){
    document.Player.URL ="midifiles/secondhome.mid";
    }
  }
  {if (command == "Open4"){
    document.Player.URL ="midifiles/salmacis.mid";
    }
  }
  {if (command == "Open5"){
    document.Player.URL ="midifiles/salmacis.mid";
    }
  }
  {if (command == "Open6"){
    document.Player.URL ="midifiles/domino.mid";
    }
  }
  {if (command == "Open7"){
    document.Player.URL ="midifiles/thevine.mid";
    }
  }
  {if (command == "Open8"){
  document.Player.URL ="midifiles/sarahjane.mid";
    }
  }
  {if (command == "Open9"){
    document.Player.URL ="midifiles/onemansfool.mid";
    }
  }
  {if (command == "Open10"){
    document.Player.URL ="midifiles/evidence.mid";
    }
  }

//Mediensteurung
  {if (command == "Level"){
   document.Player.settings.volume = parseInt(args);
    }
  }
  {if (command == "Pan"){
    document.Player.settings.balance = parseInt(args);
    }
  }
  {if (command == "Stop"){
    document.Player.controls.stop();
    document.Player.controls.currentPosition = 0;
    }
  }
  {if (command == "Pause"){
    document.Player.controls.pause();
    }
  }
  {if (command == "Play"){
    document.Player.controls.play();
    }
  }
  {if (command == "Forward"){
    document.Player.controls.currentPosition = document.Player.controls.currentPosition + 50;
    }
  }
  {if (command == "Rewind"){
    document.Player.controls.currentPosition = document.Player.controls.currentPosition - 50;
    }
  }
}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
    navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('Sub movie_FSCommand(ByVal command, ByVal args)\n');
  document.write('  call movie_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
}
