99 Civic DX hatchback

When I turn my headlights (and fogs) on they take up to 5 minutes to turn on. I can flash the high beams still, but they won't stay on until the headlights turn on. Also, the side markers turn on just fine. Any idea what's causing this? Someone said something about a relay problem, but I'm clueless on that.