
function embedAudioPlayerCode(playerObjectName, playerpath,  filepath) {
	return(
	"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' " +
	"	codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' " +
	"	width='165' height='38' id='" + playerObjectName + "' align=''>" +
	"<param name=movie value='" + playerpath + "?open&file=" + filepath + "'>" +
	"<param name=quality value=high>" +
	"<param name=bgcolor value=#FFFFFF>" +
	"<embed src='" + playerpath + "?open&file=" + filepath + 
		"' quality=high bgcolor=#FFFFFF width='165' height='38' " +
		" name='" + playerObjectName + "' align='' type='application/x-shockwave-flash'" +
		" pluginspage='http://www.macromedia.com/go/getflashplayer'>" +
	"</embed>" +
	"</object>")
	
}

/*
<a href="javascript:niftyplayer('niftyPlayer1').playToggle()">play toggle</a>
<a href="javascript:niftyplayer('niftyPlayer1').play()">play</a>
<a href="javascript:niftyplayer('niftyPlayer1').pause()">pause</a>
<a href="javascript:niftyplayer('niftyPlayer1').stop()">stop</a>
<a href="javascript:niftyplayer('niftyPlayer1').load('betty.mp3')">load file 1</a>
<a href="javascript:niftyplayer('niftyPlayer1').load('creeeeak.mp3')">load file 2</a>
<a href="javascript:niftyplayer('niftyPlayer1').loadAndPlay('creeeeak.mp3')">load file 2 and play it</a>
<a href="javascript:niftyplayer('niftyPlayer1').registerEvent('onPlay', 'alert(\'Playing!\')')">register onPlay event</a> 
<a href="javascript:alert(niftyplayer('niftyPlayer1').getState())">get current file state</a>

*/
