Bug 25063 part 2: changing "n" to "id" for frame switching