{if 1}
<div class="pr_text">
<div >
<!-- begin personal info -->
<div >
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	{assign var="tmp" value=0}
	{foreach item=element from=$elements name=foo}
            {*if $element.page_position == 1*}
            {if $tmp != $element.page}
            {if $count is not even && $count ne 0}
            <td></td></tr>
            {/if}
                {assign var="count" value=0}
                <tr valign="middle">
                    <td height="25" colspan="2">
                        <h3 class="p-b5">{$lang.users.page[$element.page]}</h3>
                    </td>
                </tr>

                {assign var="tmp" value=$element.page}
            {/if}
            {if $element.value ne "" || $element.value_1 ne "" || $element.value_2 ne "" || $element.value_3 ne "" || $element.couple_value ne "" || $element.couple_value_1 ne 0 || $element.couple_value_2 ne 0 ||  $element.couple_value_3 ne 0}
                {if $element.couple eq 0}
                    {if $count is even}<tr>{/if}

                    <td width="50%" style="padding: 10px 5px;" class="text" align="{$default_left}">
                        <table width="100%">
                            <tr>
                                {if $element.category eq 'interests'}
									<td width="160px">
										{if $element.value ne ""}
											{*$lang.profile.i*}{$element.name}&nbsp;
										{/if}
									</td>
									<td>
										{if $element.value ne ""}
											<img src="{$site_root}{$template_root}{$template_images_root}/int_{$element.value}.png" alt="{$element.lang_value}" align="middle">
										{/if}
									</td>
                                {/if}
                                {if $element.category eq 'partner_interests'}
                                <td width="160px;" style="padding-bottom: 5px;" class="text" align="{$default_left}">
                                        {$lang.profile.soulmate}&nbsp;
								</td>
								<td width="20px" style="padding-bottom: 5px;" class="text" align="{$default_left}">
                                        {if $element.value_1 eq 1}<img src="{$site_root}{$template_root}{$template_images_root}/int_1.png" alt="{$lang.interests_opt.1}" align="middle">{/if}
                                        {if $element.value_2 eq 1}<img src="{$site_root}{$template_root}{$template_images_root}/int_2.png" alt="{$lang.interests_opt.2}" align="middle">{/if}
                                        {if $element.value_3 eq 1}<img src="{$site_root}{$template_root}{$template_images_root}/int_3.png" alt="{$lang.interests_opt.3}" align="middle">{/if}                                   
                                </td>
								<td>									
                                    &nbsp;{$element.name}
								</td>
                                {/if}
                                {if $element.category ne 'interests' && $element.category ne 'partner_interests'}
                                <td width="160px">
                                       {if $element.category ne 'custom'}
                                            {if $lang.profile[$element.name_for_lang]}
                                                {$lang.profile[$element.name_for_lang]}
                                            {else}
                                                {$element.name_for_lang}
                                            {/if}
                                        {else}
                                            {if $lang.userspr[$element.name_for_lang]}
                                                {$lang.userspr[$element.name_for_lang]}
                                            {else}
                                                {$element.name_for_lang}
                                            {/if}
                                        {/if}
                                    
                                </td>
                                <td>
                                    {if $element.value eq ""}{$lang.ref.none_data}{else}{$element.value}{/if}
                                </td>
                                {/if}
                            </tr>
                        </table>
                    </td>
                    {if $count is not even}</tr>{/if}
                {/if}
                {assign var="count" value=$count+1}
				
                {if $element.couple}
                    {if ($element.couple eq 1 && $prev_couple eq 0) || $element.couple eq 1 && $count eq 1}
                        {if $count is not even}<td></td></tr>{/if}
                        <tr>
                            <td width="50%" style="padding:5px;">
                                <div class="header header_cont" style="height:30px;padding-top:10px;padding-{$default_right}:10px;"><b>{$lang.user.first}</b></div>
                            </td>

                            <td width="50%" style="padding:5px;">
                                <div class="header header_cont" style="height:30px;padding-top:10px;padding-{$default_right}:10px;"><b>{$lang.user.second}</b></div>
                            </td>
                        </tr>
                    {/if}
                    <tr>
                        <td width="50%">
                            <table width="100%">
                                <tr>
									{if $element.category eq 'interests'}
									<td width="60%">
										{if $element.value ne ""}
										<font class="text_head">
											I&nbsp;
											<img src="{$site_root}{$template_root}{$template_images_root}/int_{$element.value}.png" alt="{$element.lang_value}" align="middle">
											&nbsp;{$element.name}
										</font>
										{/if}
									</td>
									{/if}
									{if $element.category eq 'partner_interests'}
										{if $element.value_1 || $element.value_2 ||  $element.value_3}
											{$lang.profile.soulmate}
											&nbsp;
											{if $element.value_1 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_1.png" alt="{$lang.interests_opt.1}" align="middle">{/if}
											{if $element.value_2 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_2.png" alt="{$lang.interests_opt.2}" align="middle">{/if}
											{if $element.value_3 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_3.png" alt="{$lang.interests_opt.3}" align="middle">{/if}
											&nbsp;
											{$element.name}
											{assign var="iter" value=$smarty.foreach.foo.iteration+1}
										{/if}
									{/if}
																	
                                    {if $element.category ne 'interests' && $element.category ne 'partner_interests'}
                                    <td width="60%">
                                        {if $element.category ne 'custom'}
                                            {if $lang.profile[$element.name_for_lang]}
                                                {$lang.profile[$element.name_for_lang]}
                                            {else}
                                                {$element.name_for_lang}
                                            {/if}
                                        {else}
                                            {if $lang.userspr[$element.name_for_lang]}
                                                {$lang.userspr[$element.name_for_lang]}
                                            {else}
                                                {$element.name_for_lang}
                                            {/if}
                                        {/if}
                                        
                                    </td>
                                    <td>
                                        {if $element.value eq ""}{$lang.ref.none_data}{else}{$element.value}{/if}
                                    </td>
                                    {/if}
                                </tr>
                            </table>
                        </td>

                        <td width="50%">
							{if $element.couple_value_1 || $element.couple_value_2 || $element.couple_value_3 || $element.couple}
                            <table width="100%">
                                <tr>
									{if $element.category eq 'interests'}
									<td width="60%">
										{if $element.couple_value ne ""}
										<font class="text_head">
											I&nbsp;
											<img src="{$site_root}{$template_root}{$template_images_root}/int_{$element.couple_value}.png" alt="{$element.couple_lang_value}" align="middle">
											&nbsp;{$element.name}
										</font>
										{/if}
									</td>
									{/if}
									{if $element.category eq 'partner_interests'}
										{if $element.couple_value_1 ne 0 || $element.couple_value_2 ne 0 ||  $element.couple_value_3 ne 0}
										{$lang.profile.soulmate}
										&nbsp;
										
											{if $element.couple_value_1 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_1.png" alt="{$lang.interests_opt.1}" align="middle">{/if}
											{if $element.couple_value_2 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_2.png" alt="{$lang.interests_opt.2}" align="middle">{/if}
											{if $element.couple_value_3 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_3.png" alt="{$lang.interests_opt.3}" align="middle">{/if}
											&nbsp;

											{$element.name}
										
										{assign var="iter" value=$smarty.foreach.foo.iteration+1}
										{/if}
									{/if}
									
                                    {if $element.category ne 'interests' && $element.category ne 'partner_interests'}
                                    <td width="60%">
                                        {if $element.category ne 'custom'}
                                            {if $lang.profile[$element.name_for_lang]}
                                                {$lang.profile[$element.name_for_lang]}
                                            {else}
                                                {$element.name_for_lang}
                                            {/if}
                                        {else}
                                            {if $lang.userspr[$element.name_for_lang]}
                                                {$lang.userspr[$element.name_for_lang]}
                                            {else}
                                                {$element.name_for_lang}
                                            {/if}
                                        {/if}
                                        
                                    </td>
                                    <td>
                                        {if $element.couple_value eq ""}{$lang.ref.none_data}{else}{$element.couple_value}{/if}
                                    </td>
                                    {/if}
                                </tr>
                            </table>
							{/if}
                        </td>
                    </tr>
                {/if}
                {assign var="prev_couple" value=$element.couple}
            {/if}
		{/foreach}
	</table>
</div>
</div>
<!-- end personal info -->
{/if}
{if $form.page eq '6'}
<div class="content_2 content_adult_2">
{if $data_10.user_tags}
<!-- begin tags list -->
<div style="padding-top:10px; padding-{$default_right}:10px; padding-bottom:10px; padding-{$default_left}:10px;">
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr valign="middle"><td height="25" colspan="2"><div class="header header_cont">{$lang.subsection.users_tag_profile}</div><div class="sep"></div></td></tr>
	<tr><td colspan="2">
		{section name=s loop=$data_10.user_tags}
		<a href="{$data_10.user_tags[s].searchlink}" title="{$data_10.user_tags[s].count}">{$data_10.user_tags[s].tag}</a>&nbsp;&nbsp;
		{/section}
	</td></tr>
	</table>
</div>
<div style="height: 1px; margin: 5px 10px" class="delimiter"></div>
<!-- end tags list -->
{/if}
{if $data_10.my_tags}
<!-- begin my tags list -->
<div style="padding-top:10px; padding-{$default_right}:10px; padding-bottom:10px; padding-{$default_left}:10px;">
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr valign="middle"><td height="25" colspan="2"><div class="header header_cont">{$lang.subsection.i_tag_profile}</div><div class="sep"></div></td></tr>
	<tr><td colspan="2">
		{section name=s loop=$data_10.my_tags}
		{$data_10.my_tags[s].tag}&nbsp;<a href="{$data_10.my_tags[s].dellink}"><b>x</b></a>&nbsp;&nbsp;
		{/section}
	</td></tr>
	</table>
</div>
<div style="height: 1px; margin: 5px 10px" class="delimiter"></div>
<!-- end my tags list -->
{/if}
<!-- begin add tag -->
<div style="padding-top:10px; padding-{$default_right}:10px; padding-bottom:10px; padding-{$default_left}:10px;">
<form name="voting" method="post" action="{$form.action}" style="margin:0px">
	<input type="hidden" name="sel" value="addtag">
	<table cellpadding="0" cellspacing="0">
	<tr>
		<td><input type="text" name="tag">&nbsp;</td>
		<td><input type="submit" value="{$lang.tag}"></td>
	</tr>
	</table>
	</form>
</div>
<!-- end add tag -->
</div>
{/if}

{literal}
<script language="JavaScript" type="text/javascript">
  function Iteration(par){
	i= $('#'+par).text();
	i++;
	$('#'+par).text(i);
  }
  </script>
  {/literal}