Kevin Sorbo is coming between Dharma and Greg. The actor — who flaunted his buffed bod as the mythical hero on Hercules: The Legendary Journey and currently battles evil on

Gene Roddenberry's Andromeda — will guest-star in two February sweeps episodes of ABC's Dharma & Greg playing a hunky college professor who catches Dharma's (Jenna Elfman) wandering eye.

"It was interesting getting fluttery for another man," says Elfman, whose alter ego decides to take a college course taught by Sorbo. Are audiences ready to watch her consider cheating on Greg (Thomas Gibson)? "I know she's been sort of heroic and a lot of people admire her," she admits. "But we start having problems in our relationship because Greg is working very hard on a case, so Dharma thinks it's justified.

"She's basically a good person, so she's conflicted about her sudden attraction for her teacher," Elfman continues of the episodes, slated to air Feb. 6 and 13. "We want to show her trying to work out the problem, because it's hard for her to try to hide her feelings from Greg."

In real life, Elfman reports that her five-year marriage to actor Bodhi Elfman couldn't be stronger, and she's more than happy to reveal the secret to their success. "The key is friendship and communication," she says. "We've always been best friends."

Even the issue of distance — Bodhi is in Vancouver co-starring in the UPN series Freedom while Elfman toils in Hollywood — hasn't dulled the spark. "Being apart has actually strengthened our relationship," she says. "We just talk with each other on the phone all the time. If you create a vacuum by not communicating, then bad things can happen. Bodhi also gets home for weekends whenever he can. We try never to be separated for more than three weeks. Any longer than that is too much."