{if $show_languages}
	<!-- Start of Language switcher -->
	<div id="selLang" lang="en" class="clsLangSwitcher">
        <table>
            <tr>
                <td><h3>{$LANG.header_language}: </h3></td>
                <td>
                	{foreach key=key item=value from=$smarty_available_languages}
                		{if $key == $CFG.lang.default}
                			<a class="language" onClick="showHideDiv('showhidelang')" title="{$value}"><img src="{$CFG.site.url}design/css/flag_icon/{$key}.gif" /></a>
                		{/if}
                	{/foreach}
                	<div class="clsLanguageThemePopup" style="display:none" id="showhidelang">
                		<ul id="langlist">
                    		{foreach key=key item=value from=$smarty_available_languages}
                    			{if $key != $CFG.lang.default}
                    				<li><a href="{$header->chooseLang($key)}"><img src="{$CFG.site.url}design/css/flag_icon/{$key}.gif" />&nbsp; {$value}</a></li>
                    			{/if}
                    		{/foreach}
                		</ul>
                	</div>
                </td>
            </tr>
        </table>
	</div>
	<!-- End of Language switcher -->
{/if}