his own software company Mikro Ada. He became involved in the pacifist movement, and emerged as an important activist in the network of civil society organizations in Slovenia. By the mid-1980s, he was one of the most prominent activist of the Slovenian pacifist movement. Janša also became active in the nascent environmental movement. Rapprochement with the Socialist Youth movement In 1987, Janša was approached by the family of the late politician Stane Kavčič, who had been the most important exponent of the reformist fraction in the Slovenian Communist Party in the late 1960s, and prime minister of Slovenia between 1967 and 1972; he was asked to edit the manuscript of Kavčič's diaries. Janša edited the volume together with Igor Bavčar. The publication of the book was part of the political project of Niko Kavčič, former banker and prominent member of the reformist wing of the Communist Party, to establish a new Slovenian left wing political formation that would challenge the hardliners within the Communist Party. In the spring of 1988, Janša ran for president of the , a semi-independent youth organization of the Communist Party, which had been open, since 1986, also to non-party members. In his program, Janša proposed that the organization become independent of the Communist Party and transform itself into an association of all youth and civic associations; he also proposed that it rename itself the "League of Youth Organizations and Movements", and that it assume the role of the main civil society platform in Slovenia. During that time, he also participated in the public discussions on the constitutional changes of Yugoslav and Slovenian constitution. Arrest and trial On 31 May 1988, Janša was arrested on suspicion of possessing a classified Yugoslav military document uncovered during a search on the premises of a company where Janša was employed (a staff sergeant of the Yugoslav Army, Ivan Borštner, was arrested the same day on suspicion of leaking the document to Mladina). Along with two Mladina journalists, they were tried by a military court on charges of exposing military secrets, and given prison sentences. Janša's trial was conducted in camera, with no legal representation for the accused, and in Serbo-Croatian (the official language of the Yugoslav Army) rather than in Slovene. Janša was sentenced to 18 months imprisonment, initially at Dob, but, following public outcry, he was transferred to the open prison in Ig. The case became known as