
(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 = "<h3>Latest workouts</h3><table class=\"RARecords\"><tr><td colspan=\"2\">1/14/2012</td></tr><tr><th>Bike</th><td><a href=\"http://www.runningahead.com/logs/35e04446ad824f0a9881aace2957a196/workouts/6a0abce55a0342dda94fba55d3323ea8\">3.23 mi</a></td></tr><tr><td colspan=\"2\">1/5/2012</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/35e04446ad824f0a9881aace2957a196/workouts/e3c5d6d8f6924e2bbf33457c063eea3b\">3 mi</a></td></tr><tr><td colspan=\"2\">12/29/2011</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/35e04446ad824f0a9881aace2957a196/workouts/94dbd4722c434828afe8765fcc89b532\">2.01 mi</a></td></tr><tr><td colspan=\"2\">12/27/2011</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/35e04446ad824f0a9881aace2957a196/workouts/1ae1e05e753f47dd99e1486b608f40b9\">2.05 mi</a></td></tr><tr><td colspan=\"2\">10/29/2011</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/35e04446ad824f0a9881aace2957a196/workouts/602627c129f14094b70815aab3259375\">4.15 mi</a></td></tr></table><div class=\"RAFooter\">  <a href=\"http://www.runningahead.com\">RunningAHEAD</a>  <a href=\"http://www.runningahead.com\">Running Log</a></div>";
}());
