Headlights flash on and off

My headlights will shut off while driving after about 15 minutes or so then they will turn on and off as if I am flashing oncoming drivers. The parking lamps are not affected. And to add to the situation it only happens while driving??? They won't cut out if I just turn the lights on while it sits in the garage. I am guessing the switch itself or where the wires connect at the the firewall. Suggestions?
Author: admin