Best advice: check the engine code on the info plate in the engine bay (assuming it is the stock engine, otherwise all bets are off) and go by that.
As for the swap, I think the ones with the EJ205 were marketed as 1999 rather than 1998...My Fozzy is a late '98 (November according to the import docs, but 1998 MY none the less), but has the EJ20G under the hood.