$(function() {
	$('body').mousemove(function(event){
		
		$('#layer_1').stop(true,true);
		$('#layer_2').stop(true,true);
		$('#layer_3').stop(true,true);
		$('#sky').stop(true,true);

		var pageX = event.pageX;
		var width = $(window).width();
		var coorx1 = width/2-(width-1000)/2 +100*pageX/width - 50;
		$('#layer_1').animate({"left": coorx1},1000);
		var coorx2 = width/2-(width-1000)/2 +50*pageX/width - 25;
		$('#layer_2').animate({"left": coorx2},1000);
		var coorx3 = width/2-(width-1000)/2 +30*pageX/width - 15;
		$('#layer_3').animate({"left": coorx3},1000);
		var coorx4 = width/2-(width-1000)/2 +20*pageX/width - 10;
		$('#sky').animate({"left": coorx4},1000);
		
	});
});
