* Mining company executives among those detained
* Final funerals held for victims
* Fresh protests in major cities overnight (Adds funeral, details, background)
By Humeyra Pamuk
SOMA, Turkey, May 18 (Reuters) - Turkish police detained 19 people, including mining company executives and personnel, as an investigation into last week's mine disaster got underway and the last of the 301 victims were buried on Sunday.
The detentions were the first of the inquiry and came five days after a fire sent deadly carbon monoxide coursing through the mine in the western Turkish town of Soma, causing the county's worst ever industrial accident.
The disaster has sparked protests across Turkey, directed at mine owners accused of ignoring safety for profit, and at Prime Minister Tayyip Erdogan's government, seen as too close to industry bosses and insensitive in its response.
Police formed a cordon around the court house in Soma as the crowd of onlookers, journalists and relatives of those detained grew steadily. Inside, prosecutors were questioning company employees, a police official told Reuters.
One woman said her engineer husband was among those detained inside and one man, whose engineer brother was being held, said dozens of people had been questioned as part of the probe. Both declined to be named.
"We know that we have lost 301 loved ones, but we have loved ones inside as well," the man said.
The governor of Manisa province, Abdurrahman Savas, said 19 people were being held, according to media reports, which said they were detained on suspicion of neglect and "causing multiple deaths".
The general manager of the mining company, Soma Madencilik, and the plant manager were among those held, broadcaster CNN Turk said, adding that 28 prosecutors had been appointed to the investigation.
A spokeswoman for the company said she did not have information on the detentions. A police official confirmed that people had been detained and were being questioned but provided no further details.
The rescue operation at the coal mine ended on Saturday after the bodies of the last two workers were carried out. They were buried on Sunday.
Mourners cried and prayed beside a line of recently filled graves as one of them was buried in Soma.
Holding their palms open to the sky, around a thousand people said "amen" in unison as a white-bearded imam, or Muslim prayer leader, finished reciting verses.
"My only wish and battle will be to make sure Soma is not forgotten," said a written note, signed "your brother", which was left on one grave along with some flowers.
Ramazan, a worker from a mine near the one where the accident occurred, was among those paying his respects.
"My friend lost half of his family. And for what? To make a living," he said. "Accidents can happen of course, but it's an accident when one person, two people die. When 300 people die, its not an accident anymore."
Erdogan has presided over a decade of rapid economic growth
but workplace safety standards have failed to keep pace, leaving Turkey with one of the world's worst industrial accident records. The plant manager has denied negligence at the mine which was inspected by state officials every six months.
As the rescue operation wound up, police put Soma on virtual lockdown, setting up checkpoints and detaining dozens of people to enforce a ban on protests in response to clashes on Friday between police and several thousand demonstrators.
Dozens of people were detained on Saturday as hundreds of riot police patrolled the streets while others checked identity cards at three checkpoints on the approach road to Soma.
The checkpoints remained in place on Sunday but those detained, including eight lawyers from the Contemporary Jurists Association, were released by Saturday evening, media reports said.
There were fresh clashes between police and protesters in Istanbul and Ankara on Saturday night amid anger at the government's handling of the disaster.
Erdogan's opponents blame the government for privatising leases at previously state-controlled mines, turning them over to politically connected businessmen who they say may have skimped on safety to maximise profit.
His ruling AK Party said the formerly state-run mine at Soma, 480 km (300 miles) southwest of Istanbul, had been inspected 11 times over the past five years. It denied any suggestion of loopholes in mining safety regulations.
(Reporting by Humeyra Pamuk; Writing by Daren Butler; Editing by Stephen Powell and Giles Elgood)
Our Standards: The Thomson Reuters Trust Principles.