Don't know if this is necessarily the "correct" answer, but I had a similar problem with my wife's 21.5" iMac. Whenever it came out of sleep it wouldn't re-connect to my wireless network. Actually, it said it was connected but everything would time out. I'd have to stop, then re-start the wireless connection to get it to work. I ended up putting in a static IP and it works everytime now.