{if $view_common_languages|@count>1}
<div class="dropdown pull-left">
     <a class="dropdown-toggle languagebox_head" data-toggle="dropdown" id="{$AjaxCurrLanguage}">
  <img src="{$view_public_path}/uploads/languages/{$view_common_languageImage|escape}" width="22" height="16" alt="{$view_common_languageName}" />
  {$view_common_languageName}</a>
  <ul class="dropdown-menu languageList">
      {foreach from=$view_common_languages item="resCommonLanguages" key="key"}
      {if $currentLanguageID neq $resCommonLanguages.languageID}
       <li> 
          <a href="javascript:void(0);" id="common_language_{$resCommonLanguages.languageID}_{$resCommonLanguages.LanguageLCIDstring}"> <img src="{$view_public_path}/uploads/languages/{$resCommonLanguages.languageImage|escape}" width="22" height="16" alt="{$resCommonLanguages.languageName}" /> {$resCommonLanguages.languageName}</a></li>
              {/if}
      {/foreach}
                </ul>
  </div>
{html->script_group_start name="{$compiled_js_path}/commonlanguageoptions.js"}
   {html->script src="{$common_frontend_js}/language.plugin.js"}
 {html->script_group_end} 
{/if}
