A unified Thai kingdom was established in the mid-14th century. Known as Siam until 1939, Thailand is the only Southeast Asian country never to have been taken over by a European power. In 1932 a bloodless coup transformed the government of Thailand from an absolute to a constitutional monarchy. Thailand was occupied by the Japanese during World War II until Japan's defeat in 1945. Since after the war, the country has seen turbulent times. The military governed, on and off, between 1947 and 1992 - a period characterized by coups, coup attempts and popular protests. In September 2006, the military once again stepped into politics, carrying out a bloodless coup against Prime Minister Thaksin while he was at the United Nations General Assembly. An interim prime minister was appointed a month later. Generally free and fair multi-party elections held in December 2007 subsequently restored democratic governance. Traditionally an agrarian nation, Thailand today boasts a complex, multifaceted economy embracing industries that employ the latest and most sophisticated technology. Its principal comparative advantage has been the abundance and diversity of its natural resources. With the government providing infrastructure support and exerting relatively limited control over private industry, a free-enterprise system has emerged, allowing rapid development to take place.