/* following uses arrays declared in the calling code
	0907220826 changed first 'alt' attribute in pam var to be 'title'
	090820 changed pam 'href' attribute to 'name' from 'title' however IE7 does not find them
	090821 fixed IE7 problem in line 14 not quite sure how!
	090823 added style to table cell t2r1c2 - added attribute 'id' into the pam string for future reference
	       re-arranged pam string into three lines.
	101212 trying out not showing an item ID if it's sold
 */

function addItems(item,thumb,altTh,big,altBig,price,sdesc,ldesc) {
    if (item.length>0 
