[FireGestures] Resize Browser

if (FireGestures.API_resizeWindow === undefined) {
  FireGestures.API_resizeWindow = function(w, h) {
    window.resizeTo(w, h);
    window.screenX = 0;
    window.screenY = 0;
    this.setStatusText("Resized the window to " + w + " x " + h);
    this.clearStatusText(3000);
  };
}

var currentWidth = window.outerWidth;
var currentHeight = window.outerHeight;

FireGestures.generatePopup(event,
  [
    { label: "640 x 480",  oncommand: "this.API_resizeWindow(640, 480);",  type: "radio", checked: (currentWidth == 640 && currentHeight == 480) },
    { label: "800 x 600",  oncommand: "this.API_resizeWindow(800, 600);",  type: "radio", checked: (currentWidth == 800 && currentHeight == 600) },
    { label: "1024 x 768", oncommand: "this.API_resizeWindow(1024, 768);", type: "radio", checked: (currentWidth == 1024 && currentHeight == 768) },
    { label: "1280 x 1024", oncommand: "this.API_resizeWindow(1280, 1024);", type: "radio", checked: (currentWidth == 1280 && currentHeight == 1024) }
  ]
);

FireGestures :: Make Scripts
FireGestures :: Get Scripts -> [Popup] Resize Window