function createPlayer(video, w, h) {
  if (h==null) {h=360};
  if (w==null) {w=422};
  var p_height = h;
  var p_width = w;
  var so = new SWFObject('/player/player-licensed.swf','mpl',p_width,p_height,'9');
  so.addParam('allowfullscreen','true');
  so.addParam('allowscriptaccess','always');
  so.addVariable('file','/files/videos/' + video + '.flv');
  so.addVariable('image','/files/videos/' + video + '.jpg');
  so.addVariable('autostart','true');
  so.write('video');
  document.getElementById("video").style.width = p_width + "px";
}