<div>
	{if  $myobj->avatars.displayAvatars.start gt 1}
		<span id="loadingAvatars1">
			<a href="{$myobj->getCurrentUrl()}" onclick="{$myobj->avatars.displayAvatars.showAvatars}">
        		<img src="{$CFG.site.url}/design/templates/{$CFG.html.template.default}/images/rewind.gif" alt="{$LANG.common_paging_previous}" />
			</a>
		</span>
	{else}
		<span>
			<img src="{$CFG.site.url}/design/templates/{$CFG.html.template.default}/images/rewind_grey.gif" alt="{$LANG.common_paging_previous}" />
		</span>
	{/if}
	{if $myobj->avatars.displayAvatars.start eq 1 && isMember() }
    	{if $myobj->avatars.displayAvatars.user_details_arr.photo_server_url && $myobj->avatars.displayAvatars.user_details_arr.photo_ext || $myobj->avatars.displayAvatars.user_details_arr.image_path}
            {if  $myobj->avatars.displayAvatars.img_src}
                <span>
                    <a href="{$myobj->getCurrentUrl()}" onclick="selectAvatar(0); return false;">
                        <img src="{$myobj->avatars.displayAvatars.img_src}" {$myobj->avatars.displayAvatars.attr} alt="{$LANG.existing_image}" />
                    </a>
                </span>
            {/if}
         {/if}
     {/if}
     {foreach key=inc item=value from=$myobj->avatars.displayAvatars.row}
	     <span>
		 	<a href="{$value.url}" onclick="selectAvatar('{$value.url}'); return false;"><img src="{$value.url}" alt="{$value.img_file}"/>
			</a>
		</span>
    {/foreach}
	{if  $myobj->avatars.displayAvatars.start <= $myobj->avatars.displayAvatars.no_of_avatar_img_mins_limit }
		<span id="loadingAvatars2">
			<a href="{$myobj->getCurrentUrl()}" onclick="{$myobj->avatars.displayAvatars.showAvatars1}"><img src="{$CFG.site.url}/design/templates/{$CFG.html.template.default}/images/forward.gif" alt="{$LANG.common_paging_next}" /></a></span>
	{else}
		<span><img src="{$CFG.site.url}/design/templates/{$CFG.html.template.default}/images/forward_grey.gif" alt="{$LANG.common_paging_next}" /></span>
	{/if}
</div>