I think it was these iMac's that had the notorious issue with failing caps/PSU's. Look at those first and make sure that none of them are bulging or leaking.
open