arPages = new Array("index.html", "2.html", "3.html", "4.html", "5.html", "6.html", "7.html", "8.html")
impre = "/xml/art/button_"

if (document.images) {
arImLoadB = new Array (
impre+"left_over",
impre+"left_down",
impre+"right_over",
impre+"right_down");
arImListB = new Array ();
for (counter in arImLoadB) {
arImListB[counter] = new Image();
arImListB[counter].src = arImLoadB[counter] + ".gif";
}}

function movr(){this.img.src = this.img.overSrc}
function mout(){this.img.src = this.img.outSrc}
function mdown(){this.img.src = this.img.downSrc}
function insertButtons(){
	lr = "left"; altlr = "<";
	document.write("<P ALIGN=RIGHT>")
	for (i=0;i<numPages;i++){
		if (i==curPage) { lr = "center"; altlr = "#"; }
		imstr = "<IMG ALT='" + altlr + "' SRC='" + impre + lr + ".gif' WIDTH=18 HEIGHT=18 BORDER=0>";
		if (i==curPage) {document.write(imstr);lr="right";altlr=">";continue}
		document.write(imstr.link(arPages[i]));
		if(!ver4) continue;
		tLink =	document.links[document.links.length-1];
		tImg = tLink.img = document.images[document.images.length-1];
		tImg.outSrc = tImg.src;
		tImg.downSrc = impre + lr + "_down.gif";
		tImg.overSrc = impre + lr + "_over.gif";
		tLink.onmouseover = movr;
		tLink.onmouseout = tLink.onmouseup = mout;
		tLink.onmousedown = mdown;
	}
	document.write("</P>");
}
