
(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\">8/12/2010</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/19e9efc3df644e35841097ffea91649e/workouts/a20d633e9d68427e9a6419b7a6eafd64\">4 mi</a></td></tr><tr><td colspan=\"2\">8/10/2010</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/19e9efc3df644e35841097ffea91649e/workouts/5c06d04eb43d472786b7e3b6175f4efa\">4.41 mi</a></td></tr><tr><td colspan=\"2\">8/9/2010</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/19e9efc3df644e35841097ffea91649e/workouts/b57243813b3548239a1d412c6272d264\">5.5 mi</a></td></tr><tr><td colspan=\"2\">8/2/2010</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/19e9efc3df644e35841097ffea91649e/workouts/52e65e1aff3d476a86503636a4e2c76f\">2.93 mi</a></td></tr><tr><td colspan=\"2\">7/23/2010</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/19e9efc3df644e35841097ffea91649e/workouts/dae30b1bf74643b5b42b4d1d04e6900c\">3.95 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>";
}());
