function get_tour_dates(songkick) 
{

    $.ajax({
        url: songkick,
        type: "GET",
        dataType: 'json',
        success: function (data) {

            var gigs = data.resultsPage.results.event;

            if ( gigs == undefined )
            {
                var no_dates = '<div class="timeline-left"><a href="#timeline" class="timeline-icon icon-lg tooltip" data-tooltip="No dates available"></a></div>'
                               + '<div class="timeline-content"><div class="tile"><div class="tile-content"><p class="tile-title"> No Current Tour Dates Available.'
                               + '</p></div></div></div>';

                $("#tour-date-timeline").append(no_dates);
            }
            else
            {
                for (var x = 0; x < gigs.length; x++) {

                    var start_date = new Date( gigs[x].start.datetime.toString('dd-MM-yy') ).toLocaleDateString("en-GB");

                    var tour_date = '<div class="timeline-item" id="timeline"><div class="timeline-left"><a href="#timeline" class="timeline-icon icon-lg tooltip" data-tooltip="'
                                    +  start_date
                                    + '"></a></div><div class="timeline-content"><div class="tile"><div class="tile-content">'
                                    + '<p class="tile-subtitle">'
                                    + start_date
                                    + '</p><p class="tile-title">'
                                    + gigs[x].displayName
                                    + '</p><p class="tile-title">'
                                    + gigs[x].type
                                    + '</p><p class="tile-title"><a href="'
                                    + gigs[x].venue.uri
                                    + '">'
                                    + gigs[x].venue.displayName
                                    + '</a> | '
                                    + gigs[x].location.city
                                    + '</p></div><div class="tile-action"><a href="'
                                    + gigs[x].uri
                                    + '" class="btn">Book Tickets</a></div></div></div></div>';

                    $("#tour-date-timeline").append(tour_date);
                }
            }
        }
    });
}