<tmpl_include name="inc.head.tmpl">
<body>
<br />
<div id="login_in_progress" style="display:none;"><img src="themes/<tmpl_var name="theme">/images/loading_big.gif" alt="" style="vertical-align:middle;" />&nbsp;Logging you in</div>
<div id="login_form">
<center>
<table class="table" cellspacing="0" style="width:300px;">
	<thead>
		<tr>
			<td class="tableheading titleleft">Login</td>
		</tr>
	</thead>
	<tbody>
			<tmpl_if name="login_failed">
				<tr class="tablecontent"><td class="login_td" style="text-align:center;">Login failed. Please try again.</td></tr>
			</tmpl_if>
			<tmpl_if name="auth_type" value="1">
				<tmpl_if name="cookie_set" value="1">
					<tr class="tablecontent">
						<td>
							<form name="cookieLogin" action="login.php" method="post">
							<table style="width:100%;" cellspacing="0">
							<tbody>
								<tr>
									<td class="login_td" style="text-align:center;font-weight:bold;" colspan="2">Cookie found</td>
								</tr>
								<tr>
									<td class="login_td" colspan="2" align="center">
										<input name="docookielogin" type="hidden" value="true" />
										<input name="username" type="hidden" value="<tmpl_var name="cookieuser">" />
										<input name="md5pass" type="hidden" value="<tmpl_var name="cookiepass">" />
										<input class="button" type="submit" value="Login as <tmpl_var name="cookieuser">" />
									</td>
								</tr>
							</tbody>
							</table>
							</form>
							<form name="theForm" action="login.php" method="post" onsubmit="return loginSubmit(0)">
								<table style="width:100%;" cellspacing="0">
								<tbody>
									<tr>
										<td class="login_td" style="text-align:center;font-wight:bold;" colspan="2">Login as different User:</td>
									</tr>
									<tr>
										<td class="login_td" style="text-align:right;width:40%;"><label for="username">Username:</label></td>
										<td class="login_td"><input type="text" name="username" id="username" size="15" /></td>
									</tr>
									<tr>
										<td class="login_td" style="text-align:right;width:40%;"><label for="iamhim">Password:</label></td>
										<td class="login_td"><input type="password" name="iamhim" id="iamhim" size="15" /></td>
									</tr>
									<tr>
										<td class="login_td" style="text-align:right;width:40%;"><label for="setcookie">Set "Auto-Login" Cookie</label></td>
										<td class="login_td"><input type="checkbox" name="setcookie" id="setcookie" value="true" checked="checked" size="15" /></td>
									</tr>
									<tr>
										<td class="login_td" colspan="2" align="center">
											<input name="docookieloginnew" type="hidden" value="true" />
											<input type="submit" value="Login" />
										</td>
									</tr>
								</tbody>
								</table>
							</form>
						</td>
					</tr>
				<tmpl_else>
					<tr class="tablecontent">
						<td>
							<form name="theForm" action="login.php" method="post" onsubmit="return loginSubmit(0)">
								<table style="width:100%" cellspacing="0">
								<tbody>
									<tr>
										<td class="login_td" style="text-align:right;width:40%;"><label for="username">Username:</label></td>
										<td class="login_td"><input type="text" name="username" id="username" size="15" /></td>
									</tr>
									<tr>
										<td class="login_td" style="text-align:right;width:40%;"><label for="iamhim">Password:</label></td>
										<td class="login_td"><input type="password" name="iamhim" id="iamhim" size="15" /></td>
									</tr>
									<tr>
										<td class="login_td" style="text-align:right;width:40%;"><label for="setcookie">Set "Auto-Login" Cookie</label></td>
										<td class="login_td"><input type="checkbox" name="setcookie" id="setcookie" value="true" checked="checked" size="15" /></td>
									</tr>
									<tr>
										<td class="login_td" colspan="2" align="center">
											<input name="docookieloginnew" type="hidden" value="true" />
											<input type="submit" value="Login" />
										</td>
									</tr>
								</tbody>
								</table>
							</form>
						</td>
					</tr>
				</tmpl_if>
			<tmpl_elseif name="auth_type" value="4">
				<tr class="tablecontent">
					<td>
					<form name="theForm" action="login.php" method="post" onsubmit="return loginSubmit(<tmpl_var name="imageSupported">)">
						<table style="width:100%;" cellspacing="0">
						<tbody>
							<tr>
								<td class="login_td" style="text-align:right;width:40%;"><label for="username">Username:</label></td>
								<td class="login_td"><input type="text" name="username" id="username" size="15" /></td>
							</tr>
							<tr>
								<td class="login_td" style="text-align:right;width:40%;"><label for="iamhim">Password:</label></td>
								<td class="login_td"><input type="password" name="iamhim" id="iamhim" size="15" /></td>
							</tr>
						<tmpl_if name="imageSupported" value="1">
							<tr>
								<td style="text-align:right;width:40%;" class="login_td">
									<label for="security">
										<img src="image.php?i=login&amp;rnd=<tmpl_var name="rnd">" style="border:1px solid #000000;" />
									</label>
								</td>
								<td class="login_td">
									<input type="text" name="security" id="security" value="" size="15" />
									<input type="hidden" name="rnd_chk" value="<tmpl_var name="rnd">" />
								</td>
							</tr>
						<tmpl_else>
							<tr>
								<td colspan="2" class="login_td" style="text-align:center;"><img src="image.php?i=notsup" /></td>
							</tr>
						</tmpl_if>
							<tr>
								<td colspan="2" class="login_td" style="text-align:center;"><input type="submit" value="Login" /></td>
							</tr>
						</tbody>
						</table>
					</form>
					</td>
				</tr>
			<tmpl_else>
					<tr class="tablecontent">
						<td>
							<form name="theForm" action="login.php" method="post" onsubmit="return loginSubmit(0)">
								<table style="width:100%;" cellspacing="0">
								<tbody>
									<tr>
										<td class="login_td" style="text-align:right;width:40%;"><label for="username">Username:</label></td>
										<td class="login_td"><input type="text" name="username" id="username" size="15" style="font-family:verdana,helvetica,sans-serif; font-size:9px; color:#000;" /></td>
									</tr>
									<tr>
										<td class="login_td" style="text-align:right;width:40%;"><label for="iamhim">Password:</label></td>
										<td class="login_td"><input type="password" name="iamhim" id="iamhim" size="15" style="font-family:verdana,helvetica,sans-serif; font-size:9px; color:#000" /></td>
									</tr>
									<tr>
										<td class="login_td" colspan="2" style="text-align:center;"><input class="button" type="submit" value="Login" /></td>
									</tr>
								</tbody>
								</table>
							</form>
						</td>
					</tr>
			</tmpl_if>
		</tbody>
	</table>
</center>
</div>
</body>
</html>