Resizing

Edit to work in Safari and Chrome. Need to check Firefox. Also, sets
layout based on window size and adapts to changes in window size after
page load.