if (screen.availWidth <= 800) {
	maximizeWin();
}

function maximizeWin() {
	top.window.moveTo(0,0); 
	if (document.all) {
		//we're using IE
		top.window.resizeTo(screen.availWidth, screen.availHeight);
	} else if (document.layers || document.getElementById) {
		//we're using Gecko etc.
		if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth) {
			top.window.outerHeight = top.screen.availHeight;
			top.window.outerWidth = top.screen.availWidth;
		}
	}
}
