STRASBOURG (AFP) - Nato leaders pledged thousands more troops for their Afghan mission Saturday and named the organisations next leader, as violent anti-war demonstrations raged outside the summit. Britain, Spain and Italy said they would send hundreds of extra troops each to secure Afghanistans key August presidential election, adding up to what the White House said was a total of up to 5,000 personnel. The deal was a victory for new US President Barack Obama, who came to his first NATO summit to promote his new Afghan strategy and warn his allies that Europe would have to shoulder more of the war-fighting burden. I am pleased that our NATO allies pledged their strong and unanimous support for our new strategy, Obama told reporters. Although France and Germany were not among the countries who made major new troop commitments, Obama praised President Nicolas Sarkozy and Chancellor Angela Merkel as the joint hosts of the 60th anniversary summit. This summit and this alliance have delivered, outgoing NATO Secretary General Jaap de Hoop Scheffer told reporters at the end of the gathering in Strasbourg. According to Scheffer, in addition to boosting coalition force numbers, the various member states have agreed to provide more training teams for Afghan forces and to set aside more funding for the Afghan army. Prime Minister Jose Luis Rodriguez Zapatero said Spain would send 450 troops, Britains Gordon Brown promised hundreds and Silvio Berlusconi said Italys contingent would increase to around 3,000 from around 2,300 now. Meanwhile, the alliance confirmed that Danish Prime Minister Anders Fogh Rasmussen would be the next NATO secretary general, despite two days of tense talks to persuade Turkey not to veto his nomination. Everyone is fully convinced that Anders Fogh Rasmussen is the best choice for the alliance, Scheffer said, while admitting that there had been long discussions on the issue. An agreement was found, he said. Rasmussen said he was deeply honoured to be the first Dane to lead the Atlantic alliance and to have been named at the 60th anniversary summit. He will take over from Scheffer on August 1. The Danish leader had long been seen as the favourite to take over the job, but his nomination was called into question when Turkey-which could have vetoed the decision-raised objections at the summit. Turkish Prime Minister Recep Tayyip Erdogan said he had received guarantees from President Obama about the Danish PMs nomination. While the last-minute deal on Rasmussen put smiles on the faces on those inside the summit venue, outside police battled with hundreds of hardcore anti-war demonstrators determined to disrupt the summit events. Hardliners from the so-called Black Blocks set fire to the ground floor of a hotel near the summit venue, during clashes between militants armed with rocks and iron bars and a 10,000-strong force of riot police. Some 100 masked demonstrators armed with metal bars also wrecked a chapel, a pharmacy, an empty police post and other buildings at the French end of the Europe bridge connecting Strasbourg with Germany. They daubed on the roof a quotation from French writer Victor Hugo, Religion is nothing but the shadow cast by the universe upon human intelligence. The rioters emerged from a larger group of demonstrators 30,000 according to organisers, 10,000 according to the police-who chanted NATO means war 60 years is enough and, in a swipe at Obamas campaign slogan, Quit Iraq and Afghanistan. Yes We Can. Meanwhile, Nato leaders agreed on Saturday to build better relations with Russia and look at ways to strengthen the forum where the old Cold War foes hold their top-level meetings. Despite our current disagreements, Russia is of particular importance to us as a partner and a neighbour, the 28 NATO leaders said in a statement after a two-day summit in Strasbourg, eastern France and neighbouring Kehl in Germany. They committed to use the council for dialogue on all issues where we agree and disagree, but noted that the forum has not been exploited to its full potential. We therefore stand ready in the NATO-Russia Council to assess possibilities for making it a more efficient and valuable instrument for our political dialogue and practical cooperation, the leaders said.