Flowplayer Overlay

<a
href="http://TYPETHEVIDEOURLHERE"
style="display:block;width:500px;height:400px"
id="player">
</a>

<script type="text/javascript">

//Create Player and Overlay
jQuery(function() {

//Player
var player = $f("player", "/flowplayer/flowplayer-3.2.4.swf", {
clip: {
autoPlay: true,
autoBuffering: true,

//Close overlay when play complete
onFinish: function() {
jQuery('.close').click();
}
}
});

//Overlay
jQuery("img[rel]").overlay({

top: "center",

onClose: function() {
player.pause();
}
});

});
</script>