The witch hunt continues...

LONDON (AP) — BP Chief Executive John Browne resigned today, hours after a judge lifted a legal injunction preventing a newspaper from publishing details of his private life and allegations that he misused company resources.

The board named Tony Hayward, the head of exploration and production, as the new CEO effective immediately, BP said. Hayward, who had already been set to take over on Aug. 1, will have to repair BP's reputation after several high-profile operational and regulatory mishaps tarnished its image.

Browne, 59, had been fighting since January to keep the Mail on Sunday newspaper from publishing details from an interview with a man with whom he had a relationship. BP said the newspaper had also sought to report allegations that Browne misused company resources — claims it said an internal investigation determined were unfounded.

In a statement, Browne said he was stepping down voluntarily "to avoid unnecessary embarrassment and distraction to the company."

"For the past 41 years of my career at BP I have kept my private life separate from my business life," he said.

BP said Browne's decision meant he would lose a bonus of up to 1.3 times his annual salary, worth in total over 3.5 million pounds ($6.9 million). He would also forgo inclusion in a share plan with a potential value of some 12 million pounds ($23.9 million).

Shares in BP edged lower after the announcement, closing down 0.4 percent at 563 pence ($11.24) on the London Stock Exchange.

"The board of BP has accepted John's resignation with the deepest regret," Chairman Peter Sutherland said. He called it "a tragedy that he should be compelled by his sense of honor to resign in these painful circumstances."

Browne acknowledged in the statement that he had lied to a judge about how he met Jeff Chevalier, with whom he said he had a four-year relationship.

"My initial witness statements, however, contained an untruthful account about how I first met Jeff. This account, prompted by my embarrassment and shock at the revelations, is a matter of deep regret."

The Mail on Sunday suggested in a statement today that Browne should be charged with perjury.

"That Lord Browne should have felt free to lie deliberately and repeatedly raises deeply worrying questions about the system of secret court hearing which is increasingly being used by the rich and powerful to prevent the public knowing the truth about their activities," the newspaper said in a statement.

Browne rejected allegations that he misused company resources, calling them "full of misleading and erroneous claims. "I deny categorically any allegations of improper conduct relating to BP," he said. "The company has confirmed today that it has found no such wrongdoing."

Browne's decision will allow Hayward to start with a clean slate, said analyst Jason Kenney of ING Group.

After more than a decade at the helm of BP, Browne — a close associate of Prime Minister Tony Blair — had announced in January that he would resign at the end of July, bringing his expected departure forward by more than a year.