var currX = null;
var startX = -100;
var timeOut =170;
var step = -1;

function initSky(){
	currX = startX;
	if ( (navigator.userAgent.match(/gecko/i)) || (navigator.userAgent.match(/opera/i)) || ( (!navigator.userAgent.match(/msie 5/i)) && (!navigator.userAgent.match(/msie 6/i)) ) ){
		window.setTimeout("moveSky()", timeOut, "JavaScript");
	}
}

function moveSky(){
    currX = parseInt(currX + step);
	document.getElementById('sky').style.background ='url("/_files/design/sky.jpg") #0087bf repeat-x '+currX + 'px';
	window.setTimeout("moveSky()", timeOut, "JavaScript");
}

window.onload=initSky;

