function thisMovie(movieName) {
    if(navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	} else {
		return document[movieName];
	}
};


function drawPlayer(playlist)
{
	playlistXML = "playlist_" + playlist.replace(" ", "") + ".xml";
	
	//alert('playlistXML = ' + playlistXML)
	//alert("document.getElementById('parchment').innerHTML = \n" + document.getElementById('parchment').innerHTML)
	
	var album = new SWFObject("mp3player.swf", "flashPlayer", "298", "175", "8");

	/* unused parameters
	album.addVariable("overstretch","false");	
	album.addVariable("showicons","true");
	album.addVariable("width","300");
    album.addVariable("height","1000");
	*/

	if (location.href.indexOf('localhost') != -1)
		album.addVariable("autostart","false");
	else
		album.addVariable("autostart","false");
	
	album.addVariable('repeat', 'list');
    
	album.addVariable("showeq","true");
	album.addVariable("shuffle","false");

/*	this is the color of the background and everything else on the flash player -- azure3	*/
	album.addVariable("backcolor","0xFFFAF0");

/*	this is the color of the text and the controls  -- copper	*/
	album.addVariable("frontcolor","0xC96333");

/*	this is the hover-over color  -- tomato4	*/
	album.addVariable("lightcolor","0x8B3626");

	album.addVariable("displayheight","0");
	album.addVariable("volume","75");
	album.addVariable("javascriptid","flashPlayer");
	
	/*	this caused problems in IE, but turned out to be unnecessary
	album.addVariable("enablejs","true");
	*/
	
	album.addVariable("file", "playlists/" + playlistXML);

	album.write("flashPlayer");
	
	document.getElementById('playlistTitle').innerHTML = playlist.replace("_", " ");



	
	

}


