function showFlv() {

	if (arguments.length < 4) {

		return false;

	} else {

		streamName = arguments[0];
		width = arguments[1];
		height = arguments[2];
		div = arguments[3];

		if (arguments.length > 4) {

			autoplay = arguments[4];

		}

	}

	width = convertToInt(width);
	height = convertToInt(height);

	if ((streamName.length == 0) || (width <= 0) || (height <= 0)) {

		return false;

	} else {

		widthadjusted = width;
		heightadjusted = height + 44;
		document.getElementById(div).style.width = widthadjusted + "px";
		document.getElementById(div).style.height = heightadjusted + "px";
		document.getElementById(div).style.padding = "2px";
		document.getElementById(div).style.border = "1px solid #6f7777";

		config = "{streamingServerURL: 'rtmp://video-a.appstate.edu/C_Fine_Applied_Arts/videos',playList: [{url: '" + streamName + "'}],autoPlay: true,controlBarBackgroundColor: 0xffffff,controlBarGloss: 'none',showFullScreenButton: false,showMenu: false,showStopButton: true,showVolumeSlider: true,autoRewind: true,loop: false}";

		var video = new SWFObject("/js/FlowPlayer.swf", "movie01", widthadjusted, heightadjusted, "8", "#FFFFFF", true);
		video.addVariable("config", config);
		video.setAttribute("style", "");
		video.write(div);
		return true;

	}

}

function convertToInt(in01) {

	if (typeof(in01) == "string") {

		temp = parseInt(in01);

		if (isNaN(temp)) {

			out01 = 0;

		}

	} else if (typeof(in01) == "number") {

		out01 = Math.floor(in01);

	} else {

		out01 = 0;

	}

	return out01;

}
