var APAArray = new Array(2);
	APAArray[0] = new Array(9);
	APAArray[1] = new Array(9);
	APAArray[0][0] = "Paris I";
	APAArray[1][0] = "A sign greets me<br>'danger de mort'<br><br>But the real danger<br>is not living.";
	APAArray[0][1] = "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] = "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(8);
	poemArray[1] = new Array(8);	
	poemArray[0][0] = "Pain au Chocolat";
	poemArray[1][0] = "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][1] = "Calavera For Mike";
	poemArray[1][1] = "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 waive:<br><br>Take not carnations, or tulips,<br>Mournful poems, nor ribbon strips,<br>In death, as life, to grace his lips,<br>Just take a bag of PG Tips.";
	poemArray[0][2] = "She's Got The London Look";
	poemArray[1][2] = "She lights up in Baker<br>in yellow she beams<br>riding in black cabs<br>reliving the dream";
	poemArray[0][3] = "Breakfast Epiphanies";
	poemArray[1][3] = "Night owls,<br>youth who dare not sleep.<br>We count no sheep.<br><br>Hessen eyed,<br>late to doze,<br>never find us early rose.<br>Trolls of twilight<br>blinkered shows.<br><br>You rise,<br>we fall down comatose.";
	poemArray[0][4] = "The One That Got Away";
	poemArray[1][4] = "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][5] = "Taking The Pie";
	poemArray[1][5] = "Man from the shires<br>steak and kidney pastiche<br>hummus desires<br>but dinner is quiche";
	poemArray[0][6] = "On being a sellout";
	poemArray[1][6] = "On I go, waking and earning<BR>true artists are more discerning<BR>";
	poemArray[0][7] = "On an Education in Poetry";
	poemArray[1][7] = "She said:<br>punchlines are redundant<br>epiphanies are dead<br><br>that's how I see her";
	poemArray[0][8] = "Humble People, Who Expect";
	poemArray[1][8] = "You say we might go to hell<br>we're already here<br><br>Everything aflame.<br>Six senses burn,<br>with passion,<br>aversion,<br>delusion and suffering.<br><br>You hope we might get to heaven<br>we're already there<br><br>Through the gateless pearly gate,<br>see the embers in the charcoal";
	poemArray[0][9] = "Watford Girls";
	poemArray[1][9] = "Peroxide screeching<br>vodka hounds<br>on a weekend tease<br><br>With black eyed chavs<br>in snow white trainers<br>Stella beatings guaranteed<br><br>Their saving grace<br>curfew at 1<br>JD & coke in 3s<br><br>Hammered hags<br>in mini rags<br>tagged, on day release";
	poemArray[0][10] = "The Lonely Mathematician";
	poemArray[1][10] = "|{us}| = 1<br><br><br>(Translation: the cardinality of the set containing us, is equal to 1)";
	poemArray[0][11] = "Coke";
	poemArray[1][11] = "Down and out<br>of plastic cash<br>lint button ledger<br>sofa scrounging queen<br><br>Put your coppers<br>to the powder man<br>or he who brings the green<br><br>I spend it on my lesser vice<br>addiction pays<br>its pittance price<br>to the cold, brown and clean";
	poemArray[0][12] = "In Response To Your Racism";
	poemArray[1][12] = "No, I don't dig the coal<br>nor the Boddingtons drink.<br>And whippets and caps<br>are a Yorkshireman's thing.<br><br>There's no meat in my pies<br>and my cider is pink.<br>Though my accent is broad,<br>eloquently succinct.<br><br>Smart suited monkey<br>with a credible wink.<br>In the North South divide,<br>lives Darwin's missing link.";
	poemArray[0][13] = "The Ideal Man";
	poemArray[1][13] = "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 settled just outside of London, I live a dual life as a professional IT geek and literary underdog.<br><br>Below are my 'Adventures in Paris & Amsterdam', a series of 9 poems written over 10 days backpacking in Europe. Alternatively, see a selection of my other poems on the Poetry page.<BR><BR>You can also find me in back issues of Brando's Hat, Brittlestar, The Delinquent and Monkey Kettle amongst others.";
	//<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 a message to:<BR><BR><a href=\"mailto:graham@gabrown.org\"><B>graham@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> Innovation for voice, not for it's own sake.<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 always encouraged.<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;
}
