Thank you for responding. Here is an example of what I'm trying to do.
Sample product page:
http://www.juliensuvalde.com/xcart/austin-tote.html
On this page you can see that there is an image appearing below the thumbnail. This is a link to a color gallery for this line of products. I want to display this for all of the products that are in the subcategories of the Jon Hart main category.
Right now I'm using the code:
{if $cat eq "249" || $cat eq "262" || $cat eq "250" || $cat eq "251" || $cat eq "263"}display image{/if} etc...
But we don't want to manually add each subcategory to the code, we want it to pull all of the subcats of the main category.