Two worlds collided in Gotham on Friday night, and that usually makes for a good party.

New Line toasted its 40th anni in an unprecedented benefit gala at Time Warner Center that raised $2 million for the Film Society of Lincoln Center’s new home, slated to open in 2010.

The black-tie event joined the realms of Hollywood moguls and film donors salivating for the next retrospective. A program of film clips mixed with live remarks by the likes of Morgan Freeman, Jane Fonda, Werner Herzog and John Waters marked the company’s milestone. Adam Sandler sent a video tribute.”Thanks for my paycheck,” the comedian said. “Oh, and sorry for ‘Little Nicky.'”

Ann Tenenbaum, the film society’s chair of the board, got a big laugh by observing, “I knew it would be hard following Nicole Kidman, but after seeing her, it got so much worse.”

Also spotted in the adjoining ballrooms at the Frederick P. Rose Hall: Jeff Bewkes, Tom Freston, Brett Ratner and, of course, New Line honorees Bob Shaye and Michael Lynne.