window.moveTo(settings.window.screenX, settings.window.screenY); window.resizeTo(settings.window.width, settings.window.height); 
switch (settings.window.state) { case window.STATE_MAXIMIZED: window.maximize(); break; case window.STATE_MINIMIZED:  break; case window.STATE_NORMAL: window.moveTo(settings.window.screenX, settings.window.screenY); window.resizeTo(settings.window.width, settings.window.height); break; } 
  _loadSettings : function() {      // Load using JSON format      var settings;      if (this._profile.hasOwnProperty("id")) {        var file = IO.getFile("Profile", null);        file.append("webapps");        file.append(this._profile.id);        file.append("localstore.json");        if (file.exists()) {          var stream = IO.newInputStream(file, "text");          var json = stream.readLine();          stream.close();          settings = JSON.fromString(json);          if (settings.window) {              window.moveTo(settings.window.screenX, settings.window.screenY);              window.resizeTo(settings.window.width, settings.window.height);          }          if (settings.sidebar) {              document.getElementById("splitter_sidebar").setAttribute("state", settings.sidebar.visible ? "open" : "collapsed");              document.getElementById("box_sidebar").width = settings.sidebar.width;          }        }      }  },
705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/705/5b47f203849f035472fe039ad14af4c777eefb72/webrunner.js/buggy/app/chrome/content/webrunner.js