<?php if(!defined("C_URL")) die('Can`t access file directly!'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<html dir=<?=C_HTML_DIR?>>
<head>
<title><?=C_TITLE?></title>
<link rel="stylesheet" type="text/css" href="<?=C_URL?>/templates/<?=C_TEMP?>/style.css">
<META name=robots content=all>
<META HTTP-EQUIV="Expires" Content="0">
<meta http-equiv=Content-Type content="text/html; charset=<?=C_CHARSET?>">
<meta name=Copyright content="<?=C_SNAME?>">
<meta name=Author content="AzDG.com">
<META name=description content="<?=C_DESCRIPTION?>">
<META name=keywords content="<?=C_KEYWORDS?>">
<script>
<!-- 
function open_win(win_file, win_title) {
  window.open(win_file, win_title, 'width=<?=C_WIN_WIDTH?>,height=<?=C_WIN_HEIGHT?>,toolbar=no,scrollbars=yes,location=no,menubar=no,status=no,resizable=yes');
}
-->
</script>
<?if(MyID()) {?>
<script type="text/javascript" src="<?=C_URL?>/templates/<?=C_TEMP?>/user_menu.js"></script>
<style type="text/css" media="screen, projection">
@import "<?=C_URL?>/templates/<?=C_TEMP?>/user_menu.css";
</style>
<?}?>
</head>
<body bgcolor=#BDD3F4 leftmargin=0 topmargin=0>
<center>
<Table border="1" cellspacing="0" cellpadding="0" bordercolor="<?=C_TBCOLOR?>" bgcolor="<?=COLOR2?>">
<tr>
  <td width="740" height="94" align=left><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/logo.jpg" border="0" height="94" width="180" alt="AzDGDating" align="Left">

<?show_banners()?>

  </td>
</tr>
</table>
<Table CellSpacing="<?=C_BORDER?>" CellPadding="0" width="<?=C_BWIDTH?>" bgcolor="<?=C_TBCOLOR?>" align=center>
<Tr>
  <Td>
  <Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="1" width="<?=C_BWIDTH?>" class=mes>
  <?show_languages()?>
  <Tr bgcolor="<?=COLOR2?>">
    <Td align="center">
    <a href="<?=MAIN_PAGE_LINK?>" class=menu><?=MAIN_PAGE?><?if(CountUsersPerPage("_OnlineMainIDs")){?> (<?=_OnlineMainIDs?>)<?}?></a>	|
    <a href="<?=REGISTER_LINK?>" class=menu><?=REGISTER?></a>   |
    <a href="<?=SEARCH_LINK?>" class=menu><?=SEARCH?><?if(CountUsersPerPage("_OnlineSearchIDs")){?> (<?=_OnlineSearchIDs?>)<?}?></a>	 |
	<a href="<?=FAQ_LINK?>" class=menu><?=FAQ?><?if(CountUsersPerPage("_OnlineFAQIDs")){?> (<?=_OnlineFAQIDs?>)<?}?></a>		   |

  	<A CLASS="menu" HREF="<?=LINKS_LINK?>"><?=LINKS?><?if(CountUsersPerPage("_OnlineLinksIDs")){?> (<?=_OnlineLinksIDs?>)<?}?></A> |

	<a href="<?=STATISTICS_LINK?>" class=menu><?=STATISTICS?><?if(CountUsersPerPage("_OnlineStatIDs")){?> (<?=_OnlineStatIDs?>)<?}?></a>
    </td>
  </tr>
  </table>
  </Td>
</Tr>
</table>
  
  <?if(is_numeric(get_info('m'))) {/* If User is Registered - Begin */?>
<Table CellSpacing="0" CellPadding="1" width="<?=C_BWIDTH?>" bgcolor="<?=C_TBCOLOR?>" align=center>
<Tr>
  <Td>
  <Table Border=0 CellSpacing="0" CellPadding="2" width="<?=C_BWIDTH?>" class=mes>  
  <?if (IsAccess(C_AJAX_MSGINF) && C_HAVE_MESSAGE && MyID() > 0) {?>
<script language="JavaScript" src="<?=C_URL?>/classes/Ajax.js"></script>
<script>
	var newmsg = <?=NEWMSG?>;
	function SRA() {
		var req = new Ajax();
		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				if (req.resp) {
					document.getElementById('newmsg').innerHTML = req.resp.newmsg;
					document.getElementById('newicon').innerHTML = req.resp.icon;
					//document.getElementById('num').innerHTML = req.resp.num;
					if(req.resp.num > newmsg) {
						<?if(get_info('imsound')){?>
						document.getElementById('num').innerHTML = '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="1" height="1" name="chat" src="<?=C_URL?>/templates/<?=C_TEMP?>/images/chat.swf" bgcolor="#660000" quality="high" swLiveConnect="false" allowScriptAccess="samedomain" loop=false></embed>';
						<?}?>

					} else document.getElementById('num').innerHTML = '';
					newmsg = req.resp.num;
				}
			}
		}
		//req.caching = false;
		req.open(null, '<?=C_URL?>/dl.php', true);
		req.send({ check:'2'});
		setTimeout("SRA()",<?=C_MSGINF_SEC*1000?>)	;
	}
	setTimeout("SRA()",<?=C_MSGINF_SEC*1000?>)	;
</script>
<?}?>
  <Tr bgcolor="<?=COLOR1?>" class=desc>
    <Td colspan=7>
    <?=MEMBERS_MENU?> : <?=MEMBER_NAME?> <?=MEMBER_TYPE?>
    <sup><span id=newicon><?=NEW_ICON?></span><span id=num></span><a href="<?=VIEW_MESSAGES_LINK?>" class=menu><span id=newmsg><?=YOU_HAVE_NEW_MESSAGE?></span></a></sup> 
    </Td>
  </Tr>    
  <Tr bgcolor="#73AED2" class=desc>
    <Td colspan=6 width=95%>
    <ul id="Menu">
<li id="AB"><a href="#" style="color:#000"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/messages.gif" WIDTH="16" HEIGHT="16" style="border-style: none;vertical-align: middle;padding-bottom: 2px;	padding-top: 1px;	margin-top: -2px;"> <?=VIEW_MESSAGES?></a>
				<ul>
					<li><a class=link3 href="<?=VIEW_MESSAGES_LINK?>"><?=VIEW_MESSAGES?></a></li>
					<li><a class=link3 href="<?=ADDRESS_BOOK_LINK?>"><?=ADDRESS_BOOK?></a></li>
				</ul>
			</li>
			<li id="AB"><a href="#" style="color:#000"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/mydata.gif" WIDTH="16" HEIGHT="16" style="border-style: none;vertical-align: middle;padding-bottom: 2px;	padding-top: 1px;	margin-top: -2px;"> <?=MY_DATA?></a>
				<ul>
					<li><a class=link3 href="<?=MY_PROFILE_LINK?>"><?=MY_PROFILE?></a></li>
					<?if(IsAccess(C_WHO_SEEN_OWN)){?><li><a class=link3 href="<?=WHO_SEEN_MY_PROFILE_LINK?>"><?=WHO_SEEN_MY_PROFILE?></a></li><?}?>					
					<li><a class=link3 href="<?=CHANGE_PROFILE_LINK?>"><?=CHANGE_PROFILE?></a></li>

					<?if (C_REMOVE_ALLOW) {?><li><a class=link3 href="<?=REMOVE_PROFILE_LINK?>"><?=REMOVE_PROFILE?></a></li><?}?>
				</ul>
			</li>
			<li id="AB"><a href="#" style="color:#000"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/search.gif" WIDTH="16" HEIGHT="16" style="border-style: none;vertical-align: middle;padding-bottom: 2px;	padding-top: 1px;	margin-top: -2px;"> <?=SEARCH?></a>
				<ul>
					<li><a class=link3 href="<?=ALL_USERS_LINK?>"><?=ALL_USERS?></a></li>
					<li><a class=link3 href="<?=ONLINE_LINK?>"><?=USERS_ONLINE?></a></li>
					<li><a class=link3 href="<?=VISITED_PROFILES_LINK?>"><?=VISITED_PROFILES?></a></li>
					<li><a class=link3 href="<?=MATCHMAKER_LINK?>"><?=MATCHMAKER?></a></li>
				</ul>
			</li>
			<li id="AB"><a href="#" style="color:#000"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/options.gif" WIDTH="16" HEIGHT="16" style="border-style: none;vertical-align: middle;padding-bottom: 2px;	padding-top: 1px;	margin-top: -2px;"> <?=OPTIONS?></a>
				<ul>
					<?if(IsAccess(C_OPTIONS)) {?><li><a class=link3 href="<?=OPTIONS_LINK?>"><?=OPTIONS?></a></li><?}?>
					<li><a class=link3 href="<?=CHANGE_PASSWORD_LINK?>"><?=CHANGE_PASSWORD?></a></li>
					<li><a class=link3 href="<?=BANLIST_LINK?>"><?=BANLIST?></a></li>
					<li><a class=link3 href="<?=MY_FAVORITES_LINK?>"><?=MY_FAVORITES?></a></li>
				</ul>
			</li>		
			</ul>
</Td>
	    <Td align=right>
			<div align=right><a href="<?=EXIT_LINK?>"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/exit.png" alt="<?=EXIT_FROM?>" width="16" height="16" border="0"></a> &nbsp;</div>
</Td>
</Tr>
<?if(NOTICE) {?>
<tr align="center" bgcolor="<?=COLOR1?>"><td colspan=7>
<?=NOTICE?>
</td></tr>                      
<?}?>
  </table>
  </Td>
</Tr>
</table>
<?}/* If User is Registered - End */?>
<div align=center>