where is the config or code behind the desktop "suspend" button?

view story

http://www.linuxquestions.org – I'm running Mint-12 with Cinnamon. When I open the SysMenu from my tray, I see a button for Shutdown and friends. When I select that button, I get a dialog with more buttons:Suspend Hibernate Restart Shutdown Cancel If I select one of these buttons (except Cancel) stuff happens and programs run. I want to understand what is really going on. Does the tray item run a program that draws the dialog? Which program and where can I find it? I may want to "decorate" that dialog to suit my own tastes. Does the dialog launch programs or scripts in response to each button? If so, which progra (HowTos)