Three young women who appeared suicidal were taken into custody Friday at the top of a 13-floor building at the shuttered Kings Park psychiatric center, authorities said.

One of the women had called or written a note to a friend saying she intended to kill herself at the psychiatric center, said Suffolk police Lt. Barry Fox, who went to the scene.

That friend contacted police, he said, prompting a major emergency response at about 4 p.m.

A police helicopter crew spotted the women on the roof of the main building that once served as the center’s hospital, authorities said.

Emergency Service Unit officers from Suffolk police grabbed the women off the ledge. They were taken to St. Catherine of Siena Medical Center in Smithtown for evaluation, according to police and Kings Park fire officials. No injuries were reported.

Because the old buildings contain asbestos and other contaminants, the women had to wear hazmat suits to help prevent the spread of hazardous materials, said Second Assistant Chief James Purser of the Kings Park department.

advertisement | advertise on newsday

About 60 people responded to the scene, including State Park Police, the fire chief said.

A Park Police spokesman did not return calls for comment Friday night.

It was not immediately clear how the three women got into the building, which is surrounded by a chain-link fence, but police, local residents and fire officials have said they’ve spent years trying to push the state to secure the abandoned center’s buildings.

Local authorities say the decrepit buildings are a magnet for trespassers, who may be unaware of the dangers.