// Things to do when this page is loaded
function start_up() {
            window.defaultStatus = "Intrazine"
}

// ROLLOVER ACTIVITY
nMaxItem = 4;
NameIndex = 0;
DefaultState = 1;

MouseOverState = 2;
MouseDownState = 3;
imgCounter = 0;

ImageList = new Array();

bIsSupportOK = (
	((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) ||
	((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
);

function AddImageToImageList(name, Default, MouseOver, MouseDown)
{
	ImageList[imgCounter] = new Array(nMaxItem);
	ImageList[imgCounter][NameIndex] = name;
	ImageList[imgCounter][DefaultState] = new Image();
	ImageList[imgCounter][DefaultState].src = Default;
	if (MouseOver != "") {
		ImageList[imgCounter][MouseOverState] = new Image();
		ImageList[imgCounter][MouseOverState].src = MouseOver;
	}
	if (MouseDown != "") {
		ImageList[imgCounter][MouseDownState] = new Image();
		ImageList[imgCounter][MouseDownState].src = MouseDown;
	}
		imgCounter++;
}

function ReplaceImage(name, state, masked)
{
	for (i = 0; i < imgCounter; i++) {
		if (document.images[ImageList[i][NameIndex]] != null) {
			if ((name == ImageList[i][NameIndex]) && (ImageList[i][state] != null))
				document.images[name].src = ImageList[i][state].src;
		}
	}
}
AddImageToImageList("home", "home_normal.gif", "home_over.gif", "home_down.gif");
AddImageToImageList("essays", "essays_normal.gif", "essays_over.gif", "essays_down.gif");
AddImageToImageList("tristan", "tristan_normal.gif", "tristan_over.gif", "tristan_down.gif");
AddImageToImageList("links", "links_normal.gif", "links_over.gif", "links_down.gif");
AddImageToImageList("health", "health_normal.gif", "health_over.gif", "health_down.gif");
AddImageToImageList("guest", "guest_normal.gif", "guest_over.gif", "guest_down.gif");
AddImageToImageList("dmd", "dmd_normal.gif", "dmd_over.gif", "dmd_down.gif");
AddImageToImageList("gallery", "gallery_normal.gif", "gallery_over.gif", "gallery_down.gif");
AddImageToImageList("help", "help_normal.gif", "help_over.gif", "help_down.gif");
AddImageToImageList("about", "about_normal.gif", "about_over.gif", "about_down.gif");
