function playMp3() {

	if (arguments.length < 3) {

		return false;

	} else {

		streamName = arguments[0];
		duration = convertToInt(arguments[1]);
		div = arguments[2];

	}

	if (streamName.length == 0) {

		return false;

	} else {

		widthadjusted = 300;
		heightadjusted = 100;
		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/audios', playList: [{url: 'mp3:" + streamName + "', overlay: 'http://www.mediashowcase.appstate.edu/images/studentmediashowcase.jpg', duration: " + duration + "}], autoPlay: true, controlBarBackgroundColor: 0xffffff, controlBarGloss: 'none', showFullScreenButton: false, showMenu: false, showStopButton: true, showVolumeSlider: true, showMuteVolumeButton: false, usePlayOverlay: true, autoRewind: false, loop: false}";

		var video = new SWFObject("/js/FlowPlayer.swf", "clip01", 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;

}
