delay = max_delay;
spd = 6;
switch(state)
{
	case "wait_down":
		state = "move_up";
		break;

	case "wait_up":
		state = "move_down";
		break;

	case "move_down":
		state = "move_up";
		break;

	case "move_up":
		state = "move_down";
		break;
}