var bIsNC4 = (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4);
var bIsIE4 = (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 );
var bIsSupportOK = bIsNC4 || bIsIE4;
	
var nMaxItem = 4;
var NameIndex = 0;
var DefaultState = 1;
var MouseOverState = 2;
var MouseDownState = 3;
	
var imgCounter = 0;
var ImageList = new Array();
	
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)
{
	if (bIsSupportOK) {
		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("rollover1", "../images/i_5_normal.gif", "../images/i_5_over.gif", "");
AddImageToImageList("rollover2", "../images/i_6_normal.gif", "../images/i_6_over.gif", "");
AddImageToImageList("rollover3", "../images/i_7_normal.gif", "../images/i_7_over.gif", "");
AddImageToImageList("rollover4", "../images/i_8_normal.gif", "../images/i_8_over.gif", "");
AddImageToImageList("rollover5", "../images/i_9_normal.gif", "../images/i_9_over.gif", "");
AddImageToImageList("rollover6", "../images/i_10_normal.gif", "../images/i_10_over.gif", "");

