// JavaScript Document
window.onload = initAll;

var currImg = 0;
var captionText = new Array(
	"Flying from Detroit to Houston then to Tegucigalpa on Continental Airlines, our first view of the second largest barrier reef in the world.  It runs from north of the Yucatan Peninsula, off Belize and into Honduras Bay off Guatamala then to the east of the Bay Islands on the North coast of Honduras.  (1 OF 17)",
	"Approaching San Pedro Sula, because the pilot couldn't find Tegucigalpa. It was raining and the ceiling was too low. So we landed at San Pedro Sula and waited on the plane for about 2 1/2 hours before trying Tegus again.  (2 OF 17)",
	"The countyside near San Pedro Sula was flat, and lots of agriculture.  Notice the freeway system, built since Hurricane Mitch destroyed much of Honduras in late October, 1998.  (3 OF 17)",
	"Back to Tegucigalpa, this time, it was a snap.  The weather had improved, and there it was. Tegucigalpa is in the mountains, about 3100 feet.  The surrounding mountains go up to almost 5000 feet. There is an interesting article on this airport on the web. Click the link at the bottom of the page.  (4 OF 17)",
	"We checked into the Tegucigalpa Marriott. What a change from the downtown hotels of 16 years ago  (5 OF 17)!",
	"Real american rooms! Not like downtown where the maids swept the shag carpet with a broom.  (6 OF 17)",
	"Nice bathroom too!  (7 OF 17)",
	"Got in so late we decided to eat in the hotel and check out the city tomorrow morning. Kristel ordered fish.  FISH IS WHAT SHE GOT!  (8 OF 17)",
	"I hate it when dinner looks back at you!  (9 OF 17)",
	"In the morning we found the pool. The hotel has a 24 hour fitness center, EVERYTHING!!!  (10 OF 17)",
	"Then we looked out our windows. Sure was a change!  McDonalds - Pizza Huts - Dunkin Dounuts - Burger Kings and KFC!  YUCK!! You can also see a Clarion Hotel down the street. About 2 blocks away we found the smallest BK ever, not much bigger than an outhouse!  (11 OF 17)",
	"Looking from the hotel in all directions you see small shacks, cluttered yards, modern hi-rise buildings, and lots of new development.  (12 OF 17)",
	"Just two blocks away was a 3 level mall with indoor parking.  Saw all the same stores we have at home.  Same junk food, too.  The theatre had movies in English, with Spanish sub-titles.  (13 OF 17)",
	"Hills, mountains, what a beautiful view.  (14 OF 17)",
	"Also saw beggers on most streets.  One little guy was selling chewing gum, and one fellow just put his nose on our car window at a traffic light.  That got him a few Lempiras and a handful of Tootsie Pops from the girls.  (15 OF 17)",
	"This area was south of downtown. As I recall, this area was undeveloped 16 years ago.  This city like most, is growing out.  Tegucigalpa was built in the 1500's as a silver mining city.  (16 OF 17)",
	"Let's go downtown to see how that has changed.  (17 OF 17 LAST PHOTO, CLICK ON HOME BELOW)"
)

function initAll() {
	document.getElementById("imgText").innerHTML = captionText[0];
	document.getElementById("prevLink").onclick = processPrevious;
	document.getElementById("nextLink").onclick = processNext;
}

function processPrevious() {
	newSlide(-1);
}

function processNext() {
	newSlide(1);
}

function newSlide(direction) {
	var imgCt = captionText.length;

	currImg = currImg + direction;
	if (currImg < 0) {
		currImg = imgCt-1;
	}
	if (currImg == imgCt) {
		currImg = 0;
	}
	document.getElementById("slideshow").src = "images/tegus" + currImg + ".jpg"
	document.getElementById("imgText").innerHTML = captionText[currImg]
}

