var widget_13 = document.getElementById('twitter_div_13');
if (widget_13 == null) widget_13 = document.getElementById('twitter_div');
var TIDYTWEETWIDGET_13 = {    addStylesheet: function(path) {
        var head = document.getElementsByTagName('head')[0];
        var link = document.createElement('link');
        link.setAttribute('href', path);
        link.setAttribute('type', 'text/css');
        link.setAttribute('rel', 'stylesheet');
        head.insertBefore(link,head.childNodes[0]);
    },
    setClass: function(e, cssClass) {
        e.className = cssClass;
    },
    makeLink: function(text, navigateUrl, tooltip, target) {
        var a = document.createElement('a');
        a.setAttribute('href', navigateUrl);
        a.id = 'twitter-link';
        if (tooltip != '') {
            a.setAttribute('title', tooltip);
        }
        a.setAttribute('target', target);
        a.innerHTML = text;
        return a;
    },
    makeListItem: function(text,authorImgPath,screenName,authorURL,createDate,tweetURL) {
        var li = document.createElement('li');
        li.innerHTML = '';
        li.innerHTML +=  text + '<div class=\'by\'><a href=\'' + authorURL + '\' target=\'_blank\'>@' + screenName + '</a> at <a href=\'' + tweetURL + '\' target=\'_blank\'>' + createDate + '</a>' ;
        return li;
    },
    makeEmptyListItem: function() {
        var li = document.createElement('li');
        li.innerHTML = 'No tweets to display';
        return li;
    },
    init: function() {
        TIDYTWEETWIDGET_13.addStylesheet(document.location.protocol + '//fsdnug.tidytweet.com/_resources/Styles/widget.css');
    },
    renderTweets: function(widget) {
        var ulTweets = document.getElementById('twitter_update_list');

      if (ulTweets == null) ulTweets = document.getElementById('twitter_update_list_13');
        ulTweets.innerHTML = '';

        ulTweets.innerHTML = '';
        ulTweets.appendChild(TIDYTWEETWIDGET_13.makeListItem('<a href=\"http://twitter.com/toddanglin\">@toddanglin</a> that was an awesome HTML5 presentation at <a href=\"http://twitter.com/fsdnug\">@<b>fsdnug</b></a>','http://a1.twimg.com/profile_images/58899260/100_0253_normal.jpg','michael_johnson','http://twitter.com/michael_johnson','7/12/2010 8:52:25 PM','http://twitter.com/michael_johnson/statuses/18400202336'));
        ulTweets.appendChild(TIDYTWEETWIDGET_13.makeListItem('RT <a href=\"http://twitter.com/toddanglin\">@toddanglin</a>: If you\'re in NW AR, join me! RT <a href=\"http://twitter.com/fsdnug\">@<b>fsdnug</b></a>: Tonight - <a href=\"http://twitter.com/toddanglin\">@toddanglin</a> - The Rich Standard: Getting Familiar w/ HTML 5 <a href=\"http://fsdnug.org/\">http://<b>fsdnug</b>.org/</a>','http://a3.twimg.com/profile_images/415279957/twitterProfilePhoto_normal.jpg','csharpzealot','http://twitter.com/csharpzealot','7/12/2010 5:28:33 PM','http://twitter.com/csharpzealot/statuses/18386901417'));
        ulTweets.appendChild(TIDYTWEETWIDGET_13.makeListItem('If you\'re in NW AR, join me! RT <a href=\"http://twitter.com/fsdnug\">@<b>fsdnug</b></a>: Tonight - <a href=\"http://twitter.com/toddanglin\">@toddanglin</a> - The Rich Standard: Getting Familiar w/ HTML 5 <a href=\"http://fsdnug.org/\">http://<b>fsdnug</b>.org/</a>','http://a3.twimg.com/profile_images/1039364603/ToddAnglin-BioPic-150_normal.jpg','toddanglin','http://twitter.com/toddanglin','7/12/2010 5:27:01 PM','http://twitter.com/toddanglin/statuses/18386806985'));
        ulTweets.appendChild(TIDYTWEETWIDGET_13.makeListItem('<b>FSDNUG</b> Meeting Tonight - Todd Anglin <a href=\"http://twitter.com/toddanglin\">@toddanglin</a> - The Rich Standard: Getting Familiar with HTML 5 <a href=\"http://fsdnug.org/\">http://<b>fsdnug</b>.org/</a>','http://a1.twimg.com/profile_images/53755854/FSDNUG-Square_normal.jpg','fsdnug','http://twitter.com/fsdnug','7/12/2010 1:11:50 PM','http://twitter.com/fsdnug/statuses/18372511560'));
        ulTweets.appendChild(TIDYTWEETWIDGET_13.makeListItem('<b>FSDNUG</b> Meeting Tonight - Todd Anglin <a href=\"http://twitter.com/toddanglin\">@toddanglin</a> - The Rich Standard: Getting Familiar with HTML 5 <a href=\"http://fsdnug.org/\">http://<b>fsdnug</b>.org/</a>','http://a1.twimg.com/profile_images/58899260/100_0253_normal.jpg','michael_johnson','http://twitter.com/michael_johnson','7/12/2010 1:09:41 PM','http://twitter.com/michael_johnson/statuses/18372383549'));
    },
    renderWidget: function() {
        TIDYTWEETWIDGET_13.renderTweets(widget_13);    }
};
if (TIDYTWEETWIDGET_13) {    TIDYTWEETWIDGET_13.init();    TIDYTWEETWIDGET_13.renderWidget();}
