public LoggingInWindow() {
		setUndecorated(true);
		getContentPane().setLayout(null);
		
		JProgressBar progressBar = new JProgressBar();
		final JLabel label = new JLabel("");
		
		progressBar.setBounds(0, 326, 492, 14);
		label.setBounds(0, 0, 492, 340);
		
		progressBar.setIndeterminate(true);
		
		getContentPane().add(progressBar);
		getContentPane().add(label);
		
		ActionListener al = new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				length += Constants.SPLASH_DURATION;
				if (currentImage == 0) {
					label.setIcon(new ImageIcon(FileUtils.getResourcePath(("/roketgamer_title.png"))));
				}
				else {
					label.setIcon(new ImageIcon(FileUtils.getResourcePath(("/guardgame_title.png"))));
				}
				if (currentImage == 1)
					currentImage = 0;
				else
					currentImage++;
				
				if(GuardGame.getGameState().isOffline()) {
					if(length > Constants.SPLASH_SCREEN_TIMEOUT)
						openMenu();
				} else {
					if (length > Constants.SPLASH_SCREEN_TIMEOUT && GuardGame.getRoketGamer().getPlayer().hasLoadedData()) {
						openMenu();
						GuardGame.getWindowHandler().getToasterManager().showToaster(new ImageIcon(GuardGame.getRoketGamer().getPlayer().getAvatarAsBytes(64)), " Logged in as " + GuardGame.getRoketGamer().getPlayer().getName());
					}
				}
			}
		};
		timer = new Timer(Constants.SPLASH_DURATION,al);
		timer.setInitialDelay(0);
		timer.start();
		
		label.addMouseListener(new MouseAdapter() {
			public void mousePressed(MouseEvent me) {
				openMenu();
			}
		});
		if(!isVisible())
			timer.stop();
	}