cation.pathname + "?id=" + r.id);
        }
        return item;
    }

    function listTracks(active, tracks) {
        $('#song-div').show();
        $('#song-list').empty();
        $('.sel-list').removeClass('activated');
        $(active).addClass('activated');
        for (var i = 0; i < tracks.length; i++) {
            var s = tracks[i];
            var item = listSong(s);
            if (item) {
                $('#song-list').append(listSong(s));
            }
        }
    }

    function listPo