<%@ page language="java" buffer="100kb" errorPage="/common/error.jsp"%>

<%@ taglib uri="struts-bean"  prefix="bean"  %>
<%@ taglib uri="struts-html"  prefix="html"  %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="vkc-taglib"   prefix="vkc"   %>

<vkc:checkLogin/>
<vkc:init/>
<html:html locale="true">
<head>
    <meta http-equiv="content-type"  content="text/html; charset=iso-8859-1" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="pragma"        content="no-cache" />
    <meta http-equiv="expires"       content="0" />
    <meta http-equiv="robots"        content="noindex" />
    <meta http-equiv="robots"        content="nofollow" />
	<title><vkc:message key="vkc" /></title>
    <script type="text/javascript" src="<vkc:rewrite page='/common/utils.js'/>"></script>
	<vkc:cssinclude />


    <script type="text/javascript">

	window.name = "CLUSTERTREEVIEW";

	function setAnchor() {
		<logic:present parameter="anchor">
			<bean:parameter id="anchor2" name="anchor"/>
			window.location.hash = '<%=anchor2%>';
		</logic:present>
	}

    function toggleTreeItem(id, params) {
        var form = document.forms[0];
        form.selectedId.value   = id;
        
        if (form.action.indexOf('?') == -1) {
          form.action = form.action + "?action.toggle.treeitem=true" + params;
        } else {
          form.action = form.action + "&action.toggle.treeitem=true" + params;
        }
        
        form.submit();
    }

    function refresh(params) {
        var form = document.forms[0];

        if (form.action.indexOf('?') == -1) {
          form.action = form.action + "?" + params;
        } else {
          form.action = form.action + "&" + params;
        }

        form.submit();
    }

	</script>

	<style type="text/css">
		a:link    { font-weight: normal; text-decoration: none; color: #000000; }
		a:visited { font-weight: normal; text-decoration: none; color: #000000; }		
		a:hover	  {	color: #fd7b11; text-decoration: underline;}
	</style>

</head>

<body onload="javascript:setAnchor();" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<html:form action="/clusterTreeView" method="post">
<bean:define id="form" name="clusterTreeViewForm" type="vkc.util.treeview.ClusterTreeViewForm"/>
<html:hidden name="form" property="selectedId"/>

  <tr><td colspan="2"><vkc:img page="/templates/${template.name}/gfx/trans.gif" width="2" height="3" border="0" alt=""/></td></tr>
  <tr><td colspan="2"><vkc:img page="/templates/${template.name}/gfx/trans.gif" width="2" height="1" border="0" alt=""/><vkc:img page="/templates/${template.name}/gfx/my_computer.gif" border="0" alt=""/></td></tr>

  <tr>
    <td><vkc:img page="/templates/${template.name}/gfx/trans.gif" width="5" height="1" border="0" alt=""/></td>
    <td width="100%" align="left" nowrap="nowrap">
      <vkc:treeview name='<%=vkc.util.treeview.TreeView.CLUSTER_TREE_KEY%>' path="/clusterTreeView.do" checkPermission="false" imageDir="/templates/${template.name}/gfx/tree" target="MAINVIEW"/>
    </td>
  </tr>
</html:form>
</table>
</body>
</html:html>