I had the exact same problem. It is because your index page is not in the st directory. Try putting ../ before your links in template file
Notice the same for the thumbs. each ../ goes up a directory, so ../../ will bring you up 2 dir's.
Example:
Code:
<td><a href="../#url0_group4_categoryALL#0"><img src="../#pic0_group4_categoryALL#" border="2" #s0_group4_categoryALL# alt="#alt0_group4_categoryALL#"></a></td>