private boolean isBetween(int id, int x, int y) {
		int between = y - x;
		if (between > 0) {
			if ((id > x) && (id <= y)) {
				return true;
			}
		} else if (between < 0) {
			if ((id > x) || (id <= y)) {
				return true;
			}
		}
		return false;
	}