in reply to subdomain help

can you check the environment variable $ENV{HTTP_HOST} to see which sub domain the user is using
example: sub.somedomain.com
based on that display the appropriate image.
I hope I understood your problem