function homePageRSS()
{getRSS('http://ws.audioscrobbler.com/1.0/user/Loki128/recenttracks.rss',3,lastSongsPlayed,false);getRSS('http://blog.lokizilla.net/feed/',1,lastBlogPosts,true);}
function activityPageRSS()
{getRSS('http://ws.audioscrobbler.com/1.0/user/Loki128/recenttracks.rss',5,lastSongsPlayed,false);getRSS('http://blog.lokizilla.net/feed/',3,lastBlogPosts,true);getRSS('http://blip.fm/feed/lokizilla',5,lastBlips,true);getRSS('https://gdata.youtube.com/feeds/api/users/loki128/uploads?orderby=updated&alt=rss&client=ytapi-youtube-rss-redirect&v=2',3,lastYoutubeUploads,true);getRSS('https://gdata.youtube.com/feeds/api/users/loki128/favorites?v=2',5,lastYoutubeFavourites,true)}
function getRSS(URL,amountToGet,destinationElement,showContent)
{"use strict";var rssOutput="",theFeeds="",feed="",result="",i=0;feed=new google.feeds.Feed(URL);feed.setNumEntries(amountToGet);feed.load(function(result)
{if(!result.error)
{theFeeds=result.feed.entries;for(i=0;i<theFeeds.length;i=i+ 1)
{if(showContent==true){rssOutput+="<p><a href='"+ theFeeds[i].link+"'>"+ theFeeds[i].title+"</a><br />"+ theFeeds[i].content+"</p>";}
else{rssOutput+="<p><a href='"+ theFeeds[i].contentSnippet+"'>"+ theFeeds[i].title+"</a></p>"}
destinationElement.innerHTML=rssOutput;}}
else{console.log("Error fetching "+ URL)}});}
