var APAArray = new Array(2);
	APAArray[0] = new Array(9);
	APAArray[1] = new Array(9);
	APAArray[0][0] = "In Paris I";
	APAArray[1][0] = "On arrival<br>a sign greets me<br>'danger de mort'<br><br>But the real danger<br>is not living.";
	APAArray[0][1] = "In Paris II";
	APAArray[1][1] = "Le Metro á la Gare du Nord<br>smells of burnt scrambled eggs<br><br>No one speaks<br>for fear of waking<br>in the 6am underground soup.";
	APAArray[0][2] = "In Amsterdam";
	APAArray[1][2] = "Only the winking<br>asian giggolo<br>makes her blush<br><br>through the red lights<br>we paced<br>raced<br>to find a little quiet time.";
	APAArray[0][3] = "Feeling human";
	APAArray[1][3] = "Squawking beast<br>and sweet kitten<br>in any bar in the world<br><br>This, our Café du Zon<br>tables clawed<br>warmed in the sun<br><br>little traveller<br>drifts in her book<br><br>scrappy, full of flavour<br>melting with each sip.";
	APAArray[0][4] = "The Lady of the Café du Zon";
	APAArray[1][4] = "Doll holds the room<br>a Carmen jester<br><br>her courtly gifts<br>in smiles and sways<br>for the market suitors.";
	APAArray[0][5] = "Untitled";
	APAArray[1][5] = "A different city now<br>cold in the sun<br><br>we wander in thought<br>once lost together<br>suddenly found alone.";
	APAArray[0][6] = "An epiphany";
	APAArray[1][6] = "Small victories<br>and 10 hour friends<br>make the journey";
	APAArray[0][7] = "All your walls and barricades";
	APAArray[1][7] = "With an open heart<br>I steam away<br>yesterday's faces<br><br>eyes that smiled<br>and rolled away<br>a circadian fool<br><br>No other way<br>can you love so much<br>and lose so free<br><br>Scrapes and bruises fade quickly<br>on a clumsy man.";
	APAArray[0][8] = "Et fini";
	APAArray[1][8] = "For the journey<br>back to the stack<br>reflection<br>and a little jazz<br><br>The buffet car<br>has no sandwiches<br><br>I discover<br>that I don't really mind.";

var poemArray = new Array(2);
	poemArray[0] = new Array(9);
	poemArray[1] = new Array(9);	
	poemArray[0][0] = "The One That Got Away";
	poemArray[1][0] = "Fried potato baited<BR>crab of Southend shore<BR>tactically retreating<BR>chip in claw<BR>captured nevermore<BR><BR>Red sauce marinated<BR>vessel diving deep<BR>white crustacean riding<BR>hear him roar:<BR>\"Captured Nevermore!\"";
	poemArray[0][1] = "Pain au Chocolat";
	poemArray[1][1] = "It's hard to lose weight<BR>when you're a man.<BR>You can't go on a diet,<BR>and I'd much prefer to fry-it.<BR><BR>No sweet morning goods for me,<BR>mourning beer, brioche and brie.";
	poemArray[0][2] = "II";
	poemArray[1][2] = "Frying pan crackles<BR>grease gives hope to frostbit toes<BR>eggs, sunny side up";
	poemArray[0][3] = "Morning Tea";
	poemArray[1][3] = "The boys gather<br>for morning tea<br>bantering<br>braying<br>talk of asses<br><br>crude dark stirring<br>& jest<br>a pinch of sugar<br>";
	poemArray[0][4] = "Ballad of a Corragated<BR>Cardboard Guitarist";
	poemArray[1][4] = "strum & breathe,<br>slouched<br>he picks out Jude<br><br>maestro, a tea<br>soggy & limp<br><br>he plays to live<br>greasey<br>without fret<br>";
	poemArray[0][5] = "The lonely mathematician";
	poemArray[1][5] = "|{us}| = 1";
	poemArray[0][6] = "<br>Calvera for Mike";
	poemArray[1][6] = "It wasn't punches, or the kicks,<br>That gave our Mike his final fix,<br>No that young lad was made of bricks,<br>His gut was what enthralled medics.<br><br>The victim's end was plain to see,<br>He didn't drown, or fall harshly,<br>\"Poor Michael died from too much tea\",<br>Reports the colonoscopy.<br><br>So if you kneel upon his grave,<br>And place a tribute to the brave,<br>Your pounds and pennys you can save,<br>If this advice, you do not wave:<br><br>Take not carnations, or tulips,<br>Mournful poems, ribbon strips,<br>In death, as life, to grace his lips,<br>Just take a bag of PG Tips.<br><br>";
	poemArray[0][7] = "On being a sellout";
	poemArray[1][7] = "On I go, waking and earning<BR>true artists are more discerning<BR>";
	poemArray[0][8] = "The Ideal Man";
	poemArray[1][8] = "I do the dishes<BR>when I can't be sure<br>that we exist<br><br>does it matter<br>that we're not matter?<br><br>do you think it just<br>that I never dust?";
var numOfPoems = poemArray[1].length;
var numOfAPAPoems = APAArray[1].length;
var APAPoemsSelected = false;
var OtherPoemsSelected = false;
var currentPoem = 0;	
function insertTree() {
	document.getElementById("treeSpan").innerHTML = "\<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\"330\" HEIGHT=\"400\" id=\"gab\" ALIGN=\"\"\> \<PARAM NAME=\"movie\" VALUE=\"gab.swf\"\> \<PARAM NAME=loop VALUE=false\> \<PARAM NAME=menu VALUE=false\> \<PARAM NAME=quality VALUE=high\> \<PARAM NAME=bgcolor VALUE=#D1C7A7\> \<EMBED src=\"gab.swf\" loop=false menu=false quality=high bgcolor=#D1C7A7  WIDTH=\"330\" HEIGHT=\"400\" NAME=\"gab\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"\>\</EMBED\>\</OBJECT\>";
}
function toggleButtons(choice) {
	if (choice) {
		document.getElementById("poemButtons").innerHTML = "<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"javascript: previousPoem();\" id=\"Previous\" onMouseOver=\"setStatusBarMessage(this.id);return true;\" onMouseOut=\"setStatusBarMessage(' ');\"><img src=\"previous.jpg\" alt=\"Previous\"></a>&nbsp;<a href=\"javascript: nextPoem();\" id=\"Next\" onMouseOver=\"setStatusBarMessage(this.id);return true;\" onMouseOut=\"setStatusBarMessage(' ');\"><img src=\"next.jpg\" alt=\"Next\"></a>";
	}
	else {
		/*document.getElementById("poemButtons").innerHTML = "<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.poetrykit.org\" id=\"Poetry Kit Listed Site\" onMouseOver=\"setStatusBarMessage(this.id);return true;\" onMouseOut=\"setStatusBarMessage(' ');\" target=\"_blank\"><img src=\"pkaward.gif\" alt=\"Poetry Kit Listed Site\"></a>";*/
		document.getElementById("poemButtons").innerHTML = "";
	}
}
function setStatusBarMessage(chosenLink) {
	window.status = chosenLink;
}
function aboutG() {
	setStatusBarMessage(" ");
	toggleButtons(false);
	document.getElementById("titleSpan").innerHTML = "";
	document.getElementById("mainSpan").innerHTML = "<BR><BR>A graduate of computing and philosophy, I was born and bred in the North West of England. Now a Southern fixture, I live a dual life as a professional IT geek and literary underdog.<br><br>Below you can find 'Adventures in Paris & Amsterdam', a series of 9 poems written over 8 days backpacking in Europe.  Alternatively, see some of my other poems on the Poetry page.</p>";
	//<p>You can find my poems here and there in magazines like Brando's Hat, Buzzwords, Brittlestar and Finger Dance Festival.</p>";
}
function contactG() {
	setStatusBarMessage(" ");
	toggleButtons(false);
	document.getElementById("titleSpan").innerHTML = "";
	document.getElementById("mainSpan").innerHTML = "I'd love to hear your thoughts and comments. Why not send me a message to:<BR><BR><a href=\"mailto:contact@gabrown.org\"><B>contact@gabrown.org</B></a>";
}
function openNews() {
	setStatusBarMessage(" ");
	toggleButtons(false);
	document.getElementById("titleSpan").innerHTML = "";
	document.getElementById("mainSpan").innerHTML = "";
}
function manifesto() {
	setStatusBarMessage(" ");
	toggleButtons(false);
	document.getElementById("titleSpan").innerHTML = "A New Manifesto For Poetry:<BR><BR>";
	document.getElementById("mainSpan").innerHTML = "<b>1.</b> Write to be read. By everyone.<br>";
	document.getElementById("mainSpan").innerHTML += "<b>2.</b> Conceptual art is empty. Don't be innovative, be you.<br>";
	document.getElementById("mainSpan").innerHTML += "<b>3.</b> Form, rhyme and meter are tools. Use them with purpose.<br>";
	document.getElementById("mainSpan").innerHTML += "<b>4.</b> But content always before form.<br>";
	document.getElementById("mainSpan").innerHTML += "<b>5.</b> Humour is encouraged, but not important.<br>";
	document.getElementById("mainSpan").innerHTML += "<b>6.</b> \"It's as much about what you leave out, as what you put in.\"<br>";
	document.getElementById("mainSpan").innerHTML += "<b>7.</b> Unusual perspectives are fascinating.<br>";
	document.getElementById("mainSpan").innerHTML += "<b>8.</b> Short IS sweet.<br>";
}
function links() {
	setStatusBarMessage(" ");
	toggleButtons(false);
	document.getElementById("titleSpan").innerHTML = "";
	document.getElementById("mainSpan").innerHTML = "<a href=\"http://apps.facebook.com/micropoetrychallenge\" id=\"/w3:ds/ micro poetry challenge\" onMouseOver=\"setStatusBarMessage(this.id);return true;\" onMouseOut=\"setStatusBarMessage(' ');\" target=\"_blank\">/w3:ds/ micro poetry challenge</a>";
	document.getElementById("mainSpan").innerHTML += "<BR><BR>";
	document.getElementById("mainSpan").innerHTML += "<a href=\"http://www.twitter.com/w3ds\" id=\"/w3:ds/ on Twitter\" onMouseOver=\"setStatusBarMessage(this.id);return true;\" onMouseOut=\"setStatusBarMessage(' ');\" target=\"_blank\">/w3:ds/ on Twitter</a>";
	document.getElementById("mainSpan").innerHTML += "<BR><BR>";
	document.getElementById("mainSpan").innerHTML += "<a href=\"http://www.poetrykit.org\" id=\"Poetry Kit (Resource)\" onMouseOver=\"setStatusBarMessage(this.id);return true;\" onMouseOut=\"setStatusBarMessage(' ');\" target=\"_blank\">Poetry Kit (Resource)</a>";
	document.getElementById("mainSpan").innerHTML += "<BR><BR>";
	document.getElementById("mainSpan").innerHTML += "<a href=\"http://www.poetrylibrary.org.uk\" id=\"Poetry Library (Resource)\" onMouseOver=\"setStatusBarMessage(this.id);return true;\" onMouseOut=\"setStatusBarMessage(' ');\" target=\"_blank\">Poetry Library (Resource)</a>";
	document.getElementById("mainSpan").innerHTML += "<BR><BR>";
}
function openPoems() {
	setStatusBarMessage(" ");
	toggleButtons(true);
	currentPoem = 0;
	document.getElementById("titleSpan").innerHTML = poemArray[0][0] + "<BR><BR>";
	document.getElementById("mainSpan").innerHTML = poemArray[1][0];
	APAPoemsSelected = false;
	OtherPoemsSelected = true;
}
function openAPAPoems() {
	setStatusBarMessage(" ");
	toggleButtons(true);
	currentPoem = 0;
	document.getElementById("titleSpan").innerHTML = APAArray[0][0] + "<BR><BR>";
	document.getElementById("mainSpan").innerHTML = APAArray[1][0];
	APAPoemsSelected = true;
	OtherPoemsSelected = false;
}
function nextPoem() {
	setStatusBarMessage(" ");
	currentPoem++;
	if ((OtherPoemsSelected && currentPoem >= numOfPoems) || (APAPoemsSelected && currentPoem >= numOfAPAPoems)) {
		currentPoem = 0;
	}
	if (APAPoemsSelected) {
		document.getElementById("titleSpan").innerHTML = APAArray[0][currentPoem] + "<BR><BR>";
		document.getElementById("mainSpan").innerHTML = APAArray[1][currentPoem];
	}
	else if (OtherPoemsSelected) {
		document.getElementById("titleSpan").innerHTML = poemArray[0][currentPoem] + "<BR><BR>";
		document.getElementById("mainSpan").innerHTML = poemArray[1][currentPoem];
	}
	toggleButtons(true);
}

function previousPoem() {
	setStatusBarMessage(" ");
	currentPoem--;
	if (currentPoem < 0) {
		if (OtherPoemsSelected) {
			currentPoem = numOfPoems-1;
		}
		else if (APAPoemsSelected) {
			currentPoem = numOfAPAPoems-1;
		}
	}
	if (APAPoemsSelected) {
		document.getElementById("titleSpan").innerHTML = APAArray[0][currentPoem] + "<BR><BR>";
		document.getElementById("mainSpan").innerHTML = APAArray[1][currentPoem];
	}
	else if (OtherPoemsSelected) {
		document.getElementById("titleSpan").innerHTML = poemArray[0][currentPoem] + "<BR><BR>";
		document.getElementById("mainSpan").innerHTML = poemArray[1][currentPoem];
	}
	toggleButtons(true);
}
function thanks() {
	setStatusBarMessage(" ");
	toggleButtons(false);
	document.getElementById("titleSpan").innerHTML = "Thanks";
	document.getElementById("mainSpan").innerHTML = "";
}
function getTheTime() {
	var now = new Date();
	var tempHour = now.getHours() + "";
	var tempMinutes = now.getMinutes() + "";
	if (tempHour.length == 1) {
		tempHour = "0" + tempHour;
	}
	if (tempMinutes.length == 1) {
		tempMinutes = "0" + tempMinutes;
	}
	var theTime = tempHour + ":" + tempMinutes;
	return theTime;
}