@Override
		public void mouseReleased(MouseEvent arg0) {
			if (StorageUnitDisplayPanel.this.displayMode != DisplayMode.FULL) {
				StorageUnitDisplayPanel.this.fireClick();
				return;
			}
			int y = arg0.getY();
			if (StorageUnitDisplayPanel.this.storageUnit != null) {
				int height = StorageUnitDisplayPanel.this.getHeight(), max = storageUnit
						.getStock().getMaxTraysPerStorageUnit();
				List<Tray> trays = storageUnit.getTrays();
				HashMap<Integer, Tray> traysMap = new HashMap<Integer, Tray>();
				for (Tray tray : trays) {
					traysMap.put(tray.getSlotNumber(), tray);
				}
				int j = (int) ((double) y / (height / max));
				int i = max - 1 - j;
				if (traysMap.containsKey(i)) {
					Tray tray = traysMap.get(i);
					if (StorageUnitDisplayPanel.hasSelectedTray(tray)) StorageUnitDisplayPanel
							.removeSelectedTray(tray);
					else StorageUnitDisplayPanel.addSelectedTray(tray);
				}

			}
		}