initEvents.push( function()
{
    var clouds = new Array( $( "cloudsImg" ), $( "cloudsImg2" ) );

    var currentCloud = 0;
    var otherCloud = 1;

    clouds[otherCloud].style.visibility = "hidden";
    clouds[otherCloud].style.top = "-129px";
    

    clouds[currentCloud].xValue = -905;
    
    function moveClouds()
    {
        clouds[currentCloud].xValue += 1;
	clouds[currentCloud].style.left = clouds[currentCloud].xValue + "px";

	if (clouds[currentCloud].xValue == 0)
	{
            clouds[otherCloud].xValue = -1681;
            clouds[otherCloud].style.left = clouds[otherCloud].xValue + "px";
	}
	else if (clouds[currentCloud].xValue > 0 && clouds[currentCloud].xValue < 776)
	{
            clouds[otherCloud].xValue += 1;
            clouds[otherCloud].style.left = clouds[otherCloud].xValue + "px";
	}
	else if (clouds[currentCloud].xValue == 776)
	{
	    clouds[otherCloud].style.visibility = "visible";
	    var temp     = currentCloud;
            currentCloud = otherCloud;
	    otherCloud   = temp;

	    clouds[currentCloud].xValue += 1;
	    clouds[currentCloud].style.left = clouds[currentCloud].xValue + "px";
	    clouds[otherCloud].xValue += 1;
            clouds[otherCloud].style.left = clouds[otherCloud].xValue + "px";
	}
    }

    setInterval( moveClouds, 50 );
}
);
