<div id="handbook" style="width:100%;height:100%;background-color:white;">

	<% if ($chapter eq 'handbook') { %>
		<% foreach my $h ( sort grep { $_ ne 'handbook.html.ep' } split /\n/, `ls templates/handbook` ) { %>
			<% $h =~ s/\.html\.ep//gi; %>
			<h4 class="handbook_link hover" chapter="<%= $h %>"><%= &subs::format_name($h) %></h4>
		<% } %>
	<% } else { %>
	
		<h2>
			<img src="/images/decipherable/home.png" class="little_thumb hover handbook_link" style="float:right;" chapter="handbook"><%= &subs::format_name($chapter) %>
		</h2>
		<%= include 'handbook/' . $chapter %>
	<% } %>
</div>
<script>
	localStorage.setItem('handbook_chapter', '<%= $chapter %>');
</script>