From the symptoms you gave it seems that the video chip on the logic board is going out, which would require a logic board replacement to fix. Some places like blueraven.com will repair the laptop for a flat rate, somewhere around $400-450.