http://www.invention.com/midgley.htm
There's much more info and pics at the link.
As attorney for the inventor of the innovative Behavior Modification Device For Handguns we are currently seeking manufacturing companies to license, purchase patent rights or enter into a royalty agreement for this timely invention.
The present invention will use negative reinforcement to teach gun safety by supplying an electrical charge to a gun frame to apply a mild shock to anyone that picks it up from a horizontal position. The device will remain dormant when lying on it's side until the gun is moved whereupon a circuit actuator will initiate an electrical charge throughout the frame of the handgun until the gun is returned to the horizontal position.
There's much more info and pics at the link.