<script language=javascript>
	rootID2Ver=new Array();
	[% FOREACH entry IN rootID2Ver %]
		rootID2Ver["[% entry.ID %]"]="[% entry.ipv6 %]";
	[% END %]
</script>
<div id='container'>
	<form name='[% treeMenuFormName %]' action='[% thisScript %]' method='post'>
	<input type='hidden' id='buttonTmp_[% treeMenuFormName %]' name='buttonTmp' value='' />
	
	<table width='100%'><tr><td align='center'><table><tr><td>
		<div id='box'>
			<p id='boxHeader'>[% treeMenuHeader %]</p>
			<div id='boxBody'>
				[% INCLUDE HaCiBox.tmpl
					menu		= treeMenu
					parentFormName	= treeMenuFormName
				%]
			</div>
		</div>
	</td></tr></table></td></tr></table>
		
	[% IF editTreeMenu %]
	<table width='100%'><tr><td align='center'><table><tr><td>
		<div id='box'>
			<p id='boxHeader'>[% editTreeMenuHeader %]</p>
			<div id='boxBody'>
				[% INCLUDE HaCiBox.tmpl
					menu		= editTreeMenu
					hiddens	= treeMenuHiddens
					parentFormName	= treeMenuFormName
				%]
			</div>
		</div>
	</td></tr></table></td></tr></table>
	[% END %]

	[% IF editTreeMenu %]<div style='clear:left'></div>[% END %]

	<input type='hidden' id='func' name='func' value='' />
	<input type='hidden' id='netID' name='netID' value='' />
	<input type='hidden' id='rootID' name='rootID' value='' />
	<input type='hidden' id='networkDec' name='networkDec' value='' />
	<input type='hidden' id='fillNet' name='fillNet' value='' />
	<div id='treeBox'>
		[% FOREACH root IN tree %]
			[% IF root.parent %]<div id='[% root.ID %]'>[% END %]
			[% INCLUDE HaCiTreeRoot.tmpl
				root	= root
			%]
			[% INCLUDE HaCiTreeNetwork.tmpl
				networks	= root.networks
			%]
			[% IF root.parent %]</div>[% END %]
		[% END %]
	</div>

	</form>
</div>
<script language=javascript>
	window.location.href = "#[% jumpTo %]";
	checkIfIPv6('', 'TREE');
</script>
