<?php require_once ("includes/arrays.inc.php"); ?>

		
		
<?php
//not logged



if (!isset($_SESSION['userlogged']) OR $_SESSION['userlogged'] == "") 
{ 
    
    
    
    
?>


<div class="clear"></div>
	<div class="main-nav row">
	 <!--<td bgcolor="#bcbcbc">&nbsp;&nbsp;&nbsp;<?php if($PG_TITLE=='register.php'){echo '<font color="#000000"><b>Sign Up!</b></font>';}else{ echo '<a href="register.php"><b>Sign Up!</b></a>';}?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php if($PG_TITLE=='search.php'){echo '<font color="#000000"><b>Search/Browse</b></font>';}else{ echo '<a href="search.php"><b>Search/Browse</b></a>';}?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php if($PG_TITLE=='tell_a_friend.php'){echo '<font color="#000000"><b>Tell a Friend</b></font>';}else{ echo '<a href="tell_a_friend.php"><b>Tell a Friend</b></a>';}?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php if($PG_TITLE=='events.php'){echo '<font color="#000000"><b>Events</b></font>';}else{ echo '<a href="events.php"><b>Events</b></a>';}?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php if($PG_TITLE=='contactus.php'){echo '<font color="#000000"><b>Contact Us</b></font>';}else{ echo '<a href="contactus.php"><b>Contact Us</b></a>';}?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php if($PG_TITLE=='login.php'){echo '<font color="#000000"><b>Sign In</b></font>';}else{ echo '<a href="login.php"><b>Sign In</b></a>';}?>
</td>-->

<script>(function(){var bsa=document.createElement('script');bsa.type='text/javascript';bsa.async=true;bsa.src='//s3.buysellads.com/ac/bsa.js';(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);})();</script>


	<nav id="nav" role="navigation"  id="nav" role="navigation">
		<a href="#nav" title="Show navigation">Show navigation</a>
		<a href="#" title="Hide navigation">Hide navigation</a>
	
		<?php if($PG_TITLE=='events.php' || $PG_TITLE=='contests.php'){$events='active';} ?>
		<ul class="clearfix">
			<?php if($PG_TITLE=='register.php'){echo '<li class="active">Sign Up!</li>';}else{ echo '<li><a href="register.php">Sign Up!</a></li>';}?>
			<?php if($PG_TITLE=='search.php'){echo '<li class="active">Search/Browse</li>';}else{ echo '<li><a href="search.php">Search/Browse</a></li>';}?>
			<?php if($PG_TITLE=='tell_a_friend.php'){echo '<li class="active">Tell A Friend</li>';}else{ echo '<li><a href="tell_a_friend.php">Tell A Friend</a></li>';}?>
			<li class="<?php echo $events;?>"><?php if($PG_TITLE=='events.php' || $PG_TITLE=='contests.php'){echo '<a id="searchlink_short2" rel="subcontent_short2" aria-haspopup="true"><span>Events</span></a>';}else{ echo '<a  id="searchlink_short2" rel="subcontent_short2" aria-haspopup="true"><span>Events</span></a>';}?>
				<ul>
					<li><a href="events.php">Singles Events</a></li>
					<li><a href="contests.php">Monthly Contests</a></li>
				</ul>
			</li>
			<?php if($PG_TITLE=='contactus.php'){echo '<li class="active">Contact Us</li>';}else{ echo '<li><a href="contactus.php">Contact Us</a></li>';}?>
			<?php if($PG_TITLE=='login.php'){echo '<li class="active">Sign In</li>';}else{ echo '<li><a href="login.php">Sign In</a></li>';}?>
		</ul>
	
	</nav>
</div>
<div class="clear"></div>

<?php
}//end if
else
{  $inboxcount= $objM->get_message_count("NN", $_SESSION['user_id'], true);

  $inboxcountlabel = ($inboxcount)?'<p class="receved_msg_cont">'.$inboxcount.'</p>':'';

?>
<div class="clear"></div>
<div class="main-nav row">
	<nav id="nav" role="navigation">
		<a href="#nav" title="Show navigation">Show navigation</a>
		<a href="#" title="Hide navigation">Hide navigation</a>
            <ul class="clearfix">
				<?php if($PG_TITLE=='index.php') {$index='active';}
					if($PG_TITLE=='myprofile.php'){$myprofile='active';}
					if($PG_TITLE=='search.php') {$search='active';}
					if($PG_TITLE=='my_backgroundcheck.php'){$background='active';}
					if($PG_TITLE=='my_hots.php') {$myhots='active';}
					if($PG_TITLE=='msg_recieved.php' || $PG_TITLE=='msg_sent.php'){$msgrec='active';}
					if($PG_TITLE=='tell_a_friend.php') {$tellfriend='active';}
					if($PG_TITLE=='events.php' || $PG_TITLE=='contests.php'){$events='active';}
					if($PG_TITLE=='contactus.php'){$contacts='active';}
				?>
            <li class="<?php echo $index;?>"><?php if($PG_TITLE=='index.php'){echo 'Home';$active='active';}else{ echo '<a href="index.php">Home</a>';}?></li>
            <li class="<?php echo $myprofile;?>"><?php if($PG_TITLE=='myprofile.php'){echo 'My Profile'; $active='active';}else{ echo '<a href="myprofile.php">My Profile</a>';$active='active';}?></li>
            <li class="<?php echo $search;?>"><?php if($PG_TITLE=='search.php'){echo 'Search/Browse';}else{ echo '<a href="search.php">Search/Browse</a>';}?></li>
			
			<li class="<?php echo $myhots;?>"> <?php if($PG_TITLE=='my_hots.php'){echo 'My Hot List';}else{ echo '<a href="my_hots.php">My Hot List</a>';}?></li>
            <li><a <?php if($objM->checkPremiumPermission("true")){ ?>href="#" onClick="javascript:launchchatbox();" <?php } else  {?>href="myprofile.php"<?php } ?>>Chat</a></li>
            <li class="<?php echo $msgrec;?>"><?php if($PG_TITLE=='msg_recieved.php' || $PG_TITLE=='msg_sent.php'){echo '<a href="msg_recieved.php?type=_N" id="searchlink_short" rel="subcontent_short">Inbox'.$inboxcountlabel.'</a>';}else{ echo '<a href="msg_recieved.php?type=_N" id="searchlink_short" rel="subcontent_short">Inbox'.$inboxcountlabel.'</a>';}?></li>
            <li class="<?php echo $tellfriend;?>"><?php if($PG_TITLE=='tell_a_friend.php'){echo 'Tell a Friend';}else{ echo '<a href="tell_a_friend.php">Tell a Friend</a>';}?></li>
            <li class="<?php echo $events;?>"><?php if($PG_TITLE=='events.php' || $PG_TITLE=='contests.php'){echo '<a id="searchlink_short2" rel="subcontent_short2" aria-haspopup="true">Events</a>';}else{ echo '<a id="searchlink_short2" rel="subcontent_short2" aria-haspopup="true"><span>Events</span></a>';}?>
				<ul>
					<li><a href="events.php">Singles Events</a></li>
					<li><a href="contests.php">Monthly Contests</a></li>
				</ul>
			</li>
            <li class="<?php echo $contacts;?>"> <?php if($PG_TITLE=='contactus.php'){echo 'Contact Us';}else{ echo '<a href="contactus.php">Contact Us</a>';}?></li>
        </ul>
					
</div>

<?php
}//end else
?>
</div>