var qtext = new Array();
var qname = new Array();
var qurl = new Array();

var ctext = new Array();
var cname = new Array();

qtext[0] = '<img src="../images/home_page/vanda_home_page_thumb.gif" width="150" height="113" alt="V&amp;A Home Page" />';
qname[0] = "I completely revamped the underlying code for the Victoria and Albert Museum website in order to meet government accessibility guidelines, and I did it all within a complex content management system.";
qurl[0] = "../portfolio/vanda.html";

qtext[1] = '<img src="../images/home_page/moc_home_page_thumb.gif" width="150" height="106" alt="Museum of Childhood Home Page" />';
qname[1] = "I took the designs for the Museum of Childhood and developed the Museum's content management system to produce an accessible and easily managed site.";
qurl[1] = "../portfolio/moc.html";

qtext[2] = '<img src="../images/home_page/h2g2_home_page_thumb.gif" width="150" height="111" alt="h2g2 Home Page" />';
qname[2] = "<abbr title=\"The Hitchhiker's Guide to the Galaxy\">h2g2</abbr> - The Hitchhiker's Guide to the Galaxy - was launched in 1999, and I created the editorial and community teams from scratch, creating a site that was so good that in 2001, the <abbr title=\"British Broadcasting Corporation\">BBC</abbr> bought it.";
qurl[2] = "../portfolio/h2g2.html";

qtext[3] = '<img src="../images/home_page/xaraclub_home_page_thumb.gif" width="150" height="111" alt="XaraClub Home Page" />';
qname[3] = "I developed a robust shopping cart for XaraClub, the e-commerce arm of Xara Ltd, using <abbr title=\"Active Server Pages\">ASP</abbr> and <abbr title=\"Visual Basic Script\">VBScript</abbr>.";
qurl[3] = "../portfolio/xara.html";

qtext[4] = '<img src="../images/home_page/moxon_home_page_thumb.gif" width="150" height="111" alt="Mark Moxon\'s Travel Writing Home Page" />';
qname[4] = "My travel writing website is the highest ranking site of its kind in Google, and my site about walking from Land's End to John o'Groats is the most comprehensive in the world.";
qurl[4] = "../portfolio/personal.html";

ctext[0] = "Your observations about India are spot on. This is without doubt the best travel site on the Net. You have raised the bar for anybody else trying to put his own experiences on the Net. Absolutely amazingly written. How do you put it all so funnily?";
cname[0] = "Aatish&nbsp;A";

ctext[1] = "A true traveller. Best writing on the Web. Mark's writing on India is superb. I learned more about India through his writing than through anything else. I strongly recommend one reads him before setting foot in India.";
cname[1] = "Daya&nbsp;T";

ctext[2] = "It's a rainy day today where I live and I have spent a full two hours today reading the section on India and I still am not finished yet. The stories are beautifully written and engaging. I cannot think of a better way to spend a rainy day than sitting and reading your articles.";
cname[2] = "Mike from indiamike.com";

ctext[3] = "I was recommended to have a look at this site, and I have to say that this is arguably one of the best sites I've actually seen for recounting travelling experiences.";
cname[3] = "Mark&nbsp;B";

ctext[4] = "You've created a fantastic site, beautifully put together. I'm amazed that you've gone to such a mind-boggling number of places and still had the energy to write about it at the end of the day. Congratulations on the site, and for having the ability and wisdom to set off on your journeys, the good humour to continue with them, and the energy to tell us all about it...";
cname[4] = "Will&nbsp;M";

ctext[5] = "It's rare to find a site as good as this. It's one thing to travel, and yet another to bring these experiences to other people (who may not be able to) via these nicely written, well thought out and above all interesting articles. You are an inspiration to budding travel writers such as myself.";
cname[5] = "Dave&nbsp;L";

ctext[6] = "I found your site absolutely awesome. I have spent hours reading now, and I still have so much left to read. This is absolutely amazing, and right now I just want to go! I'm sure you're familiar with that feeling. :-) Thank you for an excellent site.";
cname[6] = "Bjorn&nbsp;J";

ctext[7] = "I have to say this is one of the best, most useful, funny, informative sites out there. Your writing is wonderful!";
cname[7] = "Patrick&nbsp;Y";

ctext[8] = "I loved the website. I just wanted to say your stories gave me confidence that I can actually get away for an open-ended trip (a plan I've been working on) and figure out what it is I'd like to do with my life. Thanks for the excellent writing, but more importantly, thanks for the inspiration.";
cname[8] = "Ryan&nbsp;W";

ctext[9] = "Thanks for the interesting site. A lot of really good work! The travelogues with dialogue are very entertaining (have you read William Dalyrymple?). You are honest without being patronising, unlike some travel writers I have read. I share your love of India. Thanks again and keep up the good work!";
cname[9] = "Peter&nbsp;R";

ctext[10] = "I came across your website by accident (as you do). It's like a good book, you can't put it down.";
cname[10] = "Frank&nbsp;W";

ctext[11] = "Superb site &ndash; really well presented and laid out, and full of information. A great job!";
cname[11] = "Kevin&nbsp;P";


// Display comment and quotation
function quotes() {
	var choice = Math.floor(Math.random() * qtext.length);
	var strHTML = '<h3>From My Portfolio<\/h3>';
	strHTML += '<p><a href="' + qurl[choice] + '">' + qtext[choice] + '<\/a><\/p>';
	strHTML += '<p>' + qname[choice] + '<\/p>';
	strHTML += '<p class="more"><a href="' + qurl[choice] + '">More details...<\/a><\/p>';
	choice = Math.floor(Math.random() * ctext.length);
	strHTML += '<h3>Praise for My Websites<\/h3>';
	strHTML += '<p class="initial">' + ctext[choice] + ' (' + cname[choice] +')<\/p>';
	strHTML += '<p class="more"><a href="../guestbook/site_testimonials.html">More testimonials...<\/a><\/p>';
	$('#additions').before(strHTML);

	// Insert AddThis HTML
	$('div.sidebar').prepend('<h3 class="initial">Share this Page</h3>'
		+ '<div class="addthis_toolbox addthis_default_style">'
			+ '<a class="addthis_button_email"></a>'
			+ '<a class="addthis_button_twitter"></a>'
			+ '<a class="addthis_button_facebook"></a>'
			+ '<a class="addthis_button_google"></a>'
			+ '<a class="addthis_button_favorites"></a>'
			+ '<span class="addthis_separator">|</span>'
			+ '<a class="addthis_button_compact"><img src="http://s7.addthis.com/static/btn/sm-plus.gif" width="16" height="16" border="0"/></a>'
		+ '</div>');
	$.getScript("http://s7.addthis.com/js/250/addthis_widget.js#username=markmoxon");
}


// Insert link to emailer on home page
function mailerLink() {
	var strHTML = '<li class="email"><p><strong>Email a Friend:</strong> If you want to let someone else know about my site, why not <a title="Email this page to a friend" href="';
	strHTML += '../cgi-bin/mailer.cgi?url=' + location.pathname + escape_plus(location.search) + "&amp;title=" + escape(document.title) + "&amp;folder=&amp;file=";
	strHTML += '">email a friend</a> with your own personal message?</p></li>';
	$('#homePageList li.contact').after(strHTML);
}
