function playPlaylistSongAtIndex(index, playlist) {
		/*
  		Stop the current song.
  */
		stop();

		/*
  		Get the index of the song in the songs array. This is the integer at the index
  	in the playlist.
  */
		var songIndex = _config2.default.playlists[playlist][index];

		/*
  		Determine if there is a new playlist, if so set the active playlist and change the song.
  */
		if (_helpers2.default.checkNewPlaylist(playlist)) {
			_helpers2.default.setActivePlaylist(playlist);

			_helpers2.default.changeSong(songIndex);
		}

		/*
  		Check if the song is new. If so, change the song.
  */
		if (_helpers2.default.checkNewSong(songIndex)) {
			_helpers2.default.changeSong(songIndex);
		}

		/*
  	Sync all of the play pause buttons.
  */
		_visual2.default.syncMainPlayPause('playing');
		_visual2.default.syncPlaylistPlayPause(_config2.default.active_playlist, 'playing');
		_visual2.default.syncSongPlayPause(_config2.default.active_playlist, _config2.default.active_index, 'playing');

		/*
  	Play the song
  */
		play();
	}
/**
 * Plays a song at the index passed in for the playlist provided. The index passed
 * in should be the index of the song in the playlist and not the songs array.
 *
 * @access public
 * @param {number} index 		- The number representing the song in the playlist array.
 * @param {string} playlist 	- The key string representing the playlist we are playing the song from.
 *
 */
Plays a song at the index passed in for the playlist provided. The index passed
in should be the index of the song in the playlist and not the songs array.

@access public
@param {number} index                - The number representing the song in the playlist array.
@param {string} playlist     - The key string representing the playlist we are playing the song from.
Plays a song at the index passed in for the playlist provided . The index passed in should be the index of the song in the playlist and not the songs array . @access public @param { number } index - The number representing the song in the playlist array . @param { string } playlist - The key string representing the playlist we are playing the song from .
function playPlaylistSongAtIndex(index, playlist) {
		stop();
		var songIndex = _config2.default.playlists[playlist][index];
		if (_helpers2.default.checkNewPlaylist(playlist)) {
			_helpers2.default.setActivePlaylist(playlist);
			_helpers2.default.changeSong(songIndex);
		}
		if (_helpers2.default.checkNewSong(songIndex)) {
			_helpers2.default.changeSong(songIndex);
		}
		_visual2.default.syncMainPlayPause('playing');
		_visual2.default.syncPlaylistPlayPause(_config2.default.active_playlist, 'playing');
		_visual2.default.syncSongPlayPause(_config2.default.active_playlist, _config2.default.active_index, 'playing');
		play();
	}
function playPlaylistSongAtIndex ( index , playlist ) { stop ( ) ; var songIndex = _config2 . default . playlists [ playlist ] [ index ] ; if ( _helpers2 . default . checkNewPlaylist ( playlist ) ) { _helpers2 . default . setActivePlaylist ( playlist ) ; _helpers2 . default . changeSong ( songIndex ) ; } if ( _helpers2 . default . checkNewSong ( songIndex ) ) { _helpers2 . default . changeSong ( songIndex ) ; } _visual2 . default . syncMainPlayPause ( 'playing' ) ; _visual2 . default . syncPlaylistPlayPause ( _config2 . default . active_playlist , 'playing' ) ; _visual2 . default . syncSongPlayPause ( _config2 . default . active_playlist , _config2 . default . active_index , 'playing' ) ; play ( ) ; }
Plays a song at the index passed in for the playlist provided.
Plays a song at the index passed in for the playlist provided .
/*
  		Stop the current song.
  */ /*
  		Get the index of the song in the songs array. This is the integer at the index
  	in the playlist.
  */ /*
  		Determine if there is a new playlist, if so set the active playlist and change the song.
  */ /*
  		Check if the song is new. If so, change the song.
  */ /*
  	Sync all of the play pause buttons.
  */ /*
  	Play the song
  */