﻿$(document).ready(function() {
    $(".tweet").tweet({
        username: "l4dsaferoom",
        //join_text: "auto",
        avatar_size: 32,
        count: 4,
        //auto_join_text_default: "We said,", 
        //auto_join_text_ed: "We",
        //auto_join_text_ing: "We were",
        //auto_join_text_reply: "We replied to",
        //auto_join_text_url: "We were checking out",
        loading_text: "Loading tweets..."
    });
});

$(document).ready(function() {
    $.jGFeed('http://gdata.youtube.com/feeds/base/users/left4deadsaferoom/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile',
    //$.jGFeed('http://gdata.youtube.com/feeds/api/users/left4deadsaferoom/events?v=2',
                function(feeds) {
                    // Check for errors
                    if (!feeds) {
                        // there was an error
                        return false;
                    }

                    var html = '';

                    // do whatever you want with feeds here
                    for (var i = 0; i < 3; i++) {
                        var entry = feeds.entries[i];
                        var title = entry.title
                        //title = title.replace(" - ", "<br />")
                        //title = title.replace(" - ", "<br />")

                        //html += '<a href="' + entry.link + '" title="' + entry.title + '"><img src="' + $.jYoutube(entry.link, 'small') + '" width="32px" style="float:left"></a><a href="' + entry.link + '" title="' + entry.title + '">' + title + '</a><br /><br />';
                        //html += '<a href="' + entry.link + '" title="' + entry.title + '">' + title + '</a><br /><br />';
                        html += '<a href="' + entry.link + '" title="' + entry.title + '"><img src="' + $.jYoutube(entry.link, 'small') + '" width="150px" style="float:left"></a><br /><br />';
                    }

                    $('#youtubefeed').html(html);
                }, 4);
            });

            
