You may want to start by reading the
Smarty Docs for a decent idea of what you are capable of doing with a tpl file.
In head.tpl, you'll have the $cat variable available to you. You can use that with if/elseif statements to determine what category you are in and then use the smarty include statement to display the contents of another tpl file or html.
In a case like this all you would have in head.tpl would be a lot of if statements for each category followed by include statements. All output to the browser would be in the various files you include.
__________________
Nick
Running various versions of X-Cart Gold in various locations...
(when I have time, I\'ll make them all current, but by then x-cart 5.x.x will probably be out....)