
(function()
{
    if (window.RAStyles !== true)
    {
        var link = document.createElement("link");
        link.setAttribute("href", "https://www.runningahead.com/styles/remote.css");
        link.setAttribute("rel", "stylesheet");
        link.setAttribute("type", "text/css");
        link.setAttribute("media", "all");
        document.getElementsByTagName("head")[0].appendChild(link);
        window.RAStyles = true;
    }
 
    var id = "ra_" + (new Date()).getTime();
    document.write("<span id=\"" + id + "\"></span>");
    var ctrl = document.getElementById(id);
    var div = ctrl.parentNode;
    if (div.tagName != "DIV" || div.className != "RAWidget")
    {
        var tmp = document.createElement("div");
        div.appendChild(tmp, ctrl);
        div.removeChild(ctrl);
        div = tmp;
        div.className = "RAWidget";
    }

    div.innerHTML = "<h3>Last workout:</h3><p><b>6/17/2013</b></p><h3>Run entry</h3><p id=\"m_summary\" class=\"RASummary\"><span class=\"RAPrimary\">2 mi</span></p><p class=\"RAMore\"><a href=\"https://www.runningahead.com/logs/4a544e2001d14c48a6631e236e1b5c9a/workouts/cf6c484b5adc4bc684ac07993eb793d7\">More...</a></p><hr /><table class=\"RARecords\">  <tr>    <th>Week:</th><td>0 mi</td>  </tr>  <tr>    <th>Month:</th><td>0 mi</td>  </tr>  <tr>    <th>Year:</th><td>0 mi</td>  </tr>  <tr>    <th>Total:</th><td>2572 mi</td>  </tr></table><div class=\"RAFooter\">  <a href=\"https://www.runningahead.com\" class=\"RALink\">RunningAHEAD</a>  <a href=\"https://www.runningahead.com\" class=\"RALink\">Running Log</a></div>";
}());