Swap your ballasts out from your fogs to your headlights… if it does the same thing, your wiring harness is a POS and needs replaced, maybe a pinched wire inside, etc…
Then grab one of these from ebay http://cgi.ebay.com/ebaymotors/NEW-HID-Fuse-Relay-Wiring-Harness-High-Quality-Kit_W0QQcmdZViewItemQQ_trkparmsZ72Q3a1209Q7c39Q3a1Q7c66Q3a2Q7c65Q3a12Q7c240Q3a1318QQ_trksidZp3286Q2ec0Q2em14QQhashZitem190253645358QQitemZ190253645358
Is your fog kit the same brand as your headlight kit?