var juryPages = new Array('origins.html', 'formation.html', 'grand.html', 'right_accused.html', 'voir_dire.html', 'jury_peers.html', 'jury_deliberation.html', 'issues_evidence.html', 'nullification.html', 'jury_media.html', 'damage_awards.html', 'comparative.html', 'social.html', 'reform.html', 'future.html');
var commonURL = "";
var l = juryPages.length;
for (i=0; i<l; i++){

if (juryPages[i] == thisPage) {
var pos = i;
        }
}
var x = juryPages[pos+1];

if (thisPage == juryPages[l-1]){
x=juryPages[0]
}

var y = juryPages[pos-1];
if (thisPage == juryPages[0]){
y = juryPages[l-1];
}

var urlForward = commonURL + x;
var urlBack = commonURL + y;

function moveOn() {
document.location.href = urlForward;
} 

function moveBack() {
document.location.href = urlBack;
}