// Create Image array for TOC
if (ImageSwitching()) {
	button = new Array();
	button[0] = new Image(100,60);
	button[0].src = "images/image0.gif";
	button[1] = new Image(100,60);
	button[1].src = "images/image0-ovr.gif";
	button[2] = new Image(100,60);
	button[2].src = "images/image1.gif";
	button[3] = new Image(100,60);
	button[3].src = "images/image1-ovr.gif";
	button[4] = new Image(100,60);
	button[4].src = "images/image2.gif";
	button[5] = new Image(100,60);
	button[5].src = "images/image2-ovr.gif";
	button[6] = new Image(100,60);
	button[6].src = "images/image3.gif";
	button[7] = new Image(100,60);
	button[7].src = "images/image3-ovr.gif";
	button[8] = new Image(100,60);
	button[8].src = "images/image4.gif";
	button[9] = new Image(100,60);
	button[9].src = "images/image4-ovr.gif";
	button[10] = new Image(100,60);
	button[10].src = "images/image5.gif";
	button[11] = new Image(100,60);
	button[11].src = "images/image5-ovr.gif";
	button[12] = new Image(100,60);
	button[12].src = "images/image6.gif";
	button[13] = new Image(100,60);
	button[13].src = "images/image6-ovr.gif";
	button[14] = new Image(100,60);
	button[14].src = "images/image7.gif";
	button[15] = new Image(100,60);
	button[15].src = "images/image7-ovr.gif";
}

// Check if browser can switch images (IE 4+ and Netscape 3+)
function ImageSwitching(){
	if (navigator.appName == "Netscape"){
		if (navigator.appVersion.substring(0,1) >= "3"){
			return true;
		} else {
			return false;
		}
	} else 
	if (navigator.appName.substring(0,9) == "Microsoft"){
		if (navigator.appVersion.substring(0,1) >= "4"){
			return true;
		} else {
			return false;
		}
	} else {
		return false;
	}
}

//Switch Images
function changeImage (i,j) {
	for (k=0; k<self.document.images.length; k++){
// This doesn't work on Netscape 6 because the image array does not contain the full path.
//		if (self.document.images[k].src == self.button[i].src){
		if (self.document.images[k].src.indexOf(self.button[i].src) >= 0){
			if (ImageSwitching()) {
				self.document.images[k].src = self.button[j].src;
			}
			break;
		}
	}
}


