function displayFlowFlash(sFlashUrl, sTitle, sLicence)
{
	var fOnShowCallback = function() {
		flowplayer("flash_learning_object_player", aJsConfig.APPLICATION_URL + "/flowplayer/flowplayer.unlimited-3.1.5.swf", {
			logo:null ,
			key: sLicence,
			clip : {
				scaling : 'orig'
			}
		});
	}
	Modalbox
			.show(
					'<div style="font-size:14px; font-weight: normal; padding: 5px 5px 5px 5px"><form onsubmit="Modalbox.hide();return false;">'
							+ '<p align="center">&nbsp;'
							+ '<a href="'
							+ sFlashUrl
							+ '" style="display:block;width:' + aJsConfig.maxWidth  + 'px;height:' + aJsConfig.maxHeight + 'px" id="flash_learning_object_player" style="padding-bottom: 5px"></a>'
							+ '<input style="font-size: 14px; font-weight: bold; margin-top: 10px;" type="submit" value="' + aJsConfig.localisation.close + '" /></p></form></div>',
					{
						title : sTitle,
						width : aJsConfig.maxWidth + 20,
						overlayClose : false,
						afterLoad : fOnShowCallback
					});
}

function displayFlowFlashFront(sFlashUrl, sTitle, reportId)
{
	var fAfterLoadCallback = function() {
		createFlowplayer(reportId,'flash_learning_object_player', {}, {scaling: 'orig'});
	}

	var fBeforeHideCallback = function() {
	}

	Modalbox
			.show(
					'<div style="font-size:14px; font-weight: normal; padding: 5px 5px 5px 5px"><form onsubmit="Modalbox.hide();return false;"'
							+ '<p align="center">&nbsp;'
							+ '<a href="'
							+ sFlashUrl
							+ '" style="display:block;width:500px;height:300px" id="flash_learning_object_player" style="padding-bottom: 5px"></a>'
							+ '<input style="font-size: 14px; font-weight: bold; margin-top: 10px;" type="submit" value="OK" /></p></form></div>',
					{
						title : sTitle,
						width : 500,
						overlayClose : false,
						afterLoad : fAfterLoadCallback,
						beforeHide: fBeforeHideCallback
					});

}

