{if !$ajax}
		{if $user_info.photos}
			<div id="all_photos" style="displat:table;padding: 20px 0 8px;">
				<div class="imgcanvas_container" class="thumb" style="display:none;">
					<!--img class="imgcanvas" id="small_icon" src="{$user_info.small_icon_url}" onclick="javascript: showPhoto('{$user_info.upload_url}','small_icon');" /-->
					<img class="imgcanvas" id="small_icon" onclick="javascript: showPhoto('{$user_info.upload_url}','small_icon');" />
				</div>
				{foreach from=$user_info.photos item=item name=photo}
					<div class="imgcanvas_container" class="thumb">
						<img class="imgcanvas" id="small_photo_{$item.array_index}" src="{$item.small_photo}" onclick="javacript: showPhoto('{$item.photo}','small_photo_{$item.array_index}');"/>
					</div>
				{/foreach}
				{if $user_info.photos_count > 9}
					<div style="display: table; height: 27px; padding: 35px 0 0;">
						<a onclick="next_photo();return false;" id="next-photo" class="photo-icon">&nbsp;</a>&nbsp;
						<a onclick="next_photo();return false;" id="next-photo">{$user_info.photos_count}&nbsp;{$lang.hotornot.more_photos}</a>
					</div>
				{/if}
				<input id="firs_photo_path" type="hidden" value="{$user_info.photos.0.photo}" />
				<input id="photo_count_id" type="hidden" value="{$user_info.photos_count}" />
			</div>
		{/if}
{else}			
		{if $user_photo}
			<div id="all_photos" style="displat:table;padding: 20px 0 8px;">
			<div class="thumb" id="small_icon"></div>	
			{foreach from=$user_photo item=item name=photo}
				<div class="thumb imgcanvas_container">
					<img class="imgcanvas" id="small_photo_{$item.array_index}" src="{$item.small_photo}" onclick="javacript: showPhoto('{$item.photo}','small_photo_{$item.array_index}');"/>
				</div>
			{/foreach}	
			{if $count_photo > 9}<div style="display: table; height: 27px; padding: 35px 0 0;"><a onclick="next_photo();return false;" id="next-photo" class="photo-icon">&nbsp;</a>&nbsp;<a onclick="next_photo();return false;" id="next-photo">{$count_photo}&nbsp;{$lang.hotornot.more_photos}</a></div>{/if}
			</div>
			<input id="firs_photo_path" type="hidden" value="{$user_info.photos.0.photo}" />
			<input id="photo_count_id" type="hidden" value="{$count_photo}" />
		{/if}
{/if}