protected void toggleScreen(int paramInt, boolean paramBoolean)
  {
    if (paramBoolean);
    switch (paramInt)
    {
    case 0:
      this.ImageCacheActiveList.removeAllElements();
      this.ImageCacheActiveList.addElement("opspanel");
      this.ImageCacheActiveList.addElement("statuspanel");
      this.TopLayer.add(this.BayScreen);
      if (this.FocusFixer != null)
        this.FocusFixer.setFocusTarget(this.buildpanel);
      this.buildpanel.requestFocus();
      this.statpanel.setMinimized(this.StatusMinimized[0]);
      break;
    case 1:
      this.ImageCacheActiveList.removeAllElements();
      this.ImageCacheActiveList.addElement("opspanel");
      this.ImageCacheActiveList.addElement("statuspanel");
      this.TopLayer.add(this.ViewScreen);
      this.CurrentRenderer.setVisible(true);
      if (this.FocusFixer != null)
        this.FocusFixer.setFocusTarget(this.CurrentRenderer);
      this.CurrentRenderer.requestFocus();
      this.statpanel.setMinimized(this.StatusMinimized[1]);
      break;
    case 2:
      this.CurrentGameState.stop();
      this.TopLayer.remove(this.statpanel);
      this.TopLayer.remove(this.opspanel);
      this.TopLayer.add(this.OptionsScreen, 0);
      

      switch (paramInt)
      {
      case 0:
        this.TopLayer.remove(this.BayScreen);
       break;
      case 1:
        this.TopLayer.remove(this.ViewScreen);
        this.CurrentRenderer.setVisible(false);
       break;
      case 2:
        this.CurrentGameState.start();
        this.TopLayer.remove(this.OptionsScreen);
        this.TopLayer.add(this.statpanel, 0);
        this.TopLayer.add(this.opspanel, 0);
       break;
      }
      break;
    }
  }