Toggle function key on a MacBook Pro
In System Preferences, under Keyboard & Mouse, you can opt to use the top row as standard function keys, accessing their special functions by holding fn. However, there is no built in way to toggle this with a keyboard shortcut.
It looks like Palua might help you achieve what you want, $1 from the Apple Store.