<%@page contentType="text/html;charset=UTF-8" pageEncoding="ISO-8859-1" session="true"
%><%@page import="com.fujitsu.iflow.model.workflow.Filter"
%>

<script type='text/javascript'>
function Go(){return}
</script>
<script type='text/javascript' src='styles/menu_settings1.js'></script>
<script>

// Menu tree
//  MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//  For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"
<%
    String transportType = (String) session.getAttribute("TransportType");

    /* Rename any of the process choices according to your demo requirement */
    String[] processFilterChoices = {"Invalid",						/* 0 */
						 "My Active Process Instances",		/* 1 */
						 "My Inactive Process Instances",		/* 2 */
						 "All Active Process Instances",		/* 3 */
						 "All Inactive Process Instances",		/* 4 */
						 "All Process Instances",			/* 5 */
						 "Process Instances in Error State"};	/* 6 */

	/* do not modify, unless you are adding a new filter */
	int[] processFilterId = {-1,							/* Invalid */
					   Filter.MyActiveProcesses,			/* 1 */
					   Filter.MyInactiveProcesses,		/* 2 */
					   Filter.AllActiveProcesses,			/* 3 */
 					   Filter.AllInactiveProcesses,		/* 4 */
					   Filter.AllProcesses,				/* 5 */
					   Filter.AllProcessesInErrorState};	/* 6 */

	/* select the process choices, you would like to view on the process instance page */
	int[] displayChoices = null;
    	if (transportType.equalsIgnoreCase("LE"))
		displayChoices = new int[] {1,2,3,4,5};
	else
		displayChoices = new int[] {1,2,3,4,5,6};
%>
    Menu1=new Array("rollover:images/but_worklist_view.gif:images/but_worklist_view.gif","","",<%=displayChoices.length%>,24,85);
<%
	int menuIndex = 1;
	for(int i=0; i< displayChoices.length; i++, menuIndex++)
	{
%>
		Menu1_<%=menuIndex%>=new Array("<%=processFilterChoices[displayChoices[i]]%>",
							"ProcessList.jsp?pgNum=1&filterId="+<%=processFilterId[displayChoices[i]]%>,"",0,20,190);
<%
	}
%>

</script>
<script type='text/javascript' src='styles/menu_com.js'></script>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">
      <div id='MenuPos1' style='position:relative; width:120; height:0;'></div>
    </td>
  </tr>
  </table>
<!-- end floating menu-->
