/**
* Resize the current browser window to fill the screen.
*/
function sizeToFitScreen(){
	if (!safari){
		var winToMove = top.window;
	} else {
		var winToMove = self;
	}
	if (document.all || safari) {
		var w = screen.availWidth;
		var h = screen.availHeight;
		
		// Account for the fact that IE on Mac does not include the dock
		// in the availHeight property.  Have to guess that it's approximately
		// 80 pixels high and is visible.
		if (mac && !safari){
			h -= 80;
		}
		winToMove.moveTo(0,0);
		winToMove.resizeTo(w,h);
	
	} else if (document.layers || document.getElementById) {
		if (winToMove.outerHeight < screen.availHeight || winToMove.outerWidth < screen.availWidth){
			winToMove.outerHeight = screen.availHeight;
			winToMove.outerWidth = screen.availWidth;
		}
		winToMove.moveTo(0,0);
	}
}