
(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\">2/5/2012</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/04e3c4bfbc5e4ae0867108aea2a97b8a/workouts/afeed2f318e544a99d07eadd69cc1a9c\">3.07 mi</a></td></tr><tr><td colspan=\"2\">2/4/2012</td></tr><tr><th>Bike</th><td><a href=\"http://www.runningahead.com/logs/04e3c4bfbc5e4ae0867108aea2a97b8a/workouts/29a3aeda82434d62bb1ff8d20da4e07d\">20:00</a></td></tr><tr><td colspan=\"2\">2/3/2012</td></tr><tr><th>Run</th><td><a href=\"http://www.runningahead.com/logs/04e3c4bfbc5e4ae0867108aea2a97b8a/workouts/82b98e71ff77492e80bb66aad6378794\">2 mi</a></td></tr><tr><th>Weights</th><td><a href=\"http://www.runningahead.com/logs/04e3c4bfbc5e4ae0867108aea2a97b8a/workouts/095507adfba64e91beed39ecd329b511\"> </a></td></tr><tr><td colspan=\"2\">1/31/2012</td></tr><tr><th>Weights</th><td><a href=\"http://www.runningahead.com/logs/04e3c4bfbc5e4ae0867108aea2a97b8a/workouts/6425d0bc1e04430f8343219f21896b24\"> </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>";
}());
