// XSPF Player JavaScript Control
//
// By Michael Chaney, Michael Chaney Consulting Corporation
// Copyright 2006 Michael Chaney Consulting Corporation
//
// This code is released under the same BSD-style license as the XSPF Player.
// For more info: http://musicplayer.sourceforge.net/

function XSPFPlayer(mdiv, width, height) {

	this.div = mdiv;
	swfobject.embedSWF("/wp-content/plugins/xspf_player/xspf_player_slim.swf", this.div, 176, 15, "7");

}

XSPFPlayer.prototype.play_song = function(title, song_url) {

	var flashvars = {};
	flashvars.autoplay = true;
	flashvars.song_url = song_url;
	flashvars.song_title = title;

	var params = {};

	var flashatts = {};
	flashatts.song_url = song_url;
	flashatts.song_title = title;

	swfobject.embedSWF("/wp-content/plugins/xspf_player/xspf_player_slim.swf", this.div, 176, 15, "7", "", flashvars, params, flashatts);

}

XSPFPlayer.prototype.stop = function() {
		var flashvars = {};
		flashvars.autoplay = '';
		swfobject.embedSWF("/wp-content/plugins/xspf_player/xspf_player_slim.swf", this.div, 176, 15, "7", "", flashvars);
}
