the categories are pulled using a querysting variable:
Search=1&ProductCategoryID[]=26
for example:
products_results.php?Search=1&ProductCategoryID[]=26
if you use the top menu, go to Products -> Bananatree Store to select the categories, you can see the ProductCategoryID[] variable change.