Print array of imagefield fields for node type
You can get a list of all fields for a particular content type using the content_types() function:

$type = content_types($type_name);

if (isset($type['fields'])) {
  $fields = $type['fields'];
}


From there you can just loop through and see what type of field each is, and act on it accordingly.