 function printDetails() {
 txt = "<b>Abbreviation:</b> " + this.title + "<br>";  // change the text data here. You can have as many
 txt += "<b>Capitol:</b> " + this.location + "<br>";  // lines of data as required. to add more
 txt += "<b>Population:</b> " + this.state + "<br>";  // lines do it as shown on the left
 txt += "<b>Brief Bio:</b> " + this.cost     + "<br>";  // links can be added as shown
 txt += "<b>Pictured: </b> " + this.pictured + "<br>";  // description of the picture shown
 img = this.photo;
theDetails = txt;
document.changeImg.avatars.src = img;
document.getElementById('theData').innerHTML = theDetails; }

function place(title, location, state, cost, pictured, photo) {
 this.title = title;
 this.location = location;
 this.state = state;
 this.cost = cost;
 this.photo = photo;
 this.pictured = pictured;
 this.printDetails = printDetails; }

// each user or product details should be added as shown below.

nsw = new place("NSW", "Sydney", " 4,119,190", "Sydney the most populous city in Australia. It is the state capital of NSW and is the site of the first European colony in Australia, established in 1788 at Sydney Cove by Arthur Phillip. A resident of the city is referred to as a Sydneysider. Sydney is located on Australia's south-east coast. The city is built around Port Jackson, which includes Sydney Harbour, leading to the city's nickname, 'the Harbour City'. It is Australia's largest financial centre,home to the Australian Securities Exchange. Sydney is a major international tourist destination notable for, its beaches and twin landmarks: the Sydney Opera House and the Harbour Bridge. Sydney is one of the most multicultural cities in the world which reflects its role as a major destination for immigrants to Australia. According to the Mercer cost of living survey, Sydney is Australia’s most expensive city, and the 21st most expensive in the world.", "Syney's Opera House", "australia/sydneyoperahouse.jpg");
vic = new place("VIC", "Melbourne", "3.74 million (2006 estimate)", "Melbourne is the second most populous city in Australia. Located around Port Phillip Bay in the country's south-east, Melbourne is the state capital of Victoria. A person from Melbourne is officially called a Melburnian. Melbourne is a major centre of commerce, industry and cultural activity. The city is often referred to as Australia's 'sporting and cultural capital'. Melbourne is notable for its mix of Victorian and contemporary architecture, its extensive tram network and Victorian parks and gardens, and its diverse, multicultural society. Melbourne was founded by free settlers in 1835, 47 years after the first European settlement of Australia, as a pastoral settlement situated around the Yarra River.","Melbourne at dusk, along the Yarra River from Southbank", "australia/southbanktwilight.jpg");
qld = new place("QLD", "Brisbane", "1,820,400 (2006 estimate)", "Brisbane is the third largest city in Australia, as well as the capital and most populous city of the Australian state of Queensland. It is set close to the Pacific Ocean, and is situated on the Brisbane River on plains between Moreton Bay and the Great Dividing Range in south-eastern Queensland. The city is named in honour of Sir Thomas Brisbane who was Governor of New South Wales from 1821 – 1825.", "Queensland's first Government House","australia/firstqueenslandgovthouse.jpg");
sa = new place("SA", "Adelaide", "1.1 million in 2006", "Adelaide is the capital and most populous city of the Australian state of South Australia, and is the fifth-largest city in Australia. It is a coastal city situated on eastern side of Gulf St. Vincent on the Adelaide Plains, north of the Fleurieu Peninsula, and west of the Mount Lofty Ranges, which rise to around 700 metres (2,300 ft).  Named in honour of Queen Adelaide, the consort of King William IV, the city was founded in 1836 as the planned capital for the only freely-settled British province in Australia.","Adelaide Town Clock", "australia/adelaidetownhall.jpg");
wa = new place("WA", "Perth", "1,507,900 (2006 estimate)", "Perth is the capital of Western Australia. Perth is by far the largest city in Western Australia and home to three-quarters of the state's residents. The city is also the fourth most populous urban area in Australia and is currently the fastest growing major city in Australia (measured by percentage). Perth was founded on 11 June 1829 by Captain James Stirling as the political centre of the free settler Swan River Colony. It has continued to serve as the seat of Government for Western Australia to the present day.  The metropolitan area is located in the south west of the continent between the Indian Ocean and a low coastal escarpment known as the Darling Range. The nearest city to Perth with a population over one million people is Adelaide, which is 2,104 km (1,307 mi) away, making Perth the most isolated city with a population of more than one million in the world.","The Perth skyline viewed from the Swan River","australia/perthskyline.jpg");
tas = new place("TAS", "Hobart", "approximately 202,000", "Hobart  is the state capital and most populous city of the Australian island state of Tasmania. Founded in 1803 as a penal colony, it is Australia's second oldest and eleventh largest city. The city is the financial and administrative heart of Tasmania, and also serves as the home port for both Australian and French Antarctic operations.","View of the Hobart downtown district and Mt Wellington from Constitution Dock","australia/hobartmarina.jpg");
nt = new place("NT", "Darwin", "approximately 105,991", "Darwin is the capital city of the Northern Territory. It is by far the most populated city in the sparsely populated Northern Territory but the least populous of all Australia's capital cities. On 9 September 1839,  the first British person to have see Darwin harbour (John Lort Stokes) sailed into the harbour on the HMS Beagle and named it 'Port Darwin' in honour of his friend Charles Darwin.","Darwin, Aerial of Cullen Bay Marina","australia/darwin.jpg");


