
(function()
{
    if (window.RAStyles !== true)
    {
        var link = document.createElement("link");
        link.setAttribute("href", "http://www.runningahead.com/themes/default/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 = "<p>Last workout:</p><p><b>01-02-2012</b></p><h3>Run entry</h3><p id=\"m_summary\" class=\"RASummary\"><span class=\"RAPrimary\">11 km</span><br/><span>51:56.89 (4:47 / km)</span></p><p id=\"m_notes\" class=\"RANotes\">Eish. Started too fast, but as I got to the flats, I didn\'t have the pace. Hills were near impossibl</p><p class=\"RAMore\"><a href=\"http://www.runningahead.com/logs/08c6b98a66e84be9848f9fb0c2981e21/workouts/a8cd3faa1e454c768be7c2071f5b1080\">More...</a></p><hr /><table class=\"RARecords\">  <tr>    <th>Week:</th><td>23 km</td>  </tr>  <tr>    <th>Month:</th><td>11 km</td>  </tr>  <tr>    <th>Year:</th><td>408 km</td>  </tr>  <tr>    <th>Total:</th><td>12372 km</td>  </tr></table><div class=\"RAFooter\">  <a href=\"http://www.runningahead.com\">RunningAHEAD</a>  <a href=\"http://www.runningahead.com\">Running Log</a></div>";
}());
