case TYPE_APPLET: return new URL(stUrlString);
	public URL getLoginUrl(String galleryFile) {		try {			switch (type) {				case TYPE_STANDALONE:					return new URL(stUrlString + galleryFile);				case TYPE_POSTNUKE:					return new URL(replace(pnLoginUrlString, galleryFile));				case TYPE_PHPNUKE:					return new URL(replace(phpnLoginUrlString, galleryFile));				case TYPE_GEEKLOG:					return new URL(replace(glLoginUrlString, galleryFile));				default:					throw new RuntimeException("Unknown type: " + type);			}		} catch (MalformedURLException e) {			Log.log(Log.LEVEL_ERROR, MODULE, "Malformed URL.");			Log.logException(Log.LEVEL_ERROR, MODULE, e);			JOptionPane.showMessageDialog((JFrame) su, "Malformed URL (" + e.getMessage() + ")",					"Error", JOptionPane.ERROR_MESSAGE);			return null;		}	}