To plug that solenoid of Mark's into your dangly thing, you'd need this:

http://www.ebay.com/itm/12V-Volt-DC-0-5A...=item4861ad9766