public void loadLevelAndMap(int levelID, int mapID)
	{
		if (mainPanel2 != null)
		{
			EditorLevelInformation level = levels.get("level " + levelID);
			maxMap = level.getMaps().size() - 1;
			EditorMapInformation map = level.getMaps().get("map " + mapID);
			content.remove(mainPanel2);
			mainPanel2 = new EditorMainPanel(this, map);
			mainPanel2.setPreferredSize(new Dimension(1001, 700));
			content.add(mainPanel2, BorderLayout.CENTER);
			currentLevel = levelID;
			currentMap = mapID;
			toolPanel.setSelectedLevel(currentLevel);
			toolPanel.setSelectedMap(currentMap);
			toolPanel.update();
			validate();
		}
	}