	google.load("feeds", "1");

	// Our callback function, for when a feed is loaded.
	function feedLoaded(result) {
	  if (!result.error) {
		// Grab the container we will put the results into
		var container = document.getElementById("blog");
		container.innerHTML = '';

		// Loop through the feeds, putting the titles onto the page.
		// Check out the result object for a list of properties returned in each entry.
		// http://code.google.com/apis/ajaxfeeds/documentation/reference.html#JSON
		for (var i = 0; i < result.feed.entries.length; i++) {
		  var entry = result.feed.entries[i];
		  
		  var div = document.createElement("div");
		  div.className = "article";
		  
		  var h3 = document.createElement("h3");
		  h3.appendChild(document.createTextNode(entry.title));
		  div.appendChild(h3);
		  
		  var p = document.createElement("p");
		  p.appendChild(document.createTextNode(entry.contentSnippet.replace(/&#8217;/g,"'") + " [ "));
		  div.appendChild(p);
		  
		  var a = document.createElement("a");
		  a.href = entry.link;
		  a.appendChild(document.createTextNode("read more"));
		  p.appendChild(a);
		  
		  p.appendChild(document.createTextNode(" ]"));
		  
		  container.appendChild(div);
		}
	  }
	}
	
	
	function OnLoad() {
	  // Create a feed instance that will grab CHB's feed.
	  var feed = new google.feeds.Feed("http://feeds.feedburner.com/Childrenshospitalblog");
	  
	  feed.setNumEntries(2);
	  
	  // Calling load sends the request off.  It requires a callback function.
	  feed.load(feedLoaded);
	}

	google.setOnLoadCallback(OnLoad);

	   $(document).ready(function() {
			$(".fadeNext").click(function(){   
				$(this).next().fadeSliderToggle()
				 return false;
			})
			$(".tweet").tweet({
				username: "ChildrensBoston",
				join_text: "auto",
				avatar_size: 32,
				count: 5,
				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..."
			});
		});	
