Same thing happen to me, pics started to go funny every now and again then all of the sudden the camera stopped working and the little green light started to flash all the time, Nikon know of a fault with the camera what is called the green light of death (GLOD) and yes it is as bad as it sounds, cost me £180 to get fixed
Have a look here http://textblog.anands.net/archives/5