//config
var tweenDuration=15;
var bgColorsList=['#c7e1ef','#cdd5eb','#ebd0de','#fee1b5'];

//loop
var cBgColor=0;
function shiftBg() {
	new Effect.Morph(document.body, {
		style: { backgroundColor: bgColorsList[cBgColor] },
		fps: 20,
		transition: Effect.Transitions.sinoidal,
		duration: tweenDuration,
		afterFinish: function() {shiftBg();}
	});
	cBgColor=((cBgColor+1)>=bgColorsList.length) ? 0 : (cBgColor+1);
}
Event.observe(window,'load',function(){bgColorsList.push($(document.body).getStyle('backgroundColor'));shiftBg();});