It's probably a dirty IAC or your IAC is relearning how to idle the car.
Whenever the battery is disconnected, the car needs to relearn how to idle the car.
My DD is an awesome automatic P5 with 183k miles, just barely broke in! The car has been great! I drive 62 miles each way to work 4 days a week and it's been a perfect commuter for a long time! Here's the backstory... I've been having a CEL code p0455 for awhile now. (Code is a common EVAP...
www.mazdas247.com
[/QUOT
I'd never disconnected the battery, i will try and clean the iac. If not then im screwed