You can't do this with stock Fusion Tables info windows because we scrub any JavaScript in them. You can code this up yourself if you want; see this question for an example.
A cleaner way might be to process all the links on your own HTTP server, showing the login page if necessary or redirecting to the builder site if not. That would work with no custom client code, but would require the appropriate server-side setup.