// Java instructions for use with Flash streaming from StreamingMediaHosting.com 
// 
// You need to modify only 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 code,
// 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 = "";

//Step 1 replace streamingmediahosting with your login account name on the next line:
args = appendParameter(args, "appName", "endlessfun");

//Step 2 change the following code. yourFLVfilename_256k is first, then do not change the 384, 
//followed by yourFLVfilename_384k, rename it and then do not change the 768, next file name.
//Just delete everything else if your only having one file name
args = appendParameter(args, "streamName", "rebull_250, 768, redbull_500");
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");

// Step 3 define width and height here first:
document.write('<object width="320" height="213" 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" /> ');

// Step 4: define width and height here second:
document.write('<embed width="320" height="213" 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>');