﻿google.load("feeds", "1");
 
 function initializeFounderBlog() {
    
     
      var feedControl = new google.feeds.FeedControl();
      feedControl.setNumEntries(5);
      feedControl.setLinkTarget(google.feeds.LINK_TARGET_BLANK);
      feedControl.addFeed("http://travisfoote.com/blog/?feed=rss2", "Travis Foote's Blog");
      
      feedControl.draw(document.getElementById("TravisFoote"),
      {
        drawMode : google.feeds.FeedControl.DRAW_MODE_LINEAR
      });
      
      }
      
      google.setOnLoadCallback(initializeFounderBlog);
 
 /*
    function initialize() {
      var feed = new google.feeds.Feed("http://travisfoote.com/blog/?feed=rss2");
      feed.load(function(result) {
        if (!result.error) {
          var container = document.getElementById("TravisFoote");
          
          for (var i = 0; i < result.feed.entries.length; i++) {
            var entry = result.feed.entries[i];
            var attributes = ["title", "link", "publishedDate", "contentSnippet"];
            
    
                var divfeed = document.createElement("div");
                divfeed.setAttribute("id","TravisFoote-feed");
                
                var titleurl = document.createElement("a");
                titleurl.setAttribute("href",entry["link"]);
                titleurl.setAttribute("target","_blank");
                titleurl.setAttribute("class","feed_title");
                titleurl.appendChild(document.createTextNode(entry["title"]));
                
                divfeed.appendChild(titleurl);
                var divcontent = document.createElement("div");
                divcontent.setAttribute("class","feed_content");
                divcontent.appendChild(document.createTextNode(entry["contentSnippet"]));
                divfeed.appendChild(divcontent);
                
                container.appendChild(divfeed);
            
          }
        }
      });
    }
    google.setOnLoadCallback(initialize);*/
    