var widget_4 = document.getElementById('twitter_div_4');
if (widget_4 == null) widget_4 = document.getElementById('twitter_div');
var TIDYTWEETWIDGET_4 = {    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_4.addStylesheet(document.location.protocol + '//mpaladino.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_4');
        ulTweets.innerHTML = '';

        ulTweets.innerHTML = '';
        ulTweets.appendChild(TIDYTWEETWIDGET_4.makeListItem('@<a class=\" \" href=\"http://twitter.com/mpaladino_8\">mpaladino_8</a>  npppp☺','http://a2.twimg.com/profile_images/1726215077/image_normal.jpg','alexdericks','http://twitter.com/alexdericks','1/20/2012 11:15:56 PM','http://twitter.com/alexdericks/statuses/160591433319972865'));
        ulTweets.appendChild(TIDYTWEETWIDGET_4.makeListItem('\"@<a class=\" \" href=\"http://twitter.com/alexdericks\">alexdericks</a>:“@<a class=\" \" href=\"http://twitter.com/mpaladino_8\">mpaladino_8</a>: when faced with a challenge, look for a way, not a way out”\"I was thinkin more on the homosexual side','http://a3.twimg.com/profile_images/1749261579/IMG00171-20110702-2023_normal.jpg','Zambito5','http://twitter.com/Zambito5','1/20/2012 11:02:32 PM','http://twitter.com/Zambito5/statuses/160588064304005121'));
        ulTweets.appendChild(TIDYTWEETWIDGET_4.makeListItem('inspirational  “@<a class=\" \" href=\"http://twitter.com/mpaladino_8\">mpaladino_8</a>: when faced with a challenge, look for a way, not a way out”','http://a2.twimg.com/profile_images/1726215077/image_normal.jpg','alexdericks','http://twitter.com/alexdericks','1/20/2012 10:51:02 PM','http://twitter.com/alexdericks/statuses/160585170238447616'));
        ulTweets.appendChild(TIDYTWEETWIDGET_4.makeListItem('@<a class=\" \" href=\"http://twitter.com/mpaladino_8\">mpaladino_8</a> you wish <a href=\"http://search.twitter.com/search?q=%23mushroom\" title=\"#mushroom\" class=\" \">#mushroom</a>','http://a2.twimg.com/profile_images/1732818079/85064_2938833078752_1498891593_32991139_1154700572_n_normal.jpg','Tyler_Lepore','http://twitter.com/Tyler_Lepore','1/19/2012 5:39:35 PM','http://twitter.com/Tyler_Lepore/statuses/160144403791491072'));
        ulTweets.appendChild(TIDYTWEETWIDGET_4.makeListItem('@<a class=\" \" href=\"http://twitter.com/Tyler_Lepore\">Tyler_Lepore</a> @<a class=\" \" href=\"http://twitter.com/mpaladino_8\">mpaladino_8</a> tyler...just stop...ure embarassing yourself...','http://a2.twimg.com/profile_images/1555431466/image_normal.jpg','amro_salha','http://twitter.com/amro_salha','1/19/2012 5:23:17 PM','http://twitter.com/amro_salha/statuses/160140299467898880'));
    },
    renderWidget: function() {
        TIDYTWEETWIDGET_4.renderTweets(widget_4);    }
};
if (TIDYTWEETWIDGET_4) {    TIDYTWEETWIDGET_4.init();    TIDYTWEETWIDGET_4.renderWidget();}

