Dry it thoroughly then disassemble and clean all electronics parts with PURE alcohol or cleaning benzine and Q-Tips. Don't be too shy with the liquid, esp if it was Sea/Saltwater.
I had similar probs with my N95 and this cured it.
The only thing you can do is to re-flash both images and start from scratch, maybe the OS has been corrupted because of electrical short and untill you do a re-flash you cannot realise if permanent damage has occured.
Done that, now. But only using Ovi Suite 3. Will probably try again with a full flash.
Oh, and just as I did last time - cause apparently I don't learn from mistakes - I forgot that the backup of applications isn't done by the backup function in Ovi Suite. My previous backup using the backup application on the N900 was from May. Yay.
Open it. Clean it. Put it in a jar of rice for 3 days.
I will open it a third time when I get time, and see if I find anything to clean up. But there's nothing left to dry up any more. Also, it's been said that the rice is a myth.