//This script moving clouds. Real Magic!!!

var ival = null;
var currX = null;
var endX = null;
var startX = null;
var timeOut = 70;
var step = 1;

function startCloud(firstX){
	var main = document.all.cloudpic;
	startX = firstX;
	endX = parseInt(document.body.clientWidth + main.width);
	if(currX === null){currX = startX};
	ival = window.setTimeout("moveCloud()", timeOut, "JavaScript");
}

function moveCloud(){
	var main = document.all.cloudpic;
  currX = parseInt(currX + step);
	if(currX < endX){
		main.style.left = currX + 'px';
		ival = window.setTimeout("moveCloud()", timeOut, "JavaScript");
	}
	else{
		currX = null;
		startCloud(-602);
	}
}
