<!-- Hide this from JavaScript non-enabled browsers

// Variables; setting initial values:
var FirstPage = 0;
var LastPage = 35;
var PageArray = new Array("SECoast.html","Thunderheads.html","Wanariset1.html",
	"Wanariset2.html","Buttresses.html","Coring.html","Balikpapan1.html",
	"Balikpapan2.html","Balikpapan3.html","RiverTown.html","DistantMosque.html",
	"River1.html","River2.html","Mangrove.html","HQ.html","HQHousing.html",
	"Compound.html","Camp1.html","Camp2.html","ForestEdge.html","Forest1.html",
	"Forest2.html","Forest3.html","Logging.html","LogRoad.html","Yance.html",
	"Plant.html","GradedWood.html","Yard1.html","Yard2.html","LoadingZone.html",
	"Outpost.html","Dock.html","Barge.html","Freighter.html","BalikpapanSunset.html");

function GoToFirstPage() {
	// Opens first page
	parent.location=PageArray[FirstPage];
}

function GoToNextPage() {
	CurrentFile=GetCurrentFile();
	// Determines index of CurrentFile
	CurrentPage = FirstPage;
	for (var i = FirstPage; i <= LastPage; i++) {
      	if (PageArray[i] == CurrentFile) {
			CurrentPage = i
		}
		else {
			CurrentPage = CurrentPage
		}
	}
	// Checks if CurrentPage is Last Page
	NextPage = (CurrentPage == LastPage) ? LastPage : CurrentPage+1;
	// Opens next page
	parent.location=PageArray[NextPage];
}

function GoToPreviousPage() {
	CurrentFile=GetCurrentFile();
	// Determines index of CurrentFile
	CurrentPage = LastPage;
	for (var i = LastPage; i >= FirstPage; i--) {
      	if (PageArray[i] == CurrentFile) {
			CurrentPage = i
		}
		else {
			CurrentPage = CurrentPage
		}
	}
	// Checks if CurrentPage is FirstPage
	PreviousPage = (CurrentPage == FirstPage) ? FirstPage : CurrentPage-1;
	// Opens previous page
	parent.location=PageArray[PreviousPage];
}

function GoToLastPage() {
	// Opens last page
	parent.location=PageArray[LastPage];
}

function GetCurrentFile() {
	// Determines number of current file
	FileString=location.href;
	StrLength=FileString.length;
	ExtString=FileString.lastIndexOf("/")+1;
	CurrentFile=FileString.substring(ExtString,StrLength);
	return CurrentFile;
}

// End of JavaScript

-->
