captionArray = new Array();
for (i=0; i < 11; i++) {
	captionArray[i] = "caption" + i;
	}
	
// functions for hiding and showing captions //

function hideCaption(objID) {
	if (isAll || isID) {
	theStyle = findDOM(objID,1);
	theStyle.display='none';
	}	
	return;
}

function showCaption(objID) {
	if (isAll || isID) {
	theStyle = findDOM(objID,1);
	theStyle.display='inline';
	}
	return;
}


//functions for boston

bostonArray = new Array();
for (i=0; i < 11; i++) {
	bostonArray[i] = new Image();
	}
bostonArray[0].src = "boston_ptgs/01.jpg";
bostonArray[1].src = "boston_ptgs/02.jpg";
bostonArray[2].src = "boston_ptgs/09.jpg";
bostonArray[3].src = "boston_ptgs/08.jpg";
bostonArray[4].src = "boston_ptgs/11.jpg";
bostonArray[5].src = "boston_ptgs/05.jpg";
bostonArray[6].src = "boston_ptgs/03.jpg";
bostonArray[7].src = "boston_ptgs/10.jpg";
bostonArray[8].src = "boston_ptgs/06.jpg";
bostonArray[9].src = "boston_ptgs/07.jpg";
bostonArray[10].src = "boston_ptgs/04.jpg";


var bostonCounter = 0;

function nextBoston() {
		hideCaption(captionArray[bostonCounter]);
		if (bostonCounter < 10) { bostonCounter++; }
		else { bostonCounter = 0; }
	document.painting.src = bostonArray[bostonCounter].src;
	showCaption(captionArray[bostonCounter]);
}

function lastBoston() {
	hideCaption(captionArray[bostonCounter]);
		if (bostonCounter > 0) { bostonCounter--; }
		else { bostonCounter = 10; }
	document.painting.src = bostonArray[bostonCounter].src;
	showCaption(captionArray[bostonCounter]);
}

function playBoston() {
	going = setInterval("nextBoston()",1000);
	}
	
function stopBoston() {
	clearTimeout(going);
	}
	

