
(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\">9/11/2010</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/8206e88b36c74153a75704c4ffb896c0/workouts/9908c58616fd48408da5a7d97065a9bd\">16.59 mi</a></td></tr><tr><td colspan=\"2\">9/9/2010</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/8206e88b36c74153a75704c4ffb896c0/workouts/521d695457f649ff8ebd71b9a9c8015c\">6.22 mi</a></td></tr><tr><td colspan=\"2\">9/7/2010</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/8206e88b36c74153a75704c4ffb896c0/workouts/0e69fcd7b01c4527988cf5ae425aacfe\">7.95 mi</a></td></tr><tr><td colspan=\"2\">9/4/2010</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/8206e88b36c74153a75704c4ffb896c0/workouts/88fad6fb64844c1191355981704eecc9\">14.14 mi</a></td></tr><tr><td colspan=\"2\">9/2/2010</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/8206e88b36c74153a75704c4ffb896c0/workouts/7202949f50c14b6aa3bc59bae2d35e99\">10.37 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>";
}());
