<div class="Tab1Header">
	<div class="padt10 padr15">
		<h1>[{t}]menu_My_member_My_profile[{/t}] | [{t}]menu_My_member_Languages[{/t}]</h1>
		<hr/>
	</div>
</div>
<div class="Tab1Content" id="[{$id}]">
	<div class="cpad">
		[{$MyProfileMenu}]
		[{if $bLoggedIn}]
			<p>[{t escape="noescape"}]myprofilepage_My_languages_intro[{/t}]</p>
			<center>
			<input type="button" class="minismb" value="&laquo; [{t}]myprofilepage_Clear_all_languages[{/t}]" onclick="ClearAllLanguages('[{$id}]');" />
			<input type="button" class="minismb" value="[{t escape=attr}]myprofilepage_Add_all_languages[{/t}] &raquo;" onclick="AddAllLanguages('[{$id}]');" /><br/>
			</center>
			<br/>
			<div class="FEWHTBox SelLanguages">
				<div class="whthdr">[{t}]myprofilepage_My_languages[{/t}]</div>
				<div class="whtcnt">
					<ul id="[{$id}]_selected_languages" class="sortable mylangs">
						[{foreach from=$selected_languages item=sel_lang_id}]
						<li class="ui-state-highlight" id="lang_[{$sel_lang_id}]">[{$languages.$sel_lang_id}]</li>
						[{/foreach}]
					</ul>
				</div>
			</div>
			<div class="FEWHTBox UnselLanguages">
				<div class="whthdr">[{t}]myprofilepage_All_languages[{/t}]</div>
				<div class="whtcnt">
					<ul id="[{$id}]_unselected_languages" class="sortable">
						[{foreach from=$languages key=lang_id item=language}]
						[{if !in_array( $lang_id , $selected_languages ) }]
						<li class="ui-state-highlight" id="lang_[{$lang_id}]">[{$language}]</li>
						[{/if}]
						[{/foreach}]
					</ul>
				</div>
			</div>
			<div class="clr"></div><br/>

			<form name="frm_my_languages" method="post" action="[{$url_amp_self}]" onsubmit="return ValidateMyLanguagesSubmit( '[{$id}]' , this );">
				[{$native_language}]<br/>

				[{include file="MemberWidget.normal_submit.tpl"}]
				<input type="hidden" name="[{$id}]_retval" id="[{$id}]_retval" value="" />
			</form>
		[{/if}]
	</div>
</div>
