<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
{strip}
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
	<meta http-equiv="Content-Style-Type" content="text/css" />
	<link rel="stylesheet" type="text/css" href="{$site_root}{$template_root}{$template_css_root}/mobile{$mobile_theme_postfix}.css" />
	<title>{$lang.main_title}</title>
</head>
<body>
	{if $registered eq 1}
	<div id="top_user_div">
		<div id="top_user_main">
			<table cellpadding="0" cellspacing="0" id="panel">
				<tr>
					<td align="left">
						<table cellpadding="0" cellspacing="0">
							<tr>
								<td>{$lang.mobile.welcome}</td>
								<td id="top_user_login">{$login}</td>
							</tr>
						</table>
					</td>
					<td><span id="top_user_delimiter">|</span></td>
					<td align="right">
						<table cellpadding="0" cellspacing="0">
							<tr>
								<td id="top_user_messages_text">{$lang.mobile.messages}:</td>
								<td id="top_user_messages_count"><a href="mailbox.php">{$messages_count}</a></td>
							</tr>
						</table>
						{*<span id="top_user_messages_text"></span><span id="top_user_messages_count"></span>*}
					</td>
				</tr>
			</table>
		</div>
		<div id="top_user_menu">
			<div class="top_menu_btn"><a href="homepage.php"><img src="{$site_root}{$template_root}/images/mobile/top_menu_btn_1{if $top_menu_sel eq 1}_sel{/if}.png" alt=""/></a></div>
			<div class="top_menu_btn"><a href="mailbox.php"><img src="{$site_root}{$template_root}/images/mobile/top_menu_btn_2{if $top_menu_sel eq 2}_sel{/if}.png" alt=""/></a></div>
			<div class="top_menu_btn"><a href="search.php"><img src="{$site_root}{$template_root}/images/mobile/top_menu_btn_3{if $top_menu_sel eq 3}_sel{/if}.png" alt=""/></a></div>
			<div class="top_menu_btn"><a href="search.php?sel=search_all"><img src="{$site_root}{$template_root}/images/mobile/top_menu_btn_4{if $top_menu_sel eq 4}_sel{/if}.png" alt=""/></a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	{else}
	<div id="logo_div">
		<img src="{$site_root}{$template_root}/images/mobile/logo.png" alt="" />
	</div>
	{/if}
	<div>
{/strip}