<%@ taglib uri="/tld/jx.tld" prefix="jx" %>
<%@ taglib uri="/tld/im.tld" prefix="im" %>
<%@ taglib uri="/tld/desktop.tld" prefix="dt" %>
<%@ taglib uri="/tld/desktopProviderContext.tld" prefix="dtpc" %>
<dt:obtainChannel channel="$JSPProvider">
<dtpc:getStringProperty key="productName" id="productName" scope="request"/>
<%
      String productName = (String)pageContext.getAttribute("productName", PageContext.REQUEST_SCOPE);
%>

<html>
<head>
<title><%=productName%></title>
</head>
<body bgcolor="#ffffff">
<center>
<table cellpadding=8 width="80%">
<tr valign=top>
<td>        
        <font size=+1>Attention! 
        </font>
</td>
<td>        
        <font size=+1>
		      Do not close this browser window 
                      or load another web page in this window 
                      as long as you are using the Instant Messenger.
        </font>
</td>
</tr>
<tr><td colspan=2>
<jx:set var="jars">messenger.jar,imdesktop.jar,imnet.jar,<dtpc:getLocaleString/>/imres.jar,<dtpc:getLocaleString/>/imbrand.jar,icalendar.jar</jx:set>

<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
	WIDTH=150 
	HEIGHT=33  
	codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-win32.cab">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
<PARAM NAME=CODEBASE VALUE="<im:getCodebase/>">
<PARAM NAME=CODE VALUE="com.iplanet.im.client.iIMApplet.class" >
<PARAM NAME=CACHE_OPTION VALUE="Plugin">
<PARAM NAME=CACHE_ARCHIVE VALUE="<jx:expr value='$jars'/>">
<PARAM NAME="scriptable" VALUE="false">
<PARAM NAME="server" VALUE="<im:getIMServer/>">
<PARAM NAME="uid" VALUE="<im:getUsername/>">
<PARAM NAME="token" VALUE="<im:getToken/>">
<% String src = request.getParameter("src_url");
   String gateway_url = null;
   if (src != null) {
     String myURL = HttpUtils.getRequestURL(request).toString().toLowerCase();
     if (!myURL.startsWith(src.toLowerCase())) {
       gateway_url = src;
%>
<PARAM NAME="gateway_url" VALUE="<%= gateway_url %>">
<%

     } 
   }
%>
<% if (request.getParameter("username") != null) { %>
<PARAM NAME="autoinvite" VALUE="<%= request.getParameter("username") %>">
<% } %>

<COMMENT></COMMENT>
<EMBED 	TYPE="application/x-java-applet;version=1.4"  
	WIDTH=150 
	HEIGHT=33  
	PLUGINSPAGE="http://java.sun.com/products/plugin/1.4/plugin-install.html" 
	CODEBASE="<im:getCodebase/>"
	CODE="com.iplanet.im.client.iIMApplet.class" 
	CACHE_OPTION="Plugin" 
	CACHE_ARCHIVE="<jx:expr value='$jars'/>" 
	ARCHIVE="<jx:expr value='$jars'/>" 
	SCRIPTABLE=false
	server="<im:getIMServer/>"
	uid="<im:getUsername/>"
	token="<im:getToken/>"
<% if (gateway_url != null) { %>
        gateway_url="<%= gateway_url %>">
<% } %>
<% if (request.getParameter("username") != null) { %>
        autoinvite="<%= request.getParameter("username") %>"
<% } %>
>
</EMBED>
<NOEMBED>
</NOEMBED>
</OBJECT>

</td>
</tr>
</table>
</center>
</body>
</html>
</dt:obtainChannel>
