--- lightbox_video.js.old	2010-01-19 19:30:53.000000000 +0100
+++ lightbox_video.js	2010-01-20 12:03:40.000000000 +0100
@@ -23,6 +23,11 @@ var Lightvideo = {
     else if (href.match(/\.wmv/i) || href.match(/\.asx/i)) {
       Lightbox.modalHTML = '<object NAME="Player" WIDTH="'+Lightbox.modalWidth+'" HEIGHT="'+Lightbox.modalHeight+'" align="left" hspace="0" type="application/x-oleobject" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"><param name="allowFullScreen" value="true"></param><param NAME="URL" VALUE="'+href+'"></param><param NAME="AUTOSTART" VALUE="true"></param><param name="showControls" value="true"></param><embed WIDTH="'+Lightbox.modalWidth+'" HEIGHT="'+Lightbox.modalHeight+'" align="left" hspace="0" SRC="'+href+'" TYPE="application/x-oleobject" AUTOSTART="false"></embed></object>';
     }
+    else if(Lightbox.flvPlayer.match(/flowplayer/i)) {
+      Lightbox.videoId = href;
+      config = "'clip':'" + href + "'";
+      Lightvideo.createEmbed_flowplayer(Lightbox.flvPlayer, "flvplayer", "#ffffff", config);
+    }
     else {
       Lightbox.videoId = href;
       href = Lightbox.flvPlayer + '?file=' + href;
@@ -35,6 +40,21 @@ var Lightvideo = {
     }
   },
 
+  // createEmbed_flowplayer()
+  createEmbed_flowplayer: function(href, id, color, config) {
+    var bgcolor = 'bgcolor="' + color + '"';
+    var flashvars = 'flashvars="config={' + config + '}" ';
+    var embed_html = '<embed ' +
+      ' src="' + href + '" ' + flashvars +
+      ' id="' + id + '" name="' + id + '" ' + bgcolor + ' ' +
+      ' quality="high" wmode="transparent" ' +
+      ' height="' + (Lightbox.modalHeight - 20) + '" ' +
+      ' width="' + (Lightbox.modalWidth -20) + '" ' +
+      ' allowfullscreen="true" ' +
+      '></embed>';
+    Lightbox.modalHTML = embed_html;
+  },
+
   // createEmbed()
   createEmbed: function(href, id, color, variables) {
     var bgcolor = 'bgcolor="' + color + '"';
