function createPlayer(params, width, height, bgcolor, playerId, widescreen)
{
	if(params == undefined)
		params = "";
		
	if(width == undefined)
		width = 320;
	
	if(height == undefined)
		height = 240;

	if(playerId == undefined)
		playerId = "FLVPlayer";

	if(widescreen == undefined)
		widescreen = false;

	var playerFile = widescreen ? "/lutheransonline/video/FLVPlayerWide.swf" : "/lutheransonline/video/FLVPlayer.swf";

	var bgcolorParam = (bgcolor == undefined) || (bgcolor == "") ? "<param name=\"wmode\" value=\"transparent\">" : "<param name=\"bgcolor\" value=\"" + bgcolor + "\">";
	var bgcolorEmbed = (bgcolor == undefined) || (bgcolor == "") ? "wmode=\"transparent\"" : "bgcolor\"" + bgcolor + "\"";
	
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"" + width + "\" height=\"" + height + "\" id=\"" + playerId + "\">");
	document.write("<param name=\"movie\" value=\"" + playerFile + "?" + params + "\">");
	document.write("<param name=\"salign\" value=\"center\">");
	document.write("<param name=\"quality\" value=\"high\">");
	document.write("<param name=\"allowScriptAccess\" value=\"always\">");
	document.write("<param name=\"scale\" value=\"noborder\">");
	document.write(bgcolorParam);
	document.write("<embed name=\"" + playerId + "\" src=\"" + playerFile + "?" + params + "\" quality=\"high\" " + bgcolorEmbed + " allowScriptAccess=\"always\" scale=\"noborder\" width=\"" + width + "\" height=\"" + height + "\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.write("</object>");
}
