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('I\'m here at the #<em>FSDNUG</em> - Time to talk about Databases for the Windows Phone SDK 7.1!','http://a3.twimg.com/profile_images/1262960982/2009-11-26_-_Chris_Koenig_Headshot__square_2in__normal.jpg','ChrisKoenig','http://twitter.com/ChrisKoenig','1/9/2012 5:36:08 PM','http://twitter.com/ChrisKoenig/statuses/156519657338183681'));
        ulTweets.appendChild(TIDYTWEETWIDGET_13.makeListItem('Finally made it to <em>Ft</em>. <em>Smith</em> for the #<em>FSDNUG</em> meeting tonight!  Can\'t wait!!!','http://a3.twimg.com/profile_images/1262960982/2009-11-26_-_Chris_Koenig_Headshot__square_2in__normal.jpg','ChrisKoenig','http://twitter.com/ChrisKoenig','1/9/2012 3:41:22 PM','http://twitter.com/ChrisKoenig/statuses/156490773100105728'));
        ulTweets.appendChild(TIDYTWEETWIDGET_13.makeListItem('RT @<a class=\" \" href=\"http://twitter.com/michael_johnson\">michael_johnson</a>: @<em>FSDNUG</em> Meeting Tonight - Chander Dhall @<a class=\" \" href=\"http://twitter.com/csdhall\">csdhall</a> - Enterprise development with MVC3','http://a0.twimg.com/profile_images/53755854/FSDNUG-Square_normal.jpg','fsdnug','http://twitter.com/fsdnug','11/14/2011 10:02:32 AM','http://twitter.com/fsdnug/statuses/136111784330412032'));
        ulTweets.appendChild(TIDYTWEETWIDGET_13.makeListItem('@<em>FSDNUG</em> Meeting Tonight - Chander Dhall @<a class=\" \" href=\"http://twitter.com/csdhall\">csdhall</a> - Enterprise development with MVC3','http://a1.twimg.com/profile_images/58899260/100_0253_normal.jpg','michael_johnson','http://twitter.com/michael_johnson','11/14/2011 10:00:14 AM','http://twitter.com/michael_johnson/statuses/136111205516443649'));
        ulTweets.appendChild(TIDYTWEETWIDGET_13.makeListItem('RT @<a class=\" \" href=\"http://twitter.com/joswalt\">joswalt</a>: RT @<a class=\" \" href=\"http://twitter.com/nwadnug\">nwadnug</a>: FYI, this month\'s meeting will be the 3rd Tues (Nov 15) so we can share a speaker (Chander Dhall) w/ <em>FSDNUG</em>. Pass along info.','http://a3.twimg.com/profile_images/187064615/engagementSmall_normal.jpg','possiblybob','http://twitter.com/possiblybob','11/3/2011 9:20:24 PM','http://twitter.com/possiblybob/statuses/132281008904081408'));
    },
    renderWidget: function() {
        TIDYTWEETWIDGET_13.renderTweets(widget_13);    }
};
if (TIDYTWEETWIDGET_13) {    TIDYTWEETWIDGET_13.init();    TIDYTWEETWIDGET_13.renderWidget();}

