
(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\">5/3/2011</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/3c57ace093f64f5eaa6e68351fed8486/workouts/72f2340e66f74daaa68eae85348f2d44\">3 mi</a></td></tr><tr><td colspan=\"2\">5/1/2011</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/3c57ace093f64f5eaa6e68351fed8486/workouts/0769bd4c4f0345e0b103e89bc82ac019\">10 mi</a></td></tr><tr><td colspan=\"2\">4/26/2011</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/3c57ace093f64f5eaa6e68351fed8486/workouts/d7e9b48c3280475f9a2037b21799f270\">5 mi</a></td></tr><tr><td colspan=\"2\">4/19/2011</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/3c57ace093f64f5eaa6e68351fed8486/workouts/a622297d1f7c44b58ec7109ceb77db76\">3 mi</a></td></tr><tr><td colspan=\"2\">4/17/2011</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/3c57ace093f64f5eaa6e68351fed8486/workouts/18cb339f449a421795671a7dba347da9\">7 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>";
}());
