Connect the iMac to the router via eathernet cable and update software (System preferences). This airport problem is a bug of snow leopard but it looks like they fixed it quickly.
I've had the same problem on two new iMacs few minutes ago (two daughters = two iMacs) and after the update I...