[%- btButtons = [ { id = 'Album', icon = 'html/images/iAlbumTrans.png', selectedicon = 'html/images/iAlbumTransSelected.png', namestring = 'ALBUMS', url = 'dummy' }, { id = 'Artist', icon = 'html/images/iArtistTrans.png', selectedicon = 'html/images/iArtistTransSelected.png', namestring = 'ARTIST', url = 'dummy' }, { id = 'Playlist', icon = 'html/images/iPlaylistTrans.png', selectedicon = 'html/images/iPlaylistTransSelected.png', namestring = 'IPENG_BUTTON_LISTS', url = 'dummy' }, { id = 'Search', icon = 'html/images/iSearchTrans.png', selected = 'html/images/iSearchTransSelected.png', namestring = 'SEARCH', url = 'dummy' }, { id = 'Home', icon = 'html/images/iHomeTrans.png', selectedicon = 'html/images/iHomeTransSelected.png', namestring = 'IPENG_BUTTON_HOME', url = 'home.html?player=' _ playerURI } ]; btButtons.0.url = PROCESS browseAlbumLink; btButtons.1.url = PROCESS browseArtistLink; btButtons.2.url = PROCESS browsePlaylistsLink; btButtons.3.url = PROCESS browseSearchLink; USE iPeng; i = 0; context = context || 'default'; commands = iPeng.commands('toolbar', context, 5); FOREACH command = commands; btButtons.$i = command; i = i + 1; END; %]