<?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 LINK="#660000" VLINK="#660000" BGCOLOR="#D4CEB6" TEXT="#000000" LEFTMARGIN="0" TOPMARGIN="0"  MARGINWIDTH="0" MARGINHEIGHT="0">
<TABLE WIDTH="779" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER">
 <TR>
  <TD>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#D4CEB6">
    <TR> 
     <TD ALIGN="LEFT"> 
      <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#CCC4AB" HEIGHT="24">
       <TR> 
        <TD WIDTH="20" CLASS="link1"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="20" HEIGHT="1"></TD>
        <TD WIDTH="1" CLASS="link1"><FONT COLOR="#000000">|</FONT></TD>
        <TD CLASS="tab"><A CLASS="link11" HREF="<?=MAIN_PAGE_LINK?>"><FONT COLOR="#660000"><?=MAIN_PAGE?><?if(CountUsersPerPage("_OnlineMainIDs")){?> (<?=_OnlineMainIDs?>)<?}?></FONT></A></TD>
        <TD WIDTH="1" CLASS="link1"><FONT COLOR="#000000">|</FONT></TD>
        <TD CLASS="tab"><A CLASS="link11" HREF="<?=REGISTER_LINK?>"><FONT COLOR="#660000"><?=REGISTER?></FONT></A></TD>
        <TD WIDTH="1" CLASS="link1"><FONT COLOR="#000000">|</FONT></TD>
        <TD CLASS="tab"><A CLASS="link11" HREF="<?=SEARCH_LINK?>"><FONT COLOR="#660000"><?=SEARCH?><?if(CountUsersPerPage("_OnlineSearchIDs")){?> (<?=_OnlineSearchIDs?>)<?}?></FONT></A></TD>
        <TD WIDTH="1" CLASS="link1"><FONT COLOR="#000000">|</FONT></TD>
        <TD CLASS="tab"><A CLASS="link11" HREF="<?=FAQ_LINK?>"><FONT COLOR="#660000"><?=FAQ?><?if(CountUsersPerPage("_OnlineFAQIDs")){?> (<?=_OnlineFAQIDs?>)<?}?></FONT></A></TD>
        <TD WIDTH="1" CLASS="link1"><FONT COLOR="#000000">|</FONT></TD>
        <TD CLASS="tab"><A CLASS="link11" HREF="<?=LINKS_LINK?>"><FONT COLOR="#660000"><?=LINKS?><?if(CountUsersPerPage("_OnlineLinksIDs")){?> (<?=_OnlineLinksIDs?>)<?}?></FONT></A></TD>
        <TD WIDTH="1" CLASS="link1"><FONT COLOR="#000000">|</FONT></TD>
        <TD CLASS="tab"><A CLASS="link11" HREF="<?=STATISTICS_LINK?>"><FONT COLOR="#660000"><?=STATISTICS?><?if(CountUsersPerPage("_OnlineStatIDs")){?> (<?=_OnlineStatIDs?>)<?}?></FONT></A></TD>
        <TD WIDTH="1" CLASS="link1"><FONT COLOR="#000000">|</FONT></TD>
        <TD WIDTH="24" VALIGN="BOTTOM" BGCOLOR="#D4CEB6"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/m.gif" WIDTH="37" HEIGHT="24"></TD>
       </TR>
      </TABLE>
     </TD>
    </TR>
   </TABLE>
   
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" HEIGHT="4">
    <TR> 
     <TD BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/z4.gif"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="4"></TD>
    </TR>
</TABLE>
<TABLE WIDTH="779" BORDER="0" CELLSPACING="0" CELLPADDING="0" HEIGHT="74" BGCOLOR="#CCC4AB" BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/top_bg.jpg">
    <TR> 
     <TD WIDTH="20" ROWSPAN="2" VALIGN="MIDDLE"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="20" HEIGHT="74"></TD>
     <TD WIDTH="143" ROWSPAN="2" VALIGN="MIDDLE"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/logo.gif" WIDTH="249" HEIGHT="43"></TD>
     <TD WIDTH="610" ROWSPAN="2" VALIGN="MIDDLE" ALIGN="RIGHT">&nbsp;</TD>
    </TR>
</TABLE>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" HEIGHT="4">
    <TR> 
     <TD BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/z4.gif"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="4"></TD>
    </TR>
</TABLE>   
<?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>
<?}?>
  <Table bgcolor="#CCC4AB" Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="1" width="<?=C_BWIDTH?>" class=mes>
  <?if(is_numeric(get_info('m'))) {/* If User is Registered - Begin */?>
  <Tr bgcolor="#CCC4AB">
    <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><TD BGCOLOR=#A69E85 HEIGHT="1" colspan=7></TD></TR>  
  <Tr bgcolor="#CCC4AB" class=desc>
    <Td colspan=6>
    <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 width="5%" 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;
</Td>
</Tr>
  <?if(NOTICE) {?><tr align="center" bgcolor="<?=COLOR3?>"><td colspan=7><?=NOTICE?></td></tr><?}?>
 <TR><TD BGCOLOR=#A69E85 HEIGHT="1" colspan=7></TD></TR>
<?}/* If User is Registered - End */?>
  </table>
