<!-- langiages selector block -->

{if $languages|@count > 1}

<div id="languages">
	<div class="current"><img class="flag" title="{$languages[$smarty.const.RL_LANG_CODE].name}" src="{$rlTplBase}img/blank.gif" style="background-image: url({$rlTplBase}img/flags/{$smarty.const.RL_LANG_CODE|lower}.png)" longdesc="{$rlTplBase}img/x2/flags/{$smarty.const.RL_LANG_CODE|lower}.png" alt="" /><img class="arrow" src="{$rlTplBase}img/blank.gif" alt="" /></div>
	<ul class="list">
		{foreach from=$languages item=lang_code}
			{if $lang_code.Code != $smarty.const.RL_LANG_CODE}
				<li class="item">
					<a title="{$lang_code.name}" href="{$rlBaseLang}{if $config.mod_rewrite}{$lang_code.dCode}{$pageLink}{else}index.php?language={$lang_code.Code}{/if}">
						<img class="flag" title="{$lang_code.name}" src="{$rlTplBase}img/blank.gif" style="background-image: url({$rlTplBase}img/flags/{$lang_code.Code|lower}.png)" longdesc="{$rlTplBase}img/x2/flags/{$lang_code.Code|lower}.png" alt="{$lang_code.name}" />
					</a>
				</li>
			{/if}
		{/foreach}
	</ul>
</div>

{/if}

<!-- langiages selector block end -->