<div class="ylNavBar gradient">
	<?php
	if ($tpl['option_arr']['o_seo_url'] == 'No')
	{
		?><a href="<?php echo $_SERVER['SCRIPT_NAME'] . '?controller=pjListings&amp;action=pjActionYachts'; ?>" class="ylBtnHome"><?php __('front_home');?></a><?php
	}else{
		?><a href="<?php echo $_SERVER['PHP_SELF']; ?>" class="ylBtnHome"><?php __('front_home');?></a><?php
	}
	?>
	<form id="frmSearch_<?php echo $index;?>" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" name="frmSearch" method="get">
		<input type="hidden" value="pjListings" name="controller">
		<input type="hidden" value="pjActionYachts" name="action">
		<input type="hidden" value="1" name="listing_search">
		
		<div class="ylSearch">
			<input name="keyword" placeholder="<?php __('front_search');?>" class="ylSearchField" type="text">
			<input type="submit" value="GO" class="ylBtnSearch">
		</div><!-- /.ylSearch -->
	
		<div class="ylNavRadio">
			<ul>
				<li>
					<input id="radio1" type="radio" name="for" value="rent"<?php echo isset($_GET['for']) && $_GET['for'] == 'rent' ? ' checked="checked"' : null; ?> class="ylTypeFilter">
					<label for="radio1"><?php echo $listing_for['rent'];?></label>
				</li>
				<li>
					<input id="radio2" type="radio" name="for" value="sale"<?php echo isset($_GET['for']) && $_GET['for'] == 'sale' ? ' checked="checked"' : null; ?> class="ylTypeFilter">
					<label for="radio2"><?php echo $listing_for['sale'];?></label>
				</li>
			</ul>
		</div><!-- /.ylNavRadio -->
	</form>
	
	<div class="ylRight">
		<a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjListings&amp;action=pjActionSearch" class="ylmenu search"><?php __('front_search');?></a>
		<a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjListings&amp;action=pjActionAccount" class="ylmenu my-account"><?php __('front_my_account');?></a>
		<div class="ylNavSecondary">
			<?php
			if (isset($tpl['locale_arr']))
			{
				if (count($tpl['locale_arr']) > 1)
				{
					$locale_id = $controller->pjActionGetLocale();
					$selected_lang = '';
					$selected_flag = '';
					foreach ($tpl['locale_arr'] as $locale)
					{
						if($locale_id == $locale['id'])
						{
							$selected_lang = pjSanitize::html($locale['title']);
							$selected_flag = PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/'. $locale['file'];
						}
					}
					?>
					<a href="javascript:void(0);" class="ylActive"><img src="<?php echo $selected_flag;?>" alt="" height="11" width="16"/> <?php echo $selected_lang;?></a>
					<ul>
						<?php
						foreach ($tpl['locale_arr'] as $k => $locale)
						{
							$flag = PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/'. $locale['file'];
							?>
							<li>
								<a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?controller=pjListings&amp;action=pjActionSetLocale&amp;locale=<?php echo $locale['id']; ?><?php echo isset($_GET['iframe']) ? '&amp;iframe' : NULL; ?>">
									<img src="<?php echo $flag;?>" alt="" height="11" width="16"/> <?php echo pjSanitize::html($locale['title']); ?>
								</a>
							</li>
							<?php
						}
						?>
					</ul>
					<?php
				} 
			}
			?>
		</div><!-- /.ylNavSecondary -->	
	</div><!-- /.ylRight -->
</div><!-- /.ylNavBar -->