the Spanish Succession, but also prevented the union of Rákóczi's forces with their French-Bavarian allies. This placed Rákóczi into a difficult military and financial situation. French support gradually diminished, and a larger army was needed to occupy the already-won land. Meanwhile, supplying the current army with arms and food was beyond his means. He tried to solve this problem by creating a new copper-based coinage, which was not easily accepted in Hungary as people were used to silver coins. Nevertheless, Rákóczi managed to maintain his military advantage for a while – but after 1706, his army was forced into retreat. A meeting of the Hungarian Diet (consisting of 6 bishops, 36 aristocrats and about 1000 representatives of the lower nobility of 25 counties), held near Szécsény (Nógrád County) in September 1705, elected Rákóczi to be the "vezérlő fejedelem" – (ruling) prince – of the Confederated Estates of the Kingdom of Hungary, to be assisted by a 24-member Senate. Rákóczi and the Senate were assigned joint responsibility for the conduct of foreign affairs, including peace talks. Encouraged by England and the Netherlands, peace talks started again on 27 October 1705 between the Hungarians and the Emperor. Both sides varied their strategy according to the military situation. One stumbling block was the sovereignty over Transylvania – neither side was prepared to give it up. Rákóczi's proposed treaty with the French was stalled, so he became convinced that only a declaration of independence would make it acceptable for various powers to negotiate with him. In 1706, his wife (whom he had not seen in 5 years, along with their sons József and György) and his sister were both sent as peace ambassadors, but Rákóczi rejected their efforts on behalf of the Emperor. In 1707 during the Great Northern War he was one of the candidates to the throne of Poland, supported by Elżbieta Sieniawska. On Rákóczi's recommendation, and with Bercsényi's support, another meeting of the Diet held at Ónod (Borsod county) declared the deposition of the House of Habsburg from the Hungarian throne on 13 June 1707. But neither this act, nor the copper currency issued to avoid monetary inflation, were successful. Louis XIV refused to enter into treaties with Prince Rákóczi, leaving the Hungarians without allies. There remained the possibility of an alliance with Imperial Russia, but this did not materialize either. At the Battle of Trencsén (German: Trentschin, Latin: Trentsinium, Comitatus