// life.js

function getBELink () {
	return EL('Belgium', 'www.belgium.be/');
}

function getNOLink () {
	return EL('Norway', 'english.norge.no/kart/');
}

function getVWLink (p_extra) {
	return EL('VW', 'www.volkswagen.de/', p_extra);
}

function getVWModelLink (p_model, p_extra) {
	return EL(p_model, 'www.volkswagen.de/' + p_model.toLowerCase(), p_extra);
}

function getGolfLink (p_extra) {
	return getVWModelLink('Golf', p_extra);
}

function getSuzukiLink (p_extra) {
	return ELCOM('Suzuki', 'suzukicycles', p_extra);
}

function getYamahaLink (p_extra) {
	return ELCOM('Yamaha', 'yamaha', p_extra);
}

function getXJ6Link (p_extra) {
	return EL('XJ6', 'www.yamaha-motor.no/produkter/motorsykler/xj_series/xj6-diversion-f.jsp', p_extra);
}

function getYearLink (p_year) {
	return IL(p_year, '#' + p_year);
}

function getCoasterLink() {
	return EL('roller coasters', 'www.coasters.net/');
}

function getDisneyParkURL (p_location) {

	return 'http://disneyworld.disney.go.com/wdw/parks/parkLanding?id=' + p_location + 'LandingPage';
}

function getSpaceShuttleLink (p_text, p_extra) {
	return EL((p_text == null ? 'Space shuttle' : p_text), 'http://www.nasa.gov/mission_pages/shuttle/flyout/', (p_extra == null ? ' ' : p_extra));
}

function getDisneyLink (p_location) {

	if (p_location == 'MK') {
		return EL('Magic Kingdom', getDisneyParkURL(p_location));
	} else if (p_location == 'EP') {
		return EL('Epcot', getDisneyParkURL(p_location));
	} else if (p_location == 'FR') {
		return ELCOM('Disneyland Resort Paris', 'disneylandparis');
	} else {
		return 'unknown location';
	}
}

function getEftelingLink (p_text, p_page) {

	return EL(
			(p_text == null ? 'Efteling' : p_text)
		,	'www.efteling.com/'
		+	(p_page == null ? '' : 'NL/Park/Attracties/' + p_text + '.html')
		);
}

function getPresidentLink() {
	return EL('president', 'www.whitehouse.gov/president/') + ' of the ' + ELGOV('USA', 'usa');
}

function getTravel2 (p_location, p_extra, p_how) {

	return (p_how == null ? 'Went to ' : p_how + ' ')
	+	p_location
	+	(p_extra == null ? '' : ' ' + p_extra)
//	+	'. '
	;
}

function getTravel (p_location, p_url, p_extra, p_how) {

	return getTravel2(EL(p_location, p_url), p_extra, p_how);
}

function getTravel_BE (p_extra) {
	return getTravel('Belgium', 'www.belgium.be/', p_extra);
}

function getTravel_FL (p_extra) {
	return getTravel('Florida', 'www.florida.com/', p_extra);
}

function getTravel_GR (p_location, p_extra) {
	return getTravel(p_location, 'www.greece.com/', p_extra);
}

function getTravel_RH (p_extra) {
	return getTravel('Rhodos', 'www.rhodesguide.com/', p_extra);
}

function getTravel_GC (p_extra) {
	return getTravel('Gran Canaria', 'www.spain-grancanaria.com/', p_extra);
}

function getTravel_MA (p_extra) {
	return getTravel('Mallorca', 'www.mallorcaspain.net/', p_extra);
}

function getConcert (p_artist, p_url, p_location) {

	return 'Went to '
	+	EL(p_artist, p_url)
	+	' concert in '
	+	p_location
//	+	'. '
	;
}

function getVHLink() {
	return getWikipediaLink('Valle Hovin in Oslo', 'no', 'Valle_Hovin', 0);
}

function getComp (p_name, p_anchor) {
	return IL(p_name, '../computers/index.htm#' + (p_anchor == null ? p_name.toLowerCase() : p_anchor));
}

function getVehicle (p_name, p_anchor, p_extra) {
	return IL(p_name, '../vehicles/index.htm#' + (p_anchor == null ? p_name.toLowerCase() : p_anchor), p_extra);
}

function getPFAlbum (p_title, p_id, p_period) {

	return EL('Pink Floyd', 'www.pinkfloydfan.net')
	+	' released &quot;'
	+	EL (
			p_title
		,	'www.pinkfloydfan.net/t'
		+	p_id
		+	'.html'
		)
	+	'&quot;'
	+	(p_period == 1 ? '. ' : '')
	;
}

function jobStart (p_company) {
	return 'Started ' + IL('working', '../employers.htm') + ' for ' + p_company;
}

function jobStop (p_company) {
	return 'Quit ' + IL('my job', '../employers.htm') + ' in ' + p_company;
}

function built (p_what, p_article) {
	return 'Built ' + (p_article == null ? 'a' : p_article) + ' ' + p_what;
}

function bought (p_what, p_article) {
	return 'Bought ' + (p_article == null ? 'a' : p_article) + ' ' + p_what;
}

function sold (p_what, p_extra) {
	return 'Sold the ' + p_what + (p_extra == null ? '' : p_extra);
}

function born (p_who) {
	return p_who + ' was born';
}

function died (p_who) {
	return p_who + ' died';
}

function getPhotoID (p_name) {
	if (p_name == 'dad')
		return '5537449395718677906';
	else if (p_name == 'mom')
		return '5537449401521192754';
	else if (p_name == '19590725')
		return '5537449413497354258';
	else if (p_name == 'auntg')
		return '5537449407008470466';
	else if (p_name == 'tc_and_mom')
		return '5537449392189438098';
	else if (p_name == 'brother')
		return '5537449422636683138';
	else if (p_name == 'dog')
		return '5537449410886828818';
	else if (p_name == 'russ')
		return '5537449431177858162';
	else
		return '';
}

function getPhotoURL_TL (p_name) {
	return 'http://picasaweb.google.com/toreingolf/Timeline#' + getPhotoID(p_name);
}

function getPhotoLink_TL (p_text, p_name) {
	return EL(p_text, getPhotoURL_TL(p_name == null ? p_text : p_name));
}

var OVS = EL('college', 'www.oppegaard.vgs.no');

var y = new Array(2020);
var s = new Array(2020);

for (x = 0; x < 2020; x++) y[x] = new Array(13);

y[1931][6] = born('My ' + getPhotoLink_TL('dad'));

y[1936][8] = born('My ' + getPhotoLink_TL('mom'));

y[1959][7] = 'My ' + getPhotoLink_TL('mom') + ' and ' + getPhotoLink_TL('dad') + ' ' + getPhotoLink_TL('married', '19590725');

y[1962][10] = born('My ' + getPhotoLink_TL('brother'));

y[1963][6] = born('My wife');

y[1965][2] = 'Was born. Wore ' + ELCOM('diapers', 'pampers');

y[1969][4] = 'Got scar(r)ed for life by ' + getWikipediaLink('Pompel og Pilt', 'no', 'Pompel_og_Pilt', 0) + ' (produced by ' + ELNO('NRK', 'nrk') + ')'; // home.online.no/~groennsl/pompelpilt/

y[1970][2] = born(getPhotoLink_TL('Inkas', 'dog')); // 02.02.1970

y[1972][8] = 'My first year at school. Teacher: Hauge';

y[1973][8] = 'New teacher: Anne Elisabeth Olsson';

y[1974][2] = getTravel_GC('(my first flight)');

y[1975][7] = 'The second hottest summer in Norway that I can remember (see ' + ILT(2005) + ')';

y[1976][7] = 'Went on a ' + ELNO('scout', 'scout') + ' ' + EL('camp', 'vimeo.com/3077272');

y[1977][6] = getTravel('Denmark and Germany', 'www.denmark.dk/', 'by car. ' + bought(EL('Lego Technic', 'technic.lego.com/'), 'my first') + ' set');

y[1978][6] = 'Started my daily journal on June 12th. ' + getTravel_GR('Crete') + '. My first year at High School. New teacher: H&aelig;rdig';

s[1979] = 'A lot of swimming and organ practice, and some ' + ELCOM('Lego', 'lego') + '. I was a real geek';

y[1979][4] = 'Won a swimming contest in the Follo region (200 m crawl)';
y[1979][6] = 'My grandmother died';
y[1979][7] = 'My ' + getPhotoLink_TL('dad') + ' sold the green speed boat and got a 17-foot ' + ELNO('Skibsplast', 'skibsplast') + ' instead';
y[1979][9] = built('radio-controlled car (' + YTL('XR-311', '6zHqTGVlkN4') + ' from ' + ELCOM('Tamiya', 'tamiya') + ')');
y[1979][11] = 'Got a manual typewriter';

s[1980] = 'Continued to be a geek: Swimming and organ practice, radio-controlled vehicles, electronics kits, bike rides, photography, still some ' + ELCOM('Lego', 'lego') + ', taking the bus in the wrong direction, my first 50cc motorcycle, etc.';

// 1980.5 Bjørn til kapellet

y[1980][2] = 'Spent my birthday with my good friend ' + EL('Svein Erik T&oslash;mt', 'home.c2i.net/ifuruset/Fjeld/etter_karen_olsdatter.htm');
y[1980][3] = 'Went on a camp with my class to ' + ELNO('Slangen Seter', 'slangen-seter', '. ') + getTravel_GR('Crete');
y[1980][5] = getWikipediaLink('Konfirmasjon', 'no', null, 0) + '. ' + built('radio-controlled boat');
y[1980][7] = 'Spent two weeks with ' + getPhotoLink_TL('my parents', '19590725') + ' and ' + getPhotoLink_TL('Inkas', 'dog') + ' at our summer resort while my ' + getPhotoLink_TL('brother') + ' went on ' + ELCOM('InterRail', 'interrailnet');
y[1980][8] = getPhotoLink_TL('My parents', '19590725') + ' tried to match me with an English au pair. New teacher: Thomas Scheen. First German lessons';
y[1980][9] = bought(IL('first SLR', '../cameras/index.htm#cam002'), 'my') + '. ' + getPhotoLink_TL('My parents', '19590725') + ' bought a ' + getWikipediaLink('Honda Civic', 'en', 'Honda_Civic', 0) + ' and then went on a vacation to Yogoslavia. Delevoped my first photos in a dark room';
y[1980][10] = bought(getVehicle('Puch')) + '. Work week at B&aelig;rum Zoo. Developed my first negative film.';
y[1980][11] = 'My ' + getPhotoLink_TL('dad') + ' started redecorating the basement. Reached my personal best for 100 m crawl: 1:05:4';

s[1981] = 'Swimming, hanging out with buddies, riding my motorcycle, going to movies, learning programming, listening to ' + IL('music', '../music/index.htm')+ ', building plasic models';

y[1981][1] = 'Subscribed to &quot;' + ELNO('Fotografi', 'fotografi', '&quot; (Norwegian photography magazine)');
y[1981][2] = 'Stowed the ' + ELCOM('Lego', 'lego') + ' in the attic. Got interested in microcomputers (' + getWikipediaLink('Sinclair ZX80', 'en', 'ZX80', 0) + ')';
y[1981][5] = sold(getVehicle('Puch')) + '. ' + bought(getVehicle('Suzuki AC50', 'ac50')) + '. Sold all the radio-controlled stuff (car + boat)';
y[1981][6] = 'Finished High School. Struggled with ' + ELCOM('Rubik\'s cube', 'rubiks');
y[1981][7] = getTravel('England', null, 'by car with my parents') + '. ' + bought(getComp('Sinclair ZX81', 'zx81'));
y[1981][8] = 'Dived from 5 meters. My first year at ' + OVS;
y[1981][9] = 'Stopped taking organ lessons. Geography trip to ' + getWikipediaLink('Kols&aring;s', 'no', 'Kols%C3%A5s', 0) + ' with my class';
y[1981][10] = 'Discovered ' + getArtistLink('TAPP');

s[1982] = 'Jogging and riding bicycle with my good friend Atle, computers, riding my motorcycle, writing poems with my good friend Morten, hanging out on the ' + EL('beach', 'www.friluftsetaten.oslo.kommune.no/badeinfo/ingierstrand/') + ', listening to ' + getArtistLink('TAPP') + ' and ' + getArtistLink('RM') + ' and ' + getArtistLink('DS') + ' and Barclay James Harvest and Sky'+ ', going to movies, summer jobs, preparing for the driver\'s test';

y[1982][1] = sold(getComp('ZX81', 'zx81'));
y[1982][2] = getTravel('Tenerife', 'www.tenerife.com/');
y[1982][3] = bought(getComp('Commodore VIC-20', 'vic20')) + '. Wrote ' + IL('my first poem', '../../poems/poem0001.htm');
y[1982][4] = sold(getVehicle('Suzuki AC50', 'ac50'));
y[1982][5] = 'Started practicing driving a car with my ' + getPhotoLink_TL('dad');
y[1982][6] = bought('Sanyo MG1 walkman') + '. ' + bought('VIC expansion unit') + '. Summer job in Norsk Viftefabrikk';
y[1982][7] = 'Dived from 10 meters. Summer job in Tanum Norli. Tasted ' + getWikipediaLink('alchohol', 'en', 'Alchohol', 0) + ' for the first time';
y[1982][8] = died(getPhotoLink_TL('Inkas', 'dog')) + ', but I continued to walk every evening with my ' + getPhotoLink_TL('dad');
y[1982][9] = bought('Sanyo C5 stereo');
y[1982][10] = 'Movie: Cat People. My ' + getPhotoLink_TL('brother') + ' started his military service. Preparing for the driver\'s license test. Rediscovered ' + getArtistLink('MMEB');
y[1982][11] = '12.11.1982: Class 2A held &quot;2A p&aring; feil villspor&quot; at ' + OVS;
y[1982][12] = 'Tried to join a VIC20 club. Learned how to drive on ice';

s[1983] = 'Jogging, swimming, computers (trying to convince friends to get Commodores, but they bought Dragons, TIs, and Orics), going to movies, delivering newspapers, hanging out with friends';

y[1983][1] = EL('Military examination', 'forsvaret.no/verneplikt/sesjon') + '. Practicing for the driver\'s test';
y[1983][2] = 'Got my driver\'s license. Got a crew cut';
y[1983][3] = 'Tried my friend\'s Suzuki GSX 400E';
y[1983][7] = 'Went on ' + ELCOM('InterRail', 'interrailnet');
y[1983][10] = sold(getComp('Commodore VIC-20', 'vic20')) + '. ' + bought(getComp('Commodore 64', 'c64'));

s[1984] = 'Was hopefully lost in love with Cecilie';

y[1984][2] = getTravel('Tenerife', 'www.tenerife.com/');
y[1984][5] = IL('Finished', '../russ.htm') + ' ' + OVS;
y[1984][6] = getConcert('YES', 'http://www.yesworld.com/', 'Drammenshallen') + '. ' + getTravel_GC();
y[1984][7] = 'Got my driver\'s license for motorcycle.';
y[1984][8] = getConcert('Chris de Burgh', 'http://www.cdeb.com/', 'Ekeberghallen');
y[1984][9] = 'My first year at ' + ELNO('Datah&oslash;gskolen', 'nith');

y[1985][6] = getTravel_MA();
y[1985][8] = bought(getVehicle('1978 Suzuki GS400', 'gs400'));
y[1985][9] = sold(getVehicle('1978 Suzuki GS400', 'gs400'), ' (too much rain!)');
y[1985][10] = getConcert('Dire Straits', 'http://www.money-for-nothing.com/', 'Drammenshallen');
y[1985][11] = bought(getComp('Commodore 128', 'c128')) + '. ' + sold(getComp('Commodore 64', 'c64'));

y[1986][6] = 'Finished ' + ELNO('Datah&oslash;gskolen', 'nith') + '. ' + getTravel_RH();
y[1986][7] = 'Started my ' + EL('military service', 'www.mil.no/forsvarsnett/luft/');
y[1986][9] = sold(getComp('Commodore 128', 'c128'));
y[1986][12] = bought(getComp('IBM PC/XT', 'ibm_pcxt'), 'an');

y[1987][2] = getConcert('a-ha', 'http://www.a-ha.com/', 'Drammenshallen');
y[1987][6] = getTravel_GR('Kos');
y[1987][10] = 'Finished my ' + EL('military service', 'www.mil.no/forsvarsnett/luft/') + '. ' + jobStart(getShellLink());

y[1988][1] = 'Moved from Kolbotn into my own apartment in Oslo';
y[1988][6] = 'Met co-worker in ' + getShellLink() + ' via email';
y[1988][8] = getConcert('Pink Floyd', 'http://www.pinkfloydfan.net/', getVHLink()) + '. ' + getConcert('Prince', 'http://www.prince.org/', getVHLink());
y[1988][9] = sold(getComp('IBM PC/XT', 'ibm_pcxt'), ' to ' + getShellLink());

y[1988][12] = 'Co-worker came to Norway';

y[1989][3] = getTravel_BE('to visit co-worker');
y[1989][6] = 'Co-worker moved from ' + getBELink() + ' to ' + getNOLink();
y[1989][8] = getTravel('France', null, 'by car with my parents and co-worker') + '. Proposed';
y[1989][12] = getTravel_BE();

y[1990][1] = 'Got ' + ELCOM('married', 'marriage');
y[1990][9] = bought(getComp('Carry-I', 'carry'));
y[1990][12] = getTravel_BE();

y[1991][9] = getTravel_GR('Santorini');

y[1992][5] = getTravel_BE();

y[1993][5] = bought(getComp('Dell 433M', 'dell_433m'));
y[1993][6] = getTravel_GR('Samos');
y[1993][7] = 'Moved from Oslo to Bergen';
y[1993][10] = getTravel_FL(' and visited ' + getDisneyLink('EP'));

y[1994][3] = getTravel('Phuket', 'www.phuket.com');
y[1994][4] = getConcert('Jethro Tull', 'http://www.jethro-tull.com/', ELNO('Grieghallen in Bergen', 'grieghallen'));
y[1994][6] = getTravel_BE() + '. ' + getTravel('Paris');
y[1994][8] = 'Had ' + getWikipediaLink('laser', 'en', 'Excimer_laser', ' ') + getWikipediaLink('surgery', 'en', 'LASIK', 0) + ' to cure ' + EL('myopia', 'www.myopia.org/', '. ') + getConcert('Pink Floyd', 'http://www.pinkfloydfan.net/', getVHLink());
y[1994][9] = getTravel('London', 'www.visitlondon.com/');
y[1994][12] = getTravel('Newcastle');

y[1995][2] = 'Went skiing in Livigno';
y[1995][4] = getTravel_BE();
y[1995][7] = 'Moved from Bergen back to Kolbotn. ' + getTravel('Austria');
y[1995][9] = getTravel('Malta');
y[1995][11] = bought(getVWLink(' ') + getVehicle('Polo'));
y[1995][12] = getTravel_BE();

y[1996][3] = getConcert ('Chris de Burgh', 'http://www.cdeb.com/', 'in ' + ELNO('Konserthuset in Oslo', 'oslokonserthus'));
y[1996][4] = 'Created ' + IL('my first homepage', '../../versions/01/index.htm') + ' on the Internet';
y[1996][7] = getTravel('France') + '. ' + getTravel_BE('by car') + '. ' + getConcert('Eagles', 'www.eaglesband.com/', getVHLink());
y[1996][9] = getTravel('Rome', getPhotoURL('5537161741066468882')) + '. ' + jobStop(getShellLink()) + '. ' + jobStart(getOraLink());

y[1997][3] = getTravel('Malaysia') + '. ' + died(getPhotoLink_TL('My aunt', 'auntg')); // 15.05.1932-28.03.1997
y[1997][7] = getTravel('Paris');
y[1997][9] = getTravel('Spain');

y[1998][2] = getTravel('San Francisco', getPhotoURL('5537161933526825730'));
y[1998][6] = getTravel('Sardinia', getPhotoURL('5537160546514678770'));
y[1998][11] = getTravel_BE();

y[1999][2] = getTrysilLink(1999);
y[1999][4] = getTravel('New York', getPhotoURL('5537160565195790674'));
y[1999][8] = getConcert('Gary Moore', 'http://www.gary-moore.com/', 'Dr&oslash;bak') + '. ' + getTravel('London', 'www.visitlondon.com/') + '. ' + getTravel('France', getPhotoURL('5537140716097319122')) + '. ' + getTravel_BE(' and rented a car');
y[1999][9] = died('My ' + getPhotoLink_TL('mom')) + '. ' + bought(getComp('Pentium III', 'pIII')); // 11.08.1936-11.09.1999
y[1999][11] = getTravel_FL(' and visited ' + getDisneyLink('MK'));

y[2000][1] = getTravel('Verbier', 'www.verbier.ch/index.cfm?Langue=En', null, 'Went ' + getPhotoLink('skiing', '5537163297031457986') + ' in');
y[2000][2] = 'Was part of the ' + IL('iDesk', '../../oracle/idesk/index.htm') + ' project (code name ' + EL('Gonzo', 'muppet.wikia.com/wiki/Gonzo') + ') at ' + ELNO('Nettavisen', 'nettavisen') + '. ' + getTrysilLink(2000);
y[2000][6] = getTravel('Toscana');
y[2000][11] = getTravel('The Dominican Republic', 'www.dominicanbreeze.com/');

y[2001][1] = getTravel('Bad Gastein', 'www.gastein.com', null, 'Went skiing in');
y[2001][2] = getTrysilLink(2001);
y[2001][4] = sold(getVehicle('Polo'));
y[2001][5] = getTravel_BE() + '.' + getTravel('Prague', 'www.prague.cz/');
y[2001][6] = bought(getVWLink(' ') + getVehicle('Golf'));
y[2001][7] = 'Became a ' + ELCOM('father', 'father') + ' for the first time';
y[2001][9] = getTravel_BE('by car');
y[2001][10] = getTravel('Tusenfryd', 'www.tusenfryd.no', 'and rode the ' + EL('Thundercoaster', 'www.tusenfryd.no/no/Se-og-gjoere/ThunderCoaster') + ' non-stop for almost an hour');

y[2002][2] = getTrysilLink(2002);
y[2002][3] = getTravel_BE();
y[2002][5] = getTravel_GR('Cyprus');
y[2002][9] = getTravel2(getDisneyLink('FR'));
y[2002][12] = 'Became a ' + EL('blogger', 'toreingolf.blogspot.com/');

y[2003][2] = getTrysilLink(2003);
y[2003][3] = getTravel_FL (
	'and enjoyed some of the '
+	EL('theme parks', 'themeparks.about.com/')
+	': '
+	ELCOM('Busch Gardens', 'buschgardens')
+	' ('
+	getCoasterLink()
+	': '
+	EL('Kumba', 'www.4adventure.com/buschgardens/fla/ar_kumba.aspx')
+	', '
+	EL('Gwazi', 'www.4adventure.com/buschgardens/fla/ar_gawazi.aspx')
+	', and '
+	EL('Montu', 'www.4adventure.com/buschgardens/fla/ar_montu.aspx')
+	'), '
+	getDisneyLink('MK')
+	', and '
+	EL('Sea World', 'www.seaworld.com/seaworld/fla/')
+	' ('
+	EL('Kraken', 'www.seaworld.com/seaworld/fla/ar_kraken.aspx')
+	')'
);

y[2003][4] = getTravel('Denmark', 'www.visitdenmark.com', 'and visited ' + EL('Tivoli', 'www.tivoli.dk') + ' and ' + EL('Legoland', 'www.lego.com/legolandnew/billund/'));

y[2003][7] = getTravel('Kristiansand', 'www.kristiansand.as', 'and enjoyed ' + ELNO('Dyreparken', 'dyreparken') + ' and ' + ELNO('Kaptein Sabeltann', 'sabeltann'));

y[2004][2] = getTrysilLink(2004);
y[2004][4] = getConcert('Manfred Mann\'s Earth Band', 'www.manfredmann.co.uk', ELNO('Rockefeller', 'rockefeller')) + '. Read ' + ELCOM('Michael Moore', 'michaelmoore') + '\'s book &quot;' + EL('Stupid White Men', 'www.amazon.com/exec/obidos/ASIN/0060392452/dogeatdogfilms') + '&quot; and saw his movie &quot;' + ELCOM('Bowling for Columbine', 'bowlingforcolumbine') + '&quot;';
y[2004][5] = getTravel('London', 'www.visitlondon.com', 'and saw the &quot;' + EL('Chitty Chitty Bang Bang', 'www.chittythemusical.co.uk/') + '&quot; musical. ') + getTravel_BE();

y[2005][4] = bought(getComp('Dell Dimension 5000', 'dell_5000'));
y[2005][7] = 'The hottest summer in Norway that I can remember (see ' + ILT(1975) + ')';
y[2005][9] = getTravel_BE();
y[2005][10] = getTravel(getDisneyLink('FR'));

y[2006][1] = 'Became a ' + ELCOM('father', 'father') + ' for the second time';
y[2006][2] = getTrysilLink(2006);
y[2006][4] = getTravel_BE();
y[2006][5] = getTravel(getEftelingLink()) + ' (' + getCoasterLink() + ': ' + getEftelingLink('Python', 1) + ' and ' + getEftelingLink('Pegasus', 1) +')';

y[2007][2] = getTrysilLink(2007);
y[2007][5] = getTravel_MA();
y[2007][6] = 'Became an ' + EL('Oracle blogger', 'blogs.oracle.com/', ': ') + EL(null, 'http://toreingolf.blogspot.com/');

y[2008][2] = getTrysilLink(2008);
y[2008][5] = jobStop(getOraLink());
y[2008][7] = getTravel_RH();
y[2008][9] = jobStart(getEvitaLink2()) + '. ' + sold(getVehicle('Golf'));
y[2008][10] = bought(getVWLink(' ') + getVehicle('Passat'));
y[2008][11] = bought(getComp('Dell Inspiron 1525', 'dell_1525'));

y[2009][9] = getTravel_GC();
y[2009][10] = jobStop(getEvitaLink());

y[2010][1] = jobStart(getNSALink2());
y[2010][2] = 'Was taken off the ' + EL('list of Oracle blogs', 'blogs.oracle.com/') + ' (do not critisize ' + getOraLink() + '!)';
y[2010][7] = getTravel_MA();
y[2010][9] = bought(getYamahaLink(' ') + getVehicle('XJ6'));
y[2010][11] = died('My ' + getPhotoLink_TL('dad')); // 16.06.1931-26.11.2010

function getMonth (p_year, p_month) {
	return (y[p_year][p_month] == null ? '' : addPeriod(y[p_year][p_month]));
}

function getTimeline (p_year) {
	var l_year = '';
	for (l_month = 1; l_month < 13; l_month++) {
		l_year += getMonth(p_year, l_month);
	}
	return l_year;
}

function getMonthCode (p_num) {
	if (p_num == 1) {
		return "jan";
	} else if (p_num == 2) {
		return "feb";
	} else if (p_num == 3) {
		return "mar";
	} else if (p_num == 4) {
		return "apr";
	} else if (p_num == 5) {
		return "may";
	} else if (p_num == 6) {
		return "jun";
	} else if (p_num == 7) {
		return "jul";
	} else if (p_num == 8) {
		return "aug";
	} else if (p_num == 9) {
		return "sep";
	} else if (p_num == 10) {
		return "oct";
	} else if (p_num == 11) {
		return "nov";
	} else if (p_num == 12) {
		return "dec";
	} else return '';
}

function getMonthName (p_num) {
	if (p_num == 1) {
		return "January";
	} else if (p_num == 2) {
		return "February";
	} else if (p_num == 3) {
		return "March";
	} else if (p_num == 4) {
		return "April";
	} else if (p_num == 5) {
		return "May";
	} else if (p_num == 6) {
		return "June";
	} else if (p_num == 7) {
		return "July";
	} else if (p_num == 8) {
		return "August";
	} else if (p_num == 9) {
		return "September";
	} else if (p_num == 10) {
		return "October";
	} else if (p_num == 11) {
		return "November";
	} else if (p_num == 12) {
		return "December";
	} else return '';
}

function m (p_num, p_text) {
	writeSection(getMonthCode(p_num), getMonthName(p_num));

	p(p_text);
}

function PageHeaderLife (p_year) {

	document.title = 'TC\'s Life';

	if (location.href.indexOf('year') > 0)
		document.title += ' in ' + p_year;		

	PageHeader('about_life');

	if (p_year != null) {

		l_summary = '';

		l_age = eval(p_year - 1965);

		if (l_age == 0)
			l_summary = 'The year I was born. ';
		else if (l_age > 0)
			l_summary = 'The year I turned ' + l_age + '. ';

		if (s[p_year] != null)
			l_summary += s[p_year] + '.';

		p('<i>' + l_summary + '</i>');
	}
}

function PageBodyLife (p_year) {

	for (l_month = 1; l_month < 13; l_month++) {
		m(l_month.toString(), getMonth(p_year, l_month));
	}
}

function PageFooterLife() {
	PageFooter();
}


