var FLImages = document.images;
var ActivePage = 1;

if (FLImages) {
	var img = new Array();

	for (i=1; i<73; i++) {
		img[i] = new Image();
	}
	img[1].src = "../../gjpgs/buttons/knd_01.jpg";
	img[2].src = "../../gjpgs/buttons/knu_01.jpg";
	img[3].src = "../../gjpgs/buttons/kno_01.jpg";
	img[4].src = "../../gjpgs/buttons/knd_02.jpg";
	img[5].src = "../../gjpgs/buttons/knu_02.jpg";
	img[6].src = "../../gjpgs/buttons/kno_02.jpg";
	img[7].src = "../../gjpgs/buttons/knd_03.jpg";
	img[8].src = "../../gjpgs/buttons/knu_03.jpg";
	img[9].src = "../../gjpgs/buttons/kno_03.jpg";
	img[10].src = "../../gjpgs/buttons/knd_04.jpg";
	img[11].src = "../../gjpgs/buttons/knu_04.jpg";
	img[12].src = "../../gjpgs/buttons/kno_04.jpg";
	img[13].src = "../../gjpgs/buttons/knd_05.jpg";
	img[14].src = "../../gjpgs/buttons/knu_05.jpg";
	img[15].src = "../../gjpgs/buttons/kno_05.jpg";
	img[16].src = "../../gjpgs/buttons/knd_06.jpg";
	img[17].src = "../../gjpgs/buttons/knu_06.jpg";
	img[18].src = "../../gjpgs/buttons/kno_06.jpg";
	img[19].src = "../../gjpgs/buttons/knd_07.jpg";
	img[20].src = "../../gjpgs/buttons/knu_07.jpg";
	img[21].src = "../../gjpgs/buttons/kno_07.jpg";
	img[22].src = "../../gjpgs/buttons/knd_08.jpg";
	img[23].src = "../../gjpgs/buttons/knu_08.jpg";
	img[24].src = "../../gjpgs/buttons/kno_08.jpg";
		img[25].src = "../../gjpgs/eyeo.jpg";
		img[26].src = "../../gjpgs/eyec.jpg";
		img[27].src = "../../gjpgs/eyeo.jpg";
		img[28].src = "../../gjpgs/eyeo.jpg";
		img[29].src = "../../gjpgs/eyec.jpg";
		img[30].src = "../../gjpgs/eyeo.jpg";
		img[31].src = "../../gjpgs/eyeo.jpg";
		img[32].src = "../../gjpgs/eyec.jpg";
		img[33].src = "../../gjpgs/eyeo.jpg";
		img[34].src = "../../gjpgs/eyeo.jpg";
		img[35].src = "../../gjpgs/eyec.jpg";
		img[36].src = "../../gjpgs/eyeo.jpg";
		img[37].src = "../../gjpgs/eyeo.jpg";
		img[38].src = "../../gjpgs/eyec.jpg";
		img[39].src = "../../gjpgs/eyeo.jpg";
		img[40].src = "../../gjpgs/eyeo.jpg";
		img[41].src = "../../gjpgs/eyec.jpg";
		img[42].src = "../../gjpgs/eyeo.jpg";
		img[43].src = "../../gjpgs/eyeo.jpg";
		img[44].src = "../../gjpgs/eyec.jpg";
		img[45].src = "../../gjpgs/eyeo.jpg";
		img[46].src = "../../gjpgs/eyeo.jpg";
		img[47].src = "../../gjpgs/eyec.jpg";
		img[48].src = "../../gjpgs/eyeo.jpg";
	img[49].src = "../../ggifs/arclogs-01.gif";
	img[50].src = "../../ggifs/arclogs-01.gif";
	img[51].src = "../../ggifs/arclogs-01.gif";
	img[52].src = "../../gjpgs/arclogs-02.jpg";
	img[53].src = "../../gjpgs/arclogs-02.jpg";
	img[54].src = "../../gjpgs/arclogs-02.jpg";
	img[55].src = "../../gjpgs/arclogs-03.jpg";
	img[56].src = "../../gjpgs/arclogs-03.jpg";
	img[57].src = "../../gjpgs/arclogs-03.jpg";
	img[58].src = "../../gjpgs/arclogs-04.jpg";
	img[59].src = "../../gjpgs/arclogs-04.jpg";
	img[60].src = "../../gjpgs/arclogs-04.jpg";
	img[61].src = "../../gjpgs/arclogs-05.jpg";
	img[62].src = "../../gjpgs/arclogs-05.jpg";
	img[63].src = "../../gjpgs/arclogs-05.jpg";
	img[64].src = "../../ggifs/arclogs-06.gif";
	img[65].src = "../../ggifs/arclogs-06.gif";
	img[66].src = "../../ggifs/arclogs-06.gif";
	img[67].src = "../../ggifs/arclogs-07.gif";
	img[68].src = "../../ggifs/arclogs-07.gif";
	img[69].src = "../../ggifs/arclogs-07.gif";
	img[70].src = "../../ggifs/arclogs-01.gif";
	img[71].src = "../../ggifs/arclogs-01.gif";
	img[72].src = "../../ggifs/arclogs-01.gif";

	var imnam = new Array(24);

	imnam[1]="kn1";
	imnam[2]="kn2";
	imnam[3]="kn3";
	imnam[4]="kn4";
	imnam[5]="kn5";
	imnam[6]="kn6";
	imnam[7]="kn7";
	imnam[8]="kn8";
		imnam[9]="e1";
		imnam[10]="e2";
		imnam[11]="e3";
		imnam[12]="e4";
		imnam[13]="e5";
		imnam[14]="e6";
		imnam[15]="e7";
		imnam[16]="e8";
	imnam[17]="arclogs";
	imnam[18]="arclogs";
	imnam[19]="arclogs";
	imnam[20]="arclogs";
	imnam[21]="arclogs";
	imnam[22]="arclogs";
	imnam[23]="arclogs";
	imnam[24]="arclogs";

}

function replim(imgNumber) {
	if (FLImages) {
		ActivePage = imgNumber;
		for (h=1;h<9;h++) {
			i = h;
			imgName = imnam[i];
			if (document[imgName]) {
				j = i*3-1;
				document[imgName].src = img[j].src;
			} else {
				window.alert("He Gez, image name does not exist");
			}
			i = h+8;
			imgName = imnam[i];
			if (document[imgName]) {
				j = i*3-1;
				document[imgName].src = img[j].src;
			} else {
				window.alert("He Gez, image name does not exist");
			}
			i = h+16;
			imgName = imnam[i];
			if (document[imgName]) {
				j = i*3-1;
				document[imgName].src = img[j].src;
			} else {
				window.alert("He Gez, image name does not exist");
			}
		}
		imgchanum = imgNumber;
		imgName = imnam[imgchanum];
		if (document[imgName]) {
			document[imgName].src = img[imgchanum*3-2].src;
		} else {
			window.alert("Let op Ge, image name does not exist");
		}
		imgchanum = imgNumber+8;
		imgName = imnam[imgchanum];
		if (document[imgName]) {
			document[imgName].src = img[imgchanum*3-2].src;
		} else {
			window.alert("Let op Ge, image name does not exist");
		}
		imgchanum = imgNumber+16;
		imgName = imnam[imgchanum];
		if (document[imgName]) {
			document[imgName].src = img[imgchanum*3-2].src;
		} else {
			window.alert("Let op Ge, image name does not exist");
		}
	}
}

function restim(imgNumber) {
	/* window.alert("Mouse out! Restore Image! restim"); */
	if (FLImages) {
		imgchanum = imgNumber;
		imgName = imnam[imgchanum];
		if (document[imgName]) {
			if (imgNumber == ActivePage) {
				document[imgName].src = img[imgchanum*3-2].src;
			} else {
				document[imgName].src = img[imgchanum*3-1].src;
			}
		} else {
			window.alert("He Gez, image name does not exist");
		}
		imgchanum = imgNumber+8;
		imgName = imnam[imgchanum];
		if (document[imgName]) {
			if (imgNumber == ActivePage) {
				document[imgName].src = img[imgchanum*3-2].src;
			} else {
				document[imgName].src = img[imgchanum*3-1].src;
			}
		} else {
			window.alert("He Gez, image name does not exist");
		}
		imgchanum = ActivePage+16;
		imgName = imnam[imgchanum];
		if (document[imgName]) {
			if (imgNumber == ActivePage) {
				document[imgName].src = img[imgchanum*3-2].src;
			} else {
				document[imgName].src = img[imgchanum*3-1].src;
			}
		} else {
			window.alert("He Gez, image name does not exist");
		}
	}
}

function mousim(imgNumber) {
/*	window.alert("Mouse over! Mouse Image! mousim"); */
	if (FLImages) {
		imgchanum = imgNumber;
		imgName = imnam[imgchanum];
		if (document[imgName]) {
			document[imgName].src = img[imgchanum*3].src;
		} else {
			window.alert("He Gez, image name does not exist");
		}
		imgchanum = imgNumber+8;
		imgName = imnam[imgchanum];
		if (document[imgName]) {
			document[imgName].src = img[imgchanum*3].src;
		} else {
			window.alert("He Gez, image name does not exist");
		}
		imgchanum = imgNumber+16;
		imgName = imnam[imgchanum];
		if (document[imgName]) {
			document[imgName].src = img[imgchanum*3].src;
		} else {
			window.alert("He Gez, image name does not exist");
		}
	}
}

