// This does the shuffle magic
function shuffle(a) {
   var i = a.length;
   if ( i == 0 ) return false;
   while ( --i ) {
      var j = Math.floor( Math.random() * ( i + 1 ) );
      var tempi = a[i];
      var tempj = a[j];
      a[i] = tempj;
      a[j] = tempi;
   }
}

function LoadSlideShow() {
	var feed  = "http://picasaweb.google.com/data/feed/api/user/woudlopers.kipling?alt=rss&kind=photo&access=public&psc=F&q&uname=woudlopers.kipling";
	var options = {displayTime:4000, transistionTime:600, scaleImages:true,
		//When the feed gets processed, shuffle the entries
		feedProcessedCallback: function() {
			var e = ss.entries; shuffle(e); ss.entries = e;
		}
	};
	var ss = new GFslideShow(feed, "slideShow", options);
}

/**
 * Use google.load() to load the AJAX Feeds API
 * Use google.setOnLoadCallback() to call LoadSlideShow once the page loads
*/
google.load("feeds", "1");
google.setOnLoadCallback(LoadSlideShow);

