soundManager.url = "/sfContentRendererPlugin/js/soundmanager2/swf/";
soundManager.flashVersion = 9; // optional: shiny features (default = 8)
soundManager.useFlashBlock = false; // optionally, enable when you're ready to dive in
// enable HTML5 audio support, if you're feeling adventurous.
soundManager.useHTML5Audio = true;
soundManager.debugFlash = false;
soundManager.debugMode = false;
soundManager.useConsole = false;

//CUSTOM
//soundManager.useHighPerformance = true; // böse, macht 9x9 pixel swf in die linke, untere ecke
soundManager.useFastPolling = true;

(function()
{
  dojo.addOnLoad(function()
  {
    var controller = new pausanio.soundmanager2.InlinePlayerController;
    controller.initialize('.soundmanager-inlineplayer');

    dojo.subscribe('pausanio.dom_updated', function(root_node)
    {
      controller.initialize(dojo.query('.soundmanager-inlineplayer', typeof root === 'undefined' ? null : root_node));
    });
  });
}());
