﻿
function initTekst()
{
	// endre solem

	
	//alert("halla");

	if (document.all||document.getElementById)
	{
		//datablock = '<div id="bildetest"></div>';

		//document.write(datablock);

	}
	
	if (document.all)
	{
		//alert(bildetest);
		
		
		//alert(imgsrc.width);
		bildetest.style.top = 0;
		bildetest.style.left = 510;
		
	}
	else if (document.getElementById)
	{
		alert(document.getElementById('bildetest'));
		document.getElementById('bildetest').style.top = 0;
		document.getElementById('bildetest').style.left = 510;
		
	}

}


function skifttekst(tekstno)
{
	
	var testtekstArr = new Array()
testtekstArr[1981] = 'The 27th of August 1981 District Offshore AS was founded. The object of the company was to market the shareholders interests and to develop new projects for the coastal population.';
testtekstArr[1982] = 'KS AS District Supply I and II were founded. The companies contracted two large PSV\'s at Langstein Shipyard and Trondheim Shipyard.';
testtekstArr[1983] = 'Delivery of the vessels "Skandi Hav" and "Skandi Fjord". The largest vessels in its segments.';
testtekstArr[1984] = 'DOF Management AS was founded.';
testtekstArr[1985] = '"Skandi Fjord" started a 5 years contract with Halliburton. The vessel is still working on the same contract in 2006. Austevoll Supply\'s vessels are included in DOF Management\'s operations.';
testtekstArr[1986] = 'The management moved from previous poor office facilities to new offices: Kontorsenteret District Offshore DA. Oddvar Stangeland was appointed as Managing Director of the Company.';
testtekstArr[1987] = 'The company completed a capital issue of NOK 2,5 mill., and the Moegster family became the major shareholders of District Offshore.';
testtekstArr[1988] = 'The offshore companies were restructured and refinanced. The group started to invest in fishing activities.';
testtekstArr[1989] = '“Skandi Captain” is acquired (later renamed as “Skandi Inspector”). KS AS Broevig DOF Pipecarriers is founded, which include 3 vessels and 2 new-building contracts. DOF Management operates 10 vessels in total.';
testtekstArr[1990] = 'DOF Shipping AS was established and capitalized to secure further growth for the group.';
testtekstArr[1991] = 'Delivery of two new-buildings for KS AS Broevig DOF Pipecarries. DOF establishes a fishing activity in Chile. The fishing business was some years later separated from the offshore activity, and the business was taken over by Austevoll Havfiske AS.';
testtekstArr[1992] = 'The work for new quay facilities started. Storeboe Kai was a co-operation among Austevoll komune, Austevoll Fiskeindustri AS and District Offshore AS.';
testtekstArr[1993] = 'A merger between DOF Shipping AS and District Offshore AS which is the start of a consolidation of the offshore business.';
testtekstArr[1994] = 'The company is renamed to DOF Shipping AS. The fishing business is divided into a separate company.';
testtekstArr[1995] = 'KS AS Broevig DOF Pipecarriers is divided between DOF Shipping AS and Broevig Offshore.';
testtekstArr[1996] = 'DOF Shipping took delivery of “Skandi Marstein”, the first vessel with diesel electric propulsion system. “Skandi Bergen” was acquired in august. The group started to restructure and capitalize an offshore company.';
testtekstArr[1997] = 'The company was renamed to District Offshore ASA,  and is listed at Oslo Stock Exchange in October 1997.The new-building Skandi Stolmen is delivered from Søviknes Shipyard.  The company is 100% owner of 7 vessels and 4 new-building contracts.';
testtekstArr[1998] = 'Two new-buildings, KMAR 404, "Skandi Moegster" and "Lady Sandra" was delivered  From Kvaerner Kleven, Ulsteinvik. "Skandi Captain" (Inspector) was rebuilt as a survey vessel for a long term contract.  The management moved into new office facilities at Alfabygget.';
testtekstArr[1999] = 'The company took delivery of "Skandi Stord" from a shipyard in Chile in March. In December the company took delivery of "Skandi Navica", the so far biggest and most advanced vessel of the company\'s fleet. All new-buildings went into long term contracts. The management company DOF UK Ltd., Aberdeen was founded.';
testtekstArr[2000] = 'The company was restructured and District Offshore ASA was renamed to DOF ASA. The company entered into 4 new-building contracts, two PSV\'s, one cable layer and one Survey/ROV vessel. In October DOF took delivery of "Skandi Patagonia". The vessel sailed to Argentina for a long term contract after delivery.';
testtekstArr[2001] = 'DOF and Solstad signed an agreeement for a joint-venture in Brazil, Norskan Offshore Ltda. Two new-buildings were delivered in July, a survey vessel "Skandi Carla", and a cable layer "Skandi Neptune". Both vessels went into long term contracts. "Skandi Waveny" was taken on a B/B charter and the new-building "Skandi Yare" was taken over from Aukra Industrier.';
testtekstArr[2002] = 'In January Norskan signed a new-building contract in Brazil. In April DOF took delivery of "Skandi Foula" from Fitjar Mek. Shipyard and "Skandi Rona" from Myklebust shipyard. In September the company took delivery of "Skandi Buchan". At the end of 2002 DOF has 6 long term contracts with Shell UK.';
testtekstArr[2003] = 'In January DOF took delivery of "Skandi Sotra". Norskan entered into an agreement to take over new-building contract for a large AHTS, UT 722 L, and in august Norskan took delivery of "Norskan Flamengo". In December DOF acquired "Skandi Admiral" a large AHTS, UT 741 L.  In November "Skandi Caledonia" was delivered from Fitjar Shipyard. A private placing of 6 978 000 was completed in November.  In December DOF entered into an agreement with Taubaatkompaniet to establish DOF BOA and to acquire two AHTS.';
testtekstArr[2004] = 'In March DOF took delivery of a new "Skandi Captain" from Myklebust Shipyard. In May Norskan signed its first long term contract with Petrobras. DOF continued its good relationship with Shell UK with extension of existing contracts and contracts for new-buildings. DOF contracted two MT 6000 vessels for delivery in 2005 and 2006. The contract for "Skandi Neptune" was terminated and it was decided to rebuilt the vessel as a construction support vessel. Oddvar Stangeland retired and Mons S. Aase took over as managing director.';
testtekstArr[2005] = 'Nor Offshore was established, a co-operation with Solstad, Nortrans and DOF. A contract for a UT 722 L is signed for building in Brazil for DOF. In May GEO ASA is founded after acquisition of Geo Group. A private placing of NOK 715 mill is completed in June and in November GEO is listed at the Oslo Stock Exchange. Throughout 2005 GEO has a substantial growth, acquiring vessels and companies. At the end of 2005 GEO owns 15 vessels including new-building contracts. DOF took delivery of two PSV, one in July and one in October. Norskan took delivery of one AHTS in July.';
testtekstArr[2006] = '1st quarter GEO takes delivery of two cable layers in January, one the vessels entered into a 7 years seismic-contract. The same month GEO carries out a 10% share issue of NOK 276,5 mill. In February GEO acquires Covus Corporation Pty. in Australia. In February DOF signs a contract for one PSV VS 495 design for delivery in August 2007. In March a construction company, DOFCON, is founded. DOFCON carries out a share issue of NOK 400 mill and signs a contract for two large construction support vessels. In March GEO signs a contract for one ROV vessel for delivery in 2008 in Brazil.';


	//teksttest = "endre solem" + tekstno;
	
	//alert(myobject.parentNode.style.class);

	teksttest = testtekstArr[tekstno];
	
		
	if (document.all)
	{
		//alert(clockspan);
		bildetest.innerHTML = "<b>" + tekstno + "</b><br />" + teksttest;
	}
	else if (document.getElementById)
	{
		//alert("2"+document.getElementById(bildetest));
		document.getElementById('bildetest').innerHTML = "<b>" +tekstno + "<b><br>" +teksttest;
	}
}

function newperson(navn, stilling, bilde, tekst)
{

	if (document.all)
	{
		//alert(clockspan);
//		mainpicture.innerHTML = bilde;
		document['mainpicture'].src = bilde;
		maintekst.innerHTML = tekst;
		mainname.innerHTML = navn;
		maintitle.innerHTML = stilling;

		
	}
	else if (document.getElementById)
	{
		//alert("2"+document.getElementById(bildetest));
//		document.getElementById('mainpicture').innerHTML = bilde;
		document['mainpicture'].src = bilde;
		document.getElementById('maintekst').innerHTML = tekst;	
		document.getElementById('mainname').innerHTML = navn;
		document.getElementById('maintitle').innerHTML = stilling;
	}

}

function toptekst(tekst)
{
	teksttest = tekst;
	
		
	if (document.all)
	{
		//alert(clockspan);
		toptext.innerHTML = teksttest;
		toptext.style.left = 600;
	}
	else if (document.getElementById)
	{
		//alert("2"+document.getElementById(bildetest));
		document.getElementById('toptext').innerHTML = teksttest ;
		document.getElementById('toptext').style.left = 600;
	}
}