Take a look at this script, http://jsfiddle.net/Tv2pP/7/
I think this is what you need, but it was hard to say because you did not specify exactly which states should be saved for .minimize and .maximize.
Please note that javascript is significantly different from your original.
Since the "class" is an attribute of the DOM elements, it should be accessed using getAttribute and setAttribute. IE6 had a very, very old bug that allowed javascript to access class classes via className, but that is no longer the case.
Also, pay attention to how I handle the class attribute. Since you can specify multiple classes for an element, this code takes this into account. You can safely add additional classes without fijing with maximization and minimization.
The second thing to watch is css. Use position: fixed locks the item in position regardless of the scroll value. In this example, there are two ways to set the div in full screen mode. The first indicates 100% width and height. However, it is fragile.
It is better to set the top, right, bottom, and left values ββto 0. This gives you more control. Also, suppose you need thin edges around the edges. Instead of worrying about mixing the top and left with the width and height, you can simply specify a pixel or percentage value for the 4 properties that I mentioned to get a simple, uniform look.
Finally, if you have the option, you should use a standardized library such as jQuery. This has become an incredibly useful tool over the years in order to do just such things without you, the developer, too worried about discrepancies in the underlying browser platform.