
function rsslist(count) {
	    
	    google.load("feeds", "1");
	    
	    // Our callback function, for when a feed is loaded.
	    function feedLoaded(result) {
	      if (!result.error) {
	    	  var statusHTML = [];
	    
	        // Loop through the feeds, putting the titles with links onto the list.
	        for (var i = 0; i < result.feed.entries.length; i++) {
	        	statusHTML.push('<li><a href="'+result.feed.entries[i].link+'">'+result.feed.entries[i].title+'</a></li>');
	        }
	        document.getElementById('rss_update_list').innerHTML = statusHTML.join('');
	      }
	    }
	    
	    function OnLoad() {
	      var feed = new google.feeds.Feed("http://www.ablazedevelopment.com/rss/news_events.xml");
	    
	      // Calling load sends the request off.  It requires a callback function.
	      feed.setNumEntries(count);
	      feed.load(feedLoaded);
	    }
	    
	    google.setOnLoadCallback(OnLoad);
}

function rssall(count) {
    
    google.load("feeds", "1");
    
    // Our callback function, for when a feed is loaded.
    function feedLoaded(result) {
      if (!result.error) {
    	  var statusHTML = [];	// Short listing
    	  var contentHTML = [];	// Full Content
    	  
    	  //contentHTML.push('<p>'+result.feed.entries.length+'</p>');
    
        // Loop through the feeds, putting the titles with links onto the list and also
    	//	displaying the full content
        for (var i = 0; i < result.feed.entries.length; i++) {
        	var idx = result.feed.entries[i].link.search("#");
        	var anchor = result.feed.entries[i].link.substring(idx+1);
        	
        	contentHTML.push('<a name="'+anchor+'" id="'+anchor+'"></a><h2>'+result.feed.entries[i].title+'</h2><i>'+result.feed.entries[i].publishedDate+'</i><p>'+result.feed.entries[i].content+'</p>');
        	
        	if (i < count) statusHTML.push('<li><a href="'+result.feed.entries[i].link+'">'+result.feed.entries[i].title+'</a></li>');
        }
        
        document.getElementById('rss_update_content').innerHTML = contentHTML.join('');
        document.getElementById('rss_update_list').innerHTML = statusHTML.join('');
      }
    }
    
    function OnLoad() {
      var feed = new google.feeds.Feed("http://www.ablazedevelopment.com/rss/news_events.xml");
    
      // Calling load sends the request off.  It requires a callback function.
      // this brought back old changes -- feed.includeHistoricalEntries();
      feed.setNumEntries(50);			// requires a value in here - otherwise will return 4
      feed.load(feedLoaded);
    }
    
    google.setOnLoadCallback(OnLoad);
}
