Drupal.behaviors.flowplayer = function(context)
{
    if ($('a.player:not(a.player-processed)').length > 0) {
    var keyNr = Drupal.settings.common.key;
    //alert('KEY' + keyNr);
    flowplayer("a.player", {src: Drupal.settings.theme_path  + "/flowplayer.swf"}, {
        key: keyNr,
        clip: {
        scaling: 'orig'
      }
    });
    $('a.player:not(a.player-processed)').addClass('player-processed');
  }
}