Andy Coulson arrives at The Old Bailey law court in London, Thursday, Oct. 31, 2013. Former News of the World national newspaper editors Rebekah Brooks and Andy Coulson went on trial Monday, along with several others, on charges relating to the hacking of phones and bribing officials while they were employed at the now closed tabloid paper. Rebekah Brooks and her husband Charlie Brooks arrive at The Old Bailey law court in London, Thursday, Oct. 31, 2013. Former News of The World news editor Ian Edmondson arrives at The Old Bailey law court in London, Thursday, Oct. 31, 2013. Former Royal Editor Clive Goodman arrives at The Old Bailey law court in London, Thursday, Oct. 31, 2013. LONDON (AP) - In a blockbuster declaration at Britain's phone hacking trial, a prosecutor said two of Rupert Murdoch's former senior tabloid executives - Rebekah Brooks and Andy Coulson, later a top aide to Prime Minister David Cameron - had an affair lasting at least six years. Prosecutor Andrew Edis made the disclosure Thursday during Coulson's and Brooks' trial on phone hacking and other charges, the first major criminal case to go to court in the hacking saga that has shaken Britain's political, judicial and media elite. Brooks, Coulson and six other people are now on trial, including Brooks' current husband Charles. All deny the various charges against them, which range from phone hacking to bribing officials for scoops to obstructing police investigations. Edis said the relationship between Brooks and Coulson was relevant to the hacking case because it showed they trusted one another and shared intimate information. "Throughout the relevant period, what Mr. Coulson knew Mrs. Brooks knew, and what Mrs. Brooks knew Mr. Coulson knew," Edis said. Edis said the affair began in 1998 and lasted about six years. If his timeline is correct, the affair ended before Coulson became Cameron's top communications director, which began after Cameron's election in 2010. Coulson started working for Cameron in 2007, when Cameron became leader of Britain's Conservative opposition party. The affair covered the period when Brooks was the top editor of Murdoch's News of the World tabloid and Coulson was her deputy. Brooks edited the paper from 2000 to 2003, then went on to edit its sister paper, The Sun, and later became the chief executive of Murdoch's British newspaper division. Coulson edited the News of the World from 2003 to 2007. The affair covered the crucial period in 2002 when the News of the World hacked the phone of murdered teenager Milly Dowler. Brooks has long denied knowing about that hacking. When the Dowler hacking case became public in 2011, the outrage in Britain was so great that Murdoch shut down the 168-year-old paper. Edis said a February 2004 letter from Brooks showed there was "absolute confidence between the two of them in relation to all the problems at their work." He said the letter appeared to have been written by Brooks in response to Coulson's attempt to end the relationship. You are my very best friend. I tell you everything. I confide in you, I seek your advice," Brooks wrote, according to Edis. Without our relationship in my life I am really not sure I will cope. Edis said the affair was uncovered when police searched a computer found at Brooks' home in 2011 as part of the hacking investigation. It's not clear whether the letter was ever sent. Brooks married soap-opera star Ross Kemp in 2002. They later divorced and she married horse trainer Charles Brooks in 2009. In his opening arguments Thursday, Edis said News of the World journalists, with consent from the tabloid's top editors, colluded to hack the phones of politicians, royalty, celebrities and even rival reporters in a "frenzy" to get scoops. He said the "dog-eat-dog" environment led to routine lawbreaking that was sanctioned by those in charge of the Murdoch-owned tabloid: editors Rebekah Brooks and Coulson. Jurors were shown email exchanges involving private investigator Glenn Mulcaire and News of the World news editor Ian Edmondson - one of the defendants - detailing the 2006 hacking of former government minister Tessa Jowell, royal family member Frederick Windsor and one-time Deputy Prime Minister John Prescott, who was the subject of a major kiss-and-tell story from a mistress. Mulcaire also hacked the phones of two journalists at the rival Mail on Sunday tabloid who were working on their own story about the Prescott affair, the prosecutor said. "In the frenzy to get the huge story ... that's what you do," Edis said. Edis also played a recording of Mulcaire "blagging" - seeking information about a voicemail password from a service provider using a false name. He said Mulcaire - an "accomplished" blagger and hacker - made the recording himself, and also recorded some of the voicemails he hacked. The prosecutor said the emails, the recordings and pages from Mulcaire's notebooks provided "very clear evidence" of hacking so widespread that senior editors must have known about it. Edis said Mulcaire was paid almost 100,000 pounds a year under a contract that started in 2001 and ended when he was arrested in 2006 for hacking the phones of royal aides. He and the tabloid's royal editor Clive Goodman were briefly jailed and for years, Murdoch's media company maintained that hacking had been limited only to that pair. That claim was demolished when the Dowler case became public in 2011. Murdoch's company has since paid millions in compensation to scores of people whose phones were hacked. Rebekah Brooks, Coulson, Edmondson and former managing editor Stuart Kuttner all deny charges of phone hacking. The trial is expected to last roughly six months. Mulcaire has pleaded guilty, along with three former News of the World news editors. Edis said there are few records of what Mulcaire was paid to do by the newspaper, but that senior editors must have known of his illicit activity. "The question is, did nobody ever ask, 'What are we paying this chap for?'" he said. Somebody must have decided that what he was doing was worth an awful lot of money. Who was that? He said Rebekah Brooks, who edited the News of the World when Mulcaire was put on retainer "was actively involved in financial management" and sent editors stern emails about keeping costs down. Under Coulson, who succeeded her as editor, Mulcaire's fee was increased to 2,019 pounds a week. Edis said there was no evidence that Mulcaire's fees were ever questioned. "You would question it - unless you knew all about it," Edis said.