This seems a little more streamlined, and puts a manufacture at the top of each product... but it looks like the first product is manufacture1 second product is manufacture2 and so on.
http://www.yarnsmith.co.uk/xcart/home.php?cat=3 see example
looks like instead of checking the manufacture ID against the name it is taking the number of the foreach loop that it is on.