function navit(currentname,force){
// all vars
var spacer=0;var i=1;var e=1;var gotoname;var gotodir;var gobackname;var gobackdir;var colored;var thedir;var thename;var prev;var next;var pos=0;var matchit;var total;var breakat;
// all arrays and associated vars
total=(names.length)-1; // determine total number of items in array
// determine if list is broken in have or forced by the java code on article page
if(force == 0){
if(total <= 4){
breakat = total;}
else{
breakat=Math.floor(total*.5);
}
}
else{
breakat=force;
}
// determine the position of the article
while(i<=total){
matchit=names[i];
if(matchit == currentname){
pos=i;
}
i++;
} // end while
i=1
// select which item is associated with the previous button
if(pos != 1){
prev=pos-1;
gobackname=names[prev];
gobackdir=dirs[prev];
}
else{
gobackname=prevcat;
gobackdir=prevdir;
}
document.write('
');
document.write('