
(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/28/2012</td></tr><tr><th>Swim</th><td><a href=\"http://www.runningahead.com/logs/f660e49d92a040c18016f3abb9cfcb79/workouts/67d494ae68644999bde429d26de4a5c2\">800 yd</a></td></tr><tr><td colspan=\"2\">1/25/2012</td></tr><tr><th>Water Aerobics</th><td><a href=\"http://www.runningahead.com/logs/f660e49d92a040c18016f3abb9cfcb79/workouts/6ae8e1accf1e436586fbfd407cbe3f65\">45:00</a></td></tr><tr><td colspan=\"2\">1/23/2012</td></tr><tr><th>Water Aerobics</th><td><a href=\"http://www.runningahead.com/logs/f660e49d92a040c18016f3abb9cfcb79/workouts/e7fff59916174bf4857afb9511c92e1d\">45:00</a></td></tr><tr><td colspan=\"2\">1/21/2012</td></tr><tr><th>Swim</th><td><a href=\"http://www.runningahead.com/logs/f660e49d92a040c18016f3abb9cfcb79/workouts/cfe553329ce14045bd61bc6e49745f26\">800 yd</a></td></tr><tr><td colspan=\"2\">1/16/2012</td></tr><tr><th>Water Aerobics</th><td><a href=\"http://www.runningahead.com/logs/f660e49d92a040c18016f3abb9cfcb79/workouts/d1a66fe448e64255beb921876665126f\">45:00</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>";
}());
