<%--
 Copyright (c) 2005, 2010 Intel Corporation and others.
 All rights reserved. This program and the accompanying materials 
 are made available under the terms of the Eclipse Public License v1.0
 which accompanies this distribution, and is available at
 http://www.eclipse.org/legal/epl-v10.html
 
 Contributors:
     Intel Corporation - initial API and implementation
     IBM Corporation - 122967 [Help] Remote help system (improve responsiveness)
     IBM Corporation - 166695 [Webapp] Index View truncates button if large fonts are used
     IBM Corporation 2006, refactored index view into a single frame
     IBM Corporation 2009, css changes
     IBM Corporation 2010, added lang to html tag
--%>
<%@ include file="fheader.jsp"%>

<%
    RequestData requestData = new ActivitiesData(application,request, response);
	WebappPreferences prefs = requestData.getPrefs();
%>

<html lang="<%=ServletResources.getString("locale", request)%>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title><%=ServletResources.getString("IndexViewTitle", request)%></title>

<style type="text/css">
<%@ include file="indexView.css"%>
</style>
<% 
    if (requestData.isMacMozilla()) {
%>
<style type="text/css">
#button {
    background:GrayText;
}
</style>
<%
    }
%>

<base target="ContentViewFrame">

<script language="JavaScript">

var loadingMessage = "<%=UrlUtil.JavaScriptEncode(ServletResources.getString("Loading", request))%>";
var indexLoadError = "<%=UrlUtil.JavaScriptEncode(ServletResources.getString("IndexLoadError", request))%>";
</script>

<script language="JavaScript" src="../<%=pluginVersion%>/advanced/indexView.js"></script>
<script language="JavaScript" src="../<%=pluginVersion%>/advanced/resize.js"></script>
<script language="JavaScript" src="../<%=pluginVersion%>/advanced/helptree.js"></script>
<script language="JavaScript" src="../<%=pluginVersion%>/advanced/helptreechildren.js"></script>
<script language="JavaScript" src="../<%=pluginVersion%>/advanced/xmlajax.js"></script>
<script language="JavaScript" src="../<%=pluginVersion%>/advanced/utils.js"></script>
</head>

<body dir="<%=direction%>" onload="onloadHandler()" onresize = "sizeList()" role="navigation">

<table role="presentation" id="typeinTable">
<%if (prefs.isIndexInstruction()) {%>
	<tr>
		<td colspan="2"><p id="instruction"><%=ServletResources.getString("IndexTypeinInstructions", request)%></p></td>
	</tr>
<%}%>
	<tr>
		<td width="100%"><label for="typein" style="display:none;"><%=ServletResources.getString("IndexTypeinInstructions", request)%></label><input type="text" id="typein"></td>
	<%if (prefs.isIndexButton()) {%>
		<td><input type="button" id="button" value="<%=ServletResources.getString("IndexTypeinButton", request)%>" onclick="this.blur();showIndex()"></td>
	<%}%>
	</tr>
</table>
<div id = "indexList">
<DIV class = "group" id = "wai_application">
    <DIV class = "root" id = "tree_root">
    </DIV>
</DIV>
</div>
<div id="navigation">
    <table role="presentation" id="innerNavigation" cellspacing=0 cellpadding=0 border=0 style="background:transparent;">
		<tr>
			<td id = "td_previous">				
                <a id = "previous" class = "enabled" href="javascript:void(0);" onclick="this.blur();loadPreviousPage()"><%=ServletResources.getString("IndexPrevious", request)%></a> 
			</td>
			<td id = "td_next">
				<a id = "next" class = "enabled" href="javascript:void(0);" onclick="this.blur();loadNextPage()"><%=ServletResources.getString("IndexNext", request)%></a> 
			</td>
		</tr>
  	 </table>
</div>
</body>

</html>
