/*  Converts the recent islands cookie into an array of info-objects, each
    representing a recently visited island.  This array will be used to write
    the 'recently viewed' lightbox tab.
    
    Expects js/cookies.js to have been parsed. */
    
var hasRecent;
var recent = new Array();
var recentCookie = readCookie('recent');
if (recentCookie) {
	hasRecent = true;
	recentCookie = recentCookie.split('|||');
	for (i = 0; i < recentCookie.length; i++) {
		var recentIsland = recentCookie[i].split('||');
		recent[i] = {
			balloon:recentIsland[0],
			url:recentIsland[1],
			imgsrc:recentIsland[2],
			which:recentIsland[3]
		};
	}
} else {
	hasRecent = false;
}