iMac 2008 vertical lines
The other commenters are correct. With an iMac you need to try an external monitor to determine if it is the screen or the GPU.

An Apple Genius appointment would cost you nothing and they could test it for you if you don't have access to another monitor and/or the right cables.