Change Display Quality at runtime?

I know there are quality settings in project settings in the IDE, but is it possible to change these at runtime, such as an options menu where the player can choose whether they want antialiasing or Fantastic quality, etc?

Try QualitySettings

Lookslike the link of @rabbitfang is broken, use this one.