I doubt it's a monitor problem... I don't remember precisely, but I believe a certain series of iMac G5 have a leaking capacitor issue, which is fairly catastrophic. It could also be a dying graphics card. I'd check apple.com for issues with your model of iMac.
Calling wouldn't hurt either. If...