Inexplicable bug.  There' nothing wrong with my code yet something is executing it twice.  Try this
Look for the line:
	After it add:
	
							
						
					Look for the line:
Code:
	
	$swatchname = $htmlforname . '.jpg';
Code:
	
	echo " $swatchname <actinic:variable name="ListIndex" /> ";


Comment