Resize and re-scale an image to fullscreen

Hey,

I would like to know how to make a background image (or any object for that matter) fit the fullscreen of the movie/ website. This would also work when it is resized aswell.

I have figured out how to make it stretch to the full size of the screen, but I want it to stay in proportion.

Any help would be appreciated,

Chris.