getHeadImg(); switch ($obj->objtype) { case "user": case "group": $alt = $obj->getDisplayName(); break; default: $alt = $obj->name; break; } ?>