swfobject.registerObject("thePlayerId", "9.0.0", "/supplychaincomedy/epIII/expressInstall.swf");

    var currentState;

    function getUpdate(typ, pr1, pr2, pid)
    {
      if(pid != 'null')
      {
        if((typ == 'state') && (pr1 != undefined))
        {
          currentState = pr1;
          if(currentState == 3)
          {
            thisMovie('thePlayerId').loadFile({file:'/supplychaincomedy/epIII/Kinaxis_3_ExelHell_540x360_nointro.flv',image:'/supplychaincomedy/epIII/video1-end.jpg'})      
          }
        }
      }
    };

    function thisMovie(movieName)
    {
      if(navigator.appName.indexOf('Microsoft') != -1)
      {
        return window[movieName];
      }
      else
      {
        return document[movieName];
      }
    };

    function createPlayer()
    {
      var s = new SWFObject('/supplychaincomedy/epIII/mediaplayer.swf', 'thePlayerId', '540', '380', '8');
          s.addParam('allowscriptaccess',      'always');
          s.addVariable('file',                '/supplychaincomedy/epIII/Kinaxis_3_ExelHell_540x360_nointro.flv');
          s.addVariable('width',               '540');
          s.addVariable('height',              '380');
          s.addVariable('image',               '/supplychaincomedy/epIII/video-start-3b.jpg');
          s.addVariable('enablejs',            'true');
          s.addVariable('javascriptid',        'thePlayerId'); 
          s.write('placeholder');
    };
