ate){
				if(keys["left"]) //Move claw left
					left -= hspd;

				if(keys["right"]) // Move claw right
					left += hspd;

				if(keys["down"]){ // Drop claw.
					state = 'down';
					$('#'+id+' #crane-claw').css(frames['open']);
				}
			}else{
				Grab();
			}

			CheckBoundaries();
		};

		this.Repaint = function () {
			$('#'+id).css({'top':top, 'left':left});
			$('#'+id+' #crane-handle-top').css({height: handleHeight});
		};
	}</script>
	<!-- main.js --><script>
	var crane = new Crane('crane');
	va