Shia LaBeouf and Rosie Huntington-Whiteley Shia LaBeouf and Rosie Huntington-Whiteley

Transformers: Dark Side of the Moon became the highest-grossing film of 2011 this week, holding on to the No. 1 spot at the box office, despite a strong debut by Horrible Bosses.

The third Transformers film grossed an estimated $47 million in its second week of release, according to Box Office Mojo, bringing its total earnings to $261 million. Bosses came in second with $28.1 million, continuing a trend of strong performances by R-rated comedies this summer (see: Bridesmaids, The Hangover Part II and Bad Teacher).

Transformers: Dark Side of the Moon crushes Fourth of July box office record

The weekend's other major new release, Zookeeper, took third place with $21 million. Cars 2 followed at No. 4 with $15.2 million, and Bad Teacher completed the top 5 with $9 million. At No. 6, Larry Crowne drew $6.2 million. Super 8 came in seventh with $4.8 million. Rounding out the top 10: Monte Carlo (No. 8, $3.8 million), Green Lantern (No. 9, $3.1 million) and Mr. Popper's Penguins (No. 10, $2.8 million).