<Tr> <Td_colspan="2"> Problems playing this file? See media help . </Td> </Tr> <P> The theme song for The Office was written by Jay Ferguson and performed by The Scrantones . It is played over the title sequence, which features scenes of Scranton, various tasks around the office and the main cast members . Some episodes of the series use a shortened version of the theme song . Starting with the fourth season, the theme song is played over the closing credits, which previously rolled in silence . The exteriors of buildings in the title sequence are actual buildings in Scranton, Pennsylvania, and were shot by cast member John Krasinski . The mockumentary format of the show contains no laugh track, and most of the music is diegetic, with songs either sung or played by the characters or heard on radios, computers, or other devices . However, songs have been played during montages or the closing credits, such as "Tiny Dancer" by Elton John ("The Dundies") and "Islands in the Stream" by Kenny Rogers and Dolly Parton ("E-mail Surveillance"). Featured music tends to be well known, and often songs reflect the character, such as Michael's attempt to seem hip by using "Mambo No. 5" and later "My Humps" as his cell phone ringtone . Daniels has said that it does not count as film score as long as it already appeared in the episode . </P> <P> The Office employs an ensemble cast . Many characters portrayed by The Office cast are based on the original British series . While these characters normally have the same attitude and perceptions as their British counterparts, the roles have been redesigned to better fit the American show . The show is known for its generally large cast size, with many of its actors and actresses known particularly for their improvisational work . Steve Carell stars as Michael Scott, regional manager of the Dunder Mifflin Scranton Branch . Loosely based on David Brent, Gervais's character in the British series, Scott is a well - intentioned man whose attempts at humor, while seemingly innocent to himself, often offend and annoy his peers and employees, and in some situations lead to reprimanding from his superiors . Rainn Wilson portrays Dwight Schrute, who, based upon Gareth Keenan, is a salesman and the assistant to the regional manager, a fictional title created by Michael . John Krasinski portrays Jim Halpert, a salesman and, in later seasons, co-manager who is often known for his wittiness and his hijinks on Schrute (often accompanied by Pam Beesly). Halpert is based upon Tim Canterbury, and is known to have feelings for Pam, the receptionist . Pam, played by Jenna Fischer, is based on Dawn Tinsley . She is shy, but in many cases a cohort with Jim in his pranks on Dwight . B.J. Novak portrays Ryan Howard, who for the first two seasons is a temporary worker but is promoted to sales representative in the third season . He later ascends to the position of vice president, North East Region and director of new media until his treachery was exposed for corporate fraud and he was fired . After this, he gets a job in a bowling alley and then briefly works for the Michael Scott Paper Company . After all this, and a stint in rehab, he eventually ends up again as the temporary worker at the Scranton branch . </P> <P> The accounting department features Angela Martin, an admitted uptight and hypocritical woman who wishes to keep things orderly and make sure situations remain as serious as possible; Kevin Malone, a lovable, but dim - witted man who revels in juvenile humor and frequently indulges himself with gambling and M&Ms; and Oscar Martinez, who is intelligent but often patronizing and whose homosexuality and Hispanic heritage made him a favorite target for Michael's unintentional off - color comments . Rounding out the office are the stern salesman Stanley Hudson, who barely stood for Michael's constant references to his Black American heritage (he also doesn't like to take part in time - wasting meetings and sometimes sleeps in them or works on crossword puzzles); eccentric quality assurance representative Creed Bratton; the kind and caring saleswoman Phyllis Lapin - Vance, who marries Bob Vance from Vance Refrigeration across the hall from the office; Andy Bernard, a salesman introduced in season three after the closing of the Stamford, Connecticut, branch of Dunder Mifflin and the merging of the two; the bubbly and talkative customer service representative Kelly Kapoor; the promiscuous alcoholic supply relations representative Meredith Palmer; human resources representative Toby Flenderson, who is admittedly hated by, and often the target of abuse by Michael Scott; warehouse foreman Darryl Philbin; warehouse dock worker and Pam's ex-fiancé Roy Anderson, who was fired in the third season; and Michael's former love interest and former vice president for regional sales for Dunder Mifflin Jan Levinson (Jan Levinson - Gould until her divorce in season 2). </P>

Who does john krasinski play in the office