// Author: Mike De Smet

var body = null;
var cloudCount = 0;
var cloudDirection = 0;

function moveClouds()
{
	body.style.backgroundPosition = cloudCount++ * cloudDirection + 'px 0px';
	if (cloudCount > 10000) cloudCount = 0; // avoid overflow
	setTimeout(moveClouds,110);
	
}

Event.observe(window, 'load', function (){ body = $('body'); cloudDirection = Math.round(Math.random()) ? 1 : -1; moveClouds(); });


