Resize handlers are ugly. But not as ugly as scroll handlers. :p Normalized some whitespace along the way.