could be a bad distributor... the timing is advanced when you first start the car and then retards after it is warmed up. if it is not producing spark when the timing retards it may very well be the distributor.
it could also be your idle air control valve or even your ecu, but i'd start at the distributor and go from there.
"the feeling's mutual"
- Frank Drebin