Go to the second floor of the building with the scientist that wants a password at Castelia City. Talk to him, and say "Everyone Happy", then "Simple Connection". Save the game, and you can now use the "Relocator" option at the main menu to transfer the Legendary Trio (Raikou, Suicune, and Entei) and Celebi to Pokemon Black or Pokemon White.