Commenting out Maxframe as it does not work well when the taskbar on the Mac is on the sides. With Mountain Lion I prefer to try out the native full screen option.