Caffeine is a tiny program that puts an icon in the right side of your menubar. Click it to prevent your Mac from automatically going to sleep, dimming the screen or starting screen savers. Click it again to go back. Hold down the Command key while clicking to show the menu.
The menu now has a sub-menu for deactivating Caffeine automatically after a number of minutes.