 false);

			var button = document.getElementById('grid');
			button.addEventListener('click', function (event) {
				transform(targets.grid, 2000);
			}, false);

			transform(targets.table, 2000);

			//

			window.addEventListener('resize', onWindowResize, false);

		}

		function transform(targets, duration) {

			TWEEN.removeAll();

			for (var i = 0; i < objects.length; i++) {

				var object = objects[i];
				var target = targets[i];

				new TWEEN.Tween(object.position)
					.to({ x: target.position