
(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 = "<p>Last workout:</p><p><b>2/4/2012</b></p><h3>Run entry</h3><p id=\"m_summary\" class=\"RASummary\"><span class=\"RAPrimary\">15 mi</span><br/><span>1:55:04 (7:41 / mi)</span></p><p id=\"m_notes\" class=\"RANotes\">Excellent 15-miler with no stops.  Warm - low 60\'s.  Nice course around Napa with pretty decent elev</p><p class=\"RAMore\"><a href=\"http://www.runningahead.com/logs/79d785df5191451f8b9a4629b8f8d72b/workouts/fc174b733b3540738b983a5e7bef616a\">More...</a></p><hr /><table class=\"RARecords\">  <tr>    <th>Week:</th><td>0 mi</td>  </tr>  <tr>    <th>Month:</th><td>34 mi</td>  </tr>  <tr>    <th>Year:</th><td>178 mi</td>  </tr>  <tr>    <th>Total:</th><td>5772 mi</td>  </tr></table><div class=\"RAFooter\">  <a href=\"http://www.runningahead.com\">RunningAHEAD</a>  <a href=\"http://www.runningahead.com\">Running Log</a></div>";
}());
