
function playmovie() {
  var wh = $(window).height();
  var pw = 896;
  var ph = 480;
  
  var mt = Math.floor( (wh-ph)/2 < 10 ? 10 : (wh-ph)/2 );
  
  var ov = $('<div style="position: fixed; left: 0; top: 0; width: 100%; background: transparent url(player/bg.png) repeat;"></div>');
  ov.height(wh);
  ov.click(function() { $j(this).remove(); });
  
  var pl = $('<div id="player"></div>');
  pl.css('width', pw);
  pl.css('height', ph);
  pl.css('margin', 'auto');
  pl.css('margin-top', mt);
  
  ov.append(pl);

  $(document.body).append(ov);
  
  $f("player", "player/flowplayer.swf", {
      clip: {
        url: 'player/franczyza.mp4',
        autoPlay: true,
        autoBuffering: true,
        onFinish: function(){ ov.remove(); }
      }, plugins: { controls: null }
  });

}
