Controling a latching relay

hello,
I have a tricky question I have been braking my head over for the last month.
Say I used the Pushbutton program (http://www.arduino.cc/en/Tutorial/Pushbutton) to control a latching relay/Impulse relay
When I push my pushbutton, the relay gets a pulse form the board and the latching relay gets turned on.
When I push the pushbutton again, the pulse turns the latching relay off.
Now if I would have 5 pushbuttons that control 5 latching relays. Would it be possible to ad a reset button that when I push it gives a pulse to the latching relays that are ON so they are turned OFF. Without effecting the latching relays that are already off?

And I know this makes everything more complex but would it be possible that the reset of the latching relays (turning all the latching relays off) is triggered when the board is reset?

I hope you understand my question/problem.
I thank you all in advance.

Now if I would have 5 pushbuttons that control 5 latching relays. Would it be possible to ad a reset button that when I push it gives a pulse to the latching relays that are ON so they are turned OFF. Without effecting the latching relays that are already off?

Yes. You turned the appropriate pins on, so you should be able to keep track of which are on. Turn off only the ones that are on.

On the other hand, turning off a pin that is off won't have any impact on the device that is connected to the off pin.

Latching relays typically need a pulse of current in one direction to move the contacts one direction, and a pulse in the other direction to move the contacts back. Easiest way to do that is to use an H-bridge as the required current is generally more than a 328P IO pin can drive.

CrossRoads:
Latching relays typically need a pulse of current in one direction to move the contacts one direction, and a pulse in the other direction to move the contacts back. Easiest way to do that is to use an H-bridge as the required current is generally more than a 328P IO pin can drive.

The latching relays aren't in direct contact with the board. the board controls regular relays who in their turn control latching relays.

Maybe I need to explain my situation better. I have a board with 20 pushbuttons and 20 (regular) relays. I've used the Switch program for every pushbutton/relay. The pushbuttons are my light switches and the relays power every light in my house. some light switches are connected to the boards reset. so I can turn every light in my house off. Now I've replaced some regular relays with latching relays that dim light. I changed the program of the ones I've changed from the Switch program to the Pushbutton program. It works I can turn them on and off but my reset has no longer control over the latching ones how do i make a reset that gives a pulse to those that are on to turn them off?