This script example demonstrates how to control the window sizing and resizing properties. Click here for demo file.
Download the js file; to use this script add:
Comment out the booyah.stayCentered() line if you don't want it to stay centered (obviously).