<div id='root'>
	<div id='menu'>
		[% INCLUDE HaCiMenu.tmpl %]
	</div>
	<div id='main'>
		[% IF mainPage == 'addRoot' %]
			[% INCLUDE HaCiAddRoot.tmpl %]
		[% ELSIF mainPage == 'addNet' %]
			[% INCLUDE HaCiAddNet.tmpl %]
		[% ELSIF mainPage == 'showAllNets' %]
			[% INCLUDE HaCiTree.tmpl %]
		[% ELSIF mainPage == 'importASNRoutes' %]
			[% INCLUDE HaCiImportASNRoutes.tmpl %]
		[% ELSIF mainPage == 'importDNS' %]
			[% INCLUDE HaCiImportDNS.tmpl %]
		[% ELSIF mainPage == 'importConfig' %]
			[% INCLUDE HaCiImportConfig.tmpl %]
		[% ELSIF mainPage == 'showNet' %]
			[% INCLUDE HaCiShowNet.tmpl %]
		[% ELSIF mainPage == 'splitNet' %]
			[% INCLUDE HaCiSplitNet.tmpl %]
		[% ELSIF mainPage == 'combineNets' %]
			[% INCLUDE HaCiCombineNets.tmpl %]
		[% ELSIF mainPage == 'showRoot' %]
			[% INCLUDE HaCiShowRoot.tmpl %]
		[% ELSIF mainPage == 'editRoot' %]
			[% INCLUDE HaCiEditRoot.tmpl %]
		[% ELSIF mainPage == 'delNet' %]
			[% INCLUDE HaCiDelNet.tmpl %]
		[% ELSIF mainPage == 'delRoot' %]
			[% INCLUDE HaCiDelRoot.tmpl %]
		[% ELSIF mainPage == 'search' %]
			[% INCLUDE HaCiSearch.tmpl %]
		[% ELSIF mainPage == 'getFreeSubnetsFromSearch' %]
			[% INCLUDE HaCiSearch.tmpl %]
		[% ELSIF mainPage == 'compare' %]
			[% INCLUDE HaCiCompare.tmpl %]
		[% ELSIF mainPage == 'showTemplates' %]
			[% INCLUDE HaCiShowTemplates.tmpl %]
		[% ELSIF mainPage == 'editTemplate' %]
			[% INCLUDE HaCiEditTemplate.tmpl %]
		[% ELSIF mainPage == 'delTmpl' %]
			[% INCLUDE HaCiDelTemplate.tmpl %]
		[% ELSIF mainPage == 'showGroups' %]
			[% INCLUDE HaCiShowGroups.tmpl %]
		[% ELSIF mainPage == 'editGroup' %]
			[% INCLUDE HaCiEditGroup.tmpl %]
		[% ELSIF mainPage == 'delGroup' %]
			[% INCLUDE HaCiDelGroup.tmpl %]
		[% ELSIF mainPage == 'showUsers' %]
			[% INCLUDE HaCiShowUsers.tmpl %]
		[% ELSIF mainPage == 'editUser' %]
			[% INCLUDE HaCiEditUser.tmpl %]
		[% ELSIF mainPage == 'delUser' %]
			[% INCLUDE HaCiDelUser.tmpl %]
		[% ELSIF mainPage == 'showStatus' %]
			[% INCLUDE HaCiShowStatus.tmpl %]
		[% ELSIF mainPage == 'showAbout' %]
			[% INCLUDE HaCiShowAbout.tmpl %]
		[% ELSIF mainPage == 'showPlugins' %]
			[% INCLUDE HaCiShowPlugins.tmpl %]
		[% ELSIF mainPage == 'showPluginConf' %]
			[% INCLUDE HaCiShowPluginConf.tmpl %]
		[% ELSIF mainPage == 'showSubnets' %]
			[% INCLUDE HaCiShowSubnets.tmpl %]
		[% ELSIF mainPage == 'showSettings' %]
			[% INCLUDE HaCiShowSettings.tmpl %]
		[% ELSIF mainPage == 'showAuditLogs' %]
			[% INCLUDE HaCiShowAuditLogs.tmpl %]
		[% END %]
	</div>
</div>
<div id='footer'>
	[% INCLUDE HaCiFooter.tmpl %]
</div>
<div id='warnl' onmousedown='startDrag(this);'>
	<table><tr><td>
		<div id='floatbox'>
			<p id='boxHeader'>[% warnlHeader %]</p>
			<div id='boxBody'>
				[% INCLUDE HaCiBox.tmpl 
					menu	= warnlMenu 
				%]
			</div>
		</div>
	</td></tr></table>
</div>
