<%if $categories%>
<script language="javascript" type="text/javascript">
function category_jump(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
</script>
<form action="" name="categoryjump_frm">
Category Jump :
<select name="select" onchange="category_jump('parent',this,0)">
  <%section name=i loop=$categories%>
    <option value="<%$categories[i].path_with_url%>" <%if $cat == $categories[i].category_id%>selected="selected"<%/if%>>
      <%$categories[i].path%>
    </option>
  <%/section%>
</select>
</form>
<%/if%>