Two Canadian airline pilots charged with being drunk as they prepared to fly a passenger jet on a trans-Atlantic route have been bailed on condition they surrender their passports.

Jean-Francois Perreault, who is 39, and 37-year-old Imran Zafar Syed were arrested at Glasgow Airport on July 18, shortly before they were due to fly an Air Transat jet to Toronto.

They have been charged with being impaired through alcohol and with threatening and abusive behavior.

The two men had been held in custody since their arrested but were bailed after a hearing Tuesday at Paisley Sheriff Court in western Scotland.

Air Transat runs charter and scheduled flights between Canada and several European and Caribbean destinations. The airline says the pilots have been suspended.