<%@ taglib uri='struts-html' prefix='html' %>
<%@ taglib uri='struts-logic' prefix='logic' %>
<%@ taglib uri='struts-bean' prefix='bean' %>
<%@ taglib uri='vkc-taglib'  prefix='vkc'  %>
<%@ page import="vkc.util.treeview.TreeView" %>

<html:html locale="true">
<head>
	<vkc:init/>

    <meta http-equiv="content-type"  content="text/html; charset=iso-8859-1" />
    <title><vkc:message key="vkc"/></title>

	<script language='JavaScript' type="text/javascript">
    window.name = 'NAVIGATORFRAMESET';
    </script>
</head>

<frameset cols="250,2,*" border="0" borderColor="#ffffff" frameSpacing="0" >
	<bean:parameter id="categoryId"  name="categoryId"/>

    <frameset rows="25,*" border="0" borderColor="#ffffff" frameSpacing="0" >
	  <vkc:frame page="/templates/${template.name}/common/closeNavigatorView.jsp" frameName="CLOSETREEVIEW" scrolling="no" frameborder="0" noresize="true"/>
	  <logic:present name="<%=TreeView.TREE_KEY%>">
        <bean:define id="treeView" name="<%=TreeView.TREE_KEY%>" type="vkc.util.treeview.TreeView"/>
        <vkc:frame page='<%=String.valueOf( "/treeview.do?" + treeView.getQueryString() )%>' frameName="TREEVIEW" scrolling="auto" frameborder="0"/>
	  </logic:present>	
	  <logic:notPresent name="<%=TreeView.TREE_KEY%>">
        <vkc:frame page='<%="/treeview.do?selNode=" + categoryId + "&anchor=" + categoryId + "&expand=true"%>' paramId="activeNode" paramName="categoryId" frameName="TREEVIEW" scrolling="auto" frameborder="0"/>	
	  </logic:notPresent>	
    </frameset>
	<vkc:frame page="/templates/${template.name}/common/verticalDelimiter.jsp" frameName="DELIMITERVIEW" scrolling="no" frameborder="0" noresize="true"/>
	<logic:notPresent parameter="anchor">
		<vkc:frame paramName="categoryId" paramId="categoryId"  page="/showCategory.do" frameName="MAINVIEW" scrolling="auto" frameborder="0"/>
	</logic:notPresent>
	<logic:present parameter="anchor">
		<bean:parameter id="anchor" name="anchor"/>			
		<vkc:frame page='<%="/showCategory.do?categoryId=" + categoryId%>' paramId="anchor" paramName="anchor" frameName="MAINVIEW" scrolling="auto" frameborder="0"/>
	</logic:present>	
</frameset>
</html:html>