
(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/25/2012</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/2f969e5d9f2e4618917cd3680dacc688/workouts/73ef35111b3a49838d37de8c029ccfed\">3.34 mi</a></td></tr><tr><td colspan=\"2\">1/24/2012</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/2f969e5d9f2e4618917cd3680dacc688/workouts/021a099a49334e9c8290070e708c6969\">3 mi</a></td></tr><tr><td colspan=\"2\">1/22/2012</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/2f969e5d9f2e4618917cd3680dacc688/workouts/63216a0fb41c492783a9db10eb6843d3\">12.05 mi</a></td></tr><tr><td colspan=\"2\">1/19/2012</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/2f969e5d9f2e4618917cd3680dacc688/workouts/cfa44766564b47d4a6e5164bcddc5442\">3 mi</a></td></tr><tr><td colspan=\"2\">1/18/2012</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/2f969e5d9f2e4618917cd3680dacc688/workouts/303d7256f88249f8845f02bf6822033a\">5 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>";
}());
