/**Rotates the images, and calls the js "full screen image" to do its duty**/var imgs = [["enhanced-sunspots-after-galileo-I.jpg", '#4d4c4c'],			   ["peacock-blue.jpg",'#ffffff'],			   ["describing-10402-days-of-dairyness.jpg",'#ffffff'],			   ["large-regional-still-life-4.jpg",'#4d4c4c'],			   ["describing-10402-days-of-dairyness-2.jpg",'#ffffff'],			   ["bifolium-8.jpg",'#ffffff'],			   ["wyoma-and-her-three-friends.jpg", '#4d4c4c'],			   ["sand-dollar.jpg", '#ffffff'],			   ["slumber-the-nights.jpg", '#ffffff']];function getNextImage() {	var index = undefined;	var cookies = document.cookie.split(";");	for (var i=0; i<cookies.length; i++) {		var parts = cookies[i].split("="),			key = parts[0].replace(/^\s+|\s+$/, ""),			value = (parts[1] || "").replace(/^\s+|\s+$/, "");		if (key == "imageIndex") {			index = parseInt(value);			break;		}	}		if (undefined == index || isNaN(index)) {		index = -1;	}		index++;		if (index > imgs.length - 1) {		index = 0;	}		document.cookie = "imageIndex=" + index;	return imgs[index];}window.onload = function() {	var selection = getNextImage();	FullScreenImage(rootVirtual + "/public/img/front-page/" + selection[0]);	document.body.style.color = selection[1];};
