function launchPlayer(startPath, playlist, startSong, autoStart, smallPlayer) {
	startSong = startSong - 1;

	if (smallPlayer == 1) {
		playerHeight = 30;
	} else {
		playerHeight = 120;
	}

	var flashvars = {};
		flashvars.playlist = startPath + 'data/' + playlist;
		flashvars.startSong = startSong;
		flashvars.autoStart = autoStart; // autostart variable | "1" = yes; "0" = no
		flashvars.smallPlayer = smallPlayer; // smallPlayer variable | "1" = yes; "0" = no
	var params = {};
		params.scale = "noscale";
		params.wmode = "transparent";
		params.allowscriptaccess = "sameDomain";
	var attributes = {};
		attributes.id = "mp3Player";
		swfobject.embedSWF(startPath + "swf/mp3Player.swf", "mp3PlayerContents", "350", playerHeight, "9.0.0", startPath + "includes/expressInstall.swf", flashvars, params, attributes);
}

function jsFunction_Update(currentSelection, playSelection) {
	var xmlHttp;

	try { // Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	} catch (e) { // Internet Explorer
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				alert("Your browser does not support AJAX.\nAJAX is needed to store the current status of the mp3 player.");
				return false;
			}
		}
	}

	/*
	readyState Values
	-----------------
	0 = The request is not initialized 
	1 = The request has been set up 
	2 = The request has been sent 
	3 = The request is in process 
	4 = The request is complete 
	*/

/*
	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4) {
			document.getElementById('rating').innerText = xmlHttp.responseText;

			//document.getElementById('rating').innerText = xmlHttp.responseText + ' (Modified)';
			//responseValue = xmlHttp.responseText;
			//setTimeout("document.getElementById('rating').innerText = responseValue;" , 5000)
		}
	}
*/

	xmlHttp.open("GET", "components/mp3player.cfc?method=updateStatus&currentSelection=" + currentSelection + "&playSelection=" + playSelection, true);
	xmlHttp.send(null);
}
