@Override
	public void hyperlinkUpdate(HyperlinkEvent event) {
	    if (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
	        try {
	        	String url = event.getDescription();
	        	if (url != null) {
	        		if (url.indexOf("jfchat;jsessionid=") != -1) {
	        			if (url.indexOf("say=") != -1) {
	        				String tmp = url.substring(url.indexOf("say=")+"say=".length());
	        				client.sendToChat(tmp);
	        			} else {
		        			client.openJFChatLink(url);
	        			}
	        		} else if (url.indexOf("jfchat?refout=") != -1) {
	        			String tmp = url.substring(url.indexOf("refout=")+"refout=".length());
	        			client.openInBrowser(tmp);
	        		} else {
	        			client.openInBrowser(url);
	        		}
	        	}
	        } catch(Exception e) {
	        	e.printStackTrace();
	        }
	    }
	}