A Manhattan judge tossed a legal loincloth over the Tyco embezzlement trial yesterday – barring jurors from kinky details about an X-rated party thrown with $1 million in company funds.

Prosecutors say wealthy ex-CEO Dennis Kozlowski bilked Tyco out of $600 million through stock fraud and such unauthorized perks as luxury homes, art and the party in question – a lavish and lewd, eight-day, 40th-birthday party for mistress-turned-wife Karen on the sunny Italian isle of Sardinia.

But like blindfolded wallflowers at a college keg bash, jurors were kept in the dark about such bizarrely obscene – not to mention frat-house tacky – party details as a penis-shaped vodka spigot and an exploding breast cake.

No word yet, though, on a videotape of a guest mooning the camera. Supreme Court Justice Michael Obus is expected to rule on the racy party video today.

“We had an ice sculpture of Michelangelo’s David,” testified Kozlowski’s corporate party planner, Barbara Jacques. Jacques was Kozlowski’s lover for two years in the early ’90s – and once received a $1 million bonus prosecutors say Kozlowski also stole.

The ice statue in question was hollowed out and allowed a bartender to pour vodka into its back – from which it could flow out through the private parts and into the glasses of startled guests. But the judge stepped in before these details could leak out.

At least the water-based David wasn’t combustible. Jurors were also kept innocent of the exploding birthday cake, concocted in the life-sized form of a nude woman.

Today, jurors are expected to be shown video from the birthday bash – again, with the cake, the ice statue and the mooning likely edited out, though prosecutors argue such details are vital in dispelling the “air of corporate dignity” Kozlowski assumed.

Jurors have, however, heard a G-rated version of events – including that the party featured male models in togas and Speedos, and a one-hour performance by Jimmy Buffett, who was paid a whopping $250,000 fee for his troubles.