function displayGetFlashMsg(need, have)
{
	var strMsg = "<div align='center'><h3 style='font-weight: bold; font-size: 125%; padding: 0;'>This site offers streaming video.</h3>";
	if ('0,0' == have)
	{
		strMsg += "<p>Adobe's Flash Player is required to view content.<br>";
	}
	else
	{
		strMsg += "<p>Adobe's Flash player version " + need + " or higher is required to view content.<br>You have version " + have + ".<br>";
	}
	
	strMsg += "Download the latest version from <a href='http://www.adobe.com/go/getflashplayer' target='_blank'>Adobe's Website</a>.</p></div>";
	
	return strMsg;
	
}
function setupVideo(sDiv, strSKU, strFullURL, iWidth, iHeight)
{
	flashembed(sDiv,{src:'/Scripts/flowplayer/FlowPlayerLight.swf',
								  width: iWidth,
								  height: iHeight, 
								  version: [9,0], 
								  onFail: function(version){return displayGetFlashMsg(this.version, version);}},
			{config: {
				autoPlay: false, autoBuffering: true, initialScale: 'scale',
				showWatermark:'always', watermarkUrl:'/assets/mef_flv_logo_sm.png', watermarkLinkUrl: strFullURL,
				/* videoFile: '/assets/products/' + strSKU + '/trailer_'+ strSKU + '.flv', */
				videoFile: 'http://trailers.mediaed.org/trailer_'+ strSKU + '.flv',
				splashImageFile: '/assets/products/' + strSKU + '/trailer_'+ strSKU + '.jpg'
			}});
}

function setupHomepageVideo(sDiv, sFile, sImage)
{
	flashembed(sDiv,{src:'/Scripts/flowplayer/FlowPlayerLight.swf',
								  width: 500,
								  height: 345, 
								  version: [9,0], 
								  onFail: function(version){return displayGetFlashMsg(this.version, version);}},
			{config: {
				autoPlay: false, autoBuffering: true, initialScale: 'scale',
				showWatermark:'always', watermarkUrl:'/assets/mef_flv_logo_lg.png', watermarkLinkUrl: '/',
				videoFile: sFile,
				splashImageFile: sImage,
				loop: false
			}});
}
