var currentChapter = 1;

function loadPreviousChapter() {
    if (currentChapter <= 1) return;
	loadChapter(parseInt(currentChapter)-1);
}

function loadNextChapter() {
    if (currentChapter >= 15) return;
	loadChapter(parseInt(currentChapter)+1);
}

function loadChapter(chapterId) {
	currentChapter = parseInt(chapterId);
	$("thesisDisplay").innerHTML = $(chapterId.toString()).innerHTML;
	lightbox.deactivate;
}