But the huge inflows of foreign direct investment, including billions for global mergers and acquisitions, largely dried up after the dotcom bubble burst. Virtually overnight, US assets fell out of favour, prompting concerns about how the deficit, now approaching $500bn (£265bn) - or 5% of gross domestic product - will be financed.