<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
	<div class="container">
	
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="/"><p style="font-family:Arial; font-size:14px; background:#234763; color:#fff; padding:8px 10px 8px 10px; border-radius:4px; margin-top:-5px; border-radius:4px; line-height:1;"><b>В</b></p></a>
		
<?php if ($my_id):?>		
<ul class="nav nav-pills" style="float:left;">
	<li class="dropdown">
	<?php if ($my_avatar==0):?>
	<a data-toggle="dropdown" style="padding-top:10px; padding-bottom:10px; color:#fff; border-radius:0px; cursor:pointer;"><img id="id_top_avatar" width="30" height="30" src="/img/no_photo/<?php if ($my_sex=='1'):?>girl<?php endif;?><?php if ($my_sex=='2'):?>boy<?php endif;?>.png?r=<?php echo rand(0, 99999); ?>" style="border-radius:100px;" /> <?php echo $my_firstname; ?> <b class="caret"></b></a>
	<?php endif;?>
	<?php if ($my_avatar==1):?>
	<a data-toggle="dropdown" style="padding-top:10px; padding-bottom:10px; color:#fff; border-radius:0px; cursor:pointer;"><img id="id_top_avatar" width="30" height="30" src="/avatar/<?php echo $my_id; ?>.jpg?r=<?php echo rand(0, 99999); ?>" style="border-radius:100px;" /> <?php if ( mb_strlen($info_firstname, 'UTF-8')>11 ) { echo mb_substr($my_firstname, 0, 11, 'UTF-8').'.'; } else { echo $my_firstname; } ?> <b class="caret"></b></a>
	<?php endif;?>
	
		<ul id="menu3" class="dropdown-menu" style="margin-top:0px; border-top:none;">
			<li><a href="/id<?php echo $my_id; ?>" tabindex="-1"><?php echo $lang[22]; ?></a></li>
			<li><a href="/<?php echo $link[5]; ?>" tabindex="-1"><?php echo $lang[23]; ?></a></li>
			<li><a href="/<?php echo $link[6]; ?>" tabindex="-1"><?php echo $lang[24]; ?></a></li>
			<li><a tabindex="-1" onClick="exit();"><?php echo $lang[25]; ?></a></li>
		</ul>
	</li>
</ul>
<?php endif;?>		
		
		</div>		
		
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li><a href="/<?php echo $link[0]; ?>"><?php echo $lang[26]; ?></a></li>
				<li><a href="/<?php echo $link[7]; ?>"><?php echo $lang[27]; ?></a></li>
				<?php if (!$my_id):?>
				<li><a href="/<?php echo $link[3]; ?>"><?php echo $lang[28]; ?></a></li>
				<?php endif;?>
			</ul>	
			
			<form name="top_form" class="navbar-form navbar-right" method="get" action="/<?php echo $link[7]; ?>" role="form">
				<div class="form-group">
					<div class="input-group">
						<span class="input-group-addon" style="border:0px; border-bottom-left-radius:50px; border-top-left-radius:50px; background-color:#5085ad;"><span class="glyphicon glyphicon-search" style="position:absolute; font-size:12px; margin-left:3px; color:#ffffff; padding:8px; padding-left:0px; padding-right:3px; padding-top:9px; background:#5085ad; z-index:3000;"></span></span>
						<input id="id_top_query" name="query" type="text" class="form-control" autocomplete="off" style="background:#5085ad; border:0px; border-radius:25px; border-bottom-left-radius:0px; border-top-left-radius:0px; padding-left:10px; color:#ffffff;" onKeyUp="top_search();" />	
					</div>
				</div>
			</form>
		</div>
		<div id="topsearch" class="top_search" style="background:#fff; border:1px solid #e1e1e8; border-top:0px; border-radius:0px 0px 4px 4px; display:none;">
		<div style="padding:10px 15px 10px 15px; background:#f5f5f5; border-bottom:1px solid #e1e1e8; cursor:pointer;" onClick="top_form.submit();">
		<?php echo $lang[29]; ?> <span class="glyphicon glyphicon-chevron-right" style="float:right; color:#777;"></span>
		</div>
			<div id="top_result" style="padding:15px;"></div>
		</div>
	</div>
</div>