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

function OnLoad() {
	
	// The magic lines that does full sized images. NO IDEA how it works :/
	
	function GetURLFullSize(entry) {  
	  var content = entry.content;
	  var start = content.indexOf("<img src=")+10;
	  var stop = content.indexOf(".jpg",start)+4;
	  var thumburl = content.substring(start,stop);  
	  return(thumburl);  
	}

  var flickr  = "http://pipes.yahoo.com/pipes/pipe.run?_id=xABVu3f83BGSTB54iXrL0A&_render=rss";
  var ffffound  = "http://pipes.yahoo.com/pipes/pipe.run?_id=0AXRp2f83BGQ35uu8ivLAg&_render=rss";
  var options = {
    displayTime:8000,
    transistionTime:300,
    fullControlPanel : true,
    fullControlPanelSmallIcons : true,
    scaleImages : false,
    maintainAspectRatio : false,
	linkTarget : google.feeds.LINK_TARGET_BLANK,
	thumbnailUrlResolver : GetURLFullSize
	
  };
  var ss = new GFslideShow(flickr, "flickr_div", options);
  var nss = new GFslideShow(ffffound, "ffffound_div", options);
}


google.setOnLoadCallback(OnLoad);