// Resize current window
var x;
var y;
if (screen.availHeight > 480) {y = 480;} else {y = screen.availHeight;}
if (screen.availWidth > 440) {x = 440;} else {x = screen.availWidth;}
window.resizeTo(x, y);