// Last.fm In A Box module // Copyright 2008, Last.fm Ltd. // http://www.last.fm var lastFmInABox, box; if ((box = document.createElement('iframe')) && (lastFmInABox = document.getElementById('lastfminabox-0a4158e20719afab0ae232a8478bebc2'))) { box.width = 400; box.height = 400; box.frameBorder = 0; box.scrolling = "no"; box.src = 'http://www.last.fm/lastfminabox/module?key=0a4158e20719afab0ae232a8478bebc2&station='; if (lastFmInABox.attributes['station']) box.src += lastFmInABox.attributes['station'].value; else if (lastFmInABox.attributes['artist']) box.src += 'artist/' + lastFmInABox.attributes['artist'].value; else if (lastFmInABox.attributes['tag']) box.src += 'tag/' + lastFmInABox.attributes['tag'].value; else if (lastFmInABox.attributes['genre']) box.src += 'tag/' + lastFmInABox.attributes['genre'].value; else if (lastFmInABox.attributes['playlist']) box.src += 'playlist/' + lastFmInABox.attributes['playlist'].value + '/shuffle'; else if (lastFmInABox.attributes['group']) box.src += 'group/' + lastFmInABox.attributes['group'].value; else if (lastFmInABox.attributes['user']) box.src += 'user/' + lastFmInABox.attributes['user'].value; box.src += '&imageonly=true'; lastFmInABox.appendChild(box); }