When the bars are gray, can you or can you not browse the web with the phone?
Also, the very next thing to do is to try restarting the WiFi router. See if that helps.
What are your WiFi router settings? b, g, n or all? Which channel? And which security do you use (WEP, WPA or WPA2)?