soundManager.debugMode = false;
soundManager.useFlashBlock = true;
soundManager.url = '/videos/';
soundManager.flashVersion = 9;
soundManager.useMovieStar = true;
soundManager.allowFullScreen = true;

if (window.location.toString().match('nodebug')) {
  soundManager.debugMode = false;
}

soundManager.onready(function() {
  if (soundManager.supported()) {
    // soundManager.createSound() etc. may now be called
    soundManager.createVideo({id:'webshop_tutorial',url:'http://konplott.tv/video/b2btutorial_1-firstorderv3.0.m4v'});
    soundManager.play('webshop_tutorial');
  }
});


function pause_video()
{
soundManager.pause('webshop_tutorial');
}

function resume_video()
{
soundManager.resume('webshop_tutorial');
}

function play_after_stop_video()
{
soundManager.stop('webshop_tutorial');
soundManager.play('webshop_tutorial');
}

function reboot_video()
{
  soundManager.flashLoadTimeout = 0;
  soundManager.onerror = {};
  soundManager.reboot();
}

