On the back of your iMac, at one end of your port column (not sure which end), you will have a mini VGA port. You will need to purchase a mini VGA to VGA adapter from Apple, and this will allow you to connect a VGA display to your iMac. Then follow the above link for screen spanning doctor to let you use the second monitor for spanning onto and not just for mirroring the iMacs display.