Try looking for:-

'Soft' On/Off Power Switch in the General Section from 9 August

and

Electronic 'Soft' Power Switch in this Schematics section from 10 August

Most can be adapted for your needs.

Melanie