<?xml version="1.0" encoding="{lang mkey='ENCODING'}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{strip}
<head>
{if $title != '' }
	<title>{$title} {if $page_title ne ""}- {$page_title}{/if}</title>
{elseif $config.site_title ne '' }
	<title>{$config.site_title|stripslashes} {if $page_title ne ""}- {$page_title}{/if}</title>
{else}
	<title>{lang mkey='title'} {if $page_title ne ""}- {$page_title}{/if}</title>
{/if}
<meta http-equiv="Content-Type" content="text/html; charset={lang mkey='ENCODING'}" />
<meta name="keywords" content="{$config.meta_keywords}" />
<meta name="description" content="{$config.meta_description}" />

<script type="text/javascript">
/* <![CDATA[ */
var loadingTag = "{lang mkey='loading'}";
var modeRewrite = "{$config.enable_mod_rewrite}";
var docRoot = "{$smarty.const.DOC_ROOT}";
var alphanumeric_chars = "{lang mkey='alphanumeric'}";
var alphanum_chars = "{lang mkey='alphanum'}";
var text_chars = "{lang mkey='text'}";
var full_chars = "{lang mkey='full_chars'}";

{if $config.use_popups == 'N'}
var use_popups = false;
{else}
var use_popups = true;
{/if}
{if $config.use_profilepopups == 'N'}
var use_profilepopups = false;
{else}
var use_profilepopups = true;
{/if}
/* ]]> */
</script>

<link href="{$css_path}default.css" rel="stylesheet" type="text/css" />
{include file="xhtml.css.tpl"}
{$addtional_css}
<script type="text/javascript" src="{$DOC_ROOT}javascript/functions.js"></script>
<script type="text/javascript" src="{$DOC_ROOT}javascript/check.js"></script>
<script type="text/javascript" src="{$DOC_ROOT}javascript/validate.js"></script>
{if $config.enable_shoutbox == 'Y' or $config.enable_shoutbox == '1'}
	<script type="text/javascript" src="{$DOC_ROOT}javascript/shoutbox.js"></script>
{/if}

{$addtional_javascript}
<script type="text/javascript">
/* <![CDATA[ */
function insufficientPrivileges(){ldelim}
	alert("{lang mkey='insufficientPrivileges'}");
	return false;
{rdelim}

function newvalidateLogin(newform)
{ldelim}
	if (newform.txtusername.value == '') {ldelim}
		alert("{lang mkey='signup_js_errors' skey='username_noblank'}");
		return false;
	{rdelim}
	if (newform.txtpassword.value == '') {ldelim}
		alert("{lang mkey='signup_js_errors' skey='password_noblank'}");
		return false;
	{rdelim}
{rdelim}
/* ]]> */
</script>
</head>
<body  dir="{lang mkey='DIRECTION'}" {if $google_map eq 'Y'}onload="load_map()"{/if}>

<center>
<!-- Header portion  -->
<div class="main_outer_table" style="width:779px;" >
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="headbg">
		<tr>
		{ if $config.site_logo != ''}
			<td width="544" valign="bottom">
				<img src="{$config.site_logo}" alt="" />
			</td>
		{else}
			<td width="244" valign="bottom" >
				  &nbsp;<a href="index.php" class="main_title">{$config.site_name|stripslashes}</a>
			</td>
			<td width="300" valign="top" align="center">
				<table width="344" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td>
							<img src="{$image_dir}b_02.jpg" width="86" height="50" alt="" /></td>
						<td>
							<img src="{$image_dir}b_03.jpg" width="86" height="50" alt="" /></td>
						<td>
							<img src="{$image_dir}b_04.jpg" width="86" height="50" alt="" /></td>
						<td>
							<img src="{$image_dir}b_05.jpg" width="86" height="50" alt="" /></td>
					</tr>
					<tr>
						<td>
							<img src="{$image_dir}b_12.jpg" width="86" height="49" alt="" /></td>
						<td>
							<img src="{$image_dir}b_13.jpg" width="86" height="49" alt="" /></td>
						<td>
							<img src="{$image_dir}b_14.jpg" width="86" height="49" alt="" /></td>
						<td>
							<img src="{$image_dir}b_15.jpg" width="86" height="49" alt="" /></td>
					</tr>
					<tr>
						<td>
							<img src="{$image_dir}b_18.jpg" width="86" height="50" alt="" /></td>
						<td>
							<img src="{$image_dir}b_19.jpg" width="86" height="50" alt="" /></td>
						<td>
							<img src="{$image_dir}b_20.jpg" width="86" height="50" alt="" /></td>
						<td>
							<img src="{$image_dir}b_21.jpg" width="86" height="50" alt="" /></td>
					</tr>
					<tr>
						<td>
							<img src="{$image_dir}b_22.jpg" width="86" height="7" alt="" /></td>
						<td>
							<img src="{$image_dir}b_23.jpg" width="86" height="7" alt="" /></td>
						<td>
							<img src="{$image_dir}b_24.jpg" width="86" height="7" alt="" /></td>
						<td>
							<img src="{$image_dir}b_25.jpg" width="86" height="7" alt="" /></td>
					</tr>
				</table>

			</td>
		{/if}
			<td width="230" valign="top">
				<table width="230" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td>
							<img src="{$image_dir}box_06.jpg" width="14" height="19" alt="" /></td>
						<td>
							<img src="{$image_dir}box_07.jpg" width="195" height="19" alt="" /></td>
						<td>
							<img src="{$image_dir}box_08.jpg" width="21" height="19" alt="" /></td>
					</tr>
					<tr>
						<td>
							<img src="{$image_dir}box_09.jpg" width="14" height="117" alt="" /></td>
						<td align="center" class="headbgbox">
							{include file="searchprofile.tpl"}
						</td>
						<td>
							<img src="{$image_dir}box_11.jpg" width="21" height="117" alt="" /></td>
					</tr>
					<tr>
						<td>
							<img src="{$image_dir}box_22.jpg" width="14" height="20" alt="" /></td>
						<td>
							<img src="{$image_dir}box_23.jpg" width="195" height="20" alt="" /></td>
						<td>
							<img src="{$image_dir}box_24.jpg" width="21" height="20" alt="" /></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="loginbarbg">
		<tr>
			<td colspan="4"><img src="{$image_dir}menuline1.jpg" width="779" height="6" alt="" /></td>
		</tr>
		<tr>
			<td height="35" width="154"><img src="{$image_dir}big_arrow.jpg" alt="" /></td>
			<td height="33" width="575">
				{if $smarty.session.UserId == ''}
				  <form name="frmLogin" method="post" action="midlogin.php" onsubmit="javascript: return newvalidateLogin(this);" >
					<table width="100%" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}" border="0">
						<tr>
							<td>
								<b>{lang mkey='members_login'}</b>&nbsp;
									<img src="{$image_dir}blue_box.gif" width="2" height="10" alt="" />&nbsp;
								{lang mkey='signup_username'}&nbsp;
								<input class="input" maxlength="25" name="txtusername" size="8" style='font-size:9pt;width:70px' />&nbsp;&nbsp;
								{lang mkey='signup_password'}&nbsp;
								<input class="input" type="password" name="txtpassword" size="8" style='font-size:9pt;width:70px' />&nbsp;
								<input type="submit" value="{lang mkey='login_submit'}" class='formbutton' />&nbsp;
								<a href='signup.php'>{lang mkey='register'}</a>
							</td>
						</tr>
					</table>
				  </form>
				{else}
					<strong>{lang mkey='welcome'},&nbsp;{$smarty.session.FullName|stripslashes} &nbsp;({$smarty.session.UserName})</strong>
				{/if}
			</td>
			<td height="33" width="40" align="right" valign="middle">
			{if $smarty.session.security.extsearch == 1  and $smarty.session.expired != '1' and ( $smarty.session.status == $lang.status_enum.active or $smarty.session.status == 'Active') }
				<a href="advsearch.php"><img src="{$image_dir}search_icon.gif" border="0" width="18" height="18" alt="" /></a>&nbsp;
			{/if}
				<a href="index.php"><img src="{$image_dir}homepage_icon.gif" border="0" width="18" height="18" alt="" /></a>
			</td>
			<td height="33" width="10"></td>
		</tr>
	</table>
	<div style="margin-top: 2px;">
		<div style="width: 178px; vertical-align:top;float:left;" align="left">
		<!-- Leftside Menu   -->
			{include file="leftcolumn.tpl"}
		</div>
<!-- Rendered page -->
		<div align="left" style="width:597px; vertical-align:top; float:left; padding-left: 4px;">
			{$rendered_page}
			<br />
			{$modosdate_main}
			<br />
        </div>
	</div>
	<div style="clear:both;"></div>
<!--  Footer   -->
	{include file="banner_mainpage.tpl"}
	<br /><br />
	{include file="footer.tpl"}
</div>
</center>
<script type="text/javascript">
	updateOnlineTime();
{if $smarty.session.UserId <= 0}
	updateOnlineCount();
{/if}
</script>
{closedb}
</body>
</html>
{/strip}
