I am going to purchase a router for a comp I want to get.

I see that there two types of wireless routers- N and G - What is the difference?
The machine I am looking for will run XP.
Thanks!