$(function() {
	$("a[rel]").overlay({
		onBeforeLoad: function() {
			this.expose();	
		},				
		onLoad: function(content) {
			this.getContent().find("a.player").flowplayer(0).load();
		},
		onClose: function(content) {
			$f().unload();
			$.expose.close();
		}
	});				
	$("a.player").flowplayer("../assets/video/flowplayer-3.1.0.swf"); 
});	
