<% 
posun = strana - 6
if posun > rs.pagecount - 10 then posun = rs.pagecount - 10 end if
if posun < 0 then posun = 0 end if
if rs.pagecount > 6 and rs.pagecount > (10 + posun) then pocet_stran = 10 + posun else pocet_stran = rs.pagecount end if
 %>
<BR>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="10" ALIGN="center" CLASS="str-tabulka" style="margin-right: <%= doporucujeme_sirka %>">
<TR>
<TD ALIGN="center">
<% if strana > 1 then %>
<SPAN CLASS="str-sipka"><A HREF="#" ONCLICK="document.form_filtr.str.disabled = false; document.form_filtr.str.value = '<%= strana - 1 %>'; document.form_filtr.submit(); return false"><IMG SRC="<%= session("cesta_web") %>gfx/bikestore/ik/ik_sipka_l.png" ALT="" WIDTH="32" HEIGHT="32" BORDER="0">Předchozí</A></SPAN>
<% else %>
<SPAN CLASS="str-sipka-off"><IMG SRC="<%= session("cesta_web") %>gfx/bikestore/ik/ik_sipka_l.png" ALT="" WIDTH="32" HEIGHT="32" BORDER="0">Předchozí</SPAN>
<% end if %>
<% 
for start = 1 + posun to pocet_stran
	if strana = start then
 %><SPAN CLASS="str-vybrano"><%= start %></SPAN>
<% 
	else
 %><A HREF="#" ONCLICK="document.form_filtr.str.disabled = false; document.form_filtr.str.value = '<%= start %>'; document.form_filtr.submit(); return false"><SPAN CLASS="str"><%= start %></SPAN></A>
<% 
	end if
next
 %>
<% if strana < pocet_stran then %>
<SPAN CLASS="str-sipka"><A HREF="#" ONCLICK="document.form_filtr.str.disabled = false; document.form_filtr.str.value = '<%= strana + 1 %>'; document.form_filtr.submit(); return false">Další<IMG SRC="<%= session("cesta_web") %>gfx/bikestore/ik/ik_sipka_p.png" ALT="" WIDTH="32" HEIGHT="32" BORDER="0"></A>
<% else %>
<SPAN CLASS="str-sipka-off">Další<IMG SRC="<%= session("cesta_web") %>gfx/bikestore/ik/ik_sipka_p.png" ALT="" WIDTH="32" HEIGHT="32" BORDER="0"></SPAN>
<% end if %>
</TD>
</TR>
</TABLE>