Car won't turn over?!? help? (pic added)

Well, this is kind of an odd situation, because the car was dying a lot on me of late. Today, I just decided to check the timing, I thought maybe the distributor was loose and and the timing was all out of whack. but when I tried to start the car, all I heard was a "click". that was it. I think the click is coming from the starter?? but it won't turn over.

I figured the timing was out of whack because the last few times I tried to start it after it died, it was turning over hard. I had to fight just to keep it running and into the garage. Surprisingly I made it into the garage instead of dead on the road. The lights work and everything too.

Any diagnosis ideas?

Thanks!