You're right, you want a relay. If you use one with SPDT contacts, your output will have a common contact, a normally open contact, and a normally closed contact, like in the diagram you linked to. One of these contacts will close DURING the delay, and one will close AFTER the delay, so you...