unfortunately you are probably experiencing a common issue with this series - the graphics processor either fails or its solder joints to the logic board become loose.
some have had success using non-conductive material (folder paper square, etc) to create a shim between the chip and the case, causing force and pressure to hold the chip stable. others have been able to get the chip solder reflowed.
see these existing answers:
http://www.ifixit.com/Answers/View/1616/Why+does+my+ibook+randonly+Freeze
http://www.ifixit.com/Answers/View/2356/Display+Screen+stays+black%2C+but+computer+still+works+good