// java script to enable a random display of testimonials

// 29 jul 2002, frank o'brien, dianfrank_del@attbi.com

// create the testimonial database
// GuestBook will be an array of NumOfEntries elements

NumOfEntries=52

GuestBook=new Array(NumOfEntries)

// define the GuestBook elements
// each element is an object with properties: Date, Comments, Person, Place
// data was auto-generated by Excel spreadsheet, guestbook.xls

GuestBook[0]={Date:"&nbsp;", Comments:"Great place!  Great fun!  Great food!", Person:"Sharon Popillo", Place:"Barre, MA, USA"}
GuestBook[1]={Date:"&nbsp;", Comments:"Gracious host + thankful for the lift.  Come see us in the USA!!", Person:"Roseann, Dunne", Place:"Southampton, PA, USA"}
GuestBook[2]={Date:"&nbsp;", Comments:"Wonderful place - warm beds - most gracious host", Person:"Charlotte Catherman", Place:"Lansdale, PA, USA"}
GuestBook[3]={Date:"&nbsp;", Comments:"We had a wonderful time and are glad we took the advice of friends in Buffalo to spend our first night in your B+B. Thank you", Person:"Clare O'Brien + Brian Langenfeld", Place:"Waltham, MA, USA"}
GuestBook[4]={Date:"&nbsp;", Comments:"Great rooms", Person:"Clair & Ben McKenney", Place:"Springfield, IL, USA"}
GuestBook[5]={Date:"&nbsp;", Comments:"Wonderful", Person:"Muala & Sam Kaeding", Place:"Seattle, WA, USA"}
GuestBook[6]={Date:"&nbsp;", Comments:"Great, wonderful family", Person:"Ginny & David Stulman", Place:"NH, USA"}
GuestBook[7]={Date:"&nbsp;", Comments:"We had a wonderful time - Thank you", Person:"Jack + Eryn Wike + Glenda neighbors", Place:"Springfield, IL, USA"}
GuestBook[8]={Date:"&nbsp;", Comments:"Wonderful breakfast, Lovely, helpful and very kind.  Thank you", Person:"Susan, Carol, Mary Abbot, Kate", Place:"Australia, Morrison Co."}
GuestBook[9]={Date:"&nbsp;", Comments:"Thanks for being part of our wonderful holiday!", Person:"Sean & Angela O'Connell", Place:"Denver, CO, USA"}
GuestBook[10]={Date:"&nbsp;", Comments:"I had a great time! Thanks!!", Person:"Diva Emery", Place:""}
GuestBook[11]={Date:"&nbsp;", Comments:"Gorgeous view - picturesque - great accommodations!", Person:"Sanford + Co", Place:"Iowa, Virginia, California + Michigan, USA"}
GuestBook[12]={Date:"&nbsp;", Comments:"Great breakfast - Thank you", Person:"S. Jawell", Place:""}
GuestBook[13]={Date:"&nbsp;", Comments:"Thank for a wonderful stay and it's nice to find a Buffalo connection.", Person:"Pat, Anita and Meghan Crotty", Place:""}
GuestBook[14]={Date:"&nbsp;", Comments:"Relaxing stay with a wonderful breakfast and beautiful sunrises!", Person:"Pamela & Sue Lonagan", Place:"Chelmsford, MA, USA"}
GuestBook[15]={Date:"&nbsp;", Comments:"Great accommodations - walking distance to pubs and food.   Love the town and your hospitality", Person:"Kathi, Mark & Kieth Norstern", Place:"St. Petersburg, FL, USA"}
GuestBook[16]={Date:"&nbsp;", Comments:"Great accommodations", Person:"Richard Montgomery", Place:"Louisville, KY, USA"}
GuestBook[17]={Date:"&nbsp;", Comments:"Great Guinness and Salmon, had fun", Person:"Mark + Robin Koenig", Place:"Petersham, MA, USA"}
GuestBook[18]={Date:"&nbsp;", Comments:"Came here for the music and staying here made it better.  Thank you for the hospitality and nice view.", Person:"Marlin Snyder", Place:"California, USA"}
GuestBook[19]={Date:"&nbsp;", Comments:"Can't believe the view! This place is beautiful.  We fell upon this place and it was wonderful.", Person:"Jo + Bruce; Mike + Nicky", Place:"Vancouver, Canada; Australia"}
GuestBook[20]={Date:"&nbsp;", Comments:"Enjoyed our one night here.  Weather fantastic - better than expected", Person:"Roel, Ubra + Dauila", Place:"Holland and Ireland"}
GuestBook[21]={Date:"&nbsp;", Comments:"Very warm stay - Beautiful views - Thank you", Person:"Joan + Peter Fuhrmann", Place:"Port Jefferson, NY, USA"}
GuestBook[22]={Date:"&nbsp;", Comments:"Love Doolin, the Burren, all of Ireland.  Especially love the authentic Irish Breakfast of fruit, yogurt and cheese.  Thank you", Person:"Kathleen Ueuyin", Place:"Portland, OR, USA"}
GuestBook[23]={Date:"&nbsp;", Comments:"Thanks always for a great place to sleep and all we could eat.  It’s a great vantage point over the hills of Doolin ", Person:"Frank & Dian, Lowell, Ma. USA", Place:"Lowell, Ma. USA"}
GuestBook[24]={Date:"&nbsp;", Comments:"Thank you for your hospitality.  We had a great time in Doolin and met a lot of nice people", Person:"Jody + Greg Wick", Place:"Newburyport, Ma. USA"}
GuestBook[25]={Date:"&nbsp;", Comments:"Just a wonderful, warm stay.  Enjoyed the friendly hospitality.  Doolin will be etched in my mind for a very long time.  Thanks for the great breakfast.", Person:"Kris Gingle Polson", Place:"Montana, USA"}
GuestBook[26]={Date:"&nbsp;", Comments:"Thanks so much for a wonderful evening.  We had a great time in Doolin.  Your home is warm and friendly and we won’t forget our stay!", Person:"Kristi, Sean, Mo & CR", Place:"Burke, VA USA"}
GuestBook[27]={Date:"&nbsp;", Comments:"It was very, very beautiful and scenic.  Thank you very much for your help!!! (Brash).  Have a nice day - we see you on the road!", Person:"Jatois + Ange", Place:"Germany - Berlin"}
GuestBook[28]={Date:"&nbsp;", Comments:"Your home is very beautiful and scenic.  Thank you very much for your hospitality and excellent advice on places to go.  We may see you the next time we’re in Ireland", Person:"Sheila + Dennis Rusne", Place:"MD, USA"}
GuestBook[29]={Date:"&nbsp;", Comments:" Enjoyed our stay very much, great hospitality.  'Will be back'", Person:"Kevin & Chrishie", Place:"Bristol"}
GuestBook[30]={Date:"&nbsp;", Comments:"Thank you for your wonderful hospitality and fantastic service.  This is a beautiful home and a beautiful country. - Cheers!!!", Person:"Dennis Donohue", Place:""}
GuestBook[31]={Date:"&nbsp;", Comments:"Thanks for ALL your help, support + kindness while we tried to figure on 'going home' - your home is lovely - Views well worth the trip - Music the very best at the pub!!", Person:"Sue & Jim McElroy", Place:"Gt. Barrington, MA, USA"}
GuestBook[32]={Date:"&nbsp;", Comments:"Have so enjoyed our first trip to Ireland especially this area.  Hope to return to your B&B & the hospitality especially Mary Jo’s, before her daughter’s Confirmation.  Thank you   ", Person:"Bob & Dee Schulz", Place:"Fox Point, Wisconsin"}
GuestBook[33]={Date:"&nbsp;", Comments:"Thank you for your warmth & hospitality & for being our first B&B in Ireland!  We slept so soundly!  We hope to return!  God Bless", Person:"Bridget & Christopher Klafft", Place:""}
GuestBook[34]={Date:"&nbsp;", Comments:"Thank you for your hospitality and taking care of us while we visit your beautiful Ireland.", Person:"Scott + Valerie Weber, Mervyn Coelho", Place:""}
GuestBook[35]={Date:"&nbsp;", Comments:"Thank you for your hospitality.  We had a wonderful time in Doolin and enjoyed it.  We wish you and your family all the best.", Person:"Frank & Jeanette", Place:"Berlin"}
GuestBook[36]={Date:"&nbsp;", Comments:"A very nice place to stay - one of our best souvenirs of Ireland  Thank you ", Person:"Ben & Rachel", Place:"France"}
GuestBook[37]={Date:"&nbsp;", Comments:"Thank you for a wonderful stay!  Your family is charming; your hospitality is warm & professional and your locale is memorable.  Thank you  ", Person:"Bob & Eileen Moloy", Place:""}
GuestBook[38]={Date:"&nbsp;", Comments:"I’ll be back for the warm welcome and dinner at Vaughn’s", Person:"Chris Crelen", Place:"Wiesbaden Germany /Flagstaff, Arizona USA"}
GuestBook[39]={Date:"&nbsp;", Comments:"Thank you so much for all your help - from the 'keg man' to the pub suggestions, to the ferry calls.  We enjoyed the Aran Island, Inisheir, so much!  We hope you enjoyed your holiday in Dublin!", Person:"Jim + Karin Doyle", Place:"Colorado, USA"}
GuestBook[40]={Date:"&nbsp;", Comments:"Mary Jo, Thank you.  It was nice to connect with a former Buffalo Gal.  The inclement weather was overshadowed by the warmth and congeniality of the people and our hostess. ", Person:"Patrick H. & Sally Beach", Place:"Hamburg, New York"}
GuestBook[41]={Date:"&nbsp;", Comments:"Thank you for a wonderful stay.  You are very hospitable.  It is beautiful here.  Thank you", Person:"Meg Taylor", Place:""}
GuestBook[42]={Date:"&nbsp;", Comments:"Thank you so much for everything; the accommodations are lovely & so is your family.  We had a great stay in Doolin!", Person:"Linda, John & Sarah Tallman & Mike Stierman", Place:"Maumee, OH, USA"}
GuestBook[43]={Date:"&nbsp;", Comments:"Wonderful Stay! Thanks you so much.", Person:"Hull & Taffy Maynard", Place:"Shrewsbury, VT, USA"}
GuestBook[44]={Date:"&nbsp;", Comments:"Merabiglioss = really very very nice!", Person:"The Romanos", Place:"Milan, Italy"}
GuestBook[45]={Date:"&nbsp;", Comments:"Excellent accommodation, Good food + pleasant + helpful host", Person:"Lock + Torns Brown", Place:"Anbroath, Scotland"}
GuestBook[46]={Date:"&nbsp;", Comments:"Hospitably was great! Food, too!", Person:"Suelades", Place:"Wyoming, USA"}
GuestBook[47]={Date:"&nbsp;", Comments:"A very nice place.  Thank you for hospitality, it's very nice.", Person:"Jose and Sara", Place:"El Prat (Barcelona) Spain = Espana"}
GuestBook[48]={Date:"&nbsp;", Comments:"Very nice. Thank you very much for your hospitality", Person:"George + Sadie", Place:"USA"}
GuestBook[49]={Date:"&nbsp;", Comments:"Thanks for a lovely stay - and for taking us in at the last moment when we needed a room", Person:"Tony and Emily", Place:"NYC, USA"}
GuestBook[50]={Date:"&nbsp;", Comments:"Ardderchog! (Great)", Person:"Neirion, Vesla + Dahidd Pentrecuiz", Place:"Wales"}
GuestBook[51]={Date:"&nbsp;", Comments:"We stayed for a couple of days to visit the west Irish, the Burren, the cliffs and never the less the pubs and people all are very vice, especially in this house, thanks for the beautiful stay ", Person:"Gertrud - Barbara - Katharina & Juergen Heep, & Guest child Julia", Place:"Limburg/Lahn, Germany"}

// given index i,
// writes an html string to current document object, displaying
//  guestbook entry i, including comment, person, place, and date
 
function ShowTestimonial (i) {
	var s
	// append comment display string
	s="<p><i>"+GuestBook[i].Comments
	// some records might have an empty person or place field, not both
	if (GuestBook[i].Person!="" && GuestBook[i].Place!="") {
		// append person and place to display string
		s=s+"</i><br>-- "+GuestBook[i].Person+", "+GuestBook[i].Place
	}
	else {
		if (GuestBook[i].Person!="") {
			// append person to display string, no place
			s=s+"</i><br>-- "+GuestBook[i].Person
		}
		else {
			// append place to display string, no person
			s=s+"</i><br>-- "+GuestBook[i].Place
		}
	}
	// append date to display string
	s=s+", "+GuestBook[i].Date+"</p>"
	document.write(s)
}

// writes html lines to display all guest book entries on the current document

function ShowAllTestimonials () {
	var i
	i=0
	while (i<NumOfEntries) {
		ShowTestimonial(i)
		i=i+1
	}
}

