// www.StreamingMediaHosting.com 
// Sample Flash Streaming Video Player
//
// You need to modify four parameters of this for your use:
// 1) Your account name (the username you use with FTP to upload your content)
// 2) The name of the FLV file(s) you wish to play
// 3) The width and height of the video in the <object> code
// 4) The width and height of the video in the <embed> code
//
// That's it! You may rename this file, as long as you change the referring HTML
// web page, to stream additional FLV files.

function appendParameter(p_args, p_name, p_value) {
	if (p_args == "")
		return p_name+"="+escape(p_value);
	else
		return p_args+"&"+p_name+"="+escape(p_value);
}
var args = "";

args = appendParameter(args, "appName", "lutheranhour"); //your login account name
// single bitrate format:
   args = appendParameter(args, "streamName", "CatalystVideo"); //name of the FLV file to play
// multi-bitrate format:
//args = appendParameter(args, "streamName", "filename, 384, d2g_trailer_384k, 768, d2g_trailer_512k");
args = appendParameter(args, "serverName", "flash.streamingmediahosting.com");
args = appendParameter(args, "skinName", "flvplayer_skin");
args = appendParameter(args, "autoPlay", "true");
args = appendParameter(args, "autoRewind", "true");
args = appendParameter(args, "bufferTime", "2");

// define width and height here first:
document.write('<object width="480" height="270" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="FLVPlayer" align="" /> ');
document.write('<param name="movie" value="flvplayer.swf?'+args+'" /> ');
document.write('<param name="salign" value="lt" /> ');
document.write('<param name="quality" value="high" /> ');
document.write('<param name="scale" value="noscale" /> ');
document.write('<param name="bgcolor" value="#ffffff" /> ');
// define width and height here second:
document.write('<embed width="480" height="270" src="flvplayer.swf?'+args+'" quality="high" scale="noscale" bgcolor="#ffffff" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> ');
document.write('</object>');