{include file="header.tpl"}
	<body style="background-color: {$style.bg_body}" {if $additional_onload}onload="{$additional_onload}"{/if}>
        <!-- Head -->
		<table cellpadding="0" cellspacing="0" style="margin-right:auto; margin-left:auto; width:984px;">
			<tr>
				<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
				<td><img src="{$style.header_a}" width="138" height="121" alt="" /><img src="{$style.header_b}" height="121" width="643" alt="" /></td>
				<td valign="top" style="background-color: {$style.bordercolor}"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
                {if isset( $user )}
                <td width="200" bgcolor="{$style.bg_1}"><img src="{$style.header_d}" width="200" height="58" alt="" /></td>
                {else}
                <td width="200" bgcolor="{$style.bg_1}">
                    <form action="login.php" method="post" style="margin:0px;">
                        <input type="hidden" name="sid" value="{$SID_SHORT}" />
                        <table border="0" width="50" cellspacing="0" cellpadding="0" align="center" class="medium">
                            <tr>
                                <td>Benutzername:</td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="text" name="login_accountname" maxlength="25" class="input_form" style="width:150px" value="" />
                                </td>
                            </tr>
                            <tr>
                                <td>Passwort:</td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="password" name="login_password" maxlength="25" class="input_form" style="width:150px" />
                                </td>
                            </tr>
                            <tr>
                                <td><input type="checkbox" class="small" name="set_cookie" value="1" checked="checked" /> Cookies setzen?</td>
                            </tr>
                            <tr>
                                <td><input type="submit" name="login" value="Login" class="button_form" />  <a href="register.php?{$SID}">Registrieren</a></td>
                            </tr>
                        </table>
                    </form>
                </td>
                {/if}
				<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
			</tr>
		</table>

		<!-- Content -->
		<table width="984" border="0" cellspacing="0" cellpadding="0" style="margin-right:auto; margin-left:auto;">
			<tr>
				<td style="background-color: {$style.bordercolor}" valign="top" colspan="7"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
			</tr>
			<tr>
				<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
				<!-- Navigation -->
				<td width="138" valign="top" bgcolor="{$style.bg_1}">
					<table width="138" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td class="navtitle"><img src="{$style.nav_a}" width="138" height="18" alt="" /></td>
						</tr>
						<tr>
							<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
						</tr>
						<tr>
							<td>
								<a class="nav" href="news.php?{$SID}" title="Die Neuigkeiten auf Ultima Online Mittelerde">Neuigkeiten</a><br />
								<a class="nav" href="http://wbb2.uo-mittelerde.ch/board.php?boardid={$settings.news_board_id}" target="_blank" title="Das Nachrichten-Archiv">Archiv</a><br />
								<a class="nav" href="misc.php?mode=chat&amp;{$SID}" title="Der Mittelerde-IRC-Chat">Chat</a><br />
								<a class="nav" href="http://wbb2.uo-mittelerde.ch/calendar.php" target="_blank" title="Termine von Ausbildungen und Events">Eventkalender</a><br />
								<a class="nav" href="http://wbb2.uo-mittelerde.ch/index.php" target="_blank" title="Die Diskussionsforen">Forum</a><br />
								<a class="nav" href="http://www.uo-mittelerde.ch/misc.php?mode=schlichtung&amp;{$SID}" title="Informationen zur Schlichtungsstelle">Schlichtungsstelle</a><br />
                <a class="nav" href="misc.php?mode=spenden&amp;{$SID}" title="Spenden für UO-Mittelerde">Spenden</a><br />
								<a class="nav" href="stafflist.php?{$SID}" title="Das Team">Staff</a>
							</td>
						</tr>
						<tr>
							<td> </td>
						</tr>
						<tr>
							<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
						</tr>
						<tr bgcolor="{$style.bg_2}">
							<td class="navtitle"><img src="{$style.nav_b}" width="138" height="18" alt="" /></td>
						</tr>
						<tr>
							<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
						</tr>
						<tr>
							<td>
							  <a class="nav" href="http://www.uo-mittelerde.ch/templates/handbuch/index.html" target="_blank" title="Überblickshandbuch für alle, die neu zu uns gefunden haben"><b>Neulingshandbuch</b></a><br /> 
							  <a class="nav" href="application.php?{$SID}" title="Du willst bei UO-Mittelerde mithelfen? Hier bist du richtig!">Staffbewerbung</a><br /> 
							  <a class="nav" href="misc.php?mode=regeln2&amp;{$SID}" title="Die Regeln">Regeln</a><br /> 
                <a class="nav" href="misc.php?mode=strafleitfaden&amp;{$SID}" title="Detaillierter Regelleitfaden mit Strafkatalog">Strafleitfaden</a><br /> 
                {if isset( $user )}
                        <a class="nav" href="logout.php?{$SID}" title="Logout">Logout</a><br />
                {else}
                        <a class="nav" href="login.php?{$SID}" title="Mit Account Einloggen">Login</a><br />
                        <a class="nav" href="register.php?{$SID}" title="Melde dich an...!">Account erstellen</a><br />
                {/if}
							{if isset( $user ) && $user->can_access("status")}<a class="nav" href="status.php?{$SID}" title="Momentaner Status des Servers">Status</a>{/if}
							</td>
						</tr>
						<tr>
							<td> </td>
						</tr>
						<tr>
							<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
						</tr>
						<tr bgcolor="{$style.bg_2}">
							<td class="navtitle"><img src="{$style.nav_c}" width="138" height="18" alt="" /></td>
						</tr>
						<tr>
							<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
						</tr>
						<tr>
							<td>
                <a class="nav" href="misc.php?mode=installation&amp;{$SID}" title="Anleitung zur Installation von UO:ME">Installation</a><br />
                <a class="nav" href="misc.php?mode=charakter&amp;{$SID}" title="Grundlagen von Ultima Online">Der Charakter</a><br />  
                <a class="nav" href="faq.php?{$SID}" title="Häufig gestellte Fragen">FAQs</a><br />
                <a class="nav" href="misc.php?mode=herstellung2&amp;{$SID}" title="Informationen zur Herstellung auf UO:ME">Herstellung</a><br />  
                <a class="nav" href="itemsuche.php" title="Von den Rohstoffen zum Endprodukt">Herstellungsketten</a><br /> 
                <a class="nav" href="misc.php?mode=fertigkeiten&amp;{$SID}" title="Die Eigenschaften der Charaktere">Skills & Stats</a><br /> 
                <a class="nav" href="misc.php?mode=profession&amp;{$SID}" title="Der Weg vom Anfänger zum Großmeister">Profession/Ausbildung</a><br /> 
                <a class="nav" href="misc.php?mode=kampf&amp;{$SID}" title="Der blutige Teil des Spiels...">Kampfsystem</a><br />
                <a class="nav" href="misc.php?mode=rpguide&amp;{$SID}" title="Grundlagen des Rollenspiels">RP-Guide</a><br /> 
                <a class="nav" href="misc.php?mode=befehle&amp;{$SID}" title="Wichtige Befehle auf UO:ME">Spielerbefehle</a><br />
                <a class="nav" href="misc.php?mode=banksys&amp;{$SID}" title="Banken und Lagerhäuser auf UO:ME">Banksystem</a><br />
                <a class="nav" href="misc.php?mode=systeme&amp;{$SID}" title="Spielsysteme Mittelerdes">Systeme</a><br />
                <a class="nav" href="misc.php?mode=vereinigung&amp;{$SID}" title="Gilden auf UO:ME">Vereinigungen/Gilden</a> <br /> 
                <a class="nav" href="misc.php?mode=zeitrechnung&amp;{$SID}" title="Die Zeitrechnung auf UO-Mittelerde">Zeitrechnung</a>           
							</td>
						</tr>
						<tr>
							<td> </td>
						</tr>
						<tr>
							<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
						</tr>
						<tr>
							<td class="navtitle"><img src="{$style.nav_d}" width="138" height="18" alt="" /></td>
						</tr>
						<tr>
							<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
						</tr>
						<tr>
							<td>
							  <a class="nav" href="library.php?{$SID}" title="Alphabetisch geordnete Bibliothek">Bibliothek</a><br />
							  <a class="nav" href="misc.php?mode=fauna&amp;{$SID}" title="Tiere, Pflanzen etc.">Fauna &amp; Flora</a><br />
								<a class="nav" href="misc.php?mode=gemmen&amp;{$SID}" title="Edelsteine auf Mittelerde">Gemmen</a><br />
								<a class="nav" href="misc.php?mode=zeit&amp;{$SID}" title="Die Kalender Mittelerdes">Kalender</a><br />
								<a class="nav" href="misc.php?mode=metalle&amp;{$SID}" title="Die Metalle und Legierungen Mittelerdes">Metalle &amp; Legierungen</a><br />
								<a class="nav" href="misc.php?mode=classes&amp;{$SID}" title="Professionen in Mittelerde">Professionen</a><br />
								<a class="nav" href="race.php?{$SID}" title="Rassen und Völker Mittelerdes">Rassen &amp; Völker</a><br />
								<a class="nav" href="screenshots.php?{$SID}" title="Screenshots der Welt">Screenshots</a><br />
								<a class="nav" href="misc.php?mode=locations2&amp;{$SID}" title="Die Städte &amp; Orte">Städte &amp; Orte</a><br />
								<a class="nav" href="misc.php?mode=waffengattung&amp;{$SID}" title="Grundlagen des Kampfes">Waffengattungen</a><br />
							</td>
						</tr>
						<tr>
						<td> </td>
						</tr>
						<tr>
							<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
						</tr>
						<tr>
							<td class="navtitle"><img src="{$style.nav_e}" width="138" height="18" alt="" /></td>
						</tr>
						<tr>
							<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
						</tr>
						<tr>
							<td>
							<a class="nav" href="misc.php?mode=banner&amp;{$SID}" title="Werbebanner für UO-Mittelerde">Banner/Wallpaper</a><br />
							<a class="nav" href="misc.php?mode=links&amp;{$SID}" title="Linkliste zu anderen Informativen Seiten">Links</a><br />
							<a class="nav" href="statistics.php?{$SID}" title="Statistiken der Server">Statistik</a><br />
							<a class="nav" href="misc.php?mode=tut&amp;{$SID}" title"Tutorials">Tutorials</a><br />
              <br />
							</td>
						</tr>
					</table>
				</td>
				<td valign="top" style="background-color: {$style.bordercolor}"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>

				<!-- Content -->
				<td width="642" valign="top" style="background: {$style.bg_content} url( {$style.header_c} ) no-repeat">
					<table width="642" border="0" cellspacing="0" cellpadding="0">
						<tr bgcolor="{$style.bg_2}">
							<td height="18" bgcolor="{$style.bg_2}" style="margin-right:auto; margin-left:auto;" width="100%">
                            	<b>
                                	 <span class="navtitle"><font color="{$style.bg_2}">_</font>{$page_title_long}</span>
                                </b>
                            </td>
                            <td height="18" bgcolor="{$style.bg_2}" style="margin-right:auto; margin-left:auto;" nowrap="nowrap">
                            	<span class="navtitle">{dynamic}{$serverstatus}{/dynamic}<font color="{$style.bg_2}">_</font></span>
                            </td>
						</tr>
						<tr>
							<td class="navtitle" style="background-color:{$style.bordercolor};"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
						</tr>
					</table>
					<table width="590" border="0" cellspacing="0" cellpadding="1" style="margin-right:auto; margin-left:auto;">
						<tr>
							<td>
								<img src="images/spacer.gif" width="1" height="45" alt="" /><br />
								{if $do_not_display_add != true}<center>
								<a href="http://genotec.ch/" target="_blank">Vielen Dank an unseren Sponsor Genotec</a>
								<!--	
									<a href="http://genotec.ch/" target="_blank"><img src="http://adserver.genotec.ch/pic/genotec_full_banner.gif" width="468" height="60" alt="genotec.ch" border="0" /></a>
								-->	
								</center>
                                <hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}"></hr>
								{/if}
                                {if isset( $page_title_site ) }
                                <b style="color:{$style.bg_2}">{$page_title_site}</b>
                                <p></p>
                                {/if}
                                {$page.content}
                                <p></p>
							</td>
						</tr>
					</table>
				</td>
				<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
				<td bgcolor="{$style.bg_1}" valign="top" width="200">
					<table width="200" border="0" cellspacing="0" cellpadding="0" align="center">
						<tr>
							<td height="18" style="background-color: {$style.bg_2}" align="center">
								<a href="misc.php?mode=impressum&amp;{$SID}" class="white" style="font-size: 11px;">Impressum</a> |
								<a href="contact.php?{$SID}" class="white" style="font-size: 11px;">Kontakt</a> |
								<a href="misc.php?mode=sitemap&amp;{$SID}" class="white" style="font-size: 11px;">Sitemap</a>
							</td>
						</tr>
						<tr>
							<td class="navtitel" style="background-color: {$style.bordercolor}"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
						</tr>
					</table>

                    {if isset( $user )}
                    <table width="100%">
						<tr>
							<td>
                            	<center><b>Mitglieder Bereich</b></center>
                                » <a href="messages.php?{$SID}">Nachrichten ansehen</a><br />
                                » <a href="account.php?mode=edit&amp;{$SID}">Accountprofil bearbeiten</a><br />
                                » <a href="accountlist.php?{$SID}">Mitgliederliste ansehen</a><br />
                                » <a href="char.php?{$SID}">Meine Charaktere</a><br />
                                  {if isset( $user )}
                                » <a href="logout.php?{$SID}" title="Logout">Logout</a><br />
                                {else}
                                » <a href="login.php?{$SID}" title="Mit Account Einloggen">Login</a><br />
                                {/if}
                                <hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}"></hr>
                                » <a href="user_gallery.php?{$SID}">Benutzergalerie</a><br />
                                » <a href="user_locations.php?{$SID}">Benutzerwohnorte</a><br />
                                {if $user->can_access("files")}» <a href="files.php?{$SID}">Downloads</a><br />
                                <hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}"></hr>
                                {/if}
                                {if $user->can_access("staff")}
                                » <a href="misc.php?mode=staff_regeln{$SID}">Staffregeln</a><br />
                                » <a href="misc.php?mode=staff_einteilung{$SID}">Staffeinteilung</a><br />
                                » <a href="misc.php?mode=staff_infos{$SID}">Staffinformationen</a><br />
                                <hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}"></hr>
                                {/if}
                                {if $user->can_access("activation")}
              	                  » <a href="char_activation.php?{$SID}">Charfreischaltung ({$cactivation.0}/{$myactivation.0})</a><br />
              	                  » <a href="char_activation.php?action=displayForbiddenNames{$SID}">Verb. Namen administrieren</a><br />
                                {/if}
                                {if $user->can_access("viewchars")}
              	                  » <a href="char_list.php">Charaktersuche/-verwaltung</a><br />
                                {/if}
                                {if $user->can_access("badguys")}
                  	              » <a href="jail.php?{$SID}">Aktenschrank</a><br />
                  	             {/if}
                                {if $user->can_access("logs")}
                    	            » <a href="logs_simpel.php?{$SID}">Logbücher</a><br />
                                {/if}
                                {if $user->can_access("gamesys")}
                                	» <a href="charstop.php?csadmin=1&amp;{$SID}" target="_blank">Anmeldestop</a><br />
                                	» <a href="baumdiagramm_intern.php" target="_blank">Baumdiagramme</a><br />
                                	» <a href="itemsuche_intern.php">Interne Itemsuche</a><br />
                                {/if}
				{if $user->can_access("enginequests")}
					» <a href="qbausteine.php">Engine-Quests</a><br />
				{/if}
				{if $user->can_access("vendoren")}
                                	» <a href="vendoren.php">Vendoren</a><br />
                                	» <a href="vlists.php">Vendorenlisten</a><br />
				{/if}
				{if $user->can_access("spawns")}
                                	» <a href="spawns.php">Spawns</a><br />
				{/if}
				{if $user->can_access("npcs")}
                                	» <a href="loot.php">Loot</a><br />
                                	» <a href="npcs.php">NPCs</a><br />
										» <a href="kleidung.php">Kleidung</a><br />
										» <a href="futter.php">Futterlisten</a><br />
									{/if}
									{if $user->can_access("rohstoffe")}
                                	» <a href="rohstoffe.php">Rohstoffe</a><br />
                                {/if}
                                {if $user->can_access("questitems_authorisieren")}
                                	» <a href="quest_items.php">Questitems verwalten</a><br />
									{/if}
									{if $user->can_access("miete")}
										» <a href="miete.php">Mieterübersicht</a><br />
                                {/if}	
                                <hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}"></hr>
                                
                                {if $user->can_access("badguys")}» <a href="send_message.php?{$SID}">Benachrichtung versenden</a><br />{/if}
                                {if $user->can_access("accounts_admin") || $user->can_access("accounts_admin_restricted")}» <a href="accounts_admin.php?{$SID}">Account-Administration</a><br />{/if}
                                {if $user->can_access("settings_admin")}» <a href="settings_admin.php?{$SID}">Einstellungen</a><br />{/if}
                                {if $user->can_access("betastatus_admin")}» <a href="betastatus_admin.php?{$SID}">Beta-Status ändern</a><br />{/if}
                                {if $user->can_access("screenshots_admin")}» <a href="screenshots_admin.php?{$SID}">Screenshots bearbeiten</a><br />{/if}
                                {if $user->can_access("faqs_admin")}» <a href="faq_admin.php?{$SID}">FAQs bearbeiten</a><br />{/if}
                                {if $user->can_access("templates_admin")}» <a href="templates_admin.php?{$SID}">Templates bearbeiten</a><br />{/if}
                                {if $user->can_access("wep_admin")}» <a href="wep_admin.php?{$SID}">WEPs bearbeiten</a><br />{/if}
                                {if $user->can_access("user_gallery_admin")}» <a href="user_gallery_admin.php?{$SID}">Benutzerbilder freischalten</a><br />{/if}
                            	{if $user->can_access("applications")}» <a href="applications_admin.php?{$SID}">Bewerbungen bearbeiten</a><br />{/if}
                            	{if $user->can_access("patcher")}» <a href="patch_admin.php?{$SID}">Patch-Administration</a><br />{/if}
                            </td>
						</tr>
					</table>
                    <hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}"></hr>
                    {/if}

                    <table width="100%">
						<tr>
							<td align="center" class="small">
                                <b>Random Screenshot</b>
                                <br />
								<a href="javascript:open_popup('screenshots.php?imgID={$rand_screen.screenshotID}&amp;{$SID}','screenshot',{$rand_screen_img_size.0+6},{$rand_screen_img_size.1+150})">
									<img src="images/screenshots/thumb{$rand_screen.screenshotID}.gif" width="{$rand_screen_thumb_size[0]}" height="{$rand_screen_thumb_size[1]}" style="border:1px solid {$style.bordercolor}" alt="{$rand_screen.title}" />
								</a>
                                <br />
								<a href="screenshots.php?{$SID}">Weitere Screenshots?</a>
							</td>
						</tr>
					</table>
				</td>
				<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
			</tr>
			<tr>
				<td style="background-color: {$style.bordercolor}" valign="top" colspan="7"><img src="images/spacer.gif" height="1" width="1" alt="" /></td>
			</tr>
			<tr>
				<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="20" width="1" alt="" /></td>
				<td width="140" style="background-color: {$style.bg_2}; text-align:center;">
					<form action="{php}echo $_SERVER['REQUEST_URI'];{/php}" method="post" name="stylechange" style="margin:0;">
						<input type="hidden" name="sid" value="$session[id]" />
						<select name="style_id" class="list_form">
                        {html_options options=$styles selected=$style.styleID}
                        </select>
						<input type="submit" name="chg_style" value="GO" class="button_form" />
					</form>
				</td>
				<td valign="top" style="background-color: {$style.bordercolor}"><img src="images/spacer.gif" height="15" width="1" alt="" /></td>
				<td width="640" style="background-color: {$style.bg_2}" valign="middle" align="right">
					<a href="#"><img src="images/top.gif" border="0" alt="nach oben" /></a>
					 
				</td>
				<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="15" width="1" alt="" /></td>
				<td width="200" class="navtitel" style="font-weight: normal; background-color: {$style.bg_2};" align="right"> </td>
				<td style="background-color: {$style.bordercolor}" valign="top"><img src="images/spacer.gif" height="15" width="1" alt="" /></td>
			</tr>
		</table>
	</body>
{include file="footer.tpl"}
