i bet its a bad a starter sounds like the same shit that happened to my 7, sometimes just clicks and doesn't work but if you get lucky it works.
if its giving u shit try hitting it with a hammer it'll work for a while if ur starter isn't too fucked up.
in the corolla i did the starter too, for some reason after i did the tranny swap it didn't want to start, took my starter to advanced auto and it worked but didn't work in my car, the only reason i can figure it worked was b/c at the station in the store they have a slightly higher voltage/current which worked fine as to compared to the old 15 yr wires in the car, got a new starter and it works like a dream.
starters are wierd, i'd just replace it.