<!DOCTYPE html>
<html>
<head>
	<title>{{$config.SiteName}}</title>
	<script type="text/javascript" src="/javascript/jquery/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="/javascript/msgpack.js"></script>
	<script type="text/javascript">
		var styles = [{{range $ii, $style := $config.Styles_img}}{{if gt $ii  0}}, {{end}}"{{$style}}"{{end}}];
		var webroot = "{{$config.SiteWebfolder}}"
	</script>
	<script type="text/javascript" src="/javascript/gochan.js"></script>
	<script type="text/javascript" src="/javascript/manage.js"></script>

	
	<link rel="stylesheet" href="/css/global/front.css" />
{{range $i, $style := $config.Styles_img}}
	<link rel="{{if isStyleNotDefault_img $style}}alternate {{end}}stylesheet" href="/css/{{$style}}/front.css" />{{end}}
</head>
<body>
	<div id="topbar">
		<ul class="topbar-section">
			{{range $i, $board := $board_arr.Data}}
			<a href="/{{$board.Dir}}/"><li class="topbar-item">/{{$board.Dir}}/</li></a>
{{end}}		</ul>
	</div>
	<div id="top-pane">
		<span id="site-title">{{$config.SiteName}}</span><br />
		<span id="site-slogan">{{$config.SiteSlogan}}</span>
	</div>
	
	<div id="main">
		<div id="tab-bar">
			<div id="current-tab" class="tab">
				<a href="#">Home</a>
			</div>
			<div class="tab">
				<a href="#boards">Boards</a>
			</div>
			<div class="tab">
				<a href="#rules">Rules</a>
			</div>
			<div class="tab">
				<a href="#faq">FAQ</a>
			</div>
		</div>


		<div id="content">
			<div id="first-page" class="page">
			{{range $ii, $page := $page_arr.Data}}
				{{if intEq $page.Page 0}}
				<div class="section-block">
					<div class="section-title-block" id="first-page0">
						<b>{{$page.Subject}}</b> by <a href="mailto:{{$page.Email}}" >{{$page.Poster}}</a><a href="/#first-page{{$ii}}" class="permalink">#</a>
					</div>
					<div class="section-body">
						{{$page.Message}}
					</div>
				</div>
				{{end}}
			{{end}}
			</div>

			<div id="boards-page" class="page">
				<div class="section-block">
					<div class="section-title-block">
						<b>Boards</b>
					</div>
					<div class="section-body">
						<ul>
						{{range $i, $board := $board_arr.Data}}
						{{if stringEq $board.Dir $config.Modboard}}{{else}}
							<li><b>/{{$board.Dir}}/</b> {{$board.Description}}</li> 
						{{end}}
						{{end}}
						</ul>
					</div>
				</div>
			</div>

			<div id="rules-page" class="page">
			{{range $ii, $page := $page_arr.Data}}
				{{if intEq $page.Page 1}}
				<div class="section-block">
					<div class="section-title-block" id="first-page0">
						<b>{{$page.Subject}}</b> by <a href="mailto:{{$page.Email}}" >{{$page.Poster}}</a><a href="/#first-page{{$ii}}" class="permalink">#</a>
					</div>
					<div class="section-body">
						{{$page.Message}}
					</div>
				</div>
				{{end}}
			{{end}}
			</div>

			<div id="faq-page" class="page">
			{{range $ii, $page := $page_arr.Data}}
				{{if intEq $page.Page 2}}
				<div class="section-block">
					<div class="section-title-block" id="first-page0">
						<b>{{$page.Subject}}</b> by <a href="mailto:{{$page.Email}}" >{{$page.Poster}}</a><a href="/#first-page{{$ii}}" class="permalink">#</a>
					</div>
					<div class="section-body">
						{{$page.Message}}
					</div>
				</div>
				{{end}}
			{{end}}
			</div>
		</div>
	</div>
	<div id="recent-posts">
		<div class="section-title-box"><b>Recent Posts</b></div>
		<div class="section-block">
			<div class="section-title-block">
				<span class="section-title"><a href="/test/">/test/</a></span> - <b>Poster Mc</b>!Tripcode
			</div>
			<div class="section-body">
				<img src="135693079632s.png" />
				TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT TOOT...<br /><i>(Post truncated, click <a href="/test/">here</a> to continue reading)</i>
			</div>
		</div>

		<div class="section-block">
			<div class="section-title-block">
				<span class="section-title"><a href="/test/">/test/</a></span> - <b>Anonymous</b>
			</div>
			<div class="section-body">
				OP is a pony.
			</div>
		</div>

		<div class="section-block">
			<div class="section-title-block">
				<span class="section-title"><a href="/test/">/test/</a></span> - <b>Poster Mc</b>!Tripcode
			</div>
			<div class="section-body">
				<img src="135683008384s.png" />
				<a href="#">&gt;&gt;22222</a><br />
				HERP DERP FROSTED BUTTS
			</div>
		</div>
	</div>
	<div id="footer">
		<a href="{{$config.SiteWebfolder}}">Home</a> | <a href="{{$config.SiteWebfolder}}#boards">Boards</a> | <a href="{{$config.SiteWebfolder}}#rules">Rules</a> | <a href="{{$config.SiteWebfolder}}#faq">FAQ</a><br />
		Powered by Gochan {{$config.Version}}<br />
	</div>
</body>
</html>