In the beginning of the episode, when Worf walks in holding the Quark mug from the Defiant's mess hall, he's holding it sideways. When he demonstrates it, holding it sideways plays the music, but it didn't when he walked in. However, the advertisements are probably designed only to play once per tipping of the mug, just as they play once when com panels are activated, so it had likely finished playing long before Worf entered.
When Jadzia, Kira, and Bashir immediately after they enter the gamma quadrant it is clear where the window supports were removed from the console.