Strange Brew

Two unemployed brothers, Bob and Doug McKenzie (Rick Moranis and Dave Thomas), place a live mouse in a beer bottle in an attempt to blackmail the local beer store into giving them free Elsinore beer, but are told to take up the matter at the Elsinore brewery instead. After presenting the mouse to management at the brewery, the brothers are given jobs on the bottling line inspecting the bottles for mice.
Meanwhile, the evil Brewmeister Smith (Max von Sydow) is perfecting a secret plan to take over the world by placing a mind-control drug in Elsinore beer which, while rendering the consumer docile, also makes him or her attack others when certain musical tones are played. Smith tests this adulterated beer on patients of the neighbouring Royal Canadian Institute for the Mentally Insane, which is connected to the brewery by underground tunnels.
Bob and Doug learn that the brewery's former owner, John Elsinore, has recently died under mysterious circumstances and his daughter Pam (Lynne Griffin) has been given full control of the Elsinore brewery. While exploring the massive brewery, they find a shuttered cafeteria containing an old Galactic Border Patrol video game which supernaturally reveals that Brewmeister Smith murdered John Elsinore and that Pam's bumbling Uncle Claude (Paul Dooley) was deeply involved. Also, Bob recognizes a brewery employee as one-time hockey great Jean "Rosie" LeRose (Angus MacInnes), who suffered a career-ending nervous breakdown and has fallen under Smith's control.
Eventually, Bob and Doug wander into Brewmeister's operations room while he is away and Doug takes a floppy disk containing video of John Elsinore's murder (thinking it is a "new wave EP" and not realizing the importance of its contents). Smith and Claude tranquilize the brothers and arrange to frame them for murder, concealing Pam and her father's friend, Henry Green, in beer kegs in the back of their sabotaged van, and instruct the brothers to deliver the kegs to a party. Unable to stop, the brothers crash the van into Lake Ontario. All survive (Pam with apparent memory loss), and the brothers are arrested.
The brothers' antics at their trial cause the judge to declare them insane and put them under Brewmeister Smith's care at the asylum. Rosie soon finds them and helps them escape, and they find and rescue Pam. Having figured out Brewmeister's plan, Rosie formats an uprising among the brainwashed mental-patient test subjects. The brothers separate for the first time in their lives; Doug helps Rosie overpower Brewmaster Smith and the spirit of John Elsinore, possessing the brewery's electrical system, fatally strikes him with lightning. Meanwhile, Smith has locked Pam and Bob in a brewery tank and filling it with beer; they escape this possible death when Bob consumes all the beer, expanding to a cartoonish size.
John Elsinore's ghost warns them that Smith has already shipped tainted beer to Oktoberfest and urges them to stop them. The police accompany the brothers back to their house to retrieve their dog, Hosehead, to invade the party. Enticed by promises of free beer and sausages, Hosehead leaps into the air and flies over the city like Superman. He crashes into the tent at the celebration and, mistaken for a skunk, frightens people away from the tainted beer. In the end, the McKenzie Brothers save the day and Pam and Rosie find true love with each other. As for the contaminated beer, Bob and Doug are allowed to haul away the lot, apparently to try to drink it all.

Question: What happens to the brothers' at their trial?
Answer: The judge declares them insane and put's them under Brewmeister's Smith's care at the asylum