SNP MSP Tricia Marwick elected presiding officer
SNP backbencher Tricia Marwick has been elected as the new presiding officer of the Scottish Parliament, in the wake of her party's election win.
The Mid Fife and Glenrothes MSP won the five-year job in a ballot of Holyrood's 129 members.
Ms Marwick pledged to do her "very, very best" in the role.
Labour MSP Elaine Smith and Conservative MSP John Scott were elected as Holyrood's deputy presiding officers.
Out-going presiding officer Alex Fergusson said the election of Ms Marwick, a member of the party which will form the Scottish government, presented "fresh challenges".
Labour criticised the appointment, saying it gave "cause for concern".
Ms Marwick, 57, saw off a challenge from party colleague Christine Grahame and former Labour minister Hugh Henry.
The elections were held as Holyrood sat for the first time since the SNP's landslide win at the polls, last week.
The party will form Scotland's first majority administration, four years after it went into minority government following its victory in the 2007 election.
Paying tribute to her predecessor as presiding officer, Ms Marwick - who will resign from the SNP to take up the politically neutral post - told MSPs: "Alex was a class act and a difficult one to follow. I will do my very, very, best."
In an emotional acceptance speech, she added: "As presiding officer, I will be fair to all members. I will always act in the interests of the Scots parliament."
In his final speech as presiding officer, Mr Fergusson, who has returned to parliament as a Tory MSP, Mr Fergusson said each Scottish election had delivered a first for Holyrood - a coalition government in 1999, a "rainbow parliament" of seven parties in 2003, minority government in 2007 and, now, a likely majority administration.
Mr Fergusson, said: "The parliament itself seems to have taken this road of firsts to heart, electing a female member as presiding officer for the first time.
"Furthermore, it has also elected a member from the likely party of government for the first time and that in itself will present fresh challenges."
Mr Fergusson went on to say he could testify to Ms Marwick's "ability to put the interests of this parliament before the interests of any party within it."
In his pitch for presiding officer, Mr Henry, a former education and deputy justice minister, said he would not stand in the way of an independence referendum, which the SNP is staging in the second half of the parliamentary term.
Mr Henry was nominated for presiding officer by out-going Labour leader Iain Gray, and seconded by the Tories' Annabel Goldie.
His position came amid speculation that Nationalists would wield their majority to elect one of their own MSPs, because of fears that an opposition member could rule the referendum beyond the parliament's powers.
Labour business manager Paul Martin, said: "The appointment of the new presiding officer was a big challenge for the new majority government, and it has not got off to a good start.
"Labour wants to engage positively with it, but this appointment does not send out the right signal and is a cause for concern."
The election for first minister - with SNP leader Alex Salmond the only realistic candidate - is taking place at a later date.
Mr Gray and Miss Goldie have both announced they are standing down from their leadership roles in the autumn, while Tavish Scott earlier quit as Lib Dem leader with immediate effect.